Compiling Causal Theories to Successor State Axioms and STRIPS-Like Systems

Fangzhen Lin · DOI

Abstract

We describe a system for specifying the effects of actions. Unlike those commonly used in AI planning, our system uses an action description language that allows one to specify the effects of actions using domain rules, which are state constraints that can entail new action effects from old ones. Declaratively, an action domain in our language corresponds to a nonmonotonic causal theory in the situation calculus. Procedurally, such an action domain is compiled into a set of logical theories, one for each action in the domain, from which fully instantiated successor state-like axioms and STRIPS-like systems are then generated. We expect the system to be a useful tool for knowledge engineers writing action specifications for classical AI planning systems, GOLOG systems, and other systems where formal specifications of actions are needed.

Introduction

In the field of classical AI planning, the "knowledge engineer" faces a significant challenge: manually specifying every consequence of an action. This task is complicated by two notorious issues: the frame problem (determining what remains unchanged after an action) and the ramification problem (accounting for indirect side effects). While Successor State Axioms (SSAs) offer a formal logical solution to the frame problem, they are difficult and error-prone to write by hand.

This paper introduces a system that bridges the gap between high-level, intuitive domain descriptions and the rigorous, low-level action models required by planning algorithms like STRIPS or GOLOG. By utilizing a "Causal Completion Procedure" (CCP), the system automatically translates causal rules into executable formats.

The Causal Completion Procedure (CCP)

The author proposes a language and a compiler designed to automate the generation of action specifications. The workflow consists of four primary stages:

  1. Action Description Language: Users define the world using types, fluents (dynamic properties), and actions. The system uses a Causes(condition, effect) syntax, allowing engineers to specify why things change based on physics or logic rather than simply listing outcomes.
  2. Grounding: The system generates all possible ground instances of fluents and actions for the specific domain.
  3. Compilation: The CCP constructs "pseudo successor state axioms" by aggregating all direct and indirect causes derived from the domain rules.
  4. Logical Solving: Using propositional logic—specifically computing "strongest necessary" and "weakest sufficient" conditions—the system simplifies these pseudo-axioms into clean, fully instantiated SSAs and STRIPS-like "add/delete" lists.

Key Insights: Causality as a Shortcut

The core innovation of this research is the treatment of causality as a more powerful tool than simple material implication. For example, a rule stating that "if a package is in a truck and the truck moves to location L, the package is also at L" is treated as a causal law. This law forces the package's location to update automatically whenever the truck moves, effectively solving the ramification problem without requiring the engineer to manually link the two events for every possible movement.

Furthermore, by compiling these rules into SSAs, the system handles the frame problem automatically. This saves the programmer from writing thousands of individual "frame axioms" to describe what does not change in the environment.

Evaluation and Benchmarks

The system was implemented in SWI-Prolog and evaluated using classic AI planning benchmarks from the PDDL (Planning Domain Definition Language) library.

  • Blocks World: The system compiled a 3-block domain (18 action instances) in just 0.5 seconds.
  • Monkey and Bananas: This domain, which requires handling indirect effects (e.g., the banana moving only if the monkey is holding it), was compiled in approximately 8 seconds.
  • Scalability: The system was also tested on Logistics, Rocket, and Grid domains, demonstrating its ability to handle standard benchmark constraints.

Results and Limitations

The author demonstrates that the CCP procedure is mathematically sound relative to situation calculus causal theories. A significant strength of the system is its ability to handle context-dependency; it correctly identifies conditional effects, ensuring that actions only trigger indirect changes when specific logical conditions are met.

However, some limitations remain:

  • State Explosion: As a propositional system, it must instantiate every combination of objects. In domains with thousands of objects, the number of generated axioms may become unmanageable.
  • Indeterminacy: The system is primarily designed for deterministic environments and may struggle with rules that do not dictate a single, clear outcome.
  • Generalization: While the compiler works for specific instances, generalizing the output back into first-order parameters for any number of objects is currently limited to "simple" classes of theories.

Conclusion

This system provides a robust tool for knowledge engineers, allowing them to focus on high-level causal relationships while the compiler handles the complexities of the frame and ramification problems. Future work aims to extend the generalization capabilities of the compiler to handle more complex, context-dependent domains.

Summary updated

BibTeX
@article{lin2003compiling,
  author = {Fangzhen Lin},
  title = {{Compiling Causal Theories to Successor State Axioms and STRIPS-Like Systems}},
  journal = {J. Artif. Intell. Res.},
  year = {2003},
  url = {https://openreview.net/forum?id=rxQEs_p8Ezi},
}
Figure