mlsanityData to 7 Oct 2026

AgentOCR: Reimagining Agent History via Optical Self-Compression

arXiv 2601.04786 ↗First posted 8 Jan 2026cs.LG cs.AIcited by 22

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

  1. 2025Memory in the Age of AI Agents15 Dec
  2. 2025ACON: Optimizing Context Compression for Long-horizon LLM Agents1 Oct
  3. 2025Memory-R1: Enhancing Large Language Model Agents to Manage and Utilize Memories via Reinforcement Learning27 Aug
  4. 2025MEM1: Learning to Synergize Memory and Reasoning for Efficient Long-Horizon Agents18 Jun
  5. 2025G-Memory: Tracing Hierarchical Memory for Multi-Agent Systems9 Jun
  6. 2025Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory28 Apr
  7. 2025A-MEM: Agentic Memory for LLM Agents17 Feb
  8. 2024HiAgent: Hierarchical Working Memory Management for Solving Long-Horizon Agent Tasks with Large Language Model18 Aug
  9. 2024AriGraph: Learning Knowledge Graph World Models with Episodic Memory for LLM Agents5 Jul
  10. 2024A Survey on the Memory Mechanism of Large Language Model based Agents21 Apr

Other references · 75

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2022Training language models to follow instructions with human feedbackcited by 15,712
  3. 2017Proximal Policy Optimization Algorithmscited by 14,441
  4. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  5. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
  6. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  7. 2025Qwen3 Technical Reportcited by 8,195
  8. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
  9. 2025Qwen2.5-VL Technical Reportcited by 5,418
  10. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  11. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
  12. 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,655
38 more
  1. 2020Longformer: The Long-Document Transformercited by 3,362
  2. 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
  3. 2025DAPO: An Open-Source LLM Reinforcement Learning System at Scalecited by 2,678
  4. 2020Learning to summarize from human feedbackcited by 2,562
  5. 2025Qwen3-VL Technical Reportcited by 2,534
  6. 2024HybridFlow: A Flexible and Efficient RLHF Frameworkcited by 1,980
  7. 2016OpenAI Gymcited by 1,684
  8. 2024Expanding Performance Boundaries of Open-Source Multimodal Models with Model, Data, and Test-Time Scalingcited by 1,573
  9. 2025Search-R1: Training LLMs to Reason and Leverage Search Engines with Reinforcement Learningcited by 1,371
  10. 2023MemGPT: Towards LLMs as Operating Systemscited by 1,295
  11. 2025Understanding R1-Zero-Like Training: A Critical Perspectivecited by 1,276
  12. 2020Constructing A Multi-hop QA Dataset for Comprehensive Evaluation of Reasoning Stepscited by 1,259
  13. 2022Text Embeddings by Weakly-Supervised Contrastive Pre-trainingcited by 1,216
  14. 2020ALFWorld: Aligning Text and Embodied Environments for Interactive Learningcited by 1,143
  15. 2022Measuring and Narrowing the Compositionality Gap in Language Modelscited by 1,054
  16. 2024M3-Embedding: Multi-Linguality, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillationcited by 1,050
  17. 2022Interleaving Retrieval with Chain-of-Thought Reasoning for Knowledge-Intensive Multi-Step Questionscited by 911
  18. 2025Group Sequence Policy Optimizationcited by 788
  19. 2019LayoutLM: Pre-training of Text and Layout for Document Image Understandingcited by 549
  20. 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 507
  21. 2025The Entropy Mechanism of Reinforcement Learning for Reasoning Language Modelscited by 463
  22. 2025Group-in-Group Policy Optimization for LLM Agent Trainingcited by 442
  23. 2021OCR-free Document Understanding Transformercited by 400
  24. 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 375
  25. 2022Pix2Struct: Screenshot Parsing as Pretraining for Visual Language Understandingcited by 360
  26. 2025RAGEN: Understanding Self-Evolution in LLM Agents via Multi-Turn Reinforcement Learningcited by 357
  27. 2025ToolRL: Reward is All Tool Learning Needscited by 342
  28. 2023Android in the Wild: A Large-Scale Dataset for Android Device Controlcited by 314
  29. 2024LongRoPE: Extending LLM Context Window Beyond 2 Million Tokenscited by 302
  30. 2023Effective Long-Context Scaling of Foundation Modelscited by 301
  31. 2024DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Headscited by 283
  32. 2021TrOCR: Transformer-based Optical Character Recognition with Pre-trained Modelscited by 278
  33. 2023Nougat: Neural Optical Understanding for Academic Documentscited by 240
  34. 2025MemAgent: Reshaping Long-Context LLM with Multi-Conv RL-based Memory Agentcited by 235
  35. 2024ArCHer: Training Language Model Agents via Hierarchical Multi-Turn RLcited by 212
  36. 2025ZeroSearch: Incentivize the Search Capability of LLMs without Searchingcited by 203
  37. 2024Agent Q: Advanced Reasoning and Learning for Autonomous AI Agentscited by 201
  38. 2025The Landscape of Agentic Reinforcement Learning for LLMs: A Surveycited by 195

