# AgenticOCR: Parsing Only What You Need for Efficient Retrieval-Augmented Generation

*Zhengren Wang, Dongsheng Ma, Huaping Zhong, Jiayu Li, Yijie Wang, Tianyao He, Wentao Zhang, Bin Wang, Conghui He*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/153107) · [OpenReview](https://openreview.net/forum?id=NtBkgEhEww) · [Open on the map](../papers.html#p153107)

Category: [Multimodal, Audio & Medical Reasoning](../pcat/1.md) › [Medical Vision-Language Models](../pgroup/214.md) · Type: new method · Keywords: visual document RAG, query-driven OCR, region extraction, token efficiency, long document understanding

Areas: [Retrieval-Augmented Generation](../areas/rag.md) › Language Model Retrieval › Multimodal Privacy-Preserving Retrieval; [Multimodal](../areas/multimodal.md) › Multimodal Visual Reasoning › Vision Token Compression

## Summary
AgenticOCR introduces a dynamic, query-driven OCR parsing system that extracts only relevant regions from visual documents to improve retrieval-augmented generation efficiency and accuracy.

## Explained to a 5-year-old
When you look at a page of text, you usually get the whole page at once. This can be too much information for the computer to understand. The new system only looks at the parts of the page that are needed. It finds the important bits by looking at the layout, like headings and tables. This helps the computer answer questions better and faster.

## Explained to a 5-year-old, longer
Imagine you have a big book with lots of pages. Usually, when you ask a computer to read it, it reads every single page. That can be a lot of information, like trying to eat an entire pizza at once. The new idea is like having a smart helper that only looks at the pieces you need. It looks at the picture of the page and finds where the important words are. It pays attention to titles, numbers, and pictures that might answer your question. The helper skips the parts that are not useful, like the decorations. This way, the computer doesn't get confused by too much stuff. It can focus on the key information and give you a better answer. The system works like a careful librarian who only brings the right books. By doing this, the computer uses less energy and works faster. All in all, it makes reading long documents easier and more accurate.

## For a technical reader
AgenticOCR replaces traditional full-page OCR with a query-driven parser that dynamically selects regions of interest. By analyzing layout cues, it extracts only the visual tokens needed for the downstream retrieval-augmented generation task. This on-demand decompression reduces token overhead and mitigates context dilution, leading to higher accuracy and lower latency. The system integrates as the third component in a visual RAG pipeline, complementing embedding and reranking stages. Experiments with a Qwen3.5 generator show expert-level performance on long-document benchmarks while using fewer tokens.

## Problem
Visual document RAG systems currently retrieve entire pages, causing excessive context and token overload, which reduces accuracy and increases hallucinations.

## Method
The approach extends OCR into a query-driven, on-demand extraction system that analyzes document layout to identify and recognize only regions of interest, performing pixel-adaptive token allocation to match retrieval needs.

## Results
The approach improves accuracy and efficiency of visual RAG systems, achieving expert-level performance on long document understanding tasks.

## Contributions
It introduces a dynamic, query-driven OCR parsing method that selectively extracts relevant regions, decoupling retrieval granularity from page-level chunking, and demonstrates improved performance in visual document RAG.

## Practical relevance
It enables more efficient and accurate processing of complex documents such as financial reports, reducing computational cost and improving reliability.

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/153107)
