Utilization Filtering: A Method for Reducing the Inherent Harmfulness of Deductively Learned Knowledge

Shaul Markovitch, Paul D. Scott

Abstract

In automated reasoning, the acquisition of new knowledge is typically expected to improve performance. However, in deductive systems like Prolog, "learned" shortcuts can paradoxically slow down problem-solving due to the backtracking anomaly. This paper introduces utilization filtering, a technique that dynamically prevents the use of learned lemmas when a search path is predicted to fail. By employing a probabilistic gatekeeper, the system avoids redundant work caused by backtracking into previously explored failing subtrees. Experimental results on a network diagnostic database show that utilization filtering can achieve a 3x performance improvement over unfiltered learning systems, effectively turning potentially harmful knowledge into a net benefit.

The Problem: The Backtracking Anomaly

The core issue addressed is that more knowledge isn't always better. In deductive problem solving, a system might learn a "lemma"—a shortcut that jumps from a starting point to a conclusion. While this seems efficient, it creates a trap if the shortcut leads to a failure.

Figure 1: The backtracking anomaly. A shortcut from B to C bypasses the original path. If the subtree at C fails, the system backtracks and explores the original path (dashed line) to the same failing subtree, doubling the work.

As shown in Figure 1, if a shortcut (the thick line from B to C) leads to a dead end, the solver backtracks. Due to the nature of depth-first search in these systems, the solver will then proceed to explore the original long path (the dashed line) that it used to derive the shortcut in the first place. Consequently, the system searches the same failing subtree twice, making it significantly slower than if it had never learned the shortcut at all.

Methodology: Utilization Filtering

To combat this, the authors propose utilization filtering. Instead of treating all learned knowledge as globally beneficial, the system attaches a "filter function" to each lemma. This function decides in real-time whether to use a piece of learned knowledge based on the current context.

The implementation, integrated into the SYLLOG system, follows a three-step probabilistic approach:

  1. Data Collection: During a dedicated learning phase, the system tracks "CALL" (attempts) and "FAIL" (exhausted options) counters for various goals.
  2. Probability Estimation: It calculates failure probabilities at four levels of granularity: from general predicates (e.g., parent(X,Y)) to specific goals within a rule body with specific arguments bound.
  3. The Gatekeeper: During problem-solving, if the estimated probability of a goal failing exceeds a preset threshold, the filter disables the use of lemmas for that entire subtree, forcing the system to rely on original rules and avoiding "shortcuts to nowhere."

Experimental Evaluation

The method was evaluated using a Prolog database representing a research lab's computer network layout, consisting of approximately 40 rules and several hundred facts. The task involved network validation and diagnostics. The researchers used 50 randomly generated problems for the learning phase to build lemmas and failure statistics, followed by 20 different problems for performance testing.

Key Results and the U-Shaped Curve

The experiments revealed that without filtering, the system using learned lemmas performed worse than a baseline system with no learning at all. However, with utilization filtering, performance improved dramatically.

Figure 2: Average number of unifications vs. probability threshold. The U-shaped curve indicates an optimal "sweet spot" for performance at a threshold of approximately 0.5.

As illustrated in Figure 2, the relationship between the filtering threshold and performance follows a U-shaped curve. If the threshold is too low (too strict), the system loses the benefits of valid shortcuts. If it is too high (too loose), the backtracking anomaly dominates. The optimal performance—a 3x speedup in terms of average unifications—was achieved at a threshold of 0.5.

Furthermore, the results indicated that specificity matters. The system performed best when using the most specific failure probabilities available (e.g., context-dependent goals) rather than general predicate statistics.

Discussion and Conclusion

Utilization filtering challenges the classic AI assumption that more information is inherently better. It recognizes that the utility of a rule is context-dependent and that even logically correct knowledge can be computationally "harmful."

While effective, the current model has limitations. It uses a static, fixed threshold and relies on probabilities gathered during a separate learning phase. Future work could involve a more sophisticated cost-benefit analysis—weighing the expected gain of success against the cost of failure—and dynamic updates to failure probabilities as the system's environment evolves. Nevertheless, utilization filtering provides a robust framework for managing the overhead of learned knowledge in deductive systems.

Summary updated

BibTeX
@inproceedings{markovitch1989utilization,
  author = {Shaul Markovitch and Paul D. Scott},
  title = {{Utilization Filtering: A Method for Reducing the Inherent Harmfulness of Deductively Learned Knowledge}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1989},
}
Figure