STITCH-OPE: Trajectory Stitching with Guided Diffusion for Off-Policy Evaluation
Hossein Goli, Michael Gimelfarb, Nathan Samuel de Lara, Haruki Nishimura, Masha Itkina, Florian Shkurti
TL;DR
STITCH-OPE tackles off-policy evaluation in high-dimensional, long-horizon environments by combining a model-based diffusion framework with sub-trajectory stitching and negative guidance. It trains a diffusion model on behavior data to generate short, conditioned sub-trajectories and guides the denoising process using a score-based policy difference, then stitches these pieces into full trajectories to estimate target-policy returns. Theoretical analysis provides bias and variance bounds showing exponential variance reduction with respect to horizon when using a fixed short window w, and empirical results on D4RL and OpenAI Gym benchmarks demonstrate superior mean-squared error, correlation, and regret metrics compared to baselines, including diffusion-policy variants. The approach is scalable to high-dimensional tasks and flexible to diffusion-policy target classes, with practical guidance on tuning the sampling coefficients and sub-trajectory length. This framework offers a robust, data-efficient path for offline policy evaluation in domains where online interaction is costly or unsafe.
Abstract
Off-policy evaluation (OPE) estimates the performance of a target policy using offline data collected from a behavior policy, and is crucial in domains such as robotics or healthcare where direct interaction with the environment is costly or unsafe. Existing OPE methods are ineffective for high-dimensional, long-horizon problems, due to exponential blow-ups in variance from importance weighting or compounding errors from learned dynamics models. To address these challenges, we propose STITCH-OPE, a model-based generative framework that leverages denoising diffusion for long-horizon OPE in high-dimensional state and action spaces. Starting with a diffusion model pre-trained on the behavior data, STITCH-OPE generates synthetic trajectories from the target policy by guiding the denoising process using the score function of the target policy. STITCH-OPE proposes two technical innovations that make it advantageous for OPE: (1) prevents over-regularization by subtracting the score of the behavior policy during guidance, and (2) generates long-horizon trajectories by stitching partial trajectories together end-to-end. We provide a theoretical guarantee that under mild assumptions, these modifications result in an exponential reduction in variance versus long-horizon trajectory diffusion. Experiments on the D4RL and OpenAI Gym benchmarks show substantial improvement in mean squared error, correlation, and regret metrics compared to state-of-the-art OPE methods.
