Papers
Topics
Authors
Recent
Search
2000 character limit reached

Experience-Guided Reasoner (EGuR)

Updated 2 July 2026
  • Experience-Guided Reasoner (EGuR) is a framework that adapts inference strategies at runtime by leveraging a structured memory of past experiences.
  • The system generates complete computational procedures—including prompt templates, sampling parameters, tool configurations, and control logic—for each new query.
  • EGuR enhances performance in tasks like combinatorial search and retrosynthesis by learning from execution feedback to improve both accuracy and cost-efficiency.

An Experience-Guided Reasoner (EGuR) is a framework for agentic problem-solving systems that adapt and optimize their inference-time strategies based on accumulated experience, enabling dynamic tailoring of reasoning procedures for each new query. Unlike traditional architectures, which apply fixed, static strategies and update only textual memory or require offline retraining, EGuR can generate complete, ready-to-run computational procedures at inference time—modulating prompts, sampling hyperparameters, tool usage, and control flow—based on structured memory of prior episodes. This design closes the loop between strategy generation, execution, feedback, and continual memory refinement, with applications ranging from LLM reasoning to combinatorial search in retrosynthesis and other domains (Stein et al., 14 Nov 2025, Hong et al., 2021).

1. Motivation and Distinguishing Features

Most LLM-based and agentic AI systems historically deploy a manually designed or preselected “strategy” (the combination of prompts, tool usage, and system configuration) that is independent of prior inference outcomes. Such an approach repeatedly incurs avoidable costs on recurring inputs and fails to learn from unsuccessful attempts on difficult problems. EGuR addresses this by promoting the notion of a “reasoning strategy” to a first-class object that can be generated, adapted, and selected at inference time, conditioned on what the agent has learned from past interactions. Notably, EGuR adapts not only textual prompts, but all aspects of the end-to-end reasoning pipeline—sampling parameters, the choice and configuration of external tools, and the internal control logic dictating procedural flow. This capability distinguishes EGuR from methods that update only superficial state or require retraining to adapt their tactics (Stein et al., 14 Nov 2025).

2. System Architecture

EGuR comprises two tightly coupled components: the Guide and the Consolidator.

  • Guide (Meta-Strategy Generator): The Guide is an LLM-based process conditioned on the current problem qq, a structured memory Σ\Sigma of previous problem-strategy-outcome tuples, and an exploration budget kk. For each input qq, the Guide outputs kk candidate strategies {S1,,Sk}\{S_1, \ldots, S_k\}. Each SiS_i is a formal specification incorporating a set of prompt templates PP, sampling parameters θ\theta (such as temperature or top-kk), tool selection or configuration Σ\Sigma0, and control logic Σ\Sigma1, collectively Σ\Sigma2. Unlike typical agent prompts, the Guide outputs “code” or declarative strategy specifications which can be directly executed (Stein et al., 14 Nov 2025).
  • Consolidator (Memory Updater): After candidate strategies are executed—each producing an answer Σ\Sigma3, incurring computational cost Σ\Sigma4, and receiving correctness or reward feedback Σ\Sigma5—the Consolidator updates the memory Σ\Sigma6 by abstracting and retaining useful strategy fragments, metalevel notes, and execution statistics. The memory structures are bounded in size and selectively pruned to maintain relevance and computational tractability.

The high-level inference-time pseudocode is:

{S1,,Sk}\{S_1, \ldots, S_k\}1 (Stein et al., 14 Nov 2025)

This separation of concern mirrors and extends ideas from experience-guided planning methods in other domains, such as retrosynthetic search (Hong et al., 2021).

3. Formalism: Strategy and Memory Representation

Each strategy Σ\Sigma7 is parameterized as:

Σ\Sigma8

where:

  • Σ\Sigma9: an explicit prompt template or set thereof,
  • kk0: sampling parameters (e.g., temperature, top-kk1),
  • kk2: tool configuration (including which external tools or interpreters to employ),
  • kk3: control logic (branching and looping constructs for orchestrating LLM and tool calls).

Upon receiving an input kk4, executing kk5 in context kk6 yields an answer kk7 and a possibly updated state kk8: kk9

Each strategy is scored by a utility-weighted metric: qq0 where qq1 is the reward (e.g., binary correctness), qq2 is cumulative cost, qq3 the episode history, and qq4 a cost-accuracy tradeoff parameter (Stein et al., 14 Nov 2025).

The experience memory qq5 (or qq6) has two substructures:

  • Strategy Library (qq7): Tuples qq8 for successful runs, where qq9 denotes problem features.
  • General Notes (kk0): Abstracted heuristics, e.g., task/tool/parameter interactions.

Memory is updated via a function kk1 that conditions inclusion or removal on observed reward, cost, and relevance budget constraints.

