StackTok: Accelerating VLMs Inference with Budget-Adaptive Visual Token Selection

Zhenbin Wang, Lei Zhang, Lituan Wang, Wei Huang, Yan Wang +1 more
9/15/2026
cs.CVcs.AI

No official code found. Best implementation: wongzbb/StackToK (0 stars, Apache-2.0, last commit 2026-09-16).

Abstract

Increasing image resolution produces ever-longer visual-token sequences in vision-language models (VLMs), substantially raising their inference cost. To reduce this overhead without retraining, existing methods select compact token subsets that prioritize query relevance, visual coverage, or a fixed trade-off between them. The appropriate balance, however, varies across queries and token budgets: localized questions favor relevance, whereas holistic questions demand broader visual coverage. We introduce StackTok, a training-free selector that treats query relevance as the objective and visual coverage as budget-calibrated support. StackTok builds a size-indexed coverage reference from a coverage-only greedy sequence and adjusts its support target using query--vision affinity entropy. A reference-gated interleaved selection policy then switches between relevance- and coverage-oriented additions according to the current subset's support deficit. For high-resolution inputs, StackTok allocates one shared token budget across crops according to the combined marginal gain of locally nominated tokens. Evaluated with five VLMs over ten distinct image-understanding benchmarks, StackTok ranks first among training-free selectors in every tested model--budget setting. On high-resolution LLaVA-NeXT-7B, it retains 95.26% of full-token performance with only 160 of 2{,}880 (5.6%) visual tokens.

View on arXivView PDF

Code Implementations(1)

wongzbb/StackToKCommunity67%
Apache-2.0

StackTok: Accelerating VLMs Inference with Budget-Adaptive Visual Token Selection (Official PyTorch Implementation))

00Sep 15, 20261 months agoApache-2.0

Similar Papers

Cite this paper

@article{wang2026stacktok,
  title  = {StackTok: Accelerating VLMs Inference with Budget-Adaptive Visual Token Selection},
  author = {Zhenbin Wang and Lei Zhang and Lituan Wang and Wei Huang and Yan Wang and Zhenwei Zhang},
  year   = {2026},
  eprint = {2609.16841},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.16841v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.16841.svg)](https://codeofpaper.com/paper/2609.16841)

Discussion