Addressing Imbalanced Domain-Incremental Learning through Dual-Balance Collaborative Experts

Lan Li, Da-Wei Zhou, Han-Jia Ye, De-Chuan Zhan

TL;DR

Domain-Incremental Learning (DIL) often struggles when real-world data is imbalanced, causing models to ignore rare classes or forget old ones as distributions shift. This paper introduces Dual-Balance Collaborative Experts (DCE), a framework that uses specialized "frequency-aware" experts and a dynamic selector trained on synthetic features to balance knowledge across both many-shot and few-shot classes throughout a sequence of tasks.

Introduction: The Challenge of Imbalanced DIL

In Domain-Incremental Learning (DIL), a model learns a fixed set of classes (e.g., "car," "truck") across a sequence of different environments or "domains" (e.g., sunny, rainy, snowy). While standard DIL focuses on "concept drift" (the change in visual style), this paper tackles a more realistic and difficult scenario: Imbalanced DIL.

The authors identify two specific hurdles that degrade model performance:

  1. Intra-domain imbalance: Within a single task (like "Rainy Day"), some classes have thousands of images while others have only ten. Models naturally overfit the "many-shot" classes and ignore the "few-shot" ones.
  2. Cross-domain distribution shifts: The ratio of classes changes between tasks. A model might learn "trucks" perfectly in Task 1, but if Task 2 has very few trucks, the model might "forget" how to recognize them or fail to transfer new knowledge back to the rare classes of previous tasks.

Existing methods usually choose between two extremes: sharing all knowledge (which helps rare classes but causes massive forgetting) or isolating tasks (which prevents forgetting but stops the model from learning anything new about rare classes).

Methodology: Dual-Balance Collaborative Experts (DCE)

The DCE framework operates in two distinct stages for every new domain to overcome these imbalances.

The Dual-Balance Collaborative Experts (DCE) framework architecture.

1. Frequency-Aware Expert Training

Instead of relying on one general model, DCE trains a group of three parallel "experts" (small MLP heads) for each task. Each expert is guided by specialized loss functions to target specific frequency groups:

  • The Many-Shot Expert: Trained with standard Cross-Entropy loss ($\ell_{CE}$); it excels at the most frequent classes.
  • The Balanced Expert: Uses a "Balanced Softmax" loss ($\ell_{Bal}$) to account for label frequency and provide a middle ground.
  • The Few-Shot Expert: Uses a novel Inverse Distribution Loss ($\ell_{Rev}$). This essentially "flips" the distribution, forcing the expert to prioritize the rarest classes.

2. Dynamic Expert Selector

Once the experts are trained, the model needs to know which ones to listen to during inference. DCE uses a Dynamic Expert Selector (an MLP) to assign soft weights to every expert learned so far.

To train this selector without storing old images—which would violate the strict "exemplar-free" setting of DIL—the authors use Balanced Gaussian Sampling. They store only the mean and covariance of features for each class and domain. They then synthesize "pseudo-features" from these distributions to train the selector. This ensures the selector itself isn't biased toward many-shot classes.

The entire system sits on top of a frozen pre-trained Vision Transformer (ViT), using Visual Prompt Tuning (VPT) in the first task to adapt the backbone to the DIL setting.

Datasets

The authors evaluated DCE on four major benchmarks, modified to reflect real-world imbalance:

  • Office-Home: 4 domains, 65 categories.
  • DomainNet: A massive dataset with 6 domains and 345 categories (naturally highly imbalanced).
  • CORe50: 11 domains; the authors manually induced class imbalance ratios.
  • CDDB-Hard: A deepfake detection benchmark where they adjusted positive-to-negative sample ratios.

Key Results and Insights

DCE achieved State-of-the-Art (SOTA) performance across all benchmarks, proving the efficacy of its dual-balance approach.

  • Accuracy Boost: On the challenging DomainNet dataset, DCE outperformed the runner-up by 5.70% in final accuracy.
  • Few-Shot Recovery: A major breakthrough of DCE is its ability to continuously improve on rare classes. As shown below, while other methods (like L2P and S-iprompt) see few-shot accuracy stagnate or collapse, DCE's few-shot performance actually increases as it encounters more domains, proving successful forward knowledge transfer.
Accuracy comparison across domains showing DCE's few-shot recovery.
  • The Shared vs. Isolated Trade-off: The paper proves that "shared prompt" methods help few-shot classes but suffer from catastrophic forgetting. "Domain-specific" methods stop forgetting but can't improve rare classes using new data. DCE bridges this gap by allowing isolated experts to collaborate via the dynamic selector.
  • Synthetic Memory: By storing class statistics (means/covariances) instead of raw images, DCE achieves "pseudo-replay." This allows the model to maintain a balanced perspective of all historical classes without the storage overhead or privacy concerns of a traditional image buffer.
  • Efficiency: Because DCE only requires a single forward pass through the frozen ViT backbone (unlike some prompt-based methods that require two), it is significantly faster during both training and inference.

Limitations and Future Work

  • Gaussian Assumption: The feature synthesis relies on the assumption that features follow a unimodal Gaussian distribution. While often true for pre-trained models, this might fail in highly complex or entangled feature spaces.
  • Expert Scaling: The authors noted that adding more than three experts per task yielded marginal gains. Finding the "optimal" number of experts automatically remains an open question.
  • Backbone Dependency: The method relies heavily on a strong pre-trained initialization (ViT). Its performance on "from-scratch" incremental learning was not explored and remains an area for future research.

Summary updated

BibTeX
@inproceedings{li2025addressing,
  author = {Lan Li and Da-Wei Zhou and Han-Jia Ye and De-Chuan Zhan},
  title = {{Addressing Imbalanced Domain-Incremental Learning through Dual-Balance Collaborative Experts}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=dwjwvTwV3V},
}
Figure