mlsanityData to 14 Oct 2026

When Does In-Context Search Help? A Sampling-Complexity Theory of Reflection-Driven Reasoning

arXiv 2607.06720 ↗First posted 7 Jul 2026cs.AI cs.CLcited by 1

On the map: LLM reasoning → Test-time compute and efficient thinking

Abstract (arXiv)

Training large language models (LLMs) with extended reasoning has enabled in-context search, in which models iteratively generate, critique, and revise solution attempts. We provide a theoretical analysis of in-context search by modeling it as approximate inference over reasoning traces, where the base model defines a prior and self-reflection provides feedback for posterior updates, and study the resulting inference-time sampling complexity - the number of sequential attempts needed to achieve high success probability. We show that when reflections reliably localize early mistakes, in-context search can yield exponential improvements over the base model, solving problems with exponentially small zero-shot pass rates using only a polynomial number of sequential attempts, whereas when this property fails, conditioning on past attempts offers no asymptotic benefit over parallel sampling. We further show that these gains are robust and learnable: approximate posterior updates suffice, and cross-entropy training on search rollouts recovers the required behavior with polynomial sample complexity. Finally, we show that under a stagewise abstraction of reinforcement learning with verifiable rewards, the optimal policy extension implements the same posterior reweighting rule. We validate key qualitative predictions of the theory on real large reasoning models.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Test-time compute and efficient thinking, one of 17 directions in LLM reasoning. Builds on 24 of its 32 references that are in the map. First posted on arXiv 7 Jul 2026.

Builds on

24 of 32 references.

Closest ancestors · 7

Same direction, newest first

  1. 2025Verifying Meta-Awareness via Predictive Rewards in Reasoning Models26 Sep
  2. 2025Reasoning Under Uncertainty: Exploring Probabilistic Reasoning Capabilities of LLMs12 Sep
  3. 2025Rethinking the Unsolvable: When In-Context Search Meets Test-Time Scaling28 May
  4. 2025Bayesian Teaching Enables Probabilistic Reasoning in Large Language Models21 Mar
  5. 2025Demystifying Long Chain-of-Thought Reasoning in LLMs5 Feb
  6. 2024Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameters6 Aug
  7. 2023Auto-Regressive Next-Token Predictors are Universal Learners13 Sep

Other references · 17

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  2. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
  3. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
  4. 2024OpenAI o1 System Cardcited by 1,244
  5. 2025Kimi k1.5: Scaling Reinforcement Learning with LLMscited by 1,210
  6. 2025Does Reinforcement Learning Really Incentivize Reasoning Capacity in LLMs Beyond the Base Model?cited by 982
  7. 2024Code Generation with AlphaCodium: From Prompt Engineering to Flow Engineeringcited by 103
  8. 2025Reasoning with Sampling: Your Base Model is Smarter Than You Thinkcited by 89
  9. 2024On Limitations of the Transformer Architecturecited by 63
  10. 2023The Expressive Power of Transformers with Chain of Thoughtcited by 50
  11. 2025Information Gain-based Policy Optimization: A Simple and Effective Approach for Multi-Turn Search Agentscited by 48
  12. 2022Sub-Task Decomposition Enables Learning in Sequence to Sequence Taskscited by 41
5 more
  1. 2025Demystifying Reinforcement Learning in Agentic Reasoningcited by 33
  2. 2024On Provable Length and Compositional Generalizationcited by 22
  3. 2025Attention as a Compass: Efficient Exploration for Process-Supervised RL in Reasoning Modelscited by 13
  4. 2025Beyond Markovian: Reflective Exploration via Bayes-Adaptive RL for LLM Reasoningcited by 9
  5. 2025From Reasoning to Super-Intelligence: A Search-Theoretic Perspectivecited by 9

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2026The Context Gathering Decision Process: A POMDP Framework for Agentic Search
  2. 2025RELIC: Evaluating Complex Reasoning via the Recognition of Languages In-Context
  3. 2026Batched Contextual Reinforcement: A Task-Scaling Law for Efficient Reasoning
  4. 2026A Decomposition Perspective to Long-context Reasoning for LLMs
  5. 2026Knowing When Thinking Is Not Enough: Teaching Small Reasoning Models to Reason Beyond Their Parametric Knowledge
  6. 2026When LLM Meets Tree Search: A Systematic View of Inference as Search in Large Language Models
  7. 2025From Efficiency to Adaptivity: A Deeper Look at Adaptive Reasoning in Large Language Models
  8. 2024Can large language models explore in-context?