Loop-Free Inverse Reinforcement Learning via Sequential Value Recovery with Q-Score Matching

Yang Chen, Yitan Zhang, Michael J. Witbrock, Shuyue HuNeurIPS 2026

TL;DR

Inverse Reinforcement Learning (IRL)—figuring out why an expert acts the way they do—usually involves an exhausting, unstable cat-and-mouse loop between guessing a reward and training a policy to test it. This paper breaks that loop entirely. By realizing that modern diffusion models secretly learn the landscape of action values, the authors turn IRL into a crisp, linear, three-step offline pipeline that runs 2–3x faster than the fastest existing methods without sacrificing quality.

What Problem Does This Paper Address?

Imagine watching a master chef make an omelet. Standard imitation learning tries to copy their exact hand movements. Inverse Reinforcement Learning (IRL), on the other hand, tries to deduce their internal scorecard (the reward function)—what makes a good omelet—so an agent can generalize that goal to new kitchens.

Historically, IRL has been trapped in a computational Groundhog Day known as bi-level optimization. Because you can't read the expert's mind directly from demonstrations, traditional algorithms guess a reward function, run a full (or partial) Reinforcement Learning (RL) loop to train a learner policy on that guess, compare the learner to the expert, tweak the reward, and repeat. Even offline IRL methods get bogged down by this alternating "reward-policy loop," making training notoriously slow, compute-heavy, and finicky to stabilize, especially in high-dimensional robotics tasks.

Figure 1: Traditional inverse reinforcement learning alternates between reward learning and policy optimization, while our loop-free version trains each component once without a reward-policy loop.

Methods

The authors introduce Loop-Free Inverse Reinforcement Learning (LFIRL), a purely offline, sequential pipeline where every component is trained once on frozen outputs from the previous step. No policy optimization, no environment rollouts.

The magic starts by pre-training a standard Diffusion Policy on expert demonstrations. Diffusion models work by learning a score function—a vector field pointing noisy actions back toward clean, expert-like actions. Under Maximum-Entropy RL math, this score function ($\nabla_a \log \pi^*(a|s)$) is proportional to the action-gradient of the optimal soft Q-function ($\nabla_a Q^*(s, a)$), which measures the long-term value of taking action $a$ in state $s$.

