HyperAIHyperAI

Command Palette

Search for a command to run...

4 months ago

Giving BERT a Calculator: Finding Operations and Arguments with Reading Comprehension

Daniel Andor; Luheng He; Kenton Lee; Emily Pitler

Giving BERT a Calculator: Finding Operations and Arguments with Reading Comprehension

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.

Benchmarks

BenchmarkMethodologyMetrics
question-answering-on-drop-testBERT+Calculator (ensemble)
F1: 81.78

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Giving BERT a Calculator: Finding Operations and Arguments with Reading Comprehension | Papers | HyperAI