AgentOCR: Reimagining Agent History via Optical Self-Compression
On the map: LLM agents and tool use → Agent memory systems
Abstract (arXiv)
Recent advances in large language models (LLMs) enable agentic systems trained with reinforcement learning (RL) over multi-turn interaction, but practical deployment is bottlenecked by rapidly growing textual histories that inflate token and memory costs. We introduce AgentOCR, a framework that exploits visual tokens' superior information density by representing the accumulated observation-action history as a compact rendered image. To make multi-turn rollouts scalable, AgentOCR proposes segment optical caching. By decomposing history into hashable segments and maintaining a visual cache, this mechanism eliminates redundant re-rendering. Beyond fixed rendering, AgentOCR introduces agentic self-compression, where the agent actively emits a compression rate and is trained with compression-aware reward to adaptively balance task success and token efficiency. We conduct extensive experiments on challenging agentic benchmarks, ALFWorld and search-based QA. Remarkably, AgentOCR preserves over 95% of text-based agent performance while substantially reducing token consumption (>50%), yielding consistent token and memory efficiency. Further analysis validates a 20× rendering speedup from optical caching and effective self-compression balancing. Our code is available at https://github.com/langfengQ/AgentOCR.
Key facts. Cited by 22 papers in the map (data through 7 Oct 2026). Placed in Agent memory systems, one of 16 directions in LLM agents and tool use. Builds on 85 of its 101 references that are in the map. First posted on arXiv 8 Jan 2026.
Builds on
85 of 101 references.
Closest ancestors · 10
Same direction, newest first
- 2025Memory in the Age of AI Agents15 Dec
- 2025ACON: Optimizing Context Compression for Long-horizon LLM Agents1 Oct
- 2025Memory-R1: Enhancing Large Language Model Agents to Manage and Utilize Memories via Reinforcement Learning27 Aug
- 2025MEM1: Learning to Synergize Memory and Reasoning for Efficient Long-Horizon Agents18 Jun
- 2025G-Memory: Tracing Hierarchical Memory for Multi-Agent Systems9 Jun
- 2025Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory28 Apr
- 2025A-MEM: Agentic Memory for LLM Agents17 Feb
- 2024HiAgent: Hierarchical Working Memory Management for Solving Long-Horizon Agent Tasks with Large Language Model18 Aug
- 2024AriGraph: Learning Knowledge Graph World Models with Episodic Memory for LLM Agents5 Jul
- 2024A Survey on the Memory Mechanism of Large Language Model based Agents21 Apr
Other references · 75
- 2023GPT-4 Technical Reportcited by 18,132
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2017Proximal Policy Optimization Algorithmscited by 14,441
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2025Qwen3 Technical Reportcited by 8,195
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
- 2025Qwen2.5-VL Technical Reportcited by 5,418
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
- 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,655
38 more
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
- 2025DAPO: An Open-Source LLM Reinforcement Learning System at Scalecited by 2,678
- 2020Learning to summarize from human feedbackcited by 2,562
- 2025Qwen3-VL Technical Reportcited by 2,534
- 2024HybridFlow: A Flexible and Efficient RLHF Frameworkcited by 1,980
- 2016OpenAI Gymcited by 1,684
- 2024Expanding Performance Boundaries of Open-Source Multimodal Models with Model, Data, and Test-Time Scalingcited by 1,573
- 2025Search-R1: Training LLMs to Reason and Leverage Search Engines with Reinforcement Learningcited by 1,371
- 2023MemGPT: Towards LLMs as Operating Systemscited by 1,295
- 2025Understanding R1-Zero-Like Training: A Critical Perspectivecited by 1,276
- 2020Constructing A Multi-hop QA Dataset for Comprehensive Evaluation of Reasoning Stepscited by 1,259
- 2022Text Embeddings by Weakly-Supervised Contrastive Pre-trainingcited by 1,216
- 2020ALFWorld: Aligning Text and Embodied Environments for Interactive Learningcited by 1,143
- 2022Measuring and Narrowing the Compositionality Gap in Language Modelscited by 1,054
- 2024M3-Embedding: Multi-Linguality, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillationcited by 1,050
- 2022Interleaving Retrieval with Chain-of-Thought Reasoning for Knowledge-Intensive Multi-Step Questionscited by 911
- 2025Group Sequence Policy Optimizationcited by 788
- 2019LayoutLM: Pre-training of Text and Layout for Document Image Understandingcited by 549
- 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 507
- 2025The Entropy Mechanism of Reinforcement Learning for Reasoning Language Modelscited by 463
- 2025Group-in-Group Policy Optimization for LLM Agent Trainingcited by 442
- 2021OCR-free Document Understanding Transformercited by 400
- 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 375
- 2022Pix2Struct: Screenshot Parsing as Pretraining for Visual Language Understandingcited by 360
- 2025RAGEN: Understanding Self-Evolution in LLM Agents via Multi-Turn Reinforcement Learningcited by 357
- 2025ToolRL: Reward is All Tool Learning Needscited by 342
- 2023Android in the Wild: A Large-Scale Dataset for Android Device Controlcited by 314
- 2024LongRoPE: Extending LLM Context Window Beyond 2 Million Tokenscited by 302
- 2023Effective Long-Context Scaling of Foundation Modelscited by 301
- 2024DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Headscited by 283
- 2021TrOCR: Transformer-based Optical Character Recognition with Pre-trained Modelscited by 278
- 2023Nougat: Neural Optical Understanding for Academic Documentscited by 240
- 2025MemAgent: Reshaping Long-Context LLM with Multi-Conv RL-based Memory Agentcited by 235
- 2024ArCHer: Training Language Model Agents via Hierarchical Multi-Turn RLcited by 212
- 2025ZeroSearch: Incentivize the Search Capability of LLMs without Searchingcited by 203
- 2024Agent Q: Advanced Reasoning and Learning for Autonomous AI Agentscited by 201
- 2025The Landscape of Agentic Reinforcement Learning for LLMs: A Surveycited by 195
50 most cited of 75 All 75 (JSON)
Built on by
Citing papers per year: 2026: 22.
22 papers.
Sort:
By area:
- 2026SKILL0: In-Context Agentic Reinforcement Learning for Skill Internalizationcited by 82
- 2026Self-Improvements in Modern Agentic Systems: A Surveycited by 17
- 2026MemOCR: Layout-Aware Visual Memory for Efficient Long-Horizon Reasoningcited by 15
- 2026Dr. MAS: Stable Reinforcement Learning for Multi-Agent LLM Systemscited by 15
- 2026SkillDAG: Self-Evolving Typed Skill Graphs for LLM Skill Selection at Scalecited by 15
- 2026VTC-R1: Vision-Text Compression for Efficient Long-Context Reasoningcited by 8
- 2026Can Vision-Language Models Handle Long-Context Code? An Empirical Study on Visual Compressioncited by 5
- 2026ScrapMem: A Bio-inspired Framework for On-device Personalized Agent Memory via Optical Forgettingcited by 3
- 2026SkillLens: Visual Skill Cards for Retrieval-Augmented GUI Action Prediction and On-Policy Distillationcited by 3
- 2026LensVLM: Selective Context Expansion for Compressed Visual Representation of Textcited by 2
- 2026View-oriented Conversation Compiler for Agent Trace Analysiscited by 1
- 2026POINTS-Seeker: An Open Recipe for Multimodal Search Agents with Visual Memory Managementcited by 1
10 more
- 2026Maestro: Reinforcement Learning to Orchestrate Hierarchical Model-Skill Ensemblescited by 1
- 2026VTI-CoT: Visual-Textual Interleaved Chain of Thought for Video Reasoningcited by 1
- 2026Magnifying What Matters: Attention-Guided Adaptive Rendering for Visual Text Comprehensioncited by 1
- 2026Reading is not Reasoning: Bridging the Agentic Policy Gap in Vision-Text Compressioncited by 1
- 2026LatentPress: Context Compression Beyond Text and Visioncited by 1
- 2026Can Vision Replace Text in Working Memory? Evidence from Spatial n-Back in Vision-Language Modelscited by 0
- 2026Optical Reasoning: Rethinking Images as an Expressive Reasoning Medium Beyond Textcited by 0
- 2026Compression Beyond the Uncompressed: A Two-Stage Training Recipe for Soft Context Compression in RAGcited by 0
- 2026MEMO: Multimodal Evidence Memory Organization for Long-Horizon LLM Agentscited by 0
- 2026GenMem: Generative Symbolic Memory for Self-Evolving Harnesscited by 0
- 2026GenMem: Generative Symbolic Memory for Self-Evolving Harness28 Sep 2026
- 2026MEMO: Multimodal Evidence Memory Organization for Long-Horizon LLM Agents7 Sep 2026
- 2026Compression Beyond the Uncompressed: A Two-Stage Training Recipe for Soft Context Compression in RAG4 Sep 2026
- 2026LatentPress: Context Compression Beyond Text and Vision1 Sep 2026
- 2026SkillLens: Visual Skill Cards for Retrieval-Augmented GUI Action Prediction and On-Policy Distillation11 Aug 2026
- 2026Reading is not Reasoning: Bridging the Agentic Policy Gap in Vision-Text Compression9 Aug 2026
- 2026Self-Improvements in Modern Agentic Systems: A Survey14 Jul 2026
- 2026Magnifying What Matters: Attention-Guided Adaptive Rendering for Visual Text Comprehension11 Jun 2026
- 2026Optical Reasoning: Rethinking Images as an Expressive Reasoning Medium Beyond Text8 Jun 2026
- 2026VTI-CoT: Visual-Textual Interleaved Chain of Thought for Video Reasoning4 Jun 2026
- 2026SkillDAG: Self-Evolving Typed Skill Graphs for LLM Skill Selection at Scale2 Jun 2026
- 2026Maestro: Reinforcement Learning to Orchestrate Hierarchical Model-Skill Ensembles21 May 2026
10 more
- 2026LensVLM: Selective Context Expansion for Compressed Visual Representation of Text7 May 2026
- 2026ScrapMem: A Bio-inspired Framework for On-device Personalized Agent Memory via Optical Forgetting5 May 2026
- 2026POINTS-Seeker: An Open Recipe for Multimodal Search Agents with Visual Memory Management15 Apr 2026
- 2026SKILL0: In-Context Agentic Reinforcement Learning for Skill Internalization2 Apr 2026
- 2026View-oriented Conversation Compiler for Agent Trace Analysis31 Mar 2026
- 2026Dr. MAS: Stable Reinforcement Learning for Multi-Agent LLM Systems9 Feb 2026
- 2026Can Vision Replace Text in Working Memory? Evidence from Spatial n-Back in Vision-Language Models4 Feb 2026
- 2026Can Vision-Language Models Handle Long-Context Code? An Empirical Study on Visual Compression31 Jan 2026
- 2026VTC-R1: Vision-Text Compression for Efficient Long-Context Reasoning29 Jan 2026
- 2026MemOCR: Layout-Aware Visual Memory for Efficient Long-Horizon Reasoning29 Jan 2026
- 2026SKILL0: In-Context Agentic Reinforcement Learning for Skill Internalizationcited by 82
- 2026Self-Improvements in Modern Agentic Systems: A Surveycited by 17
- 2026MemOCR: Layout-Aware Visual Memory for Efficient Long-Horizon Reasoningcited by 15
- 2026SkillDAG: Self-Evolving Typed Skill Graphs for LLM Skill Selection at Scalecited by 15
- 2026ScrapMem: A Bio-inspired Framework for On-device Personalized Agent Memory via Optical Forgettingcited by 3
- 2026Reading is not Reasoning: Bridging the Agentic Policy Gap in Vision-Text Compressioncited by 1
- 2026MEMO: Multimodal Evidence Memory Organization for Long-Horizon LLM Agentscited by 0
- 2026GenMem: Generative Symbolic Memory for Self-Evolving Harnesscited by 0
- 2026GenMem: Generative Symbolic Memory for Self-Evolving Harness28 Sep 2026
- 2026MEMO: Multimodal Evidence Memory Organization for Long-Horizon LLM Agents7 Sep 2026
- 2026Reading is not Reasoning: Bridging the Agentic Policy Gap in Vision-Text Compression9 Aug 2026
- 2026Self-Improvements in Modern Agentic Systems: A Survey14 Jul 2026
- 2026SkillDAG: Self-Evolving Typed Skill Graphs for LLM Skill Selection at Scale2 Jun 2026
- 2026ScrapMem: A Bio-inspired Framework for On-device Personalized Agent Memory via Optical Forgetting5 May 2026
- 2026SKILL0: In-Context Agentic Reinforcement Learning for Skill Internalization2 Apr 2026
- 2026MemOCR: Layout-Aware Visual Memory for Efficient Long-Horizon Reasoning29 Jan 2026
- 2026Can Vision-Language Models Handle Long-Context Code? An Empirical Study on Visual Compressioncited by 5
- 2026LensVLM: Selective Context Expansion for Compressed Visual Representation of Textcited by 2
- 2026POINTS-Seeker: An Open Recipe for Multimodal Search Agents with Visual Memory Managementcited by 1
- 2026Magnifying What Matters: Attention-Guided Adaptive Rendering for Visual Text Comprehensioncited by 1
- 2026Can Vision Replace Text in Working Memory? Evidence from Spatial n-Back in Vision-Language Modelscited by 0
- 2026Magnifying What Matters: Attention-Guided Adaptive Rendering for Visual Text Comprehension11 Jun 2026
- 2026LensVLM: Selective Context Expansion for Compressed Visual Representation of Text7 May 2026
- 2026POINTS-Seeker: An Open Recipe for Multimodal Search Agents with Visual Memory Management15 Apr 2026
- 2026Can Vision Replace Text in Working Memory? Evidence from Spatial n-Back in Vision-Language Models4 Feb 2026
- 2026Can Vision-Language Models Handle Long-Context Code? An Empirical Study on Visual Compression31 Jan 2026
- 2026Dr. MAS: Stable Reinforcement Learning for Multi-Agent LLM Systemscited by 15
- 2026VTC-R1: Vision-Text Compression for Efficient Long-Context Reasoningcited by 8
- 2026VTI-CoT: Visual-Textual Interleaved Chain of Thought for Video Reasoningcited by 1
- 2026Optical Reasoning: Rethinking Images as an Expressive Reasoning Medium Beyond Textcited by 0
- 2026Optical Reasoning: Rethinking Images as an Expressive Reasoning Medium Beyond Text8 Jun 2026
- 2026VTI-CoT: Visual-Textual Interleaved Chain of Thought for Video Reasoning4 Jun 2026
- 2026Dr. MAS: Stable Reinforcement Learning for Multi-Agent LLM Systems9 Feb 2026
- 2026VTC-R1: Vision-Text Compression for Efficient Long-Context Reasoning29 Jan 2026
- 2026LatentPress: Context Compression Beyond Text and Visioncited by 1
- 2026LatentPress: Context Compression Beyond Text and Vision1 Sep 2026
Similar, not cited
Close in wording, no citation either way
- 2026Coding Agent Memory Post-training: Unlocking the Memory Potential of Pre-trained File Operations for Long-Horizon Tasks via Reinforcement Learning
- 2026OCR-Memory: Optical Context Retrieval for Long-Horizon Agent Memory
- 2026Memory Compression for High-Fanout Agent Sandboxes
- 2026Toward Reliable Context Compression for Long-Horizon Agents: An Empirical Study of Execution Instability
- 2026Cross-Modal Memory Compression for Efficient Multi-Agent Debate
- 2026WAR: Workload-Aware Rollouts for Synchronous Agentic Reinforcement Learning
- 2026ECHO: Prune To Act, Trace To Learn With Selective Turn Memory In Agentic RL
- 2026Beyond Token Savings: A Systematic Study of Context Compression in LLM Agents