An Analysis of Encoder Representations in Transformer-Based Machine Translation

By Alessandro Raganato, Jörg Tiedemann. 2018

304 citations recorded by the source corpus.

The attention mechanism is a successful technique in modern NLP, especially in tasks like machine translation. The recently proposed network architecture of the Transformer is based entirely on attention mechanisms and achieves new state of the art results in neural machine translation, outperforming other sequence-to-sequence models. However, so far not much is known about the internal properties of the model and the representations it learns to achieve that performance. To study this question, we investigate the information that is learned by the attention mechanism in Transformer models with different translation quality. We assess the representations of the encoder by extracting dependency relations based on self-attention weights, we perform four probing tasks to study the amount of syntactic and semantic captured information and we also test attention in a transfer learning scenario. Our analysis sheds light on the relative strengths and weaknesses of the various encoder representations. We observe that specific attention heads mark syntactic dependency relations and we can also confirm that lower layers tend to learn more about syntax while higher layers tend to encode more semantics.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Natural Language Processing, Representation & Self-Supervised Learning

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Yonatan Belinkov
  2. Graham Neubig
  3. Luke S. Zettlemoyer
  4. Mohit Bansal
  5. Kyunghyun Cho
  6. Felix Stahlberg
  7. Noah A. Smith
  8. Christopher D. Manning

In Computer Vision and Pattern Recognition

  1. Felix Stahlberg
  2. Graham Neubig
  3. Yonatan Belinkov
  4. Orhan Firat
  5. Kyunghyun Cho
  6. Rico Sennrich
  7. Luke S. Zettlemoyer
  8. Mohit Bansal

In Natural Language Processing

  1. Yonatan Belinkov
  2. Graham Neubig
  3. Kyunghyun Cho
  4. Samuel R. Bowman
  5. Luke S. Zettlemoyer
  6. Felix Stahlberg
  7. Philipp Koehn
  8. Yoav Goldberg

In Representation & Self-Supervised Learning

  1. Yonatan Belinkov
  2. Samuel R. Bowman
  3. Graham Neubig
  4. Jesse Vig
  5. Omer Levy
  6. Ivan Titov
  7. Christopher D. Manning
  8. Jason Phang

Citations in the corpus