← Latest papers
🤖 AI

Attention Retention for Continual Learning with Vision Transformers

This paper proposes a novel attention-retaining framework for continual learning in Vision Transformers that mitigates catastrophic forgetting by identifying attention drift and applying instance-adaptive gradient masking to preserve previously learned visual concepts, achieving state-of-the-art performance across diverse scenarios.

Original authors: Yue Lu, Xiangyu Zhou, Shizhou Zhang, Yinghui Xing, Guoqiang Liang, Wencong Zhang

Published 2026-02-06
📖 4 min read☕ Coffee break read

Original authors: Yue Lu, Xiangyu Zhou, Shizhou Zhang, Yinghui Xing, Guoqiang Liang, Wencong Zhang

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are teaching a very smart, eager student (an AI) how to recognize different animals. First, you show them pictures of cats. They learn to look specifically at the pointy ears and whiskers to know it's a cat. Then, you show them pictures of dogs. They learn to look at floppy ears and wet noses.

The problem with traditional AI is a phenomenon called "Catastrophic Forgetting." When the student learns about dogs, their brain gets so excited about the new information that they completely forget what a cat looks like. They might start looking at the dog's floppy ears and thinking, "Oh, that's a cat!" or they might stop looking at the whiskers entirely because the new lesson overwrote the old one.

This paper introduces a new way to teach this student, called ARCL-ViT, which acts like a "Memory Guardian" to stop them from forgetting.

The Core Problem: "Attention Drift"

The authors discovered that in modern AI models (specifically Vision Transformers, or ViTs), the issue isn't just that the student forgets; it's that their focus shifts.

Think of the AI's "attention" like a flashlight.

  • When learning about cats, the flashlight shines brightly on the cat's whiskers.
  • When the AI learns about dogs, the flashlight starts to drift. It moves away from the whiskers and starts shining on the dog's nose.
  • If the flashlight moves too much, the AI loses its ability to recognize the cat later because it's no longer looking at the right spot.

The Solution: The "Do Not Touch" Mask

The authors propose a clever trick to keep the flashlight steady. Instead of trying to memorize every old picture (which takes up too much space), they use a two-step process:

Step 1: Mapping the "Golden Zones"

After the student finishes learning about cats, the system takes a snapshot of exactly where the flashlight was shining. It creates a map (a mask) that highlights the "Golden Zones"—the specific parts of the image that were crucial for recognizing the cat (like the whiskers).

  • The Analogy: Imagine the teacher draws a red circle around the cat's whiskers on a piece of paper and says, "This is the most important part. Do not change your focus here."

Step 2: The "Stop-Sign" for New Learning

When the student starts learning about dogs, the system looks at that red circle. If the new lesson tries to change how the AI looks at the whiskers (because the math says it should), the system hits the brakes.

  • The Mechanism: In the language of AI, this is called Gradient Masking. When the AI calculates how to update its brain, the system puts a "Stop Sign" on the parts of the brain that control the whisker-focus. It tells the AI: "You can learn about the dog's nose, but you are strictly forbidden from changing how you look at the whiskers."

To make sure this doesn't slow the AI down or confuse its learning engine (the optimizer), the system also adjusts the speed of the learning, ensuring the AI learns the new dog facts smoothly without accidentally erasing the cat facts.

Why This is Special

Most other methods try to solve this by:

  1. Replaying old data: Showing the student old cat pictures every time they learn a new dog picture. (This is hard because you need to store all those old pictures).
  2. Building new rooms: Adding new parts of the brain for every new animal. (This makes the brain huge and messy).

The authors' method is different because it locks the focus in place. It doesn't need to store old pictures, and it doesn't need to build new rooms. It just ensures the flashlight stays steady on the important features.

The Results

The paper tested this method on various difficult challenges, like recognizing animals in different artistic styles or from different domains.

  • The Outcome: The AI using this method remembered the old concepts (cats) much better than the standard AI, while still learning the new ones (dogs) very well.
  • The Proof: They showed pictures of the "flashlight" (attention maps). The standard AI's flashlight had drifted all over the place, while the new method's flashlight stayed perfectly focused on the original features, just like a human would.

In short, this paper teaches AI how to learn new things without losing its focus on the things it already knows, mimicking how human attention naturally stabilizes important concepts.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →