> Paper: Recovering Hidden Reward in Diffusion-Based Policies > Authors: Yanbiao Ji, Qiuchang Li, Yuting Hu, Shaokai Wu, Wenyuan Xie, Guodong Zhang, Qicheng He, Deyi Ji, Yue Ding, Hongtao Lu > arXiv: 2605.00623 | 2026-04-30
The AI That Knows How, But Not Why
Imagine a robot that can fold laundry, set a table, or organize a bookshelf — but cannot explain its actions. This is the core dilemma of imitation learning: the AI learned *how* to act, but never *why*. Diffusion policies are powerful imitators that model complex, multimodal action distributions and generate smooth action sequences — yet they merely copy expert behavior with no explicit reward function, no notion of a goal, and they collapse under out-of-distribution conditions.
What EnergyFlow Does
EnergyFlow extracts the implicit reward function from a trained diffusion policy. Its core insight:
> Under maximum-entropy optimality, the score function learned by a diffusion model is the gradient of the expert's soft Q-function.
This means a diffusion policy is not just mimicking actions — it has implicitly learned the expert's value judgments, which can be recovered as a reward function.
Key technical components
- Energy-based parameterization: The diffusion policy is expressed as an energy function whose gradient corresponds to the denoising field; this energy function encodes the implicit reward.
- Conservative-field constraint: Constraining the learned field to be conservative reduces assumption complexity and tightens out-of-distribution generalization bounds.
- No adversarial training: Unlike GAIL-style inverse RL, rewards are extracted directly from the diffusion policy — more stable and efficient.
- Reward recovery: The extracted reward can be used to interpret expert motivation, re-optimize policies in new environments, and combine with other reward signals (e.g., safety constraints).
Why Reward Recovery Matters
Pure imitation has three weaknesses:
1. Out-of-distribution fragility — without a goal, the policy cannot cope with new environments or tasks. 2. Poor interpretability — we cannot explain, debug, or audit why an action was chosen. 3. No composability — behavior cannot be combined with safety or task constraints.
Recovering the reward addresses all three: rewards are human-understandable ("neatly arranged tableware scores high"), support re-optimization in new settings without fresh expert data, and can be composed with other objectives.
Takeaway
In the spirit of Feynman: knowing the name of something differs from understanding it. Likewise, knowing *how* (imitation) differs from knowing *why* (reward). An AI that only imitates is an advanced parrot; one that understands its goal is a true agent. EnergyFlow bridges behavior and intent — a leap from behavior cloning toward intent understanding. When a policy's hidden reward can be recovered, we can finally ask an AI "why did you do that?" and get a meaningful answer.
Questions for researchers
1. Does your policy merely mimic behavior, or understand the goal? 2. Can an implicit reward be extracted from a trained policy? 3. Is reward extraction more stable than adversarial training? 4. Does the extracted reward provide genuine interpretability?
*Imitation is the starting point of learning; understanding is its destination.*