Reg4Pru: Regularisation Through Random Token Routing for Token Pruning
The paper introduces Reg4Pru, a regularisation technique that mitigates performance loss in token pruning for vision transformers, achieving a 46% absolute improvement in average precision and a 29% speedup on the FIVES blood vessel segmentation dataset.
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 Big Problem: The "Overcrowded Party"
Imagine a Vision Transformer (the AI brain behind modern image recognition) as a massive, high-stakes party. The "guests" are tokens—tiny pieces of the image the AI is analyzing.
In a standard setup, every single guest talks to every other guest to figure out what the image is. This works great for accuracy, but it's incredibly slow. If you double the number of guests, the amount of conversation needed quadruples. It's like trying to have a meaningful conversation in a stadium full of people; it takes forever.
To fix this, researchers invented Token Pruning. This is like a bouncer at the door who kicks out the "boring" guests (redundant parts of the image) so the party can run faster.
The Glitch: The "Amnesia" Effect
The paper identifies a major problem with this bouncer strategy.
- During Training: The AI learns by looking at the whole party, then occasionally kicking people out to practice efficiency.
- During Testing (Inference): The AI kicks people out permanently to save time. But here's the catch: when it needs to make a final decision (like drawing a detailed map of blood vessels), it has to bring the kicked-out guests back to fill in the missing details.
The Problem: The AI gets confused. The "kicked-out" guests have been sitting in the dark (skipping layers) while the "kept" guests were partying and learning. When the AI tries to bring the darkened guests back into the light, they don't fit in anymore. They have "amnesia" about what happened while they were gone. This causes the AI's performance to crash, especially in the deeper, more complex layers of the network. It's like trying to finish a complex puzzle with pieces that forgot how the picture looked halfway through.
The Solution: Reg4Pru (The "Random Rehearsal")
The authors propose a new training technique called Reg4Pru (Regularisation Through Random Token Routing).
Think of this as a rehearsal game for the AI before the real show.
Instead of just kicking people out and hoping for the best, the AI plays a game during training where it randomly tells different groups of guests to "skip" different parts of the party for random amounts of time.
- Randomness is Key: Sometimes Guest A skips 2 rooms; sometimes Guest B skips 5 rooms. The "skip zone" changes every single time.
- The Result: Because the guests are constantly being told to skip random sections and then jump back in, they learn to be adaptable. They learn that no matter where they enter the party or how long they were away, they can still fit in and contribute to the final picture.
This "random rehearsal" acts as a stabilizer. It teaches the AI that bringing guests back from the "dark" is safe, preventing the confusion and performance drop seen in previous methods.
The Results: Faster and Smarter
The team tested this on a medical dataset called FIVES, which involves finding blood vessels in eye images (a task requiring high detail).
- The Comparison: They compared their method against a standard "bouncer" (pruning without this new training) and a "no-pruning" baseline.
- The Win:
- Accuracy: The standard pruning method was terrible at the final stage (dropping precision significantly). Reg4Pru fixed this, improving the average precision by a massive 46% compared to the standard pruning method.
- Speed: They achieved this high accuracy while still being 29% faster than the slow, non-pruned version.
- Visuals: The paper shows heatmaps where the standard pruning method produces blurry, messy results, while Reg4Pru produces sharp, clear images of blood vessels, almost as good as the slow, non-pruned version.
Summary
Reg4Pru is a training trick that stops AI from getting confused when it tries to speed up by ignoring parts of an image. By randomly practicing "skipping" and "rejoining" during training, the AI learns to stay stable and accurate, allowing it to process high-resolution medical images much faster without losing the fine details doctors need.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.