Bellman Diffusion Models

Liam Schramm, Abdeslam Boularias · OpenReview

Abstract

Diffusion models have seen tremendous success as generative architectures. Recently, they have been shown to be effective at modelling policies for offline reinforcement learning and imitation learning. We explore using diffusion as a model class for the successor state measure (SSM) of a policy. We find that enforcing the Bellman flow constraints leads to a simple Bellman update on the diffusion step distribution.

Introduction

In Reinforcement Learning (RL), knowing where an agent is headed is as critical as knowing the immediate next action. This concept is formalized by the Successor State Measure (SSM), which represents the distribution of all future states an agent will visit. While SSMs are theoretically powerful for preventing distribution shift in offline RL—keeping the agent within the regions covered by the training data—they are notoriously difficult to learn. Existing methods often rely on complex mathematical dualities that lead to high variance and instability.

Bellman Diffusion Models (BDM) bridge this gap by using generative diffusion processes to represent the SSM. By shifting from discriminative value learning to generative distribution modeling, BDM provides a more robust framework for maintaining trajectory consistency.

Methodology

The authors introduce a novel approach to learning SSMs through the Noise-TD Update. A key technical insight is the proof that the KL divergence between two diffusion models can be upper-bounded by the squared difference of their noise predictions. This allows the application of a Bellman update directly to the diffusion model's noise predictor, analogous to how Q-learning updates a reward predictor.

To address the inherent noise in diffusion training, BDM employs a Variance Reduction technique. By replacing stochastic targets with deterministic ones from a target network, the authors eliminate approximately 99% of the target value variance. These innovations are integrated into the TD3-SBC (State Behavior Cloning) algorithm. Unlike standard behavior cloning which only regularizes actions, TD3-SBC regularizes the policy so that the agent's entire future state distribution remains similar to the dataset, providing the agent "freedom" to take novel actions as long as they lead to familiar outcomes.

Experimental Results

The model was evaluated on the standard D4RL benchmark, specifically the MuJoCo locomotion tasks (halfcheetah, hopper, and walker2d). The results demonstrate that TD3-SBC achieves state-of-the-art performance across a wide range of dataset types, including medium, expert, and replay buffers.

Performance comparison of TD3-SBC against state-of-the-art offline RL baselines on D4RL tasks.

As shown in the table above, TD3-SBC achieved the highest average performance with a score of 96.0, outperforming strong baselines such as ReBRAC (92.9) and SAC-RND (94.0). Notably, the method set new records on specific challenging tasks, such as hopper-expert (111.5) and halfcheetah-medium-replay (54.7). Beyond raw scores, the BDM regularization resulted in lower variance across training seeds, indicating a more stable learning signal compared to previous state-occupancy methods.

Conclusion and Future Work

Bellman Diffusion Models successfully simplify the learning of successor state measures by leveraging the stability of TD-learning principles within a generative framework. While the computational overhead of diffusion models remains a consideration—with training runs typically lasting 12 to 24 hours—the performance gains and stability improvements are significant. Future research may explore extending BDM to online RL for enhanced exploration or applying it to "General Utilities" RL where rewards are non-linear functions of state distributions.

Summary updated

BibTeX
@misc{schramm2024bellman,
  author = {Liam Schramm and Abdeslam Boularias},
  title = {{Bellman Diffusion Models}},
  year = {2024},
  eprint = {2407.12163},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.12163},
}
Figure