Balanced Destruction-Reconstruction Dynamics for Memory-replay Class Incremental Learning

Yuhang Zhou, Jiangchao Yao, Feng Hong, Ya Zhang, Yanfeng Wang · DOI

Introduction

Memory-replay is a cornerstone strategy for Class Incremental Learning (CIL), where a model learns new tasks sequentially while retaining a small buffer of old samples to prevent catastrophic forgetting. However, even with replay, models often experience a significant dip in performance on old classes when a new task is introduced. This paper identifies and addresses a fundamental phenomenon called the destruction-reconstruction dynamic.

The Destruction-Reconstruction Dynamic

At the onset of a new learning phase, the model is suddenly exposed to a large volume of new data. This creates a massive gradient imbalance that "destroys" the existing feature representations of old classes. The model then spends the remainder of the training phase attempting to "reconstruct" these representations using the limited samples in the memory buffer.

The destruction-reconstruction cycle: initial feature clusters are destroyed by new data influx and then partially reconstructed.

As shown in the visualization above, the distillation loss spikes during the destruction phase, and t-SNE plots reveal that well-separated clusters become blurred. If the initial destruction is too severe, the subsequent reconstruction is insufficient, leading to permanent knowledge loss. The authors argue that by mitigating this initial peak destruction, final model performance can be significantly improved.

The Balanced Destruction-Reconstruction (BDR) Module

To stabilize this cycle, the authors propose the Balanced Destruction-Reconstruction (BDR) module. BDR is a lightweight, plug-and-play component that balances the gradient contributions between new and old classes by manipulating output logits.

The BDR module architecture, featuring Constant Rebalancing (CR) and Dynamic Compensation (DC) to stabilize gradients.

The BDR module consists of two primary mechanisms:

  1. Constant Rebalancing (CR): This addresses quantity imbalance. Since new classes typically have thousands of samples compared to the few dozen in the buffer for old classes, CR applies a logit offset based on the class distribution. This suppresses the dominant gradients of new classes.
  2. Dynamic Compensation (DC): This addresses training status imbalance. New classes are "non-optimal" and require more updates, while old classes are already "optimal" and need protection. BDR uses intra-class variance as a proxy for training status, allowing the model to "throttle" the learning of new classes as they become better defined.

A momentum mechanism is used to update class means and variances, ensuring that logit adjustments remain stable and resistant to mini-batch noise throughout the training process.

Experimental Results

The BDR module was evaluated on standard benchmarks including CIFAR-100, ImageNet-Subset, and the full 1,000-class ImageNet dataset.

  • Universal Performance Gains: BDR consistently improved the accuracy of various baseline methods (e.g., DER, UCIR, DyTox). For instance, it boosted the average accuracy of the DER method by up to 2% on CIFAR-100.
  • Effectiveness with Small Buffers: The module's impact is most pronounced when memory is highly constrained. With only 5 samples per class, BDR provided accuracy gains between 6.5% and 9% over vanilla replay methods.
  • Lower Loss Peaks: Empirical evidence confirmed that BDR successfully lowers the peak distillation loss during the destruction phase, leading to better final convergence and more distinct feature clusters.

Conclusion

By identifying the destruction-reconstruction cycle as a key driver of forgetting in memory-replay CIL, the authors provide a new perspective on model stability. The BDR module offers a theoretically grounded and computationally efficient way to balance gradients, significantly reducing catastrophic forgetting without requiring changes to model architecture or large amounts of additional data.

Summary updated

BibTeX
@article{zhou2024balanced,
  author = {Yuhang Zhou and Jiangchao Yao and Feng Hong and Ya Zhang and Yanfeng Wang},
  title = {{Balanced Destruction-Reconstruction Dynamics for Memory-replay Class Incremental Learning}},
  journal = {IEEE Trans. Image Process.},
  year = {2024},
  doi = {10.1109/tip.2024.3451932},
}
Figure