ReToken: Improving Long-Context VLMs with Visual Retrieval Token
Yao Xiao, Reuben Tan, Zhen Zhu, Yuqun Wu, Jianfeng Gao, Derek Hoiem
Abstract
Long visual contexts challenge vision-language models: performance degrades as the number of distractors grows, and processing all tokens at once can exceed GPU memory limits. We present RETOKEN, a single learnable embedding that extracts retrieval signals from the VLM's internal representations to select query-relevant visual tokens from the pre-filled KV cache. This enables retrieval within the answering VLM, without a separate retriever or re-encoding. Despite being trained on only a small image-QA dataset, RETOKEN generalizes across image and video benchmarks. On Visual Haystacks, it improves Qwen3VL-8B by 13.4 points and InternVL3.5 by 12.4 points (>20% relative). On LVBench, it transfers zero-shot to long video and improves Qwen3VL-8B by 8.0 points. Thanks to its lightweight design, both training and long-video inference fit on a single H100. Code is available at: https://github.com/avaxiao/ReToken
Create a lesson
Metadata
- Categories
- cs.CV, cs.AI, cs.LG
- Comments
- Accepted to NeurIPS 2026. Code: https://github.com/avaxiao/ReToken
Related papers
Calibrate Before Reason: Robust Visual Token Reduction against Semantic Drift in VLMs
Shared title terminologycs.CVJiasheng Li, Zhong Ji, Yan Zhang et al.
HOG-WAM: Improving Visual Robustness through Future Gradient Prediction
Shared title terminologycs.CVBoxuan Dong, Yupeng Qian, Ying Wu et al.
ORCA: ORgan-Centroid Aggregation for Training-Free 3D CT Visual Token Compression
Shared title terminologycs.CVRenjie Liang, Zijian Xu, Jinqian Pan et al.
HierDoc: Hierarchical Page-to-Region Evidence Routing for Long-Document Visual Question Answering
Shared title terminologycs.CVRongjian Gu, Wengang Zhou, Junyu Xiong et al.
Step-Level Visual Grounding Faithfulness Predicts Out-of-Distribution Generalization in Long-Horizon Vision-Language Models
Shared title terminologycs.CVMd Ashikur Rahman, Md Arifur Rahman, Niamul Hassan Samin et al.
VisualRouter: Query-Grounded Visual Sampling for Long Video Understanding
Shared title terminologycs.CVHaiyue Zhang, Yi Bin, Xun Jiang et al.