Is Conditional Generative Modeling all you need for Decision Making?

Anurag Ajay, Yilun Du, Abhi Gupta, Joshua B. Tenenbaum, Tommi S. Jaakkola, Pulkit Agrawal

In the realm of offline reinforcement learning (RL), agents attempt to learn optimal policies from fixed datasets of past experiences without further environment interaction. Traditionally, this relies on Temporal Difference (TD) learning to estimate a value function. However, TD learning is notoriously unstable, suffering from the "deadly triad" of function approximation, off-policy learning, and bootstrapping. This often leads to overestimating the value of out-of-distribution actions, requiring complex heuristics to keep the policy close to the training data.

This paper asks a provocative question: What if we stop doing RL altogether? Instead of estimating values, the authors propose treating decision-making as a conditional generative modeling problem. By modeling the distribution of successful trajectories, we can simply "prompt" the model for high-reward or constraint-satisfying behavior.

The Decision Diffuser Framework

The authors introduce the Decision Diffuser, a framework that views trajectory generation through the lens of conditional diffusion models.

Decision Diffuser Overview

The framework is built on several key design choices:

  • Diffusing over States: Unlike previous approaches that diffuse over both states and actions, Decision Diffuser only models sequences of states. Actions (like joint torques) are often high-frequency and noisy, making them harder to model than relatively smooth state transitions.
  • Inverse Dynamics: To navigate the environment, the model uses a separate, simple inverse dynamics network that predicts the action required to transition between predicted states.
  • Classifier-Free Guidance: During training, the model learns to generate trajectories both with and without conditioning information (like total return, a specific skill, or a constraint). At test time, a guidance scale is used to "push" the model toward trajectories that maximize the desired condition.
  • Low-Temperature Sampling: By reducing variance during the denoising process, the model focuses on the most likely—and thus highest-performing—trajectories in the dataset.

Key Insights and Zero-Shot Compositionality

The Decision Diffuser yields several surprising insights into how generative models can implicitly solve RL problems:

  • Implicit Dynamic Programming: Conditional diffusion models can "stitch" sub-optimal trajectories together. If the model sees a path from A to B and another from B to C, it can generate a direct path from A to C, effectively performing dynamic programming without a $Q$-function.
  • States > Actions: Modeling only states leads to much better performance than modeling state-action pairs. The inverse dynamics approach acts as a "low-pass filter," ignoring the high-frequency noise of control signals.
  • Zero-Shot Compositionality: Because the model uses classifier-free guidance, it can satisfy multiple constraints at once even if it never saw a trajectory satisfying both during training.
Zero-Shot Constraint Composition

For example, it can be prompted to "stay inside circle R" AND "stay outside circle r," successfully generating trajectories within the resulting ring shape. It can also blend skills, creating smooth transitions between different gaits for a quadruped robot.

Performance and Results

The model was evaluated on standard benchmarks like D4RL Locomotion and Kitchen, as well as custom environments for block stacking and quadruped running.

  • State-of-the-Art Performance: Decision Diffuser outperformed or matched top-tier offline RL algorithms. On D4RL Locomotion, it achieved an average score of 81.8, compared to CQL's 77.6 and the original Diffuser's 75.3.
  • Long-Horizon Tasks: It showed significant gains in the D4RL Kitchen environment, which requires long-term credit assignment—a traditional weakness for non-TD methods.
  • Constraint Satisfaction: In a Kuka stacking task, Decision Diffuser achieved a 63.8% success rate on multiple constraints, whereas traditional RL baselines (like BCQ and CQL) failed completely (0% success).

Limitations and Future Work

While powerful, the approach has limitations. The model struggles in environments with high stochasticity; because it conditions on returns, it cannot easily distinguish between a "lucky" high reward and a "skillful" one. It also currently assumes a fully observable Markov Decision Process (MDP), leaving partially observable settings (POMDPs) for future work. Furthermore, diffusion models are iterative and can be slow at inference time compared to simple policy networks. Finally, while it handles "AND" and "NOT" logic well, it cannot natively support "OR" compositions due to the lack of an explicit density estimate for each skill.

Despite these limitations, the Decision Diffuser demonstrates that conditional generative modeling is a highly capable, flexible alternative to traditional offline RL.

Summary updated

BibTeX
@inproceedings{ajay2023is,
  author = {Anurag Ajay and Yilun Du and Abhi Gupta and Joshua B. Tenenbaum and Tommi S. Jaakkola and Pulkit Agrawal},
  title = {{Is Conditional Generative Modeling all you need for Decision Making?}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=sP1fo2K9DFG},
}
Figure