# Alloy: A Multi-Material Physics Engine for Robot Learning

Robotics.world

> Robots routinely handle things that are not rigid — towels, cables, water, sand — but the simulators used to train robots at scale are strongest on rigid bodies.

**arXiv**: 2611.16312 · Preprint · not peer-reviewed

**Published**: 2026-11-12

**Authors**: Pranay Gupta, Deepanshu Rohilla

## In plain words

Robots routinely handle things that are not rigid — towels, cables, water, sand — but the simulators used to train robots at scale are strongest on rigid bodies. Teams that want a robot to pour water typically end up running a second engine for the liquid and hand-writing glue between the two, with no principled way to pick time steps or to tell a broken simulation from a bad policy.

## AI summary

## Overview

**Research area:** Robotics simulation and simulation infrastructure for robot learning (physics engines, multi-material simulation, GPU-parallel training environments).

**Technical level:** Intermediate. The paper uses physics-simulation vocabulary (solvers, coupling, MPM, SPH, VBD), but each mechanism is described in plain terms and the experimental results are easy to read.

**Scope (one sentence):** The paper presents Alloy, an open-source physics engine that places rigid robots, cloth, cables, liquids, granular material and soft bodies in a single simulation scene, routes each object to a suitable solver automatically, couples those solvers inside every control step, and grades the health of every parallel world, with an interface designed to be driven by coding agents.

## What This Paper Is About

Robots routinely handle things that are not rigid — towels, cables, water, sand — but the simulators used to train robots at scale are strongest on rigid bodies. Teams that want a robot to pour water typically end up running a second engine for the liquid and hand-writing glue between the two, with no principled way to pick time steps or to tell a broken simulation from a bad policy. Alloy's goal is to make one scene hold every material, with one object description, automatic solver selection, coupled stepping, per-world health grades, and documentation and tooling that a coding agent can use unaided.

## Key Contributions

1. **One scene for many materials.** Rigid robots, cloth, cables, liquids, granular material and soft bodies are added through a single Python interface. A router assigns each object to a solver suited to it and records the physical reasons for the decision.
2. **Coupling inside every control step.** Solvers exchange poses and contact forces through proxy bodies, with exchange step sizes derived from the stiffness of the interface and refined per world when needed.
3. **A health grade for every world.** Each parallel world is graded OK, DEGRADED or INVALID; an invalid world is returned to a saved good state and frozen while the others continue, so training code can separate a physics failure from a policy failure.
4. **An interface made for coding agents.** Documentation ships inside the package, every error carries a field naming its fix, a command-line tool speaks JSON, and the engine is exposed as tools over the Model Context Protocol, plus helpers (`alloy.compose`, `alloy.create`) for building scenes.

A fifth item the paper lists is evidence from cold users: agents that had never seen Alloy installed it and trained policies on a single GPU.

## Main Findings

