Inducing Constituency Trees through Neural Machine Translation

Phu Mon Htut, Kyunghyun Cho, Samuel R. BowmanarXiv 2019

Introduction

Human language is inherently hierarchical, yet most neural networks process text as a linear sequence. Grammar induction—the task of discovering these hidden "trees" without human-annotated data—is a long-standing goal in computational linguistics. Recently, Latent Tree Learning (LTL) has utilized Language Modeling (LM) as a proxy task, under the assumption that predicting the next word requires an internal understanding of syntactic units. This paper investigates a different hypothesis: Is translation a better teacher? The authors propose that the requirement to preserve meaning across languages provides a richer, more semantically grounded signal for inducing trees than internal word prediction alone.

Methodology

The researchers adapted two high-performing LTL architectures, originally designed for language modeling, to serve as decoders in a Neural Machine Translation (NMT) pipeline:

  1. PRPN (Parsing-Reading-Predict Network): This model uses a convolution-based parser to calculate "syntactic distances" between words, which then gates a self-attention mechanism to simulate tree structures.
  2. ON-LSTM (Ordered Neurons LSTM): This model introduces an inductive bias where different neurons represent different levels of a hierarchy. High-level neurons store information about large constituents, while low-level neurons handle local word-level information.

The study integrated these models as decoders with a standard bidirectional LSTM encoder, training them on the IWSLT’14 De-En (German-to-English) and IWSLT’17 Zh-En (Chinese-to-English) datasets. The induced trees were then compared against "gold standard" parses from the Stanford Parser on the Wall Street Journal (WSJ) test set to calculate F1 scores.

Quantitative Results

The experiments revealed that models trained to translate consistently produced trees with higher F1 scores than those trained only on language modeling. For example, on the De-En task, the PRPN decoder achieved a median F1 of 53.0, significantly outperforming the 44.6 F1 achieved by the PRPN language model.

Figure 3: Parsing F1 scores across different sentence lengths for models trained on De-En (a) and Zh-En (b) datasets using BPE tokens.

As illustrated in Figure 3, while parsing accuracy generally declines as sentence length increases, the NMT-trained models maintain a clear advantage. Interestingly, the study found that translation quality (BLEU score) is not a reliable indicator of parsing quality (F1 score); a model can excel at translation while producing mediocre trees, and vice versa.

Qualitative Analysis

Qualitative evaluations showed that these latent models are particularly effective at identifying Noun Phrases (NP) and Prepositional Phrases (PP). In some instances, the induced models even outperformed the Stanford Parser in grouping specific complex terms.

Figure 4: Qualitative comparison of induced constituency trees from PRPN and ON-LSTM against the Stanford Parser for sample sentences.

Figure 4 demonstrates how the PRPN and ON-LSTM models capture hierarchical structures. For example, in the phrase "climate neutral tree," the latent models successfully identify the constituent groupings that align with the underlying semantic meaning required for translation.

Discussion and Limitations

To confirm that the signal stems from the translation task itself, the authors conducted an "EOS" experiment where the decoder was fed only a single end-of-sentence token as the source. Even in this "blind" scenario, the MT-trained weights produced superior trees compared to the LM baseline, suggesting that the translation objective fundamentally alters how the model learns syntax.

However, the study noted significant instability, with F1 scores varying widely across different random seeds. This high variance suggests that while the MT signal is stronger, it is not necessarily more stable than LM. Future work may focus on regularization techniques to make this unsupervised grammar induction more robust across training runs.

Summary updated

BibTeX
@misc{htut2019inducing,
  author = {Phu Mon Htut and Kyunghyun Cho and Samuel R. Bowman},
  title = {{Inducing Constituency Trees through Neural Machine Translation}},
  year = {2019},
  eprint = {1909.10056},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1909.10056},
}
Figure