Abstract
Federated Learning (FL) is a collaborative machine learning framework to train a deep learning model without accessing clients' private data. Previous works assume one central parameter server either at the cloud or at the edge. The cloud server can access more data but with excessive communication overhead and long latency, while the edge server enjoys more efficient communications with the clients. To combine their advantages, we propose a client-edge-cloud hierarchical Federated Learning system, supported with a HierFAVG algorithm that allows multiple edge servers to perform partial model aggregation. In this way, the model can be trained faster and better communication-computation trade-offs can be achieved. Convergence analysis is provided for HierFAVG and the effects of key parameters are also investigated, which lead to qualitative design guidelines. Empirical experiments verify the analysis and demonstrate the benefits of this hierarchical architecture in different data distribution scenarios. Particularly, it is shown that by introducing the intermediate edge servers, the model training time and the energy consumption of the end devices can be simultaneously reduced compared to cloud-based Federated Learning.
Introduction: The "Goldilocks" Problem of FL
Standard Federated Learning typically follows a two-tier model: a central cloud server and thousands of end-user clients. This setup faces a significant trade-off. Cloud-based FL has access to massive amounts of data across all clients but suffers from high communication latency and unpredictable network congestion. Conversely, Edge-based FL (where a local base station acts as the server) offers low latency and fast communication, but each edge server only sees a small slice of the total data, leading to lower model accuracy.
The challenge lies in combining the "global view" of the cloud with the "local speed" of the edge, especially when client data is non-IID (not independently and identically distributed).
The HierFAVG Algorithm
The core contribution is the HierFAVG (Hierarchical Federated Averaging) algorithm. It organizes training into three distinct stages:
- Local Computation: Clients perform $\kappa_1$ steps of Stochastic Gradient Descent (SGD) on their local data.
- Edge Aggregation: Every $\kappa_1$ steps, a local edge server (like a base station) collects and averages the models from its connected clients.
- Cloud Aggregation: After $\kappa_2$ edge-level aggregations (meaning $\kappa_1 \times \kappa_2$ total local steps), the cloud server collects the models from all edge servers to perform a global update.
This hierarchy allows the system to "correct" the divergent paths of local client models at the edge level before they stray too far from the global optimum, reducing the frequency of expensive cloud communications.
Empirical Evaluation and Results
The framework was evaluated using MNIST and CIFAR-10 benchmarks across various non-IID scenarios. The hierarchical approach demonstrates superior performance in terms of both accuracy and training time. By introducing intermediate edge servers, the system achieves significantly faster convergence than traditional cloud-only approaches.
Key results include:
- Training Speedup: On MNIST, HierFAVG reached target accuracy up to 3.9x faster than traditional cloud-based FL.
- Energy Efficiency: Mobile device energy consumption was reduced by nearly 65% in certain configurations for the same target accuracy.
- Robustness: The hierarchical model consistently outperformed edge-only FL, proving the cloud's necessity for global model quality.
Key Insights
- Edge-IID Advantage: If aggregate data at the edge is roughly balanced (Edge-IID), cloud communication frequency ($\kappa_2$) can be significantly reduced without sacrificing accuracy.
- Energy-Latency Trade-off: There is a "sweet spot" for aggregation frequency. Aggregating too often wastes energy on radio transmissions; too rarely wastes energy on redundant local computations that don't contribute to global progress.
Conclusion and Future Work
Hierarchical FL presents a robust solution for modern mobile networks by bridging the gap between cloud-scale data and edge-scale latency. While promising, future work should address system heterogeneity (handling "stragglers"), dynamic parameter tuning for $\kappa_1$ and $\kappa_2$, and incentive mechanisms for edge-node providers.
Summary updated