渐进式推理:使用中间预测解释仅解码器序列分类模型
Progressive Inference: Explaining Decoder-Only Sequence Classification Models Using Intermediate Predictions
AI总结:
本文提出Progressive Inference框架,利用仅解码器Transformer的中间预测计算输入归因,包含SP-PI和MP-PI两种方法,显著提升了序列分类模型的解释性。
摘要:
本文提出Progressive Inference——一个计算输入归因的框架,用于解释仅解码器序列分类模型的预测。我们的工作基于一个洞察:仅解码器Transformer模型的分类头可以通过在输入序列的不同位置进行评估,来做出中间预测。由于因果注意力机制,这些中间预测仅依赖于推理点之前已见的token,使我们能够以可忽略的计算开销获得模型对掩码输入子序列的预测。我们基于此洞察开发了两种提供子序列级归因的方法。首先,我们提出Single Pass-Progressive Inference (SP-PI),通过计算连续中间预测之间的差异来计算归因。其次,我们利用与Kernel SHAP的联系开发了Multi Pass-Progressive Inference (MP-PI)。MP-PI使用来自输入的多个掩码版本的中间预测来计算更高质量的归因。我们在多种基于文本分类任务训练的模型上的研究表明,与先前工作相比,SP-PI和MP-PI提供了显著更好的归因。
英文摘要:
This paper proposes Progressive Inference - a framework to compute input attributions to explain the predictions of decoder-only sequence classification models. Our work is based on the insight that the classification head of a decoder-only Transformer model can be used to make intermediate predictions by evaluating them at different points in the input sequence. Due to the causal attention mechanism, these intermediate predictions only depend on the tokens seen before the inference point, allowing us to obtain the model's prediction on a masked input sub-sequence, with negligible computational overheads. We develop two methods to provide sub-sequence level attributions using this insight. First, we propose Single Pass-Progressive Inference (SP-PI), which computes attributions by taking the difference between consecutive intermediate predictions. Second, we exploit a connection with Kernel SHAP to develop Multi Pass-Progressive Inference (MP-PI). MP-PI uses intermediate predictions from multiple masked versions of the input to compute higher quality attributions. Our studies on a diverse set of models trained on text classification tasks show that SP-PI and MP-PI provide significantly better attributions compared to prior work.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。