Find meaningful boundaries
Lightweight object and text localizers identify semantic transitions and text regions, guiding where detail should be preserved.
Image-Token Compression via Pre-LLM Semantic Variable-Resolution Tokenization and In-LLM Relevance Pruning
† Equal contribution · * Project lead
1 University of Toronto2 Vector Institute3 McGill University4 University Health Network5 University of Waterloo
An image is not a uniform grid of information. A coherent object can be summarized; a word or an object boundary needs finer detail. Varest uses this principle of semantic fungibility to decide where to merge, then learns which visual tokens the language model still needs.
Varest combines semantic merging before the LLM with relevance pruning inside it. Early decoder layers see the whole scene; later layers work with a smaller set of visual tokens.
Lightweight object and text localizers identify semantic transitions and text regions, guiding where detail should be preserved.
Merge compatible regions into variable-resolution tokens. Preserve text at native resolution when the budget allows, while covering the full image.
Four learned [REL] registers score visual tokens after early decoder processing, keeping a smaller subset for the remaining layers.
Explore how semantic structure, text, and scene context are represented as the token budget changes. Select a view below; use “Open PDF” to inspect a figure at full size.
of the layer-averaged image tokens
of full-token performance retained
highest mean retention against 15 baselines at every evaluated budget
Across three LLaVA backbones and 13 benchmarks, Varest achieves the highest mean performance retention among 15 baselines at every evaluated budget. At 5.56% of the layer-averaged image tokens, it retains 86.10–92.33% of full-token performance.
| Backbone | 5.56% tokens | 11.11% tokens | 22.22% tokens | 38.89% tokens |
|---|---|---|---|---|
| LLaVA-1.5-7B | 92.33% | 97.08% | 100.37% | 101.89% |
| LLaVA-1.5-13B | 91.31% | 95.82% | 100.03% | 102.37% |
| LLaVA-NeXT-8B | 86.10% | 91.85% | 96.04% | 98.18% |
Source: Table 1 of the paper. Mean retention averages 15 normalized metrics across 13 benchmarks; POPE contributes three metrics. Adaptive halting is disabled. For LLaVA-NeXT, ratios are applied to each image’s native sequence length.
More performance at half the token budget. On all three backbones, Varest at 11.11% tokens outperforms every evaluated baseline at 22.22%. On LLaVA-1.5-7B, that is 97.08% retention versus the strongest baseline’s 94.50%.
Varest preserves full spatial coverage during merging so early decoder layers can integrate scene context. Its learned selection does not require decoder attention weights and remains compatible with FlashAttention.
General visual question answering is relatively robust to compression. Document reading, chart understanding, and referring-expression grounding benefit more from larger budgets.
The current evaluation covers three LLaVA backbones. Extending to other model families, including Qwen-VL and InternVL, remains future work.
Lower FLOPs do not automatically imply lower latency; efficient implementation is still needed. Applying semantic fungibility to other domains also requires domain-specific validation.
@misc{fu2026varest,
title={Just Respect the Semantics: Image-Token Compression via
Pre-LLM Semantic Variable-Resolution Tokenization and
In-LLM Relevance Pruning},
author={Tianhao Fu and Austin Wang and Charles Chen and
Roby Aldave-Garza and Victor Xie and Xiyue Jiao and
Yucheng Chen and Martin Tin},
year={2026},
eprint={2610.18690},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2610.18690}
}