[论文解读] When Can Models Learn From Explanations? A Formal Framework for Understanding the Roles of Explanation Data
本文提出一种基于检索的方法,利用过往解释作为输入以提升下游任务的模型性能,在一个合成任务中准确率最高达到95%,而基线方法在无解释的情况下准确率低于65%。该研究识别出解释有效性的六个先决条件,并发现现有数据集如 e-SNLI、TACRED 和 SemEval 未能满足这些条件,从而解释了为何在实践中解释检索无法提升性能。
Many methods now exist for conditioning model outputs on task instructions, retrieved documents, and user-provided explanations and feedback. Rather than relying solely on examples of task inputs and outputs, these approaches use valuable additional data for improving model correctness and aligning learned models with human priors. Meanwhile, a growing body of evidence suggests that some language models can (1) store a large amount of knowledge in their parameters, and (2) perform inference over tasks in textual inputs at test time. These results raise the possibility that, for some tasks, humans cannot explain to a model any more about the task than it already knows or could infer on its own. In this paper, we study the circumstances under which explanations of individual data points can (or cannot) improve modeling performance. In order to carefully control important properties of the data and explanations, we introduce a synthetic dataset for experiments, and we also make use of three existing datasets with explanations: e-SNLI, TACRED, and SemEval. We first give a formal framework for the available modeling approaches, in which explanation data can be used as model inputs, as targets, or as a prior. After arguing that the most promising role for explanation data is as model inputs, we propose to use a retrieval-based method and show that it solves our synthetic task with accuracies upwards of 95%, while baselines without explanation data achieve below 65% accuracy. We then identify properties of datasets for which retrieval-based modeling fails. With the three existing datasets, we find no improvements from explanation retrieval. Drawing on findings from our synthetic task, we suggest that at least one of six preconditions for successful modeling fails to hold with these datasets. Our code is publicly available at https://github.com/peterbhase/ExplanationRoles
研究动机与目标
- 理解在何种条件下解释能够提升模型性能,尤其是与大型语言模型仅凭输入即可推断任务的能力形成对比。
- 形式化解释数据在建模中的角色——具体为作为输入、目标或先验信息,并主张通过检索实现其最优使用方式为输入。
- 识别解释检索提升性能的先决条件,利用合成数据集隔离并测试这些因素。
- 评估解释检索在真实世界数据集(e-SNLI、TACRED、SemEval)上的有效性,并解释为何未见性能提升。
提出的方法
- 作者引入一个具有受控特征(index, m, n, r, d)的合成数据集,以模拟现实数据并测试在已知条件下的解释检索。
- 提出一种基于检索的建模方法,即在推理过程中检索过往数据点的解释并作为输入标记使用。
- 使用 Sentence-BERT 进行检索,RoBERTa 经微调后作为分类器,解释作为预测的上下文信息提供。
- 通过改变输入特征与解释内容之间相关性的程度,评估模型的可解释性与学习能力。
- 该框架形式化了解释的角色:作为输入(检索后输入模型)、作为目标(用于监督)或作为先验(用于正则化行为)。
- 作者推导出六个实现有效解释检索的先决条件,包括输入与解释之间可计算的特征、跨样本解释的相关性,以及模型质量的阈值要求。
实验结果
研究问题
- RQ1在通过检索将解释用作输入时,解释在何种条件下能够提升模型性能?
- RQ2尽管大规模收集了解释,为何解释检索方法在 e-SNLI、TACRED 和 SemEval 等真实数据集上未能提升性能?
- RQ3有效解释检索的先决条件与真实世界数据集及合成任务的结构之间有何关联?
- RQ4大型语言模型在多大程度上能仅凭输入推断任务结构,从而减少对显式解释的需求?
主要发现
- 在合成任务中,基于检索的建模方法准确率超过95%,显著优于仅使用输入-输出对的基线方法,后者准确率低于65%。
- 模型从解释中学习的能力在很大程度上取决于是否存在能将输入与解释关联起来的易于计算的特征,而这些特征在真实数据集中缺失或微弱。
- 尽管使用了数千条解释,解释检索在 e-SNLI、TACRED 和 SemEval 上均未提升性能,表明这六个先决条件中至少有一个未被满足。
- 本研究识别出六个实现有效解释检索的先决条件:(1) 输入与解释之间可计算的特征,(2) 解释在不同样本间的相关性,(3) 分类器能识别解释的含义,(4) 检索与分类模型均需达到足够质量,(5) 需要足够多的训练数据,(6) 解释内容非冗余。
- 结果表明,对于模型能仅凭输入推断任务结构的任务——尤其是经过强预训练的模型——解释提供的边际效益递减,且相较于解释检索,更多未标注数据往往能带来更大的性能增益。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。