Skip to content
RobotWorld
Back to Papers

PAPER DEEP DIVE

具身智能PaperEmbodied AI

MEMENTO: Memory-Guided Memetic Code-as-Policy Evolution

Long-horizon embodied tasks require policies that execute many dependent actions before task success can be observed. Representing policies as executable control pro- grams (code-as-policy) enables their decision logic to be inspected and revised after rollout evaluation. Revised programs can then be executed and compared by rollout performance, framing policy improvement as execution-guided program search. Evo- lutionary methods driven by large language models (LLMs) provide a natural mecha- nism for this search by generating variants and selecting high-performing candidates. However, existing approaches primarily select among independently generated vari- ants and lack a sequential local improvement phase. We introduce MEMENTO, a memory-guided single-elite memetic framework for code-as-policy evolution. ME- MENTO first evolves a rollout evaluator that maps policy rollouts to scalar fitness and structured feedback metrics. Fitness selects accepted candidates and the next elite, while feedback metrics condition policy proposals generated by memory-guided hill-climbing, macro-mutation, and crossover. We evaluate MEMENTO on two long- horizon embodied domains: Robosuite Franka Tower-of-Hanoi manipulation and AI2- THOR household interaction. MEMENTO outperforms Eureka and REvolve, adapted as code-as-policy evolutionary baselines, in task success and generalization to held- out Robosuite object configurations and unseen AI2-THOR scenes. Ablations show that zero-shot generation and unevolved evaluators fail to solve either domain, and that removing policy-search branches reduces performance. Finally, we deploy the best-evolved Robosuite policy on a physical Franka robot, demonstrating the feasibil- ity of sim-to-real transfer of the evolved code-as-policy. Code, prompts, and videos are available at: https://github.com/sygkounas/MEMENTO.

Alkis Sygkounas, Victor Aregbede, Amy Loutfi, Andreas PerssonJuly 24, 20266 min read
中文

MEMENTO: Memory-Guided Memetic Code-as-Policy Evolution

Paper: MEMENTO: Memory-Guided Memetic Code-as-Policy Evolution
Authors: Alkis Sygkounas, Victor Aregbede, Amy Loutfi, Andreas Persson (Örebro University AASS)
Link: arXiv:2607.22832 | Code: github.com/sygkounas/MEMENTO | Platform: Franka Panda / AI2-THOR

One-line summary: A single-elite memetic framework evolves code-as-policy by first evolving a rollout evaluator, then improving policy programs via memory-guided hill-climbing, macro-mutation, and crossover—achieving 97-100% success on Tower-of-Hanoi and AI2-THOR with sim-to-real transfer.

Background and Motivation

Long-horizon embodied tasks require policies to execute many dependent actions before task success can be observed. Earlier actions determine the task state encountered by later actions—correct action order is insufficient; each action must also be physically executed from the observed state. This creates a long-horizon credit-assignment problem: success is observed only after many dependent actions. Existing methods mitigate delayed feedback through external structure (demonstrations, hierarchy, reusable skills) or experience generation/crediting changes (exploration, relabeling, temporal abstraction, return redistribution), but don't directly expose the decision logic of a failed policy or identify which part should be revised.

When policies are represented as executable programs (code-as-policy), decision logic is written directly as code and can be inspected and revised. LLMs generate robot policy code that processes perception outputs and parameterizes control-primitive APIs. But in long-horizon tasks, a generated program can execute without errors yet fail at control logic. Failure feedback has been used to characterize policy errors and guide refinement, formulating policy improvement as execution-guided program search. But binary task success alone is too sparse to guide revision of long-horizon policy programs.

MEMENTO's core idea: use an LLM-driven memetic algorithm for code-as-policy evolution, first evolving a rollout evaluator that maps policy rollouts to scalar fitness and structured feedback metrics, then improving policies via memory-guided hill-climbing, macro-mutation, and crossover.

Method

1. Evaluator Evolution

The evaluator $E$ receives a task rollout $\mathcal{T}$, outputting fitness $F\in[0,1]$ and feedback metrics $\mathbf{M}$. The evaluator itself evolves via LLM-driven macro-mutation: starting from $n$ initial evaluators $\{E_0^{(j)}\}$, each round executes rollouts producing $(F,\mathbf{M})$, selects the best evaluator via majority vote $\mathcal{V}_k$ over $k$ independent LLM judgments, then generates the next generation via macro-mutation $q_{\text{eval}}^{\text{macro}}$. Evaluator evolution is independent of policy search and fixed before policy evolution begins.

2. Single-Elite Memetic Policy Evolution

After $E^*$ is fixed, policy search proceeds from a single elite candidate state $\mathcal{C}_g=\mathcal{C}(p_g)$. Each generation explores three branches:

Hill-climb branch: Maintains a current accepted candidate and rejected-proposal memory $\mathcal{H}$. At each step, samples a new policy from the accepted state and rejection memory:

$$p_{g,h}^{\text{new}}\sim q_{\text{hc}}\!\left(\mathcal{C}_{g,h-1}^{\text{hc}},\mathcal{H}_{g,h-1}\right)$$

Acceptance requires non-decreasing fitness:

