Abstract
EPT-X is a novel two-phase Transformer model designed to solve algebraic word problems by first generating natural language explanations for every number and variable involved. By grounding its mathematical logic in these human-readable descriptions, the model achieves a high level of interpretability and "faithfulness," producing explanations that are comparable in quality to human output while maintaining competitive accuracy.
Introduction
While modern neural networks have become adept at solving math word problems (MWPs), they typically operate as "black boxes." We observe the final equation, but it remains unclear whether the model understands the semantic role of each number or is merely exploiting statistical patterns. This lack of transparency limits the utility of MWP solvers in pedagogical settings, such as digital tutoring, where the reasoning process is as important as the answer.
The authors identify two major gaps: a lack of internal explainability and a scarcity of datasets that bridge problem text with mathematical logic through intermediate explanations. To address this, they propose the Expression-Pointer Transformer with eXplanations (EPT-X), a model designed to satisfy both plausibility (contextually sensible explanations) and faithfulness (the model's reliance on its own explanations to derive solutions).
Methodology
The EPT-X architecture follows a two-phase process to ensure that reasoning is integrated into the final output:
- Phase 1: Explaining Numbers/Variables. The model employs an ELECTRA-based text encoder to process the problem statement. An "Explanation Decoder" then generates a short natural language phrase for every number in the text and every variable required for the solution (e.g., defining "12" as the "total number of coins").
- Phase 2: Building Equations. The model "recombines" the original problem text with the generated explanations. This augmented representation is fed back into the encoder. Finally, an Equation Decoder (based on the state-of-the-art EPT model) uses these grounded representations to predict mathematical operators and operands.
The PEN Dataset
To train and evaluate EPT-X, the researchers introduced the PEN (Problems with Explanations for Numbers) benchmark. This dataset contains 3,581 problems and 45,549 human-annotated explanations. It expands upon three existing benchmarks—ALG514, DRAW1K, and MAWPS—by attaching specific natural language descriptions to every number and variable, a feature missing in previous MWP datasets.
Key Insights: Faithfulness and Plausibility
A critical component of this research is the "Faithfulness" test. Rather than relying solely on text quality metrics like BLEU, the authors used "sufficiency" and "comprehensiveness" tests to prove that the model actually utilizes its generated explanations. If the explanations are removed or altered, the model's accuracy drops significantly, confirming that the explanations are not merely "flavor text" but functional components of the logic chain.
This approach mimics pedagogical instruction: identifying knowns (numbers), defining unknowns (variables), and establishing their relationships (equations).
Experimental Results
EPT-X achieved an average accuracy of 69.59% on the PEN dataset. While this represents a slight "explainability tax"—performing approximately 5% lower than its non-explainable counterpart (EPT)—the gains in transparency are substantial.
In terms of explanation quality, the model achieved a BLEU-4 score of roughly 60, nearly doubling the performance of previous explainable MWP models (which typically hover around 27). Qualitative analysis further suggests that EPT-X's explanations are often indistinguishable from human-written ones in terms of contextual relevance.
Limitations and Future Work
The authors identified three primary failure modes:
- Entity Confusion: Difficulty distinguishing between similar entities (e.g., two different buildings mentioned in the same problem).
- Detail Omission: Forgetting crucial situational modifiers (e.g., "returning from work" vs. "driving to work").
- Irrelevant Numbers: Attempting to explain numbers that are not mathematically necessary for the solution.
Future work will focus on improving the encoder's entity discrimination and closing the accuracy gap between explainable and black-box models, with the ultimate goal of integrating EPT-X into interactive educational tools.
Summary updated