Top-down Tree Structured Decoding with Syntactic Connections for Neural Machine Translation and Parsing

Jetic Gu, Hassan S. Shavarani, Anoop SarkarEMNLP 2018

Introduction

Neural Machine Translation (NMT) has traditionally relied on sequential, flat decoding processes. While effective for many tasks, these models often struggle with complex structural reordering and grammatical consistency, particularly between languages with divergent syntactic rules. This paper introduces Seq2DRNN, a novel architecture that replaces sequential decoding with a top-down tree-structured approach. By integrating "Syntactic Connections" (SynC), the model simultaneously translates text and generates constituency parse trees, leading to improved fluency and structural accuracy.

The Structural Challenge in NMT

Standard NMT models, such as the classic Seq2Seq, treat language as a linear sequence of tokens. This abstraction frequently leads to "structural" errors, such as the omission of essential verbs or incorrect phrase placement when translating from languages like German to English. While previous "syntax-aware" models attempted to mitigate this, they often relied on bottom-up structures or dependency parsing. The authors argue that top-down constituency parsing—decomposing a sentence into nested phrases like Noun Phrases (NP) and Verb Phrases (VP)—is a more natural fit for generative language modeling. The primary challenge is designing a decoder capable of making high-level structural decisions while maintaining a coherent global sentence plan.

The Seq2DRNN Architecture

The proposed system is built upon three foundational components:

  1. Doubly Recurrent Neural Networks (DRNN): Unlike standard RNNs that process data linearly, a DRNN traverses a tree structure top-down. Each node maintains two hidden states: an ancestral state (inheriting information from the parent) and a fraternal state (capturing context from the preceding sibling).
  2. Seq2DRNN Model: This architecture pairs a bidirectional LSTM encoder with a DRNN decoder. During generation, the decoder determines whether a node is a "leaf" (a terminal word) or a "non-terminal" (a syntactic label).
The Seq2DRNN architecture showing the encoder-decoder framework with a tree-structured decoder for German-to-English translation.

Syntactic Connections (SynC)

The core innovation of this work is the Syntactic Connections (SynC) mechanism. Traditional decoders are limited by their focus on the immediate preceding word. SynC expands this scope by allowing the model to reference the hidden states of ancestral and fraternal clauses.

Conceptual diagram of Syntactic Connections (SynC), illustrating how word-level, ancestral, and fraternal information converge to inform the current node.

By providing a "structural memory," SynC ensures that the generation of a specific word (e.g., a verb) is informed by the entire preceding phrase (e.g., a long subject noun phrase), maintaining coherence across long-distance dependencies.

Experimental Evaluation

The model was evaluated across several benchmarks:

  • IWSLT 2017 (German-English): Primary testbed for translation and reordering.
  • News Commentary v8: Multi-language evaluation covering German-English (DE-EN), Czech-English (CS-EN), and Russian-English (RU-EN).
  • WSJ Penn Treebank: Used to assess the model's performance as a standalone syntactic parser.

Key Results and Insights

The Seq2DRNN+SynC model demonstrated superior performance across multiple metrics:

  • Translation Quality: The model consistently outperformed standard Seq2Seq and other syntax-based baselines. In the DE-EN task, it achieved a BLEU score of 17.21, surpassing the baseline of 16.61.
  • Syntactic Reordering: Significant gains were observed in RIBES scores, indicating better handling of word reordering—a critical factor in German-to-English translation.
  • Parsing Accuracy: As a parser, the model achieved an F1 score of 89.9 on the WSJ dataset. While slightly below specialized parsers, it significantly outperformed other NMT-based parsing attempts.

A key insight is that top-down decoding serves as a "global plan," constraining the model to follow a grammatical structure before selecting specific words. Furthermore, the model's ability to perform translation and parsing simultaneously makes it a highly efficient multi-tasking tool.

Conclusion and Future Work

While the current implementation was constrained by hardware limitations, the results validate the effectiveness of top-down tree-structured decoding. Future research directions include incorporating source-side syntax, scaling the model to larger lexicons, and exploring hybrid architectures that combine SynC with phrase-based NMT systems.

Summary updated

BibTeX
@inproceedings{gu2018top,
  author = {Jetic Gu and Hassan S. Shavarani and Anoop Sarkar},
  title = {{Top-down Tree Structured Decoding with Syntactic Connections for Neural Machine Translation and Parsing}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2018},
  doi = {10.18653/v1/d18-1037},
}
Figure