← Latest papers
💻 computer science

Vision Transformers Need Better Token Interaction

This paper identifies "semantic diffusion" as the cause of degraded patch representations in Vision Transformers during prolonged training and proposes replacing softmax attention with entmax-1.5 to enable selective token interactions, which significantly improves dense prediction performance while preserving global context.

Original authors: Linxiang Su

Published 2026-05-25
📖 4 min read☕ Coffee break read

Original authors: Linxiang Su

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

The Problem: The "Over-Sharing" Student

Imagine a Vision Transformer (ViT) as a classroom full of students (called tokens). Each student looks at a tiny piece of a photo (a patch).

  • The Goal: The teacher wants the class to do two things:
    1. Identify the whole picture (e.g., "This is a dog").
    2. Draw a perfect outline around every part of the dog (e.g., "This pixel is the ear, this is the tail"). This is called dense prediction.

The Issue:
As the class studies longer and longer, they get really good at identifying the dog. However, their ability to draw the outline gets messy. The students start "over-sharing."

The paper calls this Semantic Diffusion. It's like a student in the back row who knows the answer is "Dog" and starts shouting that fact to everyone, even the students looking at the grass or the sky.

  • The Result: The students looking at the grass start thinking, "Oh, I must be part of the dog too!" because they heard the global information.
  • The Consequence: The "outline" becomes blurry. The model thinks the background is part of the object, making it bad at tasks like segmentation (drawing boundaries).

The Old Solutions vs. The New Idea

Previous researchers tried to fix this by:

  • Adding "Note-Takers": Giving the class special students (Register Tokens) just to hold the extra noise so the others don't get confused.
  • Strict Rules: Telling students, "Only talk to the person sitting next to you" (Local Windows).

The Author's Insight:
The author argues that we shouldn't ban global conversation or add extra students. The background does have useful context. The problem isn't that they talk to everyone; it's that they talk to everyone equally, even when it doesn't make sense.

The Solution: "Selective Conversation" (Sparse Attention)
Instead of forcing students to whisper only to their neighbors, the author suggests changing the voting system.

  • Old System (Softmax): Imagine a vote where every student gets a tiny, non-zero amount of attention. Even if a student is looking at a cloud, they still get 0.1% of the class's attention. This keeps the "noise" alive.
  • New System (Entmax-1.5): This is a smarter voting system. If a student is looking at a cloud, the system says, "You get 0% attention. You are ignored."
    • It doesn't stop the students from seeing the whole room (global connectivity is kept).
    • It just ensures that if a connection isn't useful, it gets cut off completely (zero weight).

Think of it like a filter. Instead of letting a little bit of "dog" information leak into the "grass" area, the filter blocks it entirely. The grass stays grass, and the dog stays dog.

What Happened When They Tried It?

The researchers tested this on a standard model (DINOv1) trained on ImageNet. They simply swapped the "voting system" (Softmax) for the "selective filter" (Entmax-1.5) and didn't add any new parts or extra training data.

The Results:

  1. Global Recognition (The "What"): The model got slightly better at just saying "This is a dog." (Accuracy went from 69.50% to 70.06%).
  2. Dense Prediction (The "Where"): The model got much better at drawing the outlines.
    • On the VOC dataset (a standard test for object boundaries), the score jumped significantly (from 42.80 to 48.78).
    • It also improved on other complex maps like ADE20K and Cityscapes.
  3. Visuals: When they looked at the computer's "mental map" of the image, the new model had much cleaner, sharper boundaries. The background didn't bleed into the object anymore.

The Bottom Line

The paper claims that Vision Transformers get messy at drawing boundaries because they let global information spread too freely, like a rumor that gets distorted as it passes from person to person.

By switching to a sparse attention mechanism (Entmax-1.5), the model learns to be selective. It keeps the big picture in mind but stops the "noise" from spreading to areas where it doesn't belong. This makes the model better at both identifying objects and precisely locating them, all without needing a more complex architecture.

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 →