Efficient Expansion and Gradient Based Task Inference for Replay Free Incremental Learning

Soumya Roy, Vinay Kumar Verma, Deepak Gupta

This paper presents a novel framework for Replay-Free Incremental Learning, tackling the twin challenges of "catastrophic forgetting" and efficient model growth. By combining an adaptive expansion strategy with a clever gradient-based task inference method, the authors achieve state-of-the-art performance in both Task Incremental (TIL) and the much harder Class Incremental (CIL) settings—all without storing a single image from the past.

TL;DR

The authors propose a model that grows its architecture based on task complexity and identifies the correct "task expert" at inference time by analyzing the norm of loss gradients. This approach eliminates the need for data replay while outperforming existing expansion-based and regularization-based methods on standard benchmarks.

What Problem Does This Paper Address?

In Continual Learning (CL), AI models must learn a sequence of tasks without forgetting previous ones. Most current solutions fall into two camps:

  1. Replay-based: These store a subset of old data to "refresh" the model's memory. This raises privacy concerns and increases storage costs.
  2. Expansion-based: These add new neurons or layers for new tasks. However, these models often grow at a fixed rate regardless of task difficulty and struggle with Task Inference—knowing which part of the expanded network to use when the task ID isn't provided at test time (the Class Incremental Learning setting).

The authors aim to create a model that expands efficiently (only as much as needed) and can accurately "guess" the task ID during inference without relying on stored samples.

Methods

The paper introduces three core components:

1. Efficient Dynamic Expansion

Unlike previous methods that only expand a shared "backbone," this model grows by adding filters and channels that build upon all previously learned parameters. This allows for better "forward transfer," where knowledge from Task 1 helps the model learn Task 2 more quickly.

2. Adaptive Growth Rate (APG)

Not all tasks are equally difficult. The authors use a compatibility score based on the gradient similarity between the new task and the previous one.

  • If a new task is similar to what the model already knows, it adds very few parameters.
  • If the task is brand new or complex, it expands more aggressively.

3. Gradient-Based Task Inference

This is the "secret sauce" for the CIL setting. To figure out which task a test sample belongs to:

  • The model creates multiple augmented versions of the input image.
  • It calculates a weighted loss (using entropy to handle uncertainty) and computes the gradient for every task-specific "expert" in the network.
  • The Intuition: The correct expert will have the "flattest" loss landscape for that sample. Therefore, the task model that produces the smallest normalized gradient norm is chosen as the winner.

To keep this computationally feasible, they use a "mean filters" strategy, reducing the gradient dimensionality by 99.98% without losing predictive power.

Datasets

The model was evaluated on several rigorous benchmarks:

  • CIFAR-100 & ImageNet-100: Split into 5, 10, and 20 sequential tasks.
  • Tiny ImageNet: 10 tasks using a VGG-16 architecture.
  • Heterogeneous Sequences: A mix of SVHN (digits), CIFAR-10, and CIFAR-100 to test robustness across different data domains.
  • Generative Tasks: Sequential training of GANs (StackGAN-v2) on Cats, Birds, and Churches.

Key Insights and Ideas

  • Gradients as a Fingerprint: The most striking idea is using the loss gradient norm as a proxy for task identity. It treats the network's own "certainty" (represented by how much the weights want to change) as a signal to identify the task.
  • Complexity-Aware Scaling: By making the growth rate a function of task similarity, the model avoids the "parameter explosion" common in other expansion methods.
  • Entropy Weighting: By weighting the loss of augmented samples by their entropy, the model effectively ignores "confusing" or low-quality augmentations that might lead to an incorrect task prediction.

Key Results

  • Superior Accuracy: In the challenging CIFAR-100 (10 tasks) CIL setting, the proposed model achieved 50.6% accuracy, a significant 5.1% absolute gain over the previous state-of-the-art (EFT).
  • Parameter Efficiency: The Adaptive Parameter Growth (APG) variant achieved nearly identical accuracy to the static version while using 12.2% fewer parameters on average.
  • Generative Success: In the GAN experiments, the model achieved the lowest (best) FID scores, proving it can prevent forgetting even in complex image generation tasks.
  • Robustness: The task inference method remained stable even as the number of tasks increased to 20, where other methods typically see a rapid performance drop.

Limitations and Future Work

  • Inference Latency: Currently, task prediction requires a forward and backward pass for every task expert. While the authors suggest using "superposition" techniques to speed this up, the current inference time scales linearly with the number of tasks.
  • Architecture Specificity: While described as generic, the primary evaluations are on convolutional neural networks (CNNs). Testing the efficacy of gradient-based inference on Vision Transformers (ViTs) or Large Language Models (LLMs) remains an open area.
  • Memory Growth: Although it is "replay-free," the model still physically grows. For an infinite sequence of tasks, the total parameter count would eventually become a bottleneck.

Summary updated

BibTeX
@inproceedings{roy2024efficient,
  author = {Soumya Roy and Vinay Kumar Verma and Deepak Gupta},
  title = {{Efficient Expansion and Gradient Based Task Inference for Replay Free Incremental Learning}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2024},
  url = {https://openreview.net/forum?id=aWnu42BTNw},
}

Loading related content...

Figure