[论文解读] Evaluating Explainable AI Attribution Methods in Neural Machine Translation via Attention-Guided Knowledge Distillation
论文提出一个师生框架,通过将教师派生的 attribution 映射注入到学生模型的注意力中,比较多种 attribution 方法在不同语言对上的表现,并显示基于注意力的 attribution 常常带来最佳改进。
The study of the attribution of input features to the output of neural network models is an active area of research. While numerous Explainable AI (XAI) techniques have been proposed to interpret these models, the systematic and automated evaluation of these methods in sequence-to-sequence (seq2seq) models is less explored. This paper introduces a new approach for evaluating explainability methods in transformer-based seq2seq models. We use teacher-derived attribution maps as a structured side signal to guide a student model, and quantify the utility of different attribution methods through the student's ability to simulate targets. Using the Inseq library, we extract attribution scores over source-target sequence pairs and inject these scores into the attention mechanism of a student transformer model under four composition operators (addition, multiplication, averaging, and replacement). Across three language pairs (de-en, fr-en, ar-en) and attributions from Marian-MT and mBART models, Attention, Value Zeroing, and Layer Gradient $ imes$ Activation consistently yield the largest gains in BLEU (and corresponding improvements in chrF) relative to baselines. In contrast, other gradient-based methods (Saliency, Integrated Gradients, DeepLIFT, Input $ imes$ Gradient, GradientShap) lead to smaller and less consistent improvements. These results suggest that different attribution methods capture distinct signals and that attention-derived attributions better capture alignment between source and target representations in seq2seq models. Finally, we introduce an Attributor transformer that, given a source-target pair, learns to reconstruct the teacher's attribution map. Our findings demonstrate that the more accurately the Attributor can reproduce attribution maps, the more useful an injection of those maps is for the downstream task. The source code can be found on GitHub.
研究动机与目标
- 推动对 seq2seq NMT 的 Explainable AI attribution 方法进行自动化、任务特定的评估。
- 提出一个师生框架,在训练过程中由 attribution 映射引导学生 Transformer。
- 通过将 attribution 注入注意力机制,系统性比较多种 attribution 方法。
- 研究哪些 attribution 类型最能捕捉 Transformer NMT 中的源-目标对齐。
提出的方法
- 从教师 NMT 模型使用 Inseq 库提取八种 XAI 方法的 attribution 映射。
- 对 attribution 映射进行归一化,并通过四种组合算子(加法、乘法、平均、替换)注入到编码器-解码器注意力中。
- 使用带有教师强制输入的未训练学生模型,进行 attribution 增强的注意力训练。
- 在语言对和教师模型上评估学生在 MT 质量指标(BLEU、chrF)上的表现。
- 引入一个 Attributor transformer,学习重构教师的 attribution 映射,并将其准确性与下游 MT 表现相关联。
- 分析哪些 attribution 来源(例如教师注意力)以及哪些网络组件(编码器注意力)对效果的影响最大。
实验结果
研究问题
- RQ1在 oracle 设置下,基于 attribution 引导的注意力先验在多大程度上帮助学生模型重现黄金翻译或模仿教师行为?
- RQ2哪些 XAI attribution 方法产生的映射最有助于模拟教师的输入-输出行为在 NMT 中?
- RQ3将 attribution 信号注入注意力对翻译质量在语言对和模型之间有何影响?
- RQ4Attributor 网络在使用这些映射时,重构 attribution 映射的能力是否与下游 MT 表现相关?
- RQ5哪些注意力组件(编码器 vs. 解码器)对外部注入的 attribution 信号最敏感?
主要发现
- 基于注意力的 attribution,尤其是 Attention、Value Zeroing,以及 Layer Gradient × Activation,在相对于基线的 BLEU 和 chrF 增益方面,在语言对和教师模型之间表现为最大。
- 其他基于梯度的方法(Saliency、Integrated Gradients、DeepLIFT、Input × Gradient、GradientShap)显示出较小且不一致的改进。
- 与教师注意力相关的 attribution 映射往往更有效地引导学生,与 Attributor 重构每个目标标记的 top-3 显著性分数的能力一致。
- Attributor 在使用这些映射时,其重构 attribution 映射的成功与学生的 MT 表现之间存在强相关性。
- 当将 attribution 信号注入到编码器注意力时,效果比注入解码器组件时更显著。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。