Abstract
Online Continual Learning (OCL) faces significant challenges from catastrophic forgetting and real-world data imbalances. This paper presents ODEDM (Online Dynamic Expandable Dual Memory), a framework inspired by biological memory systems. ODEDM utilizes a dynamic dual-buffer system—comprising short-term and structured long-term memory—coupled with a "Divide-and-Conquer" (DAC) strategy for efficient prototype selection. Experimental results demonstrate that ODEDM significantly mitigates forgetting and improves performance across various benchmarks, particularly in imbalanced data scenarios.
Introduction
In the realm of Online Continual Learning (OCL), AI models are tasked with learning from a non-stationary stream of data where each sample is typically seen only once. Two primary obstacles hinder progress: catastrophic forgetting, where new knowledge overwrites previous learning, and the real-world gap, characterized by imbalanced class distributions and single-pass data streams (OCBBL). While rehearsal-based methods use a buffer to store past examples, static buffer management often fails to balance recent and historical knowledge effectively.
Methodology: The ODEDM Framework
ODEDM introduces a "plug-and-play" module designed to enhance existing rehearsal-based algorithms through three core components:
Dual Memory System
Inspired by the human brain, ODEDM employs a Short-Term Memory (STM) for rapid acquisition and a Long-Term Memory (LTM) for stable retention. A key innovation is the dynamic capacity shift: as the model encounters more tasks, storage is progressively reallocated from STM to LTM, optimizing the balance between plasticity and stability.
Structured Long-Term Storage
Unlike traditional random sampling, ODEDM organizes LTM into sub-buffers anchored by cluster prototypes. Using a K-means-based strategy, it ensures an equitable distribution of prototypes across categories, directly addressing the challenge of data imbalance.
Optimal Transport and Divide-and-Conquer (DAC)
To identify the most representative samples, the framework calculates the Sinkhorn distance (a form of Optimal Transport) between samples and prototypes. To maintain computational efficiency as the buffer grows, a Divide-and-Conquer (DAC) strategy recursively merges clusters, significantly reducing the overhead of distance calculations.
Experimental Results
The framework was rigorously evaluated on standard (CIFAR-10/100, TinyImageNet) and imbalanced benchmarks (ImageNet-R, IMB-CIFAR).
Performance and Forgetting
ODEDM consistently achieves state-of-the-art results. For instance, on CIFAR-10 with a 200-sample buffer, integrating ODEDM with the DER++ baseline improved accuracy from 29.7% to 42.7%. Crucially, the framework significantly lowers the forgetting rate across sequential tasks compared to baseline methods.
Robustness to Imbalance
In imbalanced settings, the structured memory approach proves superior to random reservoir sampling. On CIFAR-100, ODEDM nearly tripled the accuracy of baseline methods in large-buffer scenarios (from 5.8% to 15.2%). This is attributed to the prototype-based selection which ensures semantic preservation over random sampling.
Conclusion
ODEDM offers a robust solution for OCL by mimicking biological memory dynamics and employing efficient optimization strategies. While it shows remarkable gains on medium-scale datasets, future work is needed to scale these techniques to massive, high-resolution datasets like full ImageNet, where absolute performance remains an open challenge.
Summary updated