Async simulation and FedBuff aggregation #197
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implements the async simulation mode with FedBuff using device traces without needing a constant arrival parameter, following the min-heap method described here.
Benchmarks comparison for Femnist (Sync vs Async with Fedbuff):
Sync / Async
Round: 100 / 180
Virtual clock: 27,618s / 18,913s
Top_5 eval accuracy: 0.914 / 0.92
Params: 5 clients per round, model = resnet18, max_concurrency=10
The results are consistent with the hypothesis that the async scheduling system increases the number of rounds that can be completed within the same amount of virtual clock time, and improves straggler tolerance. They also show the effect of aggregating stale updates from previous rounds, resulting in more rounds before convergence.
Checks