Query-adaptive Recurrent Tokenization
Organizations: Critical ML Lab, University of Waterloo
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-25x 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.
Figures & tables
| Query-steered support | Query-aware budget | P@1 | Mean | Mean rounds |
| ✓ | ✓ | 92.01 | 17.25 | 4.25 |
| ✓ | ✗ | 92.08 | 32.00 | 6.00 |
| ✗ | ✗ | 79.7 | 32 | 6.00 |
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
| Source | Sampling probability | Validation records |
|---|---|---|
| RefCOCO | 0.10 | 10,834 |
| RefCOCO+ | 0.10 | 10,758 |
| RefCOCOg | 0.10 | 9,536 |
| gRefCOCO | 0.20 | 14,229 |
| Mapillary Vistas | 0.15 | 3,053 |
| VG, native images | 0.33 | 3,003 |
| Metric | SigLIP2 QART | DINOv2 QART |
|---|---|---|
| Overall accuracy | 76.37% | 72.93% |
| Yes/No | 91.20% | 89.87% |
| Number | 60.80% | 54.16% |
| Other | 69.21% | 65.01% |
| Mean active slots | 29.45 | 30.96 |
| Task | Primary metric | Mean | |
|---|---|---|---|
| CORE | 0.10 | 85.61 | – |
| 0.20 | 90.96 | – | |
| 0.25 | 92.01 | 17.25 | |
| 0.35 | 91.92 | – | |
| 0.50 | 89.79 | – | |
| GeneCIS | 0.05 | 12.81 | 30.04 |
Visual Tokenization
Visual tokenization turns images and video into compact, structured tokens for efficient perception, compression, and generation.
See all 68 papers