Skip to main content
QUICK REVIEW

[Paper Review] What Do We Mean by Generalization in Federated Learning?

Honglin Yuan, Warren R. Morningstar|arXiv (Cornell University)|Oct 27, 2021
Privacy-Preserving Technologies in DataComputer Science85 references12 citations
TL;DR

This paper introduces a framework to disentangle two distinct generalization gaps in federated learning: the out-of-sample gap (performance difference for participating clients) and the participation gap (difference between participating and non-participating clients). It demonstrates that significant participation gaps exist across diverse federated datasets, especially in naturally partitioned data, and proposes semantic partitioning—a synthetic data generation method that mimics real-world data distribution patterns without requiring external user information—enabling more realistic generalization studies in FL.

ABSTRACT

Federated learning data is drawn from a distribution of distributions: clients are drawn from a meta-distribution, and their data are drawn from local data distributions. Thus generalization studies in federated learning should separate performance gaps from unseen client data (out-of-sample gap) from performance gaps from unseen client distributions (participation gap). In this work, we propose a framework for disentangling these performance gaps. Using this framework, we observe and explain differences in behavior across natural and synthetic federated datasets, indicating that dataset synthesis strategy can be important for realistic simulations of generalization in federated learning. We propose a semantic synthesis strategy that enables realistic simulation without naturally-partitioned data. Informed by our findings, we call out community suggestions for future federated learning works.

Motivation & Objective

  • To address the lack of clear distinction between generalization gaps in federated learning, particularly the overlooked participation gap.
  • To model federated data as a distribution of distributions, where clients are drawn from a meta-population and their data from local distributions.
  • To empirically demonstrate that participation gaps significantly impact model performance and are often neglected in existing FL evaluation frameworks.
  • To propose a semantic partitioning strategy that enables realistic simulation of generalization behavior without requiring naturally partitioned data.
  • To provide actionable recommendations for future federated learning research based on insights into data heterogeneity and generalization behavior.

Proposed method

  • Propose a three-way split for measuring generalization: training loss, out-of-sample loss (on participating clients), and participation loss (on non-participating clients).
  • Define the participation gap as the difference in expected risk between participating and non-participating clients, formalized using a meta-distribution over client data distributions.
  • Introduce semantic partitioning: a synthetic data generation method that clusters data by semantic similarity (e.g., image content) using Gaussian mixture models and optimal multi-partite matching based on KL divergence.
  • Use variational autoencoders (VAEs) with IWAE-based entropy estimation to compare data distribution entropy across naturally-partitioned, syntactically-partitioned, and semantically-partitioned clients.
  • Apply a progressive bipartite matching heuristic to solve the multi-partite matching problem efficiently, minimizing KL divergence between client clusters.
  • Evaluate generalization gaps across six federated learning tasks (four image, two text) using metrics like accuracy and loss on held-out client data.

Experimental results

Research questions

  • RQ1How do the out-of-sample gap and participation gap differ in magnitude and behavior across naturally-partitioned and synthetically-partitioned federated datasets?
  • RQ2To what extent does data heterogeneity, particularly in input distribution entropy, explain the existence and size of the participation gap?
  • RQ3Can a synthetic data generation strategy—semantic partitioning—produce generalization behavior that closely mirrors real-world federated data without relying on naturally partitioned data?
  • RQ4How do factors such as client count and client diversity influence the magnitude of the participation gap?
  • RQ5What are the implications of ignoring the participation gap for evaluating federated learning models and designing future FL benchmarks?

Key findings

  • Significant participation gaps exist across six federated learning tasks, with performance differences between participating and non-participating clients often exceeding 10% in accuracy on image and text tasks.
  • Naturally-partitioned datasets exhibit lower client data entropy (40 Nats) compared to synthetically partitioned data (50 Nats), indicating stronger data correlation and non-IID structure in real-world data.
  • Semantic partitioning reduces the gap between synthetic and real-world generalization behavior, achieving intermediate entropy (45 Nats) and better mimicking real data distributions.
  • Label-based partitioning leads to higher participation gaps than semantic partitioning due to spurious correlations and non-IID data patterns.
  • The participation gap is strongly correlated with data heterogeneity, particularly in input distribution entropy, and is a critical but previously neglected dimension of generalization in FL.
  • The study reveals that many existing FL benchmarks fail to capture the true generalization behavior due to oversimplified data partitioning strategies, especially when relying on label-based splits.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.