Introduction
Federated Learning (FL) has emerged as a powerful paradigm for training machine learning models on decentralized data while preserving privacy. However, standard FL research often assumes static datasets residing on edge devices. In real-world scenarios, such as IoT sensors or mobile devices, data arrives as a continuous stream with non-stationary distributions. Furthermore, these devices often possess limited storage, necessitating efficient cache management strategies. This paper explores Streaming Federated Learning (SFL), focusing on local cache update rules that minimize the discrepancy between cached data and the true long-term data distribution.
The Challenge of Streaming Data
Edge devices in SFL face two primary constraints: streaming data with shifting distributions and limited local storage. The core issue is the distribution discrepancy. If the small subset of data stored in a device's cache does not accurately represent the long-term distribution the model is intended to learn, global convergence is hindered. The goal is to develop cache update rules that ensure the local training set remains a faithful representative of the data stream over time.
Proposed Cache Update Rules
The authors formalize the SFL workflow and introduce three distinct strategies for managing the local cache:
- First-In First-Out (FIFO): This baseline approach evicts the oldest data to make room for new arrivals. While simple, it is highly sensitive to short-term noise and lacks a mechanism to preserve long-term distributional knowledge.
- Static Ratio Selective Replacement (SRSR): This rule employs a moving average to calculate target sample counts for each class. By smoothing the distribution updates, it prevents the cache from fluctuating wildly in response to transient data bursts.
- Dynamic Ratio Selective Replacement (DRSR): An advancement over SRSR, DRSR utilizes a time-varying weighting factor. It aims to make the cache represent the time-average of all observed data. Theoretically, DRSR allows the SFL process to converge to a stationary point as if the entire data history were available.
Theoretical Insights
A key contribution of this work is a new convergence bound for SFL. The authors demonstrate that model performance is intrinsically linked to the cumulative gap between the cached distribution and the underlying true distribution. To facilitate this proof, they introduced the "virtual local gradient" concept—the gradient that would be computed if the client had access to the full long-term distribution. This allows for quantifying the error introduced by the limited cache.
Experimental Evaluation
The proposed methods were evaluated on two datasets: Network Traffic Classification (NTC) and Fashion MNIST (FMNIST). The NTC dataset represents a practical SFL application where routers classify encrypted traffic from a continuous stream.
As shown in the results for the NTC task, DRSR and SRSR significantly outperform the FIFO and "Lazy" (no update) baselines. DRSR, in particular, achieves performance levels close to the "Full Information" scenario where storage is unlimited. It also exhibits superior stability and reduced variance in test accuracy during the later stages of training, confirming the theoretical prediction that distribution discrepancy decreases over time under the DRSR rule.
Conclusion
This research highlights the critical role of cache management in Streaming Federated Learning. By moving beyond simple FIFO updates to more sophisticated selective replacement rules like DRSR, SFL can effectively handle non-stationary data streams on resource-constrained devices. Future work includes extending this framework to semi-supervised settings where incoming data may be unlabeled and optimizing communication efficiency alongside cache management.
Summary updated