Information-Theoretic Perspective of Federated Learning

Linara Adilova, Julia Rosenzweig, Michael KamparXiv 2019

Introduction

Federated Learning (FL) has become a cornerstone for training machine learning models on decentralized data, such as photos on smartphones, without compromising privacy. The standard approach, Federated Averaging (FedAvg), involves training models locally and then averaging their weights to create a global model.

While effective for convex optimization, deep neural networks are non-convex. Averaging the weights of two networks that have "diverged" into different areas of the loss landscape can result in a global model that performs worse than either parent—a phenomenon known as the "weight-space symmetry" problem. This paper investigates the conditions under which averaging is beneficial through the lens of Information Theory.

Methodology: The Information Bottleneck

The researchers apply the Information Bottleneck principle to FL, tracking two key metrics using the Ensemble Dependency Graph Estimator (EDGE):

  1. $I(Z; X)$: Mutual Information between the internal representation ($Z$) and the input ($X$), measuring raw data retention.
  2. $I(Z; Y)$: Mutual Information between the representation ($Z$) and the labels ($Y$), measuring predictive power.

Experiments were conducted using a LeNet architecture on two nodes with the CIFAR-10 dataset, comparing one-shot averaging against periodic synchronization in both IID and Non-IID settings.

Key Insights: Information Collapse and Synchronization

A critical finding is the "Information Collapse." In IID scenarios, if nodes train independently for too long, the mutual information in the averaged model eventually drops drastically. While local models may maintain high accuracy, the averaged weights diverge too far to be combined effectively.

Mutual Information with labels ($I(Z;Y)$) over time, showing the eventual collapse of the averaged model's predictive power compared to local nodes.

Periodic synchronization acts as a "reset," pulling nodes back into a shared region of the weight space and stabilizing information flow. In Non-IID settings, averaging is the primary mechanism for information propagation between nodes; without frequent synchronization, the global model fails to learn classes unique to specific nodes.

Experimental Results and Visualizing Failure

The study demonstrates that synchronization frequency is paramount. In IID tests, periodic synchronization achieved over 73% accuracy, whereas one-shot averaging plummeted to 36%. In difficult Non-IID splits, frequent synchronization (every 100 batches) was required to reach roughly 60% accuracy.

A failed averaging scenario where the global model's mutual information with labels ($I(Z;Y)$) remains near zero despite high local node information.

The plots clearly visualize these failures: in unsuccessful averaging attempts, the mutual information between the representation and the labels ($I(Z;Y)$) for the global model trends toward zero even while local models remain highly informative.

Conclusion and Future Work

This information-theoretic approach provides a potential "canary in the coal mine" for FL. Monitoring Mutual Information could enable adaptive synchronization systems that trigger aggregations only when local models begin to diverge significantly in their information content. Future work will explore scaling these insights to thousands of nodes and larger architectures like Transformers.

Summary updated

Abstract

An approach to distributed machine learning is to train models on local datasets and aggregate these models into a single, stronger model. A popular instance of this form of parallelization is federated learning, where the nodes periodically send their local models to a coordinator that aggregates them and redistributes the aggregation back to continue training with it. The most frequently used form of aggregation is averaging the model parameters, e.g., the weights of a neural network. However, due to the non-convexity of the loss surface of neural networks, averaging can lead to detrimental effects and it remains an open question under which conditions averaging is beneficial. In this paper, we study this problem from the perspective of information theory: We measure the mutual information between representation and inputs as well as representation and labels in local models and compare it to the respective information contained in the representation of the averaged model. Our empirical results confirm previous observations about the practical usefulness of averaging for neural networks, even if local dataset distributions vary strongly. Furthermore, we obtain more insights about the impact of the aggregation frequency on the information flow and thus on the success of distributed learning. These insights will be helpful both in improving the current synchronization process and in further understanding the effects of model aggregation.
BibTeX
@misc{adilova2019information,
  author = {Linara Adilova and Julia Rosenzweig and Michael Kamp},
  title = {{Information-Theoretic Perspective of Federated Learning}},
  year = {2019},
  eprint = {1911.07652},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.07652},
}
Figure