NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Knowledge Engineering Tools at the Architecture Level

Thomas R. Gruber, Paul R. CohenIJCAI 1987

Introduction

In the mid-1980s, the development of expert systems faced a significant hurdle known as the "knowledge acquisition bottleneck." Building these systems required a tedious translation of human expertise into low-level AI primitives, such as Lisp functions, IF-THEN rules, or frame slots. This created a conceptual gap between domain experts (e.g., physicians) and the technical implementation. This paper argues that this bottleneck can be overcome by shifting focus from general-purpose programming tools to high-level architectures. By defining a "virtual machine" tailored to specific classes of tasks, engineers can create specialized tools that allow experts to input knowledge directly using a shared, domain-relevant language.

The Architecture-Level Framework

The authors propose that knowledge system architectures should be defined through three complementary perspectives:

  1. Functional View: Focuses on the task the architecture performs, such as managing uncertainty or diagnostic reasoning.
  2. Structural View: Identifies the specific components used to build the system, including inference networks, blackboard systems, or belief measures.
  3. Virtual Machine View: Provides a high-level language for the knowledge engineer. Instead of manipulating generic "slots," the engineer works with task-specific constructs like "hypotheses," "evidence," and "triggering relations."

To demonstrate this approach, the authors introduced MU, an architecture designed for systems that reason under uncertainty. MU serves as a "shell" built on top of a general AI toolbox (KEE), specializing it with task-specific reasoning mechanisms.

Case Study: Managing Uncertainty in Medicine (MUM)

The MU architecture was validated through the development of MUM (Managing Uncertainty in Medicine), a system designed to diagnose and treat patients with chest and abdominal pain. MUM exemplifies how task-level constructs are mapped to an inference network.

Inference net for the MUM medical diagnosis system, illustrating task-level constructs like diseases, intermediate conclusions, and data-gathering actions.

In this model, "Data-gathering Actions" (like EKG results) provide "Potential Data" for "Intermediate Conclusions" (like exercise-induced pain), which in turn serve as "Potential Evidence" or "Triggers" for "Diseases" (like Classic Angina). This structure allows the system to manage the flow of evidence and uncertainty in a way that mirrors medical reasoning.

Key Insights: Power vs. Generality

A central theme of the paper is the tradeoff between power and generality. Low-level production systems are highly general but "weak" because they lack inherent knowledge of the problem domain. In contrast, architecture-level tools are less general but more "powerful" because they embody knowledge about a specific class of tasks.

By defining constructs such as "triggering symptoms" or "test costs" at the architecture level, the knowledge engineer and domain expert can collaborate using a shared vocabulary. This bypasses implementation details and ensures that the system's logic remains transparent to the expert. Furthermore, representing the architecture declaratively imposes constraints that ensure consistency across a development team.

Implementation and Hierarchical Tool Stack

The authors successfully implemented a hierarchical tool stack that bridges the gap between implementation primitives and the user's view.

The hierarchical tool stack, showing the relationship between general AI primitives, the task-specific virtual machine, and the knowledge acquisition interface.

As shown in the table, the stack consists of three distinct layers:

  • AI Toolbox (KEE): The bottom layer providing implementation primitives like frames, rules, and Lisp objects.
  • Virtual Machine (MU Shell): The middle layer providing task-level constructs and reasoning mechanisms (e.g., value propagation, rule-based planning).
  • Knowledge Acquisition Interface: The top layer providing domain-specific terms and software support, such as form-filling interfaces and graphical displays of the inference net.

This vertical integration allows high-level editors to "inherit" the structure of the underlying system, enabling automatic consistency checking. For instance, the system can prevent a user from defining a disease without any associated diagnostic tests.

Limitations and Future Directions

While the architecture-level approach significantly improves productivity, it is limited by the requirement that the task must be well-understood. If a problem does not fit a known "generic task" (like diagnosis), the benefits of a specialized architecture are diminished. Additionally, while acquiring domain facts (e.g., disease symptoms) is streamlined, acquiring control knowledge—the strategy for deciding the next best action—remains a complex challenge. Future work aims to develop better tools for interactively acquiring and debugging these control strategies.

Summary updated

BibTeX
@inproceedings{gruber1987knowledge,
  author = {Thomas R. Gruber and Paul R. Cohen},
  title = {{Knowledge Engineering Tools at the Architecture Level}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1987},
}
Figure