Introduction
In online machine learning, the task of "prediction with expert advice" involves combining the predictions of multiple experts to minimize cumulative loss. A significant challenge arises when the data is non-stationary—that is, the "best" expert changes over time. The Fixed Share (FS) algorithm is a standard solution for tracking such changes. However, traditional FS treats experts as "black boxes," ignoring their internal learning processes. This paper by Wouter M. Koolen and Tim van Erven introduces a framework for "local learning," allowing experts to learn only from relevant data segments without incurring the typical quadratic computational overhead.
The Local Learning Dilemma
When experts are themselves learning algorithms (e.g., Hidden Markov Models), a conflict emerges: should an expert learn from all historical data, or only from the data within its current active segment?
- Global Learning: Standard FS assumes experts learn from all past data. If the data distribution shifts significantly between segments, an expert trained on "stale" data will perform poorly.
- Local Learning: Experts are either "reset" or "frozen" when not in use. While theoretically superior for non-stationary data, naive implementations of local learning require $O(T^2)$ time, where $T$ is the number of rounds, making them impractical for long sequences.
Proposed Algorithms: $FS^{sl}$ and $FS^{fr}$
The authors overcome the efficiency barrier by representing experts as Expert Hidden Markov Models (EHMMs). By constructing a "meta-HMM" that encapsulates the internal states of these sub-experts, they can apply the Forward Algorithm to achieve linear-time complexity ($O(T)$).
Two specific strategies are introduced:
- Sleeping LL-TBE ($FS^{sl}$): The expert remains aware of the global time but treats data outside its active segment as missing or unobserved.
- Freezing LL-TBE ($FS^{fr}$): The expert is "frozen" when inactive and "thawed" when it becomes the active expert, effectively resetting its internal state to the beginning of its learning curve for each new segment.
Experimental Evaluation
The authors validated their approach using synthetic "Drifting Mean" datasets. These datasets consist of segments where outcomes follow a deterministic linear trend with varying slopes.
As shown in the figure above:
- Suitable Sleeping Data (a): Segments follow global trends ($y_t = c \cdot t$). Here, $FS^{sl}$ performs best because it maintains the global time context.
- Suitable Freezing Data (b): Segments reset to zero ($y_t = c \cdot (t - t_{start})$). In this scenario, $FS^{fr}$ is superior as it correctly "resets" its expectations at the start of each segment.
- Performance Gap: In both cases, the local learning variants significantly outperform the standard S-TBE (Switching-TBE) approach, which suffers from "confusion" due to learning from irrelevant data segments. The loss plots (c and d) use a logarithmic scale, highlighting the orders-of-magnitude improvement.
Conclusion
By leveraging the structure of EHMMs, the authors demonstrate that local learning can be both theoretically sound and computationally efficient. Their $FS^{sl}$ and $FS^{fr}$ algorithms provide a robust framework for tracking switching experts that learn, bridging the gap between stationary expert theory and the practical realities of non-stationary data streams. Future work may extend this "meta-HMM" trick to more complex data partitions beyond simple consecutive segments.
Summary updated