50 most cited of 75 All 75 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 22.

22 papers.

Sort:

By area:

  1. 2026SKILL0: In-Context Agentic Reinforcement Learning for Skill Internalizationcited by 82
  2. 2026Self-Improvements in Modern Agentic Systems: A Surveycited by 17
  3. 2026MemOCR: Layout-Aware Visual Memory for Efficient Long-Horizon Reasoningcited by 15
  4. 2026Dr. MAS: Stable Reinforcement Learning for Multi-Agent LLM Systemscited by 15
  5. 2026SkillDAG: Self-Evolving Typed Skill Graphs for LLM Skill Selection at Scalecited by 15
  6. 2026VTC-R1: Vision-Text Compression for Efficient Long-Context Reasoningcited by 8
  7. 2026Can Vision-Language Models Handle Long-Context Code? An Empirical Study on Visual Compressioncited by 5
  8. 2026ScrapMem: A Bio-inspired Framework for On-device Personalized Agent Memory via Optical Forgettingcited by 3
  9. 2026SkillLens: Visual Skill Cards for Retrieval-Augmented GUI Action Prediction and On-Policy Distillationcited by 3
  10. 2026LensVLM: Selective Context Expansion for Compressed Visual Representation of Textcited by 2
  11. 2026View-oriented Conversation Compiler for Agent Trace Analysiscited by 1
  12. 2026POINTS-Seeker: An Open Recipe for Multimodal Search Agents with Visual Memory Managementcited by 1
10 more
  1. 2026Maestro: Reinforcement Learning to Orchestrate Hierarchical Model-Skill Ensemblescited by 1
  2. 2026VTI-CoT: Visual-Textual Interleaved Chain of Thought for Video Reasoningcited by 1
  3. 2026Magnifying What Matters: Attention-Guided Adaptive Rendering for Visual Text Comprehensioncited by 1
  4. 2026Reading is not Reasoning: Bridging the Agentic Policy Gap in Vision-Text Compressioncited by 1
  5. 2026LatentPress: Context Compression Beyond Text and Visioncited by 1
  6. 2026Can Vision Replace Text in Working Memory? Evidence from Spatial n-Back in Vision-Language Modelscited by 0
  7. 2026Optical Reasoning: Rethinking Images as an Expressive Reasoning Medium Beyond Textcited by 0
  8. 2026Compression Beyond the Uncompressed: A Two-Stage Training Recipe for Soft Context Compression in RAGcited by 0
  9. 2026MEMO: Multimodal Evidence Memory Organization for Long-Horizon LLM Agentscited by 0
  10. 2026GenMem: Generative Symbolic Memory for Self-Evolving Harnesscited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2026Coding Agent Memory Post-training: Unlocking the Memory Potential of Pre-trained File Operations for Long-Horizon Tasks via Reinforcement Learning
  2. 2026OCR-Memory: Optical Context Retrieval for Long-Horizon Agent Memory
  3. 2026Memory Compression for High-Fanout Agent Sandboxes
  4. 2026Toward Reliable Context Compression for Long-Horizon Agents: An Empirical Study of Execution Instability
  5. 2026Cross-Modal Memory Compression for Efficient Multi-Agent Debate
  6. 2026WAR: Workload-Aware Rollouts for Synchronous Agentic Reinforcement Learning
  7. 2026ECHO: Prune To Act, Trace To Learn With Selective Turn Memory In Agentic RL
  8. 2026Beyond Token Savings: A Systematic Study of Context Compression in LLM Agents