Abstract
Federated Learning (FL) research often relies on idealized, static datasets. However, real-world data from large-scale systems like Amazon Alexa is highly non-uniform, characterized by a mix of "heavy" and "light" users. This paper investigates how simple, activity-based device selection strategies—leveraging metadata already available to the server—can significantly improve FL performance. We demonstrate that non-uniform sampling strategies outperform standard uniform selection and that "continual" FL models can effectively match the performance of models trained on massive, one-shot datasets.
Introduction
The standard approach in Federated Learning, exemplified by algorithms like FedAvg, involves selecting a subset of devices uniformly at random for each training round. While computationally simple, this approach ignores the inherent heterogeneity of user behavior. In Natural Language Understanding (NLU) tasks, "heavy users" generate a disproportionate amount of data, often containing novel utterances, while "light users" contribute fewer, more common data points. This paper explores whether biasing device selection toward specific user activity levels can enhance model performance without the computational overhead of complex gradient-based selection methods.
Methodology
The study utilizes 12 months of de-identified Alexa user request data from 10,000 devices. The task is Masked Language Modeling (MLM) using a BERT-base architecture. Researchers compared two primary algorithms, FedAvg and FedOpt, across two scenarios:
- One-shot FL: Training on a single block of historical data (3, 6, or 11 months).
- Continual FL: Training on consecutive time segments to mimic real-world deployment constraints.
The core innovation is non-uniform device selection. Selection probabilities were assigned based on functions of the number of utterances ($n_m$) per device:
- Uniform: $f(x) = 1$ (Baseline).
- Activity-weighted: $f(x) = \log(x+1)$, $\sqrt{x}$, or $x$ (Biasing toward heavy users).
- Inverse-activity: $f(x) = 1/\log(x+1)$ (Biasing toward light users).
Key Results and Insights
The experiments revealed that non-uniform sampling strategies almost always outperform the uniform baseline. A surprising finding was the effectiveness of the inverse-log strategy for FedAvg over long time horizons. By sampling lighter devices more frequently, the model avoids overfitting on heavy users, benefiting from a regularizing effect.
In contrast, FedOpt proved to be more robust and less sensitive to the specific sampling strategy, consistently benefiting from larger volumes of data. Analysis of user utterances showed that heavy users are primary drivers of innovation, generating "completely new" content, while light users tend to repeat common patterns already present in the system.
Continual Learning Performance
A critical finding for practical deployment is that Continual FL—training on data in temporal chunks—eventually reaches the performance levels of "one-shot" FL. This validates the feasibility of training high-quality models without the need for long-term on-device data storage, thereby enhancing user privacy.
Models using non-uniform sampling in a continual setup were able to "swiftly catch up" to one-shot methods, showing less than 5% relative degradation compared to the best possible one-shot model.
Conclusion
This research highlights the power of simple activity-based sampling in real-world Federated Learning. By moving beyond uniform selection, we can achieve significant gains in model perplexity and robustness. Future work will investigate dynamic sampling strategies—adjusting the bias between heavy and light users during the training process—and evaluate these methods on a broader range of NLU tasks such as intent classification.
Summary updated