Optimization memory can improve target-task performance while reducing regression on previously optimized coding tasks
In Yu et al.’s AHE coding harness transfer from Terminal-Bench 2.1 to Terminal-Bench 4, all transfer conditions begin with the same source held-out score of 90.22. Full Self-Improvement Memory (SIM), preserving earlier edit rationale and evaluation results, loses only three successful source rollouts out of 225, compared with four for root-cause-only memory and six for harness-only transfer. Its target score also gains 6.67 points, versus 0.61 with root-cause-only memory. This demonstrates a case where adapting to new tasks need not trade off as much previous performance when prior optimization evidence is retained.
A single source-retention trace, not a general guarantee against forgetting; all three transfer conditions still lose some source successes.
Optimization memory can reach a stronger coding-agent harness earlier in a fixed-round adaptation budget
Yu et al. compare adaptation of two coding harness seeds, AHE and Terminus-2, from Terminal-Bench 2.1 to Terminal-Bench 4. Full Self-Improvement Memory (SIM), which supplies the optimizer with earlier diagnoses and measured outcomes, is best or tied across rounds 1–10 for both seeds. It exceeds the strongest control’s final held-out score of 20.61 by round 5 for AHE and round 2 for Terminus-2. This suggests that memory can reduce the number of optimization rounds needed to reach a given performance threshold.
These are two optimization traces, not an independently replicated time-to-threshold study; fewer rounds do not establish lower token cost or elapsed time because memory adds context.
Optimization memory improves coding-agent harness adaptation in nine of ten independently initialized paired experiments
Yu et al. evolve ten independent Terminus-2 harnesses on Terminal-Bench 2.1, then continue each on Terminal-Bench 4 twice under matched target model, tasks, starting harness and optimization budgets. The run using Self-Improvement Memory (SIM), which retains previous diagnoses, edits and outcomes and appends new ones, wins nine of ten pairs; mean final scores are 21.70 with memory and 19.33 without it. The paired improvement is 2.36 points (95% CI 1.05–3.68; p = 0.003), supporting a repeatable benefit in this coding setup rather than a result driven by one lucky initialization.
One pair favors no memory by 0.61 points. Independent repeated runs are confined to this coding transition; the result does not establish cross-domain statistical reliability.
A shared agent harness optimized using feedback from multiple models can match the average performance of individually optimized harnesses
Yu et al. test text classification across Grok, Claude Opus and Gemini using a common harness (the software around the model). A unified synthesis approach using feedback from all three models obtains an average held-out score of 75.24, compared with 75.20 for separate per-model optimized harnesses and 73.28 for the shared unoptimized seed. Sequential continual optimization reaches 74.20, while harnesses individually optimized for one model and then shared score 66.84–72.24 on average. The experiment suggests that optimizing a shared harness with feedback from its intended models can be a viable alternative to maintaining separate implementations.
A descriptive text-classification comparison across three models; a 0.04-point difference does not establish statistical equivalence or superiority, and costs were not compared here.
Continually inheriting an optimized agent harness across model generations does not always beat fresh optimization
Yu et al. carry an evolved harness and Self-Improvement Memory (SIM), a record of prior harness diagnoses and edits, through successive Gemini models on Terminal-Bench 2.1. Relative to optimizing the original seed independently at each generation, inherited optimization scores 76.8 versus 73.3 on Gemini 3.5 Flash and 90.5 versus 88.9 on Gemini 3.8 Flash, but 94.8 versus 95.6 on Gemini 4 Argon. Thus a chain of past improvements can help new models but should still be compared against a freshly optimized baseline rather than assumed to be superior.
A single tested model-generation sequence and benchmark; the comparison changes both inherited harness and memory, so the cause of the final regression is not isolated.
Yu 等人将使用 Claude Opus 5.5 优化的 harness(控制 agent 执行的软件)迁移到 Gemini 3.8 Flash,同时保持基准和划分固定不变。继续采用自我改进记忆(SIM),其中保存先前的诊断、编辑和实测结果,使四个领域的最终留出分数比仅迁移代码高出 3.60–11.33 分。在工作区中,两者均从 68.41 开始;仅代码迁移最终达到 73.42,而完整记忆达到 84.75。因此,即使继承的 harness 在新模型上初始表现不佳,优化历史也可能有用。
译自英文 · 看原文
Transferring optimization history improves agent harness adaptation across model families in four tested domains
Yu et al. transfer harnesses (the software controlling agent execution) optimized with Claude Opus 5.5 to Gemini 3.8 Flash while holding benchmarks and splits fixed. Continuing with Self-Improvement Memory (SIM), which carries previous diagnoses, edits and measured outcomes, yields final held-out scores 3.60–11.33 points above code-only transfer in four domains. In workspace, both start at 68.41; the code-only run finishes at 73.42 and full memory at 84.75. Optimization history can therefore be useful even when the inherited harness initially performs poorly with the new model.
One run per domain and condition for this specific model-family transition; this does not guarantee similar gains for other model pairs.
Root-cause diagnoses alone do not reliably improve agent harness adaptation without the history of attempted fixes and their outcomes
Yu et al. compare three ways to continue optimizing an agent harness after a dataset change: transfer code alone, code plus diagnoses of recurring failures, or code plus Self-Improvement Memory (SIM), which also records modifications, rationale, predicted and observed outcomes, and provenance. Across six transitions, diagnosis-only memory ranges from 1.82 points worse to 2.40 points better than code alone; full SIM beats diagnosis-only memory by 0.20–6.06 points in every setting. The implication is that remembering what went wrong is less reliable than remembering what was tried and what actually happened.
The starting harness, target model and optimization budgets match; the six comparisons are individual runs, not independent repeated trials for each domain.
Agent harness optimization can reuse past improvement experience without updating the task-solving model’s weights
An agent harness is the software controlling how a language model receives context, calls tools and completes tasks. Yu et al. place Self-Improvement Memory (SIM) in the outer optimization loop: the proposer and selector consult the rationale and measured results of earlier harness changes, while the model executing tasks remains frozen. The optimizer can reuse experience across tasks or model changes by revising the harness rather than training the task-solving model. In the matched cross-dataset experiments, full memory improves final held-out scores by 2.43–4.35 points over transferring only the evolved harness.
This is software-level improvement, not model-weight learning or evidence of superiority over task-level memory; those memory placements were not directly compared.
Remembering the rationale and outcomes of earlier harness changes helps preserve useful requirements while adapting their implementation
A completion gate is a harness check that prevents an agent from declaring a task finished prematurely. In Yu et al.’s coding transfer experiment, both optimizers inherit the same gate; the one with Self-Improvement Memory (SIM) sees why it was introduced and its prior outcomes, retaining completion verification while adding checks appropriate to the new tasks. Without SIM, the optimizer tightens the gate, has to repair completion deadlocks twice, and misattributes the inherited gate to its own first round. Storing edits, rationale, predicted versus measured outcomes and evaluation context under a recurring problem can help distinguish a persistent requirement from an obsolete implementation.
This is a qualitative case study (Figure 11b and Appendix F.3), not an isolated causal test of every memory field; SIM records selected attempts, not every rejected candidate.
Transferring harness improvement history alongside code improves adaptation to new datasets in six tested settings
Transferring an optimized agent harness (the software around a model) preserves its code but not necessarily the evidence behind the code. Yu et al. compare continued optimization from the same evolved harness with no Self-Improvement Memory (SIM), root causes alone, or the complete record of diagnoses, edits, predictions and measured outcomes. Across six dataset transitions covering coding, classification, workspace and engineering, full SIM finishes above harness-only transfer by 2.43–4.35 points on a 0–100 held-out score scale. This supports transferring optimization experience along with the implementation when adapting an agent to a new task distribution.
The policy model is fixed to Gemini 3.8 Flash; target tasks, starting harness and candidate/round budgets match across transfer conditions. Each main setting is one optimization run; independent repetitions are separately reported for coding.
An agent harness that improves performance in its original environment can underperform the seed harness after a dataset or model change
An evolved harness contains prompts, tools and execution controls tuned against a particular environment. In Yu et al.’s cross-dataset experiments, source optimization raises held-out source scores by 2.75–6.41 points in all six settings, yet one classification harness starts its new dataset at 72.92 versus the unoptimized seed’s 75.72. When a harness evolved with Claude Opus 5.5 is transferred to Gemini 3.8 Flash on the same benchmark and split, it starts below Gemini’s seed in all four domains (0.60–5.48 points lower), and harness-only continuation still finishes below fresh optimization in three. Thus source improvement is not sufficient evidence that a harness will benefit a new environment; re-evaluate it against a target seed.
The observed regressions concern compatible harness interfaces and specific tested transitions; they do not imply that all transferred harnesses regress.
Full-history agent harness optimization has not established scalability to long histories or the separate benefit of inherited memory
Yu et al.’s Self-Improvement Memory (SIM) stores earlier diagnoses and selected harness edits, and both optimization agents read the entire record each round without retrieval or truncation. Their comparison changes the full memory procedure together: inherited source experience and new target-stage updates are both enabled, so the measured advantage cannot be attributed separately to either. The paper supports the tested full-memory procedure, not a conclusion that unlimited memory is scalable or that inherited memory alone accounts for the gains.
This is a study-design limitation, not evidence that scaling fails. Independent repetitions focus on coding; other domains have one run per condition, and compatible harness interfaces and fixed search procedures are assumed.
Over-aggressive semantic memory consolidation can erase useful distinctions even when entries appear similar
Table 5 reports that on LoCoMo with GPT-4.1-mini the no-consolidation score was 0.902. HDBSCAN minimum cluster size 5 compressed the memory store by 21.7% at score 0.896; size 10 compressed by 16.3% at 0.892; size 2 compressed by 30.9% but fell to 0.876. Treat semantic similarity as a candidate-merge signal rather than proof of equivalence; preserve source provenance and evaluate loss after consolidation.
Specific LoCoMo setup, clustering and model. Compression concerns memory-store size, not lifecycle cost. The archived URL is the abstract; numerical comparisons come from Table 5 of the full article, https://arxiv.org/abs/2610.39790. Versioning and evidence-preservation controls are proposed engineering practices, not separately tested interventions.
When multiple AI agents build a knowledge base, separate write ownership and precise evidence can prevent important facts from being lost.
Multiple agents building the same wiki may overwrite one another's edits or summarize away details that matter to the final task. In Anthropic's Harvey Legal Agent Benchmark contract example, agents initially wrote contract terms into a shared table; the resulting brief covered only 41 of 57 required facts. After assigning each contract its own page and a single writer, and requiring the exact contractual wording to be preserved, the brief covered all 57. For tasks that depend on precise evidence, partition writing responsibilities and preserve important source details before merging or summarizing them.
The experiment changed both writing coordination and evidence-preservation instructions, so their individual effects cannot be separated. Exact quotation is especially useful for wording-sensitive tasks, but general summaries may still be appropriate for other purposes.
在针对文档集合回答问题时,AI 智能体既可以搜索原始文件,也可以使用已经整理好事实及其相互链接的 wiki。在 Anthropic 的 24 题合并文档评估中,对于需要综合或判断/算术的题目,借助 wiki 的回答满足了 87% 的评分标准,而直接搜索为 73%。在另一项法律任务中,大多数标准都可以从单份文档得到满足,wiki 并未带来明显优势。另一个 wiki 从 115 KB 的源文档集合增长到了 203 KB,说明缺乏有用抽象的组织方式只会增加杂乱。一种实用的做法是:精确查找时使用直接搜索,而对于反复出现的跨文档推理,则考虑使用经过整理的表示形式。
译自英文 · 看原文
AI agents benefit more from a prebuilt wiki when answers require combining documents than when one document contains the answer.
When answering a question over a document collection, an AI agent can search original files or use a wiki that has already organized facts and links between them. In Anthropic's 24-question merger-document evaluation, wiki-assisted answers satisfied 87% of graded criteria on items requiring synthesis or judgment/arithmetic, compared with 73% for direct search. In a separate legal task where most criteria could be satisfied from one document, the wiki provided no clear advantage. Another wiki grew to 203 KB from a 115 KB source collection, illustrating that organization without useful abstraction can add clutter. A practical approach is to use direct search for precise lookups and consider curated representations for recurring cross-document reasoning.
These are particular evaluations of document-based tasks. A wiki is not automatically better for every multi-document question, and its value depends on evidence coverage, freshness, construction costs and the quality of search.
AI agents can learn across sessions by saving feedback, testing explanations, and recording verified rules for future tasks.
A new session usually lacks the reasoning that led to earlier successes and failures. In Anthropic's CL-Bench database exercise, Claude answered questions in separate sessions, received the correct answers, and could keep files between sessions. Opus 5 used those files to record rules, the basis for trusting them, and pitfalls; its average reward rose from 0.564 without memory to 0.828 with memory. Sonnet 4.6 mostly saved untested explanations and saw a much smaller improvement, from 0.330 to 0.364. A useful learning loop is therefore to record feedback, form and test an explanation, and store the validated lesson instead of treating a guess as knowledge.
This is learning through external files, not retraining model weights. The reward scores come from one benchmark task with explicit feedback; comparisons between models cannot isolate the effect of any particular note format.
Combining a prebuilt wiki with direct document search can improve AI agents' answers to complex knowledge-base questions.
Repeatedly searching a large document collection can require an agent to rediscover the same relationships each time. Anthropic had agents build and refine a wiki over about 350,000 Stainless company files (420 million tokens), then evaluated answers to 25 questions. As wiki construction increased from 2 to 128 sessions, the wiki-only score rose from 13% to 48% of graded criteria met; the wiki-plus-search score rose from 54% to 61%, compared with 53% for search alone. Combining the wiki with search reportedly also reduced per-question token use by about 20,000. The wiki supplies an organized map of known facts, while search can retrieve original evidence and information missing from that map.
The results cover one internal corpus and 25 questions. The score measures answer criteria met, not retrieval precision or recall. Building and maintaining the wiki took offline compute (approximately 2M–128M dreaming tokens in this experiment), so the per-question savings do not establish overall cost savings.
仅仅给智能体一个持久化的记忆文件夹是不够的,如果它从不读取自己的笔记,或者保存了错误的解释,那也无济于事。Anthropic 在带反馈的数据库问题上测试了 Claude 模型,发现 Opus 5 和 Opus 4.7 在一般性指导下能有效使用记忆;要求它们只保存失败案例,分别使其与记忆相关的性能提升减少了 0.234 和 0.150。对于 Sonnet 4.6,要求它查阅先前的笔记并检验自己的解释,使平均奖励从仅使用记忆时的 0.364 提高到 0.641,而不使用记忆时为 0.330。因此,记忆指令应根据智能体所展现出的能力进行调整,而不是对所有模型都套用同一套僵化的策略。
译自英文 · 看原文
Strong AI agents can often decide what to remember themselves, while weaker agents may need explicit memory-use instructions.
Giving an agent a persistent memory folder is not enough if it never reads its notes or saves incorrect explanations. Anthropic tested Claude models on database questions with feedback and found that Opus 5 and Opus 4.7 used memory effectively with general guidance; requiring them to save only failures reduced their memory-related performance gains by 0.234 and 0.150 respectively. For Sonnet 4.6, telling it to consult earlier notes and test its explanations raised average reward from 0.364 with memory alone to 0.641, versus 0.330 without memory. Memory instructions should therefore be adjusted to the agent's demonstrated ability, not applied as one rigid policy to every model.
Results are from the CL-Bench 1.0 database task. They do not imply that stronger agents should be exempt from evidence, privacy, or safety requirements, or that a particular instruction will generalize across workloads.