Memory Reward Inflation in Self-Improving LLM Agents
Summary (Overview)
- Identifies a novel failure mode ("Echo Gap") in label-free, self-improving LLM memory agents: when LLMs self-grade their own stored episodes, incorrect memories receive inflated reward scores, and this inflation compounds through retrieval and reuse rather than averaging out.
- Formalizes the Error-Independence Assumption (EIA) as a necessary condition for correcting reward inflation: a verifier must both track truth (high Corr(V, U)) and decorrelate its errors from the original self-grade bias (low |Corr(ν, b)|). The recoverable payoff is proven to be a closed-form function of exactly these two quantities (Proposition 2).
- Proves two amplification theorems: Theorem 1 shows inflation amplifies multiplicatively through both a retrieval channel (softmax ranking, up to ) and a trust channel (persists even under similarity-only retrieval), while Theorem 2 demonstrates the write-back loop drives the bank to a corrupted attractor exceeding one-shot corruption.
- Demonstrates that stronger parametric re-graders fail to correct the bank: across model families (GPT-5.4 family, ensembles), capability alone does not provide the required error decorrelation, whereas a retrieval-based information verifier satisfies EIA and recovers most of the oracle de-inflation payoff (+0.59 vs +0.75).
- Introduces LUCID (Leniency-corrected Utility Calibration via Independent Debiasing), an answer-free de-inflation algorithm that raises BIRD text-to-SQL execution accuracy to 56.9%, outperforming both a Memento-style self-graded agent (54.0%) and a memory-less control (52.4%).
Introduction and Theoretical Foundation
Background and Motivation
Large Language Model (LLM) agents increasingly improve behavior from past experience without updating model parameters. This improvement comes from an external memory system where the agent:
- Stores past episodes (query, answer, utility score)
- Assigns each episode a utility score
- Retrieves episodes judged relevant for similar future tasks
- Writes new episodes back into the bank
While the LLM remains parametrically fixed, future behavior changes through which memories are selected and trusted. This creates a memory decision process where retrieval acts as an implicit, non-parametric policy.
The Core Problem: Proxy-Reward Failure
In real-world deployment, ground-truth labels are unavailable when memories are written. The practical substitute is LLM grading—the agent or a related judge assigns utility scores. This creates the Echo Gap: a memory-specific form of reward hacking where:
- Incorrect episodes receive inflated rewards
- The agent preferentially reuses the very mistakes it is most confident in
- Errors compound through memory reuse rather than averaging out
- The confirming judge's errors remain correlated with the original self-grading bias
Formal Framework
A memory bank contains episodes:
where is the task, is the response, and is the stored utility score. Each memory carries three signals:
- : LLM grade (self-grade at write time)
- : verifier score (alternative audit channel)
- : ground-truth utility (post-hoc measurement only)
The self-grade bias and verifier error are:
The Echo Gap Conditions
The Echo Gap has two defining components. First, self-grades inflate wrong memories:
Second, inflation is operationally amplified by reuse among wrong memories:
where is the reuse count of memory .
Methodology
Bank-Level Experiments (Factual QA)
The authors constructed factual memory banks where:
- Claude Haiku 4.5 served as the answering and self-grading agent
- Cross-vendor banks used GPT-5.4-mini and frontier GPT-5.4 for reproduction
- Ground truth was used only post-hoc to measure whether self-grades matched correctness
Verifier Evaluation
Six base verifiers were tested across three classes:
- Same-model baselines: self-consistency (resampling), adversarial same-model judge
- Cross-vendor parametric re-graders: GPT-5.4-nano, GPT-5.4-mini, frontier GPT-5.4
- Retrieval-based information verifier: conditions on external evidence
Ensembles (mean/majority/capability-weighted) and a gold-fit optimal aggregator were also tested.
End-to-End BIRD Experiment
A faithful Memento-style memory agent was evaluated on the full BIRD text-to-SQL development set (1,534 questions):
- Retrieval: top-k=4 by SimCSE cosine similarity (same encoder as Memento)
- Planner conditions on retrieved episodes, executor produces SQL
- Self-grader scores without access to reference answers
- Three arms: no-memory control, naive self-graded memory, LUCID
LUCID's Answer-Free De-Inflation Signal
The detector reads only deployment-available evidence across three channels:
- Execution: query errors, times out, or returns non-deterministic results
- Degeneracy: empty or all-NULL results for questions expecting answers
- Literal grounding: filters on entity-like literals not in the question (fingerprint of copied values from wrong memories)
Empirical Validation / Results
Self-Grading Inflates Wrong Memories Across Model Families
| Model | Role | Leniency | 95% CI |
|---|---|---|---|
| Claude Haiku 4.5 (Anthropic) | self-grader | 0.31 | [0.26, 0.35] |
| GPT-5.4-mini (OpenAI) | self-grader | 0.54 | [0.49, 0.58] |
| frontier GPT-5.4 (OpenAI) | self-grader | 0.41 | [0.36, 0.47] |
Table 2: Leniency = Pr[self = correct | U = 0]. Self-grade inflation persists across model families and capability levels.
EIA Experiment: Parametric Re-Graders Fail
| Verifier | Corr(ν,b) | Corr(V,U) | Failure Mode |
|---|---|---|---|
| self-consistency (resample) | -0.03 | +0.10 | weak truth tracking |
| adversarial same-model judge | +0.36 | +0.22 | error correlated with self-grade |
| cross-vendor: GPT-5.4-nano | +0.11 | -0.04 | not truth-tracking |
| cross-vendor: GPT-5.4-mini | +0.32 | +0.18 | error correlated with self-grade |
| cross-vendor: frontier GPT-5.4 | +0.31 | +0.29 | weak on both |
| verifier ensemble (mean) | +0.33 | +0.20 | shared bias survives averaging |
| ensemble, optimal aggregator | +0.30 | +0.42 | even best panel fails |
| retrieval-based verifier | +0.05 | +0.76 | strongly truth-tracking, decorrelated |
Table 3: Only the retrieval-based information verifier satisfies EIA on both axes.
De-Inflation Payoff on the Bank
| Audit verifier | before → after | gain | Pr[Δ > 0] |
|---|---|---|---|
| retrieval-based verifier | +0.22 → +0.81 | +0.59 | 1.00 |
| oracle gold | +0.22 → +0.97 | +0.75 | 1.00 |
| frontier GPT-5.4 re-grade | +0.22 → +0.32 | +0.10 | 0.94 |
| self-consistency | +0.22 → +0.28 | +0.06 | 0.84 |
| verifier ensemble (mean) | +0.22 → +0.27 | +0.05 | 0.81 |
| adversarial same-model judge | +0.22 → +0.25 | +0.03 | 0.67 |
| GPT-5.4-mini re-grade | +0.22 → +0.25 | +0.03 | 0.68 |
| GPT-5.4-nano re-grade | +0.22 → +0.06 | -0.16 | 0.03 |
Table 4: EIA predicts actual correction payoff. The retrieval-based verifier recovers most of the oracle ceiling.
LUCID vs. Generic Memory Filtering
| Memory-filtering rule | Demoted | ΔCorr(Q,U) | Correct demoted (of 15) |
|---|---|---|---|
| confidence/self-grade threshold | 0 | +0.00 | 0 (monotone no-op) |
| uncertainty prune (self-consistency) | 81 | +0.06 | 4 |
| random prune (matched budget) | 123 | -0.16 | ≈13 |
| LUCID (answer-free, decorrelated) | 123 | +0.59 | 0 |
Table 7: LUCID dominates generic memory filtering at every budget; the gain comes from which memories are demoted, not how many.
End-to-End BIRD Results
| Arm | Seed 0 | Seed 1 | Mean |
|---|---|---|---|
| no-memory control | 52.4% | 52.4% | 52.4% |
| naive self-graded memory | 53.8% | 54.2% | 54.0% |
| LUCID (answer-free de-inflation) | 55.7% | 58.1% | 56.9% |
Table 5: LUCID consistently outperforms both baselines. Paired 95% CIs for LUCID−naive exclude zero (+1.9 [+0.2, +3.6] in seed 0; +3.9 [+2.1, +5.6] in seed 1).
Dynamical Model Validation
Measured parameters on BIRD:
- Memory-to-behavior coupling: (positive within every difficulty stratum)
- Predicted corrupted attractor:
- Observed trusted-bank corruption: 0.42 (within 0.03)
- Static no-loop account underpredicts: 0.28
- Compounding ratio: 1.6× the one-shot value
Theoretical and Practical Implications
Theoretical Contributions
Theorem 1 (Echo-Gap amplification) proves inflation amplifies through two channels:
- Retrieval channel (score-ranked softmax retrieval, ):
with in the sparse-error limit .
- Trust channel (similarity-only retrieval, where ):
Theorem 2 (Corrupted attractor) shows the write-back loop has a fixed point solving:
which strictly exceeds the one-shot corruption when .
Proposition 2 (EIA necessity) proves that for de-inflation , the corrected inflation variance is:
If the verifier echoes the self-grade (), demotion can only re-inject inflation. The recoverable payoff:
is strictly increasing as the error decorrelates ().
Practical Implications
-
Label-free self-improvement is a reward-design problem: Without gold labels, the stored score is a proxy reward, and its integrity determines whether memory improves or degrades behavior.
-
Capability alone is insufficient: Stronger parametric re-graders improve average truth-tracking but preserve the bias that distorted the bank. Judge ensembles inherit shared blind spots (correlated errors, Corr(νᵢ, νⱼ) = +0.69).
-
De-correlated evidence channels are essential: Retrieval-based factual checking, execution-based tests, and invariant checks provide corrective signals because their failure modes differ from the agent's own self-grade.
-
Precision governs de-inflation: De-inflation is beneficial when detector precision satisfies:
Low recall is acceptable; what matters is that flagged episodes are wrong often enough.
Conclusion
The Echo Gap reveals a fundamental risk in label-free self-improving LLM agents: when stored scores are self-graded, wrong answers can receive inflated utility, and when that inflation couples to reuse, a feedback loop emerges where overvalued errors are repeatedly surfaced as useful precedents. The authors proved that correcting this requires the Error-Independence Assumption—a signal that both tracks truth and avoids echoing the self-grade bias—and demonstrated that answer-free de-inflation (LUCID) provides consistent gains on BIRD text-to-SQL.
The broader lesson is that label-free memory improvement requires evidence whose failure mode differs from the agent's own. Safer self-improving agents should:
- Separate memory writing from memory trust
- Audit stored episodes with decorrelated, answer-free evidence
- De-inflate memories that influence future behavior
Future directions include designing constructive decorrelation mechanisms (the paper shows is a sufficient condition), extending to other domains (code agents, math/proof, tool use), and understanding when agents cross the stability threshold beyond which corruption collapses the benign regime.
Related papers
- Rollout Cards: A Reproducibility Standard for Agent Research
Rollout cards—preserving full interaction records with explicit reporting rules—make agent evaluation scores reproducible, revealing that reporting choices alone can flip model rankings by up to 20.9 points.
- HarnessOpt-Bench: Evaluating LLMs at Harness Optimization
HARNESSOPT-BENCH shows optimizer model choice matters 1.8x more than coding harness choice for agent improvement, with broader search driving gains and trace reading providing no benefit.
- Priming: Hybrid State Space Models From Pre-trained Transformers
Priming initializes hybrid state-space models from pre-trained Transformers using less than 0.5% of the token budget, yielding faster, lighter models that outperform source Transformers on reasoning benchmarks.