arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2209.14610cs.LGcs.AIcs.CLcs.CV
收藏

基于策略梯度的半结构化数学推理动态提示学习

Dynamic Prompt Learning via Policy Gradient for Semi-structured Mathematical Reasoning

University of California, Los Angeles(加州大学洛杉矶分校);Allen Institute for AI(艾伦人工智能研究所);Georgia Institute of Technology(佐治亚理工学院)

Pan Lu, Liang Qiu, Kai-Wei Chang, Ying Nian Wu, Song-Chun Zhu, Tanmay Rajpurohit, Peter Clark, Ashwin Kalyan

摘要:

数学推理是人类智能的核心能力,在抽象思维和逻辑推理方面对机器提出了独特的挑战。最近的大型预训练语言模型(如GPT-3)在以文本形式编写的数学推理任务(如数学单词问题(MWP))上取得了显着进展。然而,尚不清楚这些模型是否能够处理涉及异构信息(如表格数据)的数学推理的更复杂的问题。为了填补这一空白,我们提出了表格数学单词问题(TabMWP),这是一个新的数据集,包含38,431个开放领域的年级问题,这些问题需要对文本和表格数据进行数学推理。TabMWP中的每个问题都与表格上下文对齐,表格上下文以图像、半结构化文本和结构化表格的形式呈现。有两种类型的问题:自由文本和多项选择,每个问题都用黄金解决方案进行注释,以揭示多步推理过程。我们在TabMWP上评估了不同的预训练模型,包括Few-Shot设置中的GPT-3模型。正如早期的研究所表明的,由于Few-Shot GPT-3依赖于选择上下文中的示例,因此其性能不稳定,并且可能会降低到接近机会。在处理TabMWP等复杂问题时,不稳定问题更为严重。为了缓解这一问题,我们进一步提出了一种新的方法,策略梯度,它利用策略梯度学习选择上下文的例子从少量的训练数据,然后构造相应的提示测试示例。实验结果表明,与随机选择相比,该方法在准确度指标上优于最佳基线5.31%,并显著降低了预测方差,验证了其在选择上下文内示例方面的有效性。

英文摘要:

Mathematical reasoning, a core ability of human intelligence, presents unique challenges for machines in abstract thinking and logical reasoning. Recent large pre-trained language models such as GPT-3 have achieved remarkable progress on mathematical reasoning tasks written in text form, such as math word problems (MWP). However, it is unknown if the models can handle more complex problems that involve math reasoning over heterogeneous information, such as tabular data. To fill the gap, we present Tabular Math Word Problems (TabMWP), a new dataset containing 38,431 open-domain grade-level problems that require mathematical reasoning on both textual and tabular data. Each question in TabMWP is aligned with a tabular context, which is presented as an image, semi-structured text, and a structured table. There are two types of questions: free-text and multi-choice, and each problem is annotated with gold solutions to reveal the multi-step reasoning process. We evaluate different pre-trained models on TabMWP, including the GPT-3 model in a few-shot setting. As earlier studies suggest, since few-shot GPT-3 relies on the selection of in-context examples, its performance is unstable and can degrade to near chance. The unstable issue is more severe when handling complex problems like TabMWP. To mitigate this, we further propose a novel approach, PromptPG, which utilizes policy gradient to learn to select in-context examples from a small amount of training data and then constructs the corresponding prompt for the test example. Experimental results show that our method outperforms the best baseline by 5.31% on the accuracy metric and reduces the prediction variance significantly compared to random selection, which verifies its effectiveness in selecting in-context examples.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