Skip to main content
QUICK REVIEW

[Paper Review] Evaluating Explainable AI Attribution Methods in Neural Machine Translation via Attention-Guided Knowledge Distillation

Aria Nourbakhsh, Salima Lamsiyah|arXiv (Cornell University)|Mar 11, 2026
Explainable Artificial Intelligence (XAI)Computer Science0 citations
TL;DR

The paper proposes a teacher-student framework to evaluate XAI attribution methods for Transformer-based NMT by injecting teacher-derived attribution maps into a student model’s attention, comparing multiple attribution methods across language pairs and showing attention-derived attributions often yield the best improvements.

ABSTRACT

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.

Motivation & Objective

  • Motivate automated, task-specific evaluation of Explainable AI attribution methods for seq2seq NMT.
  • Propose a teacher-student framework where attribution maps guide a student transformer during training.
  • Systematically compare multiple attribution methods by injecting them into attention mechanisms.
  • Investigate which attribution types best capture source–target alignment in Transformer NMT.

Proposed method

  • Extract attribution maps with eight XAI methods from a teacher NMT model using the Inseq library.
  • Normalize attribution maps and inject them into the encoder-decoder attention via four composition operators (addition, multiplication, averaging, replacement).
  • Train untrained student models with teacher-forced inputs using the attribution-augmented attention.
  • Evaluate student performance on MT quality metrics (BLEU, chrF) across language pairs and teacher models.
  • Introduce an Attributor transformer that learns to reconstruct the teacher’s attribution maps and correlate its accuracy with downstream MT performance.
  • Analyze which attribution source (e.g., teacher attention) and which network component (encoder attention) yield strongest effects.

Experimental results

Research questions

  • RQ1To what extent can attribution-guided attention priors help a student model reproduce gold translations or mimic a teacher under an oracle setting?
  • RQ2Which XAI attribution methods produce maps most helpful for simulating the teacher’s input–output behavior in NMT?
  • RQ3How does injecting attribution signals into attention affect translation quality across language pairs and models?
  • RQ4Does an Attributor network’s ability to reproduce attribution maps correlate with downstream MT performance when using those maps?
  • RQ5Which attention components (encoder vs. decoder) are most sensitive to externally injected attribution signals?

Key findings

  • Attention-derived attributions, especially Attention, Value Zeroing, and Layer Gradient × Activation, yield the largest BLEU and chrF gains relative to baselines across language pairs and teacher models.
  • Other gradient-based methods (Saliency, Integrated Gradients, DeepLIFT, Input × Gradient, GradientShap) show smaller and less consistent improvements.
  • Attribution maps tied to the teacher’s attention tend to be more effective for guiding the student, aligning with the Attributor’s ability to reproduce top-3 salient scores per target token.
  • The Attributor’s success in reconstructing attribution maps strongly correlates with the student’s MT performance when using those maps.
  • Injecting attribution signals yields stronger effects when applied to encoder attention rather than decoder components.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.