4. Mechanisms of Adaptation and Learning

The core EGuR loop adapts strategies via direct integration of episodic feedback. For each new query, multiple candidate strategies are generated and executed; the first’s output is used, but all executions are logged. Performance and resource data (accuracy, cost) plus verifier feedback are aggregated. The Consolidator promotes full strategies or abstracted heuristics with empirically demonstrated utility to the strategy library or notes, and eliminates stale/outdated entries to control memory size.

In its current instantiation, the Guide is implemented via a prompt-based mechanism (“prompt engineering”) with few-shot or zero-shot LLM calls: kk2 No gradient-based fine-tuning of LLM parameters kk3 is performed, though this is a plausible extension. Guidance is provided by in-context retrieval from the strategy library, using embedding-based similarity on kk4 features to seed the meta-strategy with relevant precedent (Stein et al., 14 Nov 2025).

5. Empirical Evaluation and Results

EGuR was benchmarked on five challenging reasoning tasks, including AIME 2025 mathematics (trained on 2022–2024, evaluated on a held-out 2025 set), 3-SAT (combinatorial satisfiability, 5–40 variables), and three BigBench Extra Hard tasks (movie recommendation, word sorting, object counting). Baselines included CodeAct (stateless agent), Dynamic Cheatsheet, and Mem0.

Key evaluation metrics:

  • Prequential Accuracy: accuracy measured before memory update
  • Cumulative Cost per Sample: measured in USD, capturing the cost of LLM/tool queries

Table: EGuR (k=5) Performance Summary (Stein et al., 14 Nov 2025)

Task EGuR-5 Accuracy Best Baseline Accuracy EGuR-5 Cost Baseline Cost Relative Gains
3-SAT 96.0% 77.0% kk50.26 +19 pp, 1.7× che.
AIME 58.9% 61.1% kk60.48 –2.2 pp, 1.6× che
Obj. Counting 96.0% 87.0% kk70.174 +9 pp, 2.3× che.

On 3-SAT, EGuR achieved 19 pp higher accuracy and 1.7× cost reduction. Across all benchmarks, EGuR yielded up to 14 percentage points in accuracy gains and up to 111× cost reductions, with both metrics monotonically improving as experience accrues.

Ablations revealed that increasing the exploration factor kk8 (i.e., number of candidate strategies generated and evaluated per query) substantially accelerated the discovery of efficient strategies. With kk9 (no memory updates) performance deteriorated, highlighting the importance of continual adaptation.

6. Application to Retrosynthetic Planning

The EGuR approach is instantiated in Experience-Guided Monte Carlo Tree Search (EG-MCTS) for retrosynthetic analysis (Hong et al., 2021). Here, multi-step retrosynhetic search is framed as an AND-OR tree exploration problem. The Experience Guidance Network (EGN) learns from both successful and failed synthetic routes, providing node-specific Q-value estimates that bias Monte Carlo tree exploration towards promising decompositions, away from dead ends.

  • State: Set of molecules remaining to be solved; each molecule is an OR node.
  • Actions: Reaction templates (AND nodes).
  • Guidance: EGN outputs a Q-value given molecular and template fingerprints; this Q-value directly modulates tree policy via a UCT-style selection criterion.
  • Learning: EGN is trained via self-play, aggregating empirical Q-values across attempted decompositions.

This method produced higher solution rates and shorter synthetic routes than prior methods (e.g., Retro*+), and offers a recipe generalizable to combinatorial search problems (theorem proving, program synthesis) sharing the same search structure (Hong et al., 2021).

7. Limitations and Future Directions

Identified limitations include reliance on strong “oracle” verifiers to assess candidate answers (with uncertain generalization when only weak LLM-based critics are available), heuristic nature of the Consolidator’s memory management (rather than formal meta-learning objectives), and potential failures of the zero-shot Guide on out-of-distribution problem types. Additionally, the caching/retrieval mechanism depends on robust feature representations, and prompt-based Guides may be suboptimal compared to approaches involving model fine-tuning or reinforcement learning.

Potential extensions include:

  • Incorporating RL or supervised learning to optimize the Guide’s strategy distribution {S1,,Sk}\{S_1, \ldots, S_k\}0,
  • Designing formal compression and memory retention objectives for the Consolidator,
  • Relaxing assumptions on verifier strength,
  • Adapting similar meta-strategy mechanisms to other combinatorial and agentic reasoning domains.

EGuR constitutes an emergent framework for continual, self-improving agentic inference, enabling on-the-fly, resource-aware adaptation of reasoning pipelines without any offline retraining (Stein et al., 14 Nov 2025, Hong et al., 2021).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (2)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Experience-Guided Reasoner (EGuR).