Not all robots are created equal — but what if you could design one for a specific task? We propose Transformer Transformer, a unified model that does exactly this: hand it a manipulation demonstration, and it generates a complete robot — every link, joint, motor, and inertial property — optimized for that motion. We fabricated one such design for cloth flinging on an ALOHA2 bimanual platform; it reduced tracking error by 73% and max joint speed by 30% versus the original.
Behind that result is a diffusion transformer trained on RoboTokens, a unified tokenization of robot embodiments, states, and actions. The same architecture spans embodiment spaces (wheeled bimanual, quadrupeds, humanoids) and use cases (embodiment generation, cross-embodiment control). Rather than overfitting to one reward function, it is a dynamics model whose reward-agnostic predictions are converted into reward-specific value predictions at inference time, then used to steer embodiment diffusion through a procedure we call Dynamics Self-Guidance. Experiments across three design spaces show zero-shot optimization of unseen rewards and trajectories, improving performance and runtime over an evolutionary baseline.
A 17-minute walkthrough — or scroll for the figure-and-caption version.
A robot's embodiment decides what tasks it can do well. We pour effort into making robots smarter — bigger datasets, better algorithms, more capable policy architectures — but a bad embodiment can hamper even a great policy. You can collect all the tossing data in the world, but if your robot's shape is far from optimal, it might toss itself instead of the ball.
So let's frame the problem concretely. Given as input a target end-effector motion and a reward function, we want to generate a complete robot embodiment for the task — by complete we mean every link, joint, motor, and inertial property, plus a controller that drives the whole thing. We call this motion-conditioned robot co-design.
A randomly procedurally-generated robot attempting the target motion: it falls before it can finish 🙃
Our framework reframes robot co-design as a three-step process: you demonstrate the desired end-effector motion (e.g., from a UMI3 human demonstration), our model generates an optimized embodiment, and the same model validates the design by directly controlling it. The same network plays three roles — generator, critic, and cross-embodiment controller — by training jointly on one unified tokenization of robots.
PART 1
If we want one model to co-design any robot, the network needs a shared vocabulary that spans every embodiment. RoboTokens are that vocabulary: typed tokens for every link, joint, motor, state, and action — organized so a single sequence describes both a robot's embodiment (time-invariant) and its dynamics (time-varying).
RoboTokens has the following key design goals:
We tokenized 11 robots from the MuJoCo Menagerie10, spanning two orders of magnitude in mass (0.65 kg dexterous hand to 67.5 kg quadruped) and from 6 to 35 active joints. Each became a sequence of 28–101 RoboTokens — small enough to diffuse end-to-end.
PART 2
The model is a diffusion transformer (DiT1) trained on RoboTokens with a DDIM4 noise schedule. Noise is added to every input token except the ones we condition on — and by changing which tokens are masked, the same network wears different hats. Mask everything to get an unconditional robot generator. Mask the actions and you get a cross-embodiment controller5,6. Mask the embodiment and you get a motion-conditioned robot designer. Same weights, jointly trained on dynamics.
(And about the pun: the first “Transformer” refers to robots whose embodiments can change. The second refers to the self-attention architecture 🥸)
Because the controller sees the full embodiment as input, it can adjust its control strategy to the robot it's driving. Change link inertias, joint ranges, or motor gains, and the same policy keeps tracking — without any retraining per robot. We behavior-cloned whole-body controllers from RL experts7,8,9 trained one-per-design on the procedural quadruped space.
One policy, many quadrupeds. The same controller tracks the same trajectory across quadrupeds with continuous variations (link dimensions) and discrete variations (DoF, knee direction, spring-loaded vs serial leg).
Run the model with no conditioning at all and it diffuses out complete robots from Gaussian noise. Trained on diverse robots from Menagerie10, a single Transformer Transformer produces fixed-base arms, quadrupeds, humanoids, and dexterous hands. Because diffusion is stochastic, every run gives different robots.
Robots, diffused. A single model generates fixed-base arms, quadrupeds, humanoids, and dexterous hands from the same noise schedule.
PART 3
Now the actual co-design problem: how do we generate a high-reward robot for a reward function the model has never seen during training?
Here is the trick. The same model predicts both the embodiment and its dynamics, so we can feed those predictions into the user's reward function and get a predicted reward. With predicted rewards in hand, we can run the model many times in parallel, predict the reward for each candidate, and return the best one. That is best-of-N sampling, but at GPU speed.
We can do better. Because the predicted reward is a differentiable function of the embodiment tokens, we can take its gradient and inject it back into the diffusion process — pushing samples toward higher reward at every denoising step, following classifier-guided DDIM11. The model is, in effect, asking itself: “how should this robot change to increase the reward?” We call this Dynamics Self-Guidance.
Take a randomly-generated quadruped that falls during a dynamic toss. Ask our model to generate a robot for the same trajectory with only a tracking reward and it lowers the center of mass and widens the support polygon — stable design choices it discovered as a side-effect of trying to maximize tracking reward it has never seen.
Now add a torque-penalty term and the optimization landscape shifts. The model returns a smaller, lighter robot — still tracking the motion, but using 30% less average torque. Add a size penalty and the landscape shifts again. This is what people might call zero-shotting rewards: train on dynamics modeling, optimize at inference for any reward you can write down.
Manipulation isn't one motion; it's a distribution of motions. We want to optimize a robot for an entire task — say, dish washing — not a single trajectory. Diffusion composition14,15 lets us do exactly this: run the model in parallel with different trajectories as conditioning, average the predicted noise at each diffusion step, and you get a generator optimized for all of them simultaneously.
We tested this on the publicly-available UMI bimanual dish-washing dataset3, holding out 26 validation trajectories. Transformer Transformer generated robots optimized over the entire held-out distribution — navigating both the discrete space (spine designs: fixed, sliding, bending) and the continuous space (arm dimensions, mounting offsets) — and the same model then served as the cross-embodiment controller to validate each generated design.
One robot, a whole task. Composed across the 26 held-out UMI dish-washing trajectories, the model returns a single embodiment optimized for the entire distribution — and the same network then drives it through each motion.
We compare against two baselines: Random (sample a robot from the procedural design space) and CMA-ES16, a black-box optimizer widely used in co-design. CMA-ES rolls out candidate robots in MuJoCo17 with the design space's controller (Mink18 for fixed-base / bimanual; an RL expert7 for legged robots), then biases the next generation toward higher-reward samples.
We give all methods the same task: generate a robot for a target trajectory and reward, control it, report the achieved reward.
Like large language models that get better with longer thinking19, Transformer Transformer gets better designs when given more inference seeds to sample over. Performance does eventually plateau after about a minute — unlike the seemingly endless gains LLMs get from longer reasoning. We discuss this in the limitations.
Original ALOHA vs Transformer Transformer-optimized ALOHA. Same task, same target trajectory, two robots. The optimized design unfolds the cloth where the original cannot.
To stress-test the whole system on hardware, we picked dynamic cloth unfolding on ALOHA2. Flinging20 punishes embodiment mistakes through both kinematics (the arm has to reach over the cloth at high speed) and unmodeled dynamics (aerodynamic drag, cloth weight, friction). The original ALOHA design struggled to even track the trajectory.
We asked our model to optimize the ALOHA design for the “Tracking Velocity” reward, then fabricated the resulting design. Two things changed compared to the original:
Geometry and scene. RoboTokens currently cover primitive-based geometry, not arbitrary meshes or deformables, and don't yet encode the surrounding scene or contact targets. Extending to complex geometry and scene context is a clear next step toward fully task-conditioned co-design.
Controller transfer. Our cross-embodiment controller correlates with the RL oracle at Pearson r = 0.53 on diffused embodiments — promising but with headroom. Some outlier embodiments expose where the controller fails to generalize.
Test-time scaling plateau. Like other guided-diffusion methods, our test-time compute gains plateau after about a minute. Unlike LLMs19, more inference time stops helping past a point. Improving reward-prediction accuracy and alternative inference schemes are open directions.
Data generation cost. RL-based whole-body controller data generation is expensive (one RL expert per discrete design choice, 16 hours of A100 per policy). Scaling Transformer Transformer to new design spaces hinges on reducing this cost.
Full reference list available in the paper. The selection above covers the citations used on this page.