Skip to content

A self-evolving agent framework narrows the "consistency gap" of LLM agentsClosing the Consistency Gap: Self-Evolving Agents That Learn to Stay on Course

Paper Tracker· arXiv:2609.08832· Evelyn Duesterwald, Benjamin Elder, Lilian Ngweta, Shashanka Ubaru, Malgorzata Zimon·Indexed by this site · 2026-10-03· Originally publishedAlignment

Quick read

Other

Based on the paper PDF (AI-generated); refer to the original

On AppWorld, consistency guidelines improve ReAct/GPT-4.1 same-task Passˆ5 by +16.0 pp and similar-task by +13.0 pp.

Questions
When the same task is executed repeatedly, the average pass rate of LLM agents is higher than the all-five pass rate. The authors call this difference the consistency gap, and narrowing it is a prerequisite for reliable deployment. On AppWorld, ReAct/GPT-4.1 has Mean@5 of 77.4% and Pass^5 of 53.0%.
Methods
Offline resampling of each trajectory's reasoning points scores steps for consistency using response variation, then writes easy-to-flip steps as strategy, recovery, or optimization guidelines stored in episodic memory. Later similar tasks retrieve the guidelines by cosine similarity and inject them into the prompt, without changing weights or the reasoning loop.
Experiments and results
On AppWorld, ReAct/GPT-4.1 Passˆ5 same-task improves from 53.0% to 69.0% and similar-task to 66.0%. GPT-OSS-120B similar-task Passˆ5 improves by +8.7 pp. On 50 trajectories, consistency predicts success versus failure with AUROC 0.699.
Limitations and future work
The authors say platform-side nondeterminism cannot be measured, the framework does not eliminate inconsistency, and the analyzer only scores stability. N=30 roughly multiplies per-trajectory token cost by 30; guideline admission validation and cross-stack evaluation are left for future work. The main experiments use ReAct with two models and AppWorld's 168 questions.
Experimental setupGPT-4.1、GPT-OSS-120B · AppWorld test normal、AppWorld test challenge · Passˆ5、Mean@5 et al.
Evaluated models
GPT-4.1GPT-OSS-120B
Benchmarks
AppWorld test normalAppWorld test challenge
Metrics
Passˆ5Mean@5Gap@kConsistency@kAUROC
AI summaryThe researchers propose a self-evolving agent framework that narrows the "consistency gap" of LLM agents by identifying unstable, low-consistency steps in agent trajectories and converting them into episodic memory. On the AppWorld benchmark, an agent using ReAct/GPT-4.1 has an average single-run pass rate of 77%, but the proportion of all five runs succeeding on the same task is only 53%, a gap of 24 percentage points. The framework improves the all-five pass rate by 16 percentage points on same-task evaluation and by 13 percentage points on similar-task generalization.

