Graph-to-Sequence Neural Machine Translation

Sufeng Duan, Hai Zhao, Rui WangarXiv 2020

Abstract

Standard Neural Machine Translation (NMT) models typically treat sentences as linear sequences, capturing hierarchical structures only latently. We present the Graph-Transformer, an architecture that re-imagines sentences as multigraphs. By explicitly modeling subgraphs of different orders and utilizing a gating mechanism to fuse incremental information, the Graph-Transformer achieves significant performance gains, outperforming the standard Transformer by up to 1.1 BLEU points on WMT14 English-German and 1.0 BLEU points on IWSLT14 German-English benchmarks.

Introduction

While the Transformer architecture has revolutionized NMT through self-attention, it fundamentally views a sentence as a simple graph where every word is a node connected to every other word. This perspective often overlooks the complex hierarchical dependencies and multi-word phrases inherent in natural language. The Graph-Transformer addresses this by making the construction of higher-order structures explicit, allowing the model to distinguish between simple word-pair relationships and complex phrases.

Methodology

The core innovation of the Graph-Transformer is the treatment of the encoding process as the construction of a multigraph. The model splits the representation into two components: the previous representation (inherited from the prior layer) and the incremental representation (new information generated in the current layer).

Subgraph Grouping and Split Attention

To capture structural information explicitly, the encoder's self-attention is partitioned into three parallel streams:

  • High Order: Processes new incremental information.
  • Middle Order: Relates new information to existing context.
  • Low Order: Inherits representations directly from previous layers.
The Graph-Transformer architecture featuring split attention and gating mechanisms to fuse previous and incremental information.

These streams are combined using a gating strategy (e.g., Weight-Gate or Self-Gate) to learn the relative importance of different subgraph orders. This structure allows the model to theoretically represent subgraphs of up to $2^i$ words at the $i$-th layer.

Experimental Results

The Graph-Transformer was evaluated on the WMT14 English-German (4.5M pairs) and IWSLT14 German-English (153K pairs) datasets.

Performance Gains

The model achieved a 1.1 BLEU point improvement over the Transformer-base on WMT14 En-De and a 1.0 BLEU point improvement on IWSLT14 De-En. Notably, the model demonstrated superior performance on longer sentences (30+ words), where managing complex, high-order dependencies is most challenging.

Scaling with Depth

Analysis of model depth reveals that the Graph-Transformer scales more effectively than the standard Transformer. While the baseline performance tends to plateau, the Graph-Transformer continues to show gains as layers are added, peaking around 7 layers in the tested configuration.

Comparison of BLEU scores between the Graph-Transformer (Our Model) and the standard Transformer across different layer depths.

Conclusion

By explicitly modeling sentences as multigraphs, the Graph-Transformer provides a more structured approach to capturing linguistic hierarchies than standard linear models. Future work will explore more sophisticated graph structures and the application of this multigraph approach to other sequence-to-sequence tasks such as summarization and code generation.

Summary updated

BibTeX
@misc{duan2020graph,
  author = {Sufeng Duan and Hai Zhao and Rui Wang},
  title = {{Graph-to-Sequence Neural Machine Translation}},
  year = {2020},
  eprint = {2009.07489},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2009.07489},
}
Figure