Goal Recognition with Variable-Order Markov Models

Marcelo Gabriel Armentano, Analía AmandiIJCAI 2009

Abstract

Effective interface agents must proactively assist users by accurately predicting their goals from sequences of actions. This paper introduces a fast, scalable approach to goal recognition using Variable-Order Markov (VOM) models combined with Exponential Moving Averages (EMA). Unlike traditional fixed-order models that suffer from state explosion or loss of context, VOMs adapt context length dynamically. When paired with EMA to prioritize recent behavior, the proposed system achieves significant improvements in precision and convergence speed while maintaining linear computational complexity.

Introduction

Interface agents aim to provide timely assistance without being intrusive. Achieving this requires recognizing a user's intent (e.g., "scheduling a meeting") as early as possible. Existing methods often fall short: consistency-based approaches require nearly complete action sequences, Bayesian Networks are computationally expensive, and fixed-order Markov models (like bigrams) struggle with the trade-off between history length and state-space size. This research addresses these gaps by developing a model that is computationally efficient, handles variable-length contexts, and can be learned automatically from user action corpora.

Methodology

The proposed solution integrates two key components:

Variable-Order Markov (VOM) Models

Instead of a fixed $k$-step history, VOMs adapt the context length based on the specific observed sequence. These are represented using Probabilistic Suffix Automata (PSA). Each potential goal is modeled by its own PSA, trained on action sequences leading to that specific goal. This allows the system to capture "variable memory"—recognizing that some goals are revealed by a single command while others require a specific sequence of setup actions.

Exponential Moving Average (EMA)

To handle the vanishing probabilities associated with long sequences and to prioritize recent user behavior, the authors apply an EMA to the prediction probabilities at each step. This smoothing technique allows the agent to detect underlying trends in behavior and react more quickly to shifts in user intent. Goals are ranked by their EMA values, and a prediction is made once a confidence threshold is met.

Experimental Setup

The model was evaluated using the Linux Plan Corpus, which contains data from 56 human users of varying expertise levels. Users performed tasks corresponding to 19 distinct goals. Raw Linux commands were preprocessed into 48 distinct "action schemas" to capture functional nuances (e.g., distinguishing recursive from standard directory listings).

Results and Analysis

The VOM + EMA approach demonstrated superior performance compared to baseline bigram models. The system scales linearly $O(|G|)$ with the number of goals, making it suitable for real-time applications.

Performance metrics for N-best goal recognition showing precision and convergence improvements.

As shown in Figure 1, the model achieved a precision of 0.646 for 1-best predictions, rising to 0.808 for 3-best predictions. Notably, the convergence rate—the speed at which the model identifies the correct goal—improved as the N-best window expanded, reaching 0.745 for 3-best. The error rate remained stable at 0.115 across all N-best categories. Compared to previous bigram-based research, this model correctly identified goals 21.5% faster relative to the sequence timeline.

Discussion and Future Work

The results highlight that human behavior is non-uniform, and capturing variable-length context is critical for accurate intent recognition. The use of EMA effectively incorporates a recency bias, which is a natural feature of goal-oriented behavior.

However, several areas for future research remain:

  • Generalization: The model needs testing on broader domains beyond Linux commands.
  • Schema Scalability: Manually splitting commands into schemas may lead to data sparseness as the number of parameter combinations grows.
  • Hierarchical Recognition: Future iterations could explore hierarchical goal structures where tasks are nested within larger objectives.

Summary updated

BibTeX
@inproceedings{armentano2009goal,
  author = {Marcelo Gabriel Armentano and Analía Amandi},
  title = {{Goal Recognition with Variable-Order Markov Models}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2009},
}
Figure