arXiv:2610.22957cs.CVOct 2026

Manuscript Offprint

arXiv:2610.22957

Query-adaptive Recurrent Tokenization

Bavesh Balaji, Pranav Gopinath, Pouya Sadeghi, Sirisha Rambhatla

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Visual information worth extracting from an image and the token budget it warrants depend on the text query. Yet modern vision and vision-language models largely encode images independently of the query and allocate a fixed visual token budget to every input. We introduce the Query-Adaptive Recurrent Tokenizer (QART), a backbone-agnostic module that makes visual representations both query-steerable and budget-adaptive. QART steers the visual representation toward query-relevant evidence while adapting its token budget to the amount of information required. Its key principle is simple. Additional tokens are allocated until the visual features relevant to the query are represented with sufficient fidelity. Starting from frozen encoder features, QART recurrently constructs a compact representation and uses reconstruction quality over the query-relevant visual support to control token allocation. On Visual7W and VQAv2, QART achieves 81.96% and 76.37% accuracy using only about 29 visual tokens, reducing token counts by 20–25× relative to dense VLM inputs. It further reaches 92.0% P@1 on CORE and 36.3% PR-AUC on PODS, outperforming SteerViT on PODS by 8.4%. Together, these results show that visual representations need not be fixed in either content or capacity and can instead adapt to what each query requires.

1 INTRODUCTION

“A wealth of information creates a poverty of attention and a need to allocate that attention efficiently among the overabundance of information sources that might consume it.”

— Herbert A. Simon (1971)

An image contains evidence for many possible questions, and the visual information that matters depends on what is being asked Anderson et al. (2018); Hudson & Manning (2019); Pantazopoulos & Özyiğit (2025). In the same street scene, identifying the color of a traffic light requires evidence from a small region, whereas counting vehicles turning left requires information distributed across objects and their spatial relationships (Acharya et al., 2018; Rajabi & Košeká, 2024; Ishihara et al., 2025; Huang et al., 2026; Sadeghi et al., 2026). Yet SOTA vision encoders (Tschannen et al., 2025; Radford et al., 2021; Oquab et al., 2023; He et al., 2022) produce the same representation of an image regardless of the query (Figure 1(a)). These representations capture broadly useful visual information but cannot explicitly prioritize the requested evidence (Ruthardt et al., 2026). More importantly, visual salience is not akin to query relevance: a prominent object may be irrelevant to the question, while a small detail may determine the answer. A useful visual representation should therefore be steerable: changing the query should change which visual information the representation emphasizes.

A separate limitation concerns how much representational capacity is allocated to that evidence. Visual tokenizers commonly produce a fixed-size sequence; ViT-based encoders (Oquab et al., 2023; Tschannen et al., 2025) provides a fixed set of patch tokens, while the Q-Former uses a fixed number of latent tokens regardless of the image or the evidence required by the downstream task (Li et al., 2023). A large token budget increases downstream computation for every example (Yin et al., 2025;

Same image, two queries

q1q_{1} "man on left in funky hat"

q2q_{2} "all people wearing hats"

Query-agnostic token

Query-specific token

K Token budget

(a) Fixed patch tokenization

q1q_{1}

Figure

q2q_{2}

Figure

Same content and length across queries K0K_{0}

(b) Adaptive only

q1q_{1}

q2q_{2}

Length follows the image, not the query

(c) Steerable only

q1q_{1}

Figure

q2q_{2}

Figure

Query changes content; length stays K0K_{0} fixed

(d) QART

OURS

q1q_{1}

q2q_{2}

Query changes content and length K(I,q)K(I, q)

Figure 1: QART combines query steerability with budget adaptivity. Fixed patch tokenizers use the same representation and token budget for every query. Adaptive tokenizers change how many tokens are allocated, while steerable methods change what visual information is emphasized. QART does both, steering the representation toward the query while adapting its capacity to the required visual evidence. The clear regions represent the tokenizers' focus.

2022; Li et al., 2026a), while a small budget may discard necessary details (Kim et al., 2026). These considerations expose two distinct axes of visual tokenization: which evidence to preserve and how much capacity to allocate (adaptivity), as shown in Fig. 1. These properties are increasingly relevant to embodied systems, where agents repeatedly interpret visual observations under changing goals, and efficient processing matters over long interaction horizons (Saxena et al., 2025; Cheng et al., 2024). We seek a tokenizer that connects both axes, allocating capacity according to how well the current representation preserves query-relevant visual evidence.

Prior work addresses parts of this problem. Learned resamplers create compact latent representations, steerable encoders condition visual features on language (Ruthardt et al., 2026), and token-pruning methods remove redundant or query-irrelevant patches (Li et al., 2026a; Takezoe et al., 2026). Adaptive image tokenizers additionally vary their sequence length according to image complexity (Duggal et al., 2025b; Yu et al., 2024). What remains less explored is an explicit mechanism that couples these choices: rather than prescribing a token count or predicting one directly, can a tokenizer continue allocating capacity until the evidence relevant to the current query has been represented with sufficient fidelity?

We introduce the Query-Adaptive Recurrent Tokenizer (QART), a visual tokenizer that converts dense encoder features into a variable-length set of query-conditioned visual tokens. Given frozen image features and a text query, a cross-modal relevance module first identifies the visual evidence relevant to the query. QART begins with a small set of tokens and recurrently refines them using this evidence and the query. After each round, a shared decoder reconstructs the relevant visual features, and reconstruction quality determines whether more tokens are added or computation halts. The resulting tokens form a compact representation whose content and capacity are both shaped by the query, and can be used by a downstream task head or language model.

We evaluate QART on prompt-conditioned retrieval (CORE (Ruthardt et al., 2026), GeneCIS (Vaze et al., 2023), PODS (Sundaram et al., 2025)), compositional matching (Winoground (Thrush et al., 2022)), Visual Question Answering (VQAv2 (Goyal et al., 2017)), and grounding (Visual7W pointing (Zhu et al., 2016). QART learns non-uniform allocations and compresses dense patch tokens by 25×25\times. On CORE and GeneCIS, it improves over the query-agnostic SigLIP2 representation by 23.5% and 2.7% respectively. On Visual7W pointing, it outperforms the strongest token-reduction baseline DART Wen et al. (2025) by 22.1% under a matched protocol; on VQAv2, it retains 93.8% of dense accuracy while reducing tokens by 25×25\times and outperforms a matched 32-token Q-Former, while improving end-to-end throughput by 1.53×1.53\times. Together, these results highlight the significance of query-adaptive visual representations.

References (91)