Towards Generating Controllable and Solvable Geometry Problem by Leveraging Symbolic Deduction Engine

Zhuoxuan Jiang, Tianyang Zhang, Peiyan Peng, Jing Chen, Yinong Xun, Haotian Zhang, Lichi Li, Yong Li, Shaohua Zhang

Abstract: Generating high-quality geometry problems is both an important and challenging task in education. Compared to math word problems, geometry problems further emphasize multi-modal formats and the translation between informal and formal languages. In this paper, we introduce a novel task for geometry problem generation and propose a new pipeline method: the Symbolic Deduction Engine-based Geometry Problem Generation framework (SDE-GPG). The framework leverages a symbolic deduction engine and contains four main steps: (1) searching a predefined mapping table from knowledge points to extended definitions, (2) sampling extended definitions and performing symbolic deduction, (3) filtering out unqualified problems, and (4) generating textual problems and diagrams. Specifically, our method supports to avoid inherent biases in translating natural language into formal language by designing the mapping table, and guarantees to control the generated problems in terms of knowledge points and difficulties by an elaborate checking function. With obtained formal problems, they are translated to natural language and the accompanying diagrams are automatically drew by rule-based methods. We conduct experiments using real-world combinations of knowledge points from two public datasets. The results demonstrate that the SDE-GPG can effectively generate readable, solvable and controllable geometry problems.

Introduction

Generating math word problems is a well-trodden path for AI, but geometry presents unique challenges. A high-quality geometry problem requires three components to work in perfect harmony: a textual description, a corresponding diagram, and a rigorous, step-by-step logical path to a solution.

General-purpose Large Language Models (LLMs) often struggle in this domain. They frequently describe mathematically impossible figures or provide "proofs" that rely on logical hallucinations. For educators, a problem generator is only useful if it produces solvable puzzles that target specific "knowledge points" (e.g., properties of parallel lines or triangle congruence). This research introduces the SDE-GPG framework to address the critical needs for controllability (hitting curriculum goals) and solvability (ensuring a valid proof exists).

The SDE-GPG Framework

The Symbolic Deduction Engine-based Geometry Problem Generation (SDE-GPG) framework prioritizes formal logic over natural language generation. By generating the formal proof before the text, the system avoids the hallucination traps common in LLMs.

The SDE-GPG pipeline: from knowledge point selection to multi-modal problem generation.

The framework follows a four-step pipeline:

  1. Offline Mapping (K2exD-MT): A mapping table connects specific knowledge points (theorems) to "extended definitions" (formal geometric setups known to trigger those theorems).
  2. Symbolic Deduction: The system leverages a symbolic engine (derived from AlphaGeometry) to sample geometric setups and discover all possible logical conclusions.
  3. Qualification Checking: A checking function filters results to ensure they use the shortest reasoning path, include all required knowledge points, and match the desired difficulty level based on the number of logical steps.
  4. Multi-modal Generation: Valid formal proofs are translated into natural language using templates, and diagrams are automatically drawn using rule-based methods.

Experimental Results

The researchers evaluated SDE-GPG against GPT-4o using two datasets: JGEX-AG-231 (Olympiad-level theorems) and GeoQA (middle school problems). The results highlight the framework's superior logical integrity and pedagogical utility.

Performance comparison on the JGEX-AG-231 dataset across readability, solvability, and controllability metrics.

As shown in the evaluation on the JGEX dataset, SDE-GPG achieved a 1.00 (perfect) Native Solvability (NS) score, whereas GPT-4o lagged at 0.51. This indicates that nearly half of the problems generated by the LLM were logically broken. Furthermore, SDE-GPG demonstrated significantly higher controllability, achieving a score of 0.94 on the GeoQA dataset for including specific requested theorems, compared to GPT-4o's 0.75. Despite using templates, the system also scored higher in grammatical fluency and logical correctness, as the underlying logical structure was inherently more coherent.

Conclusion

SDE-GPG represents a major step forward in generating controllable and solvable educational content. By grounding generation in a symbolic deduction engine, the framework ensures mathematical accuracy that general LLMs cannot yet match. Future work aims to expand the system's scope to include 3D geometry and geometric inequalities, while exploring the use of LLMs to "polish" template-generated text for more natural phrasing.

Summary updated

BibTeX
@inproceedings{jiang2025towards,
  author = {Zhuoxuan Jiang and Tianyang Zhang and Peiyan Peng and Jing Chen and Yinong Xun and Haotian Zhang and Lichi Li and Yong Li and Shaohua Zhang},
  title = {{Towards Generating Controllable and Solvable Geometry Problem by Leveraging Symbolic Deduction Engine}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure