arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2211.01562cs.CL
收藏

PINTO:使用提示生成的理由进行忠实的语言推理

PINTO: Faithful Language Reasoning Using Prompt-Generated Rationales

University of Southern California(南加州大学);Information Sciences Institute(信息科学研究所)

Peifeng Wang, Aaron Chan, Filip Ilievski, Muhao Chen, Xiang Ren

AI总结:

提出PINTO流水线,通过提示冻结的合理化LM生成自由文本理由,并利用反事实正则化微调推理LM,显著提升模型在分布内外测试集上的泛化能力与理由对预测的忠实度。

摘要:

神经语言模型(LMs)通过利用其自身预训练参数中编码的潜在知识,在各种基于语言的推理任务上取得了令人印象深刻的结果。为了使这一推理过程更加明确,最近的工作通过训练或提示合理化LM生成自由文本理由来检索其内部知识,这些理由可用于指导由同一LM或单独的推理LM做出的任务预测。然而,合理化LM需要昂贵的理由标注和/或计算,且无法保证其生成的理由能改善LM的任务性能或忠实地反映LM的决策过程。在本文中,我们提出了PINTO,这是一个通过基于提示的学习进行合理化,并通过反事实正则化学习在理由上进行忠实推理的LM流水线。首先,PINTO通过提示一个冻结的合理化LM生成自由文本理由,为任务输入规划出合适的推理过程。其次,PINTO的推理LM被微调以使用生成的理由作为上下文来解决任务,同时受到正则化以在理由受到扰动时输出置信度较低的预测。在四个数据集上,我们表明PINTO显著提高了推理LM的泛化能力,在分布内和分布外测试集上均产生更高的性能。此外,我们发现PINTO的理由比竞争基线生成的理由更忠实于其任务预测。

英文摘要:

Neural language models (LMs) have achieved impressive results on various language-based reasoning tasks by utilizing latent knowledge encoded in their own pretrained parameters. To make this reasoning process more explicit, recent works retrieve a rationalizing LM's internal knowledge by training or prompting it to generate free-text rationales, which can be used to guide task predictions made by either the same LM or a separate reasoning LM. However, rationalizing LMs require expensive rationale annotation and/or computation, without any assurance that their generated rationales improve LM task performance or faithfully reflect LM decision-making. In this paper, we propose PINTO, an LM pipeline that rationalizes via prompt-based learning, and learns to faithfully reason over rationales via counterfactual regularization. First, PINTO maps out a suitable reasoning process for the task input by prompting a frozen rationalizing LM to generate a free-text rationale. Second, PINTO's reasoning LM is fine-tuned to solve the task using the generated rationale as context, while regularized to output less confident predictions when the rationale is perturbed. Across four datasets, we show that PINTO significantly improves the generalization ability of the reasoning LM, yielding higher performance on both in-distribution and out-of-distribution test sets. Also, we find that PINTO's rationales are more faithful to its task predictions than those generated by competitive baselines.

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

↑