PAL: Program-aided Language Models

计算机科学 翻译 Python(编程语言) 程序设计语言 自然语言 编译程序 分类 人工智能 自然语言处理 情报检索
作者
Luyu Gao,Aman Madaan,Shuyan Zhou,Uri Alon,Pengfei Liu,Yiming Yang,Jamie Callan,Graham Neubig
出处
期刊:Cornell University - arXiv [Cornell University]
被引量:104
标识
DOI:10.48550/arxiv.2211.10435
摘要

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-Bench Hard and other benchmarks. In all these natural language reasoning tasks, generating code using an LLM and reasoning using a Python interpreter leads to more accurate results than much larger models. For example, PAL using Codex achieves state-of-the-art few-shot accuracy on the GSM8K benchmark of math word problems, surpassing PaLM-540B which uses chain-of-thought by absolute 15% top-1. Our code and data are publicly available at http://reasonwithpal.com/ .
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
科研通AI6.4应助zzhzyt采纳,获得10
1秒前
Yultuz友发布了新的文献求助10
1秒前
mm完成签到 ,获得积分10
1秒前
帅b发布了新的文献求助10
1秒前
slyvia完成签到,获得积分10
4秒前
科研通AI6.3应助NS采纳,获得10
5秒前
CipherSage应助shenjuan1674采纳,获得10
5秒前
脑洞疼应助小无采纳,获得10
5秒前
6秒前
6秒前
Nowind发布了新的文献求助10
9秒前
10秒前
深味i完成签到,获得积分10
11秒前
久一安发布了新的文献求助10
11秒前
缥缈的慕青完成签到,获得积分10
12秒前
orixero应助畅快的代男采纳,获得10
13秒前
13秒前
羡鱼完成签到,获得积分10
13秒前
16秒前
小阿发布了新的文献求助10
17秒前
18秒前
等待映阳完成签到 ,获得积分10
19秒前
19秒前
20秒前
健康的皮带完成签到,获得积分10
20秒前
超级不评发布了新的文献求助10
20秒前
21秒前
22秒前
23秒前
23秒前
大栗子完成签到,获得积分10
23秒前
溟夔蝶魅完成签到,获得积分10
25秒前
任性剑愁完成签到,获得积分10
28秒前
项听蓉发布了新的文献求助10
28秒前
28秒前
溟夔蝶魅发布了新的文献求助10
29秒前
舒适的文博完成签到,获得积分10
29秒前
852应助外向千儿采纳,获得20
29秒前
上官若男应助健康的皮带采纳,获得10
29秒前
30秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Matrix Methods in Data Mining and Pattern Recognition Second Edition 510
Discerning Saints: Moralization of Intrinsic Motivation and Selective Prosociality at Work 500
Handbuch Trainingswissenschaft – Trainingslehre 500
Additive Manufacturing Design and Applications (ASM Handbook, Volume 24A) 500
Variations: A More Diverse Picture of Contemporary Art 400
Induction Heating and Heat Treatment (ASM Handbook, Volume 4C) 300
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7589830
求助须知:如何正确求助?哪些是违规求助? 9167407
关于积分的说明 19621970
捐赠科研通 7169287
什么是DOI,文献DOI怎么找? 3267147
关于科研通互助平台的介绍 2432051
邀请新用户注册赠送积分活动 2259367