Giving BERT a Calculator: Finding Operations and Arguments with Reading Comprehension
Preprint
Abstract
Reading comprehension models have been successfully applied to extractive text answers, but it is unclear how best to generalize these models to abstractive numerical answers. We enable a BERT-based reading comprehension model to perform lightweight numerical reasoning. We augment the model with a predefined set of executable 'programs' which encompass simple arithmetic as well as extraction. Rather than having to learn to manipulate numbers directly, the model can pick a program and execute it. On the recent Discrete Reasoning Over Passages (DROP) dataset, designed to challenge reading comprehension models, we show a 33% absolute improvement by adding shallow programs. The model can learn to predict new operations when appropriate in a math word problem setting (Roy and Roth, 2015) with very few training examples.Keywords
All Related Versions
This publication has 6 references indexed in Scilit:
- CoQA: A Conversational Question Answering ChallengeTransactions of the Association for Computational Linguistics, 2019
- BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding2019
- DROP: A Reading Comprehension Benchmark Requiring Discrete Reasoning Over Paragraphs2019
- EQUATE: A Benchmark Evaluation Framework for Quantitative Reasoning in Natural Language Inference2019
- MathDQN: Solving Arithmetic Word Problems via Deep Reinforcement LearningProceedings of the AAAI Conference on Artificial Intelligence, 2018
- Solving General Arithmetic Word Problems2015