Error Classification in Action Descriptions: A Heuristic Approach

Thomas Eiter, Michael Fink, Ján SenkoAAAI 2008

Abstract

Action languages allow for the formal representation and reasoning about actions in a highly declarative manner. While recent work has addressed conflict management and reconciliation in domain descriptions, existing methods for analyzing and correcting flawed descriptions remain largely ad hoc. This paper presents a novel, three-stage heuristic methodology for identifying and localizing errors in action descriptions. This structured approach is essential for engineering robust action descriptions and building practical development tools.

Introduction

In Knowledge Representation, action languages such as $\mathcal{C}$ enable the description of dynamic worlds through causal laws. For instance, a law might specify that the action of shooting a loaded gun results in a target being dead. As these descriptions scale in complexity, they frequently encounter conflicts with observations or intended queries. While existing tools can detect these inconsistencies, they often fail to provide explanations regarding the nature or location of the underlying error. This research addresses this gap by introducing a formal methodology for error classification and localization, moving beyond trial-and-error debugging.

A Three-Stage Heuristic Methodology

The proposed methodology operates in three distinct stages to systematically narrow down the source of a conflict.

Stage 1: Error Assessment

When a conflict is detected between an action description and a set of semantic constraints, the system analyzes the violated conditions. It employs a taxonomy of error types—categorized into Domain Properties (D), Fluent Properties (F), Action Executability (X), and Action Effects (E)—to generate an initial hypothesis.

Taxonomy of error types used for initial hypothesis generation.

Stage 2: Assumption Confirmation

The initial hypothesis is then tested using "recipes"—specific test queries designed to confirm the error type. For example, if an "Inertia" error is suspected (where fluents should remain unchanged unless acted upon), the system executes a test to determine if a fluent's value changes during an "empty action" ($A = \emptyset$). This "empty action" heuristic is particularly effective: if the state changes when no action is performed, the error likely resides in general fluent properties.

Stage 3: Error Localization

Once the error type is confirmed, the methodology localizes the specific causal laws responsible. It prunes the set of laws by identifying which ones were active (or failed to activate) during the state transitions that led to the conflict. This stage significantly reduces the manual effort required by human designers to review the code.

Evaluation and Results

The methodology was evaluated across four benchmark domains: Yale Shooting (YS), Gofish (a postal service domain), Blocks World, and the Shell Game. These domains tested various features, including concurrency, non-determinism, and both ground and non-ground representations.

Across 53 experimental scenarios, the methodology correctly identified the expected error type in approximately 81% of cases. In some instances, the tool identified "correct but unexpected" errors, where a manual bug manifested as a different logical failure than intended, demonstrating the non-intuitive nature of formal logic debugging.

On average, a successful run through all stages required only 5 tests to confirm an error and localize it. The localization stage proved highly effective at reducing the search space. As shown in the results for the ground Shell domain, the methodology narrowed down over 500 causal laws to a manageable set of approximately 20 potential culprits.

Effectiveness of the localization stage in pruning the search space for causal laws across different domains.

Conclusion

This research provides a structured framework for debugging action descriptions, a task previously reliant on manual expertise. By combining a formal error taxonomy with systematic confirmation tests and localization pruning, the methodology achieves high accuracy and efficiency. Future work will extend this approach to handle multiple independent errors and incorporate static laws into the classification hierarchy.

Summary updated

BibTeX
@inproceedings{eiter2008error,
  author = {Thomas Eiter and Michael Fink and Ján Senko},
  title = {{Error Classification in Action Descriptions: A Heuristic Approach}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2008},
  url = {https://openreview.net/forum?id=Hy4AtAguWS},
}

Loading related content...

Figure