Federated Learning with Heterogeneous Data: A Superquantile Optimization Approach

Krishna Pillutla, Yassine Laguel, Jérôme Malick, Zaïd HarchaouiarXiv 2021 · OpenReview

Abstract

We present a federated learning framework that is designed to robustly deliver good predictive performance across individual clients with heterogeneous data. The proposed approach hinges upon a superquantile-based learning objective that captures the tail statistics of the error distribution over heterogeneous clients. We present a stochastic training algorithm that interleaves differentially private client filtering with federated averaging steps. We prove finite time convergence guarantees for the algorithm: $O(1/\sqrt{T})$ in the nonconvex case in $T$ communication rounds and $O(\exp(-T/\kappa^{3/2}) + \kappa/T)$ in the strongly convex case with local condition number $\kappa$. Experimental results on benchmark datasets for federated learning demonstrate that our approach is competitive with classical ones in terms of average error and outperforms them in terms of tail statistics of the error.

Introduction

Standard Federated Learning (FL) algorithms, such as FedAvg, typically aim to minimize the average loss across all participating clients. While effective for homogeneous populations, this objective often fails in real-world "cross-device" scenarios characterized by statistical heterogeneity. In these settings, a model optimized for the global average may perform poorly on "tail" clients—those whose data distributions differ significantly from the majority or who possess very little data. This creates a reliability gap where the users most in need of a robust model are ignored by the global average.

To address this, we introduce $\Delta$-FL, a framework that utilizes "superquantiles" to handle data heterogeneity. By optimizing for the average of the worst-performing clients rather than the population mean, $\Delta$-FL ensures robust performance for tail users while maintaining competitive average accuracy and providing formal privacy guarantees.

The Superquantile Objective

The core innovation of $\Delta$-FL is the use of the superquantile (also known as Conditional Value at Risk, or CVaR) as the learning objective. For a given tail threshold $\theta \in (0, 1]$, the $(1-\theta)$-superquantile is defined as the average of the losses that fall in the worst $\theta$ fraction of the distribution.

The superquantile captures the tail behavior of the error distribution by averaging the losses above a specific quantile threshold.

This objective allows for a flexible trade-off: if $\theta=1$, the framework recovers standard average loss (FedAvg); as $\theta \to 0$, it approaches a "worst-case" minimax optimization. In between, the superquantile provides a "tail mean" that is smoother and more stable to optimize than the absolute maximum loss, offering a more reliable gradient signal for training.

The $\Delta$-FL Algorithm

The $\Delta$-FL algorithm is a stochastic training procedure that interleaves standard federated averaging with a differentially private (DP) filtering step. In each iteration $t$ of training, the following steps are performed:

  1. Quantile Estimation: The server and clients collaborate to estimate the $(1-\theta)$-quantile of current losses using a DP hierarchical histogram method to protect user privacy.
  2. Client Filtering: Only clients whose local loss is above this estimated quantile (the "tail clients") contribute their model updates to the global aggregate.
  3. Aggregation: The server updates the global model using only these tail updates via secure aggregation.
Schematic of the Δ-FL framework showing model parameter trajectories over time, the secure aggregation process during training iterations, and client selection at test time.

Theoretical and Empirical Analysis

We provide finite-time convergence guarantees for the $\Delta$-FL algorithm. In the non-convex case, it achieves a rate of $O(1/\sqrt{T})$ in $T$ communication rounds. For strongly convex objectives, the rate is $O(\exp(-T/\kappa^{3/2}) + \kappa/T)$, where $\kappa$ is the local condition number.

Beyond convergence, $\Delta$-FL offers several key advantages:

  • Distributional Robustness: Minimizing the superquantile is equivalent to minimizing the worst-case loss over all possible mixtures of client distributions, linking $\Delta$-FL to Distributionally Robust Optimization (DRO).
  • Stability: Unlike Agnostic FL (AFL), which focuses on the single worst client, $\Delta$-FL averages the entire tail, providing a more stable optimization path.
  • Fairness for Data-Poor Users: Tail clients are often those with the least data. $\Delta$-FL naturally prioritizes these users, preventing the global model from over-fitting to data-rich "power users."

Key Results

Experimental evaluations on benchmarks like EMNIST (character recognition) and Sent140 (sentiment analysis) demonstrate that $\Delta$-FL consistently produces models with "thinner tails" in their error distribution. On EMNIST, $\Delta$-FL improved the 90th percentile error by 3.3% absolute (12% relative) compared to vanilla FedAvg. Furthermore, the approach maintained a superior privacy-utility tradeoff for tail error in DP experiments compared to standard DP-FedAvg.

Conclusion and Future Work

$\Delta$-FL provides a robust mechanism for federated learning in the presence of heterogeneous data. While it requires larger client cohorts to ensure sufficient updates from the tail, it significantly improves performance for the most challenging users. Future research will explore adapting the tail threshold dynamically to account for diurnal availability patterns and combining tail-robustness with local model personalization.

Summary updated

Abstract

We present a federated learning framework that is designed to robustly deliver good predictive performance across individual clients with heterogeneous data. The proposed approach hinges upon a superquantile-based learning objective that captures the tail statistics of the error distribution over heterogeneous clients. We present a stochastic training algorithm that interleaves differentially private client filtering with federated averaging steps. We prove finite time convergence guarantees for the algorithm: $O(1/\sqrt{T})$ in the nonconvex case in $T$ communication rounds and $O(\exp(-T/\kappa^{3/2}) + \kappa/T)$ in the strongly convex case with local condition number $\kappa$. Experimental results on benchmark datasets for federated learning demonstrate that our approach is competitive with classical ones in terms of average error and outperforms them in terms of tail statistics of the error.
BibTeX
@misc{pillutla2021federated,
  author = {Krishna Pillutla and Yassine Laguel and Jérôme Malick and Zaïd Harchaoui},
  title = {{Federated Learning with Heterogeneous Data: A Superquantile Optimization Approach}},
  year = {2021},
  eprint = {2112.09429},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2112.09429},
}
Figure