Abstract
Offline Imitation Learning (IL) seeks to mimic expert behavior using pre-recorded datasets without environment interaction. While theoretical models suggest that shortening the planning horizon (by reducing the discount factor $\gamma$) should enhance robustness against compounding errors in inferred dynamics, existing state-of-the-art algorithms exhibit a "pathological failure" where performance collapses as $\gamma$ decreases. This paper identifies a hidden distribution mismatch between empirical data and discounted objectives as the root cause. We propose Inverse Geometric Initial state sampling (IGI), a re-weighting technique that aligns these distributions, allowing the planning horizon to serve as a powerful implicit regularizer.
Introduction
In Offline IL, agents often utilize visitation distribution matching to align their state-action trajectories with those of an expert. A critical hyperparameter in this process is the discount factor $\gamma$, which defines the "effective planning horizon." Theoretically, a lower $\gamma$ makes an agent more "near-sighted," which should protect it from the compounding errors inherent in dynamics models learned from limited, often suboptimal, offline data.
However, empirical evidence shows the opposite: in algorithms like DemoDICE and SMODICE, reducing $\gamma$ leads to a total failure in performance. This research investigates why this discrepancy exists and how to resolve it to unlock the benefits of horizon control.
The Horizon Paradox
The authors demonstrate that the failure of current methods at low $\gamma$ is not a theoretical flaw in horizon control but an implementation mismatch. Discriminators in these algorithms are typically trained on undiscounted empirical data from the dataset. However, the mathematical objectives they serve assume a discounted distribution. As $\gamma$ decreases, the gap between the empirical (undiscounted) and the objective (discounted) distributions widens, causing the discriminator to provide inaccurate signals to the agent.
Inverse Geometric Initial state sampling (IGI)
To bridge this gap, the authors introduce Inverse Geometric Initial state sampling (IGI). Instead of starting every training rollout from the initial state of a trajectory, IGI samples initial states from throughout the dataset. These samples are weighted inversely to the geometric distribution $Geom(1-\gamma)$. This re-weighting effectively "flattens" the discounted distribution to match the empirical one, ensuring the discriminator receives consistent signals regardless of the chosen planning horizon.
Experimental Evaluation
The method was evaluated on standard MuJoCo benchmarks (HalfCheetah-v2, Hopper-v2, Walker2d-v2, and Ant-v2) and D4RL datasets. The authors constructed varying dataset compositions, ranging from single expert trajectories to large sets of suboptimal data.
Key Findings: * Stability: With IGI, algorithms that previously failed at low $\gamma$ (like DemoDICE) became stable and high-performing across the entire range of discount factors (from 0.99 down to 0.6). * Horizon as Regularizer: The authors found a "sweet spot" for $\gamma$. If $\gamma$ is too high, the agent overfits to imperfect dynamics; if too low, it lacks the foresight to complete tasks. Tuning $\gamma$ with IGI often outperformed complex, explicit mathematical regularizers. * Robustness: The approach proved particularly effective in scenarios with scarce expert data or highly noisy suboptimal data, where dynamics errors are most prevalent.
Conclusion
By identifying and fixing the distribution mismatch in offline imitation learning, this work transforms the discount factor from a problematic hyperparameter into a robust tool for regularization. Inverse Geometric Initial state sampling (IGI) enables agents to successfully learn in offline settings by effectively controlling their planning horizon, providing a simpler and often more effective alternative to explicit regularization techniques.
Summary updated