ReToken: Improving Long-Context VLMs with Visual Retrieval Token

Yao Xiao, Reuben Tan, Zhen Zhu, Yuqun Wu, Jianfeng Gao +1 more
7/30/2026
cs.CVcs.AIcs.LG

Official code: avaxiao/ReToken (20 stars, Python, MIT, last commit 2026-09-24).

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.

Show full abstract

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

View on arXivView PDF

Code Implementations(1)

avaxiao/ReTokenOfficial100%
MIT

[NeurIPS 2026] ReToken: One Token to Improve Vision–Language Models for Visual Retrieval

201Python, ShellJul 31, 20262 months agoMIT

Similar Papers

Cite this paper

@article{xiao2026retoken,
  title  = {ReToken: Improving Long-Context VLMs with Visual Retrieval Token},
  author = {Yao Xiao and Reuben Tan and Zhen Zhu and Yuqun Wu and Jianfeng Gao and Derek Hoiem},
  year   = {2026},
  eprint = {2607.28627},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.28627v2}
}

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/2607.28627.svg)](https://codeofpaper.com/paper/2607.28627)

Discussion