Online Task-free Continual Learning with Dynamic Sparse Distributed Memory

Julien Pourcel, Ngoc-Son Vu, Robert M. FrenchECCV 2022

Abstract

Standard Deep Neural Networks (DNNs) frequently suffer from catastrophic forgetting (CF) when learning tasks sequentially. This paper introduces Dynamic Sparse Distributed Memory (DSDM), a novel associative memory algorithm designed for online, task-free continual learning. Unlike traditional methods that require task boundaries or offline data replay, DSDM dynamically adapts its architecture to the data stream. By employing recursive temperature for node creation and softmin-weighted sharpening for updates, DSDM significantly outperforms state-of-the-art methods on standard image classification benchmarks, demonstrating high data efficiency and robustness in non-stationary environments.

Introduction

Continual Learning (CL) remains a significant challenge for artificial intelligence. When trained on new data, standard DNNs often overwrite weights essential for previous knowledge, leading to catastrophic forgetting. Most current solutions rely on "task boundaries" (explicit signals of task changes) or "offline training" (replaying old data). However, real-world applications demand online and task-free learning, where data arrives in a continuous, non-stationary stream without explicit labels for task transitions. DSDM addresses this gap by evolving Kanerva’s Sparse Distributed Memory (SDM) into a dynamic, data-driven architecture.

Methodology

Architectural Evolution

DSDM transitions from the fixed-address structure of traditional SDM to a variable, data-driven approach. While SDM uses a fixed number of "hard locations" and step functions for activation, DSDM utilizes a SoftMin-based addressing mechanism and variable weights to better model the input distribution.

Comparison of the architectural differences between traditional SDM (left) and the proposed DSDM (right).

Core Mechanics

  • Dynamic Architecture: Unlike traditional SDM which uses a static radius and fixed nodes, DSDM starts with an empty memory and grows as needed. If a new input is sufficiently different from existing nodes (determined by a dynamic threshold called Recursive Temperature (RT)), a new memory node is created.
  • Softmin-Weighted Sharpening: When an input is similar to existing nodes, the system updates them using a weighted process that balances generalization and localization.
  • LOF-based Pruning: To maintain efficiency, the model uses the Local Outlier Factor (LOF) algorithm to prune redundant nodes in high-density regions rather than deleting unique outliers.
Visualizing the Write and Read pattern differences: DSDM employs dynamic radii and node creation to adapt to the data stream.

Experimental Evaluation

The authors evaluated DSDM against five major image classification benchmarks: MNIST, CIFAR-10, CIFAR-100, CUB-200, and CORE-50. DSDM consistently demonstrated superior performance, particularly in "Last Accuracy" metrics.

Key Results

  • MNIST: DSDM achieved 94.0% accuracy on Split MNIST, a substantial leap from the 74.2% achieved by original SDM.
  • CORE-50: In this challenging object recognition dataset, DSDM outperformed the nearest competitor by approximately 50% in final accuracy.
  • Efficiency: DSDM showed remarkable performance even with limited data (e.g., 10% of CIFAR-10), indicating high data efficiency compared to gradient-based methods.

Discussion and Future Work

DSDM's success stems from its ability to treat data as a "never-ending stream," mimicking human-like associative memory. However, the current implementation depends on a fixed, pre-trained feature extractor (e.g., ResNet-18). Future research aims to integrate DSDM with self-supervised learning (SSL) to allow the model to learn its own features during the online stream. Additionally, the authors plan to expand DSDM's application to regression and anomaly detection tasks, further exploring dynamic hyperparameter tuning to optimize memory growth.

Summary updated

BibTeX
@inproceedings{pourcel2022online,
  author = {Julien Pourcel and Ngoc-Son Vu and Robert M. French},
  title = {{Online Task-free Continual Learning with Dynamic Sparse Distributed Memory}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19806-9\_42},
}
Figure