Policy Optimization via Diffusion Score Regularization

This direction is merged into another direction: distribution shift. Its last version stays readable and citable here.

Version 1 of 18 papers15 conceptsfrozen 2026-10-04

In offline reinforcement learning (RL), the primary challenge is "distribution shift." When an agent tries to improve upon a static dataset, it often drifts into regions of the state-action space where no data exists. Without real-world feedback, the agent’s value estimates become overoptimistic, leading to catastrophic failure.

To prevent this, researchers typically use a behavioral anchor: a mechanism that keeps the agent’s actions close to the data distribution. While diffusion models are world-class at capturing these complex, multi-modal data distributions, they are notoriously slow because they require dozens of iterative sampling steps to produce a single action.

A new line of research solves this by moving away from sampling and toward distillation. Instead of using the diffusion model as the policy itself, these methods use the score function—the gradient of the data distribution—to guide and regularize standard, fast-acting neural networks.

The Score Function as a Vector Field

To understand why this works, we must look at what a diffusion model actually learns. During training, a diffusion model learns to reverse a noise process. In doing so, it estimates the score function: $\nabla_a \log p(a|s)$.

Intuitively, this score function is a vector field. At any point in the action space, the score points toward the "peaks" of the data distribution—the actions that were actually seen in the dataset.

In Score Regularized Policy Optimization through Diffusion Behavior, Huayu Chen and colleagues demonstrate that we can treat this score function as a regularizer. Instead of sampling from the diffusion model, they take a simple deterministic policy and "nudge" its updates using the score. This allows the agent to benefit from the expressive power of diffusion—capturing multiple ways to solve a task—while maintaining the inference speed of a standard MLP.

Distilling Expressivity into Speed

The trade-off between safety and speed is central to real-time control. In Don’t Trade Off Safety: Diffusion Regularization for Constrained Offline RL, Junyu Guo and Ming Jin apply this logic to safety-critical tasks.

They use the diffusion score as a behavioral prior, distilling it into a Gaussian policy. By manipulating the gradients of the score function alongside reward and safety signals, their framework (DRCORL) ensures the agent stays within the "safe" support of the training data. Because the diffusion model is only used during training to provide these gradient signals, the final policy can run in real-time without the latency of iterative denoising.

Guiding the World Model

The relationship between scores and policies can also be reversed. Rather than using a diffusion model to guide a policy, we can use a policy to guide a diffusion model.

In World Models via Policy-Guided Trajectory Diffusion, Marc Rigter and Jun Yamada introduce PolyGRAD. Instead of predicting the future one step at a time—which leads to compounding errors—PolyGRAD diffuses an entire trajectory of states and actions simultaneously.

To ensure this "imagined" trajectory matches the agent's current behavior, they incorporate the gradient of the agent's policy into the denoising process. This "policy-score guidance" nudges the diffusion process to generate sequences that are both physically plausible (according to the dynamics model) and behaviorally relevant (according to the agent).

Solving Coordination via Score Decomposition

The most complex application of this idea appears in multi-agent systems. When multiple agents learn from offline data, they must not only stay near the data but also stay "in sync" with each other. If the data contains two different successful strategies, agents might accidentally mix them, leading to coordination failure.

Dan Qiao and Baoxiang Wang address this in Offline Multi-agent Reinforcement Learning via Score Decomposition. Their method, OMSD, breaks down the joint score function of all agents into a sequence of conditional scores.

By regularizing each agent's policy with these decomposed scores, they ensure that agents pick the same "mode" of behavior from the dataset. This bottom-up gradient signal acts as a decentralized coordination mechanism, allowing agents to remain synchronized without needing a centralized controller during execution.

Summary of the Intuition

The shift from diffusion-as-policy to diffusion-as-regularizer represents a maturation of generative models in RL.

  1. Diffusion Models act as high-fidelity maps of the training data.
  2. Score Functions provide the "compass" (gradients) pointing toward the data.
  3. Policy Optimization uses these gradients to stay safe and coordinated, while the final agent remains a fast, simple network capable of real-time action.

Papers in this version

History & citationVersion 1 · 2026-10-04

Merged into another direction · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_policy_optimization_via_diffusion_score__29165ec2,
  title = {Policy Optimization via Diffusion Score Regularization},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/policy-optimization-via-diffusion-score-regularization/rdr_29165ec2901847769c01229a049c5867},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-25},
}

This exact version (version 1, frozen text):

@misc{lacuna_policy_optimization_via_diffusion_score__29165ec2_v1,
  title = {Policy Optimization via Diffusion Score Regularization},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/policy-optimization-via-diffusion-score-regularization/rdr_29165ec2901847769c01229a049c5867/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-25},
}