Exploiting Deep Representations for Neural Machine Translation

Zi-Yi Dou, Zhaopeng Tu, Xing Wang, Shuming Shi, Tong Zhang

Abstract

Standard Neural Machine Translation (NMT) models like the Transformer are deep, yet they typically only pass the representation from the very last layer to the next stage of the pipeline. This paper introduces layer aggregation and multi-layer attention mechanisms to "un-bottle" these models, allowing every layer to contribute to the final translation. By fusing these deep representations and encouraging layer diversity, the authors achieve state-of-the-art results, even enabling a "Base" model to outperform a much larger "Big" model.

Introduction

In modern NMT, architectures like the Transformer stack multiple layers (typically 6 or more) to construct encoders and decoders. Research indicates these layers are not redundant: lower layers capture local syntax, while higher layers capture global, abstract semantics.

However, standard architectures suffer from a "top-layer bottleneck." The encoder only passes its final layer to the decoder, and the decoder only uses its final layer to predict the next token. This ignores the rich linguistic information in intermediate layers. While residual connections exist, they are often insufficient to effectively fuse the complex features learned across the entire stack.

Proposed Methods

The authors propose three main strategies to exploit these hidden "deep representations":

1. Layer Aggregation

Instead of relying solely on the top layer, the model combines all layers into a single representation. Several aggregation flavors are explored to determine the most effective way to integrate information from different depths.

Comparison of layer aggregation strategies: (a) Vanilla, (b) Dense, (c) Linear, and (d) Iterative.
  • Linear: A simple weighted sum of all layers.
  • Iterative: Layers are merged step-by-step (e.g., Layer 1 + Layer 2, then the result + Layer 3).
  • Hierarchical/Dense: More complex structures that preserve feature channels through progressive merging or dense connectivity.

2. Multi-layer Attention

In a standard Transformer, a layer's self-attention only observes the output of the immediately preceding layer. The authors modify this so each layer can simultaneously attend to multiple previous layers, facilitating more powerful information flow throughout the network.

3. Layer Diversity Regularization

To prevent layers from learning redundant information, an auxiliary loss function using cosine-squared distance is introduced. This encourages adjacent layers to be mathematically independent, ensuring the fused representation contains diverse linguistic information.

Experimental Results

The approach was evaluated on WMT14 English-German (~4.56M pairs) and WMT17 Chinese-English (~20.62M pairs) using Transformer Base and Big configurations.

Key Performance Metrics

  • BLEU Improvements: On WMT14 En-De, the best model (Hierarchical Aggregation + Diversity) improved the baseline by +1.14 BLEU points.
  • State-of-the-Art: The "Deep Representation" Big model achieved 29.21 BLEU on En-De and 25.10 BLEU on Zh-En.
  • Parameter Efficiency: A Transformer-Base model (88M parameters) with deep representations achieved 28.78 BLEU on En-De, outperforming the vanilla Transformer-Big (213M parameters, 28.4 BLEU).

Discussion and Insights

Visualization of aggregation weights confirms that the system often relies more on bottom layers than top layers, validating that the "top-only" approach misses vital information. Furthermore, deep aggregation methods (Iterative/Hierarchical) significantly outperform simple linear combinations by introducing additional non-linearities and depth to the fusion process.

However, there are trade-offs. Multi-layer attention increases computational overhead, slowing decoding speed by approximately 21%. Additionally, for very long sentences (>45 words), diversity regularization slightly degraded performance, suggesting that complex contexts might benefit from some redundancy across layers to maintain stability.

Conclusion

Exploiting deep representations allows NMT models to move beyond the top-layer bottleneck. By aggregating information across all layers and enforcing diversity, models can achieve higher accuracy with significantly fewer parameters, offering a more efficient path to scaling performance than simply increasing model width or depth.

Summary updated

BibTeX
@inproceedings{dou2018exploiting,
  author = {Zi-Yi Dou and Zhaopeng Tu and Xing Wang and Shuming Shi and Tong Zhang},
  title = {{Exploiting Deep Representations for Neural Machine Translation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2018},
  doi = {10.18653/v1/d18-1457},
}
Figure