Solving Goal Recognition Design Using ASP

Tran Cao Son, Orkunt Sabuncu, Christian Schulz-Hanke, Torsten Schaub, William Yeoh

Solving Goal Recognition Design Using ASP

Abstract

Goal Recognition Design (GRD) is the task of modifying an environment so that an agent's intentions are revealed as early as possible. Traditional approaches rely on specialized imperative algorithms that often struggle with scalability. This paper proposes a paradigm shift by formulating GRD as a declarative search problem using Answer Set Programming (ASP). By utilizing advanced techniques such as saturation-based meta-encoding and multi-shot solving, the proposed methods achieve performance improvements of up to three orders of magnitude over the previous state-of-the-art.

Introduction and Problem Definition

In domains ranging from cybersecurity to assistive robotics, understanding an agent's goal from a sequence of observed actions is critical. Goal Recognition Design (GRD) takes a proactive stance: rather than just observing, how can we design the environment to minimize ambiguity?

The primary metric in GRD is worst-case distinctiveness (wcd). This represents the maximum number of steps an agent can take along an optimal path toward any goal before its specific target becomes unique. The objective is to find a minimal set of environment modifications—typically "blocking" certain actions—that reduces wcd without making any goal unreachable or increasing the cost of optimal plans.

Example of Goal Recognition Design in a grid world. (a) shows the initial state; (b) shows the environment after blocking actions (red lines) to distinguish goals G1, G2, and G3.

Declarative Methods using ASP

The authors leverage Answer Set Programming (ASP), a powerful logic programming framework designed for NP-hard search and optimization problems. They propose two distinct encoding strategies:

1. Saturation-based Meta Encoding

This approach treats GRD as an $\exists\forall$ optimization problem. It uses "saturation," a specialized ASP technique for solving Quantified Boolean Formula (QBF) problems. The solver "guesses" a configuration of blocked actions and then "checks" if all possible optimal paths for all goals under this configuration satisfy the desired wcd reduction. While theoretically elegant, the complexity of the resulting logic program can lead to performance bottlenecks in large state spaces.

2. Multi-shot ASP Encoding (ASP2)

To address the scalability issues of the saturation approach, the authors developed a "multi-shot" method. This approach decomposes the problem into manageable phases using the clingo solver's Python API.

Algorithm for the Multi-shot ASP approach to GRD, illustrating the phased computation of optimal plan lengths and action blocking.

As shown in Algorithm 1, the process involves:

  1. Independently calculating the minimal plan length for each goal.
  2. Identifying a candidate set of actions that could potentially influence the wcd.
  3. Performing an optimized search over these candidates to find the best actions to block.

This separation of concerns allows the solver to focus its search power on the most relevant parts of the state space, drastically improving efficiency.

Experimental Evaluation

The proposed ASP-based solvers were tested against the previous state-of-the-art imperative algorithm, PRUNE-REDUCE (PR), across four standard benchmarks:

  • Grid-Navigation: 2D movement toward coordinates.
  • IPC-Grid+: Complex grids with lock-and-key mechanics.
  • Blockwords: Arranging blocks to form specific words.
  • Logistics: Multi-modal package delivery (trucks and planes).

Key Results and Insights

The results demonstrate the clear superiority of the declarative approach. The ASP2 solver consistently outperformed the imperative PR algorithm, often by a factor of 1,000x. In complex domains like "Logistics" and "Blockwords," where PR frequently timed out, the ASP-based method found optimal solutions in seconds.

The success of this approach stems from two factors:

  • Optimization Efficiency: Modern ASP solvers include advanced features like conflict-driven clause learning, which provide "free" pruning that must be manually implemented in imperative algorithms.
  • Problem Decomposition: The multi-shot approach prevents the solver from being overwhelmed by the entire problem at once, focusing instead on the critical path of the optimization.

Conclusion

This work proves that declarative programming, specifically ASP, is highly effective for complex design tasks like GRD. By moving away from hand-crafted imperative search, researchers can leverage decades of progress in general-purpose solvers to achieve massive performance gains. Future work includes extending this framework to handle sub-optimal agent behavior and non-uniform action costs.

Summary updated

BibTeX
@inproceedings{son2016solving,
  author = {Tran Cao Son and Orkunt Sabuncu and Christian Schulz-Hanke and Torsten Schaub and William Yeoh},
  title = {{Solving Goal Recognition Design Using ASP}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2016},
  doi = {10.1609/aaai.v30i1.10407},
}
Figure