PAL: Program-aided Language Models
Luyu Gao Affiliation: Language Technologies Institute, Carnegie Mellon University, USA Aman Madaan Affiliation: Language Technologies Institute, Carnegie Mellon University, USA Shuyan Zhou Affiliation: Language Technologies Institute, Carnegie Mellon University, USA Uri Alon Affiliation: Language Technologies Institute, Carnegie Mellon University, USA Pengfei Liu Affiliation: Language Technologies Institute, Carnegie Mellon University, USA Affiliation: Inspired Cognition, USA Yiming Yang Affiliation: Language Technologies Institute, Carnegie Mellon University, USA Jamie Callan Affiliation: Language Technologies Institute, Carnegie Mellon University, USA Graham Neubig Affiliation: Language Technologies Institute, Carnegie Mellon University, USA Affiliation: Inspired Cognition, USA
Abstract
Large language models (LLMs) have recently demonstrated an impressive ability to perform arithmetic and symbolic reasoning tasks, when provided with a few examples at test time (“few-shot prompting”). Much of this success can be attributed to prompting methods such as “chain-of-thought”, which employ LLMs for both understanding the problem description by decomposing it into steps, as well as solving each step of the problem. While LLMs seem to be adept at this sort of step-by-step decomposition, LLMs often make logical and arithmetic mistakes in the solution part, even when the problem is decomposed correctly. In this paper, we present Program-Aided Language models (PaL): a novel approach that uses the LLM to read natural language problems and generate programs as the intermediate reasoning steps, but offloads the solution step to a runtime such as a Python interpreter. With PaL, decomposing the natural language problem into runnable steps remains the only learning task for the LLM, while solving is delegated to the interpreter. We demonstrate this synergy between a neural LLM and a symbolic interpreter across 13 mathematical, symbolic, and algorithmic reasoning tasks from BIG-Benc
原文 arXiv:2211.10435;中英对照 + 大白话阅读 https://aha.fim.ai/paper/2211.10435v2