LFIRL extracts the reward in three clean stages:

  1. Stage I (Unveil the Shape of Value): Train a Q-network so its action-gradients match the diffusion policy's score (a technique called Sobolev training), while gently anchoring expert actions to have slightly higher values than nearby noisy perturbations. Then, estimate the state value function $V(s)$ from $Q(s,a)$ using a clever convex loss inspired by Gumbel regression, bypassing an otherwise intractable integral over continuous actions.
  2. Stage II (Fix the Elevation): Matching gradients tells you the slopes of the Q-landscape, but not its absolute altitude—any state-dependent offset $b(s)$ disappears when you take a derivative with respect to actions. The authors learn a separate network for $b(s)$ by enforcing consistency across state transitions and pinning known terminal (absorbing) states to zero value, then re-fit $V(s)$.
  3. Stage III (Extract the Reward): With calibrated $Q$ and $V$ functions in hand, recovering the reward $r(s,a)$ is simple algebra: train a reward network to satisfy Bellman consistency ($r = Q(s,a) - \gamma V(s')$).
Diffusion score arrows guide actions toward optimal trajectories in the Push-T task, while local perturbations act as value anchors.

Datasets

The authors evaluate LFIRL on four established continuous-control and manipulation benchmarks (no new benchmarks are introduced):

  • PointMaze (UMaze, Medium, and Large configurations)
  • Franka Kitchen (a robotic arm completing four sequential household subtasks)
  • Adroit Hand Pen (high-dimensional dexterous pen spinning/manipulation)
  • Push-T (pushing a T-shaped block into a target pose, capable of multiple valid solution paths)

Key Insights and Ideas

  • Diffusion policies are secret Q-gradient estimators: You don't need a learner policy to contrast against the expert; demonstrations already contain local preference signals, and diffusion models naturally parameterize the exact calculus needed to reconstruct action values directly.
  • Calculus leaves a constant of integration—and it matters: Because Stage I only integrates over actions, each state gets an arbitrary vertical shift $b(s)$. Ablation experiments show that skipping Stage II's offset calibration tanks downstream performance—proving that aligning values across time steps is essential.
  • Offline doesn't automatically mean fast; loop-free does: LFIRL handily beats offline IRL baselines in speed because even offline methods drag their feet when reward updates repeatedly wait on policy/value updates. Freezing each stage breaks the bottleneck.
  • Not all generative models give equally good gradients: When the authors swapped their DDPM diffusion model for Flow Matching under the same epoch budget, reward recovery degraded—likely because DDPM's multi-noise-level denoising builds a sturdier local gradient field around expert data than Flow Matching's continuous transport paths.

Key Results

  • Speedup: LFIRL is the fastest method across every benchmark, achieving a 2–3x speedup over the fastest baseline when training the diffusion policy from scratch (saving 41% to 69% of wall-clock time), and a 2–5x speedup when loading a pre-trained diffusion policy.
  • True Reward Alignment: When comparing recovered rewards directly against ground-truth environment rewards, LFIRL achieves the highest Pearson linear correlation (0.77 average) and Spearman rank correlation (0.85 average) on 5 out of 6 tasks.
  • Downstream Control & Discrimination: Policies trained from scratch (via SAC) on LFIRL's recovered rewards match or beat state-of-the-art online and offline baselines on PointMaze and Franka Kitchen. On high-dimensional trajectory classification (telling good rollouts from bad ones), LFIRL hits 97.17% accuracy on Adroit Hand Pen (near the top 98.33%) and 74.17% on Push-T (competitive with top baselines at ~79%).

Limitations and Future Work

Because Stage I reconstructs the Q-function using local gradient and margin supervision around observed expert actions, LFIRL is hungry for anchor coverage. In reduced-data experiments (cutting demonstrations by half and three-quarters), performance drops noticeably as those expert anchors grow sparse. For future work, the authors suggest exploring broader generative modeling paradigms beyond DDPM and Flow Matching to supply sharper action-gradient supervision, alongside techniques to make value recovery more sample-efficient when expert data is scarce.

Summary updated

Abstract

Inverse Reinforcement Learning (IRL) aims to recover a reward function that explains expert demonstrations. Existing IRL methods typically rely on a bi-level optimization procedure that alternates between reward learning and policy optimization, leading to substantial computational burden and training instability. In this work, we introduce a different route that eliminates policy optimization entirely by leveraging diffusion policies. Our key insight is that a diffusion policy encodes the action-gradient structure of the optimal soft Q function, enabling reward learning to be cast as a sequence of value recovery problems, thereby allowing us to bypass reward-policy loops inherent in prior IRL methods. Specifically, our method proceeds in three stages: (I) recovering the optimal soft Q function via action-gradient matching and estimating the corresponding soft value function (LogSumExp of Q values) in a way inspired by Gumbel regression; (II) calibrating these soft values by inferring a state-dependent offset; (III) extracting the reward by enforcing Bellman consistency. This leads to *Loop-Free Inverse Reinforcement Learning* (LFIRL), a fully offline algorithm that operates in a simple, loop-free, and sequential manner. LFIRL is simple to implement, significantly improves training efficiency while maintaining strong reward recovery performance. Empirically, across Maze, Franka Kitchen, Adroit Hand Pen, and Push-T benchmarks, LFIRL achieves **2-3x** speedup over the fastest baselines, while matching or surpassing state-of-the-art methods in reward recovery quality.
BibTeX
@inproceedings{chen2026loop,
  author = {Yang Chen and Yitan Zhang and Michael J. Witbrock and Shuyue Hu},
  title = {{Loop-Free Inverse Reinforcement Learning via Sequential Value Recovery with Q-Score Matching}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=QGmivFge7W},
}
Figure