Recursive Language Models Meet Uncertainty: The Surprising Effectiveness of Self-Reflective Program Search for Long Context
Not on the map. Why?
Abstract (arXiv)
Long-context handling remains a core challenge for language models: even with extended context windows, models often fail to reliably extract, reason over, and use the information across long contexts. Recent works like Recursive Language Models (RLM) have approached this challenge by agentic way of decomposing long contexts into recursive sub-calls through programmatic interaction at inference. While promising, the success of RLM critically depends on how these context-interaction programs are selected, which has remained largely unexplored. In this paper, we study this problem and introduce SRLM, a framework that augments programmatic context interaction with uncertainty-aware Self-Reflection. SRLM leverages three intrinsic signals: self consistency, reasoning length, and verbalized confidence. These serve as complementary indicators of a model's internal uncertainty, and the model uses them to evaluate and compare candidate context-interaction programs. Extensive experiments across diverse benchmark datasets, context lengths, and backbone models, show that SRLM consistently outperforms state-of-the-art baselines, yielding up to 22% improvement over RLM under the same time budget. Our findings show that recursion itself is not the primary driver of performance in RLM, and a simple self-reflective program search can match or surpass RLM without requiring self-query or explicit recursion mechanisms. We find that for context lengths within the model's window, RLMs with recursion often degrade performance relative to the base model, whereas SRLM yields consistent gains across both short and long contexts. We also find that RLM is less effective in tasks with semantically intensive nature, where heuristic program search is insufficient and broader contextual understanding is required, while self-reflection in SRLM provides a semantic signal that better steers reasoning in these scenarios.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 51 of its 69 references that are in the map. First posted on arXiv 7 Mar 2026.
Builds on
51 of 69 references.
References · 51
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
- 2024GPT-4o System Cardcited by 4,588
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,336
- 2023Can LLMs Express Their Uncertainty? An Empirical Evaluation of Confidence Elicitation in LLMscited by 974
- 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 880
- 2023Semantic Uncertainty: Linguistic Invariances for Uncertainty Estimation in Natural Language Generationcited by 819
- 2023SelfCheckGPT: Zero-Resource Black-Box Hallucination Detection for Generative Large Language Modelscited by 810
38 more
- 2025Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memorycited by 779
- 2022Teaching Models to Express Their Uncertainty in Wordscited by 751
- 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 740
- 2025BrowseComp: A Simple Yet Challenging Benchmark for Browsing Agentscited by 647
- 2024Executable Code Actions Elicit Better LLM Agentscited by 564
- 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inferencecited by 501
- 2024LongBench v2: Towards Deeper Understanding and Reasoning on Realistic Long-context Multitaskscited by 379
- 2024LongRoPE: Extending LLM Context Window Beyond 2 Million Tokenscited by 313
- 2025The Illusion of Thinking: Understanding the Strengths and Limitations of Reasoning Models via the Lens of Problem Complexitycited by 302
- 2024Semantic Entropy Probes: Robust and Cheap Hallucination Detection in LLMscited by 259
- 2025MemAgent: Reshaping Long-Context LLM with Multi-Conv RL-based Memory Agentcited by 246
- 2023LongLoRA: Efficient Fine-tuning of Long-Context Large Language Modelscited by 244
- 2025BrowseComp-Plus: A More Fair and Transparent Evaluation Benchmark of Deep-Research Agentcited by 200
- 2023Augmenting Language Models with Long-Term Memorycited by 189
- 2024Data Engineering for Scaling Language Models to 128K Contextcited by 186
- 2024An Empirical Study of Mamba-based Language Modelscited by 186
- 2025Reasoning Models Know When They're Right: Probing Hidden States for Self-Verificationcited by 159
- 2023Shifting Attention to Relevance: Towards the Predictive Uncertainty Quantification of Free-Form Large Language Modelscited by 150
- 2025Scaling Long-Horizon LLM Agent via Context-Foldingcited by 148
- 2025ReSum: Unlocking Long-Horizon Search Intelligence via Context Summarizationcited by 141
- 2024SeerAttention: Learning Intrinsic Sparse Attention in Your LLMscited by 124
- 2024Long-Context LLMs Meet RAG: Overcoming Challenges for Long Inputs in RAGcited by 123
- 2025FlexPrefill: A Context-Aware Sparse Attention Mechanism for Efficient Long-Sequence Inferencecited by 123
- 2025Optimizing Test-Time Compute via Meta Reinforcement Fine-Tuningcited by 123
- 2025G-Memory: Tracing Hierarchical Memory for Multi-Agent Systemscited by 122
- 2025Recursive Language Modelscited by 104
- 2025DeepSeek-R1 Thoughtology: Let's think about LLM Reasoningcited by 92
- 2025Cartridges: Lightweight and general-purpose long context representations via self-studycited by 86
- 2025Don't Overthink it. Preferring Shorter Thinking Chains for Improved LLM Reasoningcited by 85
- 2024On Verbalized Confidence Scores for LLMscited by 83
- 2024Calibrating Large Language Models with Sample Consistencycited by 73
- 2025Reasoning Models Better Express Their Confidencecited by 65
- 2025The relationship between reasoning and performance in large language models--o3 (mini) thinks harder, not longercited by 41
- 2025Oolong: Evaluating Long Context Reasoning and Aggregation Capabilitiescited by 40
- 2025Mitigating Object Hallucinations in Large Vision-Language Models via Attention Calibrationcited by 23
- 2024LongSkywork: A Training Recipe for Efficiently Extending Context Length in Large Language Modelscited by 19
- 2025Trace Length is a Simple Uncertainty Signal in Reasoning Modelscited by 19
- 2025Thinking Out Loud: Do Reasoning Models Know When They're Right?cited by 12
50 most cited of 51 All 51 (JSON)
Built on by
Citing papers per year: 2026: 2.
2 papers.
- 2026The Y-Combinator for LLMs: Solving Long-Context Rot with λ-Calculuscited by 3
- 2026Trained Agentic Context Managementcited by 0
- 2026Trained Agentic Context Management1 Oct 2026
- 2026The Y-Combinator for LLMs: Solving Long-Context Rot with λ-Calculus20 Mar 2026
Similar, not cited
Close in wording, no citation either way
- 2024Self-Consistency Falls Short! The Adverse Effects of Positional Bias on Long-Context Problems
- 2026Think, But Don't Overthink: Reproducing Recursive Language Models
- 2025Rethinking the Unsolvable: When In-Context Search Meets Test-Time Scaling
- 2026Reasoning Shift: How Context Silently Shortens LLM Reasoning
- 2025LongFuncEval: Measuring the effectiveness of long context models for function calling
- 2025Self-Correcting Large Language Models: Generation vs. Multiple Choice
- 2026A Decomposition Perspective to Long-context Reasoning for LLMs
- 2026Compliance vs. Sensibility: On the Reasoning Controllability in Large Language Models