Evaluating Layers of Representation in Neural Machine Translation on Part-of-Speech and Semantic Tagging Tasks

Yonatan Belinkov, Lluís Màrquez, Hassan Sajjad, Nadir Durrani, Fahim Dalvi +1 more
1/23/2018
cs.CL

Official code: boknilev/nmt-repr-analysis (38 stars, Jupyter Notebook, MIT, last commit 2019-04-23).

Abstract

While neural machine translation (NMT) models provide improved translation quality in an elegant, end-to-end framework, it is less clear what they learn about language. Recent work has started evaluating the quality of vector representations learned by NMT models on morphological and syntactic tasks.

Show full abstract

In this paper, we investigate the representations learned at different layers of NMT encoders. We train NMT systems on parallel data and use the trained models to extract features for training a classifier on two tasks: part-of-speech and semantic tagging. We then measure the performance of the classifier as a proxy to the quality of the original NMT model for the given task. Our quantitative analysis yields interesting insights regarding representation learning in NMT models. For instance, we find that higher layers are better at learning semantics while lower layers tend to be better for part-of-speech tagging. We also observe little effect of the target language on source-side representations, especially with higher quality NMT models.

View on arXivView PDF

Code Implementations(1)

MIT
385Jupyter Notebook, PythonJan 6, 20177 years agoMIT

Similar Papers

Cite this paper

@article{belinkov2018evaluating,
  title  = {Evaluating Layers of Representation in Neural Machine Translation on Part-of-Speech and Semantic Tagging Tasks},
  author = {Yonatan Belinkov and Lluís Màrquez and Hassan Sajjad and Nadir Durrani and Fahim Dalvi and James Glass},
  year   = {2018},
  eprint = {1801.07772},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1801.07772}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1801.07772.svg)](https://codeofpaper.com/paper/1801.07772)

Discussion