Model-Based Offline Planning with Trajectory Pruning

Xianyuan Zhan, Xiangyu Zhu, Haoran Xu

Introduction

MOPP (Model-Based Offline Planning with Trajectory Pruning) is a novel framework designed for high-performance reinforcement learning from static datasets without requiring environment interaction. By combining "aggressive" trajectory rollouts with a clever pruning mechanism that filters out high-uncertainty paths, it achieves state-of-the-art performance while remaining flexible enough to handle changing rewards or safety constraints on the fly.

The Challenge of Offline RL

Offline Reinforcement Learning (RL) is essential for real-world applications like robotics or industrial control, where letting an untrained AI experiment in the real world is too expensive or dangerous. Instead, agents must learn from historical logs. However, existing offline RL methods face a "dilemma of conservatism." To avoid catastrophic errors caused by trying actions not present in the dataset (Out-of-Distribution or OOD samples), most algorithms stay extremely close to the recorded behavior, often leading to mediocre performance. Furthermore, standard offline RL agents are "brittle"—changing the goal or adding a safety constraint usually requires retraining the entire model from scratch.

Methodology

MOPP adopts a Model-Predictive Control (MPC) approach, planning actions over a short future horizon rather than learning a fixed policy. Its architecture consists of three main pillars:

  1. Expressive Modeling: It uses an ensemble of Autoregressive Dynamics Models (ADM). Unlike standard models, ADMs can capture complex, multi-modal distributions in data (e.g., capturing multiple valid ways to navigate an intersection).
  2. Guided Aggressive Rollout: MOPP encourages exploration by sampling actions from the behavior policy with boosted variance. It then uses a conservative Q-value function (learned via Fitted Q Evaluation) to pick the most promising actions from these samples.
  3. Trajectory Pruning: This is the "safety valve." As the planner imagines future trajectories, MOPP calculates the disagreement (uncertainty) between the different dynamics models in its ensemble. If a trajectory wanders into a region where the models wildly disagree (indicating OOD territory), that trajectory is pruned. This allows the agent to be aggressive where the data is clear and cautious where it isn't.

Key Insights: Safe Aggression and Flexibility

The core innovation of MOPP is that conservatism is not required during sampling if it is applied rigorously during filtering. By allowing high-variance rollouts and then pruning the "weird" ones, MOPP finds high-performing paths that standard offline methods miss.

Because MOPP is a planner, not a fixed policy, it exhibits remarkable Zero-Shot Flexibility. The authors demonstrated that the agent could adapt to a "jump" task or a "speed limit" constraint simply by changing the reward function at test time—no retraining required.

MOPP demonstrates zero-shot flexibility by adapting to new rewards and safety constraints (e.g., x-velocity limits) without retraining.

Evaluation and Results

The authors evaluated MOPP using the D4RL benchmark, testing on standard MuJoCo physics simulations and complex Adroit robotic hand tasks.

Key results include:

  • Outperforming the State-of-the-Art: MOPP consistently beat MBOP (the previous leading model-based planner) across almost all D4RL tasks.
  • Competitive with Model-Free: In difficult Adroit tasks, MOPP performed surprisingly well, often outperforming heavyweights like CQL and BCQ.
  • Expert-Level Performance: On "medium-expert" datasets, MOPP often recovered performance close to or exceeding the expert policy that generated the data.
Ablation studies highlight the impact of the standard deviation scaling parameter, planning horizon, and uncertainty threshold on MOPP's performance.

Limitations

While MOPP performs excellently on medium and expert data, it is less performant on highly "random" datasets compared to some model-free methods. Additionally, as a planning-based method, it requires more computation at inference time than a simple neural network policy, which might be a hurdle for ultra-high-speed applications. Performance is also heavily tied to the quality of the dynamics model; if the environment is too complex to model accurately, the pruning mechanism might become over-restrictive.

Summary updated

BibTeX
@inproceedings{zhan2022model,
  author = {Xianyuan Zhan and Xiangyu Zhu and Haoran Xu},
  title = {{Model-Based Offline Planning with Trajectory Pruning}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.24963/ijcai.2022/516},
}
Figure