- **Cold-agent training succeeded end to end.** Eight independent sessions of Claude Opus 5.5 each started on a fresh virtual machine with one NVIDIA L4 GPU, installed a pre-release (`alloy-engine 0.1.0rc2`) from the Python package index, and were allowed to read only what the package ships. Each wrote its own training and evaluation code; success was computed from raw simulator state on held-out episodes.
- **Walking:** the shipped Unitree Go2 velocity-tracking environment, trained with PPO through the shipped trainer in 4,096 worlds, reached 244/256 held-out episodes (95%, Wilson interval [92, 97]) at 4.1 min and 497/512 (97% [95, 98]) at 15.5 min. Times exclude the one-time 202 s compilation of GPU kernels.
- **Push recovery:** the same policy, pushed with 150 N for 0.1 s while walking at 0.5 m/s (a harder push than any in training, at most 113 N), was still standing in 252/256 and 248/256 episodes on two seeds (97–98%).
- **Cable lift:** a task written by the tester, where every point of the cable's centre line must be above 3 cm at the last step, reached 242/256 (94.5% [91, 97]) after about 15 min and 245/256 (95.7% [93, 98]) after about 30 min, with PPO in 1,024 worlds.
- **Pouring:** the shipped pouring environment, where at least 75% of the water must end in the bowl, succeeded in 118/128 held-out episodes (92% [86, 96]) from the checkpoint at 38.5 min of training (PPO, 512 worlds).
- **Agent-written cup pouring:** on its second reward version, after about 70 min of training in 256 worlds, the policy passed the same 75% bar in 256/256 held-out episodes (100% [98.5, 100]).
- **Imitation:** behaviour cloning from 1,000 scripted demonstrations collected from 256 worlds, with a three-layer network, trained in 66 s and placed the object in the bin in 256/256 held-out episodes (100% [98.5, 100]).
- **Throughput scales with world count.** From 1 to 64 worlds on one NVIDIA L4, throughput grew about 39 times for a Franka Panda scene, about 20 times for a cotton sheet on a table, and about 13 times for a 200 ml pour; for three objects dropped in a bin it grew about 377 times from 1 to 512 worlds.
- **Depth-camera throughput for 1,024 worlds** of a Franka scene on one L4: 70,786 depth images per second at 64×64, 16,111 at 128×128 and 4,133 at 256×256 on the first machine, and 62,785 / 14,372 / 4,106 on a second machine. Adding segmentation to depth changed the cost by less than 1%.
- **Closed-form checks agree well within pre-set tolerances.** Ten selected checks were reported, each run once on a CPU on a development build: pendulum period 8.0×10⁻⁶ against a 1×10⁻³ tolerance, momentum 3.9×10⁻⁶ against 1×10⁻³, sliding with friction 2.8×10⁻³ against 1×10⁻², rope around a post exact against 2×10⁻², rod bending 6.5×10⁻⁷ against 1×10⁻², rod twisting 1.1×10⁻⁶ against 1×10⁻², hanging cable 2.0×10⁻³ against 1×10⁻², column under load 1.3×10⁻² against 5×10⁻², liquid at rest 1.1×10⁻² against 3×10⁻², and soft solid under strain 2.8×10⁻³ against 5×10⁻².
- **No failures in the reliability test.** Ten 5 cm blocks were stacked in each of 1,024 worlds with starting positions shifted by up to 0.5 mm, simulated for 5 s; an error meant any block moving or sinking more than 1 cm or any non-finite value. At each of Alloy's three rigid-body settings (accurate, default and fast) and in two separate runs, 0 of 1,024 worlds had an error.

## Methodology in Plain English

Alloy does not write new physics from scratch; it is a coordination layer on top of existing work. Rigid bodies and robots step in MuJoCo Warp on a GPU and in MuJoCo on a CPU; cloth, soft bodies and elastic rods step in Newton's VBD solver; sand and pastes step in Newton's implicit MPM solver; liquids step in Alloy's own SPH solver. A robot model written as an MJCF file loads unchanged.

A scene is a list of objects, each a shape plus a "material card" — a small file holding the material's measured values with their sources. The user never names a solver. When the scene is built, a router decides each object's route from physical checks in a fixed order: static objects need no solver, then the material phase (liquid, paste, granular), then the shape class (rod, sheet or volume), then rigidity — the router estimates how far the object would be squeezed under the grip force on its card and how much it would bend, and compares that against the card's tolerance. Every decision records the numbers used and the margin to the nearest threshold, so a user or an agent can see why a towel became cloth and a steel ruler did not.

When a scene has more than one solver, the solvers are paired and joined by "proxy bodies": the source solver's bodies appear inside the destination as proxies carrying their poses and velocities, the destination solves its own contacts against them, and the contact forces are fed back to the source. A round in which every solver steps once is called an exchange. Where an interface is stiff, passes repeat until the disagreement between the two sides falls below tolerance, using Aitken's method to relax the fed-back forces, or Newton's ADMM coupler for other strong pairs. Exchange step size is chosen from a stability condition involving the effective mass and contact stiffness at the interface; the clock moves to a finer step immediately and back to a coarser one only after ten quiet periods, and a world that drifts or does disproportionate work is re-run for that control period at a finer step.

Every world is checked after every exchange for non-finite values, penetration, excessive speed, energy jumps and exceeded limits, and graded OK, DEGRADED or INVALID. Scenes replicate into many worlds that step together on one GPU, with chunks of up to 64 exchanges captured as graphs and replayed without returning to the host. The cold-agent test was run as described above, and the numerical measurements (throughput, depth cameras, closed-form agreement, reliability over 1,024 worlds) were run on single L4 GPUs or CPUs on development builds.

## Why This Matters

**Impact on research.** Multi-material scenes are where robot learning increasingly needs to go, and the current pattern — a rigid-body engine plus a separate solver plus bespoke glue — is fragile, hard to reproduce and hard to scale. Alloy offers a single object description, an auditable reason for every solver choice, and per-world health grades that make it possible to distinguish a broken simulation from a weak policy, which is a persistent and rarely reported headache in large-scale reinforcement learning. The cold-agent protocol is also an unusual evaluation style: it measures whether an engine is usable by the kind of agent that now writes much of the world's simulation code.

