Corpus-based, Statistical Goal Recognition

Nate Blaylock, James F. AllenIJCAI 2003

Introduction

Goal recognition is a critical component of intelligent dialogue systems, enabling computers to anticipate user needs and respond effectively. Historically, this task has relied on logic-based plan recognition, which utilizes hand-authored plan libraries. However, these traditional systems often struggle with computational complexity, delayed predictions, and poor portability across domains. This paper proposes a shift toward a corpus-based, statistical approach that treats goal recognition as a data-driven prediction problem.

The Limitations of Traditional Plan Recognition

Traditional logic-based systems face three primary hurdles:

  1. Computational Speed: Reasoning through complex plan libraries is often exponentially complex, hindering real-time interaction.
  2. Early Prediction: Most systems wait until a plan is nearly complete before identifying a goal, whereas a helpful assistant should anticipate intent as early as possible.
  3. Portability: Manually building plan libraries for every new domain is labor-intensive and difficult to scale.

Statistical Methodology

The authors frame goal recognition as finding the most likely goal $G$ given a sequence of observed actions $A$. Using Bayes' Rule, the problem is inverted to model the likelihood of actions given a specific goal. Three models were evaluated:

  • Unigram Model: Assumes actions are independent and depend solely on the goal.
  • Bigram Model: Captures task "flow" by assuming an action depends on both the goal and the preceding action, utilizing a back-off strategy for unseen sequences.
  • Abstract Goal Recognition: Groups specific goals into broader categories (e.g., "Find a file with attributes") to improve reliability and provide "good enough" assistance early in a session.

Dataset and Evaluation

The models were tested using Lesh's UNIX plan corpus (1998), which consists of recorded sessions of human users performing tasks in a command-line environment.

Summary statistics of the UNIX plan corpus including goal types, sessions, and action types.

The corpus includes 59 successful sessions across 12 distinct goals. To maintain model tractability, commands were preprocessed to remove specific arguments and flags, focusing on base command types.

Key Results and Convergence

The transition from Unigram to Bigram models yielded significant performance improvements. However, the most striking results came from the Abstract Goal model, which achieved high accuracy and rapid convergence.

Performance metrics comparing Unigram, Bigram, and Abstract Goal models across accuracy and convergence.
Metric Unigram Bigram Abstract Goals
Accuracy 63.1% 71.8% 91.0%
Convergence Rate 73.2% 83.9% 100.0%
Convergence Point 23.1% 22.3% 11.6%

The "Convergence Point" indicates how early in the action sequence the system settled on the correct goal. For Abstract Goals, the system identified the general intent after only ~1.7 actions, or roughly 11.6% of the way through the task.

Discussion and Future Work

While the statistical approach offers speed and early prediction, several challenges remain. The current study utilized a relatively small domain of 12 goals; scaling to thousands of goals without a state-space explosion is a key area for future research. Additionally, the model currently ignores command parameters, which are essential for handling specific objects in real-world tasks. Future work may involve using AI planners to generate synthetic corpora to overcome data scarcity in new domains and incorporating hierarchical plan structures to account for sub-goals.

Summary updated

BibTeX
@inproceedings{blaylock2003corpus,
  author = {Nate Blaylock and James F. Allen},
  title = {{Corpus-based, Statistical Goal Recognition}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2003},
}
Figure