Skip to main content
QUICK REVIEW

[Paper Review] Parameter-Level Soft-Masking for Continual Learning

Tatsuya Konishi, Mori Kurokawa|arXiv (Cornell University)|Jun 26, 2023
Domain Adaptation and Few-Shot LearningComputer Science5 citations
TL;DR

This paper proposes Soft-masking of Parameter-level Gradient flow (SPG), a novel continual learning method that uses learnable soft-masks on individual network parameters to prevent catastrophic forgetting while enabling automatic knowledge transfer. By dynamically adjusting gradient flow based on parameter importance to previous tasks, SPG maintains full network capacity and outperforms baselines in both similar and dissimilar task scenarios, achieving superior accuracy and reduced forgetting without hard sub-network monopolization.

ABSTRACT

Existing research on task incremental learning in continual learning has primarily focused on preventing catastrophic forgetting (CF). Although several techniques have achieved learning with no CF, they attain it by letting each task monopolize a sub-network in a shared network, which seriously limits knowledge transfer (KT) and causes over-consumption of the network capacity, i.e., as more tasks are learned, the performance deteriorates. The goal of this paper is threefold: (1) overcoming CF, (2) encouraging KT, and (3) tackling the capacity problem. A novel technique (called SPG) is proposed that soft-masks (partially blocks) parameter updating in training based on the importance of each parameter to old tasks. Each task still uses the full network, i.e., no monopoly of any part of the network by any task, which enables maximum KT and reduction in capacity usage. To our knowledge, this is the first work that soft-masks a model at the parameter-level for continual learning. Extensive experiments demonstrate the effectiveness of SPG in achieving all three objectives. More notably, it attains significant transfer of knowledge not only among similar tasks (with shared knowledge) but also among dissimilar tasks (with little shared knowledge) while mitigating CF.

Motivation & Objective

  • To overcome catastrophic forgetting (CF) in task-incremental continual learning (TIL) without sacrificing knowledge transfer (KT) or over-consuming network capacity.
  • To address the limitations of existing methods that hard-mask neurons or sub-networks, which restrict knowledge transfer and degrade performance over time.
  • To enable flexible, fine-grained parameter updates by soft-masking based on gradient-based importance scores, preserving network capacity and enabling KT across both similar and dissimilar tasks.
  • To demonstrate that soft-masking at the parameter level is more effective than regularization or hard-masking strategies in balancing CF prevention and KT.

Proposed method

  • SPG computes a gradient-based importance score for each individual parameter to previous tasks, using cross-head importance (CHI) to aggregate gradients across task heads.
  • It applies a soft-mask to gradient flow during backpropagation, where the mask value is a learned, differentiable function of parameter importance, allowing partial gradient updates.
  • The method uses soft-masking of each head (SMH) to balance training between the feature extractor and classification head, improving stability and performance.
  • Unlike HAT or SupSup, SPG does not hard-mask neurons or sub-networks; instead, it keeps all parameters trainable in the forward pass, enabling full knowledge transfer.
  • The importance scores are computed using gradients from previous tasks, and the soft-mask dynamically suppresses updates to parameters critical for old tasks.
  • SPG avoids binary thresholds by using continuous importance values, making it more flexible and robust than hard-masking alternatives.

Experimental results

Research questions

  • RQ1Can parameter-level soft-masking effectively prevent catastrophic forgetting while enabling knowledge transfer in continual learning?
  • RQ2How does soft-masking at the parameter level compare to regularization-based methods like EWC in preventing forgetting?
  • RQ3To what extent can SPG enable knowledge transfer between dissimilar tasks, where shared knowledge is minimal?
  • RQ4Does soft-masking reduce the capacity problem compared to hard-masking methods that monopolize sub-networks?
  • RQ5How do individual components of SPG—CHI, SMH, and soft-masking—contribute to overall performance?

Key findings

  • SPG achieves state-of-the-art performance on standard continual learning benchmarks, outperforming strong baselines like HAT, SupSup, and EWC in both similar and dissimilar task settings.
  • On the C-20 dataset with dissimilar tasks, SPG achieved a 5.5% accuracy gain over the ablation without cross-head importance (CHI), demonstrating its effectiveness in mitigating forgetting.
  • SPG with soft-masking significantly outperformed its hard-masking variant, which required tuning a threshold and led to performance degradation, proving the superiority of continuous soft-masking.
  • In representation learning evaluations, SPG maintained high accuracy on non-CL datasets like TinyImageNet and CIFAR100 even after 100 tasks, while NCL and HAT showed severe degradation.
  • The ablation study confirmed that all three components—CHI, SMH, and soft-masking—contribute positively, with SMH delivering up to 2.9% improvement on I-100, highlighting its role in training balance.
  • SPG enables automatic knowledge transfer without task similarity detection, unlike CAT, and avoids the risk of misclassification-induced catastrophic forgetting.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.