Research
Modeling and Understanding Neural Weights of Humanoid Policies with Diffusion
Humanoid robots typically acquire skills by training a separate control network for every motion, and each of those networks is stored as an individual expert policy.

- arXiv
- 2610.20606 · Preprint · not peer-reviewed
- Published
- 2026-10-14
- Authors
- Huixuan Cheng, Bike Zhang, Shankar Sastry, Koushil Sreenath
In plain words
Humanoid robots typically acquire skills by training a separate control network for every motion, and each of those networks is stored as an individual expert policy.
AI summary
Overview
Research area: Robot learning / generative modeling of neural network weights, applied to humanoid whole-body control (sim-to-real reinforcement learning).
Technical level: Advanced. The paper assumes familiarity with diffusion models, latent autoencoders, transformer architectures, PPO-based RL training, and humanoid motion tracking.
Scope (one sentence): The paper asks whether the weights of trained humanoid control networks can themselves be modeled and generated with latent diffusion, and what structure those weights encode about the robot's body.
What This Paper Is About
Humanoid robots typically acquire skills by training a separate control network for every motion, and each of those networks is stored as an individual expert policy. This paper treats the networks themselves as data: it collects thousands of trained actor networks for the Unitree G1 humanoid, compresses their weights into a compact latent space, and trains a diffusion model to generate new weights that can be deployed directly on hardware. In parallel, the authors inspect the learned weights to understand what information about the robot's body they consistently encode.
Key Contributions
- A weight-space generative model for humanoid policies. A cluster-wise linear autoencoder compresses actor network parameters into a 2048-dimensional latent, and a Diffusion Transformer (DiT) with x-prediction models that latent distribution, generating complete networks that deploy zero-shot on the Unitree G1 for walking, dancing, and spin kick.
- Evidence for structured "local generalization" rather than memorization. At a matched distance from the training set, diffusion-generated networks outperform noise-perturbed training networks on all three motions, indicating the model captures the local geometry of the weight manifold instead of replaying training samples.
- Identification of a kinematic prior in first-layer weights. The first layer consistently assigns larger weight magnitudes to the waist and to joint indices 1 and 7 (left and right hip pitch) — the pelvic region — followed by the remaining leg joints, then the arms, across all three motions.
- A cross-paradigm and cross-configuration analysis of weight space. The same kinematic prior emerges in imitation-learned (distilled) networks, and domain randomization is shown to reshape weights in a structured, non-linear way while preserving overall structure.
Main Findings
- Generated networks approach dataset quality. Mean success rates for DiT-generated networks were 0.999 ± 0.001 (walking), 0.998 ± 0.004 (dancing), and 0.997 ± 0.004 (spin kick), versus 1.000 for all three in the RL-collected dataset. Corresponding tracking errors were 0.162 ± 0.003 m/s for walking (mean linear velocity command error) and 0.162 ± 0.002... rather, 0.037 ± 0.001 and 0.046 ± 0.002 MPKPE for dancing and spin kick, against dataset values of 0.161, 0.036, and 0.044.
- Only a small fraction of samples fail. The authors report that taking the best 90% of 100 generated samples gives mean and variance comparable to the RL-collected networks, indicating fewer than 10% of samples exhibit performance collapse.
- Embedding dimension matters, and matters more for dynamic motions. Increasing the DiT embedding dimension from 512 to 768 to 1024 improved task progress from 0.643 to 0.890 to 0.997 for walking, from 0.536 to 0.651 to 0.965 for dancing, and from 0.296 to 0.873 to 0.969 for spin kick. The authors interpret the larger gains on spin kick as evidence that highly dynamic motions have more complex weight distributions.
- Diffusion beats distance-matched noise. At equivalent noise levels of σ = 0.110 (walking), 0.078 (dancing), and 0.090 (spin kick), diffusion-generated networks achieved success rates of 0.993, 0.941, and 0.943, versus 0.914, 0.865, and 0.783 for noise-perturbed training networks at the same distance.
- Generated samples stay in-distribution. In t-SNE embeddings using 100 training and 100 generated samples, generated weights largely fall within the support of the training distribution; samples at the boundary still performed real-world spin kicks on the G1.
- A consistent kinematic prior in the first layer. Input regions such as joint position and gravity show larger weight magnitudes than last action and command. Averaged over 50 random seeds, the per-joint importance ordering is stable across motions: waist and hip pitch first, then remaining leg joints, then arms.
- The prior is not specific to RL. Networks distilled via offline supervised regression from RL teachers reproduce the same first-layer prior; normalized per-joint importance curves for RL and IL nearly overlap across all motions, even though RL weights have larger magnitudes and linear interpolation between RL and IL networks does not yield a working controller.
- Domain randomization reorganizes rather than displaces weights. Networks trained from the same initialization with and without domain randomization share overall structure, but their element-wise difference is substantial and itself structured like the trained weights; the difference alone is not a functional network.
- First-layer subspaces are shared but motion-modulated. Linear CKA on the shared joint-position and joint-velocity inputs gives 0.92–0.94 within a motion across seeds and 0.69–0.82 across motions, compared with roughly 0.5 for two independently Kaiming-initialized weight matrices.
Methodology in Plain English
Data collection. The authors train the Unitree G1 in the mjlab simulator with PPO for three motions: walking (velocity-command locomotion), dancing (rhythmic whole-body tracking), and spin kick (a highly dynamic kick). Each actor is a three-layer MLP with hidden dimensions [128, 128] and ELU activations, totaling roughly 30k–40k parameters depending on the observation dimension (99 for walking, 154 for dancing and spin kick, with 29 action dimensions). They run 750 independent seeds per motion and keep eight post-convergence checkpoints from each, giving 6,000 networks per motion. Observation normalization is disabled during training, and only actor weights are modeled — the critic is discarded.
Compression. A linear autoencoder shrinks each ~30k–40k-dimensional weight vector into a 2048-dimensional latent. The encoder is split into two clusters: one linear layer compresses the first layer's weights and biases into 1024 dimensions, another compresses the second and third layers into 1024 dimensions, and the two are concatenated. Splitting by cluster matters because first-layer parameters have larger magnitudes, which complicates joint encoding — the two-cluster version reached reconstruction MSE of 1.87e-4 (walking), 1.07e-4 (spin kick), and 6.36e-5 (dancing), versus 1.05e-3, 5.53e-4, and 3.10e-4 for a single-cluster model with the same 2048-dimensional latent.
Generation. A Diffusion Transformer models the latents while the autoencoder is frozen. Rather than predicting noise, the DiT predicts the clean latent directly (x-prediction). The transformer uses sequence length 128, patch size 16, embedding dimension 1024, depth 8, 8 attention heads, a feed-forward expansion ratio of 4, GELU activations, sinusoidal positional encoding, and adaLN-Zero timestep conditioning, trained with AdamW at 2e-4 for 100k steps with batch size 256. Sampling uses DDPM with EMA over 1000 steps; the decoded weights form a complete actor network.
Evaluation. In simulation, success rate is measured over 1,024 parallel environments and tracking error is mean linear velocity command error (walking) or mean per-keybody position error (dancing, spin kick). The main baselines are the RL-collected networks, noise-perturbed training networks at matched distance, and smaller DiT embedding dimensions.
Weight analysis. The authors visualize first-layer heatmaps, compute per-joint importance by averaging absolute weights over 128 hidden nodes and 50 seeds, compare RL against 50 distilled IL networks per motion (trained on RL rollout buffers of 1,024,000 samples for walking, 913,408 for dancing, and 950,272 for spin kick), and compare networks trained with and without domain randomization from identical initialization.
Why This Matters
Research impact. This is one of the first studies to generate functional humanoid control networks directly in weight space and deploy them on real hardware, extending prior weight-generation work that had been shown in simulation for HalfCheetah and Walker and on real quadrupeds. It also opens a largely unexplored interpretability direction for robotics: rather than asking which weights matter (as pruning studies do), it asks what a control network's weights encode about the body it controls. The finding that a kinematic prior appears under both RL and IL suggests a structure tied to embodiment rather than to a particular optimizer.
Real-world applications:
- Skill libraries for humanoid robots: compact latent storage of many motions, sampled and deployed on demand instead of maintaining separate expert checkpoints.
- Rapid policy synthesis for new motions: a generative prior over networks could shortcut or warm-start training rather than training from scratch.
- Robustness testing and stress analysis: sampling neighboring networks that are functionally valid enables systematic evaluation of controller robustness.
- Diagnostics for sim-to-real pipelines: characterizing how domain randomization reshapes weights gives a new lens on a standard sim-to-real technique.
Industry relevance. Companies developing general-purpose humanoid platforms need scalable ways to organize, store, and generate whole-body controllers. A weight-space generative model points toward a compact, flexible representation of diverse skills, and the kinematic-prior finding offers a concrete architectural prior that could inform initialization and network design.
Future Directions
- Extend the analysis beyond the first layer. The authors explicitly note that deeper layers and the full effect of domain randomization on weight space remain less understood.
- Conditional generation. The current DiT is unconditional; conditioning on behavior descriptors, reference trajectories, or text is proposed as future work.
- Broader datasets. The study covers three motions on a single embodiment (the Unitree G1), so the generality of the observed weight-space structures remains to be validated across robots and larger motion sets.
- Turn interpretability into performance. The authors state that the identified structures have not yet translated into improved performance or policy generation, leaving open whether the kinematic prior can be used as an initialization or warm start, or to guide more compact architectures.
Target Audience
Robotics researchers working on humanoid control, sim-to-real transfer, and robot learning; machine learning researchers interested in generative modeling of neural network weights and in weight-space interpretability; and practitioners building skill libraries or policy-generation pipelines for legged and humanoid platforms. Readers without background in diffusion models, transformer architectures, and RL-based locomotion training will find the methodology sections demanding.
Authors’ abstract
Recent advances in robot learning have driven rapid progress in humanoid control, enabling increasingly agile behaviors in the real world. However, humanoid control networks are typically obtained through conventional training procedures, while comparatively little attention has been given to directly modeling the distribution of their learned weights and generating functional networks in weight space. In this work, we investigate whether high-performing humanoid control…
The full abstract on arXivRelated papers
- DreamVLA: From Generated Human Motions to Humanoid Vision-Language-Action Policies 2026-11-07 · cs.RO · Also by Shankar Sastry
- When Do Discrete Actions Make Good Continuous Controllers? 2026-10-14 · cs.RO · Also by Koushil Sreenath
- GLST: Global-Local Spatio-Temporal Memory Decomposition Framework for Online Chained-Goal Navigation 2026-10-13 · cs.RO · Also by Shankar Sastry
- BT-Agent: Deploying Onboard Robot Agents with Behavior Trees and Multi-Fidelity Evaluation 2026-10-09 · cs.RO · Also by Shankar Sastry
- Precise SE(3) End-Effector Tracking in Whole-Body Humanoid Control 2026-10-07 · cs.RO · Also by Koushil Sreenath