Efficient, Safe, and Probably Approximately Complete Learning of Action Models

Roni Stern, Brendan Juba

Introduction

In classical AI planning, agents typically rely on a predefined "manual"—an action model like STRIPS or PDDL—that explicitly defines the preconditions and effects of every action. However, manually authoring these models for complex environments is difficult and error-prone. While Reinforcement Learning (RL) offers a path to learning from experience, its reliance on trial-and-error is unacceptable in high-stakes environments like medicine or aerospace, where a single failure can be catastrophic.

This paper introduces a method for Safe Model-Free Planning. The goal is to enable an agent to learn how to achieve new goals by observing successful past trajectories, ensuring that every plan it subsequently generates is 100% guaranteed to succeed in the real world.

The Conservative Planning Approach

The authors propose a "conservative" approach to model learning. Instead of attempting to infer the exact underlying rules of the environment, the agent constructs a pessimistic, safe approximation.

  1. Precondition Learning (Upper Bound): For any action $a$, the agent assumes it can only be performed if all state variables that were present in every observed instance of $a$ are met. For example, if a truck was only ever seen moving when it was at location A, the model assumes being at A is a strict requirement.
  2. Effect Learning (Lower Bound): The agent only records a change as an effect if that change was explicitly observed in the data.
  3. Compilation and Solving: This learned model is compiled into a standard SAS+ format, allowing the agent to leverage efficient off-the-shelf classical planners to find solutions.
Evolution of a conservative action model from observed trajectories.

As shown in Figure 4, the model evolves as more trajectories ($T_1, T_2, T_3$) are processed. Initially, the model is highly restrictive; however, as the agent sees more variety in successful demonstrations, it "prunes" away redundant preconditions, expanding its capability while maintaining absolute safety.

Theoretical Framework: PAC Analysis

The core contribution of this work is a Probably Approximately Complete (PAC) analysis. The authors provide a mathematical guarantee on the number of trajectories $m$ required to ensure the agent finds a valid plan for a new goal with high probability.

Probabilistic framework for PAC analysis of the learned model.

The analysis is based on the relationship between the true environment model $P(\Pi)$ and the learned safe model $S(\Pi)$, as summarized in Figure 5. By defining error ($\epsilon$) and confidence ($\delta$) parameters, the authors derive a sample complexity bound: $$m \ge \frac{(2 \ln d)|A|}{\epsilon} (|X| + \log \frac{2|A|}{\delta})$$ where $|A|$ is the number of actions and $|X|$ is the number of state variables. Crucially, this bound scales quasi-linearly, suggesting the approach is viable for complex, real-world systems.

Key Insights

  • Safety via Pessimism: You don't need a perfect model to be a perfect planner; you just need a safe one. By being overly cautious, the agent guarantees success, even if it occasionally misses more efficient paths.
  • Computational Tractability: While learning an exact optimal policy is often NP-hard, learning a "sufficiently safe" subset of the model is computationally efficient.
  • Soundness: The authors prove that any plan generated by the conservative model is guaranteed to succeed in the actual environment.

Limitations and Future Work

The primary trade-off of this approach is incompleteness. Because the planner is conservative, it may fail to find a plan that exists if it hasn't seen enough data to prove the safety of certain actions in new contexts.

Future research aims to extend this framework to handle more complex scenarios, including conditional effects (e.g., switches with different outcomes based on state), stochastic environments, and partial observability. Additionally, the authors suggest moving toward "lifted" models that learn general rules (e.g., Move(truck, from, to)) rather than grounded instances.

Summary updated

BibTeX
@inproceedings{stern2017efficient,
  author = {Roni Stern and Brendan Juba},
  title = {{Efficient, Safe, and Probably Approximately Complete Learning of Action Models}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2017},
  doi = {10.24963/ijcai.2017/615},
}
Figure