Abstract
Recent advances in Neural Machine Translation (NMT) show that adding syntactic information to NMT systems can improve the quality of their translations. Most existing work utilizes some specific types of linguistically-inspired tree structures, like constituency and dependency parse trees. This is often done via a standard RNN decoder that operates on a linearized target tree structure. However, it is an open question of what specific linguistic formalism, if any, is the best structural representation for NMT. In this paper, we (1) propose an NMT model that can naturally generate the topology of an arbitrary tree structure on the target side, and (2) experiment with various target tree structures. Our experiments show the surprising result that our model delivers the best improvements with balanced binary trees constructed without any linguistic knowledge; this model outperforms standard seq2seq models by up to 2.1 BLEU points, and other methods for incorporating target-side syntax by up to 0.7 BLEU.
Introduction
Standard Neural Machine Translation (NMT) models typically follow a sequence-to-sequence (seq2seq) paradigm, generating translations linearly from left to right. While effective, this linear approach often fails to capture the inherent hierarchical structure of natural language, which is crucial for managing long-distance dependencies and complex grammatical constraints.
Previous attempts to integrate structural information into NMT decoders have largely relied on "linearization"—flattening trees into sequences—or designing architectures restricted to specific linguistic formalisms like dependency trees. This paper introduces TrDec (Tree-based Decoder), a flexible framework designed to generate arbitrary tree topologies top-down while maintaining the word-to-word fluency characteristic of recurrent neural networks (RNNs).
The TrDec Architecture
TrDec utilizes a dual-RNN architecture that interleaves structural decisions with word generation. The process is divided into two specialized components:
- The Rule RNN: This component manages the tree's topology. It uses rules from a Context-Free Grammar (CFG) to expand nodes until it reaches a "preterminal" node (a leaf node intended to contain words).
- The Word RNN: Upon reaching a preterminal node, the model switches to the Word RNN. This acts as a standard seq2seq decoder, generating subword units until an "end-of-phrase" (
<eop>) token is produced.
Crucially, the state of the Rule RNN is updated based on the output of the Word RNN, ensuring that the structural skeleton and the lexical content remain synchronized throughout the generation process.
Experimental Evaluation
The model was evaluated across three translation tasks representing different resource levels and language pairs:
- Japanese-English (ja-en): KFTT dataset (~405K sentences).
- German-English (de-en): IWSLT 2016 dataset (~200K sentences).
- Oromo-English (or-en): LORELEI dataset (~6.5K sentences), representing a low-resource scenario.
The Power of Non-Linguistic Structure
A primary contribution of this work is the discovery that "syntax-free" structures can be more effective than linguistically-motivated ones. The authors compared traditional syntactic parse trees against balanced binary trees, which recursively split sentences in half regardless of grammatical categories.
Balanced binary trees outperformed syntactic trees for several reasons. Syntactic trees vary wildly in depth and shape for sentences of similar lengths, creating a "variance trap" that makes generation difficult to plan. In contrast, balanced trees provide a predictable, consistent structure that helps the model manage its computational budget and provides a shorter hierarchical path between distant words, mitigating the "forgetting" problem inherent in linear decoders.
Key Results
TrDec demonstrated significant performance gains over baselines:
- BLEU Gains: On Japanese-English, TrDec with balanced binary trees achieved 23.14 BLEU, a 2.04 point improvement over the standard seq2seq baseline (21.10).
- State-of-the-Art Comparison: The model outperformed other syntax-heavy methods, such as those using Combinatory Categorial Grammar (CCG), by up to 0.7 BLEU points.
- Low-Resource Success: In the Oromo-English task, the structural prior provided by TrDec-binary yielded a jump of over 2 BLEU points, suggesting that hierarchical bias is particularly valuable when training data is scarce.
Conclusion
TrDec provides a robust framework for incorporating target-side structure into NMT. The finding that non-linguistic balanced trees outperform formal syntactic trees suggests that current linguistic formalisms may not be the most efficient way to represent structural bias for neural networks. Future work includes adapting this hierarchical approach to the self-attention mechanisms of Transformer architectures and exploring the integration of source-side syntax.
Summary updated