CATP: Cross-Attention Token Pruning for Accuracy Preserved Multimodal Model Inference
The paper introduces CATP, a novel token pruning method that leverages cross-attention mechanisms and a refined voting strategy to significantly enhance accuracy while maintaining computational efficiency in large multimodal models.
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 a highly intelligent but overworked librarian (the BLIP-2 model) who is trying to answer questions about a massive library of books and pictures.
Every time someone asks a question, the librarian has to look at every single page of every single book and every single pixel of every single photo to find the answer. This takes forever and makes the librarian exhausted (high computational cost).
The problem is, most of those pages and pixels are just boring background noise (like the color of the sky in a photo of a cat, or the font on a page of text). They don't actually help answer the question.
The Old Way: The "Brute Force" Cut
Previous methods tried to speed things up by just randomly throwing away half the pages or keeping only the pages with the biggest, boldest words.
- The L2-norm method was like keeping only the pages with the biggest font.
- The Self-attention method was like keeping only the pages the librarian looked at the most within the text itself.
The Result: The librarian got faster, but started giving terrible answers. They threw away the crucial picture of the cat because the font was small, or they kept a boring page just because it had a big word on it. Accuracy crashed.
The New Way: CATP (The "Smart Matchmaker")
The authors of this paper introduced CATP (Cross-Attention Token Pruning). Think of CATP as a Smart Matchmaker who knows exactly which parts of the picture are relevant to the specific question being asked.
Here is how CATP works, using a simple analogy:
1. The Voting System (The "Panel of Judges")
Instead of just guessing which parts of the image are important, CATP sets up a panel of judges (the Cross-Attention Layers).
- Imagine the Question is a list of "Query Tokens" (the specific things you are asking about).
- Imagine the Image is a list of "Image Tokens" (tiny puzzle pieces of the photo).
In the old days, the judges just shouted "This piece is important!" based on how loud they were.
CATP changes the rules: Every single piece of the image gets to vote for every piece of the question.
- If a piece of the image (like a "red ball") is very relevant to a part of the question ("Where is the ball?"), that image piece gives a high vote to the question part.
- If a piece of the image (like "blue sky") has nothing to do with the question, it gives a low vote.
2. The Scoreboard
CATP adds up all the votes.
- The parts of the question that get lots of votes from the image are the "VIPs." They stay.
- The parts of the question that get few votes are the "boring ones." They get kicked out (pruned).
This ensures that the librarian only keeps the parts of the question that are actually connected to the picture, discarding the rest.
3. The "Weighted" Upgrade
The paper also found that not all image pieces are equal. Some image pieces are more "influential" than others.
- Standard CATP: Every image piece gets one vote.
- Weighted CATP: If an image piece is already very important (it has a high "self-attention" score), its vote counts more. It's like giving a senior judge a "super vote." This makes the pruning even smarter.
Why is this a big deal?
The paper tested this on a Visual Question Answering task (looking at a picture and answering a question).
- Old Methods: When they cut away 75% of the data to save time, the accuracy dropped to almost nothing (like 1% to 9%). It was like asking a librarian to read only 1 page of a 100-page book and expecting them to know the whole story.
- CATP: Even when cutting away 75% of the data, the accuracy stayed surprisingly high (around 30% to 44%).
The Bottom Line:
CATP is like giving the librarian a highlighter that only marks the sentences in the book that actually answer the question. This allows the librarian to ignore 80% of the book, finish the job 8 times faster, and still give a correct answer.
The paper claims this method is up to 12 times more accurate than previous "cutting" methods, solving the big problem of how to make AI faster without making it dumber.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.