Async-HFL: Efficient and Robust Asynchronous Federated Learning in Hierarchical IoT Networks

Xiaofan Yu, Lucy Cherkasova, Harsh Vardhan, Quanling Zhao, Emily Ekaireb, Xiyuan Zhang, Arya Mazumdar, Tajana Rosing

Federated Learning (FL) has emerged as a promising paradigm for training machine learning models on decentralized data while preserving privacy. However, deploying FL in the real-world Internet-of-Things (IoT) landscape presents significant challenges. IoT networks are inherently hierarchical, consisting of edge devices, gateways, and cloud servers, and are plagued by device heterogeneity and unreliable connectivity.

Presented at IoTDI '23, Async-HFL is a novel framework designed to address these bottlenecks by introducing a three-tier asynchronous architecture that optimizes both learning performance and communication efficiency.

The Bottleneck: Hierarchy and Heterogeneity

Standard FL typically relies on a synchronous "star" topology where a central server waits for all participating clients to submit their model updates before performing an aggregation. In IoT environments, this approach suffers from two primary issues:

  1. Network Hierarchy: IoT deployments are rarely flat. Data usually flows from sensors to local gateways (e.g., routers or base stations) before reaching the cloud. Standard FL ignores this intermediate layer, leading to inefficient bandwidth usage.
  2. The Straggler Problem: Devices have varying computational capabilities and network speeds. In a synchronous setup, the entire training process is throttled by the slowest device (the "straggler"). If a device drops offline, the system may stall or lose valuable data.

While asynchronous FL exists to mitigate stragglers, most implementations are designed for simple two-tier (server-client) systems and fail to account for the multi-layered nature and bandwidth constraints of IoT.

The Async-HFL Solution

Async-HFL introduces a systematic three-tier architecture: Edge Devices → Gateway Aggregators → Cloud Server. The framework is built on three core pillars:

1. Double-Layered Asynchrony

Unlike previous hierarchical models that often retain synchronous steps at the gateway level, Async-HFL implements asynchrony at both tiers. Gateways aggregate models from devices as soon as they are received, and the cloud server aggregates updates from gateways upon arrival. This ensures that high-performing devices and gateways are never idling, maximizing hardware utilization across the network.

2. Learning Utility via Gradient Diversity

Selecting the right devices for training is critical. Rather than simply selecting devices with the highest training loss, Async-HFL introduces a Learning Utility metric based on Gradient Diversity. This metric balances two factors:

  • Gradient Affinity: How well a device’s update aligns with the current global learning direction.
  • Gradient Diversity: The amount of unique, non-redundant information a device provides compared to its peers.

By prioritizing diversity, the system becomes significantly more robust when dealing with non-IID (Independent and Identically Distributed) data, which is common in IoT where different sensors capture different environments.

3. Intelligent System Management

The framework optimizes the network through two Integer Linear Program (ILP) formulations:

  • Gateway Level: Real-time device selection based on the calculated learning utility and local latency.
  • Cloud Level: Periodic re-assignment of device-to-gateway connections to balance network load and optimize the overall topology.

To further reduce overhead, Async-HFL employs Principal Component Analysis (PCA) to compress gradients, ensuring that the metadata required for management does not saturate the network.

Experimental Evaluation

The researchers evaluated Async-HFL using a comprehensive suite of benchmarks, including image classification (MNIST, CIFAR-10), language modeling (Shakespeare), Human Activity Recognition (HAR), and environmental monitoring (HPWREN).

The evaluation utilized ns-3 network simulations mapped onto the real-world node locations of NYCMesh, a community wireless network in New York. Additionally, the team conducted physical trials using a cluster of Raspberry Pis to test the framework's resilience against real-world network interference.

Key Results and Insights

  • Faster Convergence: Async-HFL achieved convergence 1.08x to 1.31x faster in wall-clock time compared to state-of-the-art asynchronous baselines.
  • Communication Efficiency: The framework reduced total communication costs by up to 21.6%.
  • Robustness: In physical deployments, Async-HFL remained stable despite network fluctuations and device dropouts, whereas synchronous methods experienced severe delays.
  • Staleness Management: To prevent "stale" updates (older model versions) from negatively impacting the global model, the authors implemented a staleness-aware weighting mechanism that discounts updates based on their age.

Limitations and Future Work

While Async-HFL excelled in most scenarios, it was slightly slower than some synchronous methods on the Shakespeare dataset. This suggests that complex NLP tasks may be more sensitive to the "noise" introduced by asynchronous stale updates. Future research will focus on refining the framework for complex natural language processing and exploring advanced compression techniques beyond PCA to further minimize management overhead.

By treating the hierarchical nature of IoT as a feature rather than a constraint, Async-HFL provides a scalable and efficient path forward for decentralized intelligence in the IoT era.

Summary updated

BibTeX
@inproceedings{yu2023async,
  author = {Xiaofan Yu and Lucy Cherkasova and Harsh Vardhan and Quanling Zhao and Emily Ekaireb and Xiyuan Zhang and Arya Mazumdar and Tajana Rosing},
  title = {{Async-HFL: Efficient and Robust Asynchronous Federated Learning in Hierarchical IoT Networks}},
  booktitle = {IoTDI},
  year = {2023},
}
Figure