[Paper Review] Ternary Feature Masks: continual learning without any forgetting
This paper introduces Ternary Feature Masks, a continual learning method that prevents catastrophic forgetting by applying ternary masks to layer activations rather than weights, enabling efficient knowledge reuse with minimal memory overhead. The approach outperforms state-of-the-art methods on fine-grained datasets and ImageNet while reducing parameter growth by over three orders of magnitude.
In this paper, we propose an approach without any forgetting to continual learning for the task-aware regime, where at inference the task-label is known. By using ternary masks we can upgrade a model to new tasks, reusing knowledge from previous tasks while not forgetting anything about them. Using masks prevents both catastrophic forgetting and backward transfer. We argue -- and show experimentally -- that avoiding the former largely compensates for the lack of the latter, which is rarely observed in practice. In contrast to earlier works, our masks are applied to the features (activations) of each layer instead of the weights. This considerably reduces the number of mask parameters to be added for each new task; with more than three orders of magnitude for most networks. The encoding of the ternary masks into two bits per feature creates very little overhead to the network, avoiding scalability issues. Our masks do not permit any changes to features which are used by previous tasks. As this may be too restrictive to allow learning of new tasks, we add task-specific feature normalization. This way, already learned features can adapt to the current task without changing the behavior of these features for previous tasks. Extensive experiments on several finegrained datasets and ImageNet show that our method outperforms current state-of-the-art while reducing memory overhead in comparison to weight-based approaches.
Motivation & Objective
- To address catastrophic forgetting in continual learning under the task-aware setting, where the task identity is known at inference.
- To reduce memory and parameter overhead in continual learning by shifting mask application from weights to features.
- To enable stable knowledge retention from previous tasks without backward transfer, which is rarely beneficial in practice.
- To design a scalable, efficient method that maintains model performance across sequential tasks with minimal architectural changes.
Proposed method
- The method applies ternary masks (values ∈ {-1, 0, 1}) to the feature maps (activations) of each layer, rather than to network weights.
- Each mask is encoded using only two bits per feature, drastically reducing the number of parameters needed—by over three orders of magnitude compared to weight-based masking.
- Masks are designed to preserve features used by previous tasks, ensuring no forgetting occurs through feature-level constraints.
- To allow adaptation to new tasks, task-specific feature normalization is introduced, enabling learned features to adapt without altering their behavior for prior tasks.
- The approach enforces that only new task-specific features are modified, while previously learned representations remain fixed through the mask mechanism.
Experimental results
Research questions
- RQ1Can continual learning be achieved without any forgetting by operating on features rather than weights?
- RQ2Does applying ternary masks to activations significantly reduce memory overhead compared to weight-based approaches?
- RQ3Can backward transfer be ignored in practice, and does avoiding catastrophic forgetting alone lead to superior performance?
- RQ4Can task-specific normalization enable effective adaptation to new tasks without compromising knowledge from previous tasks?
Key findings
- The method achieves state-of-the-art performance on fine-grained image classification datasets and ImageNet, outperforming existing continual learning approaches.
- Memory overhead is reduced by more than three orders of magnitude compared to weight-based masking methods due to feature-level mask application.
- The use of two-bit ternary masks per feature results in negligible computational and storage overhead, enhancing scalability.
- The model prevents catastrophic forgetting entirely by constraining feature modifications to only new task-relevant components.
- Task-specific normalization enables effective adaptation to new tasks without altering the behavior of features for previous tasks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.