On Trajectory Augmentations for Off-Policy Evaluation

Ge Gao, Qitong Gao, Xi Yang, Song Ju, Miroslav Pajic, Min Chi

In high-stakes fields like healthcare or autonomous surgery, we cannot simply "guess and check" with new AI policies. Instead, we rely on Off-Policy Evaluation (OPE)—using historical data to predict how a new policy would perform without actually deploying it. However, there is a significant catch: human experts are often too consistent. Because professionals like doctors follow specific guidelines, historical data lacks "coverage." It rarely shows what happens when an agent deviates from the norm, making it difficult to evaluate alternative AI strategies.

A recent paper from ICLR 2024, "On Trajectory Augmentations for Off-Policy Evaluation," introduces a framework called OAT (Offline Trajectory Augmentation) to solve this challenge. By intelligently mining and diversifying sub-sections of human data, the authors demonstrate how to significantly improve our ability to evaluate AI in data-scarce, human-centric environments.

The Challenge of Limited Coverage

The "Achilles' heel" of OPE is limited state-action coverage. If your training data only shows a surgeon performing a perfect incision, an OPE method will struggle to evaluate a robotic agent that starts the cut slightly off-center.

Existing data augmentation tricks (like adding noise or warping time-series) often fail in Reinforcement Learning (RL) because they ignore the Markovian nature of the task—the strict logic of how one state leads to the next via a specific action. Furthermore, most RL augmentation focuses on finding better rewards, whereas OPE needs to understand all possible outcomes (even suboptimal ones) to provide an accurate, comprehensive evaluation.

Methods: The OAT Framework

To address these limitations, the authors propose a three-step pipeline called OAT (Offline Trajectory Augmentation):

The OAT framework pipeline: mining, augmenting, and fusing sub-trajectories.
  1. Sub-Trajectory Mining: Instead of augmenting entire, long-winded trajectories, OAT identifies Potential Sub-Trajectories (PSTs). It uses a clustering technique (TICC) to find segments where behaviors are homogeneous. These segments represent the "standard operating procedures" that need more diversity to help OPE.
  2. VAE-MDP: The authors adapted a Variational Autoencoder (VAE) specifically for Markov Decision Processes. Unlike standard VAEs, this model captures the transition dynamics ($s, a \to s'$) and reward functions. It generates new, synthetic versions of the PSTs that explore the state-action space more broadly while respecting the environment's rules.
  3. Fusing Back: These synthetic "what-if" segments are stitched back into the original historical trajectories. This preserves unique, case-specific information (like a specific patient’s baseline health) while enriching the overall dataset with more diverse behavioral examples.

Key Insights

  • OPE Needs the "Bad" Data: While most RL research aims to find the "optimal" path, OPE is a measurement task. It needs to see sub-optimal and diverse behaviors to build a robust "map" of the environment.
  • The Power of the Sub-Trajectory: Augmenting a whole trajectory can lead to "drifting," where the synthetic data becomes unrealistic over long horizons. By focusing on short PSTs, OAT keeps the generated data grounded in reality while still increasing coverage.
  • Markovian Integrity Matters: Standard time-series augmentation (like TimeGAN) often performs poorly in RL because it doesn't strictly enforce the transition logic of an MDP. OAT’s VAE-MDP architecture is specifically designed to respect these rules.

Experimental Results

The researchers evaluated OAT across a diverse set of environments, including simulated robotics (Adroit), real-world healthcare (Sepsis treatment records), an e-learning platform (Intelligent Tutor), and standard Gym-Mujoco benchmarks. OAT consistently outperformed baselines (including TDA, TimeGAN, and standard VAEs) across five different OPE methods (IS, FQE, DICE, DR, and MB).

  • Accuracy Gains: In the Adroit robotics tasks, OAT significantly reduced the Mean Absolute Error (MAE) of policy evaluations compared to using no augmentation.
  • Real-World Robustness: In the Sepsis and Intelligent Tutor domains, many traditional augmentation methods actually decreased OPE performance due to unrealistic data generation. OAT, however, provided consistent improvements in both MAE and rank correlation (the ability to correctly rank which policy is better).
  • Visual Proof: Visualization in a "Maze" environment demonstrated that OAT-augmented data covered significantly more of the physical space than the original, sparse human demonstrations, effectively filling in the gaps.
Visualization of augmented trajectory coverage in a maze environment.

Limitations and Future Work

While OAT represents a major step forward, the authors note a few areas for future growth:

  • Distribution Shift: Even with smart augmentation, a gap remains between synthetic and real-world data. Future work could integrate methods to specifically resolve this shift.
  • Theoretical Bounds: The current approach is primarily empirical. Developing theoretical error bounds for VAE-based trajectory augmentation remains an open challenge.
  • Beyond Evaluation: The authors suggest that these augmented trajectories could eventually be used to train better policies directly (Offline RL), rather than just evaluating them.

Summary updated

BibTeX
@inproceedings{gao2024trajectory,
  author = {Ge Gao and Qitong Gao and Xi Yang and Song Ju and Miroslav Pajic and Min Chi},
  title = {{On Trajectory Augmentations for Off-Policy Evaluation}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=eMNN0wIyVw},
}
Figure