In the race to make Vision-Language Models (VLMs) more capable, we’ve hit a literal bottleneck: pixels. Modern VLMs like LLaVA-NeXT achieve high performance by processing images at massive resolutions, but this creates thousands of visual tokens. Since these tokens are fed directly into the language backbone, inference latency and memory costs skyrocket.
A new paper from researchers at Sichuan University introduces StackTok, a training-free method that slashes the number of visual tokens by over 90% while keeping performance remarkably intact. The secret? Treating visual token selection not as a simple trade-off, but as a structural engineering problem.
TL;DR
StackTok is a training-free token selector that adaptively balances query relevance and visual coverage based on the specific question and available token budget. By treating visual coverage as a "support" requirement rather than just a competing objective, it retains 95.26% of full-model performance on LLaVA-NeXT-7B using only 5.6% of the original visual tokens.
What Problem Does This Paper Address?
When you ask a VLM a question about an image, not every part of that image is equally important. If you ask "What color is the car?", the model only needs tokens representing the car. If you ask "Describe the scene," it needs a broad overview.
Existing "training-free" selectors (which don't require expensive retraining of the model) usually pick tokens based on one of two signals:
- Query Relevance: Keep tokens the question "cares" about.
- Visual Coverage: Keep a diverse set of tokens that represent the whole image.
The challenge is that the "right" balance changes constantly. A tight budget (say, only 64 tokens) requires a different strategy than a generous one. Furthermore, a localized question needs precision, while a holistic one needs breadth. Most current methods use a fixed "exchange rate" between these two signals, which often leads to missing critical context or wasting tokens on irrelevant details.
Methods
The authors use a brilliant analogy to solve this: block stacking.
As shown in Figure 1, if you only prioritize "reach" (query relevance), your stack falls over because it lacks "support" (visual coverage). If you only prioritize support, you never reach your target. StackTok treats relevance as the objective and coverage as a budget-calibrated support requirement.
The StackTok Pipeline:
- Coverage Reference Curve: Before selecting for a specific query, StackTok builds a "reference curve" using a greedy coverage-only approach. This tells the model what "good support" looks like for any given number of tokens.
- Entropy-Based Calibration: It looks at the "entropy" (uncertainty) of the query-vision affinities. If the query is very specific (low entropy), the model relaxes the support requirement to focus on the target. If the query is vague (high entropy), it demands more visual coverage.
- Reference-Gated Interleaved Selection: This is the core algorithm. At each step, StackTok checks: "Does my current set of tokens meet the required support level for this size?"
- If yes, it picks the next token based on Query Relevance.
- If no, it picks the next token to improve Visual Coverage.
- Shared-Budget Allocation: For high-res images split into multiple "crops," StackTok doesn't give every crop an equal quota. It dynamically allocates tokens to the crops that offer the highest marginal gain.
Datasets
The researchers evaluated StackTok across a massive battery of ten distinct benchmarks to ensure robustness:
- LLaVA Suite: GQA, MMBench (MMB), MME, POPE, ScienceQA-IMG (SQA), VQAv2, and VQAText.
- General Understanding: MMMU and SEEDBench.
- OCR Tasks: OCRBench (used specifically for the Qwen2.5-VL experiments).
These were tested across five different VLM architectures, including LLaVA-1.5 (7B/13B), LLaVA-NeXT (7B/13B), and the recent Qwen2.5-VL-7B.
Key Insights and Ideas
- Asymmetric Roles: The most important insight is that relevance and coverage aren't symmetric. Coverage is a pre-requisite for relevance to be useful. You can't identify a specific object if you haven't "covered" the area it's in.
- Dynamic Exchange Rates: Instead of a fixed weight (e.g., $0.5 \times \text{Relevance} + 0.5 \times \text{Coverage}$), the "exchange rate" should be state-dependent. StackTok effectively switches between 100% relevance and 100% coverage based on the current "support deficit."
- Training-Free is Key: Because StackTok works by analyzing the embeddings already produced by the VLM's vision encoder and projector, it requires zero fine-tuning. You can drop it into an existing pipeline and see immediate speedups.
Key Results
StackTok consistently outperformed all other training-free selectors (like FastV, SparseVLM, and MMTok) across every model and budget tested.
- Extreme Compression: On LLaVA-NeXT-7B, it retained 95.26% of the original performance while using only 160 out of 2,880 tokens (a 94.4% reduction).
- Consistency: Whether the budget was 192, 128, or 64 tokens, StackTok maintained a lead, showing that its budget-adaptive logic actually works.
- Multi-Crop Efficiency: The dynamic allocation across crops was significantly better than giving each crop a fixed number of tokens, especially when parts of the image were uninformative (like a plain background).
Limitations and Future Work
While StackTok is a powerhouse for general understanding, the authors noted a limitation in extreme compression for OCR tasks. When the token budget is pushed to the absolute limit (e.g., 5% retention), the model starts to lose the fine-grained text evidence needed for benchmarks like OCRBench.
Future work could involve integrating more specialized text-aware features into the selection process or exploring how these "support-based" selection strategies might apply to video models, where the "token explosion" is even more severe.
Summary updated