# OpticalRAG: Pixel-Space Compression for Token-Efficient Retrieval-Augmented Generation

*Senhao Liu, Yuheng Zhang, Chunyu Wei, Yueguo Chen, Xinran Zhang*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/152209) · [Open on the map](../papers.html#p152209)

Category: [Vision-Language Models](../pcat/0.md) › [Multimodal Reasoning and Alignment](../pgroup/287.md) · Type: new method · Keywords: retrieval-augmented generation, visual compression, vision encoder, token-efficient RAG, query-driven distillation

Areas: [Long Context](../areas/longcontext.md) › Video Sequence Modeling › Long video understanding; [Retrieval-Augmented Generation](../areas/rag.md) › Language Model Retrieval › Multimodal Privacy-Preserving Retrieval; [Multimodal](../areas/multimodal.md) › Multimodal Visual Reasoning › Vision Token Compression

## Summary
OpticalRAG compresses documents into visual tokens and distills them into 16 injected tokens for token-efficient retrieval-augmented generation.

## Explained to a 5-year-old
We turn long written pages into pictures. A special picture-understanding tool looks at those pictures and finds the parts that answer our questions. Then we shrink the picture information into just a few tiny notes. Those tiny notes are given to a big talking robot that can write answers. This helps the robot answer long stories without using too many notes.

## Explained to a 5-year-old, longer
When we want to ask a big robot a lot of information, we usually write it as words. The robot can only remember a limited number of words at a time. If we try to cut the words too much, we lose important details. So we thought, what if we turn the words into pictures instead? Pictures can hold a lot of information in a small space. We use a tool that knows how to understand pictures, like a super-smart eye. This tool looks at the picture of a page and finds the parts that answer our question. Then we take all those picture pieces and compress them into just a few tiny notes. Those tiny notes are called injected tokens, and they are very small. The robot reads these tiny notes and writes an answer using them. This way we can give the robot a lot of information without using many words. It helps the robot answer questions about long documents more accurately.

## For a technical reader
OpticalRAG tackles the token-budget issue of RAG by converting documents into visual tokens. It renders pages as images, encodes them with a frozen vision encoder, and retrieves relevant visual chunks via the encoder’s shared space without contrastive training. A lightweight query-driven distillation module condenses thousands of visual tokens into just 16 injected tokens for the LLM. Evaluations on LongBench-v2, BAMBOO, and LooGLE-v2 show it attains the highest compression-aware accuracy while using minimal context overhead, all without large-scale cross-modal training.

## Problem
Retrieving long documents for RAG is limited by the token budget of large language models, and aggressive textual compression loses fine-grained information.

## Method
The framework renders documents as page images, encodes them with a frozen vision encoder, and uses a query-driven distillation module to compress visual tokens into a small set of injected tokens for the LLM.

## Results
The approach achieves the best compression-aware accuracy on all three benchmarks while injecting only 16 tokens and improves the closed-book Qwen2.5-7B-Instruct backbone by 5.17 points on LongBench-v2.

## Contributions
It introduces a pixel-space compression pipeline that leverages visual tokens for higher fidelity, an encoder-bridged retrieval mechanism that avoids contrastive training, and a query-driven distillation compressor that reduces visual tokens to a few injected tokens.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/152209)
