NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Offline Reinforcement Learning with Generative Trajectory Policies

Xinsong Feng, Leshu Tang, Chenan Wang, Haipeng Chen

TL;DR

This paper introduces Generative Trajectory Policies (GTPs), a novel approach to offline Reinforcement Learning (RL) that unifies modern generative models under a continuous-time Ordinary Differential Equation (ODE) framework. GTPs learn the entire trajectory of an ODE, enabling expressive and efficient policy generation that achieves state-of-the-art performance on challenging benchmarks, including perfect scores on AntMaze tasks.

What Problem Does This Paper Address?

Offline Reinforcement Learning (RL) presents a significant challenge: learning effective policies from pre-collected datasets without further interaction with the environment. A key hurdle is the need for policies that can capture complex, often multi-modal behaviors present in the data. Existing generative models offer promise, but face a critical trade-off: diffusion models are highly expressive but computationally expensive due to slow, iterative sampling, while faster consistency models often sacrifice performance. This paper aims to bridge this gap by developing a unified framework and a practical policy paradigm that achieves both expressiveness and efficiency in offline RL.

Methods

The core innovation lies in a unifying perspective that views modern generative models (diffusion, flow matching, consistency models) as instances of learning a continuous-time generative trajectory governed by an Ordinary Differential Equation (ODE). This leads to the proposal of Generative Trajectory Policies (GTPs), which learn the entire solution map of the underlying ODE.

To make GTPs practical for offline RL, two key adaptations are introduced:

  1. Efficient and Stable Training via Score Approximation: Instead of relying on computationally expensive and unstable ODE solvers for supervision, GTPs use a closed-form surrogate for the vector field. This approximation, theoretically shown to be asymptotically equivalent to the ideal objective, significantly speeds up training and improves stability by avoiding self-generated targets.
  2. Value-Driven Guidance for Policy Improvement: To move beyond simple imitation (behavior cloning) and achieve policy improvement, GTPs incorporate a value-weighted training objective. This objective leverages advantage estimates to guide the generative process towards high-return actions, effectively bridging imitation and value-based learning.

Datasets

The paper evaluates GTPs on the D4RL benchmark, a standard suite for offline RL tasks, including:

  • Gym tasks: halfcheetah, hopper, walker2d (various configurations like medium, replay, expert).
  • AntMaze tasks: antmaze-u, antmaze-ud, antmaze-mp, antmaze-md, antmaze-lp, antmaze-ld.

Additional evaluations are performed on OGBench (including state-based cube manipulation and visual-observation tasks) to demonstrate the method's effectiveness beyond standard benchmarks.

Key Insights and Ideas

  • Unified ODE Framework: Viewing diverse generative models as instances of learning an ODE trajectory provides a powerful, unifying perspective that clarifies their underlying principles and design space.
  • Learning the Full Trajectory is Key: GTPs learn the entire solution map of the ODE, allowing for flexible, multi-step generation that avoids the limitations of slow iterative sampling or fast but potentially degraded single-step methods.
  • Score Approximation for Practicality: Replacing ODE solvers with a theoretically grounded score approximation is crucial for enabling efficient and stable training in offline RL, overcoming a major bottleneck of prior generative approaches.
  • Value-Guided Generative Imitation: Effectively combining generative imitation with value-based policy improvement is essential for achieving true policy improvement in offline RL, and the proposed advantage-weighted objective achieves this.
  • Bridging Expressiveness and Efficiency: GTPs successfully resolve the trade-off between policy expressiveness and computational efficiency, achieving state-of-the-art performance with reasonable inference times.

Key Results

  • State-of-the-Art Performance: GTP achieves state-of-the-art results on the D4RL benchmark, outperforming prior generative and offline RL methods.
  • Perfect Scores on AntMaze: GTP achieves perfect scores on several notoriously challenging AntMaze tasks, demonstrating its ability to handle complex, sparse-reward environments requiring long-horizon planning.
  • Improved Expressiveness: In behavior cloning settings (GTP-BC), GTP significantly outperforms diffusion-based and consistency-based baselines, highlighting its superior modeling capacity.
  • Efficient Inference: GTP achieves favorable compute-performance trade-offs, with competitive inference costs compared to other methods.
  • Robustness: The method demonstrates robustness to hyperparameters and can achieve strong performance even with a short sampling horizon (T=2).

Limitations and Future Work

  • Computational Cost: While more efficient than iterative diffusion models, GTP is still more computationally expensive than lightweight consistency-style methods.
  • Teacher-Free Objectives: The paper notes that while teacher-free objectives (like those in Shortcut Models or Mean Flows) are conceptually appealing, they are not yet practical under standard GPU-based RL settings due to computational and stability issues.
  • Future Work: The authors suggest that reducing the substantial training time of this model class remains an important avenue for future research. Further work on more efficient training and stronger policy-guidance mechanisms is also indicated.

Summary updated

BibTeX
@inproceedings{feng2026offline,
  author = {Xinsong Feng and Leshu Tang and Chenan Wang and Haipeng Chen},
  title = {{Offline Reinforcement Learning with Generative Trajectory Policies}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=LpqtiYpHzn},
}
Figure