TL;DR
SHAPER is a train-free framework that adapts embodied AI agents to new environments by optimizing their system-level components—specifically, textual skills and Python context-code harnesses—rather than updating model weights. By using a single frozen foundation model as both the environment planner and the meta-optimizer, SHAPER achieves significant performance gains over standard fine-tuning and test-time scaling methods at a fraction of the cost.
What Problem Does This Paper Address?
When deploying embodied AI agents (like robots or virtual assistants) into new environments, they often struggle with unfamiliar objects or novel task structures. The traditional way to fix this is through Supervised Fine-Tuning (SFT) or Reinforcement Learning (RL). However, updating model weights is computationally expensive, data-hungry, and completely impossible if you are using closed-source, commercial models.
An alternative is "train-free" adaptation, where models write low-level control programs on the fly. But this approach relies heavily on rich, programmable robot APIs that are rarely available in fixed-interface or restricted action-space settings.
SHAPER tackles a fundamental question: How can we systematically adapt a strong, frozen embodied agent to a target environment without changing its internal weights or relying on low-level control code generation?
Methods
Instead of treating the agent as a monolithic neural network, the authors factor the system into four distinct components: a frozen Vision-Language Model (VLM) planner, a frozen low-level executor, a reusable textual skill, and a context-code harness.
The adaptation process keeps the planner and executor weights completely frozen and optimizes the skill and harness through a two-stage evolutionary loop:
- Rollout-Guided Textual Diagnosis: The agent runs a small batch of trials in the target environment. A round-level "judger" critiques individual actions (e.g., identifying a "wrong subgoal" or "lack of progress"), and an episode summarizer compiles these critiques into a compact "textual gradient."
- Two-Stage Skill-Harness Evolution: The same frozen foundation model takes on the role of an artifact optimizer.
- Stage 1 (Skill Evolution): The optimizer refines the textual skills (high-level procedural guidance, failure-recovery rules, and task decomposition strategies).
- Stage 2 (Harness Evolution): The optimizer rewrites the context-code harness—a Python function (
build_context) that decides exactly how historical observations, actions, and visual data are filtered and formatted for the planner.
To ensure safety and stability, generated Python harnesses are evaluated in a secure sandbox before being validated on a rollout set.
Datasets
The authors evaluated SHAPER across two distinct embodied AI benchmarks:
- VLABench: A language-conditioned robotic manipulation benchmark focusing on long-horizon reasoning and common sense. The authors introduced custom evaluation splits (C1–C4) specifically designed to test generalization across seen/unseen target categories and task forms.
- ESI-Bench (Embodied Spatial Intelligence Benchmark): A benchmark requiring agents to actively move, look around, and perceive their environment to answer complex spatial reasoning questions.
Key Insights and Ideas
- Dual-Role Foundation Models: A key "aha" moment is that the exact same frozen model checkpoint can successfully play two roles: the actor/planner interacting with the environment, and the meta-optimizer diagnosing failures and rewriting code.
- The Power of the Harness: An agent's failure is often not due to a lack of reasoning capability, but rather "context drift"—the model forgets critical early observations because its context window is flooded with repetitive or uninformative recent frames. Evolving the Python harness allows the system to build an "evidence-aware visual memory" that selectively retains keyframes.
- Non-Additive Synergy: Optimizing skills and harnesses together creates a compounding effect. Textual skills turn the planner into an actor-aware command adapter, while the code harness ensures the exact visual evidence needed to execute those skills is delivered cleanly.
Key Results
The experimental results demonstrate that optimizing the system wrapper can be more effective than modifying the underlying model:
- VLABench: SHAPER achieved an overall success rate of 34.50%, significantly outperforming direct execution (23.25%) and same-data SFT (24.00%). It also showed strong generalization, outperforming baselines even on completely unseen task forms and object categories.
- ESI-Bench: SHAPER boosted the baseline agent's micro-accuracy from 32.5% to 49.8%, placing the frozen 27B planner ahead of the published aggregate performance of a passive GPT-5 reference model (40.3%).
- Extreme Cost Efficiency: Unlike test-time scaling methods that incur heavy computational costs during every single deployment, SHAPER's evolution is a one-time optimization cost. It cost roughly $2.25 for VLABench and $2.83 for ESI-Bench in API tokens to evolve the artifacts, which were then reused indefinitely.
Limitations and Future Work
While highly effective, SHAPER's current implementation has a few limitations:
- Simulation Only: The framework was validated entirely within simulated environments (VLABench and ESI-Bench). Real-world robotic deployment introduces physical noise and execution latencies that will test the robustness of the evolved harnesses.
- Cross-Embodiment Transfer: The paper hints at but does not deeply explore cross-embodiment transfer—taking a skill or harness optimized for one robotic setup and deploying it directly onto another. The authors note both real-robot validation and cross-embodiment transfer as primary directions for future work.
Summary updated