Recursive Language Models
On the map: LLM reasoning → Test-time compute and efficient thinking
Abstract (arXiv)
We study allowing large language models (LLMs) to process arbitrarily long prompts through the lens of inference-time scaling. We propose Recursive Language Models (RLMs), a general inference paradigm that treats long prompts as part of an external environment and allows the LLM to programmatically examine, decompose, and recursively call itself over snippets of the prompt. We find that RLMs can successfully process inputs up to two orders of magnitude beyond model context windows and, even for shorter prompts, dramatically outperform the quality of vanilla frontier LLMs and common long-context and coding scaffolds (e.g., on GPT-5 by a median across the evaluated benchmarks of 26% against compaction, 130% against CodeAct with sub-calls, and 13% against Claude Code) across four diverse long-context tasks while having comparable cost. At a small scale, we post-train the first model around the RLM. Our model, RLM-Qwen3-8B, outperforms the underlying Qwen3-8B model by 28.3% on average and even approaches the quality of vanilla GPT-5 on three long-context tasks. Code is available at https://github.com/alexzhang13/rlm.
Key facts. Cited by 94 papers in the map (data through 7 Oct 2026). Placed in Test-time compute and efficient thinking, one of 17 directions in LLM reasoning. Builds on 28 of its 60 references that are in the map. First posted on arXiv 31 Dec 2025.
Builds on
28 of 60 references.
Closest ancestors · 2
Same direction, newest first
- 2025Self-Steering Language Models9 Apr
- 2024THREAD: Thinking Deeper with Recursive Spawning27 May
Other references · 26
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2018YOLOv3: An Incremental Improvementcited by 2,652
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,424
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
- 2024Large Language Model based Multi-Agents: A Survey of Progress and Challengescited by 752
- 2025Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memorycited by 722
- 2023ViperGPT: Visual Inference via Python Execution for Reasoningcited by 591
- 2024Executable Code Actions Elicit Better LLM Agentscited by 537
- 2024LongBench v2: Towards Deeper Understanding and Reasoning on Realistic Long-context Multitaskscited by 367
- 2024Quiet-STaR: Language Models Can Teach Themselves to Think Before Speakingcited by 292
- 2021Recursively Summarizing Books with Human Feedbackcited by 287
14 more
- 2025MemAgent: Reshaping Long-Context LLM with Multi-Conv RL-based Memory Agentcited by 235
- 2024Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attentioncited by 194
- 2025BrowseComp-Plus: A More Fair and Transparent Evaluation Benchmark of Deep-Research Agentcited by 183
- 2023BooookScore: A systematic exploration of book-length summarization in the era of LLMscited by 137
- 2025Scaling Long-Horizon LLM Agent via Context-Foldingcited by 136
- 2025ReSum: Unlocking Long-Horizon Search Intelligence via Context Summarizationcited by 132
- 2023Walking Down the Memory Maze: Beyond Context Limit through Interactive Readingcited by 129
- 2025G-Memory: Tracing Hierarchical Memory for Multi-Agent Systemscited by 112
- 2025AgentFold: Long-Horizon Web Agents with Proactive Context Managementcited by 95
- 2024Michelangelo: Long Context Evaluations Beyond Haystacks via Latent Structure Queriescited by 85
- 2021Baleen: Robust Multi-Hop Reasoning at Scale via Condensed Retrievalcited by 63
- 2025Oolong: Evaluating Long Context Reasoning and Aggregation Capabilitiescited by 33
- 2024Is It Really Long Context if All You Need Is Retrieval? Towards Genuinely Difficult Long Context NLPcited by 27
- 2024ReDel: A Toolkit for LLM-Powered Recursive Multi-Agent Systemscited by 8
Built on by
Citing papers per year: 2026: 94.
94 papers.
Sort:
By area:
- 2026LoopFormer: Elastic-Depth Looped Transformers for Latent Reasoning via Shortcut Modulationcited by 48
- 2026Meta Context Engineering via Agentic Skill Evolutioncited by 42
- 2026τ-Knowledge: Evaluating Conversational Agents over Unstructured Knowledgecited by 35
- 2026Continual Harness: Online Adaptation for Self-Improving Foundation Agentscited by 30
- 2026HealthBench Professional: Evaluating Large Language Models on Real Clinician Chatscited by 22
- 2026Agentic Aggregation for Parallel Scaling of Long-Horizon Agentic Taskscited by 18
- 2026RHO: Your Coding Agent is Secretly a Roboticistcited by 18
- 2026Coding Agents are Effective Long-Context Processorscited by 11
- 2026SideQuest: Model-Driven KV Cache Management for Long-Horizon Agentic Reasoningcited by 10
- 2026Recursive Multi-Agent Systemscited by 10
- 2026JIT-Agent: Scaling Harness Intelligence via Just-in-Time Harness Evolutioncited by 10
- 2026Are Your Reasoning Models Reasoning or Guessing? A Mechanistic Analysis of Hierarchical Reasoning Modelscited by 9
38 more
- 2026Recursive Models for Long-Horizon Reasoningcited by 9
- 2026PRO-LONG: Programmatic Memory Enables Long-Horizon Reasoningcited by 9
- 2026Understanding the Challenges in Iterative Generative Optimization with LLMscited by 8
- 2026Workspace Optimization: How to Train Your Agentcited by 7
- 2026FutureSim: Replaying World Events to Evaluate Adaptive Agentscited by 7
- 2026Decentralized Multi-Agent Systems with Shared Contextcited by 7
- 2026Better Harnesses, Smaller Models: Building 90% Cheaper Agents via Automated Harness Adaptationcited by 7
- 2026PM-Bench: Evaluating Prospective Memory in LLM Agentscited by 6
- 2026Long Context, Less Focus: A Scaling Gap in LLMs Revealed through Privacy and Personalizationcited by 5
- 2026Terminal Agents Suffice for Enterprise Automationcited by 5
- 2026LongCoT: Benchmarking Long-Horizon Chain-of-Thought Reasoningcited by 5
- 2026On Training Large Language Models for Long-Horizon Tasks: An Empirical Study of Horizon Lengthcited by 5
- 2026PEEK: Context Map as an Orientation Cache for Long-Context LLM Agentscited by 4
- 2026Masking Stale Observations Helps Search Agents -- Until It Doesn't: A Regime Map and Its Mechanismcited by 4
- 2026Covert Influence Between Language Modelscited by 4
- 2026When Does Continual Learning Require Learningcited by 4
- 2026Twin: Playing an Unknown Game with a Test-Time Digital Twincited by 4
- 2026Scaling Discovery through Test-Time Communicationcited by 4
- 2026ROMA: Recursive Open Meta-Agent Framework for Long-Horizon Multi-Agent Systemscited by 3
- 2026Supervising Ralph Wiggum: Exploring a Metacognitive Co-Regulation Agentic AI Loop for Engineering Designcited by 3
- 2026Reasoning Shift: How Context Silently Shortens LLM Reasoningcited by 3
- 2026Robust Reasoning Benchmarkcited by 3
- 2026LCM: Lossless Context Managementcited by 3
- 2026SEER: Long-Context Reasoning via Selective Visual-Text Compressioncited by 3
- 2026Adaptive Protein Tokenizationcited by 2
- 2026DySCO: Dynamic Attention-Scaling Decoding for Long-Context Language Modelscited by 2
- 2026Think, But Don't Overthink: Reproducing Recursive Language Modelscited by 2
- 2026Deep Reasoning in General Purpose Agents via Structured Meta-Cognitioncited by 2
- 2026Multi-Agent Computer Usecited by 2
- 2026Declarative Skills for AI Agents in Knowledge-Grounded Tool-Use Workflowscited by 2
- 2026Context Compaction Theorycited by 2
- 2026Context as an Environment: Programmatic Context Management for Long-Horizon Agentscited by 2
- 2026Prefix Sliding for efficient test-time scalingcited by 2
- 2026Multi-Agent Systems Should be Treated as Principal-Agent Problemscited by 1
- 2026TS-Haystack: A Multi-Task Retrieval Benchmark for Long-Context Time-Series Reasoningcited by 1
- 2026Recursive Language Models Meet Uncertainty: The Surprising Effectiveness of Self-Reflective Program Search for Long Contextcited by 1
- 2026VideoAtlas: Navigating Long-Form Video in Logarithmic Computecited by 1
- 2026Context Cartography: Toward Structured Governance of Contextual Space in Large Language Model Systemscited by 1
50 most cited of 94 All 94 (JSON)
- 2026Project Greenhouse: Progress Toward Fully Open and Sovereign Agentic Search8 Oct 2026
- 2026MemFit: Efficient Long-Term Agentic Memory1 Oct 2026
- 2026Towards Better Exploration in Sequential Test-Time Scaling30 Sep 2026
- 2026LongHarness Bench: Stress-Testing Language Model Harnesses for Long-Context Reasoning29 Sep 2026
- 2026Context Language Models29 Sep 2026
- 2026LLMs are General Asynchronous Agents28 Sep 2026
- 2026The Model Knows When to Stop: Training-Free Early Stopping for Long-Context Reading28 Sep 2026
- 2026Vestrum: Improving Agent Harnesses by Adapting Their Verification, Structure and Memory27 Sep 2026
- 2026DISCO: Distributed Long Context Scaling with Grounding-Reasoning Disaggregation27 Sep 2026
- 2026MetaBench-Harness: Unlocking End-to-End Optimization of Benchmark Harnesses27 Sep 2026
- 2026Realize What Matters: Principled Context Representation for Large-Scale Reasoning23 Sep 2026
- 2026Harness as a Language: A Minimalist Agent Framework With Maximal Expressivity22 Sep 2026
38 more
- 2026Scaling Discovery through Test-Time Communication17 Sep 2026
- 2026Register Tokens for Bounded-State Reasoning in Diffusion Language Models14 Sep 2026
- 2026Recursive Code World Models: Building Complex Worlds through Recursive Scene Programs10 Sep 2026
- 2026Dissecting Hierarchical Reasoning Models: A Mechanistic Study30 Aug 2026
- 2026Prefix Sliding for efficient test-time scaling26 Aug 2026
- 2026JIT-Agent: Scaling Harness Intelligence via Just-in-Time Harness Evolution26 Aug 2026
- 2026Context as an Environment: Programmatic Context Management for Long-Horizon Agents21 Aug 2026
- 2026SEER: Long-Context Reasoning via Selective Visual-Text Compression16 Aug 2026
- 2026Twin: Playing an Unknown Game with a Test-Time Digital Twin14 Aug 2026
- 2026RLMOpt: Adaptive Prompt Optimization via Recursive Language Models11 Aug 2026
- 2026Chained Recursive Language Models for Multi-Iteration Reasoning5 Aug 2026
- 2026Recursive Vision Language Models for General Symbolic Reasoning2 Aug 2026
- 2026Context Compaction Theory2 Aug 2026
- 2026Recursive Language Models Generalize Out of Domain23 Jul 2026
- 2026PRO-LONG: Programmatic Memory Enables Long-Horizon Reasoning22 Jul 2026
- 2026PM-Bench: Evaluating Prospective Memory in LLM Agents14 Jul 2026
- 2026Better Harnesses, Smaller Models: Building 90% Cheaper Agents via Automated Harness Adaptation9 Jul 2026
- 2026Workflow as Knowledge: Semantic Persistence for LLM-Mediated Workflows9 Jul 2026
- 2026When Does Continual Learning Require Learning8 Jul 2026
- 2026Narrative World Model: Narratology-Grounded Writer Memory for Long-Form Fiction6 Jul 2026
- 2026Forethought: Verifiable Reasoning from Neurosymbolic Primitive Programming5 Jul 2026
- 2026Message Passing Enables Efficient Reasoning1 Jul 2026
- 2026The Hitchhiker's Guide to Agentic AI: From Foundations to Systems22 Jun 2026
- 2026HPP: Hierarchical Programmatic Probing for Long Video Understanding by Decoupling Perception and Reasoning19 Jun 2026
- 2026MedRLM: Recursive Multimodal Health Intelligence for Long-Context Clinical Reasoning, Sensor-Guided Screening, Evidence-Grounded Decision Support, and Community-to-Tertiary Referral Optimization18 Jun 2026
- 2026RHO: Your Coding Agent is Secretly a Roboticist15 Jun 2026
- 2026Exploration Structure in LLM Agents for Multi-File Change Localization10 Jun 2026
- 2026Decentralized Multi-Agent Systems with Shared Context9 Jun 2026
- 2026Declarative Skills for AI Agents in Knowledge-Grounded Tool-Use Workflows5 Jun 2026
- 2026Signal-Driven Observation for Long-Horizon Web Agents4 Jun 2026
- 2026DAR: Deontic Reasoning with Agentic Harnesses3 Jun 2026
- 2026Covert Influence Between Language Models2 Jun 2026
- 2026Multi-Agent Computer Use1 Jun 2026
- 2026FineVerify: Scaling Test-Time Compute with Fine-Grained Self-Verification for Agentic Search30 May 2026
- 2026Masking Stale Observations Helps Search Agents -- Until It Doesn't: A Regime Map and Its Mechanism29 May 2026
- 2026Cognitive Fatigue in Autoregressive Transformers: Formalization and Measurement29 May 2026
- 2026Meta-Agent: From Task Descriptions to Verified Multi-Agent Systems24 May 2026
- 2026PEEK: Context Map as an Orientation Cache for Long-Context LLM Agents19 May 2026
50 newest of 94 All 94 (JSON)
- 2026LoopFormer: Elastic-Depth Looped Transformers for Latent Reasoning via Shortcut Modulationcited by 48
- 2026Agentic Aggregation for Parallel Scaling of Long-Horizon Agentic Taskscited by 18
- 2026SideQuest: Model-Driven KV Cache Management for Long-Horizon Agentic Reasoningcited by 10
- 2026Are Your Reasoning Models Reasoning or Guessing? A Mechanistic Analysis of Hierarchical Reasoning Modelscited by 9
- 2026Recursive Models for Long-Horizon Reasoningcited by 9
- 2026PRO-LONG: Programmatic Memory Enables Long-Horizon Reasoningcited by 9
- 2026Decentralized Multi-Agent Systems with Shared Contextcited by 7
- 2026LongCoT: Benchmarking Long-Horizon Chain-of-Thought Reasoningcited by 5
- 2026Reasoning Shift: How Context Silently Shortens LLM Reasoningcited by 3
- 2026Robust Reasoning Benchmarkcited by 3
- 2026SEER: Long-Context Reasoning via Selective Visual-Text Compressioncited by 3
- 2026Think, But Don't Overthink: Reproducing Recursive Language Modelscited by 2
12 most cited of 33 All 33 (JSON)
- 2026MemFit: Efficient Long-Term Agentic Memory1 Oct 2026
- 2026Towards Better Exploration in Sequential Test-Time Scaling30 Sep 2026
- 2026LongHarness Bench: Stress-Testing Language Model Harnesses for Long-Context Reasoning29 Sep 2026
- 2026DISCO: Distributed Long Context Scaling with Grounding-Reasoning Disaggregation27 Sep 2026
- 2026Register Tokens for Bounded-State Reasoning in Diffusion Language Models14 Sep 2026
- 2026Dissecting Hierarchical Reasoning Models: A Mechanistic Study30 Aug 2026
- 2026Prefix Sliding for efficient test-time scaling26 Aug 2026
- 2026SEER: Long-Context Reasoning via Selective Visual-Text Compression16 Aug 2026
- 2026Chained Recursive Language Models for Multi-Iteration Reasoning5 Aug 2026
- 2026Recursive Vision Language Models for General Symbolic Reasoning2 Aug 2026
- 2026PRO-LONG: Programmatic Memory Enables Long-Horizon Reasoning22 Jul 2026
- 2026Forethought: Verifiable Reasoning from Neurosymbolic Primitive Programming5 Jul 2026
12 newest of 33 All 33 (JSON)
- 2026Meta Context Engineering via Agentic Skill Evolutioncited by 42
- 2026Continual Harness: Online Adaptation for Self-Improving Foundation Agentscited by 30
- 2026RHO: Your Coding Agent is Secretly a Roboticistcited by 18
- 2026Coding Agents are Effective Long-Context Processorscited by 11
- 2026Recursive Multi-Agent Systemscited by 10
- 2026JIT-Agent: Scaling Harness Intelligence via Just-in-Time Harness Evolutioncited by 10
- 2026Workspace Optimization: How to Train Your Agentcited by 7
- 2026Better Harnesses, Smaller Models: Building 90% Cheaper Agents via Automated Harness Adaptationcited by 7
- 2026PM-Bench: Evaluating Prospective Memory in LLM Agentscited by 6
- 2026Terminal Agents Suffice for Enterprise Automationcited by 5
- 2026PEEK: Context Map as an Orientation Cache for Long-Context LLM Agentscited by 4
- 2026Scaling Discovery through Test-Time Communicationcited by 4
12 most cited of 29 All 29 (JSON)
- 2026LLMs are General Asynchronous Agents28 Sep 2026
- 2026Vestrum: Improving Agent Harnesses by Adapting Their Verification, Structure and Memory27 Sep 2026
- 2026Harness as a Language: A Minimalist Agent Framework With Maximal Expressivity22 Sep 2026
- 2026Scaling Discovery through Test-Time Communication17 Sep 2026
- 2026JIT-Agent: Scaling Harness Intelligence via Just-in-Time Harness Evolution26 Aug 2026
- 2026Context as an Environment: Programmatic Context Management for Long-Horizon Agents21 Aug 2026
- 2026PM-Bench: Evaluating Prospective Memory in LLM Agents14 Jul 2026
- 2026Better Harnesses, Smaller Models: Building 90% Cheaper Agents via Automated Harness Adaptation9 Jul 2026
- 2026RHO: Your Coding Agent is Secretly a Roboticist15 Jun 2026
- 2026Exploration Structure in LLM Agents for Multi-File Change Localization10 Jun 2026
- 2026Declarative Skills for AI Agents in Knowledge-Grounded Tool-Use Workflows5 Jun 2026
- 2026Signal-Driven Observation for Long-Horizon Web Agents4 Jun 2026
12 newest of 29 All 29 (JSON)
- 2026When Does Continual Learning Require Learningcited by 4
- 2026When Does Continual Learning Require Learning8 Jul 2026
- 2026τ-Knowledge: Evaluating Conversational Agents over Unstructured Knowledgecited by 35
- 2026HealthBench Professional: Evaluating Large Language Models on Real Clinician Chatscited by 22
- 2026Understanding the Challenges in Iterative Generative Optimization with LLMscited by 8
- 2026FutureSim: Replaying World Events to Evaluate Adaptive Agentscited by 7
- 2026Long Context, Less Focus: A Scaling Gap in LLMs Revealed through Privacy and Personalizationcited by 5
- 2026On Training Large Language Models for Long-Horizon Tasks: An Empirical Study of Horizon Lengthcited by 5
- 2026Masking Stale Observations Helps Search Agents -- Until It Doesn't: A Regime Map and Its Mechanismcited by 4
- 2026Covert Influence Between Language Modelscited by 4
- 2026LCM: Lossless Context Managementcited by 3
- 2026Adaptive Protein Tokenizationcited by 2
- 2026DySCO: Dynamic Attention-Scaling Decoding for Long-Context Language Modelscited by 2
- 2026Context Compaction Theorycited by 2
12 most cited of 28 All 28 (JSON)
- 2026Project Greenhouse: Progress Toward Fully Open and Sovereign Agentic Search8 Oct 2026
- 2026Context Language Models29 Sep 2026
- 2026The Model Knows When to Stop: Training-Free Early Stopping for Long-Context Reading28 Sep 2026
- 2026MetaBench-Harness: Unlocking End-to-End Optimization of Benchmark Harnesses27 Sep 2026
- 2026Realize What Matters: Principled Context Representation for Large-Scale Reasoning23 Sep 2026
- 2026RLMOpt: Adaptive Prompt Optimization via Recursive Language Models11 Aug 2026
- 2026Context Compaction Theory2 Aug 2026
- 2026Recursive Language Models Generalize Out of Domain23 Jul 2026
- 2026Workflow as Knowledge: Semantic Persistence for LLM-Mediated Workflows9 Jul 2026
- 2026Covert Influence Between Language Models2 Jun 2026
- 2026Masking Stale Observations Helps Search Agents -- Until It Doesn't: A Regime Map and Its Mechanism29 May 2026
- 2026Cognitive Fatigue in Autoregressive Transformers: Formalization and Measurement29 May 2026
12 newest of 28 All 28 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2023Batch Prompting: Efficient Inference with Large Language Model APIs
- 2025ReCAP: Recursive Context-Aware Reasoning and Planning for Large Language Model Agents
- 2025Dynamic Compressing Prompts for Efficient Inference of Large Language Models
- 2026Prompt Minimization: Reducing Input Redundancy Without Sacrificing Output Fidelity
- 2023Response Length Perception and Sequence Scheduling: An LLM-Empowered LLM Inference Pipeline
- 2023Re-Reading Improves Reasoning in Large Language Models
- 2025PromptCoT 2.0: Scaling Prompt Synthesis for Large Language Model Reasoning
- 2025Learning a Single Token to Replace Long System Prompts in LLMs