Abstract
Robust Arithmetic Word Problem (AWP) solving is important for applying mathematical reasoning systems in educational scenarios, where problem statements may contain changed numerical values, paraphrased descriptions, or irrelevant distracting information. Although Large Language Models (LLMs) have shown strong potential in solving AWPs, their reasoning processes may still be sensitive to surface-form variations and perturbation-induced noise. To address this issue, this paper proposes a Scene-Aware Neuro-Symbolic solver designed to improve the robustness of AWP solving under perturbations. The proposed method extends the existing scene-aware framework by introducing perturbation-oriented mechanisms at the scene, relation, and symbolic-solving levels. A Chain-of-Scene (CoS) prompting strategy first generates candidate scenes, after which goal-guided filtering retains target-related and bridge scenes while removing distractor-induced scenes. The retained scenes are then processed by the Scene-Aware Syntax-Semantics () method to extract explicit and implicit relations, and relation consistency checking is applied to remove locally plausible but globally irrelevant relations. Finally, the symbolic solver performs iterative equation-based reasoning over the filtered relation sets, with fallback recovery activated when standard solving does not produce a target-compatible answer. Experiments on AGG, MAWPS, and GSM8K show an average accuracy of 92.8% on clean datasets. On GSM-Perturb and AWP-Perturb, the solver achieves perturbed accuracies of 80.8% and 87.5%, with robustness drops of 8.3% and 6.8%, respectively. Ablation results show that scene filtering and relation consistency checking are the main contributors to reducing perturbation-induced errors. These findings suggest that combining LLM-based scene understanding with symbolic relation reasoning is a promising direction for improving the robustness and interpretability of AWP solvers in the evaluated perturbation settings.
1. Introduction
Problem solving has become an important research topic with the rapid development of artificial intelligence, and solving Arithmetic Word Problems (AWPs) is one of the most representative and challenging tasks in this area [1]. An AWP describes quantitative conditions and solution goals in natural language, requiring a solver to jointly perform language understanding, numerical reasoning, and equation-level calculation [2,3]. In recent years, neural models and Large Language Models (LLMs) have substantially improved the solving accuracy of AWPs [4,5,6]. However, high accuracy on clean benchmark problems does not necessarily indicate that a solver is reliable in practical educational scenarios. A problem statement may be paraphrased by a student, contain additional irrelevant information, or use changed numerical values while preserving the same reasoning structure. Therefore, beyond solving clean AWPs, it is also important to examine whether AWP solvers can remain stable under input perturbations.
The robustness problem is particularly important for LLM-based mathematical reasoning. Prompting methods such as Chain-of-Thought (CoT) encourage LLMs to solve mathematical tasks through step-by-step natural language reasoning [6]. A series of robustness-oriented reasoning methods have further improved LLM-based mathematical reasoning from different perspectives, including self-consistency voting over multiple reasoning paths [7], subproblem decomposition through Least-to-Most prompting [8], program-based reasoning such as Program-of-Thoughts and Program-Aided Language Models [9,10], and tool-augmented or code-execution-based verification methods [11,12]. Nevertheless, recent studies have shown that mathematical reasoning models can still be sensitive to surface-form variations and distracting contexts. For example, GSM-Plus evaluates the robustness of LLMs on GSM8K variants and shows that LLMs are far from robust under different mathematical perturbations [13]. Shi et al. [14] further show that LLMs can be distracted by irrelevant context in grade-school mathematical reasoning. GSM-Symbolic also reports that changing numerical values or adding seemingly relevant but unnecessary clauses can lead to noticeable performance degradation in LLM reasoning [15]. These findings suggest that robust AWP solving should not rely only on direct natural language reasoning by LLMs.
Another important line of AWP-solving research is the relation-flow approach, which represents the mathematical structure of a problem as explicit and implicit relations and then derives answers through symbolic reasoning [16]. Compared with direct answer generation, relation-flow methods are more interpretable because the intermediate relations and symbolic operations are aligned with human mathematical reasoning. They are, therefore, suitable for educational applications, where transparency and reliability are important [17,18]. However, traditional relation-flow solvers depend heavily on relation extraction from the original problem text. When the problem contains paraphrased expressions or irrelevant numerical statements, relation extraction may become incomplete or noisy. Thus, relation-flow methods provide reliable symbolic reasoning, but they still require stronger text understanding and noise suppression mechanisms under perturbations.
Existing work attempted to combine the advantages of LLMs and relation-flow methods by proposing a Scene-Aware Neuro-Symbolic solver [19]. In that framework, an LLM decomposes the input AWP into scenes through Chain-of-Scene (CoS) prompting, a scene-aware method extracts relations from each scene, and a symbolic solver reasons over the extracted relation sets. This design improves solving accuracy and interpretability by using the LLM for language understanding rather than direct calculation. However, the previous framework mainly considers clean AWP inputs and does not explicitly handle perturbation-induced noise. Under irrelevant-information perturbation, the LLM may generate scenes from distracting sentences; under paraphrase perturbation, key relations may be expressed in unfamiliar forms; under numerical perturbation, the solver must preserve the reasoning structure while correctly recomputing the answer. Therefore, simply decomposing an AWP into scenes is not sufficient for robust solving. A perturbation-oriented solver should further decide which scenes are relevant to the final goal, which relations are consistent with the target-oriented reasoning process, and how to recover from local extraction or solving failures.
To address these limitations, we study how to improve the robustness of Scene-Aware Neuro-Symbolic Solving for AWPs under input perturbations. The method keeps the scene-relation-equation reasoning pipeline of the previous scene-aware framework, but adapts each stage to the perturbation setting. In the Scene Decomposer, perturbation-aware CoS prompting is combined with goal-guided scene filtering so that target-related and bridge scenes are retained while distractor-induced scenes are reduced. In the Relation Extractor, the Scene-Aware method is applied to the retained scenes, and relation consistency checking is introduced to remove locally plausible but globally irrelevant relations. In the Symbolic Solver, inter-scene answer passing is used for iterative reasoning, and conservative fallback recovery is activated only when the standard solving process fails to produce a target-compatible answer. With this design, the LLM is mainly used for semantic scene decomposition, whereas symbolic relation reasoning handles structured inference and equation-level calculation.
The main contributions are summarized as follows:
- We formulate robust AWP solving under perturbations and evaluate solvers from both solving accuracy and robustness perspectives. By considering numerical substitution, problem-understanding reformulation, and distractor insertion, this study examines reliability issues that are not fully reflected by clean benchmark accuracy alone.
- We extend the existing scene-aware framework with perturbation-oriented mechanisms at the scene, relation, and symbolic-solving levels. Specifically, goal-guided scene filtering, relation consistency checking, and conservative fallback recovery are introduced to reduce the propagation of perturbation-induced errors.
- We provide experimental results on standard and perturbed AWP datasets to evaluate the effectiveness of the proposed solver. The results show competitive clean-data accuracy and smaller performance degradation under perturbations, while the ablation and diagnostic analyses further identify the contributions of scene filtering and relation consistency checking.
The remainder of the paper is organized as follows. Section 2 reviews related studies on LLM-based AWP solving, robustness evaluation under perturbations, and relation-flow approaches. Section 3 introduces the proposed method. Section 4 presents the experimental settings, results, ablation study, diagnostic analysis, and case study. Section 5 discusses the experimental results, analyzes limitations, and concludes the paper with future research directions.
2. Related Work
2.1. LLM-Based Methods for Solving AWP
Large Language Models (LLMs) have become an important direction for solving mathematical reasoning tasks because they can interpret natural language problem descriptions and generate intermediate reasoning steps from prompts [4,5]. In AWP solving, Chain-of-Thought (CoT) prompting encourages LLMs to produce step-by-step reasoning before giving the final answer [6]. Self-consistency further improves CoT by sampling multiple reasoning paths and selecting the most frequent or consistent answer [7]. These methods show that LLMs can solve many AWPs without task-specific model training.
Several studies have further enhanced LLM-based mathematical reasoning by changing the form of intermediate reasoning or by introducing additional verification mechanisms. Program-of-Thought prompting asks the LLM to generate executable programs, so that numerical calculation can be delegated to a program interpreter [9]. Program-Aided Language Models similarly use the LLM to translate natural language reasoning into runnable programs and offload the computation to an external interpreter [10]. Least-to-Most prompting decomposes a complex problem into simpler subproblems and solves them progressively [8]. Tool-augmented LLMs further improve reasoning by enabling the model to call external tools such as calculators or APIs [11]. Code-based self-verification methods use code execution and verification signals to check and revise mathematical solutions [12]. Equation-of-Thought, X-of-Thought and Discriminator-Guided reasoning methods introduce equation generation, multiple reasoning thoughts, verifier-based selection or step-level correctness guidance to improve reasoning reliability [12,20,21]. These approaches are effective because they reduce some calculation errors and encourage more structured reasoning than direct answer generation.
However, LLM-based AWP solvers still have inherent limitations under perturbations. Most prompting methods express intermediate reasoning as free-form natural language or executable code, and these intermediate states are not always aligned with the explicit mathematical relations in the problem text. As a result, a paraphrased problem, an irrelevant numerical statement, or a numerical substitution may lead the LLM to produce a fluent but incorrect reasoning chain. Self-consistency and verifier-based methods can reduce the effect of unstable individual reasoning paths, but they usually do not identify which scenes or relations are required by the final solving goal. Program-based methods improve calculation reliability, yet they still depend on the LLM to generate correct program logic from the perturbed text. Therefore, although LLMs are useful for semantic understanding, relying on LLM-generated reasoning alone is insufficient for robust AWP solving. This motivates the use of LLMs mainly for scene-level understanding, while relation extraction and equation solving are handled by more explicit symbolic components.
2.2. Robustness of Mathematical Reasoning Under Perturbations
Robustness evaluation studies whether a model can preserve its expected behavior under controlled input changes. In natural language processing, adversarial and behavioral testing methods have shown that models may rely on superficial textual cues rather than stable task-relevant reasoning [22,23]. For AWP solving, this problem is especially important because a mathematically equivalent problem may be expressed using different wording, different numerical values, or additional irrelevant statements. A robust AWP solver should, therefore, maintain correct reasoning under numerical substitution, problem-understanding reformulation, and distractor insertion.
Recent mathematical reasoning benchmarks have shown that LLMs are sensitive to such perturbations. GSM-IC demonstrates that irrelevant contexts can distract LLMs in grade-school mathematical reasoning [14]. GSM-Plus extends GSM8K with different perturbation types and evaluates whether LLMs can preserve correct reasoning under controlled variants [13]. GSM-Symbolic further reports that changing numerical values or adding seemingly relevant but unnecessary clauses may lead to noticeable performance degradation [15]. These studies indicate that clean-data accuracy alone cannot fully measure the reliability of mathematical reasoning systems.
Existing robustness-oriented methods mainly improve LLM reasoning at the prompting, sampling, decomposition, tool-use, or verification level [7,8,9,10,11,12,14]. However, these strategies generally leave the selection of useful mathematical conditions to the LLM itself. In particular, they do not explicitly separate useful mathematical conditions from distractors before reasoning, nor do they maintain a structured relation memory to check whether newly extracted information is compatible with the final solving target. Therefore, perturbation-induced errors may still propagate through the reasoning chain. In contrast, our method places perturbation handling inside the intermediate reasoning process: scenes are filtered before relation extraction, relation consistency is checked before symbolic solving, and the final answer is derived from explicit equation systems. In this way, robustness is handled at the scene, relation, and symbolic-solving levels rather than only through input-level prompting.
2.3. Relation-Flow and Neuro-Symbolic AWP Solving
Relation-flow methods solve AWP by extracting mathematical relations from problem text and reasoning over these relations [16]. Different from direct neural answer generation, relation-flow methods represent intermediate reasoning as explicit or implicit quantitative relations, which makes the solving process more interpretable. The method maps textual syntax and semantic patterns into mathematical relations and has been extended to different educational problem-solving tasks [16,17,24,25,26]. Because the intermediate states are relation sets rather than hidden vectors or free-form text, relation-flow methods are suitable for educational applications where transparency is important.
Nevertheless, traditional relation-flow methods also have limitations. They usually assume that the input problem can be converted into a coherent relation set from the original text. This assumption works reasonably well for clean AWPs, but becomes less reliable when the problem contains paraphrased expressions, irrelevant numerical statements, or multiple local scenes. In such cases, relation extraction may become incomplete or noisy: necessary relations may be missed because the wording changes, while irrelevant relations may be extracted from distractor sentences. Therefore, although relation-flow reasoning provides interpretability and precise equation solving, it still needs stronger text understanding and noise suppression mechanisms under perturbations.
Neuro-symbolic AWP solving combines neural language understanding with symbolic reasoning. Neural components can help identify quantities, entities, or problem structures, while symbolic components derive answers through explicit mathematical operations [27,28,29,30]. The previous Scene-Aware Neuro-Symbolic solver further introduced LLM-based COS prompting to decompose an AWP into scenes before relation extraction [19]. This design organizes complex problem conditions into local scene contexts, which is useful for relation extraction. Its main weakness in the perturbation setting is that all generated scenes and the relations extracted from them may still enter the later symbolic reasoning process. A distractor sentence may, therefore, lead to a locally plausible but globally irrelevant relation, while a weakly connected intermediate scene may be difficult to keep or remove.
For this reason, we extend the previous scene-aware framework by adding goal-guided scene filtering, relation consistency checking, and conservative fallback recovery. These mechanisms retain target-related and bridge scenes, suppress spurious relations introduced by perturbations, and reduce the impact of local extraction failures.
Table 1 summarizes representative existing AWP-solving methods in terms of their main approach, use of LLMs, symbolic solving, and perturbation handling. Compared with these existing methods, the proposed method further introduces perturbation-oriented scene filtering and relation consistency checking into the scene-aware neuro-symbolic pipeline.
Table 1.
Comparison of representative AWP-solving methods.
3. Methodology
3.1. Problem Definition and Overview
This paper studies robust AWP solving under input perturbations. Different from conventional AWP solving, which assumes that the problem is presented in its original form, the setting considered in this paper allows the problem text to be transformed before solving. In robustness and behavioral testing for natural language processing, a perturbation is usually regarded as a controlled input transformation used to examine whether a model relies on task-relevant reasoning rather than superficial textual cues [22,23]. For AWPs, such perturbations may involve numerical substitution, problem-understanding reformulation, or distractor insertion.
To introduce the proposed method, we first define Arithmetic Word Problem, Perturbed Arithmetic Word Problem, and Scene.
Definition 1
(Arithmetic Word Problem). An arithmetic word problem is a set of known conditions and at least one final solution goal described using natural language and numerical symbols.
Definition 2
(Perturbed Arithmetic Word Problem). Given an original AWP T, a perturbed AWP is produced by applying a perturbation operator to T, i.e., . In this paper, includes three perturbation types: Numerical Substitution, Problem-Understanding Reformulation, and Distractor Insertion. The perturbed problem remains solvable and is associated with a gold answer .
Definition 3
(Scene). A scene is a subset of conditions described in an AWP together with a sub-goal that can be inferred from these conditions. The sub-goal is either directly required by the final solution goal or serves as an intermediate condition for a later scene. Therefore, an AWP contains at least one scene.
Let T denote an input problem text and y denote its target answer. For its perturbed version , the corresponding target answer is denoted as . In problem-understanding reformulation and distractor insertion, the answer remains unchanged, while in Numerical Substitution, the answer may change with the modified quantities. A robust solver is expected to solve both the original and perturbed problems correctly with minimal performance degradation while preserving interpretable symbolic reasoning.
The proposed method further develops the scene-aware framework [19] for perturbed AWP solving. It strengthens the scene-aware pipeline by introducing perturbation-oriented mechanisms at the scene, relation, and symbolic-solving stages. In the scene stage, goal-guided scene filtering reduces distractor-induced scenes while retaining scenes that are relevant to the target. In the relation stage, relation consistency checking suppresses locally plausible but goal-irrelevant relations before they enter symbolic solving. In the symbolic-solving stage, fallback recovery serves as a controlled backup when the standard solving process fails to produce a target-compatible answer. These extensions are intended to reduce the propagation of perturbation-induced errors while preserving the interpretability of relation reasoning. Our method consists of the following three modules:
- Scene Decomposer: This module inherits the CoS-based scene generation idea, but does not directly accept all generated scenes. It generates candidate scenes from the input problem and then applies goal-guided filtering to remove irrelevant or weakly supported scenes while retaining scenes that may support intermediate sub-goals.
- Relation Extractor: The Relation Extractor adapts the Scene-Aware relation extraction paradigm to the retained scenes. It further applies a relation consistency check to suppress candidate explicit relations that are locally plausible but weakly connected to the final solving goal or the retained scene context.
- Symbolic Solver: The Symbolic Solver extends symbolic solving over relation sets by maintaining an answer buffer for inter-scene answer passing. Fallback recovery is activated only when the standard answer-passing process fails to produce a target-compatible answer.
The overall workflow is shown in Figure 1 and summarized in Algorithm 1. In Figure 1, denotes the i-th candidate scene generated by the LLM, denotes a retained scene after filtering, denotes the relation set extracted from , and denotes the intermediate answer obtained from . The following subsections describe the three modules in detail.
Figure 1.
Overview of the proposed Scene-Aware Neuro-Symbolic Solver.
3.2. Scene Decomposer
3.2.1. Perturbation-Aware CoS Prompting
The original CoS method treats an AWP as a chain of scenes and prompts an LLM to generate these scenes progressively. This idea is retained in this paper, but the decomposing process is adapted to the perturbation setting. Instead of directly accepting all LLM-generated scenes, the Scene Decomposer first generates candidate scenes and then applies goal-guided filtering before relation extraction.
| Algorithm 1: Robust AWP Solving under Perturbations | |
Input: A problem text T | |
Output: A solution A | |
| 1 | Module 1: Scene Decomposer: Use Procedure 1 to decompose T into candidate scenes and obtain the filtered scene list ; |
| 2 | Module 2: Relation Extractor: Use Procedure 2 to extract an ordered list of relation sets from ; |
| 3 | Module 3: Symbolic Solver: Use Procedure 3 to reason over and obtain the solution A. |
The decomposing prompt is represented by a unified decomposing query . It contains three parts: (1) a decomposition instruction that asks the LLM to identify solvable scenes rather than directly solve the whole problem; (2) a goal reminder that emphasizes the final question; (3) a negative instruction that discourages treating pure background descriptions or isolated numerical statements as valid scenes unless they support a later sub-goal. This design helps prevent paraphrased expressions and irrelevant numerical cues from being converted into unnecessary candidate scenes.
3.2.2. Exemplar Retrieval and Candidate Scene Generation
To construct few-shot prompts for scene generation, the decomposer retrieves exemplars from an annotated exemplar pool following the retrieval setting of the previous study [19]. Given an input problem text T, MWP-BERT [31] is used to obtain a global problem representation
For each exemplar problem in the exemplar dataset , where is the annotated scene list of , the representation is computed in the same way. The retrieval score between T and is defined as
The top-K exemplars are selected according to Equation (2) and inserted into the few-shot prompt together with and T. The LLM then generates an ordered candidate scene list . The exemplar pool is manually constructed by domain experts according to school mathematical textbooks, rather than being directly sampled from the evaluation datasets in our experiment. We also removed duplicate problems between the exemplar pool and the evaluation datasets before evaluation.
3.2.3. Goal-Guided Scene Filtering
The candidate scene list may still contain weakly supported or distractor-induced scenes. Therefore, a goal-guided filter is applied before relation extraction. This filter uses shallow linguistic information and contextual representations, so it does not depend on the later relation extraction results.
Given the problem text T and its candidate scene list , the filter first extracts the target question clause g from T. For the target question, it constructs a target signature using entities, units, and available temporal cues. For each candidate scene , it constructs a scene signature in the same way.
The filtering process has two steps: recall-oriented candidate pre-screening and score-based retention. The pre-screening step identifies scenes that may be useful for solving, but it does not determine final retention by itself. A scene is treated as a target-connected candidate only when it shares compatible signature elements with the target question. Entity-unit overlap is, therefore, used only as an initial cue; if the temporal cues conflict, such overlap alone is not sufficient for marking the scene as target-connected. A scene is treated as a bridge candidate when it is not directly connected to the target question but shares compatible signature elements with other candidate scenes. This design is intended to identify intermediate scenes that may not directly mention the final target entity but may support later relations.
For each candidate scene, the target relevance score and the scene linkage score are computed as
where and are obtained using the same MWP-BERT encoding and mean-pooling strategy.
where is a small constant used to avoid division by zero. The final filtering score is
After candidate pre-screening, each candidate scene is assigned a filtering score. A candidate scene is retained if its filtering score is not lower than the threshold . In addition, a bridge candidate whose sub-goal is used as an intermediate condition by another scene retained by the filtering score is retained even when its filtering score is lower than . This rule protects intermediate scenes that are weakly connected to the final question but are explicitly consumed by later reasoning steps. In this paper, is set to 0.7 and is set to 0.6 (the diagnostic sensitivity analysis is discussed in Section 4.2.4). If all candidate scenes are removed, the highest-scoring scene is retained as a conservative fallback for scene filtering.
The complete process is summarized in Procedure 1.
| Procedure 1: Scene Decomposer | |
| 1 | Input: a problem text T and a unified decomposing query ; |
| 2 | Output: a filtered scene list ; |
| 3 | Step 1: Exemplar Retrieval |
| 4 | ▹ Use MWP-BERT to encode T and obtain ; |
| 5 | ▹ Load the exemplar dataset ; |
| 6 | ▹ For each exemplar , compute using Equation (2); |
| 7 | ▹ Retrieve the top-K exemplars according to ; |
| 8 | Step 2: Candidate Scene Generation |
| 9 | ▹ Build the few-shot prompt using , the retrieved exemplars, and T; |
| 10 | ▹ Input the prompt into the LLM and generate a candidate scene list ; |
| 11 | Step 3: Goal-Guided Scene Filtering |
| 12 | ▹ Extract the target question clause g and construct using entities, units, and available temporal cues; |
| 13 | ▹ For each scene , construct in the same way; |
| 14 | ▹ Apply recall-oriented candidate pre-screening to identify target-connected candidates and bridge candidates; |
| 15 | ▹ Compute , , and using Equation (5); |
| 16 | ▹ Retain candidate scenes whose filtering scores are not lower than ; |
| 17 | ▹ Retain bridge candidates whose sub-goals are used as conditions by scenes retained through filtering score; |
| 18 | ▹ If , retain the highest-scoring scene in S; |
| 19 | ▹ Output . |
3.3. Relation Extractor
3.3.1. Scene-Aware Method
The Relation Extractor transforms each retained scene in into a relation set for symbolic reasoning. Different from extracting relations from the original problem text, this paper performs relation extraction only on filtered scenes. This design reduces input noise and makes relation extraction more stable under perturbations.
The extractor is applied after goal-guided scene filtering. Therefore, each retained scene is associated with its scene signature and sub-goal information. The extractor uses this information as context to check whether a candidate relation is connected to the target-oriented memory or supports the scene sub-goal.
The proposed extractor extends the Scene-Aware method used in previous work [19]. For each retained scene , the extraction process contains three steps: (1) scene type classification; (2) explicit relation extraction by Scene-Aware models; (3) implicit relation instantiation by scene-type-specific templates. Since a retained scene may contain multiple quantities or clauses, explicit extraction may produce several candidate relations, not all of which are necessarily useful for the final solution. Therefore, a consistency check is used to remove relations that are locally plausible but weakly connected to the target question or to the retained scene context.
Definition 4
(Relation). A relation is an equation-like representation that may include numbers, entities, attributes, units, and variables. A relation is called an explicit relation if it is explicitly stated in the text, and an implicit relation if it is required for solving but not explicitly stated.
Definition 5
(Relation Slot). A relation slot is an entity-centered or attribute-centered quantitative role appearing in a relation.
Definition 6
(Target Slot). A target slot is a relation slot corresponding to the final question, including the entity to be solved, the attribute or quantitative role to be solved, the associated unit, and the temporal cue if available.
For example, , , and can be treated as relation slots when they appear in clauses. Among them, if the final question asks for the price of apples or the rate of a worker, then or is further treated as a target slot. In addition, if temporal cues are available, they are attached to the corresponding slots to distinguish quantities with the same entity and unit but different temporal scopes.
Let g denote the target question clause. The extractor first derives the target slot set from the target entity set , the attribute set , the unit set , and the temporal cue set if available. The retained scene list follows the order generated by the CoS-based scene decomposition. The relation memory is initialized by and is updated along this scene order only after a candidate relation is retained. The scene signature identified during scene filtering is used as context for relation consistency checking. In the following equations, slot overlap means compatible slot overlap rather than exact string identity. Two slots are considered compatible when their entities, attributes, units, and temporal cues do not conflict.
3.3.2. Scene Type Classification
For each retained scene , MWP-BERT first produces contextualized token representations. Let denote the set of quantity tokens in . Following the quantity-aware classification idea in previous study [16], the extractor computes a quantity-aware scene vector
where is the contextual representation of quantity token q, and is the normalized attention weight of q with respect to the scene representation. The scene type is predicted by
where W and b are trainable parameters. The predicted scene type is used to select explicit relation models and implicit templates.
3.3.3. Explicit Relation Extraction
The extractor retains the syntax-semantics matching paradigm of Scene-Aware because it is interpretable and precise for quantitative relation extraction.
Definition 7
(Scene-Aware Model). A Scene-Aware model is a quintuple , where L denotes applicable scene types, P denotes the Part-of-Speech (PoS) structure, K denotes keywords, Q denotes matching rules, and R denotes the relation template. The model pool is denoted by .
Table 2 shows representative models in the model pool. Each row is an instantiated example of a Scene-Aware model; the table is illustrative rather than exhaustive.
Table 2.
Examples of Scene-Aware models.
For each retained scene , explicit relation extraction is performed in three stages. First, only models whose applicable scene types contain are considered. Second, for each sentence in , a PoS parser obtains its PoS structure, and the extractor matches the sentence against of each candidate model. Third, if the match succeeds, the matched entities, attributes, numbers, and units in are substituted into the relation template R, yielding a candidate explicit relation .
Since a retained scene may contain multiple quantities or clauses, explicit extraction may produce several candidate explicit relations. Some candidate explicit relations may be textually plausible but disconnected from the target question or from the intermediate reasoning path. Therefore, each candidate explicit relation is checked by considering its connection to the target-oriented relation memory and sub-goal-based reasoning.
Let denote the slot set appearing in a candidate relation r. Because candidate relations are instantiated from the current scene by the extraction rules, local scene support is treated as the premise of consistency checking. The relation memory is initialized by and is updated only after a candidate relation is retained. For retained scenes, the extractor also checks whether a candidate relation supports the scene sub-goal. Let if r provides a slot or quantitative condition required by the sub-goal of and this sub-goal is connected to the final goal or to a later retained scene; otherwise, .
The consistency function is defined as:
Because is initialized by the target slot set, the first condition retains relations connected to the final solving goal or to previously retained relations. The sub-goal-use condition prevents necessary intermediate relations from being removed only because they are not directly connected to the final target slot at the current step. If , the relation is retained and is updated by adding .
3.3.4. Implicit Relation Instantiation
Some scenes cannot be solved by explicit relations alone. For scene types such as rate, discount, and mixture, additional domain-specific quantitative relations may be required even if they are not explicitly stated in the text. Therefore, implicit relations are instantiated from scene-type-specific templates.
| Procedure 2: Relation Extractor |
![]() |
The implicit template pool is denoted as , where each template is indexed by a scene type l and represented as . Here, is the concept set required by the template and is the relation template. For the current scene type , the extractor retrieves the corresponding template . If no template exists for , implicit relation instantiation is skipped for this scene.
For a retrieved template , the extractor derives the slot candidate set from the retained explicit relations in the current scene. Specifically, collects the slots appearing in all retained explicit relations of . Then, each concept is aligned to a slot candidate in through deterministic slot alignment. The alignment process first applies direct text matching and alias matching between the concept name and the slot description. If several candidates remain, type and unit compatibility are used to remove incompatible candidates. When multiple compatible candidates are still available, the extractor selects the candidate with the highest contextual similarity computed from the MWP-BERT representations already used in scene classification. If no compatible candidate can be found, or if the best candidates cannot be distinguished, the template is not instantiated for the current scene.
Once all necessary concepts in are aligned to slot candidates, the template is converted into an implicit relation . Because the implicit relation is instantiated only from retained explicit relations and a scene-type-specific template, it is directly added to . After is retained, the relation memory is updated as , so that later scenes can use the newly instantiated intermediate relation.
The complete relation extraction process is summarized in Procedure 2.
3.4. Symbolic Solver
The Symbolic Solver derives the final answer from the list of relation sets produced by the Relation Extractor. Unlike direct neural answer generation, this component performs explicit symbolic reasoning over quantitative relations, so that the final answer is obtained through equation solving.
Let denote the ordered list of relation sets. The order of follows the retained scene order generated by the Scene Decomposer. The solver maintains an answer buffer , where each element is a solved quantitative relation. For each relation set , the solver first merges the current answer buffer into and obtains an augmented relation set . Then, is converted into a symbolic equation system together with a slot-symbol mapping table . The equation system is solved by a symbolic equation solver such as SymPy, and the solution is restored into answer relations according to .
A relation set that cannot be solved in the current pass remains in the unresolved set and is revisited after the answer buffer is updated. This repeated traversal continues until all relation sets are resolved or no new answer can be produced in a full pass. After the iteration terminates, the solver extracts the target-compatible answers:
Here, the intersection between slots follows the compatible slot matching rule used in the Section 3.3.
If is empty but unresolved relation sets remain, the solver activates fallback recovery after the standard answer-passing process terminates. Fallback recovery is used for cases where the constraints required for solving are distributed across several scenes and cannot produce a new intermediate answer during the standard process. It constructs a relaxed global relation set:
where denotes the unresolved relation set collection. The solver then solves once using the same conversion and symbolic solving process. The fallback result is accepted only when it produces a unique target-compatible answer whose slot is compatible with . If no target-compatible answer is obtained, or if multiple conflicting target-compatible candidates are produced, the fallback result is not accepted.
The complete symbolic solving process is shown in Procedure 3.
| Procedure 3: Symbolic Solver |
![]() |
4. Experiments
This section evaluates the proposed algorithm from two perspectives: solving accuracy on standard AWP datasets and robustness under input perturbations. Following previous studies on AWP solving and mathematical reasoning robustness, answer accuracy is used as the main evaluation metric, while robustness is measured by the performance gap between seed problems and their perturbed variants [6,9,13,16,20]. In addition, we conduct incremental ablation and diagnostic sensitivity analyses to examine how the perturbation-oriented mechanisms affect robustness.
4.1. Experimental Settings
4.1.1. Datasets and Perturbation Construction
Table 3 summarizes the datasets used in the experiments. GSM8K, AGG, and MAWPS are used to evaluate solving accuracy on standard AWPs. For perturbation robustness, we use two perturbation datasets: GSM-Perturb and AWP-Perturb.
Table 3.
Datasets used in the experiments.
GSM-Perturb denotes the selected subset of GSM-Plus used in this paper. GSM-Plus is an adversarial extension of GSM8K for evaluating the robustness of mathematical reasoning models [13]. To keep the perturbation categories consistent with GSM-Plus, we use three perturbation types: Numerical Substitution, Problem-Understanding Reformulation, and Distractor Insertion. Numerical Substitution changes numerical values and requires the answer to be recomputed. Problem-Understanding Reformulation changes the problem description while preserving the underlying mathematical structure. Distractor Insertion adds solution-irrelevant information to the problem text. GSM-Perturb contains 1319 GSM8K seed problems and perturbed variants.
AWP-Perturb (The dataset is available at: https://github.com/FerretDoll/AwpPerturb (accessed on 6 June 2026).) is constructed from sampled seed problems in AGG and MAWPS using the same three perturbation categories. During construction, answers are recomputed for Numerical Substitution, the mathematical structure is preserved for Problem-Understanding Reformulation, and the inserted sentences in Distractor Insertion are constrained to be topic-related but solution-irrelevant. The perturbation design follows the general idea of behavioral testing and adversarial evaluation in NLP, where controlled input variants are used to test whether a model preserves the expected behavior under surface-form changes or irrelevant distractions [22,23].
4.1.2. Baselines and Implementation Details
Four baseline algorithms are selected for comparison:
- WeiAlg: a Chain-of-Thought (CoT) prompting method that asks the LLM to generate intermediate natural language reasoning steps before producing the final answer [6].
- ChenAlg: a Program-of-Thoughts (PoT) prompting method that asks the LLM to generate executable programs for numerical reasoning, with the final computation performed by a program interpreter [9].
- LiuAlg: an X-of-Thought (XoT) method that switches among multiple prompting methods with a verifier for mathematical reasoning [20].
- PengAlg: the previous scene-aware solver proposed in [19], which combines LLM-based CoS prompting, relation extraction, and symbolic solving.
The proposed algorithm in our work is denoted as PROP. For all LLM-based algorithms, the base generation model is set to gpt-4 through the official OpenAI API. All LLM-based algorithms are evaluated under the same default decoding configuration. Due to the non-deterministic nature of API-based inference, each algorithm is evaluated five times on each dataset, and the results are reported as mean ± standard deviation. For a fair comparison with PengAlg, PROP uses the same MWP-BERT encoder (mwp-bert-en), exemplar retrieval setting, and model pool.
4.1.3. LLM Token Consumption
To report the inference cost of LLM-based components, we record the average number of LLM calls and token consumption for each algorithm. All algorithms use the same 3-shot prompting setting, with algorithm-specific output formats. For each problem, the input tokens and output tokens are obtained from the API usage records. The total token consumption is computed as the sum of input and output tokens over all LLM calls for the problem. The reported values are averaged over all evaluated problems.
Table 4 also shows the difference in LLM usage among the compared algorithms. WeiAlg, ChenAlg, PengAlg, and PROP use one LLM call per problem, while LiuAlg requires more calls because its XoT-style reasoning process involves iterative planning, reasoning, and verification. PROP has the same LLM-call and token-consumption cost as PengAlg, because both methods use the LLM only for scene generation. The additional components in PROP are implemented as local modules and do not introduce extra LLM calls.
Table 4.
Average LLM calls and token consumption per problem.
4.1.4. Evaluation Metrics
The main metric for standard datasets is answer accuracy:
For perturbation robustness, we report the accuracy on seed problems, the accuracy on perturbed problems, and the robustness drop:
This performance-drop-based setting follows GSM-Plus and is also consistent with previous robustness evaluations that test mathematical reasoners under irrelevant context or controlled input variations [13,14].
4.2. Experimental Results
4.2.1. Evaluation on Accuracy
The reported values are averaged over five runs. As shown in Table 5, PROP achieves the highest average accuracy across the three standard datasets. Compared with PengAlg, PROP improves the average accuracy from 91.0% to 92.8%, with the largest gain observed on GSM8K. On AGG and MAWPS, where the baseline accuracies are already relatively high, the improvements are smaller but still consistent. These results suggest that the perturbation-oriented mechanisms do not noticeably reduce solving accuracy on clean AWPs and can provide moderate gains under the standard evaluation setting.
Table 5.
Solving accuracy on standard AWP datasets.
4.2.2. Evaluation on Perturbation Robustness
Table 6 reports answer-level robustness on GSM-Perturb and AWP-Perturb. For each perturbation dataset, the table compares the accuracy on seed problems with the accuracy on perturbed problems. The results are reported as mean ± standard deviation over five runs. A smaller robustness drop indicates that the solver is less sensitive to controlled perturbations.
Table 6.
Answer-level robustness on perturbation datasets.
PROP achieves the highest perturbed accuracy and the smallest robustness drop on both perturbation datasets. Compared with PengAlg, the perturbed accuracy increases from 72.9% to 80.8% on GSM-Perturb and from 81.1% to 87.5% on AWP-Perturb. The corresponding robustness drops are reduced from 12.7% to 8.3% and from 12.1% to 6.8% percentage points, respectively. Since the gain on perturbed problems is more evident than the gain on seed problems, the improvement is mainly related to perturbation handling rather than only to clean-data solving ability. Compared with direct LLM prompting methods, PROP also maintains a smaller accuracy drop, which indicates that filtered scene decomposition and symbolic relation solving help limit the influence of irrelevant or rephrased problem information in this experimental setting.
4.2.3. Ablation Study
The ablation study examines how the previous scene-aware solver PengAlg changes when the perturbation-oriented mechanisms are added step by step. PengAlg + SF adds goal-guided scene filtering before relation extraction; PengAlg + SF + GC further adds relation consistency checking based on target-oriented memory and sub-goal-based reasoning; and PROP denotes the complete method with scene filtering, relation consistency checking, and fallback recovery. The experiments are conducted on GSM-Perturb and AWP-Perturb, and seed accuracy, perturbed accuracy, and robustness drop are reported.
Table 7 shows that the main robustness gain comes from the two stages before symbolic solving. After goal-guided scene filtering is added to PengAlg, perturbed accuracy increases on both GSM-Perturb and AWP-Perturb, which means that removing weakly connected or distractor-induced scenes before relation extraction is beneficial under input perturbations. Relation consistency checking brings a further improvement by preventing candidate explicit relations from being retained only because they are locally plausible. This result supports the use of target-oriented memory and sub-goal reasoning for reducing the propagation of irrelevant relations. The complete PROP model gives an additional but smaller gain, which is consistent with the role of fallback recovery as a conservative recovery step rather than the main solving path.
Table 7.
Incremental ablation study on perturbation datasets.
4.2.4. Diagnostic Sensitivity Analysis for Scene Filter
To further examine how the goal-guided scene filter behaves under different parameter settings, Table 8 reports a diagnostic sensitivity analysis of and . The parameter controls the balance between target relevance and scene linkage, while controls the threshold for retaining candidate scenes. We report seed accuracy, perturbation accuracy, robustness drop, and the average number of retained scenes to show how different filtering settings affect both answer robustness and scene retention.
Table 8.
Diagnostic sensitivity analysis of scene-filtering parameters.
The results show that the filtering behavior changes with both and . When is relatively small, more scenes are retained, but the perturbed accuracy is not always improved, suggesting that some distractor-induced scenes may enter relation extraction. When is too large, the average number of retained scenes decreases, but seed accuracy and perturbed accuracy may also decline, suggesting that some necessary intermediate scenes may be removed. The parameter shows a similar trade-off. A larger increases the influence of target relevance and usually reduces the number of retained scenes, but an overly large value may weaken the preservation of bridge scenes. Overall, and provide a near-best setting on evaluated datasets, with relatively small robustness drops and a moderate number of retained scenes.
4.3. Case Study
To further analyze how the proposed mechanisms affect the solving process, this subsection presents both successful and failed cases. The successful cases illustrate how PROP handles Numerical Substitution, Problem Understanding, Distractor Insertion, and a fallback-recovery scenario. The failure cases further discuss representative boundary cases where the current method may still fail.
4.3.1. Successful Cases
As shown in Table 9, both PengAlg and PROP correctly solve the numerically perturbed problem. This result is consistent with the characteristics of relation-based solvers. The perturbation changes the values from “5 sprints, 4 times, 80 m” to “3 sprints, 3 times, 60 m”, but the underlying rate relation is unchanged. Once the rate scene is correctly identified, both algorithms can substitute the new numerical values into the same relation structure and obtain the correct answer. Therefore, numerical substitution alone is not the main source of errors for relation-flow algorithms; more challenging cases usually arise when the perturbation changes the linguistic expression of key relations or introduces irrelevant but locally plausible relations.
Table 9.
Case study on numerical substitution.
As shown in Table 10, the seed problem states the paired pricing relation explicitly: one glass in each pair costs HKD 5 and the other costs HKD 3. Therefore, the relation structure can be directly extracted. In the perturbed problem, the same mathematical structure is preserved, but the price of the second glass is paraphrased as “60% of the regular price”. This rewriting makes an originally explicit price relation become implicit. PengAlg extracts the regular unit price and the total number of glasses, but fails to instantiate the paired pricing relation under the paraphrased expression. As a result, it treats all 16 glasses as regular-price glasses and obtains the incorrect answer. In contrast, PROP decomposes the perturbed problem into connected scenes: computing the discounted price, computing the price of one pair, and computing the total price. This scene-level decomposition helps preserve the implicit pairing relation under paraphrase, allowing the relation extractor and symbolic solver to derive the correct total cost.
Table 10.
Case study on problem-understanding reformulation.
As shown in Table 11, the irrelevant sentence “She ate 6 eggs for lunch yesterday” introduces a numerical statement that is topically related to eggs but outside the temporal scope of the target question. PengAlg incorrectly treats this sentence as an additional consumption relation for today’s eggs and subtracts it when computing the remaining eggs, which leads to an incorrect final income. In contrast, PROP retains only the scenes that support the target goal of computing today’s selling income. The breakfast and muffin events are kept because they affect the number of eggs remaining today, while the lunch event from yesterday is filtered out as irrelevant to the current goal. Therefore, PROP avoids introducing the spurious relation into symbolic reasoning and obtains the correct answer.
Table 11.
Case study on distractor insertion.
As shown in Table 12, fallback recovery is useful when the constraints required for solving are distributed across several retained relation sets and no single relation set can independently produce a target-compatible answer. This case differs from ordinary multi-scene chain reasoning, where an earlier scene first produces a numerical intermediate answer and later scenes consume it through the answer buffer. In this example, the numbers of apples and bananas and their corresponding revenues are mutually constrained across four relation sets. The standard answer-passing process cannot directly obtain the target answer because the intermediate variables remain unresolved. Fallback recovery merges the unresolved relation sets and solves the resulting global equation system, producing the correct number of apples. This example uses explicitly stated unit prices rather than commonsense knowledge, so the recovery process depends only on extracted quantitative relations. Such coupled-equation cases are relatively infrequent in the current perturbation datasets, but they are common in classroom-style AWPs.
Table 12.
Case study on fallback recovery.
4.3.2. Failure Cases
This subsection presents representative boundary cases to illustrate three typical failure patterns: highly confusable distractors, non-equation relations, and long numerical-logic problems. These cases are not intended to exhaust all possible failures, but to clarify where the current pipeline may still be insufficient.
The cases in Table 13 show that highly confusable distractors are difficult when they form locally solvable relations that share the same entity type, unit, operation, or target slot with the correct reasoning path. Once such distractor relations pass scene filtering and relation checking, they can enter symbolic solving and lead to wrong results or conflicting equations. This remains a limitation of the current framework, which does not explicitly perform fine-grained scope disambiguation or cross-scene contradiction resolution.
Table 13.
Failure cases caused by highly confusable distractors.
The second failure type (as shown in Table 14) is related to the coverage of the current relation representation. The Scene-Aware model is designed to extract equation-form quantitative relations, which are effective for many standard arithmetic operations but do not explicitly represent inequalities, ceiling operations, or integer constraints. As a result, problems involving expressions such as “at most”, “minimum”, or indivisible packages may be incorrectly converted into ordinary division or multiplication relations.
Table 14.
Failure cases involving non-equation relations.
The third failure type (as shown in Table 15) involves algebraic or numerical-logic problems that do not naturally match the entity-centered scene-relation representation used in PROP. In the first example, the sentence can be solved by direct algebraic translation, but it does not provide clear real-world entities, attributes, or units for constructing relation slots. In the second example, the reasoning requires assignment search over digit positions rather than arithmetic relation extraction over scenes. These cases fall outside the main problem structure assumed by the current scene-aware pipeline.
Table 15.
Failure cases involving algebraic or numerical-logic reasoning.
Overall, these failure cases show that the current method is most reliable when the problem can be decomposed into entity-centered quantitative scenes and equation-like relations. Errors arise when distractors are nearly indistinguishable from target relations, when the required relation is non-equational, or when the problem is better modeled as algebraic parsing or constraint satisfaction.
5. Final Remarks
5.1. Discussion on Experiment Results
The experimental results show that PROP improves robustness under controlled perturbations while maintaining competitive solving accuracy on clean AWP datasets. On the standard datasets, PROP obtains an average accuracy of 92.8%, which indicates that the perturbation-oriented mechanisms do not weaken the basic solving ability of the scene-aware neuro-symbolic framework. This result is important because the added filtering and checking steps could otherwise remove useful information if they were too aggressive.
The larger gains appear on GSM-Perturb and AWP-Perturb, where the input problems include numerical substitution, problem-understanding reformulation, and distractor insertion. This pattern shows that the main benefit of PROP comes from perturbation handling rather than from a general increase in clean-data accuracy. In particular, goal-guided scene filtering prevents weakly connected or distractor-induced scenes from entering relation extraction, while relation consistency checking suppresses locally plausible but globally irrelevant relations before symbolic solving. These two steps reduce the chance that perturbation-induced noise will be propagated into the final equation system.
The ablation and diagnostic results further show that the robustness improvement mainly comes from the filtering and checking stages before symbolic solving. Fallback recovery provides only a smaller additional gain, which is consistent with its role as a conservative backup rather than the main solving path. The sensitivity analysis of and also shows that scene filtering requires a balance between removing distracting scenes and preserving necessary bridge scenes. In terms of inference cost, PROP uses the same number of LLM calls as PengAlg because both methods use the LLM only for scene generation. Thus, the robustness gain is mainly obtained from local filtering, relation checking, and symbolic reasoning rather than from additional LLM queries.
5.2. Limitations
Although the proposed method improves robustness in the evaluated datasets, several limitations remain.
The first limitation is its dependence on LLM-based scene generation. If the LLM misses a necessary scene or generates a distractor scene, the later relation extraction and symbolic solving stages may not fully recover the correct reasoning path. The goal-guided filter reduces this risk, but it cannot perfectly distinguish all useful and irrelevant scenes. For example, an irrelevant sentence may still be retained when it shares the same entities, units, and temporal scope as the target question. Conversely, a necessary intermediate scene may be removed when its bridge role is not recognized.
The scene filtering and relation consistency mechanisms are also heuristic. They rely on target/scene signatures, slot compatibility, and sub-goal usage, all of which depend on the correct identification of cues such as entities or attributes. When these cues are ambiguous or incomplete, the filter and consistency checker may retain irrelevant information or suppress useful relations. The sensitivity analysis further shows that and control the balance between retaining necessary scenes and removing distracting scenes. Although the selected setting works well on the experimental datasets, adaptive parameter selection may be needed for problems with different lengths, domains, or perturbation distributions.
Another limitation is the scalability of the current model pool. The method works best when a problem can be decomposed into entity-centered quantitative scenes and represented by equation-like relations. Problems involving inequalities, ceiling operations, indivisible quantities, integer constraints, or positional digit constraints are not naturally covered by the current relation templates. In these cases, even correct scene decomposition may not be sufficient, because the relation extractor may fail to instantiate the relations required for symbolic solving.
Finally, the evaluation setting and system complexity also remain limited. The current framework mainly evaluates AWPs under three perturbation categories. These perturbations cover common robustness challenges, but they do not exhaust all possible variations in educational scenarios (such as implicit commonsense assumptions and multiple valid interpretations). Furthermore, despite PROP utilizing the same number of LLM invocations as PengAlg, its process remains more intricate than the direct prompt method due to its retention of scene signatures, relation slots, and template pools. For large-scale or real-time educational applications, further optimization is necessary.
5.3. Conclusions and Future Work
This paper studies robust AWP solving under input perturbations and proposes a method for improving the robustness of Scene-Aware Neuro-Symbolic Solving for AWPs under input perturbations. The proposed method extends the previous scene-aware framework by introducing perturbation-oriented mechanisms at three levels. At the scene level, Chain-of-Scene prompting and goal-guided scene filtering are used to obtain target-related and bridge scenes. At the relation level, the Scene-Aware method extracts explicit and implicit relations from retained scenes, while relation consistency checking suppresses spurious relations introduced by perturbations. At the solving level, symbolic equation solving and conservative fallback recovery are combined to derive target-compatible answers.
The main contribution of this work is not to replace LLM reasoning with a purely symbolic solver, nor to rely on the LLM to directly produce the final answer. Instead, the proposed framework assigns different roles to neural and symbolic components: the LLM is used for semantic scene decomposition, while relation extraction and symbolic solving provide structured and interpretable mathematical reasoning. Experimental results on clean and perturbed datasets show that this division of labor can improve robustness against numerical substitution, paraphrasing, and irrelevant-information perturbations in the evaluated settings. The ablation and diagnostic analyses further indicate that robustness gains mainly come from reducing perturbation-induced scene noise and suppressing inconsistent relations before symbolic solving.
Future work will focus on several extensions. Scene generation and filtering can be improved through self-verification, multi-sample scene voting, and adaptive filtering strategies that better preserve bridge scenes while removing distractors. The relation representation should also be extended beyond equation-like relations to cover inequalities, integer constraints, ceiling operations, and constraint-satisfaction mechanisms. In addition, semi-automatic or data-driven construction of Scene-Aware models will be explored to improve the scalability of the relation model pool. We also plan to extend the proposed method to more complex educational reasoning tasks, such as solving multimodal mathematical problems like geometric figure-word problems and chart-word problems.
Author Contributions
Conceptualization, R.P. and L.H.; methodology, R.P. and L.H.; software, R.P. and L.H.; writing—original draft preparation, R.P. and L.H.; writing—review and editing, L.Z. and X.Y.; supervision, X.Y.; funding acquisition, R.P. and X.Y.; R.P. and L.H. contributed equally to this work. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by “the National Natural Science Foundation of China (Grant No. 62277022), the Hubei Natural Science Foundation (Grant No. 2026AFD062), the Wuhan Education and Science Planning Project (Grant No. 2025C082), the General Project on Artificial Intelligence of the China Adult Education Association (Grant No. AI-Y2025053S), and the Research Startup Fund Project of Wuhan Vocational College of Software and Engineering (Grant No. KYQDJF2026004).
Data Availability Statement
The data presented in this study are available on request from the corresponding author.
Conflicts of Interest
The authors declare no conflicts of interest.
Abbreviations
The following abbreviations are used in this manuscript:
| AWP | Arithmetic Word Problem |
| NLP | Natural Language Processing |
| LLM | Large Language Model |
| Syntax-Semantics | |
| Seq2Seq | Sequence-to-Sequence |
| CoT | Chain-of-Thought |
| PoT | Program-of-Thought |
| CoS | Chain-of-Scene |
| PoS | Part-of-Speech |
| PROP | Proposed Algorithm |
References
- Zhang, D.; Wang, L.; Zhang, L.; Dai, B.T.; Shen, H.T. The Gap of Semantic Parsing: A Survey on Automatic Math Word Problem Solvers. IEEE Trans. Pattern Anal. Mach. Intell. 2020, 42, 2287–2305. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Bobrow, D.G. Natural Language Input for a Computer Problem Solving System; Massachusetts Institute of Technology: Cambridge, MA, USA, 1964. [Google Scholar]
- Kintsch, W.; Greeno, J.G. Understanding and solving word arithmetic problems. Psychol. Rev. 1985, 92, 109–129. [Google Scholar] [CrossRef] [PubMed]
- Brown, T.; Mann, B.; Ryder, N.; Subbiah, M.; Kaplan, J.D.; Dhariwal, P.; Neelakantan, A.; Shyam, P.; Sastry, G.; Askell, A.; et al. Language models are few-shot learners. Adv. Neural Inf. Process. Syst. 2020, 33, 1877–1901. [Google Scholar]
- Achiam, J.; Adler, S.; Agarwal, S.; Ahmad, L.; Akkaya, I.; Aleman, F.L.; Almeida, D.; Altenschmidt, J.; Altman, S.; Anadkat, S.; et al. GPT-4 Technical Report. arXiv 2023, arXiv:2303.08774. [Google Scholar] [CrossRef] [Scilit]
- Wei, J.; Wang, X.; Schuurmans, D.; Bosma, M.; Xia, F.; Chi, E.; Le, Q.V.; Zhou, D. Chain-of-thought prompting elicits reasoning in large language models. Adv. Neural Inf. Process. Syst. 2022, 35, 24824–24837. [Google Scholar]
- Wang, X.; Wei, J.; Schuurmans, D.; Le, Q.V.; Chi, E.H.; Narang, S.; Chowdhery, A.; Zhou, D. Self-Consistency Improves Chain of Thought Reasoning in Language Models. In Proceedings of the Eleventh International Conference on Learning Representations; ICLR: Appleton, WI, USA, 2023. [Google Scholar] [CrossRef] [Scilit]
- Zhou, D.; Schärli, N.; Hou, L.; Wei, J.; Scales, N.; Wang, X.; Schuurmans, D.; Cui, C.; Bousquet, O.; Le, Q.V.; et al. Least-to-Most Prompting Enables Complex Reasoning in Large Language Models. In Proceedings of the Eleventh International Conference on Learning Representations; ICLR: Appleton, WI, USA, 2023. [Google Scholar] [CrossRef] [Scilit]
- Chen, W.; Ma, X.; Wang, X.; Cohen, W.W. Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Tasks. arXiv 2023. [Google Scholar] [CrossRef] [Scilit]
- Gao, L.; Madaan, A.; Zhou, S.; Alon, U.; Liu, P.; Yang, Y.; Callan, J.; Neubig, G. PAL: Program-aided Language Models. In Proceedings of the 40th International Conference on Machine Learning; Proceedings of Machine Learning Research; PMLR: New York, NY, USA, 2023; Volume 202, pp. 10764–10799. [Google Scholar]
- Schick, T.; Dwivedi-Yu, J.; Dessì, R.; Raileanu, R.; Lomeli, M.; Hambro, E.; Zettlemoyer, L.; Cancedda, N.; Scialom, T. Toolformer: Language Models Can Teach Themselves to Use Tools. Adv. Neural Inf. Process. Syst. 2023, 36, 68539–68551. [Google Scholar]
- Zhou, A.; Wang, K.; Lu, Z.; Shi, W.; Luo, S.; Qin, Z.; Lu, S.; Jia, A.; Song, L.; Zhan, M.; et al. Solving Challenging Math Word Problems Using GPT-4 Code Interpreter with Code-based Self-Verification. In Proceedings of the Twelfth International Conference on Learning Representations; ICLR: Appleton, WI, USA, 2024. [Google Scholar] [CrossRef] [Scilit]
- Li, Q.; Cui, L.; Zhao, X.; Kong, L.; Bi, W. GSM-Plus: A Comprehensive Benchmark for Evaluating the Robustness of LLMs as Mathematical Problem Solvers. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), Bangkok, Thailand, 11–16 August 2024; pp. 2961–2984. [Google Scholar] [CrossRef] [Scilit]
- Shi, F.; Chen, X.; Misra, K.; Scales, N.; Dohan, D.; Chi, E.H.; Schärli, N.; Zhou, D. Large Language Models Can Be Easily Distracted by Irrelevant Context. In Proceedings of the 40th International Conference on Machine Learning; Proceedings of Machine Learning Research; PMLR: New York, NY, USA, 2023; Volume 202, pp. 31210–31227. [Google Scholar]
- Mirzadeh, I.; Alizadeh, K.; Shahrokhi, H.; Tuzel, O.; Bengio, S.; Farajtabar, M. GSM-Symbolic: Understanding the Limitations of Mathematical Reasoning in Large Language Models. arXiv 2024, arXiv:2410.05229. [Google Scholar]
- Yu, X.; Lyu, X.; Peng, R.; Shen, J. Solving arithmetic word problems by synergizing syntax-semantics extractor for explicit relations and neural network miner for implicit relations. Complex Intell. Syst. 2023, 9, 697–717. [Google Scholar] [CrossRef] [Scilit]
- Yu, X.; Sun, H.; Sun, C. A relation-centric algorithm for solving text-diagram function problems. J. King Saud. Univ.-Comput. Inf. Sci. 2022, 34, 8972–8984. [Google Scholar] [CrossRef] [Scilit]
- Lu, Y.; Pian, Y.; Chen, P.; Meng, Q.; Cao, Y. RadarMath: An Intelligent Tutoring System for Math Education. Proc. Aaai Conf. Artif. Intell. 2021, 35, 16087–16090. [Google Scholar] [CrossRef] [Scilit]
- Peng, R.; Huang, L.; Yu, X. Solving Arithmetic Word Problems by Synergizing Large Language Model and Scene-Aware Syntax–Semantics Method. Appl. Sci. 2024, 14, 8184. [Google Scholar] [CrossRef] [Scilit]
- Liu, T.; Guo, Q.; Yang, Y.; Hu, X.; Zhang, Y.; Qiu, X.; Zhang, Z. Plan, Verify and Switch: Integrated Reasoning with Diverse X-of-Thoughts. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing (EMNLP), Singapore, 6–10 December 2023; pp. 2807–2822. [Google Scholar] [CrossRef] [Scilit]
- Khalifa, M.; Logeswaran, L.; Lee, M.; Lee, H.; Wang, L. GRACE: Discriminator-Guided Chain-of-Thought Reasoning. In Proceedings of the Findings of the Association for Computational Linguistics: EMNLP 2023; Association for Computational Linguistics: Stroudsburg, PA, USA, 2023; pp. 15299–15328. [Google Scholar] [CrossRef] [Scilit]
- Jia, R.; Liang, P. Adversarial Examples for Evaluating Reading Comprehension Systems. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, Copenhagen, Denmark, 7–11 September 2017; pp. 2021–2031. [Google Scholar] [CrossRef] [Scilit]
- Ribeiro, M.T.; Wu, T.; Guestrin, C.; Singh, S. Beyond Accuracy: Behavioral Testing of NLP Models with CheckList. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, Online, 5–10 July 2020; pp. 4902–4912. [Google Scholar] [CrossRef] [Scilit]
- Yu, X.; Gan, W.; Wang, M. Understanding explicit arithmetic word problems and explicit plane geometry problems using syntax-semantics models. In Proceedings of the 2017 International Conference on Asian Language Processing (IALP); IEEE: New York, NY, USA, 2017; pp. 247–251. [Google Scholar] [CrossRef] [Scilit]
- Huang, L.; Yu, X.; Niu, L.; Feng, Z. Solving Algebraic Problems with Geometry Diagrams Using Syntax-Semantics Diagram Understanding. Comput. Mater. Contin. 2023, 77, 517–539. [Google Scholar] [CrossRef] [Scilit]
- Jian, P.; Sun, C.; Yu, X.; He, B.; Xia, M. An End-to-end Algorithm for Solving Circuit Problems. Int. J. Pattern Recognit. Artif. Intell. 2019, 33, 1940004. [Google Scholar] [CrossRef] [Scilit]
- Kushman, N.; Artzi, Y.; Zettlemoyer, L.; Barzilay, R. Learning to automatically solve algebra word problems. In Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics (Long Papers), ACL 2014; Association for Computer Linguistics: Stroudsburg, PA, USA, 2014; Volume 1, pp. 271–281. [Google Scholar] [CrossRef] [Scilit]
- Qin, J.; Liang, X.; Hong, Y.; Tang, J.; Lin, L. Neural-Symbolic Solver for Math Word Problems with Auxiliary Tasks. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers); Association for Computational Linguistics: Stroudsburg, PA, USA, 2021; Volume 1, pp. 5870–5881. [Google Scholar] [CrossRef] [Scilit]
- Zhang, W.; Shen, Y.; Ma, Y.; Cheng, X.; Tan, Z.; Nong, Q.; Lu, W. Multi-View Reasoning: Consistent Contrastive Learning for Math Word Problem. In Proceedings of the Findings of the Association for Computational Linguistics: EMNLP, Abu Dhabi, United Arab Emirates, 7–11 December 2022; pp. 1103–1116. [Google Scholar] [CrossRef] [Scilit]
- Jie, Z.; Li, J.; Lu, W. Learning to Reason Deductively: Math Word Problem Solving as Complex Relation Extraction. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers); Association for Computational Linguistics: Stroudsburg, PA, USA, 2022; Volume 1, pp. 5944–5955. [Google Scholar] [CrossRef] [Scilit]
- Liang, Z.; Zhang, J.; Wang, L.; Qin, W.; Lan, Y.; Shao, J.; Zhang, X. MWP-BERT: Numeracy-Augmented Pre-training for Math Word Problem Solving. In Proceedings of the Findings of the Association for Computational Linguistics: NAACL 2022; Association for Computational Linguistics: Stroudsburg, PA, USA, 2022; pp. 997–1009. [Google Scholar] [CrossRef] [Scilit]
- Cobbe, K.; Kosaraju, V.; Bavarian, M.; Chen, M.; Jun, H.; Kaiser, L.; Plappert, M.; Tworek, J.; Hilton, J.; Nakano, R.; et al. Training verifiers to solve math word problems. arXiv 2021, arXiv:2110.14168. [Google Scholar] [CrossRef] [Scilit]
- Roy, S.; Roth, D. Mapping to Declarative Knowledge for Word Problem Solving. Trans. Assoc. Comput. Linguist. 2018, 6, 159–172. [Google Scholar] [CrossRef] [Scilit]
- Koncel-Kedziorski, R.; Roy, S.; Amini, A.; Kushman, N.; Hajishirzi, H. MAWPS: A Math Word Problem Repository. In Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies; Association for Computational Linguistics: Stroudsburg, PA, USA, 2016; pp. 1152–1157. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.


