Introduction
In the mid-1980s, logic programming—specifically Prolog—was considered the gold standard for artificial intelligence. However, while Prolog excelled at inference, it struggled with the practical management of large-scale knowledge. Standard Prolog environments were typically "flat," lacking the modularity required to handle massive, diverse datasets or to integrate disparate ways of representing information. This paper proposes a modular architecture for Knowledge Base Management Systems (KBMS) that treats "theories" (collections of logic rules) as first-class data objects.
The Management Challenge
The authors identify several critical gaps in the logic-based systems of the era:
- Complexity: Managing large-scale knowledge requires sophisticated organization beyond a simple list of facts.
- Rigidity: Most systems struggled to integrate multiple representation languages—such as frames, rules, and objects—within a single unified framework.
- Update Integrity: Modifying a logic base without compromising its internal consistency was notoriously difficult.
- Metadata Gap: There was no clean mechanism to store "knowledge about knowledge," such as instructions on how to interpret, update, or describe specific subsets of data.
The Proposed Architecture: Theories as Objects
The core of the proposed architecture is a system where the entire knowledge base is governed by a distinguished theory called the "System." This framework introduces several novel concepts to logic programming:
Theories and the Black Box Principle
Knowledge is partitioned into named "theories" (bags of Horn clauses). These are treated as first-class data objects that can be passed, queried, and updated. To maintain modularity, the system adheres to the Black Box Principle: the internal representation of a theory is hidden. Users and other system components interact with a theory exclusively through its Metatheories:
- Interpreters: These define how to query a theory, allowing for domain-specific inference.
- Assimilators: These define how to update a theory, including the enforcement of integrity constraints.
- Attributes: These store metadata used by the interpreters and assimilators.
Amalgamated Logic
The architecture utilizes an amalgamated language-metalanguage framework based on Prolog. By using Horn clause logic as its own metalanguage, the "System" theory can reason about other theories, choosing the correct interpreter or specific version of a theory dynamically.
One of the most significant features of this approach is Declarative Updates. Updates do not overwrite existing data; instead, they result in a "New System." This creates a versioning effect where previous states of the knowledge base remain accessible, effectively providing "time travel" capabilities with minimal overhead.
Implementation and Performance
The authors developed a prototype called KBMSO on an extended version of Prolog. While the system was not tested against modern machine learning benchmarks, it was applied to diverse real-world domains, including protein structure determination, co-operative problem solving, and declarative graphics.
Key results from the prototype include:
- Efficiency: Despite the overhead of the meta-level architecture, querying Horn clauses ran at approximately 66% (two-thirds) the speed of native Prolog.
- Incremental Updates: Updates to the most recent version of a theory are handled incrementally, which minimizes space overhead by allowing a single data structure to contain multiple versions.
- Flexibility: The architecture successfully enabled "theory-to-theory" linkages. A goal in one theory could trigger a proof in another, simulating inheritance without violating the black-box principle.
Discussion and Limitations
While the architecture is powerful, the authors acknowledge several challenges:
- Inheritance vs. Encapsulation: Direct inheritance, where one theory absorbs the clauses of another, is problematic because it violates the black-box principle and complicates integrity enforcement. The authors suggest simulating inheritance through interpreters as a workaround.
- Set Operations: Operations such as the union of two theories are difficult to implement. If two theories utilize different representations or possess conflicting semantic constraints, merging them is not a simple matter of combining clause sets.
- Inference Control: The authors argue against returning full proof trees to users, as the structure of a proof tree reveals the internal representation of a theory. However, they admit this is sometimes necessary for efficient inference control.
Conclusion
By treating theories as first-class objects and utilizing an amalgamated logic framework, the authors provide a robust blueprint for managing complex knowledge bases. The system bottoms out at a built-in Prolog interpreter to avoid infinite recursion, ensuring that the "System" theory remains extensible and manageable using the same tools it applies to data.
Summary updated