arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.11342cs.CLcs.AI
收藏

通过注意力引导的知识蒸馏评估神经机器翻译中的可解释AI归因方法

Evaluating Explainable AI Attribution Methods in Neural Machine Translation via Attention-Guided Knowledge Distillation

Department of Computer Science, University of Luxembourg(卢森堡大学计算机科学系)

Aria Nourbakhsh, Salima Lamsiyah, Adelaide Danilov, Christoph Schommer

AI总结:

本文通过注意力引导的知识蒸馏评估神经机器翻译中的可解释AI归因方法,发现注意力、值零化和层梯度×激活方法在BLEU指标上表现最佳,而其他梯度方法效果较弱。

摘要:

研究输入特征对神经网络模型输出的归因是一个活跃的研究领域。尽管已经提出了众多可解释AI(XAI)技术来解释这些模型,但对这些方法在序列到序列(seq2seq)模型中的系统性和自动化评估却较少被探索。本文介绍了一种新的方法,用于评估基于Transformer的seq2seq模型中的可解释性方法。我们使用教师推导的归因图作为结构化的侧信号来指导学生模型,并通过学生模型模拟目标的能力来量化不同归因方法的效用。使用Inseq库,我们提取了源-目标序列对上的归因分数,并将这些分数注入到学生Transformer模型的注意力机制中,通过四种组合运算符(加法、乘法、平均和替换)。在三个语言对(德语-英语、法语-英语、阿拉伯语-英语)和Marian-MT和mBART模型的归因情况下,注意力、值零化和层梯度×激活方法在BLEU(以及相应的chrF改进)方面相对于基线方法始终产生最大的提升。相比之下,其他基于梯度的方法(显著性、积分梯度、DeepLIFT、输入×梯度、梯度Shap)导致较小且不一致的改进。这些结果表明,不同的归因方法捕捉了不同的信号,且注意力衍生的归因更好地捕捉了seq2seq模型中源和目标表示之间的对齐。最后,我们介绍了一个Attributor Transformer,它在给定源-目标对时,学会重建教师的归因图。我们的发现表明,Attributor越能准确地复现归因图,这些图的注入对下游任务就越有用。源代码可在GitHub上找到。

英文摘要:

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 $\times$ 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 $\times$ 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.

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

↑