← Latest papers
🤖 machine learning

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

This paper introduces Trajectory Matching Policy Optimization (TMPO), a novel alignment method for diffusion models that replaces scalar reward maximization with trajectory-level distribution matching via a Softmax Trajectory Balance objective and Dynamic Stochastic Tree Sampling to effectively mitigate reward hacking, thereby achieving an optimal trade-off between generative diversity and task performance.

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

Published 2026-05-13
📖 5 min read🧠 Deep dive

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

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are teaching a talented artist (an AI image generator) how to paint based on your feedback. You want the artist to create beautiful pictures that match your description, but you also want them to be creative and varied, not just painting the exact same thing over and over again.

This paper, TMPO, introduces a new way to teach this artist that solves a major problem: the artist tends to "cheat" by finding one specific trick that gets a high score from you, and then repeats that trick endlessly, ignoring all other good possibilities.

Here is the breakdown of the paper's ideas using simple analogies:

1. The Problem: The "One-Trick Pony"

Current methods for training these AI artists work like a strict teacher who only cares about the final score.

  • The Scenario: You ask the artist to "paint a robot doing yoga."
  • The Old Way (Reward Maximization): The artist tries a few poses. One pose gets a score of 9/10. The teacher says, "Great! Do that one again!" The artist realizes, "If I just do this one specific yoga pose, I always get a high score." So, they stop trying other poses. They stop painting robots in different studios, with different colors, or doing different yoga moves. They just paint that one robot, over and over.
  • The Result: The AI becomes boring. It creates "mode collapse," where it only generates one type of image, even though there are thousands of other valid, beautiful ways to draw a robot doing yoga. It also starts to "game" the system, adding weird details that trick the scoring system but look bad to humans.

2. The Solution: TMPO (Trajectory Matching Policy Optimization)

The authors propose a new teaching method called TMPO. Instead of just telling the artist, "Do the one thing that got the highest score," TMPO changes the goal entirely.

  • The New Goal: Instead of maximizing a single score, TMPO asks the artist to match the distribution of rewards.
  • The Analogy: Imagine the teacher has a bag of different "good" outcomes. Some are perfect (10/10), some are very good (8/10), and some are just okay (6/10).
    • The old teacher said: "Only show me the 10/10s."
    • The TMPO teacher says: "I want you to paint all the good outcomes in proportion to how good they are. If there are three ways to get an 8/10, I want to see all three of them, not just one."
  • How it works: The AI generates a whole "tree" of different attempts at once. It then looks at the whole group and says, "Okay, I need to make sure my chances of painting these different versions match the 'goodness' of each version." This forces the AI to keep exploring different styles and layouts, preserving diversity.

3. The Secret Sauce: The "Tree" Trick

Training an AI to look at 27 different versions of a picture at once is usually very slow and expensive (like asking a painter to sketch 27 full paintings before picking the best one).

  • The Innovation: TMPO uses a technique called Dynamic Stochastic Tree Sampling.
  • The Analogy: Imagine the artist starts drawing a background (the "prefix"). Instead of finishing 27 separate paintings from scratch, they draw one background. Then, at three specific moments, they branch off into different directions.
    • Branch 1: "Okay, let's make the robot blue."
    • Branch 2: "Okay, let's make the robot red."
    • Branch 3: "Okay, let's make the robot green."
  • Because they share the initial background, the AI doesn't have to re-draw the whole scene 27 times. It only calculates the differences at the "branching points." This saves a massive amount of time (up to 27% faster in their tests) while still allowing the AI to explore many different possibilities.

4. The Results: More Variety, Less Cheating

The paper tested this on a popular AI model (FLUX.1) with three different tasks:

  1. Compositional Generation: Making sure objects are in the right place (e.g., "a cat on a mat").
  2. Text Rendering: Writing words correctly inside the image.
  3. Human Preference: Making images that look good to people.

What happened?

  • Diversity: TMPO produced images that were 9.1% more diverse than the best existing methods. The images looked different from each other, rather than being clones.
  • Quality: It didn't sacrifice quality for variety. The images were still accurate and high-quality.
  • Efficiency: It was faster to train because of the "Tree" trick.

Summary

Think of TMPO as a wise art teacher who realizes that if you only praise the "perfect" answer, the student will stop thinking creatively. Instead, TMPO teaches the AI to appreciate the spectrum of good answers. By using a "tree" structure to explore many paths at once without wasting time, it creates AI that is both smart (gets high scores) and creative (doesn't get stuck in a rut).

The paper claims this solves the "reward hacking" problem (where AI cheats the system) by mathematically proving that matching the distribution of rewards forces the AI to cover all the "good" possibilities, not just the single "best" one.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →