MEKAWIRE
ExpertarXiv

Modeling and Understanding Neural Weights of Humanoid Policies with Diffusion

Huixuan Cheng, Bike Zhang, Shankar Sastry, Koushil SreenathUniversity of California, Berkeley
In 30 seconds

Berkeley researchers trained a diffusion model on thousands of finished humanoid controllers and used it to generate brand-new controller networks, which then walked, danced and spin-kicked on a real Unitree G1 without fine-tuning. The preprint also finds that the first layer of every such network encodes the robot's body structure, whether trained by reinforcement or imitation learning.

Research question

Can the weights of working humanoid control networks themselves be modelled with a generative model, so that new deployable controllers can be sampled directly, and what does that weight space reveal about what the networks learn?

Problem

Humanoid controllers are produced one at a time by reinforcement learning runs that are slow and sensitive to random seeds. Little work has treated the trained weights as data: whether they form a learnable distribution, whether sampled weights would actually control a robot in the real world, and what structure is shared across controllers.

Previous approach

Weight-space generation has been tried for image classifiers and small control tasks, and humanoid work has focused on better training recipes (motion tracking with RL, distillation into student policies). Controllers for a new behaviour still come from a fresh training run.

New approach

The team collected actor weights from 750 RL training runs per motion with random seeds, keeping eight post-convergence networks per run (6,000 networks per motion), each a three-layer MLP of about 30,000 to 40,000 parameters. A cluster-wise linear autoencoder compresses the weights into a latent space, and a Diffusion Transformer (embedding size 1024) learns the latent distribution. Sampled latents are decoded back into full networks and deployed with the standard protocol on a Unitree G1 humanoid, without fine-tuning.

Results

In simulation (mjlab, 1,024 parallel environments) generated networks reached mean success of 0.993 for walking, 0.941 for dancing and 0.943 for spin kick against 0.999, 0.998 and 0.997 for the trained dataset networks; the best of 100 samples matched the dataset (success 1.000). Smaller transformers did much worse: with embedding 512 the walking progress score was 0.643 versus 0.997 at 1024. Sampled networks performed all three motions on the real G1. First-layer weights consistently gave larger magnitudes to hip-pitch, knee and waist joints, and the same kinematic structure appeared in networks distilled by imitation learning (success 0.9979 to 0.9919 versus RL teachers at 0.9994 to 0.9972).

Limitations

This is a preprint. Generated weights mostly lie inside the training distribution in t-SNE plots, so the method reproduces the range of known controllers rather than inventing new skills. It covers three motions and a single embodiment, the analysis concentrates on the first layer, and the authors state that the interpretable structure has not yet produced better policies. Mean performance of generated networks is slightly below trained ones, so in practice users would sample many and select, which needs a simulator anyway.

Industry impact

For humanoid makers and controller vendors (Unitree, whose G1 was used, and teams building motion libraries on it) the near-term value is a cheaper way to produce many variants of a working controller and a diagnostic for what a policy relies on. The finding that RL and imitation-trained networks share a body-specific first layer hints at warm-start initialisation that could shorten training. Commercial impact is research-stage, two or more years out, and depends on conditional generation from text or trajectories, which the authors list as future work.

The full text is not republished here because the paper's license does not allow it. Read the original on arXiv.