Contrastive Consolidation of Top-Down Modulations Achieves Sparsely Supervised Continual Learning

Viet Anh Khoa Tran, Emre Neftci, Willem A.m. Wybo

In the time it takes you to read this sentence, your brain has likely processed a dozen new visual stimuli without overwriting your ability to recognize a coffee mug or your grandmother’s face. In machine learning, however, we struggle with catastrophic forgetting: teach a model a new task, and it often promptly "forgets" how to do the old ones.

A new paper from researchers at Forschungszentrum Jülich and RWTH Aachen, titled "Contrastive Consolidation of Top-Down Modulations Achieves Sparsely Supervised Continual Learning," introduces a novel way to bridge this gap. By mimicking the way the biological neocortex integrates "top-down" information, they’ve developed an algorithm that learns continually from a stream of data using as few as 1% of available labels.

TL;DR

Task-Modulated Contrastive Learning (TMCL) is a brain-inspired algorithm that solves catastrophic forgetting by separating "fast" task-specific learning from "slow" general representation building. It uses sparse labels to create task-specific "modulations" and then uses unsupervised contrastive learning to bake that knowledge into the core model weights.

Overview of TMCL and its biological inspiration

The Stability-Plasticity Dilemma

The authors tackle a fundamental challenge in artificial intelligence: the Stability-Plasticity Dilemma. A model needs to be plastic enough to learn new information but stable enough to prevent new knowledge from corrupting old memories.

Current approaches usually fall into two camps:

  1. Supervised Learning: Great at specific tasks but suffers from massive forgetting when the data stream changes.
  2. Self-Supervised Learning (SSL): Learns general features without labels but often lacks the "specialist" knowledge needed to distinguish between very similar classes (like different breeds of dogs) in a continual setting.

Furthermore, most ML models assume a rigid "pre-train then fine-tune" pipeline. In the real world, learning is a messy, ongoing stream where labels are rare—much like a parent occasionally pointing at an object and saying "apple" while a child spends most of their time simply observing the world.

Methodology: Task-Modulated Contrastive Learning (TMCL)

The researchers took inspiration from the neocortex. Biological neurons have two distinct zones: a "proximal" zone that handles feedforward sensory input and a "distal" zone that receives top-down modulatory signals (context, goals, or labels).

Their algorithm, TMCL, operates in two alternating phases across an ongoing input stream:

Timeline of the TMCL learning process showing Orthogonalization and Consolidation phases
  1. Orthogonalization (The "Fast" Specialist): When a few labeled samples appear, the model freezes its main feedforward weights and learns small, task-specific affine modulations. These modulations act like a filter, "collapsing" the representation of the new class into a specific subspace that is orthogonal (mathematically independent) to all other known classes. This is a sparsely supervised process.
  2. Consolidation (The "Slow" Generalist): This phase is entirely unsupervised. The model uses a contrastive loss to train the main feedforward weights. Crucially, it doesn't just try to make different augmented "views" of an image look the same (as in standard SSL); it tries to make the unmodulated representation match the modulated versions.

By doing this, the model "consolidates" the specialist knowledge from the modulations into the general-purpose weights without needing to store a massive buffer of old images for replay.

Key Insights and Ideas

  • Functional Replay: Instead of replaying old images—which is memory-intensive and raises privacy concerns—TMCL effectively "replays" the logic of the task through its stored modulations.
  • Modulation Invariance: The conceptual breakthrough here is treating a modulation like a data augmentation. Just as a model should know a cat is still a cat if the image is flipped horizontally, TMCL teaches the model that the "general" representation should eventually align with the "specialized" (modulated) one.
  • Robustness to Noise: Because the modulations are learned separately, the model is incredibly robust to "noisy" or incorrect labels. Even if a large portion of the labels are wrong, the contrastive machinery treats the resulting nonsensical modulations as noise and ignores them, maintaining high performance.
  • Greedy vs. General: Purely supervised methods are "greedy"—they only learn the features strictly necessary to solve the current task. TMCL’s unsupervised consolidation ensures the model learns a richer, more transferable set of features.

Datasets and Key Results

The authors evaluated TMCL on standard computer vision benchmarks for continual learning, including CIFAR-100 and ImageNet-100 (divided into 5 sessions), as well as a Transfer Learning Suite (Aircraft, CUBirds, EuroSAT, GTSRB, etc.) to test feature generality.

  • Label Efficiency: In a "label-scarce" scenario where only 1% of labels were available, TMCL achieved 60.7% accuracy on CIFAR-100, significantly outperforming standard supervised approaches like SupCon (~39.1%).
  • State-of-the-Art Continual Learning: It outperformed existing unsupervised continual learning methods (like CaSSLe and PNR) across the board.
  • Superior Transfer: When moved to new, unseen datasets, the representations learned by TMCL were more useful than those from purely supervised models, proving that the "consolidation" process builds a better foundation for future learning.

Limitations and Future Work

While highly effective, TMCL does have limitations. It requires storing the affine modulations for every class learned. For 100 classes, this is about 4.1M parameters. While much smaller than storing full model copies, it still scales linearly with the number of classes. Currently, these modulations are static once learned; the authors suggest that a future "generator" network could produce these modulations on the fly, making the system even more efficient.

Additionally, the current work focuses on "class-incremental" learning (learning new objects). Future research will be needed to see how well this brain-inspired approach handles "domain-incremental" learning, where the same objects appear in wildly different environments.

Paper Citation: Tran, V. A. K., Neftci, E., & Wybo, W. A. M. (2025). Contrastive Consolidation of Top-Down Modulations Achieves Sparsely Supervised Continual Learning. 39th Conference on Neural Information Processing Systems (NeurIPS 2025).

Summary updated

BibTeX
@inproceedings{tran2025contrastive,
  author = {Viet Anh Khoa Tran and Emre Neftci and Willem A.M. Wybo},
  title = {{Contrastive Consolidation of Top-Down Modulations Achieves Sparsely Supervised Continual Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=pLDpenGIjl},
}
Figure