Multi-layer Representation Fusion for Neural Machine Translation

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

TL;DR

Deep Neural Machine Translation (NMT) models typically rely solely on the final layer for word prediction, effectively discarding rich features captured in lower layers. This paper introduces Multi-layer Representation Fusion (MLRF), a technique that aggregates information from all layers in a stack—using methods like multi-hop self-attention—to improve translation quality and training stability, achieving new state-of-the-art results on German-English benchmarks.

What Problem Does This Paper Address?

Modern NMT systems, like the Transformer, achieve high performance by stacking many layers to learn complex language representations. However, this "stacking" approach has two major drawbacks:

  1. Information Loss: The final prediction layer only sees the output of the very top layer. As information flows upward, the network may "forget" useful low-level features (like basic syntactic structures or specific word meanings) that were captured earlier.
  2. Training Bottlenecks: In very deep networks, it is difficult for gradients to flow back to the bottom layers. While residual connections (shortcuts) help, the bottom layers still lack a direct path to influence the final prediction, making them harder to optimize.

Methods

The authors propose Multi-layer Representation Fusion (MLRF). Instead of a linear stack where only the last layer connects to the output, MLRF introduces a fusion layer that acts as a "collector" for every layer in the stack.

Figure 1: Network Architectures. Dotted lines denote multi-layer fusion connections. Green rectangles denote the representations used in the downstream components.

They explore three specific fusion functions $\phi(Z)$:

  • Average Pooling: A simple, non-parametric approach that gives equal weight to every layer.
  • Feed-forward Neural Network (FNN): Concatenates all layer outputs and passes them through a non-linear hidden layer to learn a weighted combination.
  • Multi-hop Self-Attention: The most sophisticated method. It treats the stack of layers as a sequence and uses attention to decide which layers are most relevant for a given prediction. By using multiple "hops," the model can extract different aspects of the sentence representation simultaneously, creating a 2D matrix of features. To maintain the sense of hierarchy, the authors inject layer embeddings (similar to positional embeddings) into each layer's representation before fusion.
Figure 2: An example of 3-layer representation fusion based on self-attention with 5 hops.

Datasets

The models were evaluated on two widely recognized translation tasks:

  • IWSLT 2014 German-English (De-En): A smaller dataset (~160K sentence pairs) used to test the model's efficiency and regularization capabilities.
  • NIST Chinese-English (Zh-En): A larger-scale task (~1.85M sentence pairs) to evaluate performance on complex, high-resource translation.

Key Insights and Ideas

  • Densely Connected NMT: MLRF is conceptually similar to DenseNet in computer vision. By creating direct paths from every layer to the output, the model ensures that no information is lost due to depth.
  • Decoder Fusion is King: The authors found that fusing layers in the decoder is significantly more effective than in the encoder. This is likely because the decoder's fusion layer is "closer" to the final word prediction, allowing low-level features to have a more immediate impact on the output.
  • Implicit Regularization: One of the most surprising findings was that MLRF reduces overfitting. Standard deep models often show a large gap between training and validation accuracy; MLRF narrows this gap, acting as a structural regularizer.
  • The Importance of "Hops": In the self-attention fusion, using only one hop (a 1D representation) leads to a dramatic drop in performance. The model needs multiple hops to capture the multi-faceted nature of the stacked representations.

Key Results

  • New State-of-the-Art: On the IWSLT German-English task, the MLRF system achieved 33.59 BLEU, an improvement of 0.92 points over a strong Transformer baseline and a new record for this benchmark.
  • Consistent Gains: On NIST Chinese-English, the approach yielded a 0.56 BLEU point improvement.
  • Optimal Complexity: For the multi-hop attention mechanism, performance peaked between 6 and 10 hops. Beyond that, redundant information led to diminishing returns.
Figure 3: BLEU scores under various attention hops in Dec-SA on German-English translation. Dashed lines denotes the baseline.

Limitations and Future Work

  • Computational Overhead: Adding fusion layers increases the parameter count and slightly slows down training (e.g., from 2.6 to 2.4 batches per second in the Chinese-English task).
  • Optimization Challenges in Very Deep Models: In the 6-layer Chinese-English model, the authors noted that complex non-linear fusion (like FNN or SA) was sometimes harder to optimize than simple average pooling. They suggest that as networks get even deeper, the design of the fusion function becomes a critical bottleneck.
  • Future Direction: The authors suggest exploring more sophisticated ways to perceive the "temporal" (depth-wise) order of layers beyond simple embeddings.

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