Reasoning about Action in Polynomial Time

Thomas Drakengren, Marcus BjärelandIJCAI 1997

Introduction

Reasoning about how actions change the world is a fundamental challenge in Artificial Intelligence. Whether it is a robot navigating a room or an automated planner managing a factory, the system must predict state changes over time. However, this task is often a "computational nightmare." Most expressive logics used to describe these changes are NP-hard, making them impractical for real-time applications. This research identifies specific, restricted versions of temporal logic and action descriptions that can be solved in polynomial time, offering a rare bridge between high-level logical expressiveness and algorithmic efficiency.

The Challenge of Computational Complexity

In AI, "Reasoning about Action" involves predicting the world's state based on performed actions—for example, "If I lift this bowl, will the soup spill?" While researchers have developed expressive logics to handle complex scenarios—such as concurrent actions or actions dependent on past events—these logics typically cross the "tractability boundary" into exponential-time territory. This creates a dilemma: developers must choose between a logic that is smart but too slow, or a system that is fast but too simple for real-world nuances.

A Tractable Logic Framework

The authors propose a temporal logic called $\mathcal{A}$, which utilizes real numbers to represent continuous time. Within this framework, they define "scenario descriptions" consisting of:

  1. Observations: Facts about the world at specific time points.
  2. Action Expressions: Definitions of action effects, preconditions, and "influenced features." This latter component addresses the Frame Problem—the challenge of assuming things remain unchanged unless an action explicitly modifies them.

To achieve efficiency, the authors map these logical expressions to Horn Disjunctive Linear Relations (Horn DLRs), a technique from temporal constraint reasoning. By restricting the logic to "Horn" clauses—mathematical structures where each statement has at most one "positive" conclusion—they can employ linear programming-style algorithms to check satisfiability in polynomial time.

Benchmarking with Classic AI Problems

The theoretical framework was evaluated against two classic benchmark "toy problems" in the AI community: Jump into a Lake with a Hat (JLH) and Soup Bowl Lifting (SBL).

The JLH problem tests nondeterminism and memory: if you jump into a lake, you will get wet, but it is unclear if your hat stays on.

Scenario description for the Jump into a Lake with a Hat (JLH) problem.

The SBL problem tests simultaneous concurrency: lifting only one side of a soup bowl causes a spill, whereas lifting both sides simultaneously does not.

Scenario description for the Soup Bowl Lifting (SBL) problem.

Key Insights and Results

A critical discovery in this work is the "Ordered" Constraint. For reasoning to remain fast, scenario descriptions must be "ordered," meaning they cannot contain circular or contradictory temporal relations that prevent sequential processing. Unlike many previous tractable models that relied on discrete time steps, this model handles continuous time and overlapping actions.

The core innovation lies in treating action reasoning as a temporal constraint problem. By framing logic as a set of linear inequalities, it becomes solvable using efficient optimization mathematics.

The paper's key results include:

  • NP-Completeness of the General Case: Without restrictions, even simple versions of this action logic are NP-complete.
  • The Tractable Subset: By enforcing "Horn" restrictions and "ordered" scenarios, the authors prove that satisfiability and entailment can be decided in polynomial time.
  • Soundness and Completeness: The reasoning process is proven to be both sound (never providing incorrect answers) and complete (always finding an answer if one exists) within its restricted domain.

Conclusion and Future Work

While the "polynomial time" result is a significant advancement, there are trade-offs. Users cannot use full disjunction (e.g., "Either Action A or Action B happened") if it violates Horn restrictions. Future work aims to optimize these algorithms for production environments and integrate them with qualitative temporal algebras to handle scenarios where exact timestamps are unknown.

Reference: Drakengren, T., & Bjareland, M. (1997). Reasoning about Action in Polynomial Time. Proceedings of the Fifteenth International Joint Conference on Artificial Intelligence (IJCAI-97).

Summary updated

BibTeX
@inproceedings{drakengren1997reasoning,
  author = {Thomas Drakengren and Marcus Bjäreland},
  title = {{Reasoning about Action in Polynomial Time}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1997},
}
Figure