Non-Parametric Structural Priors for Geometry Theorem Prediction

Junbo Zhao, Ting Zhang, Can Li, Wei He, Jingdong Wang, Hua Huang

Introduction

Multi-step theorem prediction is a central challenge in geometry problem solving. It requires rigid symbolic reasoning where every step must be logically valid based on previously derived facts; a single mistake collapses the entire proof. Existing neural-symbolic approaches rely heavily on supervised parametric models, which are costly to retrain and struggle to generalize to evolving theorem libraries.

To address this, researchers introduce Pri-TPG (Prior-guided multi-step theorem prediction via Theorem Precedence Graphs), a training-free framework that enables Large Language Models (LLMs) to act as structured planners. By providing LLMs with explicit "structural priors," Pri-TPG matches or exceeds the performance of state-of-the-art supervised systems without requiring task-specific training.

The Challenge: Structural Drift

While vanilla In-Context Learning (ICL) offers flexibility, it suffers from a critical scalability bottleneck termed Structural Drift. As reasoning depth increases, the combinatorial explosion of possible theorems overwhelms the LLM. Without a map of how theorems relate, the LLM’s search becomes unstructured. This inability to recover latent topological dependencies leads to a sharp performance drop as geometry problems become more complex.

Methodology: The Pri-TPG Framework

Pri-TPG overcomes Structural Drift by imposing topological constraints on the LLM's action space. The system operates through three main components:

  • Theorem Precedence Graphs (TPG): Instead of treating theorem selection as a flat classification task, Pri-TPG represents theorem relationships as a directed graph. If Theorem A provides a prerequisite for Theorem B, an edge connects them. This captures the latent topological order of geometric reasoning.
  • Multimodal Retrieval-Augmented Generation (RAG): To make the TPG query-specific, a multimodal encoder retrieves the top-$K$ most similar problems from a database based on text, diagrams, and formal states. A custom TPG is then synthesized dynamically from the historical solution traces of these retrieved problems.
  • Stepwise Symbolic Execution: Rather than generating the entire proof in a single pass, the LLM proposes one theorem at a time. A symbolic solver acts as an executor to verify each step and prune the search space. This involves symbolic pruning (keeping only theorems whose prerequisites are met in the current state) and structural localization (narrowing the search to descendants of the previously used theorem in the TPG).

Together, these constraints prune the instantaneous search space by roughly 90% at each step.

Datasets

The framework was evaluated on three major formal geometry benchmarks:

  • FormalGeo7k: The primary benchmark, featuring 7,000 problems with natural language, diagrams, and ground-truth theorem sequences.
  • Geometry3K: 3,000 diagram-text problems covering diverse geometric primitives.
  • GeoQA: Nearly 5,000 problems focused on structured numerical reasoning.

Key Results and Insights

  • State-of-the-Art Accuracy: Pri-TPG (using GPT-5.2) achieved 89.29% accuracy on FormalGeo7k, outperforming the strongest training-based model, FGeo-HyperGNet (88.36%). On Geometry3K, it achieved a record 95.16% zero-shot accuracy.
  • Closing the Reasoning Gap: Compared to direct LLM solving, the Pri-TPG framework boosted GPT-5.2's performance by 16.15% and GPT-5 mini's performance by nearly 20%.
  • Robustness at Depth: While vanilla ICL performance collapsed to 0% on "Hard" problems (reasoning depth of 9+ steps), Pri-TPG maintained a 30-40% success rate on the most difficult tiers.
  • Structural Priors > More Parameters: The results demonstrate that imposing a topological structure on the LLM's action space allows a training-free model to behave like a specialized expert, proving that better constraints can outweigh raw parameter scale.
  • The Necessity of Closed-Loop Reasoning: Ablation studies showed that "single-pass" generation fails catastrophically on hard problems. Real-time symbolic feedback is indispensable for error correction.
  • Extracting Planning Intuition: Traditionally, planning intuition is taught via Reinforcement Learning (RL). Pri-TPG shows that this intuition can be extracted directly from historical solution traces via dynamic graphs, bypassing expensive RL alignment.

Limitations and Future Directions

Despite its success, Pri-TPG faces a few limitations. Inference latency is high due to the repeated LLM calls required for every proof step, which limits real-time scalability. Additionally, the TPG primarily encodes local precedence (immediate prerequisites) rather than global long-horizon strategy, which explains why performance still dips on the hardest problems. Finally, while the framework acts as a powerful scaffold, its ceiling remains dependent on the underlying LLM's baseline ability to select the best theorem from a pruned list.

Summary updated

BibTeX
@inproceedings{zhao2026non,
  author = {Junbo Zhao and Ting Zhang and Can Li and Wei He and Jingdong Wang and Hua Huang},
  title = {{Non-Parametric Structural Priors for Geometry Theorem Prediction}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=XRzeAIhVaS},
}
Figure