Value function estimation using conditional diffusion models for control

Bogdan Mazoure, Walter Talbott, Miguel Ángel Bautista, R Devon Hjelm, Alexander T Toshev, Joshua M. Susskind · Submission to ICLR 2024 · Rejected

TL;DR

Diffused Value Function (DVF) factorizes value function estimation into a reward predictor, a policy embedding, and a conditional diffusion model that directly predicts multi-step discounted future state occupancies. Because this generative occupancy model can be pre-trained purely on action-free, reward-free state sequences, DVF bypasses standard temporal-difference bootstrapping and long-horizon autoregressive rollouts while achieving competitive continuous control and exploration performance.

What Problem Does This Paper Address?

Modern offline reinforcement learning (RL) and imitation learning thrive on large datasets, but scaling them often hits a wall: high-quality expert demonstrations with action and reward annotations are scarce and costly. At the same time, abundant "low-quality" passive data—such as unlabelled videos or raw state observations—lacks explicit action and reward labels, preventing straightforward application of Temporal Difference (TD) learning or Behavior Cloning (BC).

While model-based RL can leverage unlabelled trajectories by learning world models, classical approaches rely on autoregressive step-by-step rollouts. These rollouts accumulate compounding prediction errors and scale poorly with episode horizon length. DVF tackles this by asking: Can we estimate long-horizon value functions from state sequences without autoregressive rollouts or TD bootstrapping?

Methods

DVF reformulates the state-action value function as the expected reward over the discounted state occupancy measure: $$Q^\pi(s_t, a_t) = \frac{1 - \gamma^{H-t}}{1 - \gamma} \mathbb{E}_{s \sim \rho^\pi(s_t, a_t)} [r(s, \pi(s))]$$ Rather than using TD backups to estimate $Q^\pi$, DVF decouples learning into three distinct components:

  1. Diffusion-Based Occupancy Model ($\rho_\theta$): A Denoising Diffusion Probabilistic Model (DDPM) built on a Perceiver I/O backbone learns the distribution over future states $s_{t+\Delta t}$ given a current state $s_t$, a time horizon offset $\Delta t$, and a policy representation $\phi(\pi)$. Crucially, this model is trained purely on sequences of states, predicting future states in $\mathcal{O}(1)$ time without needing intermediate unrolls or action/reward labels.
  2. Policy Representation ($\phi(\pi)$): The authors condition the diffusion network on either:
  3. Scalar representations: Indexing policies along an optimization path (e.g., gradient step counts).
  4. Sequential representations: Conditioning on short rollout context state trajectories $\{s_i\}_{i=1}^n$.
  5. One-Step Bellman Decoupling for Policy Optimization: Calculating policy gradients directly through the large Perceiver I/O diffusion network ($\nabla_a \epsilon_\theta$) is computationally prohibitive. DVF circumvents this by performing a single-step Bellman decomposition: $$Q^\pi(s_t, a_t) = r(s_t, a_t) + \gamma \mathbb{E}_{s_{t+1}}[V^\pi(s_{t+1})]$$ The state value $V(s_{t+1})$ is approximated via Monte Carlo sampling from the diffusion model scored by a compact reward MLP $r_\psi$, allowing policy updates to differentiate only through the lightweight reward head.

Datasets

The authors evaluated DVF across multiple continuous control benchmarks:

  • Continuous Mountain Car: Used for sanity checks on value, return, and reward correlations.
  • D4RL Maze2D (umaze, medium, large): Evaluated both for trajectory generation and offline curiosity-driven exploration.
  • PyBullet Offline Suite: Simulated robot locomotion benchmarks (ant, halfcheetah, hopper, walker2d) across random, medium, and mixed datasets.
  • D4RL Franka Kitchen: High-dimensional manipulation tasks (kitchen-complete-v0, kitchen-partial-v0, kitchen-mixed-v0). The authors also evaluated a pooled variant where the diffusion backbone is pre-trained across all kitchen datasets.

Key Insights and Ideas

  • Generative, Normalized Successor Features: The diffusion model effectively acts as a generative continuous-state analog to successor representations, synthesizing plausible future states under a target policy directly.
  • Constant-Time Multi-Step Prediction: Traditional dynamics models require rolling out $k$ sequential forward passes ($\mathcal{O}(k)$) to predict $k$ steps ahead. By conditioning the diffusion process on temporal offset $\Delta t$, DVF generates long-horizon future states in $\mathcal{O}(1)$ rollout complexity, removing compounding transition error.
  • Overcoming the Single-Step Policy Improvement Bound: In offline RL, vanilla Monte Carlo estimation locks an agent to the logging policy $\mu$. Explicit policy conditioning $\rho(s \mid s_t, \phi(\pi))$ enables true off-policy evaluation and multi-step policy improvement without an online simulator.
  • Curiosity from Multi-Step Occupancy: When augmenting rewards with a representation-difference exploration bonus ($\|f(s_t) - f(s_{t+\Delta t})\|$), sampling $s_{t+\Delta t}$ from DVF's long-term diffusion model drives significantly broader state coverage than standard 1-step novelty metrics.

Key Results

  • Franka Kitchen Manipulation: DVF matches or outperforms strong offline RL and diffusion baselines. On kitchen-complete-v0, DVF achieves $74.8 \pm 13$ and DVF (pooled across tasks) reaches $79.1 \pm 12$, outperforming CQL ($43.8$), IQL ($62.5$), Diffusion BC ($53.8$), and Diffusion QL ($67.2$), while using one-third the training gradient steps of other diffusion methods.
  • Exploration in Sparse Tasks: In sparse-reward Maze2D exploration, DVF's long-horizon curiosity bonus solved maze2d-umaze $125.04 \pm 32.57$ times per 10k steps, compared to $\sim 1.00$ times for BC, CQL, SAC, and TD3+BC. State space coverage (coordinate range) was consistently higher across all maze topologies.
  • PyBullet Locomotion: DVF matched or outperformed CQL and BC across locomotion datasets, showing pronounced robustness when learning from low-return random policy datasets.

Limitations and Future Work

  • Raw Observation Space: DVF operates directly on raw observation vectors rather than a learned latent space, requiring manual tuning of the diffusion noise schedule across different environments.
  • Policy Conditioning Overhead: Conditioning multi-step future distributions on policies remains difficult; autoregressive state conditioning can scale with context length if the environment is stochastic.
  • Online Non-Stationarity: While suitable for offline setups, tracking continuous non-stationary policy updates during online training using a large diffusion model remains an open operational challenge.

Summary updated

BibTeX
@misc{mazoure2023value,
  author = {Bogdan Mazoure and Walter Talbott and Miguel Ángel Bautista and R Devon Hjelm and Alexander T Toshev and Joshua M. Susskind},
  title = {{Value function estimation using conditional diffusion models for control}},
  year = {2023},
  eprint = {2306.07290},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.07290},
}

Loading related content...

Figure