Introduction
Hearsay-III represents a significant evolution in the development of expert systems, moving from the domain-specific constraints of early speech recognition systems (such as Hearsay-II) toward a generalized, domain-independent framework. Developed in the late 1970s, it addresses the need for a "system-building system" that provides the primitives for complex problem-solving without dictating the specific logic of the application domain. It provides a flexible environment where multiple independent "knowledge sources" can collaborate on a shared global database to solve complex problems.
Architectural Foundations
Hearsay-III is built on several core architectural pillars designed to manage uncertainty and incremental reasoning:
- The Blackboard: A central, structured global database where all communication happens. Uniquely, Hearsay-III segments this into a Domain Blackboard (for problem-solving data) and a Scheduling Blackboard (for reasoning about the system's own control logic).
- Knowledge Sources (KSs): These are modular "specialists" or production rules. A KS monitors the blackboard for specific patterns; when it recognizes a relevant state, it creates an "activation record" to propose a change.
- AP3 Relational Database: The underlying foundation is AP3, a database embedded in Interlisp that provides strong typing, inference rules, and a "context" mechanism to maintain data integrity.
Managing Ambiguity: Choice Sets and Contexts
To handle the complexities of real-world expert tasks, Hearsay-III introduces two novel mechanisms for managing search and uncertainty:
- Choice Sets: Instead of forcing the system to pick a single path immediately, Hearsay-III can explicitly represent unresolved decisions. Multiple alternatives are stored as a single "unit" on the blackboard, allowing the system to reason about the ambiguity itself before committing.
- Contexts: Similar to "what-if" branching, this allows the system to explore independent reasoning paths. If a specific path leads to a contradiction (a "poisoned" context), the system can backtrack or switch to a different branch without losing progress in other areas.
Scheduling as an AI Problem
Perhaps the most important philosophical contribution of Hearsay-III is the separation of competence and performance. By treating scheduling as a problem to be solved on its own blackboard, the authors separate what the system knows about the domain (competence) from how it decides to apply that knowledge (performance).
Scheduling is not a hard-coded loop; it is handled by "Scheduling KSs" that prioritize tasks based on the current state of the problem. To simplify programming and prevent race conditions, the system ensures the indivisibility of execution: once a KS starts running, it cannot be interrupted, ensuring the blackboard remains stable during the calculation.
Application: The Jitterer
The primary demonstration of Hearsay-III's utility was The Jitterer, a system for automatic program transformation and optimization. The authors demonstrated that the framework could handle the complex, backward-chaining, best-first search required for program optimization. Specifically:
- The Choice Set mechanism effectively managed competing program transformations.
- The Scheduling Blackboard allowed the developers to prioritize "path suspension" (halting a bad lead) over "transformation ordering," which is critical for limiting search in large problem spaces.
- Acceptance Routines (Validators and Canonicalizers) successfully automated the consistency checking of program parse trees.
Limitations and Future Work
Despite its flexibility, Hearsay-III was designed as a research tool rather than a production environment. The authors explicitly state that the system is not optimized for speed; rather, it is meant for understanding a domain. They suggest that once a domain is understood via Hearsay-III, a more efficient, specialized system should be built for production use.
Furthermore, the system features a steep learning curve, as users must build almost everything from scratch, and its heavy dependency on the Interlisp environment limits its portability. Future work aimed to provide a library of pre-built "application schedulers" to lower the barrier for new users.
Summary updated