Boosting Continuous Control with Consistency Policy

Yuhui Chen, Haoran Li, Dongbin Zhao

TL;DR

Diffusion models have revolutionized reinforcement learning (RL) by capturing complex, multi-modal behaviors, but they are notoriously slow due to their iterative sampling process. Consistency Policy with Q-Learning (CPQL) solves this by leveraging "consistency models" to generate high-quality actions in a single step. The result is a state-of-the-art policy that is up to 45x faster at inference and 15x faster to train than previous diffusion-based methods, working seamlessly across both offline and online RL tasks.

What Problem Does This Paper Address?

In recent years, diffusion models have become the "gold standard" for representing policies in offline RL because they can model the diverse, multi-modal distributions found in human-collected datasets. However, they face two major hurdles:

  1. Efficiency: Standard diffusion requires hundreds or thousands of iterative steps to "denoise" a random signal into a valid action. This makes them too slow for real-time applications like high-frequency robot control.
  2. Guidance Accuracy: To improve a policy, we usually use a Q-function (which estimates the value of an action) to guide the diffusion process. However, providing accurate Q-guidance for the intermediate noisy steps of a diffusion chain is mathematically difficult and often leads to poor performance.

The authors aim to create a policy that retains the expressive power of diffusion but operates with the speed of a standard neural network.

Methods

The core innovation is the application of Consistency Models to RL. Unlike standard diffusion, which learns to take small steps along a trajectory, a consistency model learns a mapping that jumps from any point on that trajectory directly back to the starting point (the "clean" data).

Key components of the CPQL approach include:

  • One-Step Generation: By establishing a mapping from the "Probability Flow ODE" trajectories, CPQL can generate an action from Gaussian noise in a single forward pass.
  • Q-Guided Distillation: Instead of just mimicking the dataset (behavior cloning), the authors integrate Q-learning into the training objective. This allows the model to "distill" the optimal policy directly into the consistency mapping.
  • Reconstruction Loss ($L_{RC}$): The authors found that the standard consistency loss could be unstable in RL. They proposed a simpler reconstruction loss that drives the policy to recover original actions more reliably.
  • CPIQL: An "Implicit" version of the algorithm that uses expectile regression (from Implicit Q-Learning) to better handle out-of-distribution actions in offline settings without needing to sample them.

Datasets

The authors evaluated CPQL on a massive battery of benchmarks:

  • D4RL (Offline): 11 tasks including Locomotion (HalfCheetah, Hopper, Walker2d) and Adroit (Pen) tasks.
  • DeepMind Control Suite (Online): 15 tasks ranging from simple balancing (Cartpole) to complex movement (Cheetah Run, Walker).
  • OpenAI Gym MuJoCo (Online): 6 standard continuous control tasks (Ant, Humanoid, etc.).

Key Insights and Ideas

  • Bypassing the "Intermediate Step" Problem: By mapping noise directly to the desired action, CPQL avoids the need for guidance during intermediate diffusion steps. This eliminates the "inaccurate guidance" problem that plagues multi-step diffusion policies.
  • "Free" Exploration: In online RL, the inherent stochasticity of the consistency model's generation process provides natural exploration. The authors found they didn't need additional strategies (like epsilon-greedy) to discover good behaviors.
  • Stability through Simplicity: The transition from a complex consistency loss to a reconstruction-based loss was a key "aha moment" for stabilizing training in the noisy environment of RL.

Key Results

CPQL demonstrates that you don't have to trade speed for performance:

  • Speedup: Compared to Diffusion-QL, CPQL is 45x faster during inference and 15x faster during training.
  • State-of-the-Art Performance:
    • On D4RL Locomotion, it achieved a ~4% improvement over Diffusion-QL.
  • On DeepMind Control Suite, it outperformed the previous leader, DreamerV3, by an average of 8%.
  • In the Adroit Pen tasks, it showed massive gains (e.g., scoring 89.3 vs. Diffusion-QL's 72.8).
  • Versatility: It is one of the few diffusion-based methods that performs exceptionally well in both offline (static data) and online (interactive) environments.

Limitations and Future Work

While CPQL is a major step forward, the authors note a few areas for improvement:

  • Diversity Control: Better mechanisms are needed to control the diversity of the diffusion model during the training process to ensure it doesn't collapse into a single mode too early.
  • Multi-step Consistency: The current model focuses on one-step generation. The authors suggest exploring whether a "multi-step consistency policy" (e.g., 2 or 3 steps) could provide even stronger representation for extremely complex tasks without sacrificing too much speed.
  • Theoretical Depth: While the paper provides proofs for policy improvement, further study into the interaction between the reconstruction loss and the Q-function guidance is warranted.

Summary updated

BibTeX
@inproceedings{chen2024boosting,
  author = {Yuhui Chen and Haoran Li and Dongbin Zhao},
  title = {{Boosting Continuous Control with Consistency Policy}},
  booktitle = {AAMAS},
  year = {2024},
  url = {https://openreview.net/forum?id=s0DNvKLOWJ},
}
Figure