# TMPO: Trajectory Matching Policy Optimization for Diverse and Efficient Diffusion Alignment

*Jiaming Li, Chenyu Zhu, Zhiyuan Ma, Nanxi Yi, Youjun Bao, Li Sun, Quanying Lv, Xiang Fang, Daizong Liu, Jianjun Li, Kun He, Bowen Zhou*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/152405) · [OpenReview](https://openreview.net/forum?id=TL8RqtISvt) · [Open on the map](../papers.html#p152405)

Category: [Diffusion & Image Generation](../pcat/5.md) › [Diffusion Model Distillation and Alignment](../pgroup/101.md) · Type: new method · Keywords: diffusion model alignment, reinforcement learning reward hacking, trajectory matching, Softmax Trajectory Balance, dynamic stochastic tree sampling, generative diversity

Areas: [RL for LLMs & Agents](../areas/llm-rl.md) › Generative Model Reinforcement › Diffusion and Flow Model Reinforcement; [Generative Models (Diffusion & Flows)](../areas/generative-models.md) › Diffusion Model Optimization › Reward Alignment of Diffusion Models

## Summary
TMPO introduces trajectory-level reward distribution matching via Softmax Trajectory Balance and Dynamic Stochastic Tree Sampling to improve diversity and efficiency in diffusion model alignment.

## Explained to a 5-year-old
A robot learns to draw pictures by getting points for how nice they are. If it only tries to get the highest score, it ends up drawing the same picture over and over. The new idea is to look at how many good pictures there are and make the robot draw a variety of them, not just the best one. The robot also shares the early steps of drawing with other attempts so it doesn't have to start from scratch each time. This helps the robot make more colorful and interesting pictures faster.

## Explained to a 5-year-old, longer
When we want a computer to create pictures that match what people like, we give it a score for each picture. The computer tries to make the highest-scoring pictures, but this often makes it repeat the same few images. This repetition makes the pictures less interesting and can even make them look boring. The researchers noticed that the computer was too focused on the best scores and ignored other good options. They came up with a new way to teach the computer that looks at how many good pictures there are, not just the single best one. Instead of only chasing the highest score, the computer now tries to match the variety of good pictures people enjoy. This helps the computer draw a wider range of images, so you see more different styles and ideas. To save time, the computer shares the early steps of drawing with other attempts, so it doesn’t have to start over each time. This sharing makes learning faster and uses less computer power. The new method also keeps the pictures high quality while adding more diversity. As a result, the computer can create pictures that are both beautiful and varied, which is what most people want. The researchers tested this idea on many different kinds of pictures, like faces, objects, and scenes, and it worked well.

## For a technical reader
The paper addresses reward hacking in RL-based diffusion model alignment by moving from scalar reward maximization to trajectory-level reward distribution matching. It introduces a Softmax Trajectory Balance objective that aligns policy probabilities with a Boltzmann distribution derived from rewards, ensuring mode-covering behavior. To improve training efficiency, the method employs dynamic stochastic tree sampling, allowing multiple trajectories to share denoising prefixes and branch at scheduled steps. Empirical evaluations on human preference, compositional generation, and text rendering show a 9.1% diversity gain and competitive performance across downstream and efficiency metrics.

## Problem
Aligning diffusion models via reinforcement learning often suffers from reward hacking, leading to mode collapse and reduced diversity because methods maximize expected reward without preserving coverage over acceptable trajectories.

## Method
The approach replaces scalar reward maximization with trajectory-level reward distribution matching, using a Softmax Trajectory Balance objective that matches policy probabilities to a reward-induced Boltzmann distribution, and employs dynamic stochastic tree sampling to share denoising prefixes and reduce computation.

## Results
The approach improves generative diversity over state-of-the-art methods by 9.1% and achieves competitive performance across downstream and efficiency metrics, attaining a better trade-off between reward and diversity.

## Contributions
It identifies reward hacking due to mode-seeking RL alignment, proposes trajectory-level reward distribution matching with a Softmax Trajectory Balance objective that inherits mode-covering properties, and introduces dynamic stochastic tree sampling for efficient multi-trajectory training.

## Research questions this paper is counted under

- [How can we prevent reward hacking in reward-guided generative models while preserving data fidelity and diversity?](../q/214.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/152405)
