Abstract
This paper introduces ALEX (Algebra Example Learner), a system designed to acquire procedural knowledge from textbook examples and active problem-solving. By utilizing a production-rule architecture and means-ends analysis, ALEX can infer missing steps in demonstrations and refine its internal rules through trial and error. The system demonstrates how autonomous agents can bridge the gap between sparse examples and functional expertise in symbolic domains like algebra, mimicking the cognitive processes of human learners.
1. Introduction
Procedural learning—the ability to perform a sequence of actions to achieve a goal—is a hallmark of human intelligence. In educational settings, students often learn by studying worked-out examples and then applying those patterns to new problems. However, textbooks frequently omit intermediate steps, assuming the reader can infer the underlying logic. This paper explores ALEX, a computational model that mimics this active learning process by "solving" the examples it reads to fill in missing procedural gaps.
2. The ALEX Architecture
ALEX is built on a production system (specifically a variant of OPS) where knowledge is encoded as "If-Then" rules. It distinguishes between two types of knowledge:
- Working Forward Rules: These dictate what action to take based on the current state of the equation (e.g., "If there is a number on the left, subtract it from both sides").
- Difference Rules: These suggest which operator might be useful based on the change observed between two states (e.g., "If a number was added to both sides, the operator used was
add-to-both-sides").
This dual-rule approach allows ALEX to not only solve problems but also to "read" and understand demonstrations by indexing operators according to the differences they reduce.
3. Learning via Means-Ends Analysis
The core of ALEX's learning capability lies in its ability to fill gaps. When presented with two consecutive lines in an example that it cannot immediately explain, the system initiates a search process to bridge the gap.
As shown in Figure 1, the system computes the difference between lines (M1). If a known operator cannot bridge the gap (M2b), it employs means-ends analysis (M3a) or attempts to induce a simple transformation (M3b). If the search is successful, ALEX "back-fills" its memory by building new "working forward" and "difference" productions (M3d, M4b). This allows the system to effectively teach itself the missing logic in a textbook demonstration.
4. Experimental Evaluation
The system was tested using a real-world high school textbook: Elementary Algebra: A Guided Inquiry (Stein and Crabill, 1972). The training set consisted of a single five-step worked-out example for the equation $3x - 4 = 0$. From this single example, ALEX successfully generated six forward rules and four difference rules.
In the evaluation phase, ALEX attempted six test problems provided at the end of the textbook section. It successfully solved five of them. The failure occurred on a problem ($1/x = 2$) that required a non-monotonic strategy—temporarily increasing the complexity of the equation (e.g., multiplying both sides by $x$) to reach a simpler state. This is a classic hurdle for means-ends analysis systems, which typically prefer steps that directly reduce the perceived distance to the goal.
5. Discussion and Human-like Errors
Interestingly, ALEX's learned rules were sometimes "too general," leading to errors similar to those made by human novices—such as dividing only one term on a side instead of the entire side. This suggests that the system's method of rule induction captures some of the same heuristic-based learning patterns as human students.
Furthermore, the author notes that while textbooks use analogies (like a balanced seesaw), ALEX ignores them. This highlights a gap between conceptual analogies and the actual procedural "symbol pushing" required to solve math. While ALEX achieves procedural fluency, it lacks the high-level conceptual grounding that analogies are intended to provide.
6. Conclusion
ALEX demonstrates that procedural learning is an active process of gap-filling and rule induction. By combining example analysis with internal problem-solving, the system can move from a blank slate to solving complex algebraic equations with minimal supervision. Future work will focus on refining rule conditions through a "discrimination procedure" to avoid over-generalization and exploring how high-level conceptual analogies can be integrated into the learning process.
Summary updated