Abstract
As a promising distributed machine learning paradigm that enables collaborative training without compromising data privacy, Federated Learning (FL) has been increasingly used in AIoT (Artificial Intelligence of Things) design. However, due to the lack of efficient management of straggling devices, existing FL methods greatly suffer from the problems of low inference accuracy and long training time. Things become even worse when taking various uncertain factors (e.g., network delays, performance variances caused by process variation) existing in AIoT scenarios into account. To address this issue, this paper proposes a novel asynchronous FL framework named GitFL, whose implementation is inspired by the famous version control system Git. Unlike traditional FL, the cloud server of GitFL maintains a master model (i.e., the global model) together with a set of branch models indicating the trained local models committed by selected devices, where the master model is updated based on both all the pushed branch models and their version information, and only the branch models after the pull operation are dispatched to devices. By using our proposed Reinforcement Learning (RL)-based device selection mechanism, a pulled branch model with an older version will be more likely to be dispatched to a faster and less frequently selected device for the next round of local training. In this way, GitFL enables both effective control of model staleness and adaptive load balance of versioned models among straggling devices, thus avoiding the performance deterioration. Comprehensive experimental results on well-known models and datasets show that, compared with state-of-the-art asynchronous FL methods, GitFL can achieve up to 2.64X training acceleration and 7.88% inference accuracy improvements in various uncertain scenarios.
1. Introduction
Federated Learning (FL) enables a central server to train a global model by aggregating updates from distributed devices, such as smartphones or IoT sensors, without accessing their raw data. However, real-world AIoT environments are characterized by significant system heterogeneity, where devices possess varying compute power, memory, and network speeds.
Traditional synchronous FL methods, such as FedAvg, are limited by the "wooden barrel theory," where the training round's speed is dictated by the slowest device (the straggler). While asynchronous methods attempt to mitigate this by updating the global model as soon as any device finishes, they introduce the challenge of model staleness. If a slow device provides an update based on an outdated model version, it can negatively impact the global model's progress, leading to degraded accuracy and slow convergence. GitFL addresses these challenges by treating local models as code branches and employing intelligent version management.
2. The GitFL Framework
GitFL introduces a novel architecture inspired by the Git version control system, maintaining a Master Model and a set of Branch Models on the cloud server.
2.1 Git-Inspired Operations
- Merging: Branch models are merged into the Master Model using weights determined by their version numbers. This ensures that the global model evolves based on the most relevant updates.
- Pulling: When a device is ready for a new task, it "pulls" the latest knowledge from the Master Model into its assigned branch.
- Pushing: Following local training, the device "pushes" its updated branch back to the server for future merging.
2.2 RL-Based Client Selection
The core of GitFL is its Reinforcement Learning (RL)-based client selector, which utilizes a curiosity-driven exploration strategy to optimize device-branch matching. To achieve adaptive load balancing, the RL agent identifies "lagging" branch models (those with older versions) and dispatches them to faster devices to help them catch up. Furthermore, a curiosity reward is implemented to ensure the system selects a diverse range of devices, preventing bias toward only the highest-performing hardware.
2.3 Version Control Variable
The framework incorporates a mathematical version control variable ($v_{ctrl}$) to adjust aggregation weights. This mechanism prevents drastic updates to the Master Model, ensuring stability and preventing gradient divergence.
3. Experimental Evaluation
The researchers evaluated GitFL against standard benchmarks including CIFAR-10, CIFAR-100, and FEMNIST. To simulate real-world conditions, a Dirichlet distribution ($\alpha$) was used to create non-IID (non-Independent and Identically Distributed) data scenarios. The framework was tested across multiple architectures, including CNN, ResNet-18, and VGG-16, under conditions of network jitter and hardware performance variance.
4. Results and Discussion
GitFL demonstrates significant improvements in both performance and efficiency over state-of-the-art asynchronous FL methods.
- Accuracy and Convergence: In highly heterogeneous scenarios (CIFAR-10, $\alpha = 0.1$), GitFL achieved 54.85% accuracy, outperforming the FedSA baseline by 7.88%. The learning curves are notably smoother and more stable than competing methods.
- Training Acceleration: GitFL reached target accuracy levels up to 2.64x faster than other asynchronous methods. This is largely due to the "catch-up" mechanism that pairs old model versions with high-performance hardware.
- Communication Efficiency: By converging faster and managing updates intelligently, GitFL reduced communication overhead by up to 1.85x.
5. Conclusion
GitFL effectively manages model staleness by treating it as a resource to be balanced rather than a defect to be penalized. By pairing lagging versions with fast hardware, the system narrows the version gap across the network. Future work may explore the computational overhead of managing numerous branch models at scale and the integration of GitFL with standard privacy-preserving techniques like Secure Aggregation or Differential Privacy.
Summary updated