Mobility Accelerates Learning: Convergence Analysis on Hierarchical Federated Learning in Vehicular Networks

Tan Chen, Jintao Yan, Yuxuan Sun, Sheng Zhou, Deniz Gündüz, Zhisheng Niu

TL;DR

This paper investigates how vehicle mobility impacts Hierarchical Federated Learning (HFL) in vehicular networks. They show that surprisingly, mobility can accelerate convergence and improve model accuracy, especially in scenarios with heterogeneous data, by effectively mixing data across edge servers.

What Problem Does This Paper Address?

Federated Learning (FL) allows devices to train models collaboratively without sharing raw data, preserving privacy. Hierarchical FL (HFL) introduces edge servers as intermediaries between devices and a central cloud server to reduce communication latency. However, applying HFL to vehicular networks presents unique challenges. Vehicles are highly mobile, leading to dynamic network topologies and data heterogeneity (vehicles collecting different types of data). While mobility is often seen as a problem for communication and network stability, this paper questions whether it could actually be beneficial for the learning process itself in HFL. Specifically, they aim to understand and quantify the impact of mobility on HFL's convergence speed and accuracy in the context of data heterogeneity.

Methods

The authors propose a "Mobility-aware Hierarchical Federated Averaging" (Mob-HierFAVG) algorithm. They analyze the convergence of HFL by deriving theoretical upper bounds on the loss function. This analysis considers both general tasks and specific classification tasks, incorporating different data distribution scenarios (i.i.d., edge non-i.i.d., local non-i.i.d.) and a discrete Markov chain model for vehicle mobility. They introduce a "mobility factor" to quantify the impact of mobility on convergence speed. The theoretical analysis is complemented by simulations using a city road system model (SUMO) and the CIFAR-10 dataset.

Datasets

  • CIFAR-10 dataset: Used for training and evaluating a convolutional neural network (CNN) for image classification tasks. For heterogeneous scenarios, they selected 8 classes from the dataset.

Key Insights and Ideas

  • Mobility as an Accelerator: Contrary to the common assumption that mobility is detrimental, this paper demonstrates that it can significantly improve HFL convergence speed and model accuracy, especially when dealing with heterogeneous data.
  • Data Fusion through Mobility: Vehicles acting as "data mules" effectively mix data from different edge servers as they move. This fusion of diverse data helps overcome the negative effects of data heterogeneity, leading to faster and more accurate learning.
  • Shuffling vs. Fusion Trade-off: Mobility can also lead to "shuffling" of edge models (vehicles receiving models from one edge server and uploading to another), which can degrade performance. However, the paper shows that in edge non-i.i.d. scenarios, the benefits of data fusion outweigh the drawbacks of model shuffling.
  • Speed Matters (Up to a Point): Higher vehicle speeds generally lead to faster convergence, but this effect saturates beyond a certain speed (around 6 m/s in their simulations).
  • Aggregation Period Impact: Mobility reduces the reliance on frequent cloud aggregations, potentially saving communication resources.

Key Results

  • Accuracy Improvement: Mobility increased the test accuracy of HFL by up to 15.1% in the edge non-i.i.d. case on the CIFAR-10 dataset.
  • Reduced Training Time: For high accuracy requirements, mobility significantly reduced the number of training epochs required. For example, reaching 75% accuracy with a vehicle speed of 30 m/s took 65.5% fewer epochs compared to a static scenario.
  • Edge Non-i.i.d. Benefit: The positive impact of mobility was most pronounced in the edge non-i.i.d. scenario, where edge servers hold data with distinct class distributions.
  • Saturation of Benefits: The performance gains from increased vehicle speed plateaued around 6 m/s.

Limitations and Future Work

  • Simulation-based Validation: While theoretical analysis is provided, the key results are heavily validated through simulations. Real-world deployment might introduce additional complexities.
  • Specific Mobility Model: The paper uses a discrete Markov chain for mobility. More complex or realistic mobility patterns could be explored.
  • Saturation of Benefits: The observed saturation of mobility benefits at higher speeds suggests that there might be an optimal speed range for leveraging mobility effectively.
  • Future Work: The authors suggest exploring the impact of mobility on other aspects of HFL, such as resource consumption and communication efficiency, and investigating more advanced mobility models. They also highlight the potential for mobility to reduce training costs.

Summary updated

BibTeX
@article{chen2024mobility,
  author = {Tan Chen and Jintao Yan and Yuxuan Sun and Sheng Zhou and Deniz Gündüz and Zhisheng Niu},
  title = {{Mobility Accelerates Learning: Convergence Analysis on Hierarchical Federated Learning in Vehicular Networks}},
  journal = {IEEE Trans. Vehicular Technology},
  year = {2024},
}
Figure