Explainable (and Maintainable) Expert Systems

Robert Neches, William R. Swartout, Johanna D. Moore

Introduction

In the mid-1980s, expert systems like MYCIN represented the cutting edge of artificial intelligence. However, they faced two critical hurdles: they were "black boxes" that provided poor explanations for their reasoning, and they were "maintenance nightmares" due to the manual encoding of complex procedural rules. The Explainable Expert Systems (EES) paradigm addresses these issues by explicitly representing the design knowledge and reasoning that goes into building a system.

The EES Framework Architecture

The core of the EES approach is a shift from procedural encoding to declarative representation. Rather than human programmers writing low-level code, an automatic program writer generates the system from high-level domain models and problem-solving principles.

Overview of the Explainable Expert Systems (EES) architecture

The framework consists of several integrated components:

  • Knowledge Base (NIKL): A semantic network that separates factual domain knowledge (e.g., medical facts) from abstract problem-solving strategies (domain principles) and trade-offs.
  • Automatic Program Writer: This component takes high-level goals and refines them into executable code, recording every design choice in a "development history."
  • Explanation Generator: By accessing both the execution trace (what happened) and the development history (why it was designed that way), the system can provide principled justifications for its actions.

Goal Refinement and Program Generation

The program writer uses techniques such as goal/subgoal refinement and reformulation to bridge the gap between abstract principles and executable code. This process ensures that the rationale for every line of code is captured.

Hierarchical refinement of goals into subgoals during program generation

As shown in the refinement tree, a high-level goal like "Enhance Program" is broken down into specific tasks such as scanning for transformation opportunities and resolving conflicts. This structured approach allows the system to "understand" its own construction and explain the purpose behind specific procedural steps.

Key Insights and Applications

The EES paradigm was evaluated in two primary domains: Digitalis Therapy, for drug dosage recommendations, and the Program Enhancement Advisor (PEA), which critiques LISP code for stylistic improvements.

A major insight of this work is that the "why" of a system resides in its design, not just its code. By automating the coding phase, EES captures design decisions that are usually lost. Furthermore, the separation of concerns—keeping factual knowledge separate from problem-solving strategies—makes the system highly modular. For instance, adding a new drug interaction in the Digitalis domain only requires updating the domain model; the program writer then automatically generates the necessary procedural logic, ensuring consistency that a human programmer might miss.

Results and Limitations

The paper demonstrates that EES can provide deep, principled justifications. Instead of merely paraphrasing a rule, the system can explain that a specific construct (like IF-THEN-ELSE) was chosen to "enhance readability" based on high-level stylistic principles stored in the knowledge base.

However, the authors note several challenges:

  • Complexity: The program writer is a sophisticated piece of software that may not yet handle all possible domain derivations.
  • Overhead: Generating and storing an "enormous" development history introduces significant computational and storage costs.
  • Implementation Status: While the core framework was established, many specific question-answering strategies remained under development at the time of publication.

Despite these hurdles, the EES paradigm offers a robust path toward AI systems that are both transparent to users and manageable for developers.

Summary updated

BibTeX
@inproceedings{neches1985explainable,
  author = {Robert Neches and William R. Swartout and Johanna D. Moore},
  title = {{Explainable (and Maintainable) Expert Systems}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1985},
}
Figure