Introduction
Early expert systems often struggled with transparency. While they could solve complex problems, their explanations were typically literal traces of the rules fired during execution. For a knowledge engineer, this "line of reasoning" is useful for debugging, but for an end-user, it is often incoherent and cluttered with heuristic shortcuts. This paper proposes that effective explanation should be treated as a separate, complex problem-solving task—one that reconstructs a logical narrative from a conclusion back to its supporting evidence using structured "textbook knowledge."
The REX System
The authors introduce REX (Reconstructive Explainer), a system designed to decouple the line of reasoning from the line of explanation. REX does not simply replay the solver's steps; instead, it treats the generation of an explanation as a search problem.
The process involves four key components:
- Textbook Knowledge Base: A library of structured, causal relationships separate from the expert system's internal heuristics.
- High-Level Specification: A mapping of the expert system's execution trace into a graph of hypotheses and data transitions, stripping away implementation-specific details.
- A* Search: An algorithm that searches the textbook knowledge base for the most direct and "clean" path from the initial state to the final conclusion.
- Story Teller: A component that formats the discovered path into a "story tree" using a specific grammar to produce natural language.
Knowledge Representation
To facilitate reconstruction, REX relies on a highly structured representation of domain knowledge. This includes cues (data), hypotheses (conclusions), goals, and scripts (causal links).
By using these structures, REX can introduce supporting data that may not have been explicitly used by the original solver but is necessary for a human-readable justification. This decoupling allows the solver to be optimized for performance while the explainer remains focused on pedagogical clarity.
Story Generation and the "Story Tree"
Once a logical path is found, REX organizes it into a hierarchical "story tree." This structure ensures that the explanation follows a narrative arc—setting the scene, establishing a theme (the goal), detailing the plot (the causal chain), and reaching a resolution.
This approach allows the system to bypass messy heuristic leaps. For instance, while a human expert might use a "shortcut" like seeing debris and immediately suspecting a flood, REX's explanation would reconstruct the causal link directly from the physical symptoms (e.g., broken pipes) to the underlying cause (e.g., internal erosion).
Case Study: Concrete Dam Diagnosis
The system was evaluated using a real-world case study involving the diagnosis of excessive load on a concrete dam. The goal was to explain why "internal erosion" was the primary cause of instability. REX successfully navigated from the conclusion back to symptoms like "high uplift pressure" and "broken pipes" using a path significantly more direct than the original reasoning trace. The resulting narrative flows logically from physical evidence to causal agents, avoiding the "dead-ends" typical of raw rule traces.
Conclusion and Limitations
The primary insight of this work is that the "line of explanation" is unique and often requires a complete reorganization of logic. By decoupling solving from explaining, developers can optimize solvers for performance while ensuring explainers prioritize clarity. However, this approach requires significant knowledge engineering to build the "textbook" base. Future work remains in refining the natural language generation to reduce verbosity and ensuring the reconstructed explanation remains faithful to the underlying system logic.
Summary updated