The researchers propose a self-evolving agent framework that narrows the "consistency gap" of LLM agents by identifying unstable, low-consistency steps in agent trajectories and converting them into episodic memory. On the AppWorld benchmark, an agent using ReAct/GPT-4.1 has an average single-run pass rate of 77%, but the proportion of all five runs succeeding on the same task is only 53%, a gap of 24 percentage points. The framework improves the all-five pass rate by 16 percentage points on same-task evaluation and by 13 percentage points on similar-task generalization.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    When the same task is repeated five times, there is a consistency gap between the average pass rate and the all-pass rate.

    LLM agents can solve tasks on average yet be unstable across repeated runs; the authors call the difference between Mean@k and the all-pass rate the consistency gap.

    • Where it arises: in production, the same task is repeatedly given to the same agent. The authors say ReAct/GPT-4.1 on AppWorld test normal has Mean@5 77% (abstract; Table 1 gives 77.4%) and Passˆ5 only 53% (Table 1 gives 53.0%), a difference of 24 points (abstract) or 24.4 pp (Section 2.2, Figure 2). The authors see narrowing this gap as a prerequisite for trustworthy deployment.
    • Limitations of existing metrics: common Pass@k looks at at least one successcase, and Mean@k at the average pass rate; neither alone measures success every time. The authors argue that greedy decoding or a fixed seed only changes how the distribution is sampled and does not remove the fluctuation in the probability itself at hosted endpoints.
    • Core observation: inconsistency corresponds to near-tied token distributions at reasoning points; without logits, response variation can be estimated by resampling. The authors say about 32% of tasks mix success and failure across five runs, and it is there that average accuracy least represents user experience.
    • What this paper does: an offline two-stage framework. A black-box Consistency Analyzer marks easy-to-flip steps, and a Guideline Generator writes them as strategy, recovery, or optimization guidelines, stored in episodic memory for retrieval and prompt injection in later similar tasks.
  2. What related research exists?

    Related work is grouped into self-consistency, agent memory, and reliability; what this paper changes is which guidelines are extracted.

    The authors position this paper among self-consistency, memory-based self-improvement, and reliability evaluation; what is new is using consistency to decide which guidelines to extract.

    Self-consistency and uncertainty

    • Self-consistency (Wang et al. 2023): sample multiple chains of thought and take the majority answer. Inference-time scaling (Snell et al. 2024) and o1-type models generalize the same intuition; agent variants select among rolled-out solutions using tests or LLM review. The authors say the difference from this line of work is on two axes: resampling is offline rather than at runtime, the objective is consistency rather than accuracy, and variation is a diagnostic for hardening prompts, not voting.
    • Uncertainty estimation: The paper's paraphrase of predictive entropy (Malinin and Gales 2021) is that it overestimates uncertainty when wording differs but meaning is the same. Semantic entropy (Kuhn, Gal, and Farquhar 2023; Farquhar et al. 2024) handles semantics with clustering. The authors say their decomposition-based scoring of semi-structured responses targets the fact that agent responses are partially structured.

    Agent memory

    • Facts and procedures: surveys are Zhang et al. (2025b), Du et al. (2025). Mem0 (Chhikara et al. 2025), A-Mem (Xu et al. 2025), MemGPT (Packer et al. 2023) store and retrieve conversational facts. Agent Workflow Memory (Wang et al. 2024), AgentRR (Feng et al. 2025), MemP (Fang et al. 2025), ReasoningBank (Ouyang et al. 2025), ACE (Zhang et al. 2025a), Memento (Zhou et al. 2025) extract reusable procedures from trajectories. The paper cites Xiong et al. (2025), saying naive accumulation can propagate errors.
    • Inherited framework: Fang et al. (2026) extract strategy, recovery, and optimization guidelines from trajectories, with dual-index memory and retrieval. The authors say storage, clustering, merging, and retrieval follow that framework; the addition is an upstream extraction signal targeting consistency.

    Reliability, reproducibility, and observability

    • Multi-turn variance: AppWorld (Trivedi et al. 2024) reports multi-turn statistics. The paper's paraphrase of Ye et al. (2026) is that run-to-run variance of self-improving, memory-based agents is sensitive to task order and evaluation protocol. The authors say guideline injection targets exactly this source of fragility.
    • Metrics: pass@k from Chen et al. (2021) comes from code generation; the authors say writing Passˆk against Mean@k generalizes that metric to difficulty-level granularity. Rabanser et al. (2026) has twelve metrics covering consistency, robustness, predictability, and safety; the authors say the gap addressed here is a probe of their consistency axis.
    • Nearby systems: CUGA (Marreed et al. 2025) uses policy memory, and the authors say it can directly consume this paper's guidelines. Jha et al. (2026) independently propose a reliability gap, comparing Pass@k with Majority@k and using a graph-guided architecture; the authors say this paper handles the same class of variation at the prompt level. Observability work (Moshkovich et al. 2025; Fournier, Limonad, and David 2025; Liu et al. 2026; Hutter and Pradel 2026) focuses on logging, process discovery, or debugging; the authors say the analyzer is used to mark easy-to-flip points in order to generate guidelines, not for runtime intervention.

    Baselines and benchmarks

    • Baselines: ReAct without consistency guidelines, with GPT-4.1 and GPT-OSS-120B as backbones. The experiments do not use the other memory systems from Section 5 as comparisons.
    • Benchmarks: AppWorld test normal (168 questions) is used for the main results; the test challenge set of 50 questions is used for the trajectory-consistency AUROC.

    The authors position their work as: on top of the memory mechanism of Fang et al. (2026), a black-box consistency diagnostic decides what to extract, with the goal of narrowing the gap between Mean@k and Passˆk, not of raising the Pass@k of at least one success.

  3. How does the paper address this problem?

    Offline resampling marks easy-to-flip steps, then generates guidelines written to memory for retrieval on later similar tasks.

    Overall, it is an offline two-stage approach (Figure 1): the Consistency Analyzer diagnoses where in the trajectory flips are likely, and the Guideline Generator writes guidelines that enter the episodic memory of Fang et al. (2026), injected into the prompt at runtime by similarity. The reasoning loop is not changed, nor is the agent architecture.

    Problem Setting and Formalization

    For each task in the task set T, run it independently k times, with Xt as the k-dimensional 0/1 outcome. Pass@k means at least one success, Mean@k is the average pass rate, and Pass^k means all k runs succeed.

    The authors define the consistency gap as Gap@k(T) ≜ Mean@k(T) − Passk(T), in percentage points, indicating how much of the average accuracy may disappear under repeated deployment. Normalized consistency is Consistency@k(T) ≜ Passk(T) / Mean@k(T), scaling Pass^k by that model's own average accuracy. The authors also write the relationship between the two: the gap equals Mean@k times (1 minus Consistency@k). Under k independent Bernoulli trials, the expectation satisfies Pass^k ≤ Mean@k ≤ Pass@k, with equality only when the success probability is 0 or 1. Experiments use k=5.

    Consistency Analyzer

    • Black-box input: one recorded trajectory, step by step from s1 to sn. Only the recorded prompts are re-sent to the same LLM endpoint, without access to logits, internal activations, or agent source code.
    • Why greedy is not enough: the authors argue that sharp distributions are insensitive to small perturbations in GPU floating point, batching, or tokenizer state; under flat distributions, near-tied tokens can have their argmax rewritten by the same noise. On hosted endpoints, probabilities themselves shift slightly between runs, so temperature-zero can still select different tokens. The log-probability of a single path only reflects the confidence of the chosen path, not how close the runner-up is.
    • Resampling: each step re-sends the recorded prompt N times. In the method, temperature is usually no more than 0.5; experiments use N=30, temperature 0.5. C(si) measures the concentration of the response set relative to the mode, ranging from 0 to 1.
    • Three types of metrics: for free text or code, the average pairwise cosine similarity of SBERT embeddings is used, with paraphrases and functionally equivalent code counted as consistent. For categorical values, the average pairwise Jaccard of token sets is used, and token inconsistencies are penalized. Semi-structured responses are decomposed by field and then weighted by configurable weights, which can be 0 to ignore irrelevant fields.

    Trajectory Scores and Guidelines

    • Aggregation: the trajectory score is the arithmetic mean of the step scores. The authors note that it treats steps as independent, so an upstream low-consistency decision propagated by a downstream high-consistency step is not additionally penalized.
    • Triggering: a step is marked inconsistent if its score is below θC and it lies on the decision path. The authors use θC=0.85. Both steps that succeed but have high response variation and steps with observable failures can generate guidelines.
    • Three types of guidelines: following strategy, recovery, and optimization. Strategy consolidates patterns that were guessed correctly but have high variation; recovery bypasses steps related to variation and failure; optimization instructs skipping or simplifying high-variation steps that are not necessary for completing the task. The generator is an LLM, asked to write guidelines for the marked steps. Appendix A gives an example generated by GPT-4.1 from an AppWorld trajectory and scorecard.
    • Memory: guidelines enter a dual-index memory with category, priority, application context, task category, and source. At runtime, retrieval can use cosine similarity of the task description, or an LLM-constructed query with metadata filtering. Deduplication, semantic clustering, and overlap merging follow Fang et al. (2026). Experiments use cosine similarity retrieval.

    Two Loops

    • Operational loop: the agent executes the task, optionally with retrieved guidelines; the observable layer records the full trajectory.
    • Offline loop: each new trajectory triggers detection and generation, and new guidelines enter memory. The authors state that as experience accumulates, the analyzer gives finer-grained sources of inconsistency, and subsequent runs become more consistent.
    • Latency: the authors state that the main cost is the latency before useful guidelines accumulate, and describe a feedback: each guideline narrows the inconsistent task population, and future guidelines are drawn from that population.
    • Experimental generation setting: each task uses one baseline trajectory; the same model that produced the trajectory generates guidelines on its own scorecard. Task success or failure is determined by the AppWorld grader, not by whether the LLM judges it as passed.
  4. What experiments did the paper conduct?

    On AppWorld, guidelines improve Pass^5: GPT-4.1 same-task +16.0 pp, similar-task +13.0 pp.

    Experimental setup

    • Agent and models: ReAct. Backbones are GPT-4.1 (Microsoft Azure) and GPT-OSS-120B (Amazon Web Services), both cloud-hosted endpoints.
    • Benchmark: AppWorld test normal, 168 questions: easy 57, medium 48, hard 63 (Figure 2). Each scenario has three similar variants. The test challenge set of 50 questions is also used for the prediction experiment.
    • Protocol and metrics: k=5 per question. Main metrics are Passˆ5, Mean@5, and their ratio, Consistency. Section 4.1 states that Pass@5 is reported where relevant; Table 1 and Table 2 do not list Pass@5.
    • Comparison and transfer: The comparison is the same ReAct, same model, without guideline injection. Same-task guidelines come from one baseline trajectory of that task. For similar tasks, each task is evaluated once for guidelines from each of the other two variants of its scenario, for 336 evaluations in total; the paper illustrates the setting with guidelines generated from v1 and injected into v2 and v3.
    • Analyzer: The experiment parses each step into a category pair (API name, API params), using mean pairwise Jaccard with N=30, temperature 0.5. Guidelines are generated by the same model that produced the trajectory and retrieved at runtime by cosine similarity. θC=0.85 is written in Section 3.2; the experimental section does not separately report whether it was changed.
    • Determination: Success or failure is determined by the AppWorld harness's standard grader. The paper does not report decoding temperature, random seed, or the full set of repetitions beyond k=5 for the main runs.

    Main results

    According to Table 1 and Table 2, the aggregate rows for AppWorld test normal, ReAct, k=5:

    Swipe horizontally to read the table

    ModelConditionPassˆ5Mean@5Consistency
    GPT-4.1baseline53.0%77.4%0.68
    GPT-4.1same-task guidelines69.0%81.0%0.85
    GPT-4.1similar-task guidelines66.0%79.5%0.83
    GPT-OSS-120Bbaseline10.1%33.9%0.30
    GPT-OSS-120Bsame-task guidelines16.1%38.7%0.42
    GPT-OSS-120Bsimilar-task guidelines18.8%40.5%0.46
    • GPT-4.1: The authors say same-task Passˆ5 improves relatively by 30%, and Hard by 45% relatively. Mean@5 is higher than baseline across difficulties for same-task. The authors say the aggregate Passˆ5 improvement for similar tasks is only 3 pp lower than same-task.
    • GPT-OSS-120B: The authors say same-task Passˆ5 improves relatively by 59%, and say more headroom is extracted when the baseline is lower. Passˆ5 rises on all four difficulties for similar tasks; the authors say there is no regression.
    • Compared with the abstract: The abstract's +16 points and +13 points correspond to the same-task and similar-task differences in the aggregate rows of Table 1. The abstract does not state the GPT-OSS-120B improvements.

    Per-difficulty results

    • GPT-4.1 same-task (Table 1): Easy Passˆ5 goes from 77.2% to 89.4% (+12.2 pp), Medium from 52.1% to 75.0% (+22.9 pp), Hard from 31.7% to 46.0% (+14.3 pp). Mean@5 changes are +3.5, +6.2, +1.6 pp respectively. The authors say the largest absolute improvement is in Medium and the largest relative improvement is in Hard.
    • GPT-4.1 similar-task: Passˆ5 changes for Easy, Medium, Hard are +13.1, +14.5, +11.9 pp. Hard Mean@5 goes from 61.9% to 61.1% (−0.8 pp). The authors say this may be because some sibling guidelines target API patterns that differ slightly between variants.
    • GPT-OSS-120B (Table 2): same-task Passˆ5 changes for Easy, Medium, Hard are +8.7, +8.3, +1.6 pp; Hard goes from 0.0% to 1.6%, with normalized consistency from 0.00 to 0.13. Similar-task Hard goes from 0.00 to 0.29, which the authors say is the largest single-cell normalized-consistency gain across both tables.

    Normalized gap (Figure 3)

    The y-axis label in Figure 3 reads consistency (Passˆ5/Mean@5), and the caption describes the consistency gap with and without guidelines. Visible annotations include 0.18, 0.32, 0.49 (on the GPT-4.1 side) and 0.58, 0.70, 0.92, 1.00 (on the GPT-OSS-120B side); plain text cannot map each number to a bar.

    • Authors' reading of the figure: For GPT-4.1 the aggregate gap to perfect consistency shrinks from 0.32 to 0.15 with same-task guidelines, which the authors say is a 53% reduction, and every difficulty narrows. GPT-OSS-120B's baseline gap is larger, 0.70 aggregate and 1.00 on Hard, going to 0.58 after guidelines; the authors say lower raw capability limits how much guidelines alone can recover.
    • Similar tasks: The authors say the reduction is close to same-task, with GPT-4.1's aggregate gap 0.17 versus 0.15; on GPT-OSS-120B Hard, similar-task closure from 0 is 0.29 and same-task is 0.13.
    • Text–table inconsistency: Section 2.2 writes GPT-4.1 aggregate consistency as 0.69, while Table 1's aggregate row is 0.68; the table takes precedence.

    Trajectory consistency predicting success

    • What was measured: Mean trajectory consistency used as a pass/fail binary classifier. Data are AppWorld test challenge 50 questions, one ReAct/GPT-4.1 trajectory per question.
    • Result: AUROC is 0.699 (Section 4.4). The abstract writes 0.69ional and the conclusion writes AUROC about 0.69.
    • Authors' interpretation: The authors say 0.699 is an acceptable predictor, letting the generator rely not only on the LLM judging its own trajectory success; this stability signal can be used when there is no ground-truth scoring. They also stress that it measures stability, not correctness.

    Other ablations and analyses

    • The contribution list mentions a sample-budget sensitivity study; the main text, figures, and appendix tables do not provide checkable budget–metric numbers. The default N in experiments is 30.
    • Section 2.2 and Figure 2: GPT-4.1 absolute gaps by easy, medium, hard are 17.5, 25.0, 30.2 pp; GPT-OSS-120B aggregate 23.8 pp, easy 38.6 pp, hard 9.5 pp, with hard Mean@5 9.5%.
    • Section 2.2: The authors say GPT-OSS-120B aggregate consistency is 0.30 and hard 0.00, and say it differs from GPT-4.1 by 2-fold (0.69 vs. 0.30 in the text). Table 2's hard Consistency is 0.00.
    • Regressions: GPT-4.1 similar-task Hard Mean@5 is −0.8 pp (Table 1). GPT-OSS-120B same-task Hard Passˆ5 is only +1.6 pp (Table 2); the authors say gains concentrate where the model already has higher pass rates.
    • Section 2.2: The authors say informal tests on other architectures and models such as CUGA show similar patterns, but no gap is quantified.
    • The paper does not report the number of guidelines, the number retrieved, or the memory size.
  5. What are some points that can be further explored?

    The authors state that the gap remains, the analyzer does not verify correctness, and N=30 multiplies token cost by about 30.

    Limitations and Future Directions Noted by the Authors

    • Platform nondeterminism (Section 6): the Pass^5 comparison assumes comparable platform-side nondeterminism between baseline and guideline-injected runs, which the authors state cannot be directly measured or controlled.
    • Inconsistency is not eliminated (Section 6): the authors explicitly do not claim the framework eliminates inconsistency; a considerable gap remains, especially on Hard tasks.
    • Not a verifier (Section 6): the analyzer scores stability, not correctness; a confident but wrong decision is also consistent in its view.
    • Resampling cost (Section 6): the default N=30 multiplies the token cost per trajectory by about 30. The authors list cost reduction without reducing guideline quality, such as adaptive resampling that concentrates samples on candidate flat steps, as a future direction.
    • Guideline validation (Section 6): the current pipeline writes generated guidelines directly into memory. The authors leave pre-admission validation as future work: resample again, and admit a guideline only if the step's consistency improves and does not regress on a held-out set of related trajectories, to handle guidelines that are vague, conflict with existing instructions, or overfit to incidental details of a trajectory.
    • Cross-stack evaluation (Section 6): the current evaluation covers ReAct with GPT-4.1 and GPT-OSS-120B. The authors state that the framework is by design agnostic to agent architecture, and the next step is cross-stack research across model families and agents with existing policy memory, such as CUGA.

    Experimental Coverage

    • The main experiments use ReAct with backbones GPT-4.1 (Azure) and GPT-OSS-120B (AWS); AppWorld test normal has 168 questions (easy 57, medium 48, hard 63), each run 5 times (Section 4.1, Figure 2).
    • The control is the same ReAct without guidelines. For the same task, guidelines are generated from one baseline trajectory of that task; similar tasks transfer across scenario variants, for a total of 336 evaluations (Section 4.3).
    • Step-level scores in experiments are the Jaccard of (API name, API params), with N=30, temperature 0.5; guidelines are generated by the same model that produced the trajectory, and retrieval at runtime uses cosine similarity (Section 4.1). θC=0.85 is written in Section 3.2.
    • The AUROC of trajectory-level consistency against success or failure comes from 50 test challenge questions, one ReAct/GPT-4.1 trajectory each (Section 4.4). Task success or failure is determined by the AppWorld grader.
    • The paper does not report the decoding temperature or random seed of the main runs; the sample-budget sensitivity study in the introduction has no verifiable numbers in the main text or appendix. Section 2.2 states that informal tests were done on CUGA and others, but the gap is not quantified.
  6. Summarize the main content of the paper

    Using offline consistency diagnostics to generate memory guidelines improves the all-pass rate on repeated runs on AppWorld.

    What the authors aim to narrow is the consistency gap of LLM agents passing on average but being unstable across repetitions, namely Mean@k minus Passˆk.

    AppWorld test normal has 168 questions total. ReAct/GPT-4.1 Mean@5 is 77.4%, Passˆ5 53.0%, gap 24.4 pp; GPT-OSS-120B is 33.9%, 10.1%, 23.8 pp (Table 1, Table 2, Figure 2). The authors attribute this to near-tied response distributions at reasoning points, where endpoint noise rewrites choices even under greedy decoding.

    The method does not update weights: black-box resampling scores steps, the experiment uses Jaccard (N=30, temperature 0.5), decision steps below θC=0.85 generate strategy, recovery, or optimization guidelines written to memory commonsense and injected into later similar tasks by cosine similarity.

    GPT-4.1 Passˆ5 same-task +16.0 pp, similar-task +13.0 pp, same-task Mean@5 +3.6 pp (Table 1). GPT-OSS-120B same-task +6.0 pp, similar-task +8.7 pp (Table 2). GPT-4.1 similar-task Hard Mean@5 is −0.8 pp. On 50 test challenge trajectories, mean consistency predicts success versus failure with AUROC 0.699.

    The authors conclude that consistency should be independent of average accuracy; prompt-level guidelines can raise Passˆ5 and transfer to variants of the same scenario. They also say the analyzer is not a verifier, that gaps remain on Hard, and that N=30 roughly multiplies per-trajectory token cost by 30.

Read originalarxiv.org