Robust Federated Learning Through Representation Matching and Adaptive Hyper-parameters

Hesham MostafaarXiv 2019

Abstract

Federated Learning (FL) faces significant challenges when dealing with heterogeneous (non-IID) data distributions across clients, often leading to model divergence and training instability. This paper introduces a two-pronged strategy to enhance robustness: Local Representation Matching (RM) to anchor local models to a global feature space, and an online Reinforcement Learning (RL) agent to adaptively tune hyper-parameters. Evaluated on MNIST, CIFAR10, and Keyword Spotting (KWS) benchmarks, the proposed method significantly improves accuracy and prevents training collapse in extreme non-IID scenarios.

Introduction

Federated Learning enables collaborative model training without sharing raw data, preserving privacy. However, two primary obstacles hinder its effectiveness: data heterogeneity and the difficulty of hyper-parameter tuning. In non-IID settings, local models drift toward local optima, causing the aggregated global model to perform poorly. Furthermore, traditional hyper-parameter tuning is prohibitively expensive in distributed environments. This work introduces a robust framework that integrates representation matching and self-tuning mechanisms into the standard FedAvg algorithm.

Methodology

The proposed framework introduces two novel components:

Local Representation Matching (RM)

To mitigate local model drift, clients maintain a fixed copy of the global model. During local training, a matching loss is added to the objective function. This loss forces the trainable local model's internal activations to be reconstructible from the global model's activations. By "anchoring" representations, the local model preserves globally useful features while learning from local data.

Online Adaptive Hyper-parameters (AH)

The server employs the REINFORCE algorithm to dynamically adjust hyper-parameters, such as learning rate and the number of local SGD steps. The RL agent maintains a distribution over these parameters and receives rewards based on the relative reduction in training loss at each round. This online tuning requires no additional communication overhead or multiple training trials.

Overview of the Federated Learning process with adaptive hyper-parameters and representation matching.

Experimental Results

The methods were tested on MNIST, CIFAR10, and Keyword Spotting (KWS) datasets under both IID and non-IID conditions.

Performance Gains

The combination of RM and AH (FA+RM+AH) consistently outperformed standard FedAvg (FA), particularly in non-IID settings. The most significant gains were observed in the Keyword Spotting task, where standard methods often failed to converge.

Performance comparison on the Keyword Spotting (KWS) dataset.

As shown in the results, the proposed FA+RM+AH scheme reached 81.1% accuracy on non-IID KWS data, compared to only 28.4% for standard FedAvg. Similar trends were observed for CIFAR10, where accuracy improved from 44.2% to 52.4% in non-IID scenarios.

Robustness and Efficiency

The proposed scheme demonstrated remarkable stability, preventing the "training collapse" often seen in standard FL under extreme data heterogeneity. Additionally, the adaptive tuning mechanism added less than 2% computational overhead, making it highly efficient for real-world deployment.

Conclusion

By matching feature representations and employing online reinforcement learning for hyper-parameter tuning, this work provides a robust solution to the challenges of non-IID data in Federated Learning. The approach is particularly effective for deep networks and complex tasks like keyword spotting, where traditional methods often fail. Future work may explore alternatives to the greedy reward signal and further optimize client-side computation for edge devices.

Summary updated

BibTeX
@misc{mostafa2019robust,
  author = {Hesham Mostafa},
  title = {{Robust Federated Learning Through Representation Matching and Adaptive Hyper-parameters}},
  year = {2019},
  eprint = {1912.13075},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1912.13075},
}
Figure