**Real-world applications:**

- Kitchen and household robots that pour, wipe and fold — the paper's pouring and cup-pouring tasks.
- Factory and assembly robots that route cables through clips and seat connectors, as in the paper's cable-routing and cell-insertion scenes.
- Laundry and textile handling, which the paper's cloth and cotton-sheet scenes represent.
- Bulk-material handling of sand, grains and pastes, which the implicit MPM route covers.

**Industry relevance.** Throughput figures on a single NVIDIA L4 matter for teams without large GPU clusters, and the depth-camera rates (tens of thousands of 64×64 images per second across 1,024 worlds) support vision-based policy learning. The nine shipped robot models (including two Franka arms, a UR10e with a two-finger gripper, bimanual Franka setups, the Unitree G1 and H1-2 humanoids, the Unitree Go2 and the LEAP hand, most from MuJoCo Menagerie), nine ready-made environments, 90 material cards and 118 object cards, plus a downloadable library of 5,423 object cards, lower the setup cost for practitioners. The MCP tool server and fix-carrying errors target the growing practice of having coding agents build and debug simulation scenes.

## Future Directions

- **Maturity of the interface.** The authors describe Alloy as an early 0.x release whose interfaces may still change, and keep a public page of things that do not work yet with measured sizes and workarounds; closing that list is the obvious next step.
- **Broadening the evidence beyond a single agent and single runs.** The cold test used eight sessions of one agent model on one GPU type, with one training run per row and some measurements (throughput, cameras, closed-form checks) from development builds before the first release; repeating this across agents, hardware and seeds is an open question.
- **Extending the coupling and routing story.** The paper reports no head-to-head comparison against hand-built bridges between engines, so whether automatic routing and coupling beat specialist pipelines on accuracy, stability or cost is not established here.
- **Wider material and camera coverage.** The reported camera results are depth (and segmentation at under 1% extra cost) on a Franka scene; how rendering and physics scale together for larger, more diverse multi-material scenes with vision-based policies is not reported.

## Target Audience

Robotics and reinforcement-learning researchers who train manipulation or locomotion policies in simulation; simulation engineers and infrastructure teams building training environments that involve deformable objects, fluids or granular media; practitioners adopting GPU-parallel simulators who need to judge whether an engine will scale to thousands of worlds; and anyone interested in designing simulation tooling that coding agents can use without human help. Beginners will follow the motivation and results; readers wanting the coupling and step-size mechanics will need some background in physics simulation.

## Authors’ abstract

Robots handle much more than rigid objects: towels, cables, water, sand. The simulators used to train robots at scale are strongest on rigid bodies, and adding another material usually means a second engine and hand-written glue between the two. We present Alloy, an open-source physics engine for robot learning in which rigid robots, cloth, cables, liquids, granular material and soft bodies share one scene. Each object is described once; Alloy assigns it to a solver suited…

[The full abstract on arXiv](https://arxiv.org/abs/2611.16312)

[Read the original paper](https://arxiv.org/abs/2611.16312)

## Related papers

- [On the Numerical Reliability of Differentiable Physics-Based Optimization for Robotic Material Manipulation](https://robotics.world/paper/on-the-numerical-reliability-of-differentiable-physics-based-2609.34666) 2026-09-28 · cs.RO · Key terms of the title in common
- [Physics-Informed Causal Reasoning for Nonstationary Robot Dynamics](https://robotics.world/paper/physics-informed-causal-reasoning-for-nonstationary-robot-dynamics-2611.19251) 2026-11-14 · cs.RO · Key terms of the title in common
- [MoRE: Mixture-of-Experts for Multi-Physics Robotic World Models](https://robotics.world/paper/more-mixture-of-experts-for-multi-physics-robotic-world-models-2611.25336) 2026-11-19 · cs.RO · Key terms of the title in common
- [Mind2Act World: A Diagnostic Benchmark for Embodied Mind, Physical Action, and Mind-Action Composition in Robotic Manipulation](https://robotics.world/paper/mind2act-world-a-diagnostic-benchmark-for-embodied-mind-physical-action-2611.26444) 2026-11-19 · cs.RO · Key terms of the title in common
- [VerifLM: Physically Verified Image-Edit-Guided Goal Pose Generation for Robotic Manipulation](https://robotics.world/paper/veriflm-physically-verified-image-edit-guided-goal-pose-generation-for-2611.03268) 2026-11-02 · cs.RO · Key terms of the title in common

---

Canonical: https://robotics.world/paper/alloy-a-multi-material-physics-engine-for-robot-learning-2611.16312
