Command Palette
Search for a command to run...
장기 지평 에이전트 하네스를 위한 재귀적 경험-작업 기억 진화
장기 지평 에이전트 하네스를 위한 재귀적 경험-작업 기억 진화
Zhaochen Yu Yingcheng Wu Zhenfei Yin Kaiyuan Chen Zhe Zhao Mengdi Wang Shuicheng Yan Ling Yang
초록
재귀적 자기 개선(RSI)은 장기 지평 작업에서 여전히 어려운데, 이는 증가하는 이력이 작업 상태를 모호하게 만들고 기술 호출을 잘못 정렬시키기 때문입니다. 우리는 장기 지평 에이전트 하네스를 위한 재귀적 경험-작업 기억 아키텍처인 Recuris를 소개합니다. 이 아키텍처에서 작업 기억은 작업 진행 상황을 추적하고 경험 기억에서 기술 선택을 안내하여, 전체 이력이 아닌 현재 필요에 기반하여 기술 사용을 근거 지웁니다. 이러한 결합은 또한 실행을 구조화된 증거로 전환하여 특정 기억 구성 요소에 실패를 국소화합니다. 다양한 작업에서 고정된 메타 에이전트는 그 증거를 기술 기억에 대한 국소화되고 검증된 게이트 업데이트로 전환하여 실행을 재구성하고 새로운 증거를 생성함으로써, 경계가 있는 재귀적 기억 진화 루프를 형성합니다. 네 개의 장기 지평 벤치마크와 열 개의 모델에 걸쳐, Recuris는 37개의 완료된 모델-벤치마크 쌍 중 35개에서 작업 성공률을 향상시켰으며, 최첨단 모델을 SOTA 수준의 작업 성공률로 끌어올렸습니다: τ²-Bench에서 GPT-5.6 Sol에 +17.8포인트, Claude Opus 5에 +15.6포인트를 추가하여 Opus 5를 87.9%로 끌어올렸고, SkillFlow에서 Qwen3.6-27B/35B에 +16.6/+13.5포인트를 기록했습니다. 상호작용 지평이 길어질수록 이점은 더 커져 가장 긴 작업에서 +32.2포인트에 이르렀고, 일반적인 장기 지평 실패는 최대 80% 감소했습니다. 이러한 결과는 재귀적으로 진화하는 기억을 RSI의 확장 가능한 기반으로 자리매김하게 하며, 에이전트가 축적된 경험을 지속적으로 점점 더 효과적인 장기 지평 행동으로 전환할 수 있게 합니다.
One-sentence Summary
Researchers from NUS, Stanford, Oxford, and Princeton introduce Recuris, a recursive Experiential–Working Memory architecture that tracks task progress to guide skill selection, localizes failures via structured evidence, and enables validation-gated memory updates; across four benchmarks and ten models, it improves task success in 35 of 37 model–benchmark pairs, adding +17.8 points to GPT-5.6 Sol on τ2. -Bench and +32.2 points on the longest tasks.
Key Contributions
- Introduces Recuris, a recursive Experiential–Working Memory architecture that externalizes self-improvement to a memory-control layer, where Working Memory tracks verified task progress, guides skill selection from Experiential Memory, and a fixed Meta-Agent attributes failures to specific memory components before patching only those implicated behind a validation gate.
- Separates state proposal from state commitment by updating progress entries only when supported by actual tool results, grounding both action decisions and skill invocation in verified task state, and emitting a structured trace that links task states, invoked skills, actions, and outcomes for localized diagnosis.
- Across four long-horizon benchmarks and ten models, improves task success in 35 of 37 model–benchmark pairs, including +17.8 points for GPT-5.6 Sol and +15.6 for Claude Opus 5 on τ²-Bench (reaching 87.9%), +16.6/+13.5 points for Qwen3.6-27B/35B on SkillFlow, up to +32.2 points on the longest tasks, and a 64.8% fault-localization rate versus 13.0% from task outcomes alone.
Introduction
LLM agents increasingly rely on an external harness to coordinate memory, tool use, and task tracking, yet long-horizon tasks expose a key weakness: as interaction histories grow, agents lose track of unresolved goals and invoke outdated skills. Existing experiential-memory methods retrieve skills from the initial instruction or full history, but this becomes unreliable as the task evolves, and memory updates are often coarse, driven only by final success or failure without pinpointing which component caused the issue.
The authors propose Recuris, a recursive Experiential-Working Memory architecture that couples a verified task state (Working Memory) with reusable experience (Experiential Memory). Working Memory tracks progress and unresolved goals, grounds skill selection, and updates only from verified tool feedback, creating a closed loop of state, action, and outcome. Across tasks, a fixed Meta-Agent analyzes structured traces to localize failures to specific memory components and applies validation-gated updates, keeping the base model unchanged. Evaluated on four long-horizon benchmarks and ten models, Recuris improves success in 35 of 37 pairs, with gains growing over longer horizons and failure localization accuracy at 64.8% versus 13.0% from outcomes alone.
Method
The authors propose Recuris, an agent harness built around a frozen large language model (LLM) πθ and a tool set T. The system mediates task-state tracking, experiential-memory access, skill invocation, tool interaction, and execution verification. At each evolution round k, Recuris maintains an evolving Skill Memory represented as Mk=(Ek,Wk,ρk,Ck). Here, Ek stores reusable skills in an agent-skill format, Wk defines the state schema and update proposal for the task-specific working state wt, ρk is the invocation policy determining when and which skills to retrieve, and Ck is a set of checkers that verify if observations support proposed state changes.
As illustrated in the framework diagram, Recuris operates through two interconnected loops: a task-level execution loop and a cross-task evolution loop. Within a task, the current working state guides skill invocation, and execution evidence controls the subsequent state update. Across tasks, a fixed Meta-Agent utilizes failed runs to localize an effective repair target, proposes a component-specific memory patch, and relies on a fixed validation gate to admit the candidate patch. To connect these loops, the system records a structured execution trace Γk at round k, which links each action and observation to the state that triggered skill invocation, the proposed state update, and the evidence used to accept or reject that update.
Within the task-level loop, the authors implement a verified Experiential Memory (EM) and Working Memory (WM) coupling. The execution harness initializes a structured working state w0 from the task, where each goal entry tracks its content, status (pending, done, or blocked), and supporting evidence. Skill invocation is state-grounded, meaning the policy ρk decides which skills Et⊆Ek to retrieve based on the current progress wt and specific execution events et, rather than searching the full interaction history. Following an action at and environment observation ot, the working-memory specification proposes a next state wt+1=UWk(wt,at,ot). A checker set then evaluates this proposal against the observation, yielding decisions ct=Ck(wt,wt+1,at,ot). A fixed kernel commits only the supported changes to produce wt+1=K(wt,wt+1,ct), ensuring the state accurately reflects verified progress.
For the cross-task evolution loop, Recuris employs bounded recursive skill memory evolution. When a task fails, the fixed localization stage of the Meta-Agent analyzes the structured trace to produce a diagnosis Dk=Afixed(Γk,Mk)={(fj,zj)}j=1Jk. Each diagnosed failure fj is attributed to the component zj∈{E,W,ρ,C} where a localized intervention is most likely to help. The patching stage then proposes a specific edit Δmz=Pfixed(Γk,Mk,Dk,z) for each implicated component, constructing a candidate memory Mk+=Mk⊕Zk{Δmz}z∈Zk. This operator modifies only the implicated components while copying the rest unchanged. Finally, a validation gate Gfixed compares the candidate Mk+ with the current memory Mk on the failed task and a held-out development set. The patch is admitted only if it repairs the target failure without causing regression on anchor tasks, completing the recursive update Mk→Γk→Dk→Mk+→Mk+1.
Experiment
The evaluation spans tool-use benchmarks (tau2-Retail, tau2-Airline), SkillFlow, and Terminal-Bench 2.1, using a frozen mid-sized deployment model to evolve a Skill Memory that is then transferred unchanged to other models. Recuris, which couples experiential memory with a verified working state, improves task success in 35 of 37 model-benchmark pairs, with the largest gains on Retail and SkillFlow; ablations show the working state and state-grounded skill invocation drive the gains, while simply injecting more skill text hurts. The critical memory component differs by domain (write review on Airline, status board on Retail), and recursive evolution, where a Meta-Agent patches memory from failed traces, yields consistent held-out gains that transfer across tasks and models, though transfer depends on whether the target still contains the repaired failure type. On isolated Terminal-Bench tasks, test-time adaptation adds modest per-attempt reliability gains, but most of the headline improvement comes from the retry budget itself rather than learning.
Recuris consistently improves task success across most model-benchmark pairs, with the largest gains on benchmarks that share structure across tasks, such as retail and skill discovery. The method's benefit does not scale with model size, and its value is tied to adaptive memory rather than additional context or compute. Recuris improves task success in 35 of 37 completed model-benchmark pairs. Largest gains appear on benchmarks with shared structure, with improvements of 23.3 and 16.8 points on retail and skill discovery tasks. The benefit is not tied to model scale; smaller models can see gains comparable to or larger than larger models. On isolated tasks without shared structure, Recuris provides little or no benefit, and extra context alone can hurt performance.
Combining episodic and working memory yields the strongest performance in both retail and airline domains, with the largest gains over the base agent. Working memory alone provides substantial improvements in retail, while episodic memory alone adds only small, non-significant gains. The model-controlled invocation variant shows a significant but smaller improvement in retail only. The full memory combination outperforms all other variants in both domains, achieving the highest success rate and the largest confidence interval improvement over the base agent. Working memory alone delivers a large, significant gain in retail, whereas episodic memory alone yields only marginal, non-significant improvements in both domains. Model-controlled invocation, tested only in retail, provides a significant but smaller boost compared to working memory alone or the combined memory variant.
When the skill library is held fixed, the method of deciding when to invoke skills has a larger impact on performance than the skill content itself. Recuris, which supplies the one skill matched to each drafted state-changing call, outperforms a model-controlled variant that injects all skills into context on every turn, despite both using byte-identical skill bodies. The advantage is primarily in coverage, not speed, as the median turn of the first correct write is identical across configurations. Recuris achieves 82.4% required-write recall versus 61.1% under model control, and 83.6% task success versus 65.6%. Putting the entire skill library in context and letting the model decide when to use it scores below a configuration with no skills at all (65.6% vs 82.0% task success). The median turn of the first correct write is 18 in all configurations, indicating that invocation control affects whether writes are issued, not how quickly they occur. Recuris has the lowest rate of omitted required writes per episode (0.121) and the lowest agent tokens per success (101k), while model control is highest on both (0.417 and 147k).
Structured traces from the harness make component faults observable, with macro recall jumping from 13.0% with outcome only and 37.0% with raw trajectory to 64.8% with the structured trace. The gain is concentrated on faults that are invisible in the transcript, such as invocation and working-memory faults, while skill-content faults gain least because they already appear in the dialogue. Precision also improves substantially, indicating that the trace helps avoid misattributing faults to the wrong component. Outcome-only evidence scores below the constant-answer floor, while raw trajectory barely clears it, and structured trace nearly doubles the floor. Invocation faults are never detected without structured trace, but structured trace detects them 38.9% of the time. Working-memory fault recall rises from 50.0% with raw trajectory to 83.3% with structured trace. Skill-content faults gain the least, from 61.1% to 72.2%, consistent with the fault being visible in the transcript. Macro precision improves from 27.6% to 64.4%, showing the trace reduces false accusations against the skill component.
Recursive evolution of skill memory consistently improves held-out task performance over the shared starting memory, with gains ranging from about 9 to 17 points across multiple runs and implementations. A second evolution round compounds these gains, while a later round without admitted candidates shows no significant improvement. Transfer occurs only when held-out tasks contain the type of failures the memory repairs, as evidenced by near-universal invocation on held-out tasks for successful packages and no gain for airline-specific lineages where no such failures remain. All packages that reach held-out tasks outperform the starting memory by 9 to 17 points with confidence intervals excluding zero. A second round of evolution adds further gains, while a later round without in-loop candidate admission shows no significant improvement. Evolved memory is invoked on 78 to 86 of 86 held-out tasks for successful packages, indicating active retrieval rather than a generic prompting effect. The only package with zero held-out invocations fails to beat the starting memory, underscoring that transfer depends on actual skill use. Airline-specific lineages, evaluated on tasks lacking the repaired failure types, show no significant gains and lower invocation rates.
Recuris consistently improves task success across most model-benchmark pairs, with the largest gains on benchmarks that share structure across tasks, such as retail and skill discovery, while providing little benefit on isolated tasks. Combining episodic and working memory yields the strongest performance, with working memory alone contributing substantial gains and episodic memory alone adding only marginal improvements. When the skill library is fixed, the method of deciding when to invoke skills matters more than skill content, as Recuris outperforms a model-controlled variant that injects all skills into context on every turn. Structured traces from the harness make component faults observable, dramatically improving fault recall and precision, particularly for faults invisible in the transcript, and recursive evolution of skill memory consistently improves held-out task performance, with gains compounding over rounds and transfer depending on actual skill use.