$$\mathcal{C}_{g,h}^{\text{hc}}=\begin{cases}\mathcal{C}_{g,h}^{\text{new}},&\text{if }F(\mathcal{C}_{g,h}^{\text{new}})\geq F(\mathcal{C}_{g,h-1}^{\text{hc}})\\[2pt]\mathcal{C}_{g,h-1}^{\text{hc}},&\text{otherwise}\end{cases}$$

Rejections append edit summaries to $\mathcal{H}$, avoiding repeated attempts of the same failed modification. This is the core of "memory guidance"—rejection memory tells the LLM which modifications have proven ineffective.

Macro-mutation branch: Samples $K_{\text{macro}}$ independent mutations from the generation elite, taking the highest-fitness:

$$\mathcal{C}_{g}^{\text{macro}}=\arg\max_{\mathcal{C}\in\{\mathcal{C}_g,\mathcal{C}_{g,1}^{\text{macro}},\ldots\}}F(\mathcal{C})$$

Crossover branch: Recombines $K_{\text{cross}}$ candidates from hill-climb and macro-mutation outputs:

$$p_{g,r}^{\text{cross}}\sim q_{\text{cross}}\!\left(\mathcal{C}_{g}^{\text{hc}},\mathcal{C}_{g}^{\text{macro}}\right)$$

Elite selection: The highest-fitness branch output becomes the next generation elite:

$$\mathcal{C}_{g+1}=\arg\max_{\mathcal{C}\in\{\mathcal{C}_{g}^{\text{hc}},\mathcal{C}_{g}^{\text{macro}},\mathcal{C}_{g}^{\text{cross}}\}}F(\mathcal{C})$$

graph TD
  A[Initial Policy p0] --> B[Evaluator E* Evolution]
  B --> C[Fixed Evaluator]
  C --> D[Gen-g Elite C_g]
  D --> E[Hill-climb: Memory-guided micro-mutation]
  D --> F[Macro-mutation: Independent large mutation]
  E --> G[Crossover: Recombine best of both branches]
  F --> G
  G --> H[Elite Selection: Max fitness]
  H --> I[Gen g+1 Elite C_{g+1}]
  I --> E
  style E fill:#f5a623,stroke:#b97316,color:#fff
  style G fill:#4a90d9,stroke:#2c5f8a,color:#fff
  style I fill:#7ed321,stroke:#4a8a14,color:#fff

Experimental Results

Main Comparison

Evaluated on two long-horizon domains: Robosuite Franka Tower-of-Hanoi (4 cubes, 15-step optimal solution) and AI2-THOR household interaction (apple in microwave + bread in fridge). MEMENTO runs $G=5$ generations with $K_{\text{hc}}=10$, $K_{\text{macro}}=5$, $K_{\text{cross}}=5$.

MethodRobosuite FitnessRobosuite SuccessAI2-THOR FitnessAI2-THOR Success
MEMENTO (full)0.99±0.020.97±0.060.98±0.001.00±0.00
Hill-only0.50±0.0400.46±0.040
Without-Crossover0.55±0.0200.51±0.040
Eureka (baseline)00
REvolve (baseline)00
Main evolution results

Figure 3: Main evolution results on Robosuite Tower-of-Hanoi and AI2-THOR. Solid curves show best-so-far fitness, hollow squares show success rate.

Generalization

Tested on held-out Robosuite object configurations and unseen AI2-THOR kitchens (FloorPlan4-29). MEMENTO maintains high success in both domains while baselines completely fail out-of-distribution. Single-scene policy evolution achieves only 0.09±0.02 cross-kitchen generalization (2/29, 3/29, 3/29), showing multi-scene search is necessary for cross-scene generalization.

Generalization SettingTrain SuccessHeld-out Success
Robosuite (held-out objects)0.970.73
AI2-THOR (multi-scene train)1.000.72
AI2-THOR (single-scene train)1.000.09
Training task environments

Figure 2: Training task environments. Left: Robosuite four-cube Tower-of-Hanoi. Right: AI2-THOR household interaction scene.

Sim-to-Real Transfer

The best Robosuite policy is deployed on a physical Franka robot. During simulation search, the policy acquired a closed-loop execution structure—object pose filtering, pick-and-place target re-derivation, alignment checks, and post-placement retry. Physical deployment uses SAM3 segmentation for RGB-D object pose estimation. After 3 LLM-assisted calibration steps, 10 physical trials achieve 0.90 success rate; the single failure was due to perception error.

MEMENTO conceptual overview

Figure 1: MEMENTO conceptual overview. Top row shows task environments; bottom row shows evaluator evolution and three-branch policy search.

Limitations

Author-stated: Hill-only and macro-mutation-only ablations fail to produce successful rollouts under the tested candidate budget, indicating the crossover branch is needed to combine partial executable strategies into task-completing policies. Single-scene policy evolution overfits to scene-specific object placements, navigation routes, and interaction viewpoints on AI2-THOR.

