TL;DR
This paper introduces Hearsay-III, a domain-independent framework for building knowledge-based expert systems. It offers a flexible architecture with modular "knowledge sources" and a global "blackboard" for communication, enabling experimentation with different domain theories and control strategies. The authors illustrate its use with the "Jitterer" system, which transforms program parse trees.
What Problem Does This Paper Address?
Building effective expert systems often requires deep domain knowledge and sophisticated control strategies to manage the search for solutions. Existing "expert-system-building systems" often make strong commitments to specific application domains or control paradigms, limiting their flexibility. The authors aim to provide a more general framework that allows users to:
- Codify diverse knowledge sources: Support various ways of representing knowledge without being tied to a specific domain (like medical diagnosis).
- Flexibly coordinate knowledge: Allow different knowledge sources to work together effectively.
- Manage competing solutions: Handle situations where multiple potential solutions are being developed incrementally.
- Reason about partial solutions: Support the manipulation and analysis of solutions as they are being built.
- Apply domain-specific constraints: Integrate rules that ensure consistency across different parts of a solution.
- Facilitate long-term development: Enable experimentation with different knowledge representations and control schemes for a given domain.
Essentially, they want to create a system that helps users develop, debug, and experiment with theories of domain expertise, rather than just building a high-performance application.
Methods
Hearsay-III is built upon a relational database system (AP3) and its control facilities, integrated with Interlisp. Key architectural components include:
- Underlying Relational Database (AP3): Provides a structured way to store and retrieve data, including assertions, parameters, and contexts. It also supports "demons" that trigger actions when database changes occur, which are used for knowledge source activation.
- Blackboard Structure: A central communication medium divided into a "domain blackboard" (for competence reasoning) and a "scheduling blackboard" (for performance reasoning). This blackboard is segmented into:
- Units: The fundamental building blocks of representations, typed AP3 objects.
- Component Roles: Labeled arcs connecting units, forming graph structures.
- Choice Sets: Special units that explicitly represent unresolved decisions, allowing for the representation of competing partial solutions. Hearsay-III supports two ways to resolve choice sets: "deduce-mode" (for definitive choices) and "assume-mode" (for exploring alternatives in new contexts).
- Knowledge Sources (KSs): Large-grained production rules that react to blackboard changes and produce new ones. Each KS has a triggering pattern, immediate code (executed upon triggering), and a body (executed later). KSs are the primary mechanism for encoding domain-specific knowledge.
- Scheduling: Hearsay-III is designed for domains with complex scheduling needs. It uses the scheduling blackboard to manage the order of KS execution. "Scheduling KSs" can modify the scheduling blackboard to influence which KSs are executed next. A "base scheduler" procedure is provided to initiate KS execution.
- Acceptance Routines: Procedurally defined predicates (Validator, Canonicalizer, etc.) associated with unit classes. These routines are run when units are created or modified to ensure consistency and proper integration into the system.
Datasets
Not discussed in the paper.
Key Insights and Ideas
- Separation of Competence and Performance: The architecture explicitly separates the "competence" (domain knowledge) from the "performance" (control and scheduling). This separation is seen as crucial for rapidly formulating expert knowledge and for allowing flexible experimentation with control strategies.
- Blackboard as a Reasoning Space: The blackboard isn't just for data storage; it's actively used for reasoning. The "choice set" mechanism, in particular, allows the system to reason about decisions and explore multiple paths simultaneously.
- Knowledge Sources as Modular Building Blocks: KSs are designed to be large-grained and modular, making it easier to develop, test, and swap out different pieces of domain knowledge.
- Scheduling as a Solvable Problem: The authors treat the scheduling problem itself as a domain that can be addressed using the Hearsay-III architecture, employing scheduling KSs to manage the execution order of other KSs.
- Context Management for Exploration: The use of "assume-mode" choice sets and AP3's context mechanism allows Hearsay-III to explore multiple solution paths by creating new contexts for each decision, enabling easy backtracking and comparison.
Key Results
The paper doesn't present quantitative results in terms of performance metrics for a specific application. Instead, it focuses on demonstrating the design and capabilities of Hearsay-III through the example of the "Jitterer" system. The key "results" are the successful implementation of the Jitterer's complex requirements within the Hearsay-III framework, showcasing:
- Representation of Program Development States: The system effectively represents program parse trees and their transformations.
- Control of Search: The Jitterer's backward-chaining, best-first search is managed through scheduling KSs that implement selection rules for paths and transformations.
- Handling of Complex Problems: The Jitterer's challenges, such as large transformation fan-out, costly enabling conditions, and multiple solutions, are addressed by the Hearsay-III architecture.
Limitations and Future Work
- Performance Not Emphasized: The authors explicitly state that Hearsay-III is designed for understanding and experimenting with domain expertise, not for building high-performance systems. For performance, a more efficient formalism might be needed later.
- Base Scheduler Simplicity: The default base scheduler is considered trivial and expected to be replaced in serious applications.
- Generalization of Schedulers: While Hearsay-III provides a flexible scheduling mechanism, the authors anticipate that as more projects use it, a library of generalized schedulers will emerge, making it easier for new users to find suitable control strategies.
- Sophisticated Acceptance Routines: Currently, only "easily determined impossible goals" are handled by Validator acceptance routines. More complex tests for impossible goal states are left for future work, as they might be too costly to schedule.
Summary updated