DTR: Towards optimal token compression with data-driven token ranking for efficient visual-language model inference

Zhanhua Zhang, Zhiyuan Qi, Jinyuan Shao, Guanzhong Hu, Chenxi Liu, Hai Yu, QihongXue, Tianci Huo, Wentong Li, Guofa Li, Hongyan Li, Yong ChenOpenReview 2026 · Submission to ICLR 2026 · Rejected

TL;DR

DTR (Data-driven Token Ranking) moves away from hand-crafted heuristics for compressing vision tokens in Vision-Language Models (VLMs), instead training a dedicated model to predict which tokens actually matter for task performance. By learning from real-world importance data, DTR achieves state-of-the-art efficiency, delivering up to a 7.8× speedup in the prefilling stage while maintaining—or even exceeding—the accuracy of the original, uncompressed model.

What Problem Does This Paper Address?

Vision-Language Models (VLMs) like LLaVA are powerful, but they are computationally expensive. A major reason is the "vision token tax": a single image can be decomposed into hundreds or thousands of tokens, and because Transformer architectures have quadratic complexity, this sequence length leads to massive latency and memory overhead.

To fix this, researchers usually try to "prune" or compress these tokens. However, most existing methods rely on model-driven heuristics—simple rules like "keep tokens with the highest attention scores." The authors argue that these handcrafted rules are one-sided and often get trapped in local optima. They don't capture the complex, non-linear relationship between a specific visual patch and the final answer the model needs to generate.

Methods

DTR introduces a data-driven framework that treats token importance as a learning problem rather than a search problem. The process happens in two main stages:

  1. Offline Stage (Dataset Construction & Training):
    • Ranked-list Search: The authors developed a "one-step greedy strategy" to identify which tokens are truly important. They take an existing VLM dataset and, for each sample, iteratively find which tokens, when kept, result in the lowest model loss. This creates a "ground truth" ranking of token importance.
  2. Token-Ranking Model (TRM): They train a lightweight, plug-and-play model (using layers from a smaller LLM, cross-attention, and an MLP head) to predict this ranked list of importance based on the input image and text tokens.
  3. Online Stage (Inference):
    • At runtime, the TRM is inserted into the VLM. It quickly ranks the vision tokens, and the VLM only processes the top-$j$ tokens (where $j$ is a user-defined number). This significantly reduces the workload for the subsequent LLM layers.

Datasets

The authors implemented DTR on the LLaVA-1.5-7B architecture.

  • Training: They used 203,507 single-round conversation samples from the LLaVA-1.5 instruction tuning dataset to train the Token-Ranking Model.
  • Evaluation: The framework was tested across 8 mainstream benchmarks: MME, MMBench (MMB), POPE, SQA-IMG, VizWiz, VQA v2, GQA, and SEED-Bench.

Key Insights and Ideas

  • The "Upper Bound" Surprise: In their analysis, the authors found that if you use the "ground truth" optimal tokens (DTR-ub), just 32 tokens can outperform the vanilla VLM using 576 tokens by an average of 29.7%. This suggests that most vision tokens are not just redundant, but potentially "noisy" or distracting to the model.
  • Heuristics vs. Learning: Traditional methods (like using attention maps) often fail when token counts get extremely low (e.g., 1–8 tokens). DTR remains robust because it has learned the specific patterns of what information is vital for answering questions.
  • Central Bias: The model naturally learned a "central bias," prioritizing tokens in the middle of the image. This aligns with how humans take photos (putting the subject in the center) and how Vision Transformers (ViTs) process information.
  • Plug-and-Play Flexibility: Because the ranking is predicted at runtime, users can dynamically adjust the compression level (e.g., "use 16 tokens for speed" or "use 64 tokens for accuracy") without retraining the main VLM.

Key Results

  • Performance: DTR achieved the best performance in 37 out of 40 tested scenarios compared to 8 other state-of-the-art compression methods.
  • Speedup: Using only 8 tokens, DTR achieved a 7.80× speedup in the prefilling stage and a 2.44× speedup in the decoding stage.
  • Memory Efficiency: DTR reduced GPU memory consumption for the KV-Cache to between 11.25% and 15.00% of the vanilla model's requirements.
  • Extreme Compression: Even when compressed down to a single token, DTR maintained significantly higher accuracy than competitors, proving its ability to identify the "core" of an image.

Limitations and Future Work

  • Model Overhead: While DTR speeds up the main VLM, the Token-Ranking Model itself is an extra component. It adds about 15ms of latency per inference and requires roughly 4.7GB of VRAM. The authors suggest that using even smaller, more optimized base models for the TRM could mitigate this.
  • Complex Reasoning: While DTR dominates in most benchmarks, the authors noted it was slightly less effective in "reasoning-heavy" benchmarks (like GQA and SQA-IMG) at extremely low token counts, suggesting that complex logic still requires a bit more visual context.
  • Scaling Data: The authors found that increasing the training data from 60K to 200K samples didn't always yield massive gains, suggesting the current TRM architecture might need to be more complex to fully utilize larger datasets.

Summary updated

Abstract

Token compression is crucial for vision-language models (VLMs) inference due to its tremendous computational complexity. Although substantial works with various model-driven methods have been done to mine importance rankings among tokens for compression~(e.g., rank according to attention scores or matrix ranks), they are all constrained by one-sided handcrafted information, thus being trapped in local optimum. To utilize comprehensive information for global optimum, we present a Data-driven Token Ranking (DTR) framework, which trains a plug-and-play token-ranking model with self-gathered token-ranking data for VLM token compression at runtime. Specifically, first, we propose a dataset construction method to efficiently gather importance rankings of tokens based on original VLM datasets. Then we present a training method to build a token-ranking model for predicting a ranked-list of token importance based on input vision and text tokens. Finally, the ranking model can be plugged in the model, then filter tokens with an user-defined token number at runtime for acceleration. Extensive experimental results across 8 mainstream benchmarks show that DTR achieves the state-of-the-art token compression performance compared with 8 challenging comparatives. Moreover, a comprehensive analysis shows that DTR as well as data-driven methods possess tremendous potential, which can comprehensively outperform the vanilla VLM with much fewer tokens.
BibTeX
@misc{zhang2026dtr,
  author = {Zhanhua Zhang and Zhiyuan Qi and Jinyuan Shao and Guanzhong Hu and Chenxi Liu and Hai Yu and QihongXue and Tianci Huo and Wentong Li and Guofa Li and Hongyan Li and Yong Chen},
  title = {{DTR: Towards optimal token compression with data-driven token ranking for efficient visual-language model inference}},
  year = {2026},
  url = {https://openreview.net/forum?id=wX6L6TevaQ},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}
Figure