Abstract
Federated Learning (FL) typically assumes a centralized star topology, which faces significant communication and deployment challenges in large-scale, heterogeneous edge environments. We present Flight, an open-source framework that leverages Function-as-a-Service (FaaS) to support complex hierarchical topologies and asynchronous updates. By decoupling the control plane from the data plane, Flight reduces communication overhead by over 60% and scales to thousands of devices, overcoming the limitations of traditional RPC-based frameworks.
Introduction
While Federated Learning (FL) is a promising paradigm for privacy-preserving AI, most existing frameworks are built on a "star" topology where a single central server communicates with a flat layer of devices. This model fails to account for the hierarchical, bandwidth-constrained nature of real-world edge networks, such as large-scale IoT deployments or geographically dispersed smart homes.
Flight is designed to address these limitations by moving beyond the star topology into complex, hierarchical realities. By utilizing a Function-as-a-Service (FaaS) model, Flight decouples task management from data movement, enabling massive scalability and significant reductions in communication overhead.
Challenges in Standard Federated Learning
Traditional FL frameworks, such as Google’s TFF or Flower, encounter three primary bottlenecks:
- Communication Constraints: Simultaneous model updates from thousands of devices can overwhelm central server bandwidth.
- Topological Ignorance: Standard FL ignores geospatial data clustering, missing opportunities for efficient regional aggregation.
- Deployment Friction: Managing execution across heterogeneous devices behind firewalls and NATs is difficult using traditional Remote Procedure Call (RPC) methods.
The Flight Framework
Flight introduces several architectural innovations to overcome these challenges:
Hierarchical Federated Learning (HFL)
Flight supports "intermediate aggregators" where groups of workers send updates to local hubs. These hubs aggregate local updates into a single, smaller update before transmitting it further up the hierarchy. This structure allows for regional patterns to be captured efficiently while minimizing the load on the central coordinator.
Decoupled Control and Data Planes
The "secret sauce" of Flight is the separation of the control plane (logic) from the data plane (weights). Flight uses Globus Compute (a FaaS platform) to manage training tasks and ProxyStore to handle the movement of large model weights. This allows data to bypass the central coordinator, moving directly between parents and children in the hierarchy.
Asynchronous FL (AFL) and FaaS Integration
To mitigate the "straggler" problem in synchronous FL, Flight supports an asynchronous mode where the global model is updated as soon as any worker completes its task. Furthermore, the FaaS model requires only outbound connectivity from edge devices, simplifying deployment across restrictive corporate or home networks.
Experimental Evaluation
The researchers evaluated Flight using the FashionMNIST dataset with non-IID partitions to simulate realistic data heterogeneity.
Key Results
- Scalability: Flight successfully scaled to 2,048 simultaneous workers on the SDSC Expanse supercomputer, whereas traditional frameworks like Flower struggled beyond 512 workers due to RPC limitations.
- Communication Efficiency: In an 8-tier hierarchy using a ResNet-152 model, Flight reduced total data transfer by 60.13% compared to a standard two-tier setup.
- Performance: Asynchronous FL reduced worker idle time from 15% to 0.06%, resulting in a 20% shorter makespan for training rounds.
- Real-World Deployment: The framework was validated over the open internet using a setup spanning a local laptop and AWS EC2 instances in different geographic regions (Virginia and Oregon).
Conclusion and Future Work
Flight represents a significant step toward making Federated Learning viable for complex, real-world edge environments. Future work will focus on implementing asynchronous updates within deep hierarchies, developing automated topology discovery based on network conditions, and testing a wider range of specialized FL algorithms.
Flight is open-source and available on GitHub.
Summary updated