# Ternary Feature Masks: zero-forgetting for task-incremental learning

Source: [Ternary Feature Masks: zero-forgetting for task-incremental learning](<https://www.sota2.com/research/paper/68fa69c91e209131cea23f8a>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2025-10-25T23:07:38.441Z

Authors: Marc Masana, Tinne Tuytelaars, Joost van de Weijer

Published: 2020-01-23T18:08:37.000Z

## Abstract

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 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. To allow already learned features to adapt to the current task without changing the behavior of these features for previous tasks, we introduce task-specific feature normalization. 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.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Task-incremental Image Classification on Tiny-ImageNet 200 10 (test)](<https://www.sota2.com/research/sota/task-incremental-image-classification-on-tiny-imagenet-200-10-test.md>): Task-incremental Image Classification; Tiny-ImageNet 200 10 (test); Task 1 Score: 48.2.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2001.08714>)

[PDF](<https://arxiv.org/pdf/2001.08714.pdf>)
