Tuned Compositional Feature Replays for Efficient Stream Learning

Morgan B. Talbot, Rushikesh Zawar, Rohil Badkundri, Mengmi Zhang, Gabriel Kreiman
4/6/2021
cs.CVcs.AI

Official code: MorganBDT/crumb (2 stars, Python, MIT, last commit 2024-01-02).

Abstract

Our brains extract durable, generalizable knowledge from transient experiences of the world. Artificial neural networks come nowhere close to this ability.

Show full abstract

When tasked with learning to classify objects by training on non-repeating video frames in temporal order (online stream learning), models that learn well from shuffled datasets catastrophically forget old knowledge upon learning new stimuli. We propose a new continual learning algorithm, Compositional Replay Using Memory Blocks (CRUMB), which mitigates forgetting by replaying feature maps reconstructed by combining generic parts. CRUMB concatenates trainable and re-usable "memory block" vectors to compositionally reconstruct feature map tensors in convolutional neural networks. Storing the indices of memory blocks used to reconstruct new stimuli enables memories of the stimuli to be replayed during later tasks. This reconstruction mechanism also primes the neural network to minimize catastrophic forgetting by biasing it towards attending to information about object shapes more than information about image textures, and stabilizes the network during stream learning by providing a shared feature-level basis for all training examples. These properties allow CRUMB to outperform an otherwise identical algorithm that stores and replays raw images, while occupying only 3.6% as much memory. We stress-tested CRUMB alongside 13 competing methods on 7 challenging datasets. To address the limited number of existing online stream learning datasets, we introduce 2 new benchmarks by adapting existing datasets for stream learning. With only 3.7-4.1% as much memory and 15-43% as much runtime, CRUMB mitigates catastrophic forgetting more effectively than the state-of-the-art. Our code is available at https://github.com/MorganBDT/crumb.git.

View on arXivView PDF

Code Implementations(1)

MorganBDT/crumbOfficial100%
MIT

Compositional Replay Using Memory Blocks (CRUMB) is a replay algorithm for online stream learning that stores and replays training examples at a feature level using a differentiable codebook to mitigate catastrophic forgetting. This repo also contains instructions for setting up the Toybox and iLab-2M-Light stream learning benchmarks.

20Python, ShellMar 6, 20232 years agoMIT

Similar Papers

Cite this paper

@article{talbot2021tuned,
  title  = {Tuned Compositional Feature Replays for Efficient Stream Learning},
  author = {Morgan B. Talbot and Rushikesh Zawar and Rohil Badkundri and Mengmi Zhang and Gabriel Kreiman},
  year   = {2021},
  eprint = {2104.02206},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.02206}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2104.02206.svg)](https://codeofpaper.com/paper/2104.02206)

Discussion