Abstract
Multilingual Neural Machine Translation (NMT) models often struggle with zero-shot translation—translating between language pairs not seen during training. This paper identifies that the rigid positional mapping in standard Transformer encoders, where output representations are tied too closely to input token positions, is a primary bottleneck. By removing residual connections in a single middle encoder layer, the authors achieve significant improvements in zero-shot performance (up to 18.5 BLEU points) while maintaining high quality in supervised directions.
The Challenge of Zero-Shot Translation
Multilingual NMT aims to translate between many languages using a single model. Ideally, a model trained on English-French and English-Spanish should be able to translate French-Spanish (zero-shot). However, zero-shot performance is often poor, with models frequently "off-targeting" or failing to capture semantic meaning.
The authors argue this stems from the encoder's internal representations being too language-specific. Due to residual connections and self-attention, the encoder produces outputs strictly aligned with the source language's word order. This makes it difficult for the decoder to generalize to a "new" input language order it hasn't encountered.
Disentangling Position from Semantics
To address this, the authors propose architectural modifications to "disentangle" semantic meaning from specific word positions:
- Dropping Residual Connections: In a standard Transformer, residual connections ($x + \text{Sublayer}(x)$) enforce a one-to-one alignment. Removing the residual connection in exactly one middle encoder layer forces the model to re-calculate representations rather than passing through the original word order.
- Position-Based Self-Attention Query: Standard self-attention uses input data for queries ($Q$). Replacing these with fixed sinusoidal positional encodings encourages the model to attend to information relevant to an abstract position rather than a specific word.
- Variational Dropout: This acts as a regularizer to prevent over-reliance on specific word orders, particularly in low-resource settings.
Experimental Results
The approach was evaluated on IWSLT 2017, Europarl v7, and PMIndia datasets.
Massive Performance Gains
On the Europarl dataset with no overlapping language pairs, zero-shot BLEU scores jumped from 8.2 to 26.7—an 18.5 point improvement. For related languages, this direct zero-shot method even outperformed "pivoting" (translating through English), which is the standard high-quality baseline.
The "Middle Layer" Sweet Spot
The authors found that removing residuals in the middle layer is most effective. The first layers need position awareness to process the input, while the final layers are critical for training stability. The middle layer serves as a transition point where the model shifts from language-specific processing to a more language-agnostic "interlingua" representation.
Language Independence
Using SVCCA to measure similarity between neural network layers, the authors confirmed that the modified encoder produced representations significantly more similar across different input languages than the baseline. This suggests the model successfully learned to abstract away from language-specific syntax.
Conclusion
A simple architectural change—breaking the direct positional path in a middle encoder layer—can dramatically improve the zero-shot capabilities of multilingual NMT models. By forcing the model to move beyond a "copy-paste" habit of the source language structure, it learns more robust, semantic representations that generalize across language boundaries.
Summary updated