TL;DR
Diffusion models make expressive reinforcement learning (RL) policies, yet standard training methods mostly just nudge them toward good actions while ignoring what not to do. The authors introduce BOBAC, an algorithm that pits the best and worst candidate actions against each other in head-to-head preference matches. By teaching the policy to simultaneously embrace winners and shun losers—weighted by how confident the critic is—BOBAC achieves state-of-the-art control across everything from virtual cheetahs to 61-dimensional humanoid robots.
What Problem Does This Paper Address?
Imagine learning to steer around an obstacle on a highway. You can swerve left, or you can swerve right; going straight is a disaster. Standard RL policies often rely on unimodal Gaussian distributions, which struggle here—averaging "left" and "right" drives you straight into the obstacle. Diffusion policies (the generative tech behind image creators, adapted to output robot actions) effortlessly capture these complex, multi-modal choices.
However, training a diffusion policy in online RL—where the agent learns on the fly and its critic's evaluation of what's "good" is constantly shifting—is tricky. Existing methods generally fall into two camps: backpropagating gradients through the noisy generation steps, or weighting actions by their estimated value ($Q$-value). Both suffer from a blind spot: they are pointwise and positive-focused. They pull the policy toward high-value actions, treating samples independently, without explicitly pushing the policy away from bad actions. Because of this, half the learning signal is left on the table, capping the expressive power of the diffusion model.
Methods
Instead of evaluating actions in isolation, BOBAC (BOotstrapped Bipartite Actor-Critic) reframes policy updates as pairwise preference learning—borrowing a page from the playbook used to align large language models (specifically, the Bradley-Terry preference model).
Here is how BOBAC turns standard off-policy actor-critic components (like twin $Q$-networks) into a contrastive learning machine:
- Bipartite Pair Construction (Novel): For a given state, the diffusion actor generates a local pool of $K$ candidate actions (e.g., $K=32$). The critic ranks them by their $Q$-values, skimming off the top-$m$ "winners" and bottom-$m$ "losers" (e.g., $m=4$) to form $m^2$ head-to-head pairs.
- Tractable Surrogate Score (Novel adaptation): Bradley-Terry models require computing exact log-probabilities of actions, which is mathematically intractable for diffusion models. The authors bypass this using the model's denoising error as a surrogate score: if the network easily denoises an action, it assigns it a higher implicit probability.
- $Q$-gap-aware Soft Gate (Novel): Not all matchups are created equal. If Action A barely beats Action B, the critic might just be noisy. BOBAC multiplies the preference loss by a sigmoid "soft gate" based on the difference in $Q$-values ($Q$-gap). Massive blowouts drive big policy updates; close calls are gently down-weighted.
Datasets
Because this is an online RL paper, there are no static training datasets—agents generate their own data interactively. The authors evaluate BOBAC across 10 continuous-control environments (no new benchmarks are introduced):
- OpenAI Gym MuJoCo (v4): 6 classic locomotion tasks (
Ant,HalfCheetah,Humanoid,HumanoidStandup,Walker2d,Swimmer). - H1Bench: 4 high-dimensional, whole-body humanoid robotics tasks (
H1-maze,H1-reach,H1hand-reach,H1hand-crawl), scaling up to 61-dimensional action spaces.
Key Insights and Ideas
- Explicit negative supervision matters—if it's structured: In ablations, training only on the top-ranked positive actions caused a sharp drop in performance. Even more telling, pairing good actions with randomly sampled actions (instead of critic-verified bottom-$m$ losers) also degraded results and destabilized training. The magic lies specifically in contrasting the best local ideas against the worst local mistakes.
- Binary rankings aren't enough under a noisy critic: Standard preference learning treats a 1-point win the same as a 100-point win. Removing BOBAC's $Q$-gap soft gate led to severe training instability and lower returns, proving that magnitude-aware weighting is crucial when the critic itself is still learning.
- Denoising error is an effective stand-in for likelihood: Using the evidence lower bound (via simple noise-prediction error) gives diffusion policies a clean, gradient-friendly handle for contrastive ranking without backpropagating through the entire multi-step sampling chain.
Key Results
Tested against 10 baselines—including classic algorithms (SAC, PPO, TD3, DSACT) and recent generative RL methods (DACER, DPMD, QVPO, DIPO, QSM, FlowRL)—BOBAC takes first place on all 10 tasks.
- MuJoCo: BOBAC beats classic SAC by wide margins, including +123.2% on
Ant-v4(5745.7 vs. 2574.2), +57.3% onHumanoid-v4, and +38.0% onHalfCheetah-v4. Against the strongest generative-policy baseline on each task, it still wins across the board—peaking at a +73.8% improvement onSwimmer-v4. - H1Bench: On complex humanoid control, BOBAC outperforms the runner-up on every task by 10.2% (
H1-maze), 13.6% (H1-reach), 18.0% (H1hand-crawl), and 27.2% (H1hand-reach).
Limitations and Future Work
Sampling $K=32$ actions from a 20-step diffusion model for every state during actor updates requires extra optimization-side compute—though the authors note their compute-fairness analyses confirm BOBAC's gains aren't merely a byproduct of extra FLOPs, and pushing $K$ or diffusion steps higher yields diminishing returns. Looking ahead, the authors suggest extending this contrastive pairwise objective to other expressive generative policy classes beyond diffusion, as well as designing more lightweight preference-construction strategies to boost sample efficiency and stability in massive action spaces.
Summary updated