1. Introduction
In mathematics, symmetry is defined as the property of a mathematical object that remains invariant under certain transformations or operations. This concept is widely studied across various domains such as algebra, combinatorics [
1], and especially geometry [
2], where geometric symmetry has attracted considerable attention [
3]. Geometric problem-solving has always been a great challenge in the field of deductive reasoning and artificial intelligence. Its goal is to start from given geometric conditions and derive the target conclusion through logical reasoning, theorem application, and mathematical operations. The core difficulty of this task lies in enabling computers to process the abstract logical relationships in text and the spatial information in graphics, while achieving high-precision semantic alignment [
4] between the two modalities.
Early automated geometric reasoning systems originated from symbolic expert systems [
5,
6], mostly designed based on manual rules, and performed forward search and reasoning starting from given conditions. The main advantages of such methods lie in their clear logic and verifiable results [
7,
8,
9]. However, these methods suffer from the performance degradation caused by the huge space complexity of forward search [
10,
11,
12], as well as the limited coverage dependent on expert experience [
13,
14,
15]. Therefore, they have poor generalization performance and struggle to adapt to diverse geometric structures and semantic transformations of different types of problems.
With the development of deep learning and large language models (LLMs), researchers have begun to attempt introducing models with strong reasoning capabilities [
16,
17,
18], especially those based on the Transformer architecture [
19], into automated theorem proving and geometric problem-solving tasks [
20]. This direction marks a significant advancement of machine intelligence in the field of formal reasoning and has greatly expanded the application prospects of artificial intelligence in mathematics. Leveraging the natural language understanding and generation capabilities of LLMs, the system can provide intuitive explanations and problem-solving strategies for geometric problems [
21]. Nevertheless, despite the positive impact of LLMs in problem-solving through reasoning, the suggestions they provide cannot be regarded as rigorous mathematical theorem proofs [
22]. Moreover, the inherent black-box nature [
23] of neural network architectures makes it challenging to comprehend their internal logic, thereby preventing the derivation of an accurate and verifiable problem-solving path. Additionally, the lack of precise metrics for evaluating executable step sequences hinders the possibility of verifying a problem’s complete and correct resolution through the output theorem sequence. Furthermore, using LLMs alone requires a large amount of manually annotated data, which comes at a very high cost. Thus, directly inferring the solvability of geometric problems through natural language models remains a highly challenging task [
24].
We use the FormalGeo geometric formalization system as the fundamental tool and theoretical basis for solving geometry problems [
25]. This system ensures the effectiveness and consistency of information integration while maintaining invariance in geometric transformations. Furthermore, this system integrates multiple datasets, including Geometry3k [
26], GeoQA [
27], GeoQA+ [
28], and other online resources, thereby constructing a new dataset named FormalGeo7K [
29].
Building on the basic inverse solving method of the FormalGeo system, we have constructed FGeo-ISRL, a geometry problem-solving system enhanced by heuristics and driven by reinforcement learning. FGeo-ISRL represents a typical neuro-symbolic architecture [
30] that integrates the adaptive learning capabilities of AI agents with the structured precision of formal geometric reasoning. Employing adversarial game mechanisms for performance enhancement has become a common and effective strategy [
31]. We introduce an innovative design where a pre-trained natural language model is decomposed into two dedicated components: a value network and a policy network combined with Monte Carlo Tree Search (MCTS). This architecture empowers the system to initiate reasoning from both the provided conditions and the objective goal, incorporating theorem premises iteratively to update the state in a backward fashion. By integrating reinforcement learning and MCTS, the framework effectively mitigates data acquisition costs. The empirical results further demonstrate that this approach achieves effective generalization performance and inference efficiency compared to traditional reasoning.
Our contributions can be categorized as follows:
- 1.
We present FGeo-ISRL, a novel neural-symbolic framework that leverages Inverse Search and Reinforcement Learning for geometric problem-solving. The symbolic component is the formalization system of FormalGeo, while the neural component is a prediction system that leverages the optimized policy network to directly select theorems, and uses the value network to evaluate state transitions, assisted by the rewards from MCTS.
- 2.
We propose a condition–goal joint inverse reasoning mechanism to address the efficiency degradation and limited generalization observed in traditional forward reasoning, where the reasoning process starts solely from given conditions and becomes less effective as the theorem chain grows longer. By jointly leveraging both the initial conditions and the target conclusion, our approach reverses the reasoning direction and significantly improves inference efficiency and success rates in complex geometric problem-solving.
- 3.
We integrate reinforcement learning and MCTS under a self-play optimization paradigm, enabling the model to iteratively refine theorem selection strategies and reasoning paths without requiring large-scale manual annotation of intermediate reasoning data. This integration effectively reduces supervision cost while enhancing model generalization and search efficiency.
- 4.
We introduce a step-level reasoning evaluation framework that incorporates the Single-Step Theorem Accuracy (SSTA) metric to measure the precision of each inference step alongside the overall Geometric Problem-Solving Accuracy (GPSA). Extensive experiments conducted on the FormalGeo7K dataset demonstrate that FGeo-ISRL achieves a SSTA of 90.2% and GPSA of 83.14%. Furthermore, we perform comprehensive ablation studies by removing the value or policy networks and substituting alternative search strategies to quantify each module’s individual contribution and analyze its impact on theorem prediction fidelity and problem-solving success.
2. Related Work
In the domain of automated geometric reasoning, both heuristic algorithms and reinforcement learning (RL) have emerged as key approaches for improving problem-solving efficiency and adaptability.
Heuristic algorithms have historically played a central role in early symbolic systems by guiding geometric reasoning through rule-based strategies, empirical knowledge, and local search mechanisms [
32,
33]. Systems such as GeoS [
34], InterGPS [
26], and FGeo-SSS [
35] have adopted a heuristic-based search to construct logical proof paths for geometric propositions. AlphaGeometry [
36] introduced a heuristic search framework to significantly reduce redundant inference branches, improving both speed and accuracy in solving complex problems. Its integration with classical symbolic approaches such as Wu’s method [
37] demonstrated the benefits of combining symbolic and neural techniques. The successor system, AlphaGeometry2 [
38], further incorporated an experience-sharing mechanism grounded in heuristic learning, showing improved generalization across diverse problem sets. However, traditional heuristic approaches often struggle with large and complex state spaces, leading to unstable performance. To overcome these limitations, recent works have introduced MCTS as a more robust heuristic method [
39], using extensive simulation and a reward mechanism based on single-step inference success rates to guide better theorem selection sequences.
In parallel, reinforcement learning has gained traction in the field of geometric theorem proving due to its ability to learn inference policies from feedback rather than static labels [
40], more closely resembling human reasoning processes. Compared to manually designed heuristics, RL provides enhanced adaptability and generalization, particularly in complex problem settings. For example, GeoDRL [
41] employs a Deep Q-Network to train agents to minimize unnecessary inference paths and identify optimal reasoning sequences. E-GPS [
42] integrates bottom-up data generation via RL with a top-down solving strategy, while rStar-Math [
43] proposes a Q-value-based Procedural Preference Model to boost search efficiency. Despite promising progress, the application of deep reinforcement learning in geometric reasoning remains underexplored [
44,
45,
46]. Recent advancements combine DRL with MCTS [
47,
48] in a game-theoretic framework, leveraging large-scale simulation and pre-trained policy/value networks to achieve higher stability and accuracy in geometric theorem proving.
3. FGeo-ISRL
3.1. FormalGeo System
As a consistent and extensible formal system for plane geometry, FormalGeo aims to address three core challenges: the inconsistent formalization of geometric knowledge, the unreadability of problem-solving procedures, and the lack of standardized approaches to geometric proof. Grounded in geometric ontology, it abstracts planar geometric knowledge into two dimensions: quantity and form, as well as static properties and dynamic processes. It covers not only topological structures such as points, lines and circles, and metric information including lengths and angles, but also the static attributes of geometric entities and the dynamic processes of theorem derivation, establishing a knowledge base comprising 88 geometric predicates and 196 geometric theorems. The core strengths of the system lie in its uniformity and traceability: it eliminates ambiguities in natural language and ambiguities in diagrammatic representations via formal languages. All supporting datasets are equipped with complete formal annotations and verifiable theorem sequences. Meanwhile, standardized system interfaces are provided to support the construction of neuro-symbolic systems.
FormalGeo incorporates three core types of languages. Geometry Definition Language (GDL), as the metalanguage for knowledge base construction, is divided into predicate definition and theorem definition modules. It decouples solver code from geometric knowledge and allows users to extend novel geometric knowledge; its proposed abstract hierarchical design can reduce the length of reasoning paths. Condition Declaration Language (CDL) serves as the interface for specifying concrete geometric problems. It characterizes the topological structure of diagrams, explicit and implicit given conditions, and solving objectives through construction statements (Construction CDL), condition statements (Text CDL/Image CDL), and goal statements (Goal CDL) respectively, achieving the unified formal conversion of natural language, graphical information, and problem-solving goals. Geometry Predicate Logic (GPL), acting as the core logical layer and the core logical language for the execution engine, defines geometrically contextual logical operations including constrained Cartesian product, set union, and set difference. Through a three-stage pipeline—parsing, normalization, and execution—it integrates symbolic logical reasoning and numerical algebraic computation, guaranteeing the efficiency and traceability of reasoning.
The Formal Geometry Problem Solver (FGPS) is a modular solver built upon the FormalGeo framework, consisting of five components: a parser, a core control module, a core solving engine, a data module, and external interfaces. It supports interactive verification and automated solving, and can generate readable and traceable problem-solving procedures. FGPS implements two fundamental search methods: The forward search starts from the initial given conditions, deriving new conditions by matching and applying theorems until the goal is satisfied. The backward search begins from the problem goal, decomposes it into subgoals, and recursively checks whether these subgoals are satisfied by the given conditions or have been proven. To ensure human readability of the system’s problem-solving process, the FormalGeo system integrates a rule-mapping-based grammar mapper for converting problem-solving procedures into natural language. In prior work, the translation from natural language to formal language was primarily conducted manually. Nevertheless, we have achieved substantial progress in automating formalization using large language models in our subsequent work [
46].
3.2. Inference Environment
We model the solution of geometry problems as a Markov Decision Process (MDP) with the help of the FormalGeo environment. In the MDP, we utilize a hypergraph structure [
49] to represent the geometric problem-solving process as a state transition system: each node in the graph corresponds to a state (including the initial conditions of the problem or intermediate conditions derived by applying the premises of theorems), while the edges between nodes represent the application of theorems, enabling the transition from one state to another. We further represent the problem-solving process as a process of theorem application, and transform it into relational reasoning, algebraic computation, and logical operations to ensure the correctness of the problem-solving process. In this system, if the conditions accumulated in a certain state node meet the target conditions, the problem is determined to be solved successfully. The sequence of theorem applications from the initial state to the terminal state constitutes an effective proof path.
Regarding search methods, the FormalGeo system implements a basic forward search and backward search. The forward search proceeds from given conditions and achieves problem-solving by matching the premises of theorems, whereas the backward search performs matching against the conclusions of theorems after decomposing the goal. Nevertheless, both approaches yield relatively rigid search paths with insufficient guidance, lead to an excessively large search space, and fail to effectively utilize the intrinsic connections between conditions and goals. To tackle this problem, this study proposes a novel search method named inverse search, which adopts the merged state of given conditions and solving objectives as the initial state.
Figure 1 presents a schematic comparison of the inverse search proposed in this work with forward search and backward search.
Unlike these two basic search methods, inverse search is not merely based on pure goal decomposition or state progression. Instead, it initiates from the merged state of conditions and goals, and iteratively incorporates matching theorem premises until the goal state is satisfied. By merging conditions and goals, inverse search leverages human intuition about the correlations between problem conditions and objectives [
50] to provide search heuristics and directions, which further shrinks the search space and enhances search efficiency.
In this environment, the starting state
for the inverse search is defined by the set of initial problem conditions and the target goal. By applying theorems, intermediate conditions are incrementally added and integrated with the current state, resulting in updated states that progressively advance the reasoning process. The reasoning is deemed successful once the accumulated condition set of a state satisfies the final goal condition set
G. The overall architecture of FGeo-ISRL can be seen in
Figure 2. The reasoning system of FGeo-ISRL is a neuro-symbolic framework that enables automated inverse solving of geometric problems through deep reinforcement learning and MCTS. Geometric problems are first processed by the FormalGeo system, then passed to the system agent for reasoning. Within the agent, the MCTS-enhanced policy network specifies the theorem to be executed, and the parameter adapter performs parameter instantiation for the selected theorem. After the reasoning system completes execution and updates the state, the value network is used to score the updated state to determine whether the reasoning path is correct. Once the reasoning process is finished, the reasoning results are transmitted to the FormalGeo system for structured output.
3.2.1. Reward
Due to the complexity of inverse reasoning and the need for fine-grained feedback to accelerate the learning process, we design an immediate reward function [
51] based on the value network (see
Section 4.3).
The value network
evaluates the potential value of each state, representing the likelihood of reaching the target state from that state. We define the immediate reward function
as follows in Equation (
1). This equation first applies a linear transformation to the value vector and compresses the network output into the interval
via the sigmoid function; it then compares the normalized values of the subsequent and current states in the sigmoid space to quantify the value increment introduced by a single theorem application, thereby providing continuous and fine-grained positive or negative feedback signals to both the policy network and MCTS.
Since the value network is initialized through pre-training to facilitate a cold start, its state evaluation capability stems largely from the high-quality human-annotated data in FormalGeo7K. Simultaneously, due to the inconsistent number of proof steps and significant fluctuations in theorem sequence lengths, cumulative rewards vary drastically. To mitigate the reward jumping issue, we implement real-time mean normalization, ensuring that the reward signals consistently remain within a similar order of magnitude. This stabilization allows for smoother and more consistent optimizer step sizes during the learning process.
To facilitate convergence toward the ultimate problem-solving objective, an additional reward of 1 is assigned whenever
. This hybrid reward scheme, integrating both terminal bonuses and immediate rewards, ensures search flexibility while maintaining a strict focus on proof completion. Crucially, this design prevents the model from disproportionately optimizing for intermediate reward signals rather than the final goal. Such a shaping term effectively steers the model toward the terminal solution state.
3.2.2. Action Space
The initial theorem library consists of 196 fundamental geometric theorems and axioms. However, the FormalGeo system’s rigorous requirements for geometric topological structures necessitate that theorems, which are cognitively singular in human reasoning, be partitioned into multiple branches to accommodate diverse topological configurations.
Furthermore, since geometric figures inherently exhibit symmetry, applying the same theorem in different orientations requires distinct parameter sequences. To ensure correct theorem execution, we expand the action space by defining specific branches of a theorem as independent actions. For example, when proving parallel lines via equal corresponding angles, the system must precisely control the counterclockwise definition of angles; different directions of the transversal line lead to varying geometric boundaries. By fixing these distinct branches and defining them as separate new theorems, we systematically expand the action space to 234 branch theorems. Consequently, each state node possesses 234 candidate action choices, providing the model with the necessary granularity for automated reasoning, as illustrated in
Figure 3.
3.3. Monte Carlo Tree Search
Monte Carlo Tree Search (MCTS) achieves an effective balance between exploration and exploitation by conducting efficient simulations and evaluations within the state-action space, while integrating heuristic policies with value estimation. It has achieved breakthrough results in strategic games such as Go [
52,
53], chess, and Shogi [
54], establishing itself as a cornerstone method in the integration of reinforcement learning and search algorithms. It accumulates experience through extensive simulations and often achieves good results when facing generalized environments that have not undergone targeted training [
55]. This paper leverages the characteristic of MCTS in conducting extensive simulations and the immediate rewards provided by the value network to enhance the policy network. This enhancement improves the performance of the policy network, thereby enabling the discovery of a more effective sequence of theorems. The comparison between naive MCTS and the improved MCTS described above is shown in
Figure 4.
While the traditional application environments of MCTS are often simple, its application to geometric problem-solving is rather complex and challenging. Therefore, we will elaborate on the specific definitions and applications of each stage of MCTS in geometric problem-solving to facilitate readers’ understanding. The implementation of MCTS consists of the following four stages:
Select: Starting from the root node, the optimal action
is selected. The selection of the optimal action is based on an enhanced Upper Confidence Bound (UCB) equation, which balances both exploration and exploitation. The enhanced UCB equation is as follows in Equation (
2).
The improved UCB equation incorporates the prior probability from policy network, making the search no longer purely driven by random exploration, but guided to some extent by the policy network, thereby reducing ineffective exploration, enhancing both the performance and efficiency of the search process.
Expand: Once an action is selected, the algorithm executes it to create the new node . When an incompletely expanded node is reached, all admissible legal actions are expanded according to their prior probabilities . The yet-unexecuted action is then inserted into the search tree.
Finally, the statistical counters for each newly expanded action are initialized with , , and the stored prior .
Simulate: The expanded state node is simulated. We set a maximum search step limit and define the number of simulations as the setpoint, with the value network evaluating the state value to guide the simulation process.
For each simulation, starting from the current state , actions are selected and executed until either the maximum step limit is reached or the target state is achieved. The immediate reward for each state transition is given by . This reward is accumulated to compute the total simulated return . If the target state is reached during the simulation, an additional terminal reward is added.
Backpropagation: For the accumulated rewards and visit counts obtained during the simulation phase, the search tree is updated through backpropagation. The simulation result
is fed back to the search tree, updating the average reward
and visit count
for each state-action pair along the search path. The visit count
is simply incremented by 1, while the update of the action-value
follows Equation (
3).
3.4. Value Network
In the FGeo-ISRL system, the value network (VN) serves as one of the core components, responsible for evaluating the current state and playing a critical role within the MCTS process. By incorporating the value network into MCTS, the system can effectively replace a large number of redundant simulations, thereby improving the quality of the search.
Specifically, the value network is designed not to directly exploit BERT’s robust classification capabilities, but rather to leverage its bidirectional attention mechanism. BERT captures the intricate logical correlations between geometric entities, shifting its role toward deep semantic understanding of states, which enables the system to determine whether the state evolution aligns with the expected reasoning path. On this basis, we model state evaluation as a regression task, requiring the network to output a continuous score
. We adopt Mean Squared Error (MSE) as the primary loss function, as it directly measures the numerical distance between predicted scores and actual cumulative rewards, thereby compelling the model to learn a precise value distribution. The schematic diagram of the value network process is illustrated in
Figure 5.
To address the challenges of a vast state space and the scarcity of high-difficulty samples, we incorporate L2 regularization to constrain model parameters and mitigate overfitting. This ensures that the trained value network maintains robust generalization across geometric problems ranging from L1 to L6 difficulty levels.
The training of the value network is based on full proof trajectories from the FormalGeo7K dataset. The detailed expression of the loss function is shown in Equation (
4).
The cumulative reward is computed from simulation trajectories: if a trajectory successfully reaches the goal state, it receives a terminal reward of 1; otherwise, the reward is accumulated based on changes in estimated state value. Through this training process, the value network gradually learns the distribution of potential value across different states and accurately captures the contribution of each theorem application to achieving the final goal. Once trained, the value network is directly integrated into the reward function computation, ensuring the stability and reliability of the reward signal.
3.5. Policy Network
As a core component of the FGeo-ISRL system, the policy network (PN) takes the current state
as input and outputs a probability distribution over 234 candidate theorem branches, denoted as
. We adopt a BERT-base model as the backbone architecture to achieve an optimal balance between prediction performance and computational efficiency. Since each state in the annotated data corresponds to a unique ground-truth theorem action, we formulate theorem selection as a classic multi-class, single-label classification task. The policy network is trained using a two-stage optimization strategy, beginning with supervised learning on the FormalGeo7K dataset. We optimize the network using the multi-class cross-entropy loss, as defined in Equation (
5). This objective is inherently aligned with the Single-Step Theorem Accuracy (SSTA) metric (see
Section 4.1), ensuring that the minimization of loss directly translates into the enhancement of individual reasoning precision. The schematic diagram of the policy network process is illustrated in
Figure 5.
The multi-class cross-entropy loss function, leveraging the standardized annotations from FormalGeo7K, facilitates the model’s transition from a general-purpose pre-trained language model to a specialized geometric reasoning policy network. This fine-tuning process empowers the network to rapidly assimilate human expert logic, effectively circumventing the cold-start problem prevalent in pure reinforcement learning. Moreover, the supervised learning stage ensures the efficient utilization of high-quality state-action pairs, establishing a robust foundation for subsequent long-sequence optimization. This strategic methodology significantly enhances sample efficiency and addresses the challenges of high labeling costs and convergence difficulties typically associated with training complex reasoning agents from scratch. The description of the fine-tuning algorithm for the value network and policy network is detailed in Algorithm 1.
| Algorithm 1 Supervised Pretraining for Policy and Value Networks |
- Require:
Human expert proof dataset - 1:
Initialize Policy Network and Value Network with random weights - 2:
while not converged do - 3:
Sample a mini-batch of transitions from - 4:
Compute value loss - 5:
Compute policy loss - 6:
Update - 7:
Update - 8:
end while - 9:
return Pretrained networks and
|
Subsequently, in the reinforcement learning stage designed to enhance the policy network via MCTS, the objective of geometric problem-solving shifts toward achieving a complete end-to-end proof, rather than merely ensuring the correctness of individual theorem applications. Although the supervised learning phase optimizes single-step prediction accuracy through cross-entropy loss, it lacks sufficient handling of the dependencies inherent in long-sequence reasoning paths; a locally correct action does not necessarily lead to a successful final solution. The description of the algorithm is shown in Algorithm 2.
To maximize the cumulative reward, we employ Policy Gradient methods to optimize the network. The loss function, as defined in Equation (
6), adopts the form of negative cumulative-reward-weighted log-probability. By utilizing the cumulative reward of the entire reasoning trajectory as a weighting factor, this design directly optimizes the final solving success rate, thereby aligning the loss function perfectly with the ultimate task goal of geometric reasoning.
The core design of this MCTS-enhanced policy network establishes a virtuous cycle of exploration–optimization–exploration. MCTS explores superior theorem paths that surpass the current policy through extensive simulations, generating high-quality trajectories with substantial cumulative rewards. Subsequently, the policy gradient loss leverages these trajectories to drive iterative updates of the policy network. This paradigm significantly reduces the reliance on large-scale human-annotated intermediate reasoning data, effectively lowering supervision costs.
From the perspective of technical compatibility, the action space in geometric reasoning consists of 234 discrete theorem branches. Policy gradient methods optimize the policy directly, thereby avoiding the biases typically introduced by traditional Value Function Approximation. Furthermore, the log-probability formulation ensures the stability of parameter updates. Consequently, this approach possesses a natural suitability for long-sequence decision-making tasks within discrete action spaces, providing robust mathematical support for handling complex geometric proofs.
| Algorithm 2 Value-Guided & MCTS-Enhanced Joint Optimization |
- Require:
Pretrained networks and , Training problem set - 1:
for each problem in do - 2:
- 3:
- 4:
while not StateReached() do - 5:
{Explore via MCTS} - 6:
- 7:
{Predict via Policy Net} - 8:
- 9:
if then - 10:
{Adapt to better MCTS action} - 11:
Update - 12:
- 13:
else - 14:
- 15:
end if - 16:
end while - 17:
end for - 18:
return Optimized networks
|
As MCTS continues to explore and accumulate experience, if a more effective theorem selection strategy is discovered along a new search path compared to the current policy network, the policy network is updated in a delayed manner. Through collaborative optimization involving MCTS feedback and policy gradient updates, the policy network continuously improves the accuracy and robustness of theorem selection.
3.6. Rule-Based Parameters Adaptation
In the process of inverse reasoning for geometric problems, the application of a theorem often requires adding its premises to the current state and updating the reasoning state accordingly. Improper parameter instantiation can lead to inconsistent states or deviated reasoning paths, ultimately affecting the stability and effectiveness of the search. To address this, we design a rule-based parameter adaptation mechanism that dynamically filters and matches the required parameter combinations for a theorem under a given geometric state.
This mechanism leverages the formal structure provided by the Geometric Description Language (GDL), where each theorem and predicate is represented in a structured form. Each branch of a theorem is parsed into constructive constraints, logical constraints, and variable groupings. During reasoning, the system examines the current state, extracts all geometric entities and their relationships, and verifies whether the theorem’s premises are satisfied. All valid parameter combinations are then extracted and passed forward to support theorem instantiation and state transition. The detailed parameter adaptation process can be found in
Figure 6.
More specifically, the parameter adaptation mechanism consists of three core stages.
First, predicate abstraction and expansion. In the semantic structure of a theorem, both constructive and relational predicates are abstracted and unified. Based on the current problem state, these predicates are expanded into a complete set of geometric entities.
Second, logical constraint matching. The FormalGeo system uses the semantic constraints defined in the theorem structure to perform logical matching against the existing state. It automatically verifies which parameter combinations satisfy the conditions for theorem application.
Third, parameter instantiation. All variable bindings that meet the logical constraints are formatted into standard input structures and passed as valid parameters for the theorem. This ensures stable and consistent state transitions.
This mechanism guarantees both structural legality and semantic consistency in theorem application. It effectively reduces the risk of generating invalid states during the inverse search and significantly improves the robustness and generalization capability of the reasoning process. Compared to traditional exhaustive parameter enumeration, this approach is more efficient at logic matching and highly scalable, making it a critical component in our neuro-symbolic framework for automated geometric theorem proving.
4. Experiments
4.1. Evaluation Metrics
We use Single-Step Theorem Accuracy (SSTA) and Geometry Problem-Solving Accuracy (GPSA) as the evaluation metrics to assess different methods. Their definitions are as follows:
SSTA: Given the current problem state , the model predicts the theorem required to transition to the next state . This metric evaluates the model’s single-step theorem prediction accuracy during the problem-solving process.
GPSA: For a given problem, the model must generate an ordered list of theorems , together with the parameter assignments determined by the parameter-adaptation mechanism. The parameterized theorem list is fed into the symbolic module for verification, determining whether the problem has been solved or not. This metric evaluates the model’s overall capability to solve geometric problems.
This section presents the performance analysis of our FGeo-ISRL framework on the FormalGeo7K dataset, evaluating two key metrics: Geometry Problem-Solving Accuracy and Single-Step Theorem Accuracy. Additionally, we conduct ablation studies on different modules of FGeo-ISRL.
4.2. Datasets and Data Processing
By utilizing FormalGeo formal language, we collected widely used datasets and online resources to construct a newly verified dataset, FormalGeo7K, which is validated through the reasoning environment. The statistics collected from FormalGeo7K cover various types of problems, including geometric problems related to angle, length, perimeter, area, and other aspects. We categorize the difficulty levels of the the problems based on the lengths of theorem sequences, measured to .
Building upon the FormalGeo7K dataset, we utilize FormalGeo to construct state-action pairs from geometric problems, which serve as training corpora for both the value network and policy network. Subsequently, we partition the dataset into training, testing, and validation sets with a 0.7:0.15:0.15 ratio according to problem types and difficulty levels. Specifically, the training set contains 26,031 state-action pairs, while both the testing and validation sets consist of 5578 pairs each. Finally, we train and deploy the preprocessed corpus locally using a BERT-base backbone to obtain a supervised-learning-based value network and initial policy network.
4.3. Benchmark Methods
We evaluate several benchmark methods on the FormalGeo7K dataset, including purely symbolic methods (forward search and backward search); neural language models integrated with the FormalGeo symbolic system, such as T5-small with FGeo and BART-base with FGeo; pure neural methods including DeepSeek-v3; neuro-symbolic systems specifically designed for GPS, such as Inter-GPS, NGS, and DualGeoSolver; and our proposed neuro-symbolic system, FGeo-ISRL. The detailed results are shown in
Table 1. The table shows that the performance decreases as the problem difficulty level increases from
to
. FGeo-ISRL performs the best in both total performance and all difficulty levels, and its decreasing trend is also better than that of other methods.
The search-based baselines include forward search using a Random Search strategy and backward search employing Breadth-First Search, both constrained to a maximum search tree size of 15 to assess basic heuristic efficiency. For the LLM-based baselines, we utilize T5-small (60 M), BART-base (140 M), and DeepSeek-V3 via API calls. These models are evaluated in a zero-shot setting using prompt engineering without further fine-tuning to establish a performance floor for general-purpose models.
For the specialized solvers, Inter-GPS employs a Transformer-based theorem predictor (TP) with 6 layers, 12 attention heads, and a 768-dimensional hidden state. It follows a Predict + Low-first search strategy with a maximum of 100 steps. To generate forward proof trajectories, the system performs 100 attempts for each problem with a maximum sequence length of 20, utilizing the Adam optimizer with a learning rate of 0.01 for a maximum of 30 epochs. NGS incorporates a multimodal approach with a differential learning rate: a base learning rate of and for the image encoder pre-training. The model is trained using the Adam optimizer with a batch size of 32 for approximately 100 epochs. During inference, it employs a beam search width of 10 by default, which can be increased to 100 for accuracy. DualGeoSolver implements a sophisticated segmented learning rate strategy, specifically for the RoBERTa text encoder, for the multimodal fusion module and the Goal Generation Module (GGM), and for all other modules to balance knowledge retrieval and reasoning. The training process uses the Adam optimizer with a batch size of 32 for a total of 100 epochs, and a beam search width of is utilized during testing.
4.4. Experiments Results
The core architecture of the FGeo-ISRL system is co-driven by policy and value networks, both of which utilize a BERT-base model as the primary feature extractor to achieve balance between inference performance and computational efficiency. All fine-tuning tasks are implemented via Low-Rank Adaptation (LoRA) and processed on an NVIDIA RTX 4090 24 GB GPU. In terms of training configuration, both networks share a unified learning rate of and a batch size of 16, with ReLU activation functions introduced in the hidden layers to incorporate non-linearity. The entire training process is executed by the AdamW optimizer for a maximum of 100 epochs, complemented by an early stopping mechanism and a learning rate scheduling strategy to ensure stable convergence via step-size reduction when the validation loss plateaus.
During the reasoning phase, each MCTS decision cycle performs a variable number of simulations determined dynamically by the value network. The exploration constant c is set to 1.5 to effectively weight the exploitation of known high-value paths against the exploration of unvisited nodes. To maintain controllability and prevent infinite loops, the system strictly limits the maximum inference depth to 30 steps per problem. Within the main search loop, the system expands the Top-10 candidate actions with the highest predicted probabilities to ensure a broad yet focused search space. Furthermore, a built-in exception termination mechanism is triggered if the policy network predicts the highest-probability action to be 0 for 3 consecutive times, allowing the system to preemptively halt unproductive search trajectories.
We evaluate our approach on the test set using MCTS, the value network, and the enhanced policy network. The testing procedure is outlined in Algorithm 3, the results are summarized in
Table 2, and we also present the results in the form of a heatmap in
Figure 7. Among the methodologies, FGeo-ISRL demonstrates superior performance, yielding a GPSA of 83.14%. This result surpasses the majority of existing approaches, including FGeo-TP and FGeo-DRL. While most approaches exhibit significant performance degradation when handling higher difficulty levels (particularly
and
), FGeo-ISRL maintains robust solving capabilities, attaining GPSA scores of 60.22% and 29.21% for L5 and L6 difficulty levels, respectively. These results demonstrate the method’s exceptional competence in addressing complex geometric problems.
| Algorithm 3 Inference via MCTS-Enhanced Policy |
- Require:
Optimized networks and , Unseen test problem - 1:
- 2:
while not GoalReached(s) and within step limit do - 3:
for iteration to N do - 4:
Select: Traverse tree from s to leaf node using UCB and - 5:
Expand: Expand legal actions under guided by prior - 6:
Evaluate: Compute node value via (and/or rollout) - 7:
Backup: Update visit counts and accumulated rewards to root S - 8:
end for - 9:
- 10:
- 11:
end while - 12:
return
Proof Solution
or
Failure
|
The improvement from the naive MCTS approach is limited. The first notable performance gain is achieved when incorporating an LLM-based policy network directly into the solving process. However, due to the LLM’s lack of geometric intuition and insufficient handling of geometric constraints, the enhancement from simply combining traditional search methods with a single policy network remains constrained. This suggests that relying solely on a single search strategy or online update mechanism has inherent limitations in boosting model performance.
Further improvement is observed when integrating both a policy network and value network. The combined PN + VN approach significantly outperforms the standalone PN, highlighting the critical role of the VN in providing more effective guidance by evaluating the value of each decision step. The complete FGeo-ISRL model (PN + VN + MCTS) achieves the best overall performance, demonstrating the complementary nature of PN’s local action precision and VN’s global value assessment, while MCTS further amplifies their synergistic effect.
Compared with other FormalGeo-series solving methods, such as FGeo-DRL which also adopts deep reinforcement learning for problem-solving, this method performs inferiorly to FGeo-ISRL due to the lack of an explicit supervision mechanism similar to a value network. In contrast, FGeo-HyperGNet, which fully embeds the state transition process through a hypergraph neural network, outperforms our method in overall solving efficiency and long-sequence solving. This also points out a direction for future improvements: how to integrate reinforcement learning to better describe the state transition process, thereby enhancing solving efficiency and capability.
4.5. Ablation Study and Discussion
The ablation study consists of two parts. The first part specifically evaluates the contribution of each core module in the FGeo-ISRL framework to the geometric problem-solving performance. As shown in
Table 3, this study designs three sets of comparative experiments:
Our observations reveal that as Top K increases, both GPSA and SSTA metrics improve across all methods. To assess MCTS’s enhancement effect on the policy network, comparing Experiment 1 and Experiment 2 demonstrates that under identical Top K conditions, methods without MCTS augmentation exhibit lower GPSA and SSTA than FGeo-ISRL. This confirms MCTS’s capability to explore more effective theorem selections. To evaluate the value network’s role, the comparison between Experiment 1 and Experiment 3 shows that without the value network’s guidance, the system experiences significant performance degradation in problem-solving capability. This verifies that the value network’s guidance substantially improves solving success rates, and the synergistic optimization mechanism combining local policy, global evaluation, and search strategy yields significant effectiveness.
The second part demonstrates the extent to which the number of training epochs and the single-step reasoning time of the FGeo-ISRL model influence the problem-solving results. As shown in
Table 4, with the increase in training epochs and single-step reasoning duration, the performance improvement of SSTA hits a bottleneck, and the growth rate of GPSA also gradually slows down. This indicates that in the early stages of model training, enhancing computational instances helps to improve problem-solving capabilities. However, as parameters increase, the mere scaling of computational resources may have limited effectiveness in improving problem-solving outcomes.
4.6. Case Analysis
For the final results, we selected representative cases in
Figure 8 for in-depth analysis. GT represents Ground Truth, and PT represents Predicted Theorem. Taking Case 1 as an example, we can see that FGeo-ISRL is highly accurate in solving problems with long theorem sequences, with a high hit rate in selecting and applying theorems, and the order of theorems is accurate. However, the model also has certain limitations. Taking Case 2 as an example, the selection of the theorem is correct but the parameters cannot be matched, leading to the failure of solving. This indicates that the subsequent work should improve the adaptation of theorem parameters. Taking Case 3 as an example, in solving extremely difficult problems, due to insufficient training samples, the solving ability is limited and the theorem sequence does not converge. Therefore, future work can refine effective data augmentation.
Notably, the best performance in certain categories does not always come from the overall strongest model. For instance, FGeo-ISRL-V1 achieves the highest accuracy in L2, while FGeo-ISRL-V2 performs best in L4. This indicates some degree of training instability, possibly due to the stochastic nature of MCTS or parameter update fluctuations. However, these variations are relatively minor and do not significantly impact the model’s overall reliability. The consistent alignment between the metric trends of SSTA and GPSA demonstrates that SSTA can serve as a reliable leading indicator for GPSA performance, and accurate step-by-step theorem application constitutes the fundamental prerequisite for successful end-to-end geometric reasoning.