Logarithmic Continual Learning

Wojciech Masarczyk, Pawel Wawrzynski, Daniel Marczak, Kamil Deja, Tomasz Trzcinski

Abstract

Logarithmic Continual Learning (LogCL) is a novel architecture designed to mitigate catastrophic forgetting in neural networks. By organizing generative models into a binary-indexed hierarchy, LogCL ensures that the number of retraining steps for any given data sample scales logarithmically rather than linearly. This approach preserves the quality of "remembered" data while maintaining a small memory footprint. Our results show that LogCL significantly outperforms traditional generative rehearsal methods and rivals the performance of memory-heavy replay buffers on standard benchmarks.

Introduction

Continual Learning (CL) presents a fundamental challenge for neural networks: catastrophic forgetting. When learning new tasks, models often overwrite weights essential for previous tasks. Current solutions typically fall into two categories:

  1. Replay Buffers: Storing actual past data, which is effective but scales poorly in terms of memory as the number of tasks grows.
  2. Generative Rehearsal: Using a generator to produce synthetic past data. This is memory-efficient but suffers from a "copy-of-a-copy" degradation, where recursive retraining on imperfect outputs leads to rapid amnesia.

LogCL seeks to bridge this gap by combining the high performance of replay buffers with the scalability of generative models.

Methodology: Binary Allocation Strategy

The core innovation of LogCL is its binary-indexed hierarchy of local autoencoders. Instead of a single global generator, the system employs a set of smaller models, each responsible for a specific power-of-two number of samples.

Binary addition analogy for model retraining. Adding new data triggers retraining only for models corresponding to flipped bits in the binary representation of the total sample count.

As illustrated in the figure above, the system mimics binary addition. When new data arrives, only the models corresponding to the "flipped" bits in the total sample count are retrained. This ensures that larger models, which store older data, are updated exponentially less frequently, preserving long-term stability and minimizing reconstruction noise. A global classifier is then trained on a combination of new data and samples reconstructed by these local models.

Experimental Results

The authors evaluated LogCL against competitive baselines on Split MNIST, Omniglot, and CIFAR-100. In an "Extreme Continual Learning" scenario involving 100 tasks from the Omniglot dataset, LogCL demonstrated superior long-term stability.

Performance comparison across 100 tasks. LogCL maintains high accuracy and low reconstruction error with sublinear memory growth, outperforming standard Generative Replay.

Key findings include:

  • Omniglot Accuracy: LogCL achieved 55.2% accuracy, significantly higher than the previous best generative method, BinPlay (38.8%).
  • CIFAR-100: In a challenging 20-split scenario, LogCL reached 56.75% accuracy, outperforming popular methods like iCaRL (42.9%) and GDumb (28.8%).
  • Scalability: The number of models required scales as $\log_2(n)$, allowing the system to handle large amounts of data with minimal overhead compared to the linear growth of replay buffers.

Discussion and Conclusion

LogCL introduces a "Lazy Cat" principle to continual learning: by minimizing the movement and retraining of data, the system reduces the accumulation of reconstruction noise. While managing a collection of $\log n$ models adds architectural complexity, the benefits in stability and scalability are substantial. Future work may explore dynamic model capacities and integrated coreset selection to further optimize efficiency.

Summary updated

BibTeX
@article{masarczyk2022logarithmic,
  author = {Wojciech Masarczyk and Pawel Wawrzynski and Daniel Marczak and Kamil Deja and Tomasz Trzcinski},
  title = {{Logarithmic Continual Learning}},
  journal = {IEEE Access},
  year = {2022},
  doi = {10.1109/access.2022.3218907},
}
Figure