Abstract
Federated Learning (FL) typically aims to train a single global model, often resulting in an "average user" model that fails to satisfy diverse individual preferences. This issue is exacerbated by Differential Privacy (DP), where the added noise frequently overwhelms personalized signals. We introduce FedEmbed, a framework that personalizes FL by clustering users into sub-populations via on-device personal embeddings. FedEmbed employs a shared feature encoder alongside specialized model heads for different user groups. Experimental results on MNIST and a new synthetic speech-preference dataset show that FedEmbed significantly outperforms traditional methods, achieving up to a 45% improvement in F1-score under DP constraints.
Introduction: The "Average User" Problem
Standard Federated Learning (FedAvg) seeks to train a single global model across decentralized data. While effective for general tasks, this "one size fits all" approach encounters two critical hurdles:
- Conflicting Labels: Users often have subjective preferences. For instance, in virtual assistants, one user may prefer a monotone voice while another prefers an emotive one. Averaging these gradients results in a model that serves neither group effectively.
- The Privacy Tax: Differential Privacy (DP) adds noise to gradients to provide formal privacy guarantees. In personalized settings, this noise often masks the specific "signal" of individual updates, causing models to default to majority preferences.
FedEmbed addresses these gaps by moving away from individual-level personalization—which is too fragile for DP—toward sub-population-level personalization. This ensures enough data per group to overcome DP noise while avoiding the "average user" trap.
The FedEmbed Framework
FedEmbed introduces a multi-part architecture designed to balance shared knowledge with group-specific needs.
Key Components
- Personal Embeddings: Each client maintains a unique embedding vector that remains on-device. This vector conditions the model on the user's specific style without requiring DP noise, as it is never transmitted.
- Shared Backbone: A global feature encoder is learned across all users to capture general data representations (e.g., speech processing or shape recognition).
- Sub-Population Heads: Instead of a single global head, FedEmbed utilizes $K$ specialized heads. Users are assigned to a head based on their preferences, allowing similar users to pool data and create a signal strong enough to survive DP noise.
- Clustering Mechanisms: The framework supports unsupervised clustering via Self-Organizing Maps (SOM) or supervised "Prototype Assignment" using triplet loss to align users with specific sub-population prototypes.
Experimental Evaluation
The researchers evaluated FedEmbed on two benchmarks: a personalized version of MNIST and a challenging new Synthetic Speech-Preference Dataset derived from LibriTTS, featuring 20 distinct synthetic voices. This dataset is particularly difficult because voice preferences are subtle and overlapping.
Key Results
- Performance Gains: FedEmbed achieved up to a 45% improvement in F1-score over baselines like FedRep and PFedMe in the presence of Differential Privacy.
- Robustness to Noise: While baseline methods saw performance plummet under Gaussian noise, FedEmbed remained stable, effectively recovering user preferences.
- Efficiency: The inclusion of auxiliary tasks, such as sub-population prediction, was found to speed up convergence by approximately 2x by organizing the latent space more effectively.
Conclusion
FedEmbed provides a scalable and privacy-preserving solution for personalized federated learning. By leveraging sub-population clustering and on-device embeddings, it overcomes the limitations of the "average user" model and the destructive impact of DP noise on individual personalization. Future work will focus on handling dynamic user preferences and extreme class imbalances in highly private settings.
Summary updated