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

Plan Recognition as Planning

Miquel Ramírez, Hector GeffnerIJCAI 2009

Abstract

Plan recognition involves inferring an agent's goals from a sequence of observed actions. Traditional approaches rely on predefined plan libraries, which are often brittle and difficult to construct. This paper proposes a framework that treats plan recognition as "planning in reverse" by compiling the recognition task into a standard automated planning problem. This allows the use of state-of-the-art planners to identify goals efficiently using only a domain theory. Our experiments across multiple benchmarks show that approximate planning methods can achieve high precision with orders of magnitude less computation time than exact methods.

Introduction

The task of plan recognition is fundamental to human-computer interaction, security, and assistive technologies. Historically, this field has been distinct from automated planning, relying heavily on "plan libraries"—explicit sets of action sequences an agent might follow. However, library-based systems fail when an agent deviates from known patterns.

This research bridges the gap by framing plan recognition as a planning problem. Instead of asking "What actions achieve this goal?", we ask "What goal best explains these observed actions?" By utilizing a domain theory—a set of rules governing the environment—rather than a rigid library, the system becomes more robust and flexible.

Methodology: Plan Recognition via Compilation

The core innovation is a problem transformation that converts a plan recognition task into a standard planning task.

The Compilation Process

For every observation (e.g., an agent moving from point A to B), the authors introduce a "shadow" action and a corresponding milestone in the planning domain. To satisfy the observations, a planner must execute these shadow actions in sequence, effectively "unlocking" the path to the final goal.

Solution Criteria

A goal $G$ is considered a valid explanation if there exists an optimal plan for $G$ that is consistent with the observed actions. Formally, a goal $G$ belongs to the optimal solution set $G^*$ if the cost of reaching $G$ while satisfying all observations is equal to the cost of reaching $G$ without any constraints.

Algorithmic Approaches

The authors evaluate three distinct strategies:

  1. Exact Method: Employs optimal planners (e.g., HSP*) to find the true set $G^*$.
  2. Suboptimal Method: Uses faster, "greedy" planners (e.g., FF) to find plans that account for observations, sacrificing optimality for speed.
  3. Heuristic Method: A search-free approach using "relaxed plans" (ignoring negative action effects) to rapidly estimate goal likelihood.

Experimental Setup

The approach was tested on four classic benchmarks from the International Planning Competitions (IPC): Grid-Navigation, IPC-Grid+, Logistics, and Block-Words.

Figure 1: An example of the grid-navigation domain where an agent moves through a 2D grid toward a goal.

Test cases were generated by taking optimal plans and revealing varying percentages of actions (10% to 100%) as observations. This allows for testing how the system "homes in" on the correct goal as more data becomes available.

Results and Analysis

The experimental results demonstrate the trade-offs between computational efficiency and recognition accuracy.

Table 1: Performance comparison of optimal, suboptimal, and heuristic planning methods across various domains and observation densities.

Speed vs. Accuracy

As shown in Table 1, approximate methods (suboptimal and heuristic) are significantly faster than the exact method, often by several orders of magnitude. In the grid-navigation and logistics domains, these faster methods maintained near-perfect precision, matching the exact solution set $G^*$ in almost every instance.

Scaling and Observation Density

The system scales effectively, handling problems with dozens of potential goals and hundreds of actions. As the percentage of observations increases, the set of possible goals $G^*$ consistently shrinks, demonstrating that the model correctly incorporates new information to refine its hypotheses.

Discussion

Rationality as a Filter

The model assumes the observed agent is "perfectly rational." By focusing on optimal paths, the system can rule out goals for which the observed actions would be significantly suboptimal. This "rationality filter" is a powerful tool for pruning the search space.

Limitations and Future Work

The primary limitation is the strict rationality assumption. If an agent is confused or deceptive, the exact method may fail to find any valid goals. Future work aims to relax this by using the cost difference between constrained and unconstrained plans to assign probabilities to goals, rather than treating recognition as a binary filter. Additionally, while the current model assumes ordered observations, extending this to partial orders is a key area for development.

Conclusion

By treating plan recognition as a specialized planning problem, this work allows the recognition community to leverage decades of advancements in automated planning. The results confirm that this approach is not only theoretically sound but also practically viable for large-scale, complex domains.

Summary updated

BibTeX
@inproceedings{ramirez2009plan,
  author = {Miquel Ramírez and Hector Geffner},
  title = {{Plan Recognition as Planning}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2009},
}
Figure