Towards Exemplar-Free Continual Learning in Vision Transformers: an Account of Attention, Functional and Weight Regularization

Francesco Pelosin, Saurav Jha, Andrea Torsello, Bogdan Raducanu, Joost van de Weijer
3/24/2022
cs.CVcs.LG
transformer-attention

Official code: srvCodes/continual_learning_with_vit (25 stars, Python, MIT, last commit 2022-07-10).

Abstract

In this paper, we investigate the continual learning of Vision Transformers (ViT) for the challenging exemplar-free scenario, with special focus on how to efficiently distill the knowledge of its crucial self-attention mechanism (SAM). Our work takes an initial step towards a surgical investigation of SAM for designing coherent continual learning methods in ViTs.

Show full abstract

We first carry out an evaluation of established continual learning regularization techniques. We then examine the effect of regularization when applied to two key enablers of SAM: (a) the contextualized embedding layers, for their ability to capture well-scaled representations with respect to the values, and (b) the prescaled attention maps, for carrying value-independent global contextual information. We depict the perks of each distilling strategy on two image recognition benchmarks (CIFAR100 and ImageNet-32) -- while (a) leads to a better overall accuracy, (b) helps enhance the rigidity by maintaining competitive performances. Furthermore, we identify the limitation imposed by the symmetric nature of regularization losses. To alleviate this, we propose an asymmetric variant and apply it to the pooled output distillation (POD) loss adapted for ViTs. Our experiments confirm that introducing asymmetry to POD boosts its plasticity while retaining stability across (a) and (b). Moreover, we acknowledge low forgetting measures for all the compared methods, indicating that ViTs might be naturally inclined continual learner

View on arXivView PDF

Code Implementations(1)

MIT

Code for our CVPR 2022 workshop paper "Towards Exemplar-Free Continual Learning in Vision Transformers"

254Python, Jupyter NotebookApr 20, 20224 years agoMIT
computer-visioncontinual-learningcvpr2022incremental-learningtransformers+1 more

Similar Papers

Cite this paper

@article{pelosin2022towards,
  title  = {Towards Exemplar-Free Continual Learning in Vision Transformers: an Account of Attention, Functional and Weight Regularization},
  author = {Francesco Pelosin and Saurav Jha and Andrea Torsello and Bogdan Raducanu and Joost van de Weijer},
  year   = {2022},
  eprint = {2203.13167},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.13167}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2203.13167.svg)](https://codeofpaper.com/paper/2203.13167)

Discussion