Generalization in Federated Learning: A Conditional Mutual Information Framework

Ziqiao Wang, Cheng Long, Yongyi Mao

Introduction

Federated Learning (FL) has emerged as a powerful paradigm for training machine learning models on decentralized data while preserving user privacy. However, understanding how these models generalize remains a significant theoretical challenge. Unlike centralized learning, where we primarily concern ourselves with the "out-of-sample" gap, FL introduces a complex two-level hierarchy: data is distributed across heterogeneous clients, and often, only a small subset of the total population participates in any given training round.

This paper introduces a novel information-theoretic framework based on Conditional Mutual Information (CMI) to provide tight, non-vacuous generalization bounds for FL. By accounting for both local data heterogeneity and the "participation gap," the authors offer a unified theory that bridges the gap between algorithmic design and real-world performance.

The Participation Gap Problem

In standard machine learning, generalization refers to the model's performance on new data from the same distribution. In cross-device FL scenarios—such as mobile applications—the challenge is twofold. First, the data is often non-IID (not independent and identically distributed), meaning local datasets vary significantly between users. Second, there is a critical participation gap: the risk that a model optimized for a small group of training clients fails to perform for the millions of non-participating clients.

Previous attempts to use standard Mutual Information (MI) to bound these errors often resulted in "vacuous" bounds—theoretical limits so loose they offer no practical guidance. This research addresses this by extending the CMI framework to handle the hierarchical nature of federated systems.

A Unified CMI Framework

The authors' core innovation is the "superclient" construction. By treating the set of potential clients as a meta-distribution and using a matrix-based representation of data, they can mathematically isolate different sources of error. The total generalization error is decomposed into two primary components:

  1. Participation Gap: The difference in risk between participating and non-participating clients, driven by client-level heterogeneity.
  2. Out-of-Sample Gap: The average local generalization error across the clients that actually participated in training.

To make these bounds practical, the authors derive Evaluated CMI (e-CMI). These "fast-rate" bounds involve one-dimensional random variables (loss values) rather than high-dimensional model parameters, making them computationally feasible to estimate and significantly tighter than traditional square-root bounds.

Empirical Validation

The framework was rigorously tested using MNIST and CIFAR-10 datasets under extreme non-IID conditions, where each client only observed two classes of data.

Generalization error and theoretical bounds on MNIST and CIFAR-10 datasets.

As shown in the empirical results, the proposed "Fast-rate Bound" (orange) tracks the actual generalization error (blue) much more closely than the standard "Square-root Bound" (green). This is consistent across varying numbers of samples per client ($n$) and total participating clients ($K$). On MNIST, the fast-rate bound achieved a convergence rate of $O(1/K + 1/Kn)$, demonstrating that the framework successfully captures the dynamics of model averaging in algorithms like FedAvg.

Privacy and Generalization

A key insight of this work is the formal mathematical link between Differential Privacy (DP) and generalization. The CMI bounds demonstrate that if an FL algorithm is designed to be private—meaning it leaks minimal information about which clients participated or the specifics of their local data—it is guaranteed to generalize better. Specifically, for model-averaging algorithms, enforcing local privacy at the client level is sufficient to ensure global generalization, even if the central server is not strictly private.

Conclusion

This framework provides a robust theoretical foundation for understanding generalization in the presence of data heterogeneity and partial client participation. By moving beyond vacuous MI bounds to tight e-CMI estimates, the research offers a practical tool for evaluating FL algorithms. Future work remains to extend these findings to "interpolating" models that reach zero training error and to explore the impact of communication frequency on generalization performance.

Summary updated

BibTeX
@inproceedings{wang2025generalization,
  author = {Ziqiao Wang and Cheng Long and Yongyi Mao},
  title = {{Generalization in Federated Learning: A Conditional Mutual Information Framework}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=kOttDCDYJp},
}
Figure