ELASTIC: Numerical Reasoning with Adaptive Symbolic Compiler

Jiaxin Zhang, Yashar Moshfeghi
10/18/2022
cs.AIcs.CL

Official code: NeuraSearch/NeurIPS-2022-Submission-3358 (22 stars, Python, Apache-2.0, last commit 2022-12-21).

Abstract

Numerical reasoning over text is a challenging task of Artificial Intelligence (AI), requiring reading comprehension and numerical reasoning abilities. Previous approaches use numerical reasoning programs to represent the reasoning process.

Show full abstract

However, most works do not separate the generation of operators and operands, which are key components of a numerical reasoning program, thus limiting their ability to generate such programs for complicated tasks. In this paper, we introduce the numEricaL reASoning with adapTive symbolIc Compiler (ELASTIC) model, which is constituted of the RoBERTa as the Encoder and a Compiler with four modules: Reasoning Manager, Operator Generator, Operands Generator, and Memory Register. ELASTIC is robust when conducting complicated reasoning. Also, it is domain agnostic by supporting the expansion of diverse operators without caring about the number of operands it contains. Experiments show that ELASTIC achieves 68.96 and 65.21 of execution accuracy and program accuracy on the FinQA dataset and 83.00 program accuracy on the MathQA dataset, outperforming previous state-of-the-art models significantly.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

This is the code for the Submission 3358 at NeurIPS 2022.

226Python, ShellMay 13, 20223 years agoApache-2.0

Similar Papers

Cite this paper

@article{zhang2022elastic,
  title  = {ELASTIC: Numerical Reasoning with Adaptive Symbolic Compiler},
  author = {Jiaxin Zhang and Yashar Moshfeghi},
  year   = {2022},
  eprint = {2210.10105},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.10105}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.10105.svg)](https://codeofpaper.com/paper/2210.10105)

Discussion