The Forget-me-not Process

Kieran Milan, Joel Veness, James Kirkpatrick, Michael H. Bowling, Anna Koop, Demis HassabisNeurIPS 2016

Most machine learning models assume "stationarity"—the idea that the rules governing data don't change over time. In the real world, such as in finance, robotics, or sensor streams, this is rarely true. Data is often piecewise stationary, meaning it stays consistent for a while and then abruptly shifts at a "change-point." Furthermore, these environments often repeat over time, returning to previously seen states.

Existing state-of-the-art meta-algorithms, like Partition Tree Weighting (PTW), handle these shifts by detecting change-points and starting a fresh model from scratch for the new segment. However, these methods are "forgetful." If a system oscillates between Task A and Task B, a standard algorithm treats every return to Task A as a brand-new problem, incurring a steep "relearning penalty."

Illustration of piecewise stationary, repeating tasks over time

To address this inefficiency, researchers introduce the Forget-me-not Process (FMN), an efficient meta-algorithm designed for sequence prediction in environments that change abruptly and repeat. By combining hierarchical temporal partitioning with a memory of past model states, FMN recognizes and adapts to recurring tasks instantly.

The Two-Level Hierarchical Approach

The Forget-me-not Process operates as a two-level hierarchical Bayesian meta-algorithm:

  1. Level 1: Temporal Partitioning. FMN uses the framework of PTW to average over a massive set of possible ways to slice a timeline into segments. It relies on "binary temporal partitions," which allows for highly efficient $O(n \log n)$ computation.
  2. Level 2: Model Memory. Instead of using just one "base" model, FMN maintains a growing pool of model states. When a new segment begins, the algorithm does not just start a blank model; it performs Bayesian model averaging over the entire pool of previously successful models, plus a fresh one.
  3. The "Forget-me-not" Mechanism. To prevent computational explosion, FMN uses a greedy approximation. When a segment ends, it identifies the "best" model state for that segment and adds it to the pool. "Complexity Reducing Operations" (like reservoir sampling and model replacement) keep the pool size ($k$) manageable, resulting in an overall time complexity of $O(nk \log n)$.

Key Insights and Experimental Results

The core advantage of FMN is its ability to recognize "old friends." By treating previous model states as "experts" in a Bayesian mixture, the system can "snap" back to high accuracy the moment a task repeats. Furthermore, it overcomes the "slow learner" problem—where complex models fail to learn fast enough within a single, short segment—by accumulating knowledge across multiple non-contiguous segments of the same task.

The authors evaluated FMN across three distinct domains:

  • The Mysterious Bag of Coins (MBOC): A synthetic task where an opponent flips one biased coin for a random duration before switching to another. FMN achieved a cumulative regret of 147.75, significantly outperforming standard PTW (157.19) and a stationary model (783.86).
  • A Fistful of Digits (FOD): A sequence of MNIST handwritten digit images where the source generates images of one digit for a while, switches, and eventually returns to previous digits. FMN + MADE achieved an average loss of 86.12 nats, while standard PTW + MADE stayed stuck at 94.08 nats (failing to improve over a stationary model).
  • Continual Atari 2600 Task Identification: A high-dimensional video stream switching randomly between 45 Atari games. FMN successfully routed experience to 45 different game-specific models in real-time, identifying the game being played without explicit labels.
Experimental results showing FMN outperforming baselines on cumulative regret and per-digit loss

Limitations and Future Work

While highly effective, FMN's strategy for adding or removing models from the memory pool relies on heuristic "complexity reducing" operations. These require tuning hyperparameters (like $\alpha$ and $\beta$) to decide when a model is distinct enough to be saved. Future work could explore more formal methods for model replacement.

Additionally, while this paper focuses on sequence prediction, integrating FMN into Reinforcement Learning (RL) agents is a promising next step. This integration could potentially allow RL agents to instantly recall optimal policies upon returning to previously visited environments or tasks.

Summary updated

BibTeX
@inproceedings{milan2016forget,
  author = {Kieran Milan and Joel Veness and James Kirkpatrick and Michael H. Bowling and Anna Koop and Demis Hassabis},
  title = {{The Forget-me-not Process}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2016},
  url = {https://openreview.net/forum?id=ryE0LvZ_-H},
}
Figure