Abstract
Automated scoring for mathematical subjective responses remains challenging due to the inherent complexity of integrating symbolic notations, procedural reasoning, and natural language explanations. Traditional NLP approaches fail to capture domain-specific mathematical semantics and logical dependencies between problem-solving steps. This study proposes a novel neural architecture named BiLSTM-AM that synergizes Bi-LSTM with hierarchical attention mechanisms to tackle pivotal challenges in the automated scoring of mathematical subjective responses. The architecture effectively models the conjunction of formulaic expressions and textual narratives through a dual-channel embedding strategy, dynamically allocates weights to pivotal procedural elements using step-level attention, and automates the alignment of student-generated solutions with knowledge graphs constructed from expert solutions. Evaluated on a dataset of 1,120 elementary mathematics solutions, this paper achieves 90.52% scoring accuracy, outperforming state-of-the-art baselines by 8.17%. The novelty of this research is underscored by its interpretable attention mechanisms, which offer quantitative means to track the propagation of errors throughout the steps of mathematical solutions. This study contributes to the field of AI-enhanced educational evaluation by introducing a scalable and curriculum-sensitive framework designed for the assessment of open-ended mathematics problems.
Introduction
Scoring open-ended mathematics problems is notoriously difficult for AI because it requires balancing natural language, symbolic logic, and multiple valid solution paths. While Automated Essay Scoring (AES) has become quite proficient at grading linguistic assignments, mathematics remains a "final frontier." The challenge is three-fold:
- Symbolic Complexity: Math involves 2D notations, formulas, and matrices that standard NLP models struggle to parse as simple text.
- Procedural Logic: A correct answer depends on a chain of reasoning where an error in an early step propagates through the rest of the solution.
- Multiple Approaches: A student might solve a geometry problem using a vector method, while another uses a comprehensive geometric analysis. A rigid grading key would fail one of them.
Traditional NLP approaches often treat a math solution as just another "essay" without understanding these underlying logical dependencies. This paper introduces BiLSTM-AM to bridge this gap.
Methodology
The authors propose a framework called BiLSTM-AM (Bidirectional Long Short-Term Memory with Attention Mechanism). The core innovations include:
Linearized Representation
To help the model "read" math, the researchers developed a protocol to convert 2D symbols into text sequences. By converting symbols into descriptive text, the model can leverage pre-trained linguistic patterns. For example, treating a matrix as a string of coordinates allows the Bi-LSTM to process it as a sequence rather than a spatial object.
Dynamic Reference Answer Matching (DREAM)
This is a novel component that addresses solution diversity. Instead of comparing a student's answer to a single "correct" key, DREAM uses semantic pattern recognition and fuzzy matching to select the most appropriate expert reference from a pool of valid solution methods. This rewards innovative thinking rather than penalizing it for not matching a single template.
Dual-Channel Embedding and Step-Level Attention
The model processes formulaic expressions and textual narratives through separate channels before fusing them, ensuring that both the "math" and the "explanation" are weighted correctly. The hierarchical attention mechanism assigns different weights to different parts of the solution, allowing the model to focus on "pivotal" steps and track how errors propagate through a multi-step problem.
Experimental Setup
The study evaluated the model on two distinct datasets:
- Learning Agency Lab (ASAP): A standard benchmark containing ~24,000 argumentative essays, used to test general grading capabilities.
- Elementary Mathematics Geometry Questions: A domain-specific dataset of 1,120 solutions from a 2022 final exam at a school in Wuhan, China. This dataset covers 11 sub-topics in 3D geometry and includes manually developed step-by-step scoring rubrics.
Key Results and Insights
The BiLSTM-AM model showed significant improvements over standard LSTM and Bi-LSTM baselines:
- Math Accuracy: On the geometry dataset, the model achieved 90.52% accuracy, an 8.17% improvement over the state-of-the-art Bi-LSTM baseline.
- General Performance: On the general essay dataset (ASAP), it achieved an accuracy of 85.13%, compared to just 60.35% for a standard LSTM.
- Error Detection: The model successfully categorized errors into three types: Calculation, Conceptual, and Logical, proving it can distinguish between a simple "typo" and a fundamental misunderstanding of geometry.
- Interpretability: The attention mechanism provides a "heat map" of the solution, offering a quantitative way to see where a student lost the thread of logic. This provides teachers with better diagnostic data than just a final score.
Conclusion
While the results are promising, future work is needed to expand the dataset scale and test the framework's sensitivity to different curricula. The authors suggest that the "linearization" approach should be tested on more abstract domains like algebra or calculus. Nonetheless, BiLSTM-AM represents a significant step toward automated, interpretable, and fair grading in the mathematical sciences.
Summary updated