Abstract
Standard Neural Machine Translation (NMT) models often treat sentences as flat sequences, neglecting the underlying syntactic structure. This paper proposes a bidirectional hierarchical encoder that captures both local syntactic dependencies and global sentence context. By integrating bottom-up and top-down tree-based neural networks with a dynamic weighted attention mechanism, the model achieves significant performance improvements on English-Chinese translation tasks over traditional sequence-to-sequence and vanilla tree-based models.
Introduction
Conventional NMT models typically employ a sequence-to-sequence architecture where sentences are processed as linear lists of words. While effective, this approach fails to leverage the rich syntactic structures inherent in natural language. Previous attempts to incorporate syntax, such as "tree-to-sequence" models, primarily utilized bottom-up encoding. In these models, a phrase's representation is derived solely from its constituent words, providing local context but remaining isolated from the broader sentence (global context). For instance, the meaning of a phrasal verb like "take up" is highly dependent on the surrounding sentence structure, a nuance often missed by purely bottom-up approaches. This research introduces a bidirectional hierarchy to bridge this gap, ensuring every node in the syntactic tree is informed by both local and global information.
Methodology
The proposed Bidirectional Hierarchical Model introduces three primary structural innovations designed to enhance representation learning.
Bidirectional Leaf and Tree Encoding
The architecture employs a standard Bidirectional GRU at the word level to capture sequential dependencies. To encode the syntactic tree, the model uses a bottom-up Tree-GRU followed by a novel top-down Tree-GRU. The top-down pass originates at the root node—which encapsulates the entire sentence's semantic essence—and propagates information downward. This process updates each phrase and word node with global context, allowing for better disambiguation of polysemous words.
Tree-Based Rare Word Encoding
To address the challenge of Out-Of-Vocabulary (OOV) words, the model integrates Byte-Pair Encoding (BPE) within the hierarchical structure. Rare words are decomposed into sub-word units, which are then organized into a binary lexical tree. This sub-tree is attached to the original leaf nodes of the syntactic tree, extending the hierarchy to the sub-word level. This allows the model to derive the meaning of fragmented units based on their hierarchical parent, rather than treating them as a flat sequence.
Weighted Attention Mechanism
With nodes containing multi-level representations, standard attention mechanisms may suffer from redundancy or "over-translation." The authors introduce a dynamic gating scalar ($\beta$) that learns to balance the decoder's attention between leaf nodes (individual words) and non-leaf nodes (phrases) at each decoding step. This ensures the model selectively attends to the most relevant level of the hierarchy.
Experimental Setup
The model was trained on 1.4 million English-Chinese sentence pairs from the LDC parallel corpus. Evaluation was conducted using NIST MT sets (MT04, MT05, and MT06), with MT08 serving as the development set. Source-side English sentences were pre-processed using a constituent parser to generate binary syntactic trees.
Results and Analysis
The bidirectional hierarchical model demonstrated superior performance across all test sets. On the MT04 task, it achieved a BLEU score of 34.33, significantly higher than the 31.26 achieved by a standard sequential encoder and the 31.90 of a vanilla tree-based encoder. Similar gains were observed for MT05 (26.72 vs. 23.98) and MT06 (26.58 vs. 24.02).
Ablation studies highlighted the importance of the dynamic attention gating, which contributed an additional 0.5 to 1.0 BLEU points compared to a static 50/50 attention split. Qualitative analysis showed that the model successfully captured the holistic meaning of sub-words; for example, correctly translating sub-components of "hiked" into appropriate Chinese synonyms by leveraging the hierarchical parent node.
Conclusion and Future Work
This work demonstrates that injecting global context via a top-down pass in a hierarchical encoder significantly improves NMT performance. By treating sub-words as part of the hierarchy and employing dynamic attention, the model effectively manages both syntactic complexity and rare word translation.
Current limitations include a dependency on external parsers, which can introduce error propagation, and increased computational complexity due to the multiple encoding passes. Future research may focus on jointly learning the tree structure to eliminate parser reliance or integrating these hierarchical principles into Transformer-based architectures.
Summary updated