Manuscript Offprint

arXiv:2611.04614

Policy Network Diffusion

Jiate Liu, Deheng Ye

Abstract

Diffusion models have shown remarkable progress in AI-generated content, including images and videos. In this paper, we explore whether diffusion models can generate the parameters of policy networks in reinforcement learning (RL), and whether the generated policies exhibit generalization capabilities. To achieve this, we propose Diffusion-based Conditional Policy Network Parameter Generation (DPPG), which consists of a Transformer-based autoencoder and a task-conditioned diffusion model. The autoencoder achieves a high compression rate by patchifying network parameters, while the task-conditioned diffusion model generates corresponding parameters conditioned on different environments. Our experiments demonstrate that, with a single unified DPPG model, we can synthesize high-quality policies across a diverse set of tasks from different environment domains, including Classic Control, Atari games, and MuJoCo. Additionally, our method can generate networks with a larger number of parameters compared to previous approaches. Furthermore, we find that in previously unseen environments, DPPG can generate parameters that achieve faster convergence and reach competitive performance, showcasing the potential future applications of parameter generation via diffusion.

Preface. When this work was originally conducted at Tencent in 2025, parameter generation via diffusion was largely viewed as a niche meta-learning curiosity. The field was dominated by supervised learning benchmarks, and the idea of synthesizing reinforcement learning policy networks directly from random noise received limited attention. However, the recent breakthrough that frontier models can directly edit the weights of open-source LLMs—effectively treating weight modification as a generative task—has triggered a sudden reevaluation of this paradigm. What was once dismissed as a toy problem is now recognized as a foundational capability: if we can generate or edit weights directly, we unlock a fundamentally new way to adapt, customize, and compose models without expensive from-scratch training. This paper stands as one of the earliest systematic explorations of diffusion-based parameter generation for decision-making policies, predating the current wave of interest by nearly two years. We hope this revival serves as a reminder that seemingly premature ideas often arrive years before their time.

1 Introduction

Originating from non-equilibrium thermodynamics [Jarzynski, 1997], diffusion processes were introduced for denoising in unsupervised learning [Sohl-Dickstein et al., 2015] and soon refined to denoising diffusion probabilistic models (DDPM) [Ho et al., 2020, Song et al., 2021]. Different from traditional generative methods such as variational autoencoders [Kingma and Welling, 2014, Higgins et al., 2017] and generative adversarial networks [Goodfellow et al., 2014], diffusion models adopt a training paradigm consisting of a forward process and a reverse process. The superior generation quality of diffusion models has significantly advanced the progress of AI-generated content (AIGC), with unprecedented generation quality for images and videos [Rombach et al., 2022, Ramesh et al., 2022, Ho et al., 2022].

The successful applications of diffusion models in image and video synthesis inspire research on adapting diffusion models to generate other types of content. One such attempt is to synthesize model parameters using diffusion processes [Wang et al., 2024]. By directly fitting the optimized model parameter distribution, we can utilize diffusion models to sample network parameters for desired task requirements, known as a learning-to-learn paradigm [Hospedales et al., 2022, Finn et al., 2017]. Parameter generation using diffusion models typically shows promising results compared with prior approaches using hyper-networks [Ha et al., 2017] and variational autoencoders [Peebles et al., 2022]. These works commonly focus on generating neural network parameters for ad hoc domains such as image classification [Wang et al., 2024, Soro et al., 2024], tabular data prediction [Soro et al., 2024, Yuan et al., 2024], and implicit neural fields [Erkoç et al., 2023].

*Work done at Tencent in 2025.

Nevertheless, existing work mainly considers generating parameters for neural networks in limited supervised learning tasks. In this paper, we explore whether this paradigm can be extended to more complex reinforcement learning tasks. Supervised learning tasks often yield relatively similar network checkpoints with a stable training process, whereas reinforcement learning tasks present more challenging conditions with diverse network structures and parameter distributions. For instance, there may be multiple optimal policies that solve a task in different ways, leading to a more diverse distribution for diffusion models to fit. Moreover, the differences in observation spaces and action spaces across reinforcement learning tasks also require more flexible and adaptive parameter generation methods.

Based on these requirements, we propose Diffusion-based Conditional Policy Network Parameter Generation (DPPG), a fully Transformer-based model that generates policy parameters for multiple reinforcement learning tasks. DPPG consists of an autoencoder and a latent diffusion model. The autoencoder is designed to compress policy parameters into a latent representation; we find that a high compression rate can be achieved by patchifying the parameters and feeding them into a Transformer model. The latent representation is then fed into the diffusion model to generate new policy parameters. We implement a task-conditioned latent diffusion model to realize effective parameter generation from simple prompts. We evaluate DPPG on a variety of reinforcement learning tasks including Classic Control suites, Atari games, and MuJoCo locomotion tasks. Our experiments show that DPPG can generate high-quality policy parameters for different reinforcement learning tasks within one pre-trained model. Notably, in up to 20 Atari, 5 Classic Control, and 5 MuJoCo tasks, the policy generated by a unified DPPG model can achieve performance comparable to the original policy trained from scratch in each task. Moreover, we find that DPPG exhibits a certain degree of generalization: it is able to generate parameters in unseen environments that converge faster and achieve higher performance.

To summarize, our contributions are as follows:

• We are the first to propose generating policy parameters for decision-making tasks directly via diffusion models.

• We propose DPPG, which innovatively integrates an autoencoder and a diffusion model with fully condition-based Transformer-based modules. This architecture enables the generation of large-scale parameter policy networks and allows training a unified model across multiple tasks.

• We show that one pre-trained DPPG model can generate policy parameters for various tasks with performance equal to or even exceeding that of policies trained with RL from scratch.

• We observe that DPPG shows decent generalization capabilities: it can generate parameters in previously unseen environments that converge faster and achieve higher performance.

References (51)