Paper
Recursive Language Models Meet Uncertainty: The Surprising Effectiveness of Self-Reflective Program Search for Long Context
- Authors: Keivan Alizadeh, Parshin Shojaee, Minsik Cho, Mehrdad Farajtabar (Apple)
- arXiv: 2603.15653 | Date: 2026-03-07
- Self-consistency: agreement among independently sampled answers.
- Verbalized confidence: the model self-reports a confidence score at each step; scores are aggregated as
VC(p) = Σ_t log(ν_t/100) ≤ 0. - Reasoning trace length: uncertain models produce longer, more hesitant traces; this complements verbalized confidence as an implicit, calibration-free signal. 4. Joint score:
- Ablations: The three signals combined dramatically outperform any single signal (e.g., ~97% vs ~78% for self-consistency alone on BrowseComp+).
- Main results (Qwen3-Coder-480B): LongBench-v2 64.9% vs 59.8% (+5.1); BrowseComp+ 59.7% vs 37.1% (+22.6); OOLONG 51.8% vs 45.7% (+6.1).
- Main results (GPT-5, no sub-calls): LongBench-v2 74.1% vs 59.5%; BrowseComp+ 94.6% vs 86.0%; OOLONG 65.5% vs 53.0%.
- Counterintuitive finding: On GPT-5, recursion (sub-calls) actually *hurts* performance. Explicit decomposition suits weaker models; strong models reason better without it.
- Length robustness: RLM underperforms the base LLM on short contexts (<131K tokens), while SRLM consistently outperforms the base model at all context lengths.
- Semantic tasks: SRLM significantly improves semantically dense tasks (single/multi-doc QA, in-context learning, dialogue history QA) where RLM's search-oriented recursion struggles.
- Pareto efficiency: SRLM (no sub-calls) is both faster (parallel execution, comparable wall-clock time) and more accurate than RLM.
- Only three simple statistical signals—no use of hidden states or attention patterns
- Fixed parallel budget (K=8), no adaptive adjustment
- No early termination or explicit token-efficiency optimization
- Promising directions: deeper introspection, adaptive search budgets, early stopping, selective recursion, and multi-model ensembles
Problem: Lost in Long Contexts
Even with million-token context windows, LLMs often fail to locate key information, break reasoning chains over long documents, and struggle to integrate evidence scattered across a document. Recursive Language Models (RLM, 2025) addressed this via divide-and-conquer: instead of stuffing the whole context into the model, the model writes programs to query the context on demand in a REPL environment. However, RLM's trajectory selection relied on heuristic search—leaving open the question of how to pick the best candidate program.
The SRLM Framework
SRLM answers this with uncertainty-aware self-reflection:
1. Sample K=8 candidate programs conditioned on the query and long context. 2. Execute all programs in parallel in a REPL environment. 3. Select the best trajectory using three uncertainty signals:
s(p) = VC(p) · Len(p); the candidate closest to 0 (high confidence + short trace) wins.Notably, SRLM is non-recursive: programs do not need to call sub-queries. The paper's central discovery is that recursion is not the main driver of RLM's performance—the real driver is programmatic context interaction.
Key Results
Core Insight
The paper contrasts two philosophies: RLM's *external control* (human-designed decomposition strategies) versus SRLM's *internal awareness* (the model sensing its own uncertainty). The conclusion: in long-context processing, "the model knowing what it's doing" matters more than "teaching the model what to do."
Limitations and Future Directions
Takeaways
1. Recursion is not a universal remedy for long text—its value depends on base model capability. 2. Parallel sampling + selection can beat sequential reasoning + correction. 3. Internal signals are lighter and more general than external verifiers. 4. The selection mechanism matters more than the processing mechanism in programmatic long-context pipelines.
Reference: Alizadeh, K., et al. (2026). Recursive Language Models Meet Uncertainty: The Surprising Effectiveness of Self-Reflective Program Search for Long Context. arXiv:2603.15653.