Multi-layer Representation Fusion for Neural Machine Translation

Qiang Wang, Fuxue Li, Tong Xiao, Yanyang Li, Yinqiao Li, Jingbo Zhu

Abstract

Standard deep Neural Machine Translation (NMT) models typically rely only on the final, top-most layer to make word predictions, potentially losing valuable low-level information. This paper introduces Multi-layer Representation Fusion (MLRF), a technique that "densely" connects every layer in the stack to a fusion module, allowing the model to leverage features from all levels of abstraction. MLRF achieves state-of-the-art results on German-English translation and demonstrates robustness on large-scale Chinese-English tasks.

Introduction

In deep learning for NMT, increasing model depth is a standard approach to improving performance. However, deep networks face two primary challenges: information loss and training difficulty. While residual connections facilitate gradient flow, the final prediction usually depends solely on the last layer's representation. This creates an information bottleneck where low-level features—such as local syntax or specific word identities—may be discarded in favor of high-level abstractions. Furthermore, the significant distance between bottom layers and the final output makes it harder for early layers to receive direct training signals.

The MLRF Architecture

To address these issues, the authors propose Multi-layer Representation Fusion (MLRF). Instead of a strictly linear stack, MLRF introduces a fusion layer that aggregates outputs from all preceding layers in both the encoder and decoder.

Comparison of the standard NMT architecture (a) with the proposed MLRF architecture (b), which establishes direct connections from all layers to the final prediction module.

By connecting every layer to the output, the model creates "densely connected" shortcuts. This architecture makes the network easier to optimize, similar to the principles behind DenseNets in computer vision, and ensures that the final prediction can draw upon a rich set of features from various levels of abstraction.

Fusion Mechanisms

The paper explores three distinct functions for combining layer representations:

  1. Fusion by Pooling: A simple average of all layer outputs. This non-parametric approach treats every layer as equally significant.
  2. Fusion by Feed-forward Network (FNN): Concatenates all layer outputs and passes them through a non-linear hidden layer to compress them into a single vector.
  3. Fusion by Multi-hop Self-Attention: The most sophisticated method, which applies attention vertically across the network's depth. By using multiple "hops," the model can create a 2D representation where different hops focus on different depths.
Detailed view of the multi-hop self-attention fusion mechanism, showing how representations from different layers are weighted to form the final prediction vector.

To help the model distinguish between layers during fusion, the authors also introduced Layer Embeddings, which indicate the depth (index) of each layer in the stack, analogous to positional embeddings in the Transformer.

Experimental Results

The MLRF approach was evaluated on two major benchmarks: IWSLT 2014 German-English (De-En) and NIST Chinese-English (Zh-En).

  • German-English: MLRF achieved an improvement of 0.92 BLEU points over a strong Transformer baseline, setting a new state-of-the-art for the IWSLT task at the time.
  • Chinese-English: The method yielded a 0.56 BLEU point improvement, demonstrating its effectiveness on larger datasets.

Analysis revealed that MLRF acts as an implicit regularizer, reducing the gap between training and validation accuracy. Furthermore, visualization showed that "simpler" words (like nouns) often rely more on lower-level representations, while complex structural transitions require the high-level abstractions of the top layers.

Conclusion

Multi-layer Representation Fusion demonstrates that the top layer of a deep NMT model is not always sufficient for optimal translation. By providing the model with direct access to all layers of abstraction, MLRF improves both optimization and representation quality with minimal computational overhead.

Summary updated

BibTeX
@inproceedings{wang2018multi,
  author = {Qiang Wang and Fuxue Li and Tong Xiao and Yanyang Li and Yinqiao Li and Jingbo Zhu},
  title = {{Multi-layer Representation Fusion for Neural Machine Translation}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2018},
  url = {https://openreview.net/forum?id=2Pse2TtpLyi},
}
Figure