Recall Mechanism and Multi-Head Attention for Numerical Reasoning
Numerical reasoning is a challenging question-answering task in artificial intelligence (AI) that requires both reading comprehension and numerical computation capabilities. Although recent approaches have made significant progress in reasoning, two critical issues remain: (1) information tends to be gradually lost as the network deepens due to the complexity of deep learning models, and (2) the performance of multi-step reasoning is suboptimal, leaving room for improvement in accuracy. To address these issues, we propose a model with a recall mechanism and multi-head attention for numerical reasoning (RMMANR). The recall mechanism prevents the embedding information of questions and passages from being forgotten as the model deepens, while the multi-head attention mechanism analyzes possible solutions for numerical reasoning. RMMANR consists of two main components: an encoder and a decoder. The encoder leverages RoBERTa to encode the question and passage into contextual embeddings. The decoder, which consists of four modules (RM Module, Selector, MA Module, and Program Solver), generates inference steps and answers based on contextual information from the encoder. We implement our model using PyTorch and evaluate it on the FINQA dataset, a benchmark for numerical reasoning in the financial domain. Experimental results demonstrate that RMMANR outperforms several baseline models, achieving superior accuracy.
Authors
- Bing Zeng (ORCID: https://orcid.org/0000-0001-8947-9799)
- Tien-Ping Tan (ORCID: https://orcid.org/0000-0002-4154-4747)
- Li Lai (ORCID: https://orcid.org/0000-0002-7045-0467)
Institutions
- Universiti Sains Malaysia (MY)
- Putian University (CN)
Publication Details
- Journal
- Applied Sciences
- Published
- 2025-03-24
- DOI
- https://doi.org/10.3390/app15073528
- Primary Topic
- Intelligent Tutoring Systems and Adaptive Learning
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Putian Science and Technology Bureau
- Putian University