Analysis: 5 generations may be insufficient for more complex tasks. The evaluator itself is evolved by an LLM, whose quality is bounded by the LLM's understanding of rollouts—if the LLM misjudges rollout quality, the fitness signal misleads policy search. Sim-to-real requires 3 LLM-assisted calibration steps, indicating the sim-real gap still needs human intervention. The Tower-of-Hanoi symbolic solving order is fixed; the policy only adapts execution—for tasks where the decision logic itself must be discovered, the framework's effectiveness is unverified. Computationally, each generation requires $K_{\text{hc}}+K_{\text{macro}}+K_{\text{cross}}=20$ LLM proposals and rollout evaluations, totaling 100 over 5 generations—LLM API and simulation costs are not thoroughly reported.

Conclusion and Future Work

MEMENTO's core contribution elevates code-as-policy improvement from independent variant selection to memetic evolution with a sequential local improvement phase. First evolving the evaluator solves the sparsity of binary success signals—structured feedback metrics $\mathbf{M}$ guide which part of the policy logic the LLM should modify. The rejected-proposal memory $\mathcal{H}$ is the hill-climb branch's key innovation—telling the LLM which modifications have proven ineffective, enabling genuine "memory guidance" rather than random attempts. The three-branch search ablation proves that local refinement and macro-mutation alone cannot produce successful policies; crossover combines hill-climbing's precise progressive improvement with macro-mutation's exploratory power to assemble complete task-solving strategies. 97-100% success rates and 0.90 sim-to-real success validate the framework's effectiveness on long-horizon embodied tasks.

Evolving code-as-policy isn't just having the LLM write more versions—the key is letting the evaluator learn "what counts as doing well," then letting memory tell the search "which paths are dead ends."

Related Papers

Humanoid Seated Locomotion on Passive Mobile Chair

Humanoid Seated Locomotion on Passive Mobile Chair

Research on omnidirectional seated locomotion for humanoids on passive chairs. Policies use proprioception only, outperforming standing in tracking. Analyzes regularization effects on convergence.

人形机器人Humanoid坐姿移动Aug 28, 2026
GigaBrain-0.7: Scaling Embodied Foundation Models to Emergent Capabilities with a Three-System Architecture

GigaBrain-0.7: Scaling Embodied Foundation Models to Emergent Capabilities with a Three-System Architecture

Vision-language-action (VLA) models have become a dominant paradigm for generalist embodied agents, demonstrating strong complex and long-horizon task completion in structured settings. Yet it remains an open question whether current VLA systems can benefit from more effective architectural design, scale to substantially larger and more heterogeneous data regimes, and achieve broader generalization across tasks and embodiments. To this end, we present GigaBrain-0.7, an embodied foundation model with substantially improved generalization across diverse robot embodiments. Specifically, GigaBrain-0.7 unifies understanding, prediction, and action through a three-system architecture, scales pretraining to over 37,000 hours of heterogeneous embodied data, and introduces one-stage alignment training that jointly optimizes vision-language understanding and multi-embodiment action generation. Compared with the preceding GigaBrain-0 series and prior state-of-the-art models including $π_{0.5}$, GigaBrain-0.7 achieves substantial improvements in foundation zero-shot capabilities, language-conditioned instruction following, and post-training task success rates. In particular, on our in-house Maker H01 platform and mainstream robot embodiments, GigaBrain-0.7 demonstrates strong task adaptability and completion ability across both home and industrial scenarios. All training code and pretrained model weights will be released.

VLA具身智能世界模型Aug 16, 2026
ABot-N1: Toward a General Visual Language Navigation Foundation Model

ABot-N1: Toward a General Visual Language Navigation Foundation Model

ABot-N1 is a general visual-language navigation foundation model built on a slow-fast dual-system architecture: a 4B slow VLM reasoner emits explicit chain-of-thought plus dual pixel goals (Target Pixel + Affordance Pixel), while a 2B fast action expert decodes continuous SE(2) waypoints via QFormer action queries. The unified pixel-goal interface covers five tasks — point-goal, object-goal, POI-goal, instruction-following and person-following — in a single 30M-sample multi-task checkpoint, further aligned by GRPO post-training with format/target/safety rewards. Two closed-loop benchmarks are released (ABotN-PointBench and ABotN-POIBench). ABot-N1 sets new SOTA on all five benchmarks, boosting POI entrance arrival to 77.3% (+35.0 pp) and reaching 92.9%/95.4% outdoor/indoor point-goal SR, with full deployment on the TuTu quadruped running on a Jetson AGX Orin.

视觉语言导航VLN导航基础模型Jul 11, 2026
Zetta ζ: An Efficient Closed-Loop Embodied Harness for Self-Evolving Physical Intelligence

Zetta ζ: An Efficient Closed-Loop Embodied Harness for Self-Evolving Physical Intelligence

Zetta is a closed-loop embodied harness that keeps the base VLA frozen and evolves code-based runtime critics and recovery skills through three timescale-separated loops: action-frequency governance, rollout-batch failure diagnosis, and validation-gated skill updates. With the Z-Infra rollout infrastructure (20.6x throughput), it reaches 90.8% on LIBERO-Pro and 93.6% on RoboCasa, with zero-shot skill transfer and robotic Aha moments.

具身智能Embodied AIVLAAug 17, 2026