A Message Passing Algorithm for Plan Recognition

Dekang Lin, Randy GoebelIJCAI 1991

Introduction

Plan recognition involves inferring an agent's goals and intentions from a sequence of observed actions. This task is fundamental to discourse understanding, intelligent user interfaces, and cooperative problem-solving. Historically, plan recognition models have struggled with a trade-off between expressiveness and computational efficiency. Early formalisms were highly expressive but suffered from exponential time complexity, while later polynomial-time models were often too restrictive to handle real-world complexities like interleaved or unordered plan steps.

Lin and Goebel (1991) propose a message-passing algorithm that bridges this gap. Their approach achieves polynomial-time tractability while maintaining the flexibility to handle complex features such as recursion and optionality in plans.

Methodology

The authors represent plan knowledge using a restricted form of First-Order Logic (FOL) mapped onto a Plan Hierarchy graph. This graph consists of nodes representing plan types (e.g., "Make Noodles") connected by "isa" (specialization) and "feature" (component step) links.

Message Passing and Path Preemption

The core mechanism is a message-passing algorithm where each node in the hierarchy acts as an independent computing agent. Upon observing an action, messages containing partial explanations—attribute assignments and subsets of observations—are propagated "upward" through the hierarchy. Nodes aggregate these messages to construct more complete explanations.

To prevent an explosion of redundant or overly general explanations, the authors introduce Path Preemption. This technique ensures that only the most specific relevant information is inherited across the hierarchy, maintaining computational efficiency.

Figure 2: Path Preemption mechanisms for generalization and specialization.

Key Insights

  • Local vs. Global Consistency: By restricting the pattern of logical constraints, the authors guarantee global consistency through local checks at each node, avoiding exponential growth.
  • Plans as Graph Walks: Viewing plans as specific walks through an action description graph transforms abstract logical deduction into a concrete path-finding and merging problem.
  • Generalizing CFG Parsing: The approach generalizes context-free grammar (CFG) parsing to handle non-linear, interleaved action sequences.
  • Specificity Preference: The authors argue for a preference for the most general plan constructed from the most specific possible interpretations of observed actions.

Evaluation Domain: The Cooking World

The algorithm was evaluated using a "Cooking World" domain, which features plan hierarchies for preparing various dishes. This domain demonstrates the system's ability to manage overlapping steps and recursive definitions.

Figure 1: The plan hierarchy of a cooking world, illustrating "isa", "spec", and "feature" links.

For example, a plan for Make Pasta Dish might involve components like Make Noodle and Make Sauce, which themselves can be specialized into specific recipes like Make Spaghetti Pesto or Make Fettucini Alfredo.

Results and Performance

The proposed algorithm offers significant improvements in both complexity and expressiveness:

  • Complexity: The algorithm's complexity is linear relative to the number of axioms in the knowledge base. In scenarios restricted to match previous models, it achieves $O(|H|n^3)$ complexity, an improvement over the prior $O(|H|^2n^3)$.
  • Expressiveness: Unlike previous polynomial-time methods, this algorithm successfully recognizes recursive plans and optional components.
  • Ambiguity Management: The message-passing structure naturally "blocks" the propagation of local ambiguities that are irrelevant to the global plan.

Limitations and Future Work

While flexible, the model requires restrictions on FOL formulas to maintain efficiency. Additionally, while it handles interleaved plans, the complexity for partially ordered, non-shared components can reach $O(n^2|H|2^d)$, potentially creating bottlenecks for very "wide" plan structures. Future work could also address "noise" in observations, as the current model assumes all observed actions are accurate and part of a valid plan.

Conclusion

Lin and Goebel's message-passing algorithm provides a robust framework for plan recognition that balances computational efficiency with the expressive power needed for complex, real-world scenarios. By treating plan hierarchies as active computing networks, they offer a scalable solution for inferring intent in dynamic environments.

Summary updated

BibTeX
@inproceedings{lin1991message,
  author = {Dekang Lin and Randy Goebel},
  title = {{A Message Passing Algorithm for Plan Recognition}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1991},
}
Figure