Meta-attention for ViT-backed Continual Learning

Mengqi Xue, Haofei Zhang, Jie Song, Mingli Song
3/22/2022
cs.CVcs.AI
transformer-attention

Official code: zju-vipa/MEAT-TIL (35 stars, Python, Apache-2.0, last commit 2022-08-22).

Abstract

Continual learning is a longstanding research topic due to its crucial role in tackling continually arriving tasks. Up to now, the study of continual learning in computer vision is mainly restricted to convolutional neural networks (CNNs).

Show full abstract

However, recently there is a tendency that the newly emerging vision transformers (ViTs) are gradually dominating the field of computer vision, which leaves CNN-based continual learning lagging behind as they can suffer from severe performance degradation if straightforwardly applied to ViTs. In this paper, we study ViT-backed continual learning to strive for higher performance riding on recent advances of ViTs. Inspired by mask-based continual learning methods in CNNs, where a mask is learned per task to adapt the pre-trained ViT to the new task, we propose MEta-ATtention (MEAT), i.e., attention to self-attention, to adapt a pre-trained ViT to new tasks without sacrificing performance on already learned tasks. Unlike prior mask-based methods like Piggyback, where all parameters are associated with corresponding masks, MEAT leverages the characteristics of ViTs and only masks a portion of its parameters. It renders MEAT more efficient and effective with less overhead and higher accuracy. Extensive experiments demonstrate that MEAT exhibits significant superiority to its state-of-the-art CNN counterparts, with 4.0~6.0% absolute boosts in accuracy. Our code has been released at https://github.com/zju-vipa/MEAT-TIL.

View on arXivView PDF

Code Implementations(1)

zju-vipa/MEAT-TILOfficial100%
Apache-2.0

CVPR2022: Meta-attention for ViT-backed Continual Learning

357PythonMar 16, 20224 years agoApache-2.0

Similar Papers

Cite this paper

@article{xue2022metaattention,
  title  = {Meta-attention for ViT-backed Continual Learning},
  author = {Mengqi Xue and Haofei Zhang and Jie Song and Mingli Song},
  year   = {2022},
  eprint = {2203.11684},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.11684}
}

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.11684.svg)](https://codeofpaper.com/paper/2203.11684)

Discussion