User Assignment and Resource Allocation for Hierarchical Federated Learning over Wireless Networks

Tinghao Zhang, Kwok-Yan Lam, Jun ZhaoarXiv 2023

Abstract

The large population of wireless users is a key driver of data-crowdsourced Machine Learning (ML). However, data privacy remains a significant concern. Federated Learning (FL) encourages data sharing in ML without requiring data to leave users' devices but imposes heavy computation and communications overheads on mobile devices. Hierarchical FL (HFL) alleviates this problem by performing partial model aggregation at edge servers. HFL can effectively reduce energy consumption and latency through effective resource allocation and appropriate user assignment. Nevertheless, resource allocation in HFL involves optimizing multiple variables, and the objective function should consider both energy consumption and latency, making the development of resource allocation algorithms very complicated. Moreover, it is challenging to perform user assignment, which is a combinatorial optimization problem in a large search space. This article proposes a spectrum resource optimization algorithm (SROA) and a two-stage iterative algorithm (TSIA) for HFL. Given an arbitrary user assignment pattern, SROA optimizes CPU frequency, transmit power, and bandwidth to minimize system cost. TSIA aims to find a user assignment pattern that considerably reduces the total system cost. Experimental results demonstrate the superiority of the proposed HFL framework over existing studies in energy and latency reduction.

Introduction

Standard Federated Learning (FL) allows mobile devices to train models locally without sharing raw data, but it often struggles with high communication overhead and battery drain on the devices. Hierarchical Federated Learning (HFL) introduces an intermediate layer of edge servers to perform partial model aggregations, which helps reduce the load on the central cloud.

However, HFL introduces a "double-edged sword" of complexity:

  1. Resource Allocation: How should a device split its limited CPU frequency and transmit power to minimize both time and energy?
  2. User Assignment: Which edge server should a mobile user connect to? A poor assignment leads to "stragglers"—overloaded edge servers that delay the entire global training process.

The authors tackle this as a combinatorial optimization problem where the goal is to minimize a weighted sum of total time delay and total energy consumption.

Methodology

The researchers decomposed the complex optimization problem into two manageable modules: the Spectrum Resource Optimization Algorithm (SROA) and the Two-Stage Iterative Algorithm (TSIA).

System architecture of the proposed HFL framework, illustrating the interaction between mobile users, edge servers, and the cloud, alongside the TSIA and SROA optimization modules.

Spectrum Resource Optimization Algorithm (SROA)

SROA handles the "how much" part of the problem. Assuming a fixed user assignment, SROA jointly optimizes the CPU frequency, transmit power of mobile users, and the bandwidth allocated by edge servers. It uses a divide-and-conquer strategy and binary search to find the optimal time-delay threshold that balances energy use. The joint optimization is critical; the authors show that optimizing bandwidth without considering CPU frequency (or vice versa) leads to sub-optimal results.

Two-Stage Iterative Algorithm (TSIA)

TSIA handles the "where" part—the user assignment. Because user assignment is a massive combinatorial search space, TSIA uses a heuristic approach:

  • Stage 1: It identifies "costly" edge servers (those with high latency/energy) and moves their "costly" users (those hogging the most bandwidth) to more "economic" servers.
  • Stage 2: It performs fine-tuning by moving "economic" users to further balance the workload.

Unlike baseline methods that rely on random adjustments, TSIA’s deterministic approach leads to much faster convergence.

Experimental Evaluation

The framework was evaluated using three standard computer vision benchmarks: FashionMNIST, CIFAR-10, and ImageNette.

Key Results

  • Cost Reduction: SROA achieved significantly lower objective values (system cost) than baselines like FEDL and JDSRA in both FDMA and OFDMA wireless schemes.
  • Efficiency vs. Traditional FL: HFL consistently outperformed traditional FL. For example, on the FashionMNIST dataset, the HFL framework achieved similar accuracy but with a much lower system cost (roughly 1300 vs 1800 units).
  • Convergence Speed: TSIA reached a stable, optimized user assignment in just 20 to 50 iterations, whereas the baseline HFEL required up to 400 iterations to reach a similar state.

Conclusion

This paper presents a robust framework for Hierarchical Federated Learning that addresses the critical bottlenecks of resource allocation and user assignment. By jointly optimizing spectrum resources and employing a two-stage iterative algorithm for user placement, the system significantly reduces energy consumption and latency. Future work will address challenges such as user mobility, data heterogeneity, and the integration of advanced privacy protections like Differential Privacy.

Summary updated

BibTeX
@misc{zhang2023user,
  author = {Tinghao Zhang and Kwok-Yan Lam and Jun Zhao},
  title = {{User Assignment and Resource Allocation for Hierarchical Federated Learning over Wireless Networks}},
  year = {2023},
  eprint = {2309.09253},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.09253},
}
Figure