Query-adaptive Recurrent Tokenization

Bavesh Balaji, Pranav Gopinath, Pouya Sadeghi, Sirisha RambhatlaarXiv 2026

TL;DR

QART (Query-Adaptive Recurrent Tokenization) is a novel visual tokenizer that dynamically adjusts both what it represents and how much capacity it uses based on a text query. By recurrently refining a compact set of tokens until a query-specific fidelity threshold is met, it achieves a 20–25× reduction in visual tokens while outperforming state-of-the-art steerable encoders and matched Q-Former baselines.

What Problem Does This Paper Address?

Most modern vision-language models (VLMs) treat image encoding as a "one-size-fits-all" process. Whether you are asking about the color of a tiny traffic light or counting every car in a busy intersection, the model typically produces the same fixed-size set of visual tokens.

This approach has two major flaws:

  1. Inefficiency: Allocating a massive token budget to every query wastes computation on irrelevant background details.
  2. Lack of Focus: Visual salience is not the same as query relevance. A prominent object (like a large building) might be irrelevant to a specific question, while a tiny detail (like a jersey number) might be the key to the answer.

The authors argue that a truly useful visual representation should be steerable (changing the query changes the focus) and budget-adaptive (the complexity of the query determines the number of tokens used).

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.

Methods

QART is a backbone-agnostic module that converts dense features from a frozen vision encoder into a variable-length sequence of query-conditioned tokens (slots). The process happens in three stages:

  1. Identifying Relevance: A cross-modal relevance module predicts a map indicating which image patches are important for the given text query.
  2. Recurrent Refinement: The model starts with a tiny set of "slots" (latent tokens). In each round, these slots interact with the relevant visual features and the text query through a shared Transformer to gather evidence.
  3. Reconstruction-Guided Allocation: This is the "secret sauce." After each round, a shared decoder tries to reconstruct the relevant visual features from the current slots. If the reconstruction quality is too low (meaning the current tokens haven't captured enough detail), the model adds more slots and runs another round. If the quality is sufficient, it halts.
Figure 2: Overview of QART. Given an image and a text query, frozen encoders provide visual and linguistic features V and T respectively. A relevance module Hϕ selects query-relevant patches VA; QART then recurrently refines a small set of query-conditioned slots S by passing them along with VA and T to the shared transformer Fθ. After each round r, a shared decoder Dψ reconstructs the visual features, and reconstruction quality determines whether more slots are added or recurrence halts. Only slot states propagate across rounds.

Datasets

The authors evaluated QART across a diverse suite of benchmarks to test different capabilities:

  • Reasoning & VQA: VQAv2.
  • Grounding: Visual7W (specifically the pointing task).
  • Prompt-Conditioned Retrieval: CORE, GeneCIS, and PODS.
  • Compositional Matching: Winoground.

For pretraining, they used a mixture of referring-expression and scene-understanding datasets, including RefCOCO/+/g, gRefCOCO, Mapillary Vistas, and Visual Genome.

Key Insights and Ideas

  • Coupling Steerability and Adaptivity: Unlike previous methods that only do one or the other, QART shows that these two axes are deeply linked. The query defines the "support" (what to look at), and the difficulty of representing that support defines the "budget" (how many tokens to use).
  • Recurrence as Refinement, Not Just Expansion: Interestingly, even if you fix the number of tokens, running more recurrent rounds improves accuracy. This suggests the model isn't just "adding more space" but actively "thinking longer" to refine the representation (see Figure 4a in the paper).
  • Preserving "Hidden" Detail: On the PODS dataset, QART showed it could focus on a general category (e.g., "dog") while still retaining enough fine-grained detail within that region to distinguish between specific individual dogs, even though the prompt didn't explicitly ask for those details.
  • Practical Throughput Gains: While recurrent tokenization adds some overhead, the massive reduction in tokens passed to the Large Language Model (LLM) results in significant end-to-end speedups, especially as batch sizes increase.

Key Results

  • Extreme Compression: QART achieves high performance using an average of only 29 tokens, a 20–25× reduction compared to dense VLM inputs (which often use 576 or 729 tokens).
  • State-of-the-Art Steering: On the CORE benchmark, QART reached 92.0% P@1, significantly outperforming the native SigLIP2 global representation (68.5%) and specialized models like GroundingDINO (88.5%).
  • Superior Grounding: On Visual7W, QART outperformed the strongest token-reduction baseline (DART) by 22.1% under a matched protocol.
  • Efficiency: At a batch size of 8, QART delivers a 1.53× end-to-end throughput speedup and a 2.54× speedup in LLM prefill time compared to a standard LLaVA-1.5-7B pipeline.
Figure 3: QART steers visual representations while preserving transferable visual informa- tion. (a) On CORE, QART redirects visual representations toward queried content. (b) The same representation transfers zero-shot to natural images on GeneCIS without dataset-specific tuning. (c) Replacing the sample-specific query with fixed conditioning substantially degrades Winoground performance. (d) On PODS, coarse conditioning preserves fine-grained instance information beyond the prompt.

Limitations and Future Work

  • Single-Image Focus: The current work is limited to static, single-image queries. The authors suggest that extending this to video or multi-turn interactions (where the "relevant" evidence evolves over time) is a key next step.
  • Threshold Sensitivity: The model relies on a few manually set thresholds to control relevance and halting. Future versions might benefit from fully learned or calibration-free allocation criteria.
  • Supervision Requirements: Pretraining currently requires dense query-region supervision (like segmentation masks). Investigating self-supervised or weaker relevance signals could make the model easier to train on larger, unlabelled datasets.

Summary updated

BibTeX
@misc{balaji2026query,
  author = {Bavesh Balaji and Pranav Gopinath and Pouya Sadeghi and Sirisha Rambhatla},
  title = {{Query-adaptive Recurrent Tokenization}},
  year = {2026},
  eprint = {2610.22957},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.22957},
}
Figure