NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Beyond Buffer Limits: Energy-Based Data Reassembly for Continual Learning

Zhenyi Wang, Yixuan Sun, Yue Wang, Zhong Chen, Heng HuangICML 2026

Continual learning (CL) models face a fundamental challenge: acquiring new knowledge from a non-stationary data stream without suffering from catastrophic forgetting of previously learned tasks. While memory-based replay methods are the standard defense against this forgetting, they are bottlenecked by strict memory capacity limits.

This paper introduces Energy-Based Data Reassembly (EBDR), a novel paradigm that shifts the focus from storing raw, individual images to constructing high-density composite images. By packing the knowledge of multiple samples into a single memory slot, EBDR dramatically improves memory efficiency and reduces catastrophic forgetting.

The Bottleneck in Continual Learning

The "holy grail" of CL is to learn sequentially without degrading past performance. The most popular solution, experience replay, stores a small buffer of past samples to revisit later. However, this approach hits a hard physical limit. Storing a raw image is highly "information-inefficient" because a single image occupies an entire memory slot, regardless of how much unique or critical information it actually contains. When the buffer is small, the replayed data becomes a sparse, poor representation of the past, causing the model's performance to plummet.

Methodology: Energy-Based Data Reassembly

To overcome these buffer limits, the authors propose a shift from storing raw images to constructing composite memory images. The EBDR framework operates in three primary stages:

  1. Patch Partitioning: Instead of treating an image as an atomic, indivisible unit, the training images from the current task are divided into elementary patches.
  2. Energy-Based Optimization: To determine the optimal combination of patches, the method employs a unified energy function with two core components:
  3. Unary Energy: Ensures that an individual patch is highly representative of its target label, maximizing discriminative quality.
  4. Interaction Energy: Ensures that patches placed together in a composite image are semantically and visually "coherent" in feature space. This prevents the creation of noisy, nonsensical inputs that could destabilize training.
  5. Variational Inference: Finding the perfect combination of patches is computationally intractable—a combinatorial nightmare. To make this practical for real-world training, the authors derive an efficient variational mean-field algorithm that quickly approximates the best reassembly.

During the replay phase, the model is trained on these composites using a fused supervisory signal (soft labels) that averages the semantic information of all patches within the assembled image.

Key Insights & Theoretical Grounding

  • Information Density over Fidelity: Unlike standard image compression, which attempts to store a single image using fewer bits, EBDR focuses on information reorganization. It prioritizes packing the maximum amount of learning "signal" into the available space over preserving the perfect visual fidelity of a single image.
  • Gradient Variance Reduction: The paper provides theoretical proof that replaying these optimized composites reduces the variance of the gradients during training. Lower variance leads to more stable optimization and provides a tighter mathematical bound on how much the model can forget.
  • The Importance of Coherence: Simply tiling random patches together is ineffective. The Interaction Energy term is vital because it enforces compatibility among patches, helping the model learn more robust, generalizable features during replay.

Empirical Results

The authors evaluated EBDR across a rigorous suite of benchmarks, including standard datasets (CIFAR-10, CIFAR-100), complex datasets (Tiny-ImageNet, ImageNet-R), and specialized domains (MedMNIST, a collection of 10 medical imaging datasets).

EBDR consistently outperformed state-of-the-art memory-based and prompt-based methods:

  • Accuracy Boost: On CIFAR-100, EBDR achieved up to a 6% higher overall accuracy compared to leading methods like DER++.
  • Forgetting Mitigation: The method demonstrated up to a 10% improvement in Backward Transfer (BWT), indicating significantly stronger retention of old knowledge while learning new tasks.
  • Architecture Agnostic: EBDR proved effective across different architectures, including traditional ResNets and modern Vision Transformers (ViT). Notably, in ViT experiments, EBDR outperformed specialized prompt-based methods (such as DualPrompt and CODA-P) when restricted to the same memory budget.

Limitations and Future Directions

While EBDR presents a significant leap forward in memory-efficient continual learning, the authors note a few areas for future exploration:

  • Grid Constraints: The current implementation relies on a predefined grid/slot structure for patch reassembly. Future work could explore more flexible, non-grid-based aggregation methods.
  • Computational Overhead: Although the variational inference step is designed to be efficient, reassembly still adds a computational step after each task. Scaling this to massive datasets with millions of patches may require further optimization.
  • Beyond Vision: The current framework is entirely vision-focused. Applying the concept of "data reassembly" to other modalities—such as token reassembly in natural language processing or audio segment reassembly—remains an open and exciting challenge for the field.

Summary updated

BibTeX
@inproceedings{wang2026beyond,
  author = {Zhenyi Wang and Yixuan Sun and Yue Wang and Zhong Chen and Heng Huang},
  title = {{Beyond Buffer Limits: Energy-Based Data Reassembly for Continual Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=cbicSAXMWQ},
}
Figure