Hugging Face Papers ↗ · 2026-11-23
ReWeave: Emergent Physical Task Topologies for Embodied Harness Optimization and Cross-Task Meta-Distillation
Media reports Hugging Face Papers Source language: Chinese
ReWeave co‑optimizes an embodied harness and task topology, boosting LIBERO‑PRO success to 98.75% and RoboDojo to 58.25% without changing policy weights.
Full text
\coverlogo
\authorbreak 1]Zhejiang University 2]Stanford University 3]Tsinghua University 4]AGIBOT Innovation \contribution[†]Corresponding author \reweaveabstractLong-horizon embodied tasks involve physical dependencies that may only become clear through interaction. As task understanding deepens, past trials can reveal new information for adaptation and transfer. However, coarse progress feedback cannot identify which physical preconditions held, leaving search unguided, while task-specific optimization easily overfits to individual scenes, making cross-task transfer brittle. We introduce ReWeave, a framework that jointly optimizes an embodied agent harness and an emergent physical task topology from interaction without updating policy weights. Keeping execution policies and perception frozen, ReWeave co-optimizes coupled context, workflows, and control loops. As new evidence revises the topology, ReWeave reprojects past trials onto the updated task understanding, exposing retained progress, regressions, and bottlenecks that guide parent selection and search width. Across tasks, matching verified local mechanisms to unmet preconditions consolidates 7272 specialist units into 4444 reusable groups (0.34×0.34\times full concatenation) within a compact shared harness capable of continual learning. ReWeave improves held-out success from 89.00%89.00\% to 98.75%98.75\% on LIBERO-PRO and from 25.50%25.50\% to 58.25%58.25\% on RoboDojo, while uncovering retained progress in 89%89\% of 159159 failed RoboDojo development trials and translating stronger offline reasoning into higher online performance. On eight unseen LIBERO-PRO tasks, the shared harness reaches 51.3%51.3\% success versus 41.3%41.3\% for direct distillation, rising to 75.0%75.0\% after continual learning. \coverdateNovember 24, 2026 \coversourcecodehttps://github.com/xuyicheng-zju/ReWeave \coverprojecthttps://xuyicheng-zju.github.io/ReWeave/ \covercorrespondence186368@zju.edu.cn \reweaverunningReWeave
ReWeave: Emergent Physical Task Topologies for Embodied Harness Optimization and Cross-Task Meta-Distillation
Yicheng Xu Wencan Jiang Zihao Zhu Keru Zhou Chang Zhou Li Liu Maoqing Yao Yong Liu Jiangning Zhang Affiliation: [ Affiliation: [ Affiliation: [ Affiliation: [
Figure 1: From coarse progress to emergent physical topology. (a) Retained progress and revision regressions motivate ReWeave; illustrative G2 scenes depict the source-to-unseen transfer gap. (b) Illustrative G2 evidence separates stable hold from slip, adds rim clearance as a prerequisite, and reinterprets the same trial. (c) Harness optimization, cross-task transfer, and continual learning.
1 Introduction
Long-horizon manipulation depends on establishing physical conditions needed by downstream actions [20, 15]. Plausible high-level plans often fail because key physical requirements, such as contact stability, clearance margins, and assembly tolerances, emerge only during execution. These dynamics cannot be anticipated a priori, making physical trial-and-error necessary yet costly. Maximizing what each trial teaches is thus vital for adaptation and reuse.
Recent work repairs programs and evolves skills from execution feedback [28, 5, 22], distills playbooks [17], or organizes repairs with workflow graphs [29]. These advances leave a distinct question: when new evidence changes our understanding of a physical prerequisite, how should already collected trials be reassessed? Keeping their interpretation fixed can hide partial progress behind failure labels. Likewise, storing a successful routine does not identify which local mechanism another task needs. Revisable dependencies connect retrospective credit, harness revision, and condition-based transfer (Fig. 1).
Research question. How can we continually revise physical task understanding through interaction to reinterpret experience, improve agent harnesses, and transfer mechanisms across tasks?
[Challenge 1] Nominal task plans mask latent physical bottlenecks [Sec. 3.2.1]. Execution can expose missing physical requirements. Revised understanding calls for re-reading past trials to assess retained progress.
[Challenge 2] Diagnosing a bottleneck does not reveal a remedy [Sec. 3.2.2]. Context, action routines, and feedback loops are coupled. Several edits can address one failure, but each needs physical validation.
[Challenge 3] Task-specific success does not guarantee transfer [Sec. 3.2.3]. Specialists depend on their scenes and objects. New tasks may need one local mechanism or parts from several specialists, each with prerequisites.

Figure 2: Overview of ReWeave. (a) Physical trials induce and refine a task topology to re-read progress. (b) Topology steers parent selection and search width. (c) Causal units guide specialist consolidation and continual learning.
We introduce ReWeave, which uses an emergent physical task topology to make changes in task understanding explicit (Fig. 2). It links physical dependencies and alternative routes to evidence and harness mechanisms. Beyond using old traces to propose repairs, topology revision changes how the same archived trials are credited and compared (Challenge 1). Reprojected progress and bottlenecks then guide harness search (Challenge 2). Across tasks, matching verified transition effects to unmet conditions identifies which specialist mechanisms to combine in a shared harness for transfer and continual learning (Challenge 3).
On LIBERO-PRO and RoboDojo, ReWeave achieves strong performance: 98.75%98.75\% and 58.25%58.25\% SR, gains of 9.759.75 and 32.7532.75 points over H0H_{0}, respectively. Re-reading 159 failed RoboDojo development trials on their final topologies finds retained progress in 89%89\% (median 0.330.33; Fig. 3). On unseen tasks, direct distillation reaches 41.3%41.3\% SR and the shared harness reaches 51.3%51.3\%.
Our contributions are threefold:
•
Emergent Physical Task Topology. We introduce an emergent representation of task understanding that connects physical dependencies, alternative routes, execution evidence, and reusable harness mechanisms.
•
Topology-Guided Harness Optimization. We develop joint harness optimization guided by emergent task understanding and the physical cost of further search.
•
Topology-Guided Meta-Distillation. We develop meta-distillation matching specialist mechanisms to unmet conditions for cross-task consolidation and transfer.
2 Related Work
2.1 Embodied Agent Harnesses
Language-guided robots use skills, policies, feedback [1, 20, 15], and scene representations of preconditions [25, 12]. Robot-use agents expose perception and action interfaces [33, 4, 8, 18], while harnesses add memory, orchestration, and state tracking [36, 14, 10, 31]. These interfaces let an agent inspect the scene and act, while the harness organizes how that information and feedback enter execution. In multimodal in-context learning, UniICL [32] organizes task-aligned demonstrations by capability. ReWeave jointly adapts context, workflows, and control loops while preserving fixed embodiment interfaces.
2.2 Embodied Harness Optimization
Harness optimization refines skills, context, and routines from physical feedback [28, 6, 7, 22, 5] or distills interventions [19, 17]; ENPIRE adapts real-world policies [30]. HarnessPAI can use a fixed workflow graph from expert video while optimizing its code and repair skills [29]. ReWeave represents evolving physical dependencies in a revisable topology. It re-scores archived trials to guide search and matches unmet conditions to reusable local mechanisms.
3 Method
3.1 Problem Formulation
Coupled (C,W,L)(C,W,L) Solution Space. An inner agent based on a frozen foundation model πFM\pi_{\mathrm{FM}} acts as the policy; an outer agent revises its harness between episodes:
H=(C,W,L)∈ℋCWL,H=(C,W,L)\in\mathcal{H}_{\mathrm{CWL}}, (1)
where context CC curates instructions, workflow WW defines action maneuvers, and control loop LL governs feedback timing. Isolated revisions leave bottlenecks unresolved; their resolution demands joint changes across coupled context, workflows, and feedback.
Harness-of-Agent Optimization. For a partially observed long-horizon task TT, a rollout τ(H,ξ)\tau(H,\xi) with ξ∼𝒟T\xi\sim\mathcal{D}_{T} receives an official success label ST(H,ξ)∈{0,1}S_{T}(H,\xi)\in\{0,1\}. The specialist objective is
HTopt∈argmaxH𝔼ξ∼𝒟T[ST(H,ξ)].H_{T}^{\mathrm{opt}}\in\arg\max_{H}\ \mathbb{E}_{\xi\sim\mathcal{D}_{T}}[S_{T}(H,\xi)]. (2)
With bounded development feedback, search returns a task-specific specialist HT∗H_{T}^{*}, and distillation consolidates a shared harness for transfer to unseen tasks (Sec. 3.2.3).
3.2 ReWeave Framework
ReWeave refines a physical task topology from trials to guide two optimization loops (Fig. 2). Within a task, reprojecting past trajectories guides harness search (Algorithm 1); across tasks, local transitions identify reusable mechanisms for consolidation and transfer (Algorithm 2).
Algorithm 1 Topology-guided harness optimization
1: πFM\pi_{\mathrm{FM}}, seed H0∈ℋCWLH_{0}\in\mathcal{H}_{\mathrm{CWL}}, trials ΞT\Xi_{T}, rounds TmaxT_{\max}.
2: Specialist harness HT∗H_{T}^{*}, final topology Φf\Phi_{\mathrm{f}}.
3: 𝒯≤0←Rollout(H0,ΞT,πFM)\mathcal{T}_{\leq 0}\leftarrow\operatorname{Rollout}(H_{0},\Xi_{T};\pi_{\mathrm{FM}}), 𝒜1←{H0}\mathcal{A}_{1}\leftarrow\{H_{0}\}, Φ0←∅\Phi_{0}\leftarrow\varnothing
4: for round t=1,…,Tmaxt=1,\ldots,T_{\max} until ΞT\Xi_{T} is solved do
5: Stage 1: topology refinement and width allocation
6: Induce Φt\Phi_{t} from 𝒯≤t−1\mathcal{T}_{\leq t-1} ⊳\triangleright Eq. (3)
7: for all H∈𝒜tH\in\mathcal{A}_{t}, ξ∈𝒪t(H)\xi\in\mathcal{O}_{t}(H) do
8: Reproject progress, loss, and frontier ⊳\triangleright Eqs. (4)-(5)
9: Htparent←argmaxH∈𝒜tlex(S^T−,p¯t−)H_{t}^{\mathrm{parent}}\leftarrow\arg\max^{\mathrm{lex}}_{H\in\mathcal{A}_{t}}(\hat{S}_{T}^{-},\bar{p}_{t}^{-}) ⊳\triangleright Eq. (6)
10: Forecast qtq_{t} and set width KtK_{t} ⊳\triangleright Eq. (8)
11: Stage 2: evidence-guided synthesis and rollout
12: for candidate k=1,…,Ktk=1,\ldots,K_{t} in parallel do
13: Collect witnesses 𝒵t(𝒰t)\mathcal{Z}_{t}(\mathcal{U}_{t}) of unresolved transitions
14: Ht,k←Htparent⊕ΔHt,kH_{t,k}\leftarrow H_{t}^{\mathrm{parent}}\oplus\Delta H_{t,k} ⊳\triangleright Eq. (9)
15: if Ht,kH_{t,k} satisfies execution limits then
16: Add Rollout(Ht,k,ΞT,πFM)\operatorname{Rollout}(H_{t,k},\Xi_{T};\pi_{\mathrm{FM}}) to 𝒯≤t\mathcal{T}_{\leq t}, Ht,kH_{t,k} to 𝒜t+1\mathcal{A}_{t+1}
17: Induce final Φf\Phi_{\mathrm{f}} from 𝒯≤Tmax\mathcal{T}_{\leq T_{\max}}
18: return best archived HH by Eq. (6), Φf\Phi_{\mathrm{f}}
Algorithm 2 Topology-guided meta-distillation
1: HinitH_{\mathrm{init}}, tasks 𝒯\mathcal{T}, query tasks 𝒯q\mathcal{T}_{\mathrm{q}}, bank ℬ\mathcal{B}, panel Ξ𝒯\Xi_{\mathcal{T}}, threshold τ\tau, rounds RmaxR_{\max}.
2: Shared harness Hsh∗∈ℋCWLH_{\mathrm{sh}}^{*}\in\mathcal{H}_{\mathrm{CWL}}.
3: 𝒰+←\mathcal{U}^{+}\leftarrow verified units of ℬ\mathcal{B}; H1←HinitH_{1}\leftarrow H_{\mathrm{init}}; ℒ∗←∞\mathcal{L}^{*}\leftarrow\infty
4: for round t=1,…,Rmaxt=1,\ldots,R_{\max} until ℒ∗<τ\mathcal{L}^{*}<\tau do
5: ℰt←Rollout(Ht,Ξ𝒯,πFM)\mathcal{E}_{t}\leftarrow\operatorname{Rollout}(H_{t},\Xi_{\mathcal{T}};\pi_{\mathrm{FM}})
6: ℒt←ℒmeta(Ht,ℰt)\mathcal{L}_{t}\leftarrow\mathcal{L}_{\mathrm{meta}}(H_{t};\mathcal{E}_{t}) ⊳\triangleright Eq. (13)
7: if ℒt<ℒ∗\mathcal{L}_{t}<\mathcal{L}^{*} then (Hsh∗,ℒ∗)←(Ht,ℒt)(H_{\mathrm{sh}}^{*},\mathcal{L}^{*})\leftarrow(H_{t},\mathcal{L}_{t})
8: Stage 1: frontier gaps and unit retrieval
9: Refresh new-task topologies; 𝒬t←∅\mathcal{Q}_{t}\leftarrow\varnothing
10: for all failed trial cc on 𝒯q\mathcal{T}_{\mathrm{q}} do
11: Ft(c)←Frontier(Φi,c)F_{t}(c)\leftarrow\operatorname{Frontier}(\Phi_{i},c) ⊳\triangleright Eq. (5)
12: for all transition qq entering Ft(c)F_{t}(c) do
13: Gap Dt(q,c)D_{t}(q,c), bindings Rt(q,c)R_{t}(q,c) ⊳\triangleright Eqs. (11)-(12)
14: 𝒬t←𝒬t∪{(c,q,Dt(q,c),Rt(q,c))}\mathcal{Q}_{t}\leftarrow\mathcal{Q}_{t}\cup\{(c,q,D_{t}(q,c),R_{t}(q,c))\}
15: Stage 2: loss-guided meta-distillation
16: Ht+1←𝒜πFM(Ht,ℒt,ℰt,𝒬t,ℬ)H_{t+1}\leftarrow\mathcal{A}_{\pi_{\mathrm{FM}}}(H_{t};\mathcal{L}_{t},\mathcal{E}_{t},\mathcal{Q}_{t},\mathcal{B}) ⊳\triangleright Eq. (14)
17: return Hsh∗H_{\mathrm{sh}}^{*}
3.2.1 Emergent Physical Task Topology
[Insight 1] How to interpret experience? A physical topology binds transitions to conditions, witnesses, and code, giving past trials a common coordinate system. When revised, old rollouts are re-projected on this updated metric, revealing progress their binary labels hid.
Evidence-Grounded Physical Topology. After each round, the outer agent reads the task and recorded observations and actions 𝒯≤t−1\mathcal{T}_{\leq t-1} and induces a task topology:
Φt=(𝒱t,ℰt,𝒫t),𝒱t=ℳt∪ℬt∪𝒢t,\Phi_{t}=(\mathcal{V}_{t},\mathcal{E}_{t},\mathcal{P}_{t}),\qquad\mathcal{V}_{t}=\mathcal{M}_{t}\cup\mathcal{B}_{t}\cup\mathcal{G}_{t}, (3)
where ℳt\mathcal{M}_{t}, ℬt\mathcal{B}_{t}, and 𝒢t\mathcal{G}_{t} are required, optional, and goal states. Required states follow prerequisite precedence ≺Φt\prec_{\Phi_{t}}. Each edge e:u→ve:u\to v binds entry/exit conditions (ℐe,𝒪e)(\mathcal{I}_{e},\mathcal{O}_{e}) to witnesses 𝒵e\mathcal{Z}_{e} and code 𝒫e⊆𝒫t\mathcal{P}_{e}\subseteq\mathcal{P}_{t}. New evidence can split states, change which are required, and add paths. All archived trials use a shared, revisable coordinate scale: they are re-segmented and reprojected onto the updated topology. The outer agent revises the graph and archived state intervals in JSON. Host checks coverage and evidence links, then computes progress and frontiers (Supp. A).
Topological Progress and Regression Decomposition. Let AΦt(v)={m∈ℳt:m⪯Φtv}A_{\Phi_{t}}(v)=\{m\in\mathcal{M}_{t}:m\preceq_{\Phi_{t}}v\} collect required milestones retained at node vv. For trajectory τ\tau, write AendA_{\mathrm{end}} for this set at termination and AeverA_{\mathrm{ever}} for its union over visited states. Retained progress and regression loss are
pΦt(τ)=|Aend|+𝟏g|ℳt|+1,ℓΦt(τ)=|Aever∖Aend||ℳt|+1.p_{\Phi_{t}}(\tau)=\frac{|A_{\mathrm{end}}|+\mathbf{1}_{g}}{|\mathcal{M}_{t}|+1},\;\ell_{\Phi_{t}}(\tau)=\frac{|A_{\mathrm{ever}}\setminus A_{\mathrm{end}}|}{|\mathcal{M}_{t}|+1}. (4)
Here 𝟏g\mathbf{1}_{g} marks a terminal goal state. A dropped grasp incurs regression (ℓΦt>0\ell_{\Phi_{t}}>0); failing to grasp does not. Both are official failures, but the former proves the transition is attainable and lacks only retention.
Reprojection and Frontier Localization. Each revision re-scores an archived rollout as p~t(H,ξ)=pΦt(τ(H,ξ))\tilde{p}_{t}(H,\xi)=p_{\Phi_{t}}(\tau(H,\xi)). Its frontier contains unmet milestones whose strict required prerequisites pret(m)\operatorname{pre}_{t}(m) remain retained:
ℱt={m∈ℳt∖Aend:pret(m)⊆Aend}.\mathcal{F}_{t}=\{m\in\mathcal{M}_{t}\setminus A_{\mathrm{end}}:\operatorname{pre}_{t}(m)\subseteq A_{\mathrm{end}}\}. (5)
When the topology separates a stable grasp from a transient lift, trials once scored alike part ways, exposing hidden bottlenecks. The frontier marks what a trial can pursue next; its bottlenecks 𝒰t(ξ)\mathcal{U}_{t}(\xi), attempted but unrealized transitions, show where the harness fails to advance toward the goal.
3.2.2 Topology-Guided Harness Optimization
[Insight 2] How does better task understanding improve execution? On the emergent topology, the archive reveals which harness advanced furthest and what blocked it. This grounded assessment steers where search branches, what to revise, and how to allocate physical trials.
Topology-Guided Parent Selection. Search continues from the archived harness that solves the most development trials; among equals, re-read progress picks the one that has gone furthest on the current topology:
Htparent∈argmaxH∈𝒜tlex(S^T−(H),p¯t−(H)).H_{t}^{\mathrm{parent}}\in\arg\max_{H\in\mathcal{A}_{t}}^{\mathrm{lex}}\big(\hat{S}_{T}^{-}(H),\bar{p}_{t}^{-}(H)\big). (6)
Here 𝒜t\mathcal{A}_{t} is the harness archive and S^T−\hat{S}_{T}^{-} is the confirmed success rate over NN development trials.
Supported mean progress over known outcomes 𝒪t(H)\mathcal{O}_{t}(H) is
p¯t−(H)=1N∑ξ∈𝒪t(H)p~t(H,ξ).\bar{p}_{t}^{-}(H)=\frac{1}{N}\sum_{\xi\in\mathcal{O}_{t}(H)}\tilde{p}_{t}(H,\xi).
Reprojection restores an older harness when revised topologies credit its progress.
Bayesian Cost-Aware Search Width. Under parallel rollout budgets, dynamic width trades extra rollouts for fewer sequential rounds. Given success probability θ\theta, candidate outcomes on N−sN-s unsolved conditions follow independent Bernoulli trials. From re-read progress and frontiers, the outer agent forecasts completion probability qtq_{t} and sets a Beta prior with mean mtm_{t} and strength n0n_{0} (Supp. A):
θ∼Beta(n0mt,n0(1−mt)),𝔼[θN−s]=qt.\theta\sim\mathrm{Beta}\big(n_{0}m_{t},\,n_{0}(1-m_{t})\big),\quad\mathbb{E}\big[\theta^{N-s}\big]=q_{t}. (7)
With RR rounds left, K≤KmaxK\leq K_{\max} candidates cost KK evaluations and earn κ\kappa upon completion; otherwise their outcomes update posterior π=(α,β)\pi=(\alpha,\beta). The recursion values information from failed rounds and yields optimal width KtK_{t}:
JR(s,π)\displaystyle J_{R}(s,\pi) =maxK{−K+𝔼[κ𝕀s′=N\displaystyle=\max_{K}\Big\{-K+\mathbb{E}\big[\kappa\,\mathbb{I}_{s^{\prime}=N} (8)
+𝕀s′<NJR−1(s′,π′)]}.\displaystyle+\mathbb{I}_{s^{\prime}<N}\,J_{R-1}(s^{\prime},\pi^{\prime})\big]\Big\}.
Evidence-Guided (C,W,L)(C,W,L) Joint Synthesis. The parent’s bottlenecks show where to revise, and their witnesses show what went wrong there: a missing observation implicates CC, a misordered routine WW, late feedback LL (Sec. 3.1). Each of KtK_{t} outer-agent instances 𝒜πFM\mathcal{A}_{\pi_{\mathrm{FM}}} reads the parent, topology, and witnesses 𝒵t(𝒰t)\mathcal{Z}_{t}(\mathcal{U}_{t}) to propose an edit:
ΔHt,k=𝒜πFM(Htparent,Φt,𝒵t(𝒰t)).\Delta H_{t,k}=\mathcal{A}_{\pi_{\mathrm{FM}}}\!\left(H_{t}^{\mathrm{parent}};\Phi_{t},\mathcal{Z}_{t}(\mathcal{U}_{t})\right). (9)
Applying the edit gives Ht,k=Htparent⊕ΔHt,kH_{t,k}=H_{t}^{\mathrm{parent}}\oplus\Delta H_{t,k}. Final selection follows Eq. 6; successful ties prefer the smallest |ΔH||\Delta H| for compact distillation.
3.2.3 Topology-Guided Meta-Distillation
[Insight 3] What is worth transferring? Past experience transfers as modular causal units sharing physical preconditions with the student. These verified mechanisms constitute the “meta” of meta-distillation, transplanted right where target execution stalls.
Modular Causal Units. Local transitions such as pre-grasp alignment, surface stabilization, and unlatching recur across tasks with different topologies. An edge defines a causal unit u=(ℐu,𝒪u,𝒫u)∈𝒰u=(\mathcal{I}_{u},\mathcal{O}_{u},\mathcal{P}_{u})\in\mathcal{U} with newly established effects
Eu={a∈𝒪u:ℐu⊧̸a},E_{u}=\{a\in\mathcal{O}_{u}:\mathcal{I}_{u}\not\models a\}, (10)
where ℐu\mathcal{I}_{u} and 𝒪u\mathcal{O}_{u} are the conditions before and after the transition, 𝒫u\mathcal{P}_{u} is the code that realizes it, and EuE_{u} collects its newly established outcomes. A condition a=(p,𝒙,V)a=(p,\boldsymbol{x},V) requires a property pp of objects 𝒙\boldsymbol{x}, such as position, to lie in VV, and a state SS supports it (S⊧aS\models a) when the observed property does. Units in the experience bank ℬ\mathcal{B} supported by achieved transition witnesses form 𝒰+\mathcal{U}^{+}. Units of different specialists that establish matching conditions under an object mapping can merge into one implementation.
Frontier Dependency-Gap Matching. Failures of the student HtH_{t} on query tasks 𝒯q\mathcal{T}_{\mathrm{q}} of the task set 𝒯\mathcal{T} show what to retrieve. Each failed trial cc has a frontier Ft(c)F_{t}(c) on its task topology Φi\Phi_{i} (Eq. (5)). The dependency gap of a transition qq entering Ft(c)F_{t}(c) is the part of its outcomes EqE_{q} unsupported by the state St(c)S_{t}(c) observed in the failed run:
Dt(q,c)={a∈Eq∣St(c)⊧̸a}.D_{t}(q,c)=\{a\in E_{q}\mid S_{t}(c)\not\models a\}. (11)
A bank unit u∈𝒰+u\in\mathcal{U}^{+}, mapped to the student’s objects by σ\sigma, covers the part of the gap that its outcomes establish:
Ct(q,u,σ,c)\displaystyle C_{t}(q,u,\sigma;c) ={d∈Dt(q,c)∣σ(Eu|domσ)⊧d},\displaystyle=\bigl\{d\in D_{t}(q,c)\mid\sigma(E_{u}|_{\operatorname{dom}\sigma})\models d\bigr\}, (12)
Rt(q,c)\displaystyle R_{t}(q,c) ={(u,σ):Ct(q,u,σ,c)≠∅}.\displaystyle=\bigl\{(u,\sigma):C_{t}(q,u,\sigma;c)\neq\varnothing\bigr\}.
Host code retrieves candidates by outcome coverage. The outer agent adapts code to target entry conditions and validates effects in rollouts (Supp. A).
Shared Meta-Distillation and Continual Transfer. On trial panel Ξ𝒯\Xi_{\mathcal{T}}, the development loss scores shared harness HH by success, retained progress, and edit size:
ℒmeta(H)\displaystyle\mathcal{L}_{\mathrm{meta}}(H) =(1−S¯(H))+λT(1−p¯(H))\displaystyle=\bigl(1-\bar{S}(H)\bigr)+\lambda_{T}\bigl(1-\bar{p}(H)\bigr) (13)
+λS[|ΔH|−bℬ]+,\displaystyle+\lambda_{S}\bigl[\,|\Delta H|-b_{\mathcal{B}}\,\bigr]_{+},
where S¯\bar{S} averages official success and p¯\bar{p} measures retained progress on fixed source reference topologies over 𝒯\mathcal{T} (Eq. (4)). Here |ΔH||\Delta H| is the (C,W,L)(C,W,L) code size relative to H0H_{0}. Penalizing code beyond bℬb_{\mathcal{B}}, the mean reference-harness increment, favors compact shared code over simply concatenating specialists.
The outer agent acts as a black-box optimizer, proposing the next harness from the loss, evaluations, 𝒬t\mathcal{Q}_{t}, and bank:
Ht+1=𝒜πFM(Ht,ℒt,ℰt,𝒬t,ℬ).H_{t+1}=\mathcal{A}_{\pi_{\mathrm{FM}}}\!\bigl(H_{t};\ \mathcal{L}_{t},\ \mathcal{E}_{t},\ \mathcal{Q}_{t},\ \mathcal{B}\bigr). (14)
Optimization stops when loss drops below τ\tau or after RmaxR_{\max} rounds, returning best Hsh∗H_{\mathrm{sh}}^{*}.
The loop serves two uses. Merging sets Hinit=H0H_{\mathrm{init}}{=}H_{0} and 𝒯q=𝒯\mathcal{T}_{\mathrm{q}}{=}\mathcal{T} with the specialists in ℬ\mathcal{B}, and freezes the result for unseen tasks. Continual learning starts from the previous shared harness with new tasks as 𝒯q\mathcal{T}_{\mathrm{q}}, whose topologies query the bank before joining it.
Figure 3: Topology dynamics across 25 RoboDojo tasks (≤\leq10 revisions). (a) Terminal failure progress. (b) Relative graph size. (c) Solved ratio and best progress. (d) Parent age distribution.
Table 1: LIBERO-PRO SR (%) [38]. ReWeave gains 9.759.75 SR points over H0H_{0}, reaching 98.75%98.75\%. Optimization yields the largest gains on Long tasks. Details and inference costs: Supp. C.
Method Year Model (effort) Train Optimize Success rate (%) ↑\uparrow, position / task Average ↑\uparrow
Spatial Object Goal Long 6 suites 8 suites
E2E models
π0.5\pi_{0.5} [16] 2025 - ✓ ✗ 20.0 / 1.0 17.0 / 1.0 38.0 / 2.0 8.0 / 1.0 13.2 11.0
πRLinf\pi_{\mathrm{RLinf}} [35] 2025 - ✓ ✗ 59.0 / 42.0 78.0 / 71.0 42.0 / 45.0 14.0 / 49.0 56.2 50.0
AtomVLA [26] 2026 - ✓ ✗ 16.0 / 1.0 10.0 / 0.0 2.0 / 11.0 1.0 / 9.0 6.7 6.3
X-VLA [37] 2025 - ✓ ✗ 0.0 / 0.0 2.0 / 8.0 1.0 / 9.0 0.0 / 10.0 3.3 3.8
Agents
OpenRUA [4] 2026 Opus 5 (high) ✗ ✗ 98.0 / 100.0 98.0 / 97.0 79.0 / 79.0 80.0 / 65.0 91.8 87.0
RPent [36] 2026 GPT-6 Astra (low) ✗ ✓ 98.0 / 100.0 99.0 / 100.0 99.0 / 88.0 72.0 / 85.0 97.33 92.63
ASPIRE [22] 2026 GPT-6 Astra (xhigh) ✗ ✓ 98.6 / 97.6 99.0 / 99.4 97.0 / 96.8 84.6 / 95.0 98.07 96.00
ReWeave H0H_{0} 2026 GPT-6 Astra (low) ✗ ✗ 93.0 / 100.0 100.0 / 99.0 97.0 / 90.0 72.0 / 61.0 96.50 89.00
ReWeave (Ours) 2026 GPT-6 Astra (low) ✗ ✓ 99.0 / 100.0 100.0 / 100.0 100.0 / 98.0 96.0 / 97.0 99.50 98.75
Δ\Delta vs. H0H_{0} +6.0 / 0.0 0.0 / +1.0 +3.0 / +8.0 +24.0 / +36.0 +3.00 +9.75
Table 2: RoboDojo Score/SR (%) [3]. ReWeave gains 30.4230.42/32.7532.75 points over H0H_{0}. Harness optimization improves both metrics across all capability groups. Details and inference costs: Supp. C.
Method Year Train Optimize Generalization ↑\uparrow Capability ↑\uparrow Average ↑\uparrow
Std. Random Precision Long Memory Open
E2E models
π0.5\pi_{0.5} [16] 2025 ✓ ✗ 20.93 / 14.89 5.82 / 1.44 12.40 / 5.50 23.54 / 14.67 5.89 / 4.67 1.98 / 1.67 11.44 / 6.93
Awomo-0.5 [2] 2026 ✓ ✗ 37.70 / 30.89 22.92 / 16.78 39.65 / 33.50 40.36 / 26.75 42.27 / 41.22 24.09 / 22.92 35.34 / 29.64
VPP2 [11] 2026 ✓ ✗ 52.14 / 46.44 20.63 / 12.56 43.03 / 35.17 56.28 / 37.00 56.01 / 55.56 4.61 / 4.08 39.26 / 32.26
Self-optimizing agents
PhysicalRSI [24] 2026 ✗ ✓ 31.57 / 25.67 11.04 / 5.56 38.05 / 32.50 46.37 / 37.33 46.74 / 46.56 28.88 / 24.92 36.27 / 31.38
EmbodiedEvo [19] 2026 ✗ ✓ 34.55 / 30.33 35.88 / 31.33 25.15 / 16.25 33.83 / 21.75 79.40 / 76.67 51.81 / 49.25 45.08 / 38.95
WorldScape-R2SI [23] 2026 ✗ ✓ 46.62 / 40.33 39.28 / 31.33 23.51 / 15.50 51.48 / 34.25 65.78 / 63.67 49.16 / 47.50 46.58 / 39.35
HexaShell-Preview [8] 2026 ✗ ✓ 43.28 / 38.00 35.15 / 31.00 41.25 / 32.00 42.91 / 31.50 84.53 / 81.00 57.97 / 55.25 53.18 / 46.85
ReWeave H0H_{0} 2026 ✗ ✗ 26.08 / 21.67 20.25 / 15.00 19.94 / 15.00 27.81 / 6.25 60.00 / 56.67 34.13 / 31.25 33.01 / 25.50
ReWeave (Ours) 2026 ✗ ✓ 45.50 / 41.67 47.08 / 41.67 48.56 / 42.50 54.63 / 42.50 93.33 / 93.33 74.31 / 71.25 63.43 / 58.25
Δ\Delta vs. H0H_{0} +19.42/+20.00 +26.83/+26.67 +28.63/+27.50 +26.81/+36.25 +33.33/+36.67 +40.19/+40.00 +30.42/+32.75

Table 3: Shared distillation (A) and continual learning (B) on LIBERO-PRO (88 source/new tasks ×10\times 10 test seeds). ReWeave gains 10.010.0 unseen-task SR points over direct distillation. Yellow: selected rounds or replay minima; purple: target SR; superscripts: gains.
A. Source scaling and shared distillation
Setting Development loss ↓\downarrow Selected HH Target test SR (%) ↑\uparrow Dev. effort ↓\downarrow ΔHΔH∗¯↓\frac{\Delta H}{\overline{\Delta H^{*}}}\!\downarrow
R1 R2 R3 R4 R5 SR↑\uparrow Prog.↑\uparrow Loss↓\downarrow Spatial Object Goal Long Avg. Eps. Tokens
H0H_{0} - - - - - - 69.8 0.802 0.0 35.0 0.0 0.0 8.8 24 0.00 0.00
Ours2 0.671 0.288 0.014 - - 95.0 100.0 0.014 95.0 45.0 15.0 5.0 40.0 24 17.85 1.38
Ours4 0.434 0.160 0.135 0.385 0.250 80.0 97.2 0.135 70.0 70.0 0.0 15.0 38.8 72 27.69 1.84
Ours6 0.703 0.272 0.173 0.185 0.208 95.0 96.3 0.173 90.0 100.0 5.0 0.0 48.8 108 31.89 2.04
w/o topology8 0.618 0.296 0.601 0.151 0.151 88.8 95.8 0.151 60.0 95.0 0.0 10.0 41.3 144 47.72 2.05
Ours8 0.652 0.241 0.554 0.293 0.237 86.3 93.1 0.237 95.0 95.0 10.0 5.0 51.3+10.0 144 41.72 2.75
B. Continual learning
Ours2 - - - - - 100.0 100.0 0.000 95.0 95.0 10.0 5.0 51.3 6 5.10 2.75
Ours4 - - - - - 97.2 99.1 0.028 95.0 95.0 10.0 5.0 51.3 6 5.71 2.75
Ours6 0.124 0.176 0.224 0.177 0.132 88.1 90.5 0.124 95.0 100.0 10.0 20.0 56.3 36 53.93 2.94
From Scratch8 0.757 0.514 0.351 0.234 0.234 87.5 88.9 0.148 55.0 85.0 15.0 60.0 53.8 26.25 32.96 3.71
Ours8 0.378 0.193 0.174 0.076 - 93.8 93.8 0.076 90.0 90.0 20.0 100.0 75.0+21.2 30 41.46 3.50
Table 4: Re-reading and transferring experience on LIBERO-PRO. (a) An archived trial reprojected under revised evidence, exposing earlier grasp retention. (b) Retrieved units and resulting harness revisions in a shared lineage evaluated on held-out seed 4.
Table 5: Harness ablations. Avg./Dev.: SR (%). Δ\Delta vs. Full.
Variant Avg.↑\uparrow Dev.↑\uparrow Search cost ↓\downarrow Rollout cost ↓\downarrow
Rounds Trials Dec. Steps
A. Solution space
H0H_{0} 3.75-51.25 4.17-70.83 - - 6.3-5.7 313.1+38.9
CC 47.50-7.50 66.67-8.33 3.6-0.2 10.9-0.5 11.2-0.8 277.9+3.7
C+WC+W 52.50-2.50 79.17+4.17 3.5-0.3 10.8-0.6 12.3+0.3 277.4+3.2
𝑪+𝑾+𝑳\boldsymbol{C+W+L} 55.000.00 75.000.00 3.80.0 11.40.0 12.00.0 274.20.0
B. Harness optimization strategies
w/o topology 46.25-8.75 62.50-12.50 3.9+0.1 11.6+0.2 12.1+0.1 274.4+0.2
w/ fixed topology 41.25-13.75 75.000.00 3.6-0.2 11.3-0.1 12.7+0.7 287.2+13.0
w/o reprojection 47.50-7.50 62.50-12.50 4.4+0.6 13.6+2.2 15.0+3.0 283.9+9.7
ReWeave 55.000.00 75.000.00 3.80.0 11.40.0 12.00.0 274.20.0
C. Search configuration
K=1K{=}1 55.000.00 75.000.00 3.80.0 11.40.0 12.00.0 274.20.0
Fixed K=2K{=}2 52.50-2.50 91.67+16.67 3.0-0.8 18.1+6.7 12.00.0 284.4+10.2
Fixed K=3K{=}3 56.25+1.25 83.33+8.33 3.1-0.7 28.1+16.7 11.7-0.3 273.2-1.0
Dynamic κ=30\kappa{=}30 55.000.00 83.33+8.33 2.9-0.9 16.9+5.5 12.00.0 283.0+8.8
Table 6: Model ablations for held-out SR (%).
Online LM Offline LM SR (%) ↑\uparrow
A. Online execution with frozen harnesses
GPT-6.1 Terra (high) GPT-6.1 Sol (xhigh) 55.00
Claude Sonnet 5.5 (high) GPT-6.1 Sol (xhigh) 57.50
DeepSeek V4.1 Flash (high) GPT-6.1 Sol (xhigh) 30.00
B. Offline optimization with Terra execution
GPT-6.1 Terra (high) GPT-6.1 Sol (xhigh) 55.00
GPT-6.1 Terra (high) Claude Sonnet 5.5 (xhigh) 92.50
GPT-6.1 Terra (high) DeepSeek V4.1 Flash (xhigh) 65.00
Table 7: Scoring fidelity and stability on LIBERO-PRO.
Evaluation metric Agent scorer Sim reference
A. Milestone state grounding (39 failure traces)
Milestone precision / recall 100.0% / 100.0% 48 / 48 resolved states
Progress MAE on failures 0.000 Ground truth (n=30n{=}30)
B. Optimization guidance & stability (H0→H5H_{0}\to H_{5})
Search progress gain +29.17 pp [+25.00, +32.64] pp
Regret (physical / full) 0.000 / 0.000 ≤0.025\leq 0.025 / ≤0.053\leq 0.053
5-pass repeat stability 5 / 5 select H5H_{5} Score SD=0.000\text{SD}=0.000
3.3 Novelty Statement
Emergent topology as explicit meta-knowledge. Prior systems revise harnesses and skills [28, 29, 27, 34], or evolve stateful code [13, 9]. ReWeave uses the emergent topology as explicit meta-knowledge, separating invariant physical traces from revisable prerequisites. Incoming evidence can retrospectively re-score archived trials, uncovering latent progress and localized regressions for parent selection without collecting new physical rollouts.
Loss-grounded unified meta-distillation. Prior methods distill playbooks [17], reuse skills and code [22, 19, 29, 13], or route harnesses [21], but do not jointly optimize task success, progress retention, and code parsimony. ReWeave makes this trade-off explicit in its meta-distillation loss. One optimization loop unifies multi-specialist merging and continual transfer, retrieving verified causal units by preconditions and effects to bridge topological frontier gaps.
4 Experiments
4.1 Experimental Setup
(1) Evaluation details. We evaluate LIBERO-PRO [38] (80 tasks, four suites) and RoboDojo [3] (42 tasks, five suites), following development/test separation [22, 36, 5] (seed 0 for development, at most 10 rounds per task; seeds 1-10 for held-out test). Policies and SAM3 are frozen. Tables 2-2 report system-level performance and gains over H0H_{0}. For ablation and transfer, Tables 4-7 use eight-task MiniSets of each category’s hardest tasks at 1×1\times environment-step budgets. We report SR, retained progress, trials, and costs (Supp. B). See Supp. C for paired comparisons, confidence intervals, and an independent optimization rerun.
(2) Fairness and comparison protocol. Existing embodied agents employ disparate backbones, undisclosed trial budgets, and bespoke prompt tuning [22, 36, 8]; re-evaluating all proprietary systems is cost-prohibitive. We adopt an analytical protocol: assessing optimization and transfer through controlled H0H_{0} baselines and structural ablations. Supp. B details fairness, compute accounting, and comparison scope.
4.2 Benchmark Results
(1) Optimization gains. On LIBERO-PRO and RoboDojo, ReWeave reaches 98.75%98.75\% and 58.25%58.25\% SR, respectively, up 9.759.75 and 32.7532.75 points over H0H_{0} (Tables 2-2). Long gains 2424/3636 points on LIBERO-PRO; RoboDojo improves in every group. (2) A capable seed harness. H0H_{0} reaches 89.00%89.00\%/25.50%25.50\% SR (96.50%96.50\% six-suite LIBERO-PRO average) with the same execution models and embodiment interfaces; optimization changes the surrounding harness.
4.3 Cross-Task Transfer
Unseen task generalization. (1) Source fit does not guarantee transfer. With eight specialists and matched seed, optimizer, loss, and development data, topology-guided retrieval reaches 51.3%51.3\% unseen SR versus 41.3%41.3\% without topology, despite lower source SR (86.3%86.3\% vs. 88.8%88.8\%; Table 4A). Gains are concentrated in Spatial (95%95\% vs. 60%60\%), using fewer offline tokens. SR with two, four, six, and eight sources is 40.0%40.0\%, 38.8%38.8\%, 48.8%48.8\%, and 51.3%51.3\%, respectively, showing nonmonotonic transfer. (2) Specialists share units. With eight sources, 72 units form 44 groups; every multi-unit group crosses sources. Of retrieved units, 74%74\% come from other specialists, and one unit covers 94%94\% of gap queries (Sec. 3.2.3). Shared code is 2.75×2.75\times the mean specialist increment and 0.34×0.34\times their concatenation, combining reusable physical structure across specialists.
Continual learning. The eight-source harness adds two tasks per stage, querying the bank for unmet transitions. Fixed-target held-out SR rises from 51.3%51.3\% to 56.3%56.3\% after six additions and 75.0%75.0\% after eight, versus 53.8%53.8\% from scratch (Table 4B). Under the stopping rule, incremental target-stage offline tokens are lower than training from scratch (106.20106.20 M vs. 131.82131.82 M), while total physical rollouts (221221 vs. 100100 launches, including old-task retention checks) and combined tokens with eight-source distillation (147.92147.92 M) are higher (Supp. C.3); across four stages, development SR stays at 88.188.1-100.0%100.0\% and the bank grows from 72 to 118 units.
4.4 Ablation Study and Analysis
Harness optimization. Table 5 uses eight task chains, development conditions 11-13 (3/3 success or five rounds), and 80 held-out episodes on 1-10. (1) Beyond prompts. Held-out SR rises from 47.50%47.50\% (CC) to 52.50%52.50\% (C+WC{+}W) and 55.00%55.00\% ((C,W,L)(C,W,L)), though adding LL lowers development SR (79.17%→75.00%79.17\%\!\to\!75.00\%; Challenge 2). (2) Reprojection drives gain. Without reprojection, held-out SR falls to 47.50%47.50\% (46.25%46.25\% without topology), despite more rounds and trials (4.4,13.64.4,13.6). Fixed topology yields the lowest SR (41.25%41.25\%; Sec. 3.2.1); graph updates without re-reading trials recover little. (3) Dynamic width reduces sequential rounds. Serial search (K=1K{=}1) uses the fewest trials (11.411.4) but requires 3.83.8 sequential rounds. With parallel rollouts, dynamic κ=30\kappa{=}30 uses 5.55.5 more trials for 2.92.9 rounds at matched 55.00%55.00\% held-out SR (83.33%83.33\% dev SR). Relative to dynamic width, fixed K=3K{=}3 spends 11.211.2 more trials for +1.25+1.25 points (3.13.1 rounds), while K=2K{=}2 loses 2.502.50.
Topology dynamics. Over ten RoboDojo revisions, median transitions grow 4.0×4.0\times with required states unchanged (Fig. 3). Under the final topology, 89%89\% of 159 failures retain progress (median 0.330.33). Solved tasks rise 8%→52%8\%\!\to\!52\% and mean best progress →0.760.46\!\to\!0.76. With 78/149 revisions regressing, 58%58\% of 146 parent choices revisit earlier harnesses; re-read progress breaks development-SR ties. On LIBERO-PRO, transitions grow 2.2×2.2\times, 79%79\% of failures retain progress, and 34%34\% of rounds reuse earlier parents. Across both benchmarks, re-reading failures exposes progress that a binary outcome alone would hide.
Scoring alignment. Across 144 source-development executions on LIBERO-PRO (eight tasks, three initializations, H0H_{0}-H5H_{5}), independent simulator predicates resolve 48/57 physical conditions on 39 failures (Table 7). Physical P/R are 100%100\%; progress MAE is 00 on 30 fully resolved failures. The 29.1729.17-point gain in assigned physical progress corresponds to 25.0025.00-32.6432.64 points under the reference. Final checkpoint regret is [0,0.0524][0,0.0524] for the full objective under the independent reference. Five fresh scoring passes on these traces select H5H_{5} with zero progress SD (Supp. A).
Model sensitivity. Table 7 varies one model role. (1) Roles decouple. Online, Sonnet reaches 57.50%57.50\%, Terra 55.00%55.00\%, and DeepSeek 30.00%30.00\%; offline, DeepSeek reaches 65.00%65.00\% and Sonnet 92.50%92.50\%. Execution and optimization rankings differ. (2) Gains scale with base models. With Terra execution fixed, Sonnet adds 37.5037.50 points over Sol through harness optimization without policy weight updates. At these settings, Sonnet gains 2.502.50 points over Terra online versus 37.5037.50 over Sol offline. ReWeave can thus translate stronger offline reasoning into better execution without retraining the policy or replacing the online executor.
4.5 Case Study
(1) Reprojection changes old evidence. In Fig. 4a, ΔC\Delta C separates lift from lateral motion. Tilted-plate success (H2H_{2}) makes supported deposit optional in Φ2\Phi_{2}; re-reading failed H1H_{1} updates its acquisition witness [70,140]→[70,90][70,140]\!\to\![70,90] and progress →0.330.50\!\to\!0.33. (2) Retrieval guides edits. The frontier retrieves rim/support and contact units from Spatial T04 and Object T05 (Fig. 4b). A rim-pinch prompt (ΔC\Delta C) and seat-inspect-grasp workflow (ΔW\Delta W) place the bowl on held-out seed 4; matched Direct stalls after two picks.
Failure analysis. The MiniSet selects the hardest task in each category. With eight sources, transfer SR is 95%95\% on Spatial and Object but 10%10\% on Goal and 5%5\% on Long (Table 4A), reflecting the difficulty of these tasks. After eight task additions, continual learning reaches 75.0%75.0\% average target SR with greater total development effort (Table 4B), showing substantial progress on this challenging panel.
4.6 Real-Robot Evaluation
On the dual-arm G2, we evaluate revisions H0H_{0}-H3H_{3} with ten trials per task and version (Table 9; Fig. 9). Sorting uses atomic actions, while pouring and plugging use a frozen VLA. With policy weights frozen throughout, sorting reaches 80%80\% SR from 20%20\% at H0H_{0}, with duration decreasing from 504.3504.3 to 402.1402.1 s. Pouring improves from 40%40\% to 60%60\% and plugging from 50%50\% to 70%70\%, with durations decreasing from 107.0107.0 to 95.495.4 s and 216.7216.7 to 175.4175.4 s, respectively.

Table 8: G2 evaluation. Ten trials per task and version.
Config. Sorting Pouring Plugging
SR (%) Time (s) SR (%) Time (s) SR (%) Time (s)
H0H_{0} 20.0 504.3 40.0 107.0 50.0 216.7
H1H_{1} 30.0+10.0 472.6 50.0+10.0 104.2 60.0+10.0 204.8
H2H_{2} 70.0+50.0 425.4 50.0+10.0 98.6 70.0+20.0 188.2
H3H_{3} 80.0+60.0 402.1 60.0+20.0 95.4 70.0+20.0 175.4
Table 9: Real-robot task sequences. Dual-arm G2 rollouts for pouring (VLA), plugging (VLA), and sorting (atomic actions).
5 Conclusion
ReWeave co-optimizes task understanding and an agent harness without weight updates. Transitions bind verified conditions, witnesses, and code; revised topologies re-score archived trials to guide optimization and transfer. Experiments show that this re-reading reveals progress in failed trials and supports reuse across tasks. The source code is publicly available.
Limitations. Topology inference depends on observable traces, and ambiguous contacts can delay edge resolution. Optimization requires physical trials and model calls. Agent reasoning adds execution latency, limiting use in time-sensitive settings; transfer remains uneven across the hardest tasks in the initial eight-source setting.
References
[1] Michael Ahn, Anthony Brohan, Noah Brown, Yevgen Chebotar, Omar Cortes, Byron David, Chelsea Finn, Chuyuan Fu, Keerthana Gopalakrishnan, Karol Hausman, et al. Do as i can, not as i say: Grounding language in robotic affordances. arXiv preprint arXiv:2204.01691, 2022.
[2] Awomo-WAM Team. Awomo-0.5 technical report. Technical report, 2026.
[3] Tianxing Chen, Yue Chen, Zixuan Li, Junyuan Tang, Kailun Su, Haoran Lu, Weijie Wan, Baijun Chen, Songling Liu, Haowen Yan, et al. Robodojo: A unified sim-and-real benchmark for comprehensive evaluation of generalist robot manipulation policies. arXiv preprint
Images from the source
