[Paper Review] NT5?! Training T5 to Perform Numerical Reasoning
This paper proposes NT5, a sequential pre-training framework that adapts T5-Small for numerical reasoning over text (NRoT) by pre-training on synthetic numerical (NUM) and textual (TXT) datasets and SQuAD, followed by fine-tuning on DROP. The method achieves a 70.83 F1 on DROP’s adjusted F1, closing the gap with larger models like GenBERT while using only 60M parameters and avoiding manual symbolic module engineering.
Numerical reasoning over text (NRoT) presents unique challenges that are not well addressed by existing pre-training objectives. We explore five sequential training schedules that adapt a pre-trained T5 model for NRoT. Our final model is adapted from T5, but further pre-trained on three datasets designed to strengthen skills necessary for NRoT and general reading comprehension before being fine-tuned on the Discrete Reasoning over Text (DROP) dataset. The training improves DROP's adjusted F1 performance (a numeracy-focused score) from 45.90 to 70.83. Our model closes in on GenBERT (72.4), a custom BERT-Base model using the same datasets with significantly more parameters. We show that training the T5 multitasking framework with multiple numerical reasoning datasets of increasing difficulty, good performance on DROP can be achieved without manually engineering partitioned functionality between distributed and symbol modules.
Motivation & Objective
- To improve numerical reasoning over text (NRoT) performance in pre-trained sequence-to-sequence models like T5 without relying on hybrid neural-symbolic architectures.
- To investigate whether sequential pre-training on synthetic and general reading comprehension datasets can effectively internalize numerical reasoning skills in a purely neural model.
- To evaluate the impact of validation dataset choice (DROP vs. synthetic datasets) on model generalization and performance.
- To determine whether multitask pre-training across multiple datasets improves performance on DROP compared to sequential training.
- To benchmark the performance of a small T5 model against larger, specialized models like GenBERT and QDGAT-ALBERT on the DROP benchmark.
Proposed method
- The method uses a sequential training pipeline: first pre-training on synthetic NUM and TXT datasets, then on SQuAD, followed by fine-tuning on DROP and a DROP classification task.
- Multitask training is applied at each stage using temperature scaling and special tokens to identify dataset sources.
- The model is initialized from T5-Small (60M parameters) and trained using standard T5 text-to-text objectives with task-specific prompt templates.
- Validation is performed on either DROP dev set or synthetic dataset dev sets to compare generalization and model selection performance.
- The final model is fine-tuned on DROP and a derived classification task, with ablation studies on validation strategy and multitask scheduling.
- Performance is evaluated using DROP’s adjusted F1, EM, and decomposed F1 scores across question types.
Experimental results
Research questions
- RQ1Can a purely neural T5 model achieve strong performance on numerical reasoning over text (NRoT) without explicit symbolic module integration?
- RQ2Does sequential pre-training on synthetic numerical and textual datasets improve generalization and performance on DROP compared to standard fine-tuning?
- RQ3How does the choice of validation dataset (DROP vs. synthetic) affect model selection and final performance?
- RQ4To what extent does including SQuAD in pre-training improve reading comprehension and numerical reasoning skills?
- RQ5Does multitask pre-training on all datasets simultaneously outperform sequential pre-training?
Key findings
- The best-performing model achieves an adjusted F1 score of 70.83 on the DROP test set, a significant improvement from the baseline T5-Small’s 45.90.
- The model’s performance on numeric questions increases from 31.83 F1 (baseline) to 70.39 F1 after sequential pre-training on NUM, TXT, and SQuAD.
- Validation on synthetic datasets (NUM/TXT) during pre-training leads to better generalization than validating on the DROP dev set, with a 3.37-point F1 advantage (50.32 vs. 46.95).
- Adding SQuAD to the pre-training stage improves reading comprehension F1 by 3.06 points on average, with no major degradation in numeric reasoning performance.
- Multitask pre-training on all datasets simultaneously underperforms the sequential approach by nearly 6 points in F1, indicating that staged pre-training is more effective.
- The model achieves strong performance (67.0 EM, 70.8 F1) on DROP using only 60 million parameters, approaching GenBERT (72.4 F1) despite having fewer parameters and no symbolic module.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.