Class-Mixed Diffusion Augmentation for Shortcut-Breaking in Continual Learning

Abhinab Acharya, Dayou Yu, Qi Yu, Xumin LiuNeurIPS 2026

TL;DR

When neural networks learn a sequence of tasks without saving old data, they often take lazy "shortcuts"—like recognizing a plane solely by its blue sky background—which causes catastrophic confusion when a later task introduces birds in that same blue sky. This paper introduces Class-Mixed Diffusion Augmentation (CMDA), a clever, training-free method that uses a frozen diffusion model to generate "shortcut-breaking" auxiliary classes (like generating birds during the plane task) to force the network to learn the actual objects. It consistently boosts accuracy across continual learning benchmarks without the heavy computational cost of fine-tuning generators or backpropagating through them.

What Problem Does This Paper Address?

Imagine teaching a model to recognize new categories of objects over time—a setup called Class-Incremental Learning. If privacy or memory rules forbid storing past images, you are in the realm of Exemplar-Free Class Incremental Learning (EFCIL).

A popular way to prevent the model from overwriting old knowledge is parameter allocation: you freeze a shared backbone and train isolated, task-specific sub-networks (parameters) for each new batch of classes. While this stops parameter-level forgetting, it creates a new bottleneck at test time: task-ID prediction. Because you don't know which task a test image belongs to, you have to guess which sub-network to route it to (usually whichever one outputs the highest confidence/logit).

Here is the catch: neural networks are notoriously lazy. If Task 1 asks a sub-network to separate planes from cars, it might just learn to detect "blue sky" vs. "asphalt"—a phenomenon the authors formalize as shortcut-collapse. Later, Task 2 asks a new sub-network to separate birds from dogs, and it also latches onto "blue sky." At test time, show the system a bird in the sky, and both sub-networks scream with high confidence. Because tasks share shortcuts, task-ID prediction degenerates toward random guessing. Using standard text-to-image diffusion models to generate more plane images doesn't fix this, because synthetic planes also come with blue skies!

Methods

To break this shortcut reliance without expensive diffusion fine-tuning or gradient-guided sampling, the authors propose Class-Mixed Diffusion Augmentation (CMDA). Instead of just generating more images of the current classes, CMDA invents temporary auxiliary classes specifically chosen to collide with the model's lazy shortcuts.

Figure 1: Overview of our method, high- lighting the key differences with respect to recent methods. τ controls the similarity of sampled candidate tokens to the class y. “Aux class” refers to auxiliary class, “Vocab” refers to CLIP-Vocabulary, DM refers to Dif- fusion Model, and θ refers to CL classifier.

For each real class $y$ (e.g., Plane) in the current task, CMDA runs a three-step pipeline:

  1. Baseline Probing: First, a preliminary classifier is trained on real data plus standard, same-class diffusion generations ("Strategy A") to expose what shortcuts the model naturally falls for.
  2. Similarity-Thresholded Token Sampling: Next, CMDA samples candidate words from the diffusion model's CLIP text vocabulary. Crucially, it filters out words whose text embeddings are too similar to Plane (controlled by a cosine-similarity threshold $\tau$) so it doesn't accidentally pick near-synonyms like Aircraft or Jet.
  3. Minimum Cross-Entropy (CE) Selection: Using a frozen Stable Diffusion v1.5 model, CMDA generates a handful of images for each candidate token (say, Bird and Car) and feeds them through the preliminary classifier. It selects the token whose images yield the lowest Cross-Entropy loss for the target label Plane—meaning the classifier is strongly fooled into thinking these images are planes!

Finally, CMDA generates a batch of images for that winning token (Bird), assigns it a brand-new auxiliary label, and retrains the task sub-network on the mix of real, same-class synthetic, and auxiliary-class synthetic data. Facing Planes and Birds that both share blue skies—but carry different labels—the model is forced to look at wings, beaks, and engines. At inference time, the auxiliary classifier heads are simply thrown away.

Datasets

