The Implementation of Expert, Knowledge-Based Systems

John K. DebenhamIJCAI 1989

Introduction

Building large-scale expert systems involves a fundamental trade-off: should information be stored (fast to read, slow to update) or derived on the fly from rules (slow to read, no storage cost)? This research formalizes this "storage vs. derivation" challenge as a graph-theory problem. While unconstrained versions of this problem can be solved in polynomial time, finding the optimal storage strategy under real-world performance constraints is proven to be NP-complete.

The Storage vs. Derivation Problem

In the late 1980s, as expert systems grew in complexity, maintenance and optimization became significant hurdles. Consider a system with rules such as: "If a customer has a steady income and regular expenditure, they are a good credit risk."

A simple dependency diagram illustrating the relationship between customer risk, income, and expenditure.

To answer a query about credit risk, a system has two primary options:

  1. Store the result: Maintain a database of every customer's risk level. This ensures rapid queries but necessitates massive updates whenever underlying data (income or spending) changes.
  2. Derive the result: Calculate the risk level only upon request. This minimizes storage and update overhead but significantly slows down query response times.

The goal is to identify which intermediate "predicates" should be stored to minimize total operational costs while meeting responsiveness requirements for both queries and updates.

Methodology: Graph Theory and Transformations

The paper models expert systems using dependency diagrams. In these diagrams, nodes represent predicates and arcs represent the logical flow of rules, typically using a Horn clause formalism.

Graph Transformations and Min-Cut

To identify the "minimal storage allocation," the dependency diagram is transformed into a dual diagram. In this representation, predicates are mapped to arcs or "pseudo-polygons," while rules are represented by nodes. By applying standard minimum-cut algorithms to these dual diagrams, the "cheapest" set of predicates to store can be determined for unconstrained environments.

A dependency diagram with numerical weights representing the costs associated with different predicates.

Complexity Analysis

The research highlights a sharp transition in computational difficulty. Finding the absolute cheapest storage is a polynomial-time task. However, once performance constraints are introduced—such as "queries must take less than X time"—the problem becomes NP-complete. This is proven via a reduction to the "Minimum Cut Into Bounded Sets" problem.

Heuristic Solutions for Real-World Systems

Given that the constrained problem is computationally intractable, the paper proposes a polynomial-time heuristic algorithm. This approach begins with the optimal unconstrained solution and iteratively modifies it until all performance constraints are satisfied.

Key Insights

  • The "Cut" as Storage: A storage allocation is essentially a cut in a graph that separates input (update) nodes from output (query) nodes.
  • Divisions vs. Irredundant Sets: The author distinguishes between a "division" (stored predicates with no mutual dependencies) and general "irredundant storage allocations." While divisions are simpler, they are not always the most cost-effective.
  • Dual Diagram Mapping: Collapsing thick arcs (representing rule heads) into points to create dual diagrams allows the application of classical flow network theory to logic-based systems.

Conclusion and Limitations

The paper provides a rigorous mathematical framework for the "Expert Systems Implementation Problem." It demonstrates that while finding global optima under constraints is hard, practical heuristics can guide engineers in designing efficient systems.

However, some limitations remain:

  • Recursion: The discussion is limited to "primary recursion," excluding more complex inter-dependencies.
  • Heuristic Reliability: The proposed algorithm may fail to find a solution if constraints are extremely tight, even if one exists.
  • Rule Optimization: The approach assumes the rule set is already minimal and does not account for potential rule redesigns to improve performance.

Summary updated

BibTeX
@inproceedings{debenham1989implementation,
  author = {John K. Debenham},
  title = {{The Implementation of Expert, Knowledge-Based Systems}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1989},
}
Figure