Learning to Solve Geometry Problems from Natural Language Demonstrations in Textbooks

Mrinmaya Sachan, Eric P. XingSEM 2017

Solving geometry problems has long been a "grand challenge" for artificial intelligence. It requires a seamless integration of computer vision to parse complex diagrams and natural language processing to understand textual constraints. Researchers at Carnegie Mellon University have developed a new system that moves beyond simple numerical calculation, instead learning to solve SAT-style geometry problems by "reading" the step-by-step demonstrations found in textbooks.

The Limitations of Numerical Solvers

Previous state-of-the-art systems, such as GEOS, primarily relied on a "numerical solver" approach. These systems would translate a problem into a massive set of coordinate-based constraints and attempt to find a numerical solution that satisfied them. While effective for some standardized tests, this method suffers from two major flaws:

  1. Brittleness: It requires manual engineering of every possible geometric constraint, making it difficult to scale to new types of problems.
  2. Lack of Interpretability: It doesn't "reason" like a human. If a student asks why an answer is correct, a numerical solver can only point to a coordinate grid, not a geometric theorem like "the sum of angles in a triangle is 180°."

A New Approach: Semantic Parsing and Deductive Reasoning

The authors address these issues by introducing a system that learns from demonstrations, mimicking how students learn by following example problems in a classroom. Their model consists of two primary components: a semantic parser and a deductive solver.

Figure 4: The system parses a geometry problem into logical predicates representing the text and diagram.

As shown in the figure above, the Semantic Parser maps natural language and diagrammatic elements into logical predicates. Instead of coordinate geometry, the system treats theorems (e.g., Midpoint Definition, Angle Addition) as "Horn clauses"—logical rules where a specific premise leads to a specific conclusion. This allows the problem to be represented as a set of known facts and relationships.

The Deductive Solver

The Deductive Solver acts as the "brain" of the system. It uses a probabilistic model to score sequences of theorem applications. By looking at the current "state" of the problem, it identifies the most likely theorem to apply next to reach the final answer.

Figure 5: A step-by-step deductive reasoning chain generated by the system to solve for angle x.

This approach allows the system to generate human-readable explanations. Because it uses actual theorems to solve problems, it can produce its own step-by-step solutions. In user studies, students found this system significantly more useful and easier to understand than the "black box" numerical approach of previous models.

Datasets and Evaluation

The study utilized three primary datasets to test the system:

  1. SAT Practice & Official Sets: Standardized test questions used in previous evaluations.
  2. The Textbook Dataset: A massive new dataset collected from grade 6-10 Indian math textbooks, containing 2,235 geometry problems with detailed natural language solutions—roughly 7.5 times larger than previous datasets.
  3. Axiom/Theorem Bank: A manually compiled knowledge base of 293 unique geometry theorems.

Key Results

The authors' system (referred to as O.S.) consistently outperformed the GEOS baseline across all datasets:

Dataset GEOS (Baseline) O.S. (QA + Demonstrations)
SAT Practice 61% 67%
SAT Official 49% 57%
Textbook Set 32% 58%

The most dramatic improvement—a 26% jump—occurred on the textbook dataset. This suggests that while numerical solvers struggle with the complex reasoning required in educational materials, the deductive approach thrives in these structured environments.

Conclusion

By moving from coordinate-based calculation to axiomatic deduction, this research demonstrates that the how of problem-solving matters as much as the what. The use of demonstrations provides a much richer signal for learning the underlying logic of a domain. While the system currently relies on a pre-defined bank of theorems and faces challenges in initial natural language parsing, it represents a significant step toward AI tutors that can provide automated, step-by-step guidance for students.

Summary updated

BibTeX
@inproceedings{sachan2017learning,
  author = {Mrinmaya Sachan and Eric P. Xing},
  title = {{Learning to Solve Geometry Problems from Natural Language Demonstrations in Textbooks}},
  booktitle = {SEM},
  year = {2017},
  doi = {10.18653/v1/s17-1029},
}
Figure