← Latest papers
💻 computer science

ClustViT: Clustering-based Token Merging for Semantic Segmentation

ClustViT addresses the quadratic complexity of Vision Transformers in semantic segmentation by introducing a trainable Cluster module that merges similar tokens guided by pseudo-clusters and a Regenerator module that restores fine details, achieving significant computational efficiency and faster inference without compromising accuracy.

Original authors: Fabio Montello, Ronja Güldenring, Lazaros Nalpantidis

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

Original authors: Fabio Montello, Ronja Güldenring, Lazaros Nalpantidis

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 trying to describe a complex painting to a friend over the phone. The painting has a huge, boring blue sky, a few distinct trees, and a tiny, detailed bird.

A standard "Vision Transformer" (the AI model this paper improves) tries to describe every single square inch of that painting with equal detail. It spends just as much time and brainpower describing the empty blue sky as it does the tiny bird. This is incredibly accurate, but it's also slow and uses a lot of energy—like trying to carry a heavy backpack full of rocks just to walk to the mailbox.

The authors of this paper, ClustViT, asked: "Why describe every single pixel if we already know which parts are the same?"

Here is how their solution works, broken down into simple steps:

1. The Problem: Too Much Noise

Current AI models for "semantic segmentation" (which is just a fancy way of saying "labeling every pixel in an image") are great at recognizing things. But they are slow because they treat every part of the image as equally important. If you are a robot trying to drive through a field, you don't need to analyze every single blade of grass individually; you just need to know "this is grass."

2. The Solution: The "Grouping" Strategy

The authors created a new system called ClustViT. Think of it as a smart editor that looks at the image and says, "Okay, these 100 pixels are all just 'sky,' so let's group them together and treat them as one single piece of information."

They do this using two special tools inside the AI's brain:

  • The Cluster Module (The Grouping Tool):
    Imagine you have a pile of mixed Lego bricks. Instead of looking at every single brick, you quickly sort them into buckets: "Reds," "Blues," and "Special Pieces."
    In the AI, this module looks at the image and uses a "cheat sheet" (learned from the ground truth labels) to find pixels that belong to the same semantic category (like "water" or "grass"). It merges all those similar pixels into one representative token.

    • The Result: The AI now has to process 100 pixels as if they were just 1. This makes the math much faster.
  • The Regenerator Module (The Detail Restorer):
    Here is the tricky part: If you just merge the pixels, you lose the fine details needed to draw the final picture perfectly.
    So, after the AI does its fast, grouped processing, the Regenerator steps in. It takes that single "grouped" piece of information and says, "Okay, I know this represents the sky, so I will expand it back out to fill the original space."

    • The Result: The AI gets the speed of the group, but the final output still looks like it has all the original fine details.

3. The "Cheat Sheet" (Pseudo-Clusters)

How does the AI know which pixels to group? It uses a clever training trick. During training, the AI is shown the "correct answer" (the perfect map of the image). It uses this map to create a "pseudo-cluster" guide. It learns: "Oh, I see that all these pixels are labeled 'water,' so I should merge them." It learns to group things based on meaning, not just random similarity.

4. The Results: Faster, Lighter, Still Smart

The authors tested this on three different types of images:

  • ADE20K: A mix of indoor and outdoor scenes (very complex).
  • SUIM: Underwater scenes (mostly water, some objects).
  • RumexWeeds: Agricultural fields (mostly grass/weeds).

What happened?

  • Speed: The new model was up to 1.64 times faster than the standard model.
  • Efficiency: It used up to 2.18 times less computing power (energy).
  • Accuracy: It stayed almost as accurate as the slow, heavy model.

The Sweet Spot:
The paper notes that this works best in "robotic" scenarios where there is a lot of background (like a robot looking at a field or underwater). In these cases, the AI can merge huge chunks of "background" into single tokens, saving massive amounts of energy. In very chaotic, complex images, the savings are smaller, but the model still works well.

Summary

ClustViT is like a smart assistant who realizes that when describing a room, you don't need to list every single grain of dust on the floor. You can say "the floor" (grouping the dust) and then zoom in only on the important furniture. This makes the description much faster to generate, but the listener still gets a clear picture of the room.

This allows robots to "see" and understand their world much faster and with less battery power, without losing the ability to spot important details.

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 →