The authors evaluate CMDA on three standard EFCIL vision benchmarks, each split into 10 sequential tasks:

  • Split-CIFAR100: 100 everyday object classes (10 classes per task).
  • Split-ImageNet (ImageNet100): A 100-class subset of ImageNet (10 classes per task).
  • Split-CUB (CUB200): A challenging fine-grained dataset of 200 bird species (20 classes per task). (Note: An additional domain-mismatch evaluation on the medical BloodMNIST dataset is mentioned and detailed in the paper's appendix).

Key Insights and Ideas

  • Shared shortcuts set a hard floor on accuracy: The authors prove mathematically that under shortcut-collapse, if $q$ out of $K$ tasks share the same shortcut distribution, even a Bayes-optimal task-ID predictor will fail at least $\frac{q-1}{K}$ of the time. Breaking shortcuts isn't just nice for generalization; it is mathematically required to tell tasks apart.
  • The "Goldilocks Zone" of semantic similarity: When picking auxiliary tokens, similarity threshold $\tau$ matters enormously. Pick tokens too close to the original class ($\tau = 1$), and you get synonyms that confuse decision boundaries; pick tokens too far away, and they don't share the background/texture shortcuts you want to break. Moderately dissimilar tokens ($\tau$ around $0.6$ to $0.9$) hit the sweet spot.
  • "Easy" impostors beat "hard" ones: Counterintuitively, selecting out-of-class tokens with low CE loss ("Easy" for the classifier to mistake as the target class) consistently outperforms selecting high CE tokens. Why? Because low CE acts as a lightweight, forward-pass-only radar for shortcut overlap!
  • Auxiliary classes do the heavy lifting: Ablations reveal a nuanced truth: simply adding random auxiliary classes from the vocabulary gives a massive boost over vanilla same-class augmentation, because random classes occasionally collide with shortcuts by chance. Classifier-guided minimum-CE selection then provides a smaller, reliable extra push on top.

Key Results

CMDA achieves state-of-the-art Final Accuracy across all three main benchmarks, outperforming prototype, model-inversion, and diffusion-based EFCIL baselines (including FPCIL and DiffClass):

  • Split-CIFAR100: 57.15% (up from 53.71% with DiffClass and 54.35% with vanilla diffusion augmentation).
  • Split-ImageNet: 65.51% (surpassing DiffClass at 63.20% and FPCIL at 57.21%).
  • Split-CUB: 56.76% with a pretrained backbone (vs. 52.08% for DiffClass). When trained from scratch in ablations, CMDA jumps from 19.34% (vanilla diffusion) to 32.23%.
  • Where the gains come from: Decomposing performance into Task-ID Prediction (TIP) vs. Task-Aware Learning (TIL) confirms the core hypothesis. On Split-CUB, CMDA boosts TIL by ~3.3 percentage points, while TIP skyrockets from 26.34% to 44.19%.

Limitations and Future Work

The authors are admirably transparent about the boundaries of their work:

  • Generator and vocabulary dependence: CMDA relies entirely on the knowledge and CLIP vocabulary of a frozen pretrained diffusion model; if the target domain is alien to the generator, synthetic quality and token relevance may suffer.
  • Extra compute overhead: While much cheaper than fine-tuning a diffusion model or backpropagating gradients through denoising steps, CMDA still requires training a preliminary classifier and generating candidate images ($O(mN_w)$ per class) before final training.
  • Theory-practice gap: Their theoretical guarantees assume idealized i.i.d. token sampling and clean loss gaps, whereas the practical algorithm uses structured cosine-similarity bands, and natural benchmark gains cannot be 100% isolated to shortcut reduction alone. Future directions are not explicitly discussed in the main text.

Summary updated

Abstract

Zero-shot pre-trained diffusion models can provide a training-free source of synthetic image generation for Exemplar-Free Class Incremental Learning (EFCIL). However, same-class generation is limited by the distribution mismatch with real data. Parameter-allocation-based EFCIL can minimize the forgetting in model parameters, yet the performance degrades because task-id prediction fails when task-specific feature extractors overcompress and converge to shortcut-dominant representations. We propose \emph{Class-Mixed Diffusion Augmentation} (CMDA) that uses diffusion models not only as past-task data generators but also as controlled generators that challenge the shortcut reliance. We sample candidate tokens from the vocabulary and select \emph{shortcut-breaking} tokens via classifier-guided filtering, then treat the selected tokens as auxiliary classes during training. We provide theoretical analysis linking shortcut sharing to an intrinsic lower bound on task-id error and show that, under stated assumptions, minimum-CE selection recovers shortcut-breaking tokens with nonzero probability. Experiments on Split-CIFAR100, Split-ImageNet, and Split-CUB show consistent gains over EFCIL baselines, with modest overhead over vanilla diffusion augmentation and far lower cost than diffusion fine-tuning or gradient-guided sampling. Our ablation study further shows that auxiliary-class augmentation contributes most to the performance gain, while classifier-guided selection provides a smaller, consistent improvement.
BibTeX
@inproceedings{acharya2026class,
  author = {Abhinab Acharya and Dayou Yu and Qi Yu and Xumin Liu},
  title = {{Class-Mixed Diffusion Augmentation for Shortcut-Breaking in Continual Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=GGcrbkuKF6},
}
Figure