Manuscript Offprint

arXiv:2610.20606

Modeling and Understanding Neural Weights of Humanoid Policies with Diffusion

Huixuan Cheng, Bike Zhang, Shankar Sastry, Koushil Sreenath

Huixuan Cheng, Bike Zhang, Shankar Sastry, and Koushil Sreenath

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 networks can be generatively modeled directly through their weights. We adopt a latent diffusion framework that couples a linear autoencoder with a Diffusion Transformer. The autoencoder compresses actor network parameters into a compact latent space, and the Diffusion Transformer models the distribution of these latents. Trained on networks collected from reinforcement learning for the Unitree G1 robot, our approach generates deployable networks that perform various motions in the real world, including walking, dancing, and spin kick. Beyond generation, we further study the learned weight space to better understand the structure captured by these humanoid control networks. We identify a structural principle in the first-layer weights that consistently reflects the robot's kinematic prior. Notably, this kinematic prior emerges under both Reinforcement Learning (RL) and Imitation Learning (IL) training, suggesting that it is not specific to a particular optimization process but may instead reflect common knowledge associated with humanoid embodiment. Together, these results demonstrate the feasibility of generative modeling in humanoid network weight space, while providing initial insights into the information encoded by their learned weights. Additional results are available on our project website.

I. INTRODUCTION

Humanoid control has progressed rapidly in recent years, from locomotion to whole-body control, with increasingly agile and versatile motions [1], [2], [3]. Highly dynamic humanoid motions can now be learned through imitation of human reference motions [4]. Scaling such motions has further led to humanoid foundation models with broader capabilities [5]. Together, these advances enable humanoid robots to interact with complex real-world environments.

Despite this progress, humanoid skills are still typically acquired by training separate control networks for different tasks, which are then maintained as individual expert policies. An alternative is to directly model and generate these expert networks in weight space. A generative model over network weights could serve as a policy generator, synthesizing control networks for different motions or tasks, potentially conditioned on task descriptors, reference trajectories, or other embeddings, and providing a compact and flexible representation of diverse humanoid skills.

Figure

Fig. 1: Real-world deployment of networks with generated weights. Top: A walking motion. Middle: A dancing motion. Bottom: A spin kick motion. For each motion, the corresponding network weights are denoised by a motion-specific diffusion model and subsequently deployed zero shot in the real world.

Early approaches to weight generation, such as hypernetworks, used a learned generator conditioned on a task or context to produce the weights of a target network [6], [7]. More recent work has explored diffusion-based methods for modeling and generating network weights. In the image domain, diffusion-generated weights can perform image classification, with recent extensions to language classification and tabular prediction [8], [9], [10], [11]. This direction has since extended to embodied control, where latent diffusion models conditioned on target behaviors or trajectories generate network weights for HalfCheetah and Walker in simulation [12], with recent progress extending to manipulation tasks [13], [14]. Notably, weights for quadruped locomotion can also be sampled and deployed in the real world [15]. Generative modeling of humanoid control networks, however, remains largely unexplored, in part due to their high-dimensional

The authors are with the University of California, Berkeley.

Figure

Fig. 2: Method overview. (a) We collect actor weights from 750 training runs with random seeds and retain eight post-convergence networks from each run. Each network is a three-layer MLP. (b) The cluster-wise linear autoencoder is implemented using single-layer encoders and decoders. (c) A diffusion transformer is trained with x-pred loss to model the latent distribution. During inference, the model generates novel network weights that can be deployed in the real world.

weight space. Neural network weights are known to be substantially redundant, with an effective dimensionality far below the nominal parameter count [16], [17], [18], [19], suggesting that humanoid network weights may likewise be modeled through compact latent representations.

Beyond weight generation, a complementary question is what information is encoded in humanoid control network weights. To date, weight space analysis has largely focused on the image domain, where features are comparatively easy to associate with individual layers, from low-level edges and colors to class-specific concepts [20], [21]. In robotics, by contrast, such analysis remains limited: existing studies mostly examine which weights matter, for instance using pruning to identify task-relevant inputs [22]. A systematic understanding of what humanoid control networks encode in their weights therefore remains largely unexplored. Such analysis could reveal regularities that inform more compact architectures, while structures shared across motions may guide transfer learning for acquiring new policies.

In this work, we address two gaps: generating humanoid control networks in weight space and interpreting the structure and information encoded in their weights. We collect a large dataset of RL-trained networks for the Unitree G1 humanoid robot performing walking, dancing, and spin kick motions, and train a linear autoencoder together with a Diffusion Transformer [23] to model their weight distribution. We evaluate the quality and diversity of generated networks in simulation and assess their sim-to-real transfer on hardware, as shown in Fig. 1. Alongside this generative modeling effort, we systematically analyze the collected humanoid networks, investigating the structure encoded by RL-trained networks and how different training paradigms, including imitation learning, and training configurations, such as domain randomization, affect their weight space distributions.

References (31)