Dual Samplers for Balanced Incremental Learning

This direction is no longer present in the current build. Its last version stays readable and citable here.

Version 1 of 112 papers16 conceptsfrozen 2026-10-04

When a neural network learns a new task, it often suffers from "catastrophic forgetting"—the tendency to completely overwrite the knowledge of previous tasks. At its core, this is a problem of data imbalance. In a sequential learning scenario, the model is flooded with new data while the old data is either absent or relegated to a tiny memory buffer.

To solve this, researchers have converged on a strategy of dual-stream sampling. By maintaining separate paths for current and historical data and forcing them into a balanced dialogue within every training batch, models can expand their knowledge without losing their foundation.

The Imbalance Problem

In standard training, we assume the data is independent and identically distributed (i.i.d.). In incremental learning, this assumption breaks. As Hongjoon Ahn and colleagues point out in SS-IL: Separated Softmax for Incremental Learning, a global softmax layer allows new classes to "bully" the scores of old ones. Because the model sees thousands of new examples and only a handful of "exemplars" from the past, the optimization gradient is almost entirely determined by the new task.

This isn't just a problem of forgetting; it's a problem of scale. In large-scale face recognition, Kai Wang notes that when dealing with tens of millions of identities, rare classes are naturally drowned out by frequent ones, leading to unstable feature representations.

Dual Sampling as a Balancing Act

The most effective countermeasure is to decouple the sampling of new and old data. Instead of a single data loader, researchers like Yang Mu and Zhangyang Wang propose a dual-sampler framework.

In this architecture, the training process draws from two concurrent paths:

  1. The Instance Sampler: This path samples randomly from the current, large dataset. It ensures the model learns the nuances of the new task.
  2. The Balanced/Reverse Sampler: This path specifically targets the "memory"—either a buffer of old samples or rare classes.

By mixing these streams into every mini-batch, the model receives a consistent signal for both old and new concepts. Sunyuan Qiang and Jun Wan formalize this in Mixture Uniform Distribution Modeling and Asymmetric Mix Distillation for Class Incremental Learning, showing that over-sampling the limited historical data bridges the distribution gap between the imbalanced training set and a balanced test set.

Memory Mechanisms: Queues and Recall

How do we store the "old" data for the second sampler? The papers suggest three primary mechanisms:

  • Fixed-Length Queues: For online data streams, Kleanthis Malialis suggests using separate, fixed-length buffers for each class. This performs "temporal oversampling," where rare class examples stay in memory longer than frequent ones, ensuring they are always available for the dual sampler.
  • Generative Recall: Instead of storing raw images, Weiming Dong and Huai-Yu Li use a Generative Adversarial Network (GAN) to "recall" pseudo-samples. Their ICLNet framework then mixes these synthetic memories with real new data.
  • Dynamic Class Pools: In An Efficient Training Approach for Very Large Scale Face Recognition, Kai Wang replaces the static final layer with a dynamic pool. Here, the dual sampler ensures that each batch contains multiple images per identity, providing the necessary positive and negative pairs to keep the pool stable.

Why It Works: Gradient Stability

The intuition behind dual sampling is about gradient magnitude. If a batch contains 127 new samples and 1 old sample, the gradient update for the old sample is a tiny whisper against a shout. By forcing a balanced ratio (e.g., 50/50) within the mini-batch, the "whisper" becomes a clear instruction.

As Qingbin Liu demonstrates in Lifelong Intent Detection via Multi-Strategy Rebalancing, this rebalancing prevents the model from becoming overconfident in recent classes. When the optimization process receives consistent signals for the entire learned concept set, the weights find a region of the loss landscape that satisfies both the historical constraints and the new requirements, effectively mitigating catastrophic forgetting.

Papers in this version

History & citationVersion 1 · 2026-10-04

No longer present in the current build · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_dual_samplers_for_balanced_incremental_l_7ef02602,
  title = {Dual Samplers for Balanced Incremental Learning},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/dual-samplers-for-balanced-incremental-learning/rdr_7ef026026de2413cbbaf7c37ddda25d8},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-12-05},
}

This exact version (version 1, frozen text):

@misc{lacuna_dual_samplers_for_balanced_incremental_l_7ef02602_v1,
  title = {Dual Samplers for Balanced Incremental Learning},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/dual-samplers-for-balanced-incremental-learning/rdr_7ef026026de2413cbbaf7c37ddda25d8/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-12-05},
}