Does String-Based Neural MT Learn Source Syntax?
Written for the Research library (claude-opus-5-5) from the paper text. Original — aclanthology.org/D16-1159.pdf
Summary
Encoder-decoder NMT models see only string pairs, so it is unclear whether they pick up source-language grammar that syntax-based MT systems encode explicitly. The authors probe two-layer, 1000-unit non-attentional LSTM models trained on WMT2014 English→French (E2F) and English→German (E2G) data. They compare them with a neural parser (E2P) as an upper bound and with two autoencoders (E2E, and PE2PE on permuted word order) as lower bounds. First, logistic regression reads five labels — voice, tense, top-level syntactic sequence (TSS), POS, and smallest phrase constituent (SPC) — from the cell states, and recursive feature elimination isolates the units that matter. Second, a new decoder is trained to emit linearized constituency trees from each model's encoding vector, and the parses are evaluated on WSJ Section 23. Translation encoders hold far more syntax than autoencoders at both sentence and word level, and word-level labels are better predicted from the lower layer. Still, the extracted trees contain many attachment errors. The work gives early evidence that NMT learns implicit source syntax and shows where that knowledge falls short.
Key points
- Voice can be predicted from the E2F encoding vector with 92.8% accuracy, against a majority baseline of 82.8%. The E2E autoencoder reaches only 82.7%, so copying a sentence does not require storing its voice. For voice and tense overall, the NMT models and E2P reach about 95%.
- The E2P upper-bound parser was trained on 8,162K sentence pairs, called the CJ corpus. It combines about 162K gold-treebank sentences (WSJ Penn Treebank sections 0–22, Ontonotes v5, English Web Treebank) with 8M WMT sentences parsed by the Charniak-Johnson parser. It scores 89.6 F1 on WSJ 23, close to the previously published 90.5.
- Trees decoded from NMT encoders get about 80 labeled F1 (E2G2P 80.34, E2F2P 79.27) and an average tree edit distance (TED) of about 17. Trees from the autoencoders score below 60 F1 (E2E2P 59.35, PE2PE2P 46.64) with TED above 30.
- The authors also compare the 569 short sentences that every model parsed into valid trees. On this set, NMT-derived parses tag about 86% of POS correctly (85.30 and 87.09), versus 96.00 for E2P and 54–68 for the autoencoders.
- The Berkeley Parser Analyzer shows that NMT-derived parses make roughly twice as many bracketing errors as E2P for most error types. For "Sense Confusion" (a phrase's head word gets the wrong POS, causing a wrong attachment), they make more than 16 times as many.
Cited by
- Towards String-To-Tree Neural Machine Translation
- Graph Convolutional Encoders for Syntax-aware Neural Machine Translation
- What do Neural Machine Translation Models Learn about Morphology?
- Evaluating Layers of Representation in Neural Machine Translation on Part-of-Speech and Semantic Tagging Tasks
- Analysis Methods in Neural Language Processing: A Survey
- Probing Classifiers: Promises, Shortcomings, and Advances
- Improved Neural Machine Translation with a Syntax-Aware Encoder and Decoder
- SentEval: An Evaluation Toolkit for Universal Sentence Representations
- What you can cram into a single \$&!\#* vector: Probing sentence embeddings for linguistic properties
- Colorless Green Recurrent Networks Dream Hierarchically
- How Can We Know What Language Models Know?
- Syntax-Guided Controlled Generation of Paraphrases
- Linguistic Knowledge and Transferability of Contextual Representations
- Collecting Diverse Natural Language Inference Problems for Sentence Representation Evaluation
- BERT Rediscovers the Classical NLP Pipeline
- What do you learn from context? Probing for sentence structure in contextualized word representations
- Leveraging Rule-Based Machine Translation Knowledge for Under-Resourced Neural Machine Translation Models
- Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Pruned
- BLiMP: The Benchmark of Linguistic Minimal Pairs for English
Cite
@inproceedings{shi2016does,
title = {{Does String-Based Neural MT Learn Source Syntax?}},
author = {Shi, Xing and Padhi, Inkit and Knight, Kevin},
booktitle = {Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing},
year = {2016},
doi = {10.18653/v1/d16-1159},
url = {https://doi.org/10.18653/v1/d16-1159}
}References
- “beyond” is predicted as “RB” instead of “IN”, resulting in a Ondrej Bojar, Christian Buck, Christian Federmann, Barry Haddow, Philipp Koehn, Matous Machacek, Christof Monz, Pavel Pecina, Matt Post, Herv Saint-Amand, Radu Soricut, and Lucia Specia, editors. 2014. Proc. Ninth Workshop on Statistical Machine Translation. missing prepositional phrase. find
- Eugene Charniak and Mark Johnson. 2005. Coarse-to-fine n-best parsing and MaxEnt discriminative reranking. In Proc. ACL. find our card
- Kyunghyun Cho, Bart van Merrienboer, Caglar Gulcehre, Dzmitry Bahdanau, Fethi Bougares, Holger Schwenk, and Yoshua Bengio. 2014. Learning phrase representations using RNN encoder-decoder for statistical machine translation. In Proc. EMNLP. find
- Brooke Cowan, Ivona Kučerová, and Michael Collins. 2006. A discriminative model for tree-to-tree translation. In Proc. EMNLP. find
- Steve DeNeefe, Kevin Knight, Wei Wang, and Daniel Marcu. 2007. What can syntax-based MT learn from phrase-based MT? In Proc. EMNLP-CoNLL. find
- Michel Galley, Mark Hopkins, Kevin Knight, and Daniel Marcu. 2004. What ’ s in a translation rule ? Information Sciences, 2004. find our card
- Michel Galley, Jonathan Graehl, Kevin Knight, Daniel Marcu, Steve DeNeefe, Wei Wang, and Ignacio Thayer. 2006. Scalable inference and training of context-rich syntactic translation models. In Proc. ACL. find our card
- Sepp Hochreiter and Jürgen Schmidhuber. 1997. Long short-term memory. Neural Computation, 9(8). find
- Nal Kalchbrenner, Edward Grefenstette, and Phil Blunsom. 2014. A convolutional neural network for modelling sentences. In Proc. ACL. find our card
- Andrej Karpathy, Justin Johnson, and Li Fei-Fei. 2016. Visualizing and understanding recurrent networks. In Proc. ICLR. find our card
- Yoon Kim. 2014. Convolutional neural networks for sentence classification. In Proc. EMNLP. find our card
- Ryan Kiros, Yukun Zhu, Ruslan R Salakhutdinov, Richard Zemel, Raquel Urtasun, Antonio Torralba, and Sanja Fidler. 2015. Skip-thought vectors. In Proc. NIPS. find
- Philipp Koehn, Franz Josef Och, and Daniel Marcu. 2003. Statistical phrase-based translation. In Proc. NAACL. find
- Jonathan K. Kummerfeld, David Hall, James R. Curran, and Dan Klein. 2012. Parser showdown at the Wall Street Corral: An empirical investigation of error types in parser output. In Proc. EMNLP-CoNLL. find our card
- Jonathan K. Kummerfeld, Daniel Tse, James R Curran, and Dan Klein. 2013. An empirical examination of challenges in Chinese parsing. In Proc. ACL. find
- Qv Le and Tomas Mikolov. 2014. Distributed representations of sentences and documents. In Proc. ICML. find our card
- Jiwei Li, Xinlei Chen, Eduard Hovy, and Dan Jurafsky. 2016. Visualizing and understanding neural models in nlp. In Proc. NAACL. find our card
- Yang Liu, Qun Liu, and Yajuan Lü. 2011. Adjoining tree-to-string translation. In Proc. ACL. find
- Mitchell P Marcus, Beatrice Santorini, and Mary Ann Marcinkiewicz. 1993. Building a large annotated corpus of English: The Penn Treebank. Computational Linguistics, 19(2). find our card
- Kishore Papineni, Salim Roukos, Todd Ward, and Wei-Jing Zhu. 2002. BLEU: a method for automatic evaluation of machine translation. In Proc. ACL. find our card
- Slav Petrov and Ryan McDonald. 2012. Overview of the 2012 shared task on Parsing the Web. In Notes of the First Workshop on Syntactic Analysis of Non-Canonical Language (SANCL). find
- Sameer S Pradhan and Nianwen Xue. 2009. Ontonotes: the 90% solution. In Proc. NAACL. find
- Richard Socher, Alex Perelygin, Jean Y Wu, Jason Chuang, Christopher D Manning, Andrew Y Ng, and Christopher Potts. 2013. Recursive deep models for semantic compositionality over a sentiment treebank. In Proc. EMNLP. find
- Ilya Sutskever, Oriol Vinyals, and Quoc V Le. 2014. Sequence to sequence learning with neural networks. In Proc. NIPS. find
- Laurens van der Maaten and Geoffrey Hinton. 2008. Visualizing data using t-SNE. Journal of Machine Learning Research, 9. find
- Oriol Vinyals, Łukasz Kaiser, Terry Koo, Slav Petrov, Ilya Sutskever, and Geoffrey Hinton. 2015. Grammar as a foreign language. In Proc. NIPS. find
- Kaizhong Zhang and Dennis Shasha. 1989. Simple fast algorithms for the editing distance between trees and related problems. SIAM Journal on Computing, 18(6). find
- Han Zhao, Zhengdong Lu, and Pascal Poupart. 2015. Self-adaptive hierarchical sentence model. In Proc. IJ-CAI. find