Lune

ACL2022Top-tier venue

Can Transformer be Too Compositional? Analysing Idiom Processing in Neural Machine Translation

Verna Dankers, Christopher G. Lucas, Ivan Titov

Abstract

Unlike literal expressions, idioms' meanings do not directly follow from their parts, posing a challenge for neural machine translation (NMT). NMT models are often unable to translate idioms accurately and over-generate compositional, literal translations. In this work, we investigate whether the non-compositionality of idioms is reflected in the mechanics of the dominant NMT model, Transformer, by analysing the hidden states and attention patterns for models with English as source language and one of seven European languages as target language. When Transformer emits a non-literal translation -i.e. identifies the expression as idiomatic -the encoder processes idioms more strongly as single lexical units compared to literal expressions. This manifests in idioms' parts being grouped through attention and in reduced interaction between idioms and their context. In the decoder's cross-attention, figurative inputs result in reduced attention on source-side tokens. These results suggest that Transformer's tendency to process idioms as compositional expressions contributes to literal translations of idioms.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

15 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Better Hit the Nail on the Head than Beat around the Bush: Removing Protected Attributes with a Single Projection cites Null It Out: Guarding Protected Attributes by Iterative Nullspace Projection
  • Translate Meanings, Not Just Words: IdiomKB's Role in Optimizing Idiomatic Translation with Language Models cites The Paradox of the Compositionality of Natural Language: A Neural Machine Translation Case Study
  • Are representations built from the ground up? An empirical examination of local composition in language models cites The Paradox of the Compositionality of Natural Language: A Neural Machine Translation Case Study
  • LEACE: Perfect linear concept erasure in closed form cites Better Hit the Nail on the Head than Beat around the Bush: Removing Protected Attributes with a Single Projection
  • LEACE: Perfect linear concept erasure in closed form cites Null It Out: Guarding Protected Attributes by Iterative Nullspace Projection
  • The Paradox of the Compositionality of Natural Language: A Neural Machine Translation Case Study cites On Compositional Generalization of Neural Machine Translation
  • Divergences between Language Models and Human Brains cites Are representations built from the ground up? An empirical examination of local composition in language models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers15

  1. LEACE: Perfect linear concept erasure in closed formNora Belrose, David Schneider-Joseph, Shauli Ravfogel, Ryan Cotterell et al.NeurIPS 2023 · 305 citations
  2. Translate Meanings, Not Just Words: IdiomKB's Role in Optimizing Idiomatic Translation with Language ModelsShuang Li, Jiangjie Chen, Siyu Yuan, Xinyi Wu et al.AAAI 2024 · 44 citations
  3. Divergences between Language Models and Human BrainsYuchen Zhou, Emmy Liu, Graham Neubig, Michael J. Tarr et al.NeurIPS 2024 · 8 citations
  4. Are representations built from the ground up? An empirical examination of local composition in language modelsEmmy Liu, Graham NeubigEMNLP 2022 · 5 citations
  5. Better Hit the Nail on the Head than Beat around the Bush: Removing Protected Attributes with a Single ProjectionPantea Haghighatkhah, Antske Fokkens, Pia Sommerauer, Bettina Speckmann et al.EMNLP 2022 · 2 citations

Builds on4

  1. Null It Out: Guarding Protected Attributes by Iterative Nullspace ProjectionShauli Ravfogel, Yanai Elazar, Hila Gonen, Michael Twiton et al.ACL 2020 · 25 citations
  2. On the Sub-Layer Functionalities of Transformer DecoderYilin Yang, Longyue Wang, Shuming Shi, Prasad Tadepalli et al.EMNLP Findings 2020 · 24 citations
  3. The Paradox of the Compositionality of Natural Language: A Neural Machine Translation Case StudyVerna Dankers, Elia Bruni, Dieuwke HupkesACL 2022
  4. On Compositional Generalization of Neural Machine TranslationYafu Li, Yongjing Yin, Yulong Chen, Yue ZhangACL 2021

Related papers

  1. It's Not a Walk in the Park! Challenges of Idiom Translation in Speech-to-text SystemsIuliia Zaitova, Badr M. Abdullah, Wei Xue, Dietrich Klakow et al.ACL 2025 · 1 citation
  2. Figurative Language Processing: A Linguistically Informed Feature Analysis of the Behavior of Language Models and HumansHyewon Jang, Qi Yu, Diego FrassinelliACL Findings 2023 · 4 citations
  3. Attention Weights in Transformer NMT Fail Aligning Words Between Sequences but Largely Explain Model PredictionsJavier Ferrando, Marta R. Costa-jussàEMNLP Findings 2021 · 14 citations
  4. Crossing the Threshold: Idiomatic Machine Translation through Retrieval Augmentation and Loss WeightingEmmy Liu, Aditi Chaudhary, Graham NeubigEMNLP 2023 · 2 citations
  5. Enhancing Idiomatic Representation in Multiple Languages via an Adaptive Contrastive Triplet LossWei He, Marco Idiart, Carolina Scarton, Aline VillavicencioACL Findings 2024 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines