Putting Registers to Work: Task Registers for Token Pruning in Vision Transformers
This paper proposes Task-Adaptive Pruning (TAP), a method that utilizes task-specific registers to dynamically rank tokens and allocate pruning budgets across different Vision Transformer tasks, achieving significant throughput improvements while maintaining competitive performance on image classification, semantic segmentation, and object detection.
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 have a super-smart robot brain that looks at pictures and tries to understand what's inside them. This brain is built like a giant team of tiny workers, each holding a piece of the puzzle (a "token"). To make a decision, every worker has to chat with every other worker. The problem? If the picture is big, the number of chats explodes, and the brain gets overwhelmed, slow, and hungry for electricity. Scientists have been trying to fix this by telling the brain to ignore the boring pieces of the picture and only keep the important ones, a bit like a teacher telling a class to only listen to the students who have something smart to say. This is called "token pruning." But here's the tricky part: what counts as "smart" or "important" changes depending on what the robot is trying to do. A piece of a picture that is crucial for spotting a cat might be useless for figuring out what color the sky is. For a long time, scientists tried to use the same "ignore list" for every single job, but it turns out that one size rarely fits all.
This paper, titled "Putting Registers to Work," tackles that exact problem. The authors, a team from Queen Mary University of London, discovered that the rules for deciding which picture pieces to throw away are totally different for different tasks. They found that a strategy that works great for spotting objects (like finding a dog in a park) might actually hurt the robot's ability to understand a scene (like figuring out if that dog is on grass or pavement). To solve this, they invented a clever new system called Task-Adaptive Pruning (TAP).
Think of the robot's brain as a busy kitchen. Usually, the chef (the pruning policy) uses the same recipe to decide which ingredients to toss out, no matter if they are making a soup or a cake. The authors realized this was a mistake. Instead, they gave the kitchen a set of special "Task Registers"—think of them as smart, magical recipe cards that change depending on the dish being cooked. When the robot needs to identify a cat, it pulls out the "Cat Card," which tells the brain exactly which parts of the image to keep and which to ignore. When it needs to map out a whole room, it swaps in the "Room Card." These cards don't just decide what to throw away; they also figure out when to throw it away as the brain processes the image, layer by layer.
The researchers tested this by freezing a standard robot brain and trying out different "ignore rules" without retraining it. They found three big surprises. First, the best way to pick important pieces for finding objects is the exact opposite of the best way for mapping scenes. Second, the robot is very sensitive to how it handles the very first layers of processing, especially for simple tasks like telling if an image is a cat or a dog. Third, when the robot throws a piece of the picture away, it needs to remember what it looked like to fill in the gap later. But here's the kicker: for finding objects, it's better to just pretend the piece was never there and use a nearby neighbor to fill the gap. For mapping scenes, it's better to actually remember the exact difference and paste it back in later.
To fix all this, TAP uses a single "active" register card for the current job. This card travels through the brain, watching the image and making three decisions on the fly:
- Selection: Which tokens to keep and which to drop.
- Budget: How many tokens to drop at each step (maybe drop a few early, more later, or vice versa).
- Recovery: How much of the "forgotten" detail to bring back when the robot needs to draw a detailed map.
The results are impressive. By using these task-specific cards, the robot became much faster without losing its smarts. On a standard test for finding objects (COCO), it became 1.32 times faster while keeping its accuracy almost the same (dropping only 0.3 points). On a test for mapping scenes (ADE20K), it became 1.30 times faster with a tiny drop in quality. Even for simple image classification, it stayed competitive.
The authors suggest that this approach is a step toward a truly unified robot brain—one that can switch between spotting a car, painting a picture of a street, or reading a sign, all using the same core engine but with different "thinking styles" activated on the fly. They didn't just guess this would work; they proved it by running thousands of experiments, freezing the brain to test individual rules, and showing that their new "register" system consistently outperforms the old "one-size-fits-all" methods. It's a reminder that in the world of AI, sometimes the smartest thing you can do is know exactly when to ignore the noise, and that the definition of "noise" depends entirely on what you're trying to see.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.