Introduction
Representing the "state" of a task domain—such as a robot's environment—has historically been a significant challenge in AI planning and question-answering systems. Early approaches faced a dilemma: explicitly storing every fact leads to unmanageable database sizes, while deriving all facts from axioms on the fly causes severe performance bottlenecks due to redundant computations. Furthermore, early languages like PLANNER and QA4 relied on backtracking, which made it difficult to preserve intermediate results or manage complex control flows during state transitions.
This paper introduces advanced deductive retrieval mechanisms designed to address these issues. By moving beyond simple database lookups and backtracking, the system implements a sophisticated dependency-tracking mechanism that allows derived facts to persist across state changes until they are explicitly invalidated.
Methodology
The system is implemented as an extension of QLISP, embedded within INTERLISP. Several technical innovations distinguish this approach:
- Generators vs. Backtracking: Instead of the standard "fail-and-retry" backtracking model, the system utilizes generators (e.g.,
GEN:IS). These return a "possibilities list" and a "tag" (a FUNARC), allowing the program to pause and resume searches without losing state. - Deductive Retrieval (DEDUCE/REFUTE): The system provides specialized functions to find instances of patterns known to be true or false. If a fact is missing from the database, user-defined "deduction actions" are triggered to infer it.
- Support Sets and Smart Invalidation: When a fact is derived, the system records its "support set"—the specific axioms used in its proof. States are organized in a context tree where children inherit information from parents. When a state transition occurs, the system checks support sets; if an underlying axiom changes, only the dependent derived facts are marked as "UNKNOWN."
- Caching and Completeness: By "noting" derived results, the system creates a persistent cache. Additionally, the system can mark a query as "complete" (e.g., "all parts attached to the pump"), preventing redundant searches in future queries.
Evaluation Domain
As a classic symbolic AI study, this research evaluates its mechanisms within a specific task domain rather than modern large-scale datasets. The primary application is the Computer Based Consultant (CBC), a system designed to assist a human apprentice in the maintenance and repair of electromechanical devices.
The central test case involves the assembly and disassembly of an industrial air compressor. This domain requires the system to maintain a complex model of a workstation, including tools, devices, and test equipment, through various repair sequences.
Insights and Results
The research yields several key insights into state modeling:
- 3-Valued Logic: The explicit recognition of "True," "False," and "Unknown" is essential for modeling real-world environments where the system must account for its own ignorance.
- Efficiency in State Transitions: The system successfully maintains complex workstation models without requiring total re-computation after every minor action (e.g., turning a bolt).
- Decoupled Production: The use of generators successfully separates the production of facts from their consumption, leading to more modular and readable AI code compared to pure backtracking-based languages.
- Relation-Based Indexing: Indexing deduction rules by primary relations (e.g.,
ATTACHED) proved more efficient than expensive global pattern matching.
Conclusion and Limitations
While the system offers significant architectural improvements, it faces certain limitations. The consistency-checking procedures (tracking supports and invalidation) are computationally expensive and must be applied selectively. Furthermore, the system relies on manually defined "deduce" and "refute" rules rather than automated learning. While effective for the air compressor domain, the scalability of this dependency-tracking to larger, more fluid environments remains a subject for future investigation.
Summary updated