Overview
Standard imitation learning (IL) focuses on matching an expert's average performance, but it often ignores their "risk attitude"—how they handle uncertainty and variance. This paper introduces Return Distribution Matching (RDM), a framework that trains agents to match the expert’s entire distribution of rewards using the Wasserstein distance. Crucially, the authors prove that history-dependent (non-Markovian) policies are essential for capturing true risk sensitivity.
The Problem: Beyond Average Performance
Most imitation learning algorithms (like Behavioral Cloning or GAIL) aim to match the expert's occupancy measure. In plain English, they want the agent to visit the same states and take the same actions as the expert. This works well for matching the expected (average) return, but it fails to capture the "shape" of the return distribution.
Imagine an autonomous driving expert who always chooses a path with a 100% chance of arriving in 20 minutes, avoiding a shortcut that has a 50% chance of taking 10 minutes and a 50% chance of a 40-minute delay. A standard IL agent might see the average is the same (25 minutes) and pick the risky shortcut.
The authors identify two major gaps in current approaches:
- Risk-Neutrality: Current IL is inherently risk-neutral.
- The Markovian Trap: Standard RL assumes "Markovian" policies (where the next action depends only on the current state). The authors prove that Markovian policies are mathematically incapable of matching complex return distributions; to match a distribution, an agent needs to remember how much reward it has already "banked" during the episode.
Return Distribution Matching (RDM)
The authors propose matching the expert's return distribution using the Wasserstein distance, a metric that measures the effort required to morph one distribution into another.
Key Innovations
- Augmented Policy Class: Since standard policies aren't expressive enough, the authors introduce a subclass of non-Markovian policies. These policies choose actions based on the current state ($s$), the time step ($h$), and the cumulative reward earned so far ($G$).
- Discretization: To make this history-dependence computationally tractable, they discretize the reward space using a $\theta$-covering. This prevents the "curse of dimensionality" while allowing for tight control over approximation error.
- Two New Algorithms:
- RS-BC (Risk-Sensitive Behavioral Cloning): An offline approach for when environment dynamics are unknown. It estimates the augmented policy directly from expert trajectories.
- RS-KT (Risk-Sensitive imitation with Known Transitions): For when the environment model is known. It formulates the problem as a Linear Program (LP) over an augmented state space $(s, G)$, allowing the agent to find the optimal distribution-matching policy efficiently.
Key Insights
- History Matters for Risk: The core theoretical insight is that matching a distribution requires memory. If you want to end up with a specific total reward distribution, your strategy at step 10 must change depending on whether you were lucky or unlucky in steps 1 through 9.
- Wasserstein > Total Variation: The authors show that using Wasserstein distance allows for much better "sample complexity" (learning from fewer demonstrations) compared to stricter metrics like Total Variation distance, which can require an exponential amount of data.
- Independence from State Space: One of the most surprising theoretical results is that RS-KT's sample complexity is independent of the number of states ($S$) and actions ($A$). It only depends on the horizon and the desired accuracy, making it highly efficient for large environments if the dynamics are known.
Experimental Results
The study focuses on the tabular setting (discrete states and actions) to provide rigorous theoretical proofs, evaluating the algorithms on randomly generated Markov Decision Processes (MDPs) against synthetic, risk-sensitive experts.
In simulations, RS-BC and RS-KT consistently outperformed standard Behavioral Cloning (BC) and MIMIC-MD. While standard BC could match the mean return, its Wasserstein error remained high because it couldn't capture the variance or tail behavior of the expert. Furthermore, RS-KT achieved significantly lower error with fewer trajectories than RS-BC by leveraging knowledge of the environment's transitions. The authors also demonstrated a "robust" version of their algorithm that can match the expert's distribution even when the expert's underlying reward function is unknown.
Limitations and Future Directions
- Tabular Limitation: The current work is strictly for tabular environments. Scaling these proofs and algorithms to continuous state spaces (like those found in robotics or high-dimensional control) remains a challenge.
- Computational Complexity: Solving the Linear Program for RS-KT becomes expensive as the horizon ($H$) increases or the reward discretization ($\theta$) becomes finer.
- Future Work: The authors suggest extending this to "state-only" feedback (where we see what the expert did but not the rewards they received) and developing deep learning versions of RS-BC for real-world validation.
Summary updated