Learn to Select: Efficient Cross-device Federated Learning via Reinforcement Learning

Chunlin Tian, Zhan Shi, Li LiOpenReview 2023 · Submission to Tiny Papers @ ICLR · OpenReview

TL;DR: FedRank optimizes Federated Learning (FL) by treating edge device selection as a "Learning to Rank" problem solved via Reinforcement Learning (RL). By using imitation learning to "warm up" the agent with existing high-performing heuristics, the authors eliminate the typical RL "cold start" problem, resulting in up to 12.75% higher accuracy and 2.25x faster training.

The Challenge of Device Selection in Federated Learning

Federated Learning allows mobile devices to collaboratively train a global model without sharing raw data. However, the "cross-device" reality is messy: some phones are slow (stragglers), some have low battery, and some possess data that is unhelpful for the model's convergence.

The core challenge is device selection: which subset of devices should the server pick for each training round?

  1. Heuristic-based methods (fixed rules) are often too rigid and fail to adapt to new, unseen environments.
  2. Reinforcement Learning (RL) methods are flexible but suffer from a "cold start"—they perform poorly in early rounds because the agent is still learning by trial and error, which is costly in a real-world FL setup.

The FedRank Solution

To address these issues, the authors introduce FedRank, a novel approach that combines three sophisticated techniques:

FedRank System Architecture and Accuracy Table
  • Learning to Rank (LTR): In device selection, the absolute reward value doesn't actually matter—only the relative order does. Instead of trying to predict an absolute "utility score" for a device (pointwise), FedRank uses a pairwise loss function. It learns to compare devices to determine which one is better than another, making it highly effective at selecting the "Top-K" participants.
  • Imitation Learning Warmup: To solve the cold-start problem, FedRank doesn't start from scratch. It is pre-trained to mimic Harmony, a state-of-the-art analytical heuristic. This ensures the agent starts with "expert" knowledge before it begins fine-tuning itself through real-world interactions, bypassing the "random guessing" phase.
  • DQN-based Scheduler: The system uses a Deep Q-Network (DQN) that takes in a "state" vector for each device—including training latency, communication bandwidth, energy cost, and current local loss—to make its selection decisions. A "probing" step allows devices to perform a single epoch of training to report their current status, providing the RL agent with fresh, high-quality data.

Experimental Setup

The researchers evaluated FedRank using two standard computer vision benchmarks: MNIST (LeNet-5) and CIFAR-10 (VGG16). To make the simulation realistic, they used a hybrid testbed incorporating hardware profiles from four real-world mobile phones: Google Pixel 6, OnePlus 10 Pro, Redmi Note 10, and Realme Q3s. This allowed them to simulate actual system heterogeneity, such as varying CPU speeds and network conditions.

Key Results

FedRank consistently outperformed baselines like FedAvg (random selection), FedMarl (multi-agent RL), and Harmony (heuristic).

Accuracy vs. Time for VGG16 on CIFAR-10
  • Accuracy Gains: FedRank improved model accuracy by 2.59% to 12.75% compared to the baselines.
  • Significant Speedup: It reached target accuracy levels much faster, accelerating the training process by 1.76x on average (and up to 2.25x in some scenarios).
  • Convergence: As seen in the accuracy-to-time graphs, FedRank achieves a much smoother and steeper learning curve, especially in the difficult CIFAR-10/VGG16 setup.

Limitations and Future Work

  • Heuristic Dependency: The effectiveness of the warmup phase depends on the quality of the heuristic being imitated. If the initial heuristic is poor, the RL agent might start with "bad habits."
  • Scale: As a Tiny Paper, the evaluation was limited to 100 devices in the pool. Future work could explore how FedRank scales to thousands or millions of concurrent devices.
  • Complexity: Implementing a DQN scheduler and imitation learning adds computational overhead to the central server, which must be balanced against the training speed gains.

Summary updated

Abstract

Federated Learning (FL) is a collaborative training method that provides data privacy in the age of big data. However, it is often ineffective on edge devices due to their heterogeneous and constrained resources. The primary challenge is to identify devices with useful training data and available compute capability, which are both time-varying. In this paper, we propose FedRank, a novel federated learning approach based on reinforcement learning. Our approach addresses the device selection problem by casting it as a ranking problem and employing a pairwise training scheme. Furthermore, we leverage imitation learning from state-of-the-art algorithms to eliminate the cold start phenomenon that offsets the benefits of previous learning-based approaches. Experimental results show that FedRank improves model accuracy by 2.59\%-12.75\%, and accelerates the training process by up to 2.25$\times$ and 1.76$\times$ on average at the same time.
BibTeX
@misc{tian2023learn,
  author = {Chunlin Tian and Zhan Shi and Li Li},
  title = {{Learn to Select: Efficient Cross-device Federated Learning via Reinforcement Learning}},
  year = {2023},
  url = {https://openreview.net/forum?id=wecTsVkrjit},
  howpublished = {OpenReview},
  note = {Submitted to Tiny Papers @ ICLR},
}
Figure