AdaptCL: Adaptive Continual Learning for Tackling Heterogeneity in Sequential Datasets

Yuqing Zhao, Divya Saxena, Jiannong Cao · DOI

Continual learning (CL) is the "holy grail" of artificial intelligence—the ability for a model to learn new tasks sequentially without forgetting what it already knows. However, real-world data is rarely uniform. It is heterogeneous, varying wildly in size, complexity, and similarity. Most current CL methods crumble under this pressure, either forgetting old tasks too quickly or failing to learn new, dissimilar ones.

TL;DR

AdaptCL is a novel task-agnostic continual learning framework that uses fine-grained, data-driven pruning to handle datasets of varying sizes and complexities. By dynamically isolating and reusing parameters, it achieves superior accuracy and parameter efficiency while effectively mitigating catastrophic forgetting across diverse domains without needing task labels at inference time.

What Problem Does This Paper Address?

The authors identify a major gap in current continual learning research: heterogeneity. Most benchmarks use sequences of tasks with similar sizes and complexities (like splitting MNIST into five pairs of digits). In reality, a model might first learn from a massive dataset of high-resolution photos and then be asked to learn from a tiny, few-shot dataset of sketches.

Existing approaches struggle here:

  • Rehearsal-based methods (storing old data) use rigid buffer sizes that don't scale well with varying dataset sizes.
  • Regularization-based methods (penalizing weight changes) often apply generic constraints that can be too restrictive for dissimilar tasks, hindering new learning.
  • Structure-based methods (isolating parameters) usually require a "task ID" at test time to know which part of the network to use, making them unsuitable for "task-agnostic" scenarios where the model must figure out the task on its own.
Fig. 1: (a) Traditional parameter isolation methods divide the network into non-interfering modules during inference. However, these methods are limited to task-specific continual learning (aka task incremental learning). They require manual selection of output layers and parameters, resulting in lim- ited generalization and higher parameter usage. (b) AdaptCL achieves task-agnostic parameter isolation by fine-grained data-driven parameter partitioning, enabling high accuracy on heterogeneous datasets without module selection, while also optimizing parameter reuse and saving resources.

Methods

AdaptCL introduces a two-pronged strategy inspired by the human brain's ability to prune redundant synapses and reuse neural circuits:

  1. Fine-Grained Data-Driven Pruning: Instead of using a fixed pruning ratio (e.g., "prune 50% of weights"), AdaptCL learns a high-dimensional trainable threshold vector. During training, the model automatically determines which neurons or filters are important for the current data. This allows it to adapt its complexity to the task at hand—using more parameters for complex data and fewer for simple data.
  2. Task-Agnostic Parameter Isolation: Once a task is learned, the important parameters are "frozen" using a binary mask. For subsequent tasks, the model reuses these frozen parameters (promoting forward knowledge transfer) while only updating the remaining "free" parameters. Crucially, at inference time, the model uses the entire integrated network, removing the need for task-specific labels.
Fig. 2: The Adaptive Continual Learning (AdaptCL) training flow. It facilitates adaptive learning via fine-grained data-driven pruning to respond effectively to variations in data complexity and dataset size. Additionally, it enables task-agnostic parameter isolation to ensure optimal model performance on datasets ranging in similarity without requiring manual selection of modules.

Datasets

The researchers evaluated AdaptCL on a diverse set of benchmarks designed to test heterogeneity:

  • Large-Scale Food Quality Dataset: 14,683 images of six fruit/vegetable types, varying in size and source.
  • Few-Shot Food Quality Dataset: A challenging real-world case with as few as 57 images per category.
  • DomainNet: A massive dataset spanning different styles like Quickdraw, Sketch, and Clipart.
  • MNIST Variants: A sequence of MNIST, Permuted MNIST (random pixels), Inverted MNIST, and Rotated MNIST to test how the model handles varying degrees of similarity.
Fig. 3: Examples of input images used in the experiments. (a) Large-Scale, Diverse Binary-Class Food Quality Dataset. (b) Few-Shot, Multi-Class Food Quality Dataset. (c) DomainNet comprises datasets with heterogeneous complexity and size. (d) MNIST Variants with heterogeneous similarity.

Key Insights and Ideas

  • Neural Reuse: AdaptCL doesn't just isolate tasks; it reuses previously learned features. This is why it excels at few-shot learning—it leverages "knowledge" from previous large datasets to understand new, smaller ones.
  • Order Independence: A common pitfall in CL is that the order of tasks matters. AdaptCL is remarkably robust; its average accuracy remains stable regardless of whether it learns the "easy" or "hard" task first.
  • Sparsity as a Defense: By keeping the network sparse through data-driven pruning, AdaptCL leaves "room" for future tasks, effectively managing the model's capacity over time.

Key Results

  • Superior Accuracy: On the large-scale food dataset, AdaptCL outperformed baselines like EWC and LwF by 4.32% in average accuracy while using the fewest parameters.
  • Mitigating Forgetting: In the challenging class-incremental setting, AdaptCL achieved 37.27% higher average accuracy than standard SGD and reduced forgetting by nearly 35%.
  • Efficiency: Compared to training separate models for each task (SML), AdaptCL achieved comparable results while using only 31.20% of the total parameters.
  • Positive Transfer: In few-shot scenarios, the model actually showed positive backward transfer (1.08%), meaning learning the new task actually improved its performance on the old one.

Limitations and Future Work

The authors acknowledge that while AdaptCL is efficient, it faces a hard limit: fixed network capacity. If a model learns too many tasks, it will eventually run out of free parameters.

Future Work: The team plans to investigate network expansion techniques that would allow the model to dynamically grow its architecture when it detects that its current capacity is insufficient for a new, complex dataset.

Summary updated

BibTeX
@article{zhao2025adaptcl,
  author = {Yuqing Zhao and Divya Saxena and Jiannong Cao},
  title = {{AdaptCL: Adaptive Continual Learning for Tackling Heterogeneity in Sequential Datasets}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2025},
  doi = {10.1109/tnnls.2023.3341841},
}
Figure