Aergia: leveraging heterogeneity in federated learning systems

Bart Cox, Lydia Y. Chen, Jérémie Decouchant

Abstract

Federated Learning (FL) systems are frequently bottlenecked by device heterogeneity, where slower "straggler" devices delay the aggregation of model updates. Traditional solutions often drop these devices, sacrificing model accuracy, or group them into tiers, which fails to account for high intra-tier variance. This paper presents Aergia, a middleware framework designed to accelerate FL training by leveraging device heterogeneity. Aergia allows stragglers to "freeze" compute-intensive model layers and offload them to faster, data-similar peers. Experimental results show that Aergia reduces training time by up to 53% compared to state-of-the-art tiering methods while maintaining high accuracy in non-IID data environments.

Introduction

In Federated Learning, a central federator orchestrates training across a fleet of distributed devices. Standard synchronous algorithms, such as FedAvg, require the federator to wait for all selected clients to complete their local training rounds before aggregating results. In real-world deployments, devices range from high-end smartphones to low-power IoT sensors. This heterogeneity creates a "straggler problem," where the slowest device dictates the pace of the entire system.

Existing approaches to this problem typically involve setting strict deadlines or implementing tiering. Deadline-based approaches drop updates from slow clients, which is detrimental in non-IID (non-independently and identically distributed) scenarios where stragglers may hold unique data essential for model generalization. Tiering attempts to group devices by speed but often struggles with transient heterogeneity—sudden performance drops due to background tasks or network fluctuations.

The Aergia Framework

Aergia addresses these challenges through a three-pronged strategy: model freezing, task offloading, and secure client matching.

1. Model Freezing

By profiling Convolutional Neural Network (CNN) training, researchers identified that the backward pass of feature (convolutional) layers accounts for 52% to 75% of total computation time. Aergia leverages this by allowing stragglers to "freeze" these layers. When a layer is frozen, the client does not calculate gradients for it locally, significantly reducing the computational burden on the device's CPU.

2. Task Offloading

Rather than simply skipping the frozen layers, Aergia offloads the heavy computation to "strong" (faster) clients. The straggler performs the lighter components of training—specifically the forward pass and the classifier layer updates—while the assigned strong peer handles the resource-intensive feature layer training. This collaborative approach ensures that the straggler's unique data is still incorporated into the global model without delaying the training round.

3. Secure Client Matching

Offloading introduces a risk of model divergence if the data distributions of the straggler and the strong client are significantly different. To mitigate this, Aergia implements a secure matching mechanism. Using an Intel SGX enclave at the federator, the system privately compares client data distributions using the Earth Mover’s Distance (EMD) metric. This allows the federator to match stragglers with peers that have similar data profiles without exposing raw data. The matching process utilizes a Longest-Processing-Time-first (LPT) scheduling algorithm to optimize the distribution of offloaded tasks.

Experimental Evaluation

The researchers evaluated Aergia using three standard benchmarks: MNIST, Fashion-MNIST (FMNIST), and CIFAR-10. These were tested in both IID and non-IID settings to simulate the data fragmentation common in real-world FL.

Performance and Speedup

Aergia was benchmarked against FedAvg and TiFL (a state-of-the-art tiering approach) on a 24-core cluster with simulated CPU throttling. The results demonstrated significant efficiency gains:

  • Total Training Time: Aergia reduced training time by 27% compared to FedAvg and by 53% compared to TiFL.
  • Accuracy: In non-IID scenarios, Aergia maintained accuracy levels comparable to FedAvg. In contrast, deadline-based methods saw significant accuracy degradation because they ignored the unique data held by stragglers.
  • Overhead: The system’s online profiling—which measures device performance during the initial batches of each round—added only 0.58% to the total training time, demonstrating the framework's low operational cost.

Discussion and Limitations

A key insight of Aergia is its ability to handle "transient heterogeneity." By using online profiling rather than static offline profiles, the system can adapt to real-time changes in device performance. However, several areas for future work remain:

  • Hardware Requirements: The current reliance on Intel SGX for secure matching may limit deployment on federators without Trusted Execution Environments (TEEs). Future iterations could explore homomorphic encryption as an alternative.
  • Network Dynamics: The framework assumes relatively stable network conditions during a training round. In highly mobile environments, more frequent updates to the offloading logic may be required.
  • Incentive Structures: The model currently assumes that strong clients will willingly accept extra workloads. In commercial settings, an incentive or token-based system may be necessary to encourage participation from faster devices.

Conclusion

Aergia represents a significant step forward in making Federated Learning viable for heterogeneous device ecosystems. By intelligently freezing and offloading compute-heavy tasks based on data similarity, it resolves the tension between training speed and model accuracy, ensuring that no device—and no data—is left behind.

Summary updated

BibTeX
@inproceedings{cox2022aergia,
  author = {Bart Cox and Lydia Y. Chen and Jérémie Decouchant},
  title = {{Aergia: leveraging heterogeneity in federated learning systems}},
  booktitle = {Middleware},
  year = {2022},
  doi = {10.1145/3528535.3565238},
}
Figure