[Paper Review] Memory Efficient Experience Replay for Streaming Learning
This paper proposes ExStream, a memory-efficient rehearsal method for streaming learning with deep neural networks (DNNs), using adaptive prototype selection via streaming clustering to reduce memory usage while preventing catastrophic forgetting. ExStream outperforms baseline methods like CluStream and HPStream, achieving high accuracy with half the memory and no hyperparameter tuning, especially effective under small buffer constraints in non-iid data streams.
In supervised machine learning, an agent is typically trained once and then deployed. While this works well for static settings, robots often operate in changing environments and must quickly learn new things from data streams. In this paradigm, known as streaming learning, a learner is trained online, in a single pass, from a data stream that cannot be assumed to be independent and identically distributed (iid). Streaming learning will cause conventional deep neural networks (DNNs) to fail for two reasons: 1) they need multiple passes through the entire dataset; and 2) non-iid data will cause catastrophic forgetting. An old fix to both of these issues is rehearsal. To learn a new example, rehearsal mixes it with previous examples, and then this mixture is used to update the DNN. Full rehearsal is slow and memory intensive because it stores all previously observed examples, and its effectiveness for preventing catastrophic forgetting has not been studied in modern DNNs. Here, we describe the ExStream algorithm for memory efficient rehearsal and compare it to alternatives. We find that full rehearsal can eliminate catastrophic forgetting in a variety of streaming learning settings, with ExStream performing well using far less memory and computation.
Motivation & Objective
- To address catastrophic forgetting in streaming learning, where DNNs are trained online on non-iid data streams without full retraining.
- To develop a memory-efficient rehearsal strategy that maintains high performance with limited buffer capacity.
- To evaluate and compare multiple prototype selection methods for rehearsal, including streaming clustering and online k-means.
- To introduce ExStream, a novel framework that combines adaptive prototype storage with efficient DNN fine-tuning for streaming classification.
- To demonstrate that full rehearsal eliminates catastrophic forgetting, and that memory-efficient variants can match or exceed its performance with reduced resource usage.
Proposed method
- ExStream uses a streaming clustering algorithm to maintain a compact set of representative prototypes instead of storing all past examples.
- It applies online k-means clustering to dynamically group similar data points and store only cluster centroids as rehearsal memory.
- The method selects prototypes based on their representativeness and diversity, reducing memory footprint while preserving knowledge.
- During training, the DNN is fine-tuned using a mixed batch of new data and selected prototypes from the buffer.
- The buffer is updated by either replacing old prototypes or merging new points into existing clusters, depending on proximity and cluster density.
- ExStream avoids hyperparameter tuning by using a fixed, adaptive clustering strategy that scales with data stream characteristics.
Experimental results
Research questions
- RQ1Can full rehearsal completely eliminate catastrophic forgetting in streaming DNN learning under non-iid data distributions?
- RQ2How do different memory-efficient rehearsal strategies compare in terms of accuracy and memory usage across varying buffer sizes?
- RQ3Does ExStream outperform existing streaming clustering and rehearsal methods in both iid and non-iid data stream settings?
- RQ4What is the impact of prototype selection strategy on model performance when buffer size is constrained?
- RQ5Can a single, shared memory buffer across classes improve scalability and performance on large, class-imbalanced datasets?
Key findings
- Full rehearsal successfully eliminates catastrophic forgetting across all tested streaming learning benchmarks, including iCub1, CORe50, and CUB-200.
- ExStream outperforms CluStream and HPStream in terms of accuracy, especially with small buffer sizes, and uses only half the memory of these methods.
- ExStream achieves superior performance on non-iid data streams, particularly when using streaming clustering for prototype selection.
- Online k-means and stream clustering methods maintained consistent performance across both iid and non-iid data orderings, unlike simpler methods like FIFO queues.
- The method performs well even with minimal hyperparameter tuning, making it practical for deployment on embedded devices.
- On the CUB-200 dataset, stream clustering techniques significantly boosted performance with small buffer sizes, highlighting their value in low-resource settings.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.