Skip to main content
QUICK REVIEW

[Paper Review] Automatic Recall Machines: Internal Replay, Continual Learning and the Brain

Xu Ji, João F. Henriques|arXiv (Cornell University)|Jun 22, 2020
Domain Adaptation and Few-Shot LearningComputer Science53 references6 citations
TL;DR

This paper proposes Automatic Recall Machines (ARM), a continual learning method that generates replay samples on-the-fly from a model's internal knowledge, eliminating the need for external buffers or generator networks. By optimizing for samples that maximize activation changes on current batches, ARM achieves superior forgetting reduction, with gradients from recalled samples closely matching those from real data—especially in deeper network layers.

ABSTRACT

Replay in neural networks involves training on sequential data with memorized samples, which counteracts forgetting of previous behavior caused by non-stationarity. We present a method where these auxiliary samples are generated on the fly, given only the model that is being trained for the assessed objective, without extraneous buffers or generator networks. Instead the implicit memory of learned samples within the assessed model itself is exploited. Furthermore, whereas existing work focuses on reinforcing the full seen data distribution, we show that optimizing for not forgetting calls for the generation of samples that are specialized to each real training batch, which is more efficient and scalable. We consider high-level parallels with the brain, notably the use of a single model for inference and recall, the dependency of recalled samples on the current environment batch, top-down modulation of activations and learning, abstract recall, and the dependency between the degree to which a task is learned and the degree to which it is recalled. These characteristics emerge naturally from the method without being controlled for.

Motivation & Objective

  • Address catastrophic forgetting in continual learning by leveraging implicit memory within trained models, avoiding external memory or generative components.
  • Overcome limitations of experience replay methods that rely on external buffers or trained generators, which are memory-inefficient and hard to train on natural images.
  • Develop a scalable, efficient replay mechanism that generates task-specific, high-impact samples based on current training batches rather than the full data distribution.
  • Establish a biologically plausible learning mechanism where recall is triggered by knowledge change and modulated by environmental context, mirroring brain dynamics.
  • Demonstrate that recalled samples, though visually similar to original classes, produce gradients highly correlated with real data from the target class, validating their functional relevance.

Proposed method

  • Generate replay samples by optimizing input space points that maximize the change in model outputs when trained on the current batch, using gradient ascent on the loss difference between old and new model predictions.
  • Define recalled samples as those that induce the largest divergence in model behavior (i.e., output changes) across the input space, ensuring maximal protection against forgetting.
  • Use the model’s own parameters and activations to generate samples without requiring additional memory or a separate generator network, making the method memory-efficient and end-to-end trainable.
  • Condition the generation of recalled samples on the current real batch, ensuring they are specialized to the task at hand and more effective than generic replay.
  • Formulate the recall objective as minimizing the maximum divergence in model behavior across the input space, which theoretically guarantees that all other divergences are also minimized.
  • Train the model on both real data and the generated recalled samples, with the latter reinforcing the model’s ability to preserve previously learned behavior under non-stationary data streams.

Experimental results

Research questions

  • RQ1Can replay samples be generated internally from a model’s own parameters without external buffers or generator networks?
  • RQ2Does generating samples that maximize activation change on current batches lead to better forgetting reduction than replaying the full data distribution?
  • RQ3How do gradients from internally generated recalled samples compare to those from real data, particularly in deeper network layers?
  • RQ4To what extent do recalled samples reflect functional (output-based) similarity rather than pixel-level similarity to real data?
  • RQ5Can the mechanism of automatic recall naturally replicate key brain-like dynamics such as top-down modulation and surprise-driven replay?

Key findings

  • Recalled samples generated via gradient-based optimization on the current batch produce gradients that are significantly more correlated with real data from the target class than from the originator class, especially in deeper layers (e.g., 0.726 correlation in FC layer on CIFAR10 with hard targets).
  • Even when recalled samples visually resemble the originator class (e.g., class 1), their gradients are more aligned with real samples of the target class (e.g., class 2), indicating functional over pixel-level similarity.
  • The method achieves superior forgetting reduction compared to standard replay baselines, with no need for external memory or trained generators.
  • The correlation between gradients from recalled samples and real data from the target class increases with network depth, peaking at 0.726 in the final layer on CIFAR10 with hard targets.
  • The approach naturally reproduces brain-like phenomena such as top-down modulation, surprise-driven recall, and abstract recall, emerging from the optimization process without explicit design.
  • Experiments on MNIST, CIFAR10, and MiniImageNet confirm consistent performance gains across datasets and architectures, including ResNets and multilayer perceptrons.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.