Reasoning Like Program Executors

Xinyu Pi, Qian Liu, Bei Chen, Morteza Ziyadi, Zeqi Lin +4 more
1/27/2022
cs.CLcs.AIcs.SC

Official code: microsoft/ContextualSP (387 stars, Python, MIT, last commit 2023-11-10).

Abstract

Reasoning over natural language is a long-standing goal for the research community. However, studies have shown that existing language models are inadequate in reasoning.

Show full abstract

To address the issue, we present POET, a novel reasoning pre-training paradigm. Through pre-training language models with programs and their execution results, POET empowers language models to harvest the reasoning knowledge possessed by program executors via a data-driven approach. POET is conceptually simple and can be instantiated by different kinds of program executors. In this paper, we showcase two simple instances POET-Math and POET-Logic, in addition to a complex instance, POET-SQL. Experimental results on six benchmarks demonstrate that POET can significantly boost model performance in natural language reasoning, such as numerical reasoning, logical reasoning, and multi-hop reasoning. POET opens a new gate on reasoning-enhancement pre-training, and we hope our analysis would shed light on the future research of reasoning like program executors.

View on arXivView PDF

Code Implementations(1)

MIT

Multiple paper open-source codes of the Microsoft Research Asia DKI group

38762Python, Jupyter NotebookApr 14, 20203 years agoMIT
compositional-generalizationconversational-semantic-parsingmicrosoft-research-asiasemantic-parsingtext-to-sql+1 more

Similar Papers

Cite this paper

@article{pi2022reasoning,
  title  = {Reasoning Like Program Executors},
  author = {Xinyu Pi and Qian Liu and Bei Chen and Morteza Ziyadi and Zeqi Lin and Qiang Fu and Yan Gao and Jian-Guang Lou and Weizhu Chen},
  year   = {2022},
  eprint = {2201.11473},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2201.11473}
}

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/2201.11473.svg)](https://codeofpaper.com/paper/2201.11473)

Discussion