TL;DR
Nature spent millions of years evolving physical bodies alongside nervous systems, yet roboticists usually design robot skeletons using rigid templates or blind, random edits. MorphoGen treats a robot's raw simulator blueprint—its XML file—as source code, using Large Language Models (LLMs) to directly breed, critique, and evolve free-form robot bodies. The result is an automated pipeline that discovers surprisingly intuitive, animal-like robots that move better and train faster than prior designs.
What Problem Does This Paper Address?
A robot's intelligence is deeply tied to its physical shape (morphology). In physics simulators like MuJoCo, this shape—skeletons, joints, motors, and geometry—is defined by a structured XML file, acting as the robot’s "genotype."
Automating the search for the best XML design is notoriously brutal for two reasons:
- Combinatorial explosion: You cannot brute-force every possible combination of limbs and joints. To cope, existing methods avoid raw XML altogether. Instead, they use simplified graph abstractions, fixed templates, or strict structural "grammars" where algorithms add or delete nodes. Even recent LLM-based methods restrict the model to filling in template blanks. This makes search manageable, but sacrifices expressive freedom.
- Evaluation cost: Testing just one new body design requires training a reinforcement learning (RL) brain from scratch to see how well it walks—a massive computational bottleneck.
Methods
Inspired by LLM-driven algorithm evolution (like AlphaEvolve), MorphoGen throws away intermediate graphs and evolves complete MuJoCo XML files directly. It pairs standard island-based evolutionary archives (MAP-Elites, which preserves both high-performing and diverse candidates) with four tailored innovations:
- Direct XML Crossover & Mutation: Instead of random line-diffs, a Coding LLM performs full XML rewrites, coordinating changes across bodies, joints, and actuators simultaneously. Parents are chosen using a mix of top fitness, structural diversity (via Tree Edit Distance), and randomness.
- XML Archive Seeding: Because arbitrary edits in raw XML easily yield broken physics or unactuated limbs, the archive is initialized with valid, behaviorally diverse starter XMLs.
- Structure-Aware Directional Feedback: Rather than mutating blindly, a Critic LLM inspects evaluated robots—looking at their XML structure, motor coverage, and locomotion stats—to diagnose failure modes (e.g., "short limbs") and give actionable advice to the Coding LLM (e.g., "keep symmetry, extend limbs").
- Hierarchical Proxy Fitness: To dodge the RL training bottleneck, MorphoGen uses a two-stage filter. First, a candidate body is tested zero-shot with a reusable base controller ($\pi_0$). If its score clears a threshold $\tau$, $\pi_0$ is briefly fine-tuned to get a better fitness estimate. Poor designs are culled instantly without wasting GPU hours.
Datasets
Because this is an embodied RL and control problem, there are no static datasets. Instead, all methods are evaluated dynamically in the MuJoCo physics simulator across four standard locomotion environments: Hopper, Ant, Swimmer, and Gap Crosser (Gap). No new benchmarks are introduced; fitness is measured by forward distance traveled within a fixed simulation horizon.
Key Insights and Ideas
- Trading tokens for simulator steps pays off: MorphoGen makes twice as many LLM calls as prior LLM-design baselines, but because its edits are targeted and poor designs are filtered early, it cuts wall-clock time, GPU hours, and simulator steps roughly in half.
- Unconstrained LLMs rediscover biology: RL-based graph methods often spit out tangled, incomprehensible alien skeletons. Left free to edit raw XML with semantic feedback, MorphoGen naturally converges on clean, recognizable bio-inspired forms—evolving spider-like Ants, horse-like Hoppers, and octopus-like Swimmers.
- Free-form XML demands heavy-duty LLMs: Ablations show that shrinking the LLM backbone (e.g., down to a small Qwen3 model) causes locomotion scores to plummet by 94.3%. Maintaining valid XML syntax while coordinating multi-block physics changes requires strong reasoning and coding capabilities.
Key Results
MorphoGen is tested against traditional evolutionary algorithms, RL co-design methods (like Transform2Act and SARD), and LLM baselines (RoboMorph, RoboMoRe). Final designs are evaluated under a limited Fine-tuned Controller (FC) budget (0.3M PPO steps) and a Fully Trained Controller (FTC) budget (up to 5.0M steps):
- Locomotion Gains: Under the FC budget, MorphoGen beats strong baselines by an average of 14.4% across all tasks (ranging from +4.1% on Gap to +32.8% on Ant). Under full training (FTC), it dominates Ant (4740.6), Swimmer (1058.0), and especially Gap Crosser (5652.7 vs. LOKI-LLM's 3127.5), trailing only T2A on FTC Hopper.
- Compute Efficiency: Compared to the average of LLM baselines (RoboMorph and RoboMoRe), MorphoGen uses +117% more tokens, but reduces wall-clock time by 38.2% (down to 10.7h), GPU-hours by 50.5%, and simulator steps by 53.1%.
- Higher Diversity: It achieves the highest structural variation (pairwise normalized Tree Edit Distance of 0.57, +58.3% over SARD) and behavioral diversity (0.81, beating RoboMorph by 28.6%).
- Ablations: Stripping out directional feedback drops average scores by 50.5%; removing archive seeding drops them by 65.7%.
Limitations and Future Work
- Sim-only reality gap: All experiments live strictly in MuJoCo simulation; nothing guarantees these evolved XML creatures are physically buildable, durable, or safe in the real world.
- Implicit constraints remain: While free of a formal grammar, the search is still steered by prompt engineering, initial seed archives, and controller compatibility.
- Future directions: The authors plan to explore physical hardware validation, test robustness across independent evolutionary runs, and investigate true morphology–controller co-evolution to further cut evaluation costs.
Summary updated