Incremental Tractable Reasoning about Qualitative Temporal Constraints

Alfonso GereviniIJCAI 2003

Introduction

Qualitative temporal reasoning is a cornerstone of artificial intelligence, enabling systems to model relationships such as "Task A precedes Task B" or "Event C overlaps Event D." Traditionally, frameworks like Allen’s Interval Algebra (IA) and Vilain and Kautz’s Point Algebra (PA) have relied on "static" algorithms. These methods are designed to process a complete set of constraints at once. However, real-world applications—such as autonomous planning or dynamic scheduling—often receive information incrementally. Recomputing consistency from scratch for every new constraint is computationally prohibitive. This paper introduces efficient incremental algorithms to address this challenge, specifically for PA and the ORD-Horn fragment of IA.

Methods for Incremental Reasoning

The core contribution lies in a suite of algorithms designed to minimize amortized complexity—the average cost of updates over a long sequence of operations.

Incremental Path-Consistency (IPC)

Rather than re-running full path-consistency checks, the proposed IPC algorithm utilizes a queue-based propagation method. When a new constraint is added, only the affected local neighborhoods in the constraint network are updated, significantly reducing redundant calculations.

I-PSOL: Maintaining Solutions

Finding a valid timeline, or "scenario," is framed as maintaining a topological sort of a precedence graph. The INCREMENTAL-PA-SOL algorithm avoids rebuilding the graph by performing localized updates to the existing sort, as shown in the pseudocode below.

The INCREMENTAL-PA-SOL algorithm for maintaining a consistent solution as new constraints are added.

I-PMIN: Minimal Labels

The most intensive task is finding the strongest possible relation between every pair of points (minimal labels). The INCREMENTAL-PA-MIN algorithm achieves this by identifying and resolving specific "forbidden subgraphs" that arise during constraint assertion.

Key Insights

The efficiency of these incremental approaches stems from several key observations:

  • Locality of Propagation: Changes are propagated only until the system reaches a new stable state, avoiding global re-computation.
  • Topological Maintenance: By treating a valid timeline as a topological sort, the system can update solutions in linear time relative to the number of variables.
  • Diamond Elimination: For minimal labels in Point Algebra, the algorithm focuses on managing $\leq$ and $\neq$ constraints. The author identifies four "diamond" configurations that, when eliminated, guarantee network minimality.
The four 'diamond' configurations that must be eliminated to ensure a minimal network in Point Algebra.

Performance and Results

The theoretical analysis demonstrates substantial speedups. For a sequence of $O(n^2)$ constraints, where $n$ is the number of variables, the incremental approach outperforms static re-computation by factors of $O(n)$ to $O(n^2)$.

Problem Static Total Time Incremental Total Time Speedup Factor
I-PSAT / I-ISAT (Satisfiability) $O(n^5)$ $O(n^3)$ $O(n^2)$
I-PSOL (Finding a Solution) $O(n^4)$ $O(n^3)$ $O(n)$
I-PMIN (Minimal Labels) $O(n^6)$ $O(n^4)$ $O(n^2)$
I-ISOL (ORD-Horn Solution) $O(n^5)$ $O(n^3)$ $O(n^2)$

Note: Static Total assumes re-running the best known static algorithm after each assertion.

Conclusion

This work shifts the focus of temporal reasoning toward dynamic environments. While the current focus is on constraint assertion, it lays the groundwork for fully-dynamic systems capable of handling both additions and retractions. Future research will likely extend these techniques to broader tractable subclasses of Allen’s Algebra.

Summary updated

BibTeX
@inproceedings{gerevini2003incremental,
  author = {Alfonso Gerevini},
  title = {{Incremental Tractable Reasoning about Qualitative Temporal Constraints}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2003},
}
Figure