Towards Opening the Black Box of Neural Machine Translation: Source and Target Interpretations of the Transformer
Javier Ferrando, Gerard I. Gállego, Belen Alastruey, Carlos Escolano, Marta R. Costa-jussà
摘要
In Neural Machine Translation (NMT), each token prediction is conditioned on the source sentence and the target prefix (what has been previously translated at a decoding step). However, previous work on interpretability in NMT has mainly focused solely on source sentence tokens' attributions. Therefore, we lack a full understanding of the influences of every input token (source sentence and target prefix) in the model predictions. In this work, we propose an interpretability method that tracks input tokens' attributions for both contexts. Our method, which can be extended to any encoder-decoder Transformer-based model, allows us to better comprehend the inner workings of current NMT models. We apply the proposed method to both bilingual and multilingual Transformers and present insights into their behaviour.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 12 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Accurate Word Alignment Induction from Neural Machine Translation 引用了 On Identifiability in Transformers
- HalOmi: A Manually Annotated Benchmark for Multilingual Hallucination and Omission Detection in Machine Translation 引用了 Attention is Not Only a Weight: Analyzing Transformers with Vector Norms
- On Early Detection of Hallucinations in Factual Question Answering 引用了 Detecting and Mitigating Hallucinations in Machine Translation: Model Internal Workings Alone Do Well, Sentence Similarity Even Better
- Attention is Not Only a Weight: Analyzing Transformers with Vector Norms 引用了 On Identifiability in Transformers
- Measuring the Mixing of Contextual Information in the Transformer 引用了 On Identifiability in Transformers
- Measuring the Mixing of Contextual Information in the Transformer 引用了 Attention is Not Only a Weight: Analyzing Transformers with Vector Norms
- Measuring the Mixing of Contextual Information in the Transformer 引用了 Incorporating Residual and Normalization Layers into Analysis of Masked Language Models
- Quantifying the Plausibility of Context Reliance in Neural Machine Translation 引用了 HalOmi: A Manually Annotated Benchmark for Multilingual Hallucination and Omission Detection in Machine Translation
- Quantifying the Plausibility of Context Reliance in Neural Machine Translation 引用了 Detecting and Mitigating Hallucinations in Machine Translation: Model Internal Workings Alone Do Well, Sentence Similarity Even Better
- Quantifying the Plausibility of Context Reliance in Neural Machine Translation 引用了 Attention is Not Only a Weight: Analyzing Transformers with Vector Norms
- Quantifying the Plausibility of Context Reliance in Neural Machine Translation 引用了 Measuring the Mixing of Contextual Information in the Transformer
- Incorporating Residual and Normalization Layers into Analysis of Masked Language Models 引用了 On Identifiability in Transformers
- Incorporating Residual and Normalization Layers into Analysis of Masked Language Models 引用了 Attention is Not Only a Weight: Analyzing Transformers with Vector Norms
引用它的顶会 Paper12
- Detecting and Mitigating Hallucinations in Machine Translation: Model Internal Workings Alone Do Well, Sentence Similarity Even BetterDavid Dale, Elena Voita, Loïc Barrault, Marta R. Costa-jussàACL 2023 · 25 次引用
- On Early Detection of Hallucinations in Factual Question AnsweringBen Snyder, Marius Moisescu, Muhammad Bilal ZafarKDD 2024 · 10 次引用
- An interpretable error correction method for enhancing code-to-code translationMin Xue, Artur Andrzejak, Marla LeutherICLR 2024 · 10 次引用
- HalOmi: A Manually Annotated Benchmark for Multilingual Hallucination and Omission Detection in Machine TranslationDavid Dale, Elena Voita, Janice Lam, Prangthip Hansanti 等EMNLP 2023 · 8 次引用
- Quantifying the Plausibility of Context Reliance in Neural Machine TranslationGabriele Sarti, Grzegorz Chrupala, Malvina Nissim, Arianna BisazzaICLR 2024 · 8 次引用
它引用的 Paper8
- On Identifiability in TransformersGino Brunner, Yang Liu, Damian Pascual, Oliver Richter 等ICLR 2020 · 210 次引用
- Attention is Not Only a Weight: Analyzing Transformers with Vector NormsGoro Kobayashi, Tatsuki Kuribayashi, Sho Yokoi, Kentaro InuiEMNLP 2020 · 138 次引用
- Accurate Word Alignment Induction from Neural Machine TranslationYun Chen, Yang Liu, Guanhua Chen, Xin Jiang 等EMNLP 2020 · 56 次引用
- Incorporating Residual and Normalization Layers into Analysis of Masked Language ModelsGoro Kobayashi, Tatsuki Kuribayashi, Sho Yokoi, Kentaro InuiEMNLP 2021 · 28 次引用
- Measuring the Mixing of Contextual Information in the TransformerJavier Ferrando, Gerard I. Gállego, Marta R. Costa-jussàEMNLP 2022 · 18 次引用
相关 Paper
- Attention Weights in Transformer NMT Fail Aligning Words Between Sequences but Largely Explain Model PredictionsJavier Ferrando, Marta R. Costa-jussàEMNLP Findings 2021 · 14 次引用
- Analyzing the Source and Target Contributions to Predictions in Neural Machine TranslationElena Voita, Rico Sennrich, Ivan TitovACL 2021
- On the Sub-Layer Functionalities of Transformer DecoderYilin Yang, Longyue Wang, Shuming Shi, Prasad Tadepalli 等EMNLP Findings 2020 · 24 次引用
- Explaining How Transformers Use Context to Build PredictionsJavier Ferrando, Gerard I. Gállego, Ioannis Tsiamas, Marta R. Costa-jussàACL 2023 · 9 次引用
- Non-autoregressive Machine Translation with Probabilistic Context-free GrammarShangtong Gui, Chenze Shao, Zhengrui Ma, Xishan Zhang 等NeurIPS 2023 · 16 次引用
