Generating Rules from Examples

Bijan Arbab, Donald Michie

Abstract

This paper introduces RG (Rule Generator), an algorithm designed to bridge the gap between human-readable and machine-efficient decision trees. Traditional induction algorithms, such as Quinlan’s ID3, prioritize execution efficiency, often resulting in complex, "bushy" structures that are difficult for human experts to verify. RG addresses this by prioritizing "linearity"—a structural property where each node has at most one branching path. By utilizing an AO* search technique and information theory as a tie-breaker, RG produces rules that maintain high execution speed while remaining transparent and understandable to experts.

Introduction: The Knowledge Acquisition Bottleneck

In the development of expert systems, a primary challenge is extracting structured rules from domain experts. While experts can easily provide examples, they often struggle to articulate the underlying logic in a formal way. Automated rule induction from examples offers a solution, but existing methods fall into two extremes:

  1. Efficiency-focused (e.g., ID3): These minimize tree depth to maximize speed, often creating non-linear, opaque structures.
  2. Understandability-focused (e.g., AOCDL): These prioritize linear structures but often ignore computational costs.

The RG algorithm is proposed as a middle ground that favors human clarity first and machine speed second.

Methodology: The RG Algorithm

RG navigates the state space of possible decision trees using an AO* search technique. This approach allows the algorithm to guarantee optimal linearity under given constraints, unlike greedy algorithms that may get stuck in local optima.

Linearity and Efficiency Heuristics

The core of RG is its dual-objective optimization:

  • Linearity Heuristic: RG employs a non-linearity measure that penalizes complex branching. A perfectly linear tree is one where every node has at most one non-terminal child, making the logic flow in a straight line.
  • Efficiency via Entropy: When multiple attributes yield equally linear trees, RG uses information gain (entropy) to select the attribute that classifies data most effectively, ensuring the tree remains shallow and fast.
Figure 1: Comparison of decision trees with varying degrees of linearity and efficiency.

Quantifying Understandability

To optimize for human-friendliness, the authors define a mathematical measure of non-linearity. This measure quantifies the "jumps" in memory and branching complexity that a human must track when following the rule set.

Figure 5: Mathematical measures of non-linearity for four different tree structures (T1-T4).

As shown in the figure above, different tree topologies result in distinct non-linearity scores (NL). By minimizing this score, RG ensures that the resulting rules follow a "structured programming" philosophy, trading marginal execution speed for significantly improved maintainability and clarity.

Experimental Evaluation

The algorithm was tested on several mid-80s AI benchmarks, including Winston’s arch-building domain, block sorting, and Alen Shapiro’s chess end-game data.

Key Results

Across five experimental cases (EX1–EX5), RG demonstrated superior performance:

  • Linearity: RG consistently matched the linearity of AOCDL, significantly outperforming ID3 in readability.
  • Efficiency: RG was more efficient than AOCDL in all cases. While ID3 was occasionally faster due to its aggressive depth minimization, RG remained highly competitive.
  • Case Study (EX4): In a planning domain, ID3 produced a non-linear tree (cost 1.32), while AOCDL produced a linear tree with high cost (3.5). RG achieved a linear tree with a much lower cost of 2.11, effectively capturing the "best of both worlds."

Conclusion and Future Work

RG successfully demonstrates that rule induction can be optimized for human understanding without sacrificing machine performance. By treating linearity as a primary objective, the algorithm produces verifiable rules suitable for expert systems.

Future work may address the limitations of decision trees compared to first-order logic and explore ways to automate "structured induction"—the process of decomposing large problems into manageable sub-problems—which currently requires human intervention.

Summary updated

BibTeX
@inproceedings{arbab1985generating,
  author = {Bijan Arbab and Donald Michie},
  title = {{Generating Rules from Examples}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1985},
}
Figure