mlsanityData to 7 Oct 2026

Unveiling Multilinguality in Transformer Models: Exploring Language Specificity in Feed-Forward Networks

arXiv 2310.15552 ↗First posted 24 Oct 2023cs.CLcited by 12

Not on the map. Why?

Abstract (arXiv)

Recent research suggests that the feed-forward module within Transformers can be viewed as a collection of key-value memories, where the keys learn to capture specific patterns from the input based on the training examples. The values then combine the output from the 'memories' of the keys to generate predictions about the next token. This leads to an incremental process of prediction that gradually converges towards the final token choice near the output layers. This interesting perspective raises questions about how multilingual models might leverage this mechanism. Specifically, for autoregressive models trained on two or more languages, do all neurons (across layers) respond equally to all languages? No! Our hypothesis centers around the notion that during pretraining, certain model parameters learn strong language-specific features, while others learn more language-agnostic (shared across languages) features. To validate this, we conduct experiments utilizing parallel corpora of two languages that the model was initially pretrained on. Our findings reveal that the layers closest to the network's input or output tend to exhibit more language-specific behaviour compared to the layers in the middle.

Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Builds on 16 of its 23 references that are in the map. First posted on arXiv 24 Oct 2023.

Builds on

16 of 23 references.

References · 16

  1. 2017Attention Is All You Needcited by 59,932
  2. 2022Locating and Editing Factual Associations in GPTcited by 2,609
  3. 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
  4. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
  5. 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,046
  6. 2023Eliciting Latent Predictions from Transformers with the Tuned Lenscited by 579
  7. 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 522
  8. 2021MoEfication: Transformer Feed-forward Layers are Mixtures of Expertscited by 149
  9. 2022Lifting the Curse of Multilinguality by Pre-training Modular Transformerscited by 145
  10. 2019Investigating Multilingual NMT Representations at Scalecited by 68
  11. 2019How Language-Neutral is Multilingual BERT?cited by 51
  12. 2021When is BERT Multilingual? Isolating Crucial Ingredients for Cross-lingual Transfercited by 41
4 more
  1. 2022Kformer: Knowledge Injection in Transformer Feed-Forward Layerscited by 37
  2. 2022Analyzing the Mono- and Cross-Lingual Pretraining Dynamics of Multilingual Language Modelscited by 32
  3. 2020Rethinking the Value of Transformer Componentscited by 24
  4. 2020Announcing CzEng 2.0 Parallel Corpus with over 2 Gigawordscited by 17

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 5; 2025: 6; 2026: 1.

12 papers.