# From Reflection to Co-Evolution: Self-Evolving Agents with Locally Verified Memory

Anchor tests each agent memory at its source decision before keeping it

Xinxiang Yin, Xinglang Zhang, Haodong Chen, Zhiqing Cui, Weidong Tang, Yuxuan Wang and 4 more · arXiv · 2026-11-7

- **Problem** Agent memory banks keep every lesson, but many lessons repeat what the policy already knows, and some reinforce bad actions. Aggregate task success cannot show which individual memory helped, so the bank grows costly and noisy.
- **Method** Anchor replays each source decision with and without its memory.
- **Results** With Qwen3.5-27B, Anchor reaches 96.27% ALFWorld success, compared with 92.54% for SimpleMem. It also keeps 41% fewer ALFWorld cards than unfiltered retention.

![Figure 5: RQ3 and RQ4 Success, bank size, and token consumption with Qwen3.5-27B.(Left) Sample success rate (cumulative; solid) over 200 randomly sampled ALFWo…](https://refivu.com/papers/cbbe388f-f036-4542-8fc6-f6b3901438a8/figures/figure-85a1915e04047535f392de5fd14aff9a.png?thumb=512)

**Figure 5** : RQ3 and RQ4 Success, bank size, and token consumption with Qwen3.5-27B.(Left) Sample success rate (cumulative; solid) over 200 randomly sampled ALFWorld memory-construction tasks and bank size (dashed) for Anchor and Anchor w/o Amplituder & Aspecter. (Right) WebShop mean score versus total input and output tokens across construction and evaluation (10x scale). Circle area is proportional to mean interaction steps; lower, smaller circles indicate lower cost.

[Original paper](https://arxiv.org/abs/2611.10382v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Xinxiang Yin, Xinglang Zhang, Haodong Chen, Zhiqing Cui, Weidong Tang, Yuxuan Wang, Junrui Wang, Jingyi Zhang, Jianfeng Zhang, Jian Qian · From Reflection to Co-Evolution: Self-Evolving Agents with Locally Verified Memory · Original paper figure · Extracted the figure area from page 9 of the original PDF.

## Why saved lessons need a test

Agent memory systems turn finished trajectories into reusable lessons, and that step doesn't change any model weights. Reflexion, ExpeL, and ReasoningBank each extract lessons from trajectories this way, so the memory bank grows with experience. A lesson can read well and still add nothing, because it may repeat what the policy already knows.

The same lesson can also do harm, since it may reinforce an inappropriate action. Aggregate task success leaves the contribution of an individual memory unresolved, so a good final score doesn't justify keeping every lesson.

Storage is the second problem, because continual writing raises storage, context, and maintenance costs. Ineffective lessons therefore make later reuse more expensive, not just less useful. Their question is whether a memory's source decision can serve as that test. The agent localizes consequential decisions in completed trajectories and extracts one memory from each.

A large shift alone doesn't show whether the effect agrees with the source role, since both successful and failed source actions can be reinforced or suppressed.

## Replaying the decision that produced a lesson

Anchor tests a memory at the decision it came from, by replaying that decision with and without the memory under the same context. Figure 1 shows the intuition on a kitchen task, where a memory can change which of three actions the agent picks. Localizer extracts candidates, Amplituder measures the shift, Aspecter checks the source role, and BankMaster stores and reuses what passes.

![Figure 1: Memory can change the next action.In this schematic kitchen example, putting a dirty reusable plate in the sink is preferable to the cupboard or tras…](https://refivu.com/papers/cbbe388f-f036-4542-8fc6-f6b3901438a8/figures/figure-1744313d78f4f812a2fe66b3101158e4.png?thumb=512)

**Figure 1** :Memory can change the next action.In this schematic kitchen example, putting a dirty reusable plate in the sink is preferable to the cupboard or trash bin.Anchorscreens for a role-aligned change.

[Original paper](https://arxiv.org/abs/2611.10382v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

Localizer selects consequential source steps with K = 5 and attaches a credit to each candidate. Each candidate's sign gives its source role, and zero-credit candidates are excluded from the test. Replay keeps the saved history fixed, so the candidate hint is the only part of the injected prompt that differs. The candidate actions are stored at the source decision and never regenerated, so both conditions choose from the same list.

Each condition yields prefix-level log probabilities that are normalized over distinct scored prefixes. Actions that share their first L tokens form one category, so a verb doesn't gain weight from having more object completions. ALFWorld uses L = 1, while WebShop uses L = 5 for its scored span. The shift between the two distributions is measured with base-2 Jensen–Shannon divergence, written as M\_t = D\_JS(P\_t, P^{m\_t}\_t).

Across 2,785 ALFWorld candidates, most shifts sit near zero, and only a smaller tail moves the probe strongly.

## Why shift size alone is not enough

A large shift shows that a memory moved the policy, but it doesn't say whether the move went in the right direction. Across 2,785 ALFWorld candidate memories, the action-verb probe JS divergence concentrates near zero, with a small tail of larger shifts. Most candidates barely change the action-type preference, so Amplituder screens candidates by replay shift before storage.

Direction is a separate question, because the paper finds that both successful and failed source actions can be reinforced or suppressed after injection. Figure 3 shows all four sign combinations under the same ALFWorld setup.

The authors track the recorded source action a(1)t and its probability change Δp(1)t, which is positive when the memory raises that action. Pairing this change with the hindsight credit ct, the pairs separate success reinforcement, success suppression, failure suppression and failure reinforcement. The role sign yt = sign(ct) times Δp(1)t gives a signed source-role margin ηt, and a positive margin marks a role-aligned effect.

A success memory that raises its recorded action is aligned, and so is a failure memory that lowers it. A large but misaligned shift therefore fails the check, which is why Aspecter tests direction separately from magnitude.

## What the bounds say about value

The authors ask how a memory changes the expected Q-value at one decision, and they bound that change with the action-value range B\_t and the total variation distance α\_t. Their radius bound says the Q-value change is at most B\_t times α\_t, and α\_t is at most a constant times the square root of the base-2 JS divergence. So a near-zero JS divergence keeps the possible value change small, but it can't tell whether that change helps.

The sign depends on where probability mass moves from one action to another, and the proof uses this transport view. Equal JS divergences can yield opposite value changes, because the mass can land on different actions. Under Assumption 1, mass moved into the recorded action with a positive role gains at least κ\_t, which gives the lower bound κ\_t η\_t − B\_t(α\_t − η\_t).

The gate can't measure this assumption directly, so the bound explains why the test should work rather than proving it for each admitted memory.

The same local argument extends to whole tasks through the performance-difference identity, summed over decisions. When the lower bound is nonnegative at every reachable history, the memory-conditioned policy's expected return is at least the baseline's. A toy pair with equal JS divergence but opposite value changes, plus or minus 1/4, shows that magnitude alone can't set the sign.

## The admission gate

A candidate must pass two tests before Anchor stores it: a magnitude test and a role-specific direction test. Both roles must cross a magnitude threshold, with 0.05 bits for success memories and 0.12 bits for failure corrections. The lower success threshold lets through source actions that the policy already strongly prefers before injection.

Admission then follows the source role, so a success candidate with yt = +1 needs its gain test and a failure candidate with yt = -1 needs its direction test. Candidates whose role is uncertain are excluded, and the gate uses only the sign of the hindsight credit, not its magnitude.

Anchor computes these probabilities by token-budgeted scoring, which sums the log probabilities of the first L action-content tokens. ALFWorld uses L = 1, while WebShop uses L = 5. Candidates that share their first L tokens form one category, so a verb can't gain weight just from having more object-level completions. A pair is invalid when a saved context, source candidate or finite log probability is missing, and missing top-k scores are never treated as zero.

A Success Maintain candidate needs its injected top choice to equal the recorded source action. Its probability must also rise by at least 0.04 after injection. A Failure Corrections candidate passes if the source action's probability drops by at least 0.10. It also passes if the injected top choice differs from the failed source action, and this ranking branch can hold even without a probability decrease.

Algorithm 2 gives the complete predicates, and Appendix C.3 lists the threshold values.

## Storing cards and reusing them

Each card adds only role, applicability conditions, retrieval keys, and source metadata. Each card gets a budget of 320 tokens, so the extra context stays bounded. Cards whose cues or recommended actions don't match the current decision are ignored.

Maintenance keeps the bank small as new cards arrive. After each episode, BankMaster updates retrieved-card confidence from feedback.

Held-out evaluation reads the built bank without updates, so evaluation outcomes never add cards.

## Held-out ALFWorld and WebShop results

Anchor is evaluated on tasks it was not built from, so the held-out split tests whether retained memories transfer. Memory construction uses 200 ALFWorld tasks and 400 WebShop tasks, while held-out evaluation uses 402 ALFWorld tasks and 4,055 WebShop instructions. Evaluation is read-only, so outcomes from the held-out tasks don't update the constructed banks.

Each backbone is frozen, and the paper compares Anchor against ten baselines on the same evaluation split within that backbone.

With Qwen2.5-14B-Instruct, Anchor reaches 87.06% ALFWorld success, compared to 72.64% for AdaMEM, a 19.9% relative gain over the strongest baseline. With Qwen3.5-27B, Anchor reaches 96.27% success, surpassing SimpleMem at 92.54% by 3.73 points. On WebShop with Qwen3.5-27B, Anchor scores 73.50, compared to 62.74 for ReasoningBank. That WebShop score is a 17.2% relative gain, and mean steps fell from 6.61 to 5.33.

Anchor ranks first in all four environment and backbone combinations, so the gain isn't confined to one setting.

The authors tested only two environments and two frozen backbones, so the claim covers these settings. They didn't test other backbones or environments in this section.

## Which admission test does the work

The ablation asks whether the direction test adds anything once magnitude screening is already in place. Anchor without Amplituder and Aspecter writes every candidate and reaches 73.38% ALFWorld success on Qwen3.5-27B. Anchor without Aspecter keeps only magnitude screening and reaches 74.88%, a 1.49-point difference. Adding the direction test raises success to 96.27%, a further 21.39 points or 28.6% relative to the magnitude-only variant.

The authors attribute the larger gain to separating source-role effects among candidates that already passed magnitude screening.

Anchor without Failure Corrections keeps only success-maintain memories and reaches 86.82%. Anchor without Success Maintain keeps only failure corrections and reaches 83.83%. Against these two single-role variants, keeping both roles adds 9.45 and 12.44 points, respectively. In both single-role rows, the retained role still passes its magnitude and directional tests.

The ablation uses only Qwen3.5-27B on the same ALFWorld split, so it doesn't show how the roles interact on other backbones.

## Bank size, token cost and the construction stream

Selectivity in Anchor is measured in three places: bank size, token use and the cumulative success curve during construction. On ALFWorld with Qwen3.5-27B, Anchor retains 41% fewer memories than writing every candidate. Anchor still raises held-out success from 73.38% to 96.27% in that comparison. The authors read this as selective retention improving the usefulness of experience, not only its storage footprint.

On WebShop with Qwen3.5-27B, Anchor's token use is about 86.9M, counting construction and evaluation together. That total is slightly below MEM1 and about 34%, 59% and 98.5% below ReasoningBank, Reflexion and AdaMEM, respectively. The token totals include reflection, replay and maintenance calls, not only the final evaluation. These comparisons measure bank size, token consumption and interaction steps together.

The task-stream curve tracks cumulative success over 200 randomly sampled ALFWorld construction tasks. Anchor and Anchor w/o Amplituder & Aspecter share a frozen backbone but differ only in admission. After early fluctuations, Anchor finishes about 20% higher in relative terms despite slower bank growth. That curve is a construction-stream statistic, so it shows behavior during building rather than repeated tests of fixed banks.

The held-out results in Table 2 test the resulting banks separately.

## Where the probe stops working

The replay depends on token log probabilities, and some closed-source interfaces don't expose them. Without those scores, the paired probe can't compute the JS shift that Amplituder uses for admission. The probe also works on prefixes, so it can't separate actions that share the scored tokens. Prefix scoring misses some object-level errors, because candidates like take apple 1 and take mug 2 collapse into one category under L = 1.

The authors name model-generated scores, rankings and repeated-output preferences as replacements for token probabilities. They leave calibrating these measures and extending replay to broader tasks and interfaces to future work. The experiments cover only ALFWorld and WebShop, with Qwen2.5-14B-Instruct and Qwen3.5-27B as the frozen backbones.

They didn't test other environments or backbones, so the probe's behavior there stays unmeasured.

## Paper info

- **Authors**: Xinxiang Yin, Xinglang Zhang, Haodong Chen, Zhiqing Cui, Weidong Tang, Yuxuan Wang, Junrui Wang, Jingyi Zhang, Jianfeng Zhang, Jian Qian
- **Venue**: arXiv · Preprint
- **First published**: 2026-11-7
- **Added**: 2026-11-10
- **Updated**: 2026-11-7
- **Version**: v1
- **arXiv**: 2611.10382
- **Category**: cs.CV
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2611.10382v1) · [PDF ↗](https://arxiv.org/pdf/2611.10382v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

LLM agents have made impressive progress in coding and mathematical reasoning, motivating growing interest in learning from long-horizon interaction. Memory supports this process, but plausible lessons can be redundant or reinforce inappropriate actions. Can a memory's source decision provide a practical test for whether to retain it? We localize consequential trajectory steps, extract candidate memories, and replay each source decision with and without its candidate under the same context. This reveals two properties: most candidates barely shift the probed distribution, and both successful and failed source actions can be reinforced or suppressed. These observations motivate Anchor, which tests shift magnitude and source-role alignment before retention. Admitted memories guide later trajectories, enabling experience-driven improvement under a frozen policy. On held-out ALFWorld and WebShop tasks, Anchor improves success rate and mean score by up to 19.9% and 17.2%, respectively, relative to the strongest baseline for each backbone. With Qwen3.5-27B, it retains 41% fewer ALFWorld cards than unfiltered retention and outperforms all four WebShop cost-comparison baselines while using fewer tokens.

## Quote from the paper

Xinxiang Yin, Xinglang Zhang, Haodong Chen, Zhiqing Cui, Weidong Tang, Yuxuan Wang, Junrui Wang, Jingyi Zhang, Jianfeng Zhang, Jian Qian (2026). From Reflection to Co-Evolution: Self-Evolving Agents with Locally Verified Memory. arXiv:2611.10382v1. https://arxiv.org/abs/2611.10382v1

**BibTeX**

```
@misc{yin2026from,
  title = {{From Reflection to Co-Evolution: Self-Evolving Agents with Locally Verified Memory}},
  author = {Xinxiang Yin and Xinglang Zhang and Haodong Chen and Zhiqing Cui and Weidong Tang and Yuxuan Wang and Junrui Wang and Jingyi Zhang and Jianfeng Zhang and Jian Qian},
  year = {2026},
  eprint = {2611.10382},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.10382v1}
}
```

## Other paper commentary

- [Deploying Physically and Epistemically Compliant Agents by Distilling Belief-Space Task and Motion Planners](https://refivu.com/en/papers/5683ab20-2e74-4278-84ff-63394b14fe7e-deploying-physically-and-epistemically-compliant-agents-by.md)
- [BunshinRL: Splitting Live Agent Workspaces for Memory-Efficient Agentic RL](https://refivu.com/en/papers/9292e3d6-762e-46df-a9a5-341c387c6972-bunshinrl-splitting-live-agent-workspaces-for-memory.md)
- [Crustify: Repository-Level Generation of Safe Rust Bindings with LLM Agents and Coverage-Guided Testing](https://refivu.com/en/papers/0a929076-bec9-4572-90ad-a8b133795903-crustify-repository-level-generation-of-safe-rust-bindings.md)
- [Reflexion: Language Agents with Verbal Reinforcement Learning](https://refivu.com/en/papers/a572f458-b121-4d38-bfc9-7a77309a3aba-reflexion-language-agents-with-verbal-reinforcement-learning.md)
- [A Generalist Agent](https://refivu.com/en/papers/890475cb-e797-43df-8de3-0d0eb9ed882e-a-generalist-agent.md)
- [Toward Agentic Robotics: A Large-Scale Study of Harness Design for Robot-Use Agents](https://refivu.com/en/papers/14d1c215-9799-4493-b5f1-c86c787dcba4-toward-agentic-robotics-a-large-scale-study-of.md)
- [Quantitative Assessment of Crystal Structure Prediction](https://refivu.com/en/papers/a567aa7e-a18e-4315-b76a-1436ba6888e2-quantitative-assessment-of-crystal-structure-prediction.md)
- [ESTRA: Enabling Extreme Attention Sparsity for Training-Free Video Diffusion Acceleration](https://refivu.com/en/papers/6a74d9dd-6805-4d9a-a7f5-24ad9bf9ed98-estra-enabling-extreme-attention-sparsity-for-training-free.md)
- [WordEval: Evaluating Word-Native Operation Fidelity in Document Editing](https://refivu.com/en/papers/1387b060-0cad-47ab-a45d-91cfcc8807c4-wordeval-evaluating-word-native-operation-fidelity-in.md)
- [Regularization Amplifies Subliminal Learning](https://refivu.com/en/papers/22f59d9c-4e53-44c9-9218-a8bd14a07d28-regularization-amplifies-subliminal-learning.md)
- [TurnFlow: Benchmarking User-State Reasoning in Multi-Turn LLM Agents via Scene-Guided User Simulation](https://refivu.com/en/papers/17bb7d10-11bb-49a1-8949-7775315595ab-turnflow-benchmarking-user-state-reasoning-in-multi-turn.md)
- [Who Taught the Robot That? Removing One User's Corrections from a Robot Policy That Learns Online](https://refivu.com/en/papers/684aa8db-cdcd-4f3e-8d3d-b409f7dec090-who-taught-the-robot-that-removing-one-user.md)

## Terms in this paper

- [Jensen-Shannon divergence](https://refivu.com/en/terms/408b4685369b-jensen-shannon-divergence)
- [total variation distance](https://refivu.com/en/terms/81bc44ccc7c1-total-variation-distance)
- [WebShop](https://refivu.com/en/terms/3af52e1053c4-webshop)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/cbbe388f-f036-4542-8fc6-f6b3901438a8-from-reflection-to-co-evolution-self-evolving-agents)
