Explanation-based Generalization in a Logic-Programming Environment

TL;DR

This paper presents an implementation of Explanation-Based Generalization (EBG) within a logic-programming environment, where generalization happens concurrently with explanation. By formalizing EBG in logic, the authors clarify its relationship with operationality and search control, and propose solutions for handling imperfect domain theories.

What Problem Does This Paper Address?

Explanation-Based Generalization (EBG) is a machine learning technique that learns general rules from specific examples by analyzing the "explanation" of why an example is valid. Traditionally, EBG involves two sequential steps: first, creating a proof (explanation) for a specific instance, and second, generalizing this proof to form a broader rule. This paper addresses challenges in EBG, particularly:

  • Integration with Logic Programming: How to effectively integrate EBG into a logic-programming framework, leveraging its inferential capabilities.
  • Operationality: Defining and handling "operationality," which determines which predicates are considered basic and understandable enough to be part of the final learned rule. This is crucial for generating useful generalizations.
  • Imperfect Domain Theories: Dealing with incomplete or inconsistent knowledge bases (domain theories) that can lead to overgeneralization or incorrect learning.
  • Search Control: Understanding how EBG relates to learning search control strategies, which guide the problem-solving process.

Methods

The core contribution is an EBG implementation within the MRS (a logic-programming system) environment. Key methodological aspects include:

  • Logic-Based Formalism: All aspects of EBG, including explanation, generalization, and operationality, are represented and reasoned about using logic. This provides a clear semantics and allows for seamless integration with the logic-programming system.
  • Interleaved Explanation and Generalization: Instead of a sequential two-step process, this implementation interleaves explanation and generalization. As the system proves an instance, it simultaneously builds a generalized explanation structure. This means that as a rule is used to prove a specific case, it's also applied backward to a variablized version of the goal, creating the generalized structure in parallel.
  • Operationality as a Provable Property: Operationality is not just a static list of predicates but is treated as a property that can be reasoned about and proven. This allows for more dynamic and robust handling of operationality, potentially using meta-level reasoning within MRS.
  • Handling Imperfect Theories: The paper proposes two main strategies for dealing with imperfect domain theories:
  • Explicit Conflict Resolution: Incorporating conflict resolution decisions directly into the explanation structure.
  • Reformulating Domain Theories: Modifying the domain theory to remove ambiguities and make conflict resolution explicit, often by introducing new predicates (e.g., Weight1 and Unprovable).

Datasets

The paper uses the "Safe-To-Stack" example from Mitchell, Keller, and Kedar-Cabelli (1986) to illustrate its concepts. This is a well-defined, small-scale example rather than a large dataset. No new benchmarks are introduced.

Key Insights and Ideas

  • Logic as a Unifying Framework: Viewing EBG entirely through the lens of logic provides a consistent and clear semantics, simplifying integration and reasoning about complex aspects like operationality and search control.
  • Interleaving is More Efficient and Robust: Performing generalization concurrently with explanation avoids the need to backtrack and re-process failed proof branches for generalization purposes. It also ensures that an operational definition can always be formed if a proof exists.
  • Operationality as Reasoning: Treating operationality as a provable property, rather than a fixed list, makes the learning process more flexible and adaptable. This allows for dynamic determination of what constitutes an "operational" predicate.
  • Imperfect Theories Lead to Overgeneralization: The core reason for overgeneralization in EBG is hidden information in the domain theory, particularly regarding conflict resolution strategies (like rule order or default rules). Making this information explicit is key to learning correct rules.
  • Reformulation as a Powerful Solution: Reformulating the domain theory to eliminate ambiguities and make conflict resolution explicit is a robust way to address imperfect theories and prevent overgeneralization.

Key Results

The paper demonstrates that its interleaved EBG approach, when implemented in a logic-programming environment, can:

  • Generate generalized rules from specific examples.
  • Handle operationality dynamically by treating it as a provable property.
  • Address issues of imperfect domain theories by making conflict resolution explicit, leading to correct, non-overgeneralized rules.
  • Unify the representation of domain operators and rules, simplifying regression mechanisms.

Specific quantitative results are not the focus; the paper is more about the conceptual framework and implementation strategy. The "results" are the learned rules and the clarity gained in understanding EBG's mechanisms. For instance, the "Safe-To-Stack" example, when dealing with an imperfect theory, results in a learned rule that explicitly includes an Unprovable conjunct, preventing overgeneralization.

Limitations and Future Work

  • Over-specialization: The authors acknowledge that explicitly incorporating conflict resolution decisions into the explanation structure can sometimes lead to over-specialized rules.
  • Encoding Conflict Resolution: Encoding complex conflict resolution strategies (like rule order) explicitly for the explanation structure can be difficult.
  • Future Work: The paper suggests that the ability to reason about operationality dynamically opens up avenues for more sophisticated learning, potentially applying EBG to the process of defining operationality itself. The reformulation of domain theories also points towards further research in knowledge representation for learning systems.

Summary updated

BibTeX
@inproceedings{1987explanation,
  title = {{Explanation-based Generalization in a Logic-Programming Environment}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1987},
}
Figure