In this 1989 paper, Jude W. Shavlik introduces BAGGER2, a system designed to overcome a fundamental limitation in Explanation-Based Learning (EBL): the inability to generalize the structure of a solution. While traditional EBL could generalize specific constants into variables, it remained "structure-bound," meaning it could not generalize the number of steps or entities involved in a process. BAGGER2 addresses this by detecting repeated patterns in an explanation and transforming them into general recursive rules.
The Problem: Structure-Bound Learning
In the late 1980s, EBL was a prominent method for "speed-up learning." A system would analyze a specific problem-solving trace (an explanation) and convert it into a general rule. However, standard algorithms like EGGS were limited. For example, if shown how to build a tower of three blocks, the system would learn a rule specifically for three-block towers. It could not infer the underlying recursive process required to build a tower of $N$ blocks.
This limitation led to two primary issues:
- Poor Generalization: Systems could not handle problems even slightly larger than those seen during training.
- The Utility Problem: To handle different problem sizes, a system had to learn a separate rule for every possible $N$. This bloated the rulebase, eventually making the system slower as it spent more time searching through its own learned rules than solving the problem from scratch.
The BAGGER2 Method
BAGGER2 extends the standard EGGS algorithm by identifying repeated inter-dependent sub-structures within an explanation tree. The process involves three main stages:
- Detection: As the system constructs an explanation, it monitors for general sub-problems (e.g., $P$) that appear more than once within a single branch of the proof tree.
- Partitioning: Once a repetition is identified, BAGGER2 partitions the explanation into three distinct components: recursive portions (where one instance of $P$ solves another), terminal portions (where $P$ is solved without further recursion), and non-recursive portions (the remainder of the proof).
- Rule Generation: The system generates a "recurrence"—a recursive function capturing the logic of the repeated steps. This is stored as a separate entity, allowing it to be reused or merged with new examples to handle more complex cases.
Evaluation and Results
The paper evaluates BAGGER2 in two symbolic AI domains: Circuit Design (converting $N$-input gates using DeMorgan’s Law) and Blocks-World (building towers of height $N$). These environments allowed the system to be trained on small instances and tested on significantly larger, more complex ones.
Learning Rate and Solvability
In the circuit design task, BAGGER2 demonstrated a superior learning rate. It reached 100% solvability on test problems with far fewer training examples than the EGGS algorithm. This efficiency stems from its ability to capture the core recursive logic from a single example, whereas EGGS required examples for every specific configuration.
Scalability and Efficiency
As problem complexity increased (e.g., more inputs or taller towers), BAGGER2’s solution time remained relatively flat. In contrast, EGGS’s performance degraded rapidly, eventually becoming slower than a "no-learn" baseline. This demonstrates that recursive rules are computationally "cheaper" than maintaining a massive library of specific rules, effectively solving the Utility Problem.
Conclusion
BAGGER2 represents a significant step forward for EBL by moving beyond simple constant-to-variable generalization. By modifying the topology of the explanation itself, it enables true structural generalization. While the system is currently limited to tree-structured explanations and assumes well-behaved domain theories for termination, its ability to integrate results from multiple examples and maintain efficiency at scale marks a major advancement in automated reasoning.
Summary updated