[论文解读] PINTO: Faithful Language Reasoning Using Prompt-Generated Rationales
PINTO 提出一个两阶段管线:先让冻结的中等规模语言模型生成每个选项的特定推理理由,然后微调一个更小的推理语言模型,使用这些推理理由并通过对照事实的正则化来确保对推理理由的真实使用,从而提高在ID和OOD数据上的泛化能力。
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.
研究动机与目标
- 促使用显式且忠实的语言模型推理来处理隐性知识任务。
- 通过基于提示的合理化减少对昂贵推理注释的依赖。
- 通过对照事实正则化将推理与推理质量联系起来,以改进ID和OOD的泛化能力。
- 通过冻结进行合理化的模块并微调一个更小的推理LM,实现高效训练。
- 证明生成的推理比基线更忠实,并且可通过 refin e 提升性能。
提出的方法
- 合理化模块:使用冻结的20B GPT-Neox-Like LM,结合一个小的上下文内演示集进行提示,以为每个答案选项生成特定的推理理由,而无需黄金推理。
- 推理模块:微调一个220M的T5-base LM,以计算每个(q, A, r)三元组的可信度分数,并选择最佳答案。
- 对照事实正则化:对推理理由施加扰动(令牌掩码或令牌替换),并用软化(带噪声)的目标分布训练推理模块,以防止对被人为扰动的推理理由的依赖。
- 训练目标:将对正确答案的标准交叉熵与使用扰动推理理由的对照事实正则化损失结合在一起,鼓励对推理理由的忠实使用(方程式2)。
- 扰动策略:在训练期间随机应用令牌掩码(移除推理关注)或令牌替换(替换推理令牌),替换率设为30%。
- 评估:评估ID和OOD准确率、通过LAS衡量推理理由的忠实性,以及在四个CSR基准上的Normalized Relative Gain (NRG)综合指标。
实验结果
研究问题
- RQ1PINTO 是否在同分布数据上比基线提高终端任务准确率?
- RQ2PINTO 是否在模型预测的推理理由的忠实性(LAS)方面相对于基线有所提升?
- RQ3对推理理由的对照事实扰动是否能在低资源和OOD场景下带来更好的泛化?
- RQ4推理理由的质量如何影响在Commonsense QA、StrategyQA、OpenBookQA、QASC上的任务表现与泛化?
- RQ5改进是否对不同扰动策略具有鲁棒性,是否可以通过更高质量的推理理由进一步Refine?
主要发现
- PINTO 在CSQA、StrategyQA、OpenBookQA和QASC等数据集上,ID准确率与忠实性(LAS)优于大多数基线。
- PINTO 在基于合理化的方法中呈现最强的OOD准确率,表明更好的泛化能力。
- 对照事实正则化在提升准确率和忠实性方面均有改善,通常以令牌替换带来比掩码更大的增益。
- 推理理由扰动分析表明,PINTO 的忠实性与对扰动推理理由的敏感性相关,验证了正则化方法。
- 在低资源设置中,PINTO 更具优势,随着训练数据减少,相对基线的性能提升仍然稳定。
- 推理质量(包括人工标注的ECQA推理)可进一步提升,凸显忠实推理在精 refinement 中的价值。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。