Scalable Maximum Entropy Reinforcement Learning for Diffusion Policies via Adjoint Matching

Serge Thilges, Onur Celik, Denis Blessing, Emiliyan Gospodinov, Gerhard Neumann

TL;DR

Diffusion policies excel at representing complex, multi-modal action distributions in reinforcement learning (RL), but training them online is notoriously slow and memory-intensive. This paper introduces Adjoint Matching Diffusion Policy (AMDP), a framework that treats policy optimization as a stochastic optimal control problem. By avoiding costly backpropagation through the diffusion process entirely, AMDP trains at the speed of simple Gaussian policies while matching or outperforming state-of-the-art methods on complex robotic tasks.

What Problem Does This Paper Address?

While diffusion models have revolutionized generative AI and imitation learning, adapting them to online reinforcement learning remains a major bottleneck. In offline settings, you have a static dataset of ground-truth actions to train on using standard score matching. In online RL, however, the agent must learn from its own evolving experiences without ground-truth actions.

To get a learning signal from a Q-function, existing online diffusion policies typically resort to one of three problematic approaches:

  1. Backpropagating through the entire diffusion chain (e.g., reverse KL methods), which incurs massive memory overhead and slows training to a crawl.
  2. Importance sampling, which suffers from catastrophic variance in high-dimensional action spaces.
  3. Langevin dynamics heuristics, which lack theoretical guarantees in finite-time regimes.

The authors set out to design a diffusion policy algorithm that is theoretically grounded, highly scalable, and completely eliminates the need to backpropagate through the simulation of the diffusion process.

Methods

The core innovation is Adjoint Matching Diffusion Policy (AMDP). By framing maximum entropy RL as a stochastic optimal control (SOC) problem, the authors leverage recent advances in Adjoint Matching.

Instead of simulating the full forward and backward path of the diffusion process for every gradient step, AMDP utilizes Reciprocal Adjoint Matching. This allows the model to be optimized in a simulation-free manner using only the terminal actions, which can be stored in a standard replay buffer and reused for multiple gradient updates.

Overview of the AMDP training pipeline.

Two critical extensions make AMDP stable and practical:

  • Error Function (erf) Action Squashing: Standard RL policies use a tanh function to bound actions within a valid range (e.g., $[-1, 1]$). AMDP replaces this with a scaled error function (erf). Crucially, the math behind erf squashing perfectly cancels out the Gaussian marginal density gradient of the reference diffusion process, drastically simplifying the regression objective and improving numerical stability.
  • Trust-Region Loss: To prevent the policy from changing too drastically between iterations (a common failure mode in online RL), the authors introduce a relaxed Lagrangian trust-region constraint that stabilizes updates without adding significant computational overhead.

Datasets

The authors evaluated AMDP across 70 distinct environments spanning four major benchmark suites:

  • MuJoCo Playground (DMC & Humanoid): 24 highly parallelized environments focusing on classic control and humanoid locomotion.
  • ManiSkill3: 10 tabletop robotic manipulation tasks involving contact-rich interactions (e.g., peg insertion, stacking cubes).
  • HumanoidBench: 29 complex, high-dimensional tasks requiring whole-body manipulation and long-horizon coordination.
  • DeepMind Control Suite (DMC): 7 high-dimensional dog and humanoid environments evaluated in an off-policy setting.

Key Insights and Ideas

  • Simulation-Free is a Game Changer: Because the reciprocal adjoint matching loss evaluates expectations over intermediate states that can be sampled analytically from the terminal state, the algorithm completely bypasses backpropagation through time. This unlocks massive memory savings.
  • The "Erf" Trick Simplifies the Math: Choosing erf over tanh isn't just a minor tweak; it's a mathematical synergy. It makes the log-ratio of the reference density and the Jacobian determinant a constant, causing its gradient to vanish and reducing the policy loss to a clean, elegant regression objective.
  • Trust Regions are Mandatory for Online Diffusion: The ablation studies revealed that without the trust-region constraint ($\epsilon = \infty$), performance drops significantly because the target action distribution shifts too rapidly for stable critic estimation.

Key Results

AMDP achieves state-of-the-art performance while drastically reducing computational overhead:

  • Wall-Clock Efficiency: AMDP introduces only a minor ~10% computational overhead compared to highly optimized, simple Gaussian baselines (like REPPO). In contrast, standard reverse-KL diffusion methods (like DIME) are 10x to 80x slower depending on the number of diffusion steps.
  • Superior Scaling: Because it avoids backpropagation through the SDE, AMDP scales effortlessly to massive architectures. The authors successfully trained a 106-million-parameter actor model (300x larger than the baseline) as a proof of concept.
  • Benchmark Performance: AMDP consistently matched or outperformed strong diffusion and Gaussian baselines. It performed exceptionally well on the complex, whole-body manipulation tasks of HumanoidBench.
Figure 2: On-policy performance comparison. Aggregated IQM learning curves across (a) Mu- JoCo Playground DMC, (b) MuJoCo Playground humanoid locomotion, (c) ManiSkill3, and (d) HumanoidBench. Shaded regions show 95% bootstrap confidence intervals.

Limitations and Future Work

The primary limitation of AMDP lies in its initialization strategy. To guarantee the "memoryless" property required for adjoint matching, the framework restricts the reference diffusion process to a deterministic initial condition ($X_0 = 0$).

However, most existing diffusion policies pre-trained on offline data use a stochastic Gaussian prior ($\mu_0 = \mathcal{N}(0, I)$). This architectural mismatch makes it difficult to use AMDP for offline-to-online fine-tuning. The authors note that incorporating memoryless noise schedules is a promising future direction to bridge this gap and enable seamless transfer from offline datasets to online environments.

Summary updated

BibTeX
@inproceedings{thilges2026scalable,
  author = {Serge Thilges and Onur Celik and Denis Blessing and Emiliyan Gospodinov and Gerhard Neumann},
  title = {{Scalable Maximum Entropy Reinforcement Learning for Diffusion Policies via Adjoint Matching}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=h8DYJlF7Jt},
}
Figure