TL;DR
Figuring out why an agent behaves the way it does—recovering its hidden reward function—usually requires complex, bespoke optimization, and even then, infinitely many reward functions can explain the exact same actions. This paper shows that once you pick a sensible baseline to pin down a unique reward, Inverse Reinforcement Learning (IRL) collapses into two surprisingly standard steps: predicting actions (classification) and running a few regressions. Better yet, this modular approach outperforms more complex deep-learning baselines, especially when action spaces get large or data comes from separate sources.
What Problem Does This Paper Address?
In Reinforcement Learning (RL), you use a reward function to find an optimal policy. In Inverse Reinforcement Learning (IRL), you flip the script: you watch an agent act—say, a doctor treating patients or a human driving a car—and try to reverse-engineer the reward function driving their choices.
The catch? Rewards are fundamentally ambiguous. In standard stochastic decision models (like Maximum-Entropy IRL, where agents choose actions probabilistically via a softmax over future values), you can add an arbitrary state-dependent bonus to all actions and adjust future expectations to compensate, leaving the agent’s visible behavior completely unchanged. This is called partial identification: behavior only points to a broad family of possible rewards.
To pin down a single, interpretable reward function, economists and ML researchers impose a "normalization"—a rule like "doing nothing always yields zero reward." A recent method called DeepPQR used such a fixed "anchor action" to recover rewards. However, relying on a single reference action falls apart when that action is rarely taken, when there is no obvious "do-nothing" choice, or when actions are continuous. The authors ask: can we generalize how we pin down rewards, and make estimating them radically simpler?
Methods
The authors introduce Generalized Policy-to-$Q$-to-Reward (GenPQR), broadening single-action anchors into statewise affine normalizations. Instead of fixing the reward of one specific action, you fix the weighted average of rewards in each state (under some chosen reference distribution $\mu$) to a target function $g(s)$. This covers fixed anchors, state-specific anchors, zero-mean rewards, or even data-driven historical baselines.
Here is the magic trick: the authors prove that without normalization, a trivial reward function—simply setting the reward equal to the log-probability of the observed behavior policy ($\log \pi(a|s)$) with zero future value—already explains the agent's behavior! Every other valid reward is just a mathematical transformation ("potential-based shaping") away from this trivial one.
Finding the exact transformation that satisfies your chosen normalization turns out to be equivalent to standard offline policy evaluation. GenPQR executes this in three clean, black-box steps:
- Policy Estimation (Classification): Estimate the agent's behavior policy $\hat{u}(s,a) \approx \log \pi(a|s)$ from observed actions using any off-the-shelf classifier, behavior cloning, or imitation learning tool.
- $Q$-Evaluation (A Few Regressions): Treat $\hat{u}(s,a) - g(s)$ as a synthetic reward and estimate the $Q$-function (expected cumulative value) of your reference policy $\mu$. Using standard Fitted $Q$-Evaluation (FQE), this is just a short sequence of supervised regressions.
- Algebraic Recovery: Plug that estimated $\hat{Q}$ directly into a closed-form equation to get the unique true reward—avoiding an extra reward-regression step required by DeepPQR.
Datasets
Rather than introducing static benchmark datasets, the authors adapt the synthetic infinite-horizon control environment from the DeepPQR paper (featuring continuous states and deterministic transitions) to isolate reward accuracy across three setups:
- Matched anchor regimes: Varying trajectory counts (200, 1000, 2500) and how often the anchor action appears (rare at 16% vs. common at 25%).
- Scaling action spaces: Fixing the dataset at 2500 trajectories while scaling the number of discrete actions from 5 up to 40.
- Complementary-source data fusion: A novel 20-action evaluation setup with two separate datasets from the same environment—one logging state-action transitions without rewards, and an auxiliary dataset (100 to 5000 trajectories) logging states and realized outcomes without recording which actions were taken.
Key Insights and Ideas
- Behavior cloning is already valid IRL: Simply taking $\log \pi(a|s)$ solves the unnormalized IRL problem. Moreover, the authors prove (Theorem 2) that if all you want to do is compare which of two policies is better under the current environment dynamics, you don't need fancy IRL at all—log-probabilities from behavior cloning give the exact same value differences! You only need normalized reward recovery to interpret the reward itself or evaluate policies when transition physics change.
- Sharing statistical strength across actions: Because DeepPQR isolates transitions where the anchor action was taken, it starves for data when that action is rare. GenPQR's regression step pools data across all observed actions, keeping estimates stable even as action spaces balloon.
- Fusing incomplete datasets: Because GenPQR allows any statewise average normalization, it can fuse decoupled datasets (e.g., clinical logs of treatments without outcomes + registry logs of patient outcomes without treatment details) to pin down true rewards—something single-anchor methods fundamentally cannot do.
Key Results
- Better accuracy, less time: When anchor actions are rare (200 trajectories, 16% anchor rate), GenPQR slashes reward Mean Squared Error (MSE) from DeepPQR's 2.60 down to 0.91, boosts reward correlation from 0.46 to 0.66, and cuts compute time from 7.33s to 5.22s.
- Graceful scaling: As the action space grows from 5 to 40 actions (shrinking anchor-action samples from ~6400 to ~800), DeepPQR's reward MSE explodes above 4.0, while GenPQR stays below 0.5.
- Data fusion wins: Combining 2500 action trajectories with 5000 action-free outcome trajectories cuts reward MSE to 0.210, beating anchor-only GenPQR (0.443, a 52.6% reduction) and DeepPQR (2.253) across all 100 random seeds.
Limitations and Future Work
- Near-deterministic policies hurt: GenPQR relies on taking $\log \hat{\pi}(a|s)$. When an agent acts almost deterministically (probabilities near zero), log-probabilities blow up, requiring probability clipping in practice and inflating theoretical error bounds.
- Unidentifiable temperature scale: Choices alone only identify rewards up to an unknown Gumbel shock scale (softmax temperature $\tau$). Knowing whether a reward is $1$ or $10$ requires external domain knowledge.
- Coverage and model assumptions: Accurate recovery requires adequate data coverage over states and actions. Additionally, if real human behavior violates the softmax/MaxEnt decision model ("behavioral misspecification"), GenPQR recovers a well-defined mathematical projection rather than the agent's true internal utility.
- Future extensions: While the authors mention that regression error bounds could be relaxed using minimax $Q$-learning or importance weighting, broader future work is otherwise not extensively discussed in the main text.
Summary updated