Generating Production Rules from Decision Trees

J. Ross QuinlanIJCAI 1987

This 1987 classic by J.R. Quinlan is a cornerstone of early machine learning. It introduces a robust method for transforming complex, often overfitted decision trees into a streamlined set of "if-then" production rules. This process doesn't just make the models more interpretable for humans; it frequently makes them more accurate on new data.

What Problem Does This Paper Address?

In the 1980s, inductive learning algorithms like ID3 were highly effective at generating decision trees from data. However, these trees faced three major hurdles:

  1. Interpretability: Large trees with dozens of nested levels are difficult for human experts to audit or modify.
  2. Overfitting: Trees often capture "noise" in the training data—specific quirks that don't apply to the real world—leading to poor performance on unseen cases.
  3. Rigidity: There is no easy way to combine two different decision trees built for the same task into one superior model.
A complex decision tree for thyroid disease diagnosis, illustrating the interpretability challenges of large trees.

Production rules (If Condition Then Class) were the preferred format for expert systems because they are modular and transparent. Quinlan sought a way to get the best of both worlds: the automated learning of trees and the modularity of rules.

Methods

The transformation happens in two distinct stages:

1. Extracting and Pruning Individual Rules

Every path from the root of a decision tree to a leaf represents a potential rule. However, many of the conditions along that path might be irrelevant.

  • Condition Dropping: For every rule, the algorithm examines each condition. It uses a $2 \times 2$ contingency table and Fisher’s exact test to determine if a condition actually helps predict the class. If the condition isn't statistically significant (typically at the 1% level), it is deleted.
  • Certainty Factors: To estimate how reliable a rule is, Quinlan uses Yates’ correction for continuity to calculate a "certainty factor," providing a more realistic accuracy estimate than simple ratios.

2. Processing Collections of Rules (Winnowing)

Once a raw set of rules is extracted, many may be redundant or even harmful to overall accuracy.

  • The Winnowing Algorithm: The system looks at the entire set of rules and iteratively removes the one that contributes the least to the overall accuracy on the training set. This continues until removing any more rules would increase the error rate.
  • Merging Trees: Because rules are modular, you can take rules extracted from multiple different decision trees, throw them into one big "bucket," and let the winnowing process select the best subset.

Key Insights

  • Rules are more than just "Flattened Trees": A tree forces a hierarchical structure where every test depends on the one above it. By breaking paths into rules and pruning them, the algorithm can discover simpler, non-hierarchical relationships that the tree structure obscured.
  • Simplicity is a Proxy for Generalization: Stripping away conditions that only satisfy a few training cases (noise) leads to a model that performs better on "unseen" test cases.
  • The Power of Modularity: Unlike trees, rules can be merged. Quinlan showed that combining ten different trees into one rule set yielded better results than the single best tree.

Key Results

Quinlan evaluated the method across six diverse domains, including thyroid disease diagnosis (endocrinology), credit assessment, and chess endgames. The results consistently showed that production rules were both more compact and often more accurate than the trees they replaced.

Comparison of average size and error rates between decision trees and production rules across six domains.
  • Massive Size Reduction: In the Chess endgame task, a tree with 88 nodes was reduced to a rule set of just 11.6 rules on average.
  • Improved Accuracy: In the thyroid disease dataset, the original decision tree had 27 leaves and made 14 errors on a test set of 972 cases. The final winnowed rule set had only 4 rules and made only 13 errors.
  • Superior Merging: When 10 different trees for the thyroid task were merged and winnowed, the resulting 5 rules made only 8 errors, significantly outperforming any individual tree.

Limitations and Future Work

While powerful, the approach relies on a "hill-climbing" strategy—dropping one condition or rule at a time—which is greedy and might miss the absolute best combination of rules. Additionally, the two-stage pruning and winnowing process adds computational overhead during training. Quinlan suggested that more sophisticated search strategies could generate even more optimal rule sets in the future.

Summary updated

BibTeX
@inproceedings{quinlan1987generating,
  author = {J. Ross Quinlan},
  title = {{Generating Production Rules from Decision Trees}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1987},
}
Figure