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

TL;DR

This paper introduces a novel framework, SDE-GPG, for automatically generating high-quality, solvable geometry problems. By combining a symbolic deduction engine with a structured approach to knowledge representation and problem qualification, the method ensures generated problems are controllable in terms of knowledge points and difficulty, and are accompanied by accurate textual descriptions and diagrams.

What Problem Does This Paper Address?

Generating high-quality geometry problems is a challenging but crucial task for education. Unlike math word problems, geometry problems demand a strong emphasis on multi-modal formats (text and diagrams) and the translation between informal natural language and formal mathematical reasoning. Existing automated problem generation methods, primarily focused on word problems, are not directly applicable to geometry due to its unique requirements for spatial reasoning, formal logic, and visual representation. The authors aim to bridge this gap by developing a system that can generate geometry problems that are not only readable and solvable but also controllable in terms of their difficulty and the specific geometric concepts they cover.

Methods

The core of the proposed solution is the Symbolic Deduction Engine-based Geometry Problem Generation framework (SDE-GPG). This framework operates in four main steps:

  1. Knowledge Point-to-Extended Definition Mapping Table Construction: A crucial step involves building a mapping table (K2exD-MT) that links specific geometric knowledge points (theorems, properties) to sets of formal definitions (exDefinitions). This table is constructed offline by leveraging a symbolic deduction engine (SDE) and a large repository of definitions and knowledge points. This process helps avoid biases inherent in direct natural language to formal language translation.
  2. Sampling Extended Definitions and Symbolic Deduction: For a given set of desired knowledge points and difficulty level, the framework samples relevant extended definitions from the K2exD-MT. These definitions are then fed into the SDE to perform symbolic deduction and generate formal reasoning paths (deduced conclusions).
  3. Problem Qualification Checking: A novel checking function is introduced to filter out unqualified problems. This function ensures that the generated reasoning paths are the shortest possible, involve all required knowledge points and definitions, and align with the specified difficulty level. This step is critical for ensuring problem quality and controllability.
  4. Textual Problem and Diagram Generation: Finally, the qualified formal reasoning paths and their corresponding definitions are translated into natural language textual problems and geometric diagrams. This translation is achieved using predefined templates for text and an iterative drawing process for diagrams, ensuring consistency.

Datasets

The authors curated two datasets for evaluation:

  • JGEX-AG-231: A dataset of 231 plane geometry problems, including textbook exercises, olympiad problems, and famous theorems. Each problem is associated with an average of 9.19 knowledge points.
  • GeoQA: A dataset sourced from authentic Chinese middle school exams, containing 5,010 geometry problems with annotated solution programs. For this study, 100 problems from the plane geometry subset were selected and annotated with knowledge points, averaging 1.45 knowledge points per problem.

Key Insights and Ideas

  • Bridging Formal and Informal Geometry: The core innovation lies in using a symbolic deduction engine to bridge the gap between formal mathematical logic and informal geometry problem statements. This allows for rigorous reasoning and generation of solvable problems.
  • The Importance of a Knowledge Mapping Table: Constructing a dedicated mapping table (K2exD-MT) between knowledge points and formal definitions is key to avoiding biases and ensuring that generated problems are grounded in relevant geometric principles.
  • A Dedicated Qualification Checker: The introduction of a problem qualification checking function is crucial for ensuring the quality of generated problems, going beyond mere solvability to guarantee completeness, shortest reasoning paths, and adherence to difficulty levels. This is a significant differentiator from prior work focused solely on data augmentation.
  • Controllability through Formalization: By controlling the input knowledge points and difficulty, the framework demonstrates effective control over the generated problems, a critical aspect for educational applications.

Key Results

The SDE-GPG framework, particularly with the checking function enabled, demonstrated strong performance across various metrics:

  • Readability: Achieved high scores for Grammatical Fluency (GF) and Logical Correctness (LC) on both datasets, indicating clear and coherent problem statements.
  • Solvability: Showed near-perfect Native Solvability (NS) (1.00 on JGEX-AG-231, 0.96 on GeoQA), meaning almost all generated problems were solvable. Consistent Solvability (CS) and Completeness of Clauses (CC) were also high.
  • Controllability: Consistently outperformed baselines in Completeness of Knowledge Points (CKP) and Consistency of Difficulty (CD), validating the effectiveness of the checking function in controlling problem attributes. For example, on JGEX-AG-231, SDE-PGP with checking achieved a CKP score of 1.00 and a CD score of 0.63, compared to 0.39 for GPT-40.

Limitations and Future Work

  • LLM Limitations: The paper acknowledges that current LLMs struggle with generating geometric diagrams, necessitating rule-based methods. The translation of formal language to natural language, while generally error-tolerant, could be further refined by LLMs.
  • Intermediate Theorems: Example 3 highlights a limitation where missing intermediate theorems in the symbolic deduction engine can lead to non-shortest reasoning paths and potentially affect efficiency. Future work aims to enrich the SDE with more theorems.
  • Scope Expansion: The current work focuses on Euclidean plane geometry. Future research will explore other geometric topics like inequalities and combinatorial geometry, as well as incorporating more control variables such as problem type and context.
  • Diagram Refinement: While diagrams are generated, they may not always perfectly align with human conventions. Developing a visual interface for manual adjustment is suggested.

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