Introduction
Automated Math Word Problem (MWP) solving requires models to translate natural language descriptions into executable mathematical expressions. A significant hurdle in this field is the "one-to-many" problem: a single word problem can often be solved by multiple mathematically equivalent but structurally distinct expressions. For instance, due to the commutative property ($a + b = b + a$) or different operation groupings, a model might generate a correct solution that differs from the specific "gold" expression in the training set. Standard sequence-to-tree models penalize such variations, leading to non-deterministic output spaces that hinder convergence, particularly in data-scarce environments.
To address this, we introduce the Structure-Unified M-Tree Coding Solver (SUMC-Solver). This approach collapses diverse expression structures into a single, unified tree representation, simplifying the learning objective and achieving state-of-the-art performance.
The M-Tree Representation
The core innovation is the M-Tree, a multi-branch tree structure that unifies expressions through two primary mechanisms:
- Horizontal Unification: Unlike binary trees, M-Trees allow nodes to have $M$ branches. Sibling nodes are treated as unordered. For example, the expression $n_1 + n_2 + n_3$ is represented as a single "+" node with three children, eliminating the need for the model to decide on an arbitrary internal branching order.
- Vertical Unification: The M-Tree redefines operations to eliminate ambiguity caused by operation priority. Subtraction is represented as adding a negative value ($ imes-$), and division is treated as multiplying by a reciprocal ($+/$). This flattening of the tree removes structural variations caused by mathematically equivalent operation sequences.
By adopting this representation, the number of unique target structures in the Math23K dataset was reduced from 1,290 to just 153—an 88% reduction in output vocabulary that significantly eases the learning task.
SUMC-Solver Architecture
The SUMC-Solver utilizes a Seq2Code framework to map problem text directly to M-Tree positions.
M-Tree Coding and Seq2Code
Instead of generating a tree autoregressively (step-by-step), the model predicts a unique "code" for each number identified in the text. This code represents the number's exact path from the root to the leaf within the M-Tree.
The solver employs a standard encoder (such as an RNN or a Pre-trained Language Model like RoBERTa) to generate context vectors for the problem text. A simple Feedforward Neural Network (FFNN) then acts as a code generator, predicting the M-tree codes for all numbers simultaneously. This non-autoregressive approach ensures that the model is not forced to learn an artificial output order for independent operands.
Experimental Evaluation
The model was evaluated on the Math23K (Chinese) and MAWPS (English) benchmarks.
Key Results
- State-of-the-Art Performance: On Math23K, the SUMC-Solver (with a PLM encoder) achieved 82.5% accuracy, outperforming previous leading models such as GTS-PLM (79.5%) and UniLM-Solver (77.5%).
- Data Efficiency: The model demonstrates remarkable robustness in low-resource settings. When trained on only 2,000 samples, it maintained a significant lead over competitors. At 6,000 samples, it outperformed the next best model by approximately 5% in absolute accuracy.
- Handling Complexity: The solver is particularly effective for complex problems involving five or more operands, where traditional binary tree models often struggle with deep, ambiguous branching structures.
Conclusion and Future Work
The SUMC-Solver effectively mitigates the one-to-many challenge by unifying mathematical expressions into a canonical M-Tree format. While highly successful, future work may address residual diversity (currently affecting ~10% of cases) through more advanced structural solutions or by extending the M-Tree logic to handle multi-variable systems of equations. Integrating external knowledge graphs could also further enhance the model's reasoning capabilities.
Summary updated