Adaptive Personalized Federated Learning via Multi-task Averaging of Kernel Mean Embeddings

Jean-Baptiste Fermanian, Batiste Le Bars, Aurélien Bellet

Introduction

Standard Federated Learning (FL) aims to train a single, global model that performs well on average across all participating agents. However, in domains like healthcare or astrophysics, data is often highly heterogeneous. Different hospitals, for instance, serve distinct patient demographics and follow varying medical protocols. In such scenarios, a single global model frequently fails to achieve optimal performance for any specific agent.

Personalized Federated Learning (PFL) addresses this by allowing agents to learn individual models. The primary challenge in PFL is determining who to collaborate with. Most existing methods rely on rigid assumptions, such as agents forming a fixed number of clusters or local models being minor deviations from a global baseline. When these assumptions fail, model performance degrades. This paper introduces a "structure-blind," fully adaptive approach to PFL that learns collaboration weights directly from the data distributions, requiring no prior assumptions about agent similarity.

Methodology: PFL as High-Dimensional Mean Estimation

The authors' most significant conceptual leap is reformulating personalized learning as a high-dimensional mean estimation problem. If an agent wants to improve its local model, it should identify a weighted combination of data from other agents that most closely matches its own underlying data distribution.

To achieve this, the methodology relies on three key components:

  • Kernel Mean Embeddings (KME): The authors map each agent's data distribution into a high-dimensional Reproducing Kernel Hilbert Space (RKHS). This transformation allows complex data distributions to be represented as single points (means) in a feature space, enabling the use of established statistical tools.
  • Q-Aggregation for Weighting: To find the optimal mixture weights, the method adapts "Q-aggregation," a technique designed for high-dimensional mean estimation. Q-aggregation effectively manages the bias-variance trade-off: it leverages other agents' data to reduce variance but penalizes agents with dissimilar distributions to prevent the introduction of bias.
  • Random Fourier Features (RFF) for Communication Efficiency: Sharing raw KMEs would necessitate sharing raw data, violating the core privacy tenets of FL. Instead, the authors utilize RFF to create a finite-dimensional, compressed approximation of the KME. This decouples the communication cost of determining collaboration weights from the actual model size, as agents only need to share their compressed KME once at the initialization phase.

Once the optimal collaboration weights are calculated, agents utilize standard federated optimization techniques (such as FedAvg) to minimize their resulting weighted empirical risk.

Experimental Setup

The researchers evaluated their adaptive approach across three distinct scenarios:

  1. Synthetic Concept Shift: A linear regression task where the relationship between features and labels varies across 100 agents divided into distinct groups.
  2. Synthetic Covariate Shift: A non-linear regression task using ReLU neural networks where the distribution of features varies, but the underlying relationship between features and labels remains shared.
  3. FEMNIST (Federated Extended MNIST): A real-world benchmark of handwritten characters from different writers, where each writer is treated as an agent with a unique writing style.

Key Results and Insights

The proposed method yields several quantifiable gains and practical advantages. Because it is fully adaptive, it features automatic regime switching. If all agents are similar, the system naturally behaves like standard global FL. Conversely, if an agent is highly unique, the Q-aggregation penalty terms ensure it relies predominantly on its own data, effectively reverting to local training.

In empirical tests, the method demonstrated strong robustness to heterogeneity. During the synthetic concept shift experiments, the adaptive method successfully reduced collaboration as "intra-group noise" increased, avoiding the performance degradation suffered by "Oracle" methods that rigidly relied on predefined groups. Furthermore, in covariate shift tests, the algorithm's learned weight matrix successfully recovered the underlying cluster structure of the agents without any prior knowledge that such clusters existed.

Crucially, on the FEMNIST dataset, the method consistently outperformed both purely local training and standard global FL. It never performed worse than local training—a common failure mode for many heuristic PFL algorithms. The authors also back these empirical successes with rigorous finite-sample guarantees, explicitly quantifying the statistical gain of collaboration based on the Maximum Mean Discrepancy (MMD) between agent distributions.

Limitations and Future Directions

While highly effective, the approach has a few limitations. First, performance is sensitive to kernel selection (e.g., Gaussian vs. Laplace). While universal kernels work well in theory, optimizing kernel parameters for specific data types remains an open challenge. Second, regarding privacy, sharing KMEs is significantly safer than sharing raw data, but the exact privacy loss associated with sharing these embeddings requires formal quantification, potentially through Differential Privacy frameworks. Finally, the current implementation learns the weights first and the model second. Future work will explore simultaneous learning, extending the framework to update weights and models in a fully end-to-end fashion.

Summary updated

BibTeX
@inproceedings{fermanian2026adaptive,
  author = {Jean-Baptiste Fermanian and Batiste Le Bars and Aurélien Bellet},
  title = {{Adaptive Personalized Federated Learning via Multi-task Averaging of Kernel Mean Embeddings}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=ADHGbxsREr},
}
Figure