Introduction: The Challenge of the "Stateless" Edge
Standard Federated Learning (FL) typically aims to train a single global model that performs well across all participating devices. However, real-world data is inherently non-IID (Independent and Identically Distributed). For instance, in handwriting recognition, a German user might cross their "7"s, while an American user might not. A monolithic global model often fails to capture these nuances, leading to suboptimal performance for diverse user groups.
While personalized FL has emerged to address this, most existing methods assume a stateful environment where devices participate in numerous training rounds, allowing them to refine local model weights over time. In contrast, many cross-device FL applications (e.g., mobile phones) are stateless: a device may participate only once or twice and never be seen again. The core challenge is providing a personalized experience for these "stranger" clients without requiring persistent local storage.
Methodology: Federated Variational Inference (FedVI)
To solve this, we introduce Federated Variational Inference (FedVI). This approach treats FL as a hierarchical generative model, specifically a mixed-effects model, and leverages Variational Inference to adapt to new users on-the-fly.
Hierarchical Parameters and Amortized Inference
FedVI decomposes model parameters into two sets:
- Global Parameters ($\theta$): These capture universal features shared across all clients.
- Local Parameters ($\beta_k$): These capture client-specific nuances.
Instead of storing $eta_k$ on the device, FedVI employs amortized inference via a "Posterior Constructor Model." When a client joins, they use a small "support set" of their local data as input to this constructor. The constructor then predicts the optimal local parameters for that specific user. This allows for instantaneous personalization even for clients the system has never encountered before.
The Objective Function
The training objective is a generalized Evidence Lower Bound (ELBO). A critical component is the "Local Regularizer"—a KL-divergence term that prevents local parameters from deviating excessively from the global prior. This regularization is essential for maintaining generalization. Furthermore, the authors utilize PAC-Bayes analysis to theoretically bound the "true risk" on unseen data by minimizing this objective.
Experimental Evaluation
The researchers evaluated FedVI against state-of-the-art methods on two major benchmarks:
- FEMNIST: Handwritten digits/characters from ~3,400 writers, representing natural heterogeneity.
- CIFAR-100: Partitioned using Latent Dirichlet Allocation (LDA) to create synthetic class-based heterogeneity.
Key Results
FedVI consistently outperformed competitors like FedRep, DITTO, and KNN-Per:
- FEMNIST: Achieved 90.3% accuracy for training clients and 90.6% for unseen clients (vs. ~83% for standard FedAvg).
- CIFAR-100: Reached 59.1% accuracy, significantly higher than KNN-Per (55%) and FedAvg (47.4%).
Notably, FedVI demonstrated robust generalization, often performing as well on completely new clients as it did on those seen during training. This confirms the effectiveness of the hierarchical approach in "stateless" environments.
Conclusion and Future Directions
FedVI provides a powerful framework for personalizing models at the edge without the overhead of stateful maintenance. By combining hierarchical Bayesian modeling with amortized inference, it bridges the gap between global generalization and local specialization. Future work may explore more expressive posterior distributions and automated methods for splitting global versus local features to further enhance performance.
Summary updated