Introduction
Neural Machine Translation (NMT) has seen significant advancements with the adoption of attention mechanisms. However, most standard NMT decoders, particularly those based on Recurrent Neural Networks (RNNs), suffer from a fundamental limitation: they are "short-sighted." While the encoder typically maintains a global view of the source sentence, the decoder relies on a fixed-length hidden state to summarize the entire translation history. This creates a bottleneck that hinders the model's ability to learn long-term dependencies and leads to a "recency bias," where the model prioritizes the most recent inputs at the expense of earlier context.
This paper introduces a self-attentive residual decoder designed to break this bias. By replacing the traditional single skip connection of the previous word with a summary vector of all previously translated words—calculated via self-attention—the model gains access to a significantly wider target-side context.
Methods: Densely Connected Residual Networks
The core innovation is the implementation of a "densely connected residual network" for the decoder. In a standard NMT architecture, the prediction for the next word is primarily influenced by the hidden state and a skip connection from the immediately preceding word ($y_{t-1}$).
The authors propose replacing this single-word connection with a summary vector ($d_t$) that represents the entire decoded history ($y_0$ to $y_{t-1}$). They explored two primary methods for constructing this summary:
- Mean Residual Connections: A simple average of all previous word embeddings. Despite its simplicity, this "bag of words" approach provides a baseline improvement over standard models.
- Self-Attentive Residual Connections: A more sophisticated weighted average where weights are determined by a self-attention mechanism. This allows the model to dynamically select which previous words are most relevant to the current prediction.
Through empirical testing, the authors found that a "content-based" scoring function—which looks only at word embeddings—was more efficient and effective than a "content+scope" approach that included the current hidden state.
Key Insights: Overcoming Recency Bias
A critical finding of the study is the model's ability to mitigate recency bias. In standard Memory RNNs, attention is heavily concentrated on the most recent word (the -1 position). In contrast, the self-attentive residual connection distributes attention more broadly across the history, allowing the decoder to maintain a more stable and comprehensive context.
Beyond performance metrics, the self-attention mechanism demonstrated a remarkable ability to discover syntactic structures. By visualizing attention weights, the authors were able to extract binary parse trees. These trees achieved 56% precision when compared to a formal constituent parser, despite the model never being trained on linguistic labels. This suggests that the self-attentive decoder naturally learns to organize information hierarchically.
Experimental Results
The proposed model was evaluated across three diverse language pairs:
- English-to-Chinese (En-Zh): Improved BLEU from 22.6 to 24.0 (+1.4).
- Spanish-to-English (Es-En): Improved BLEU from 25.4 to 26.3 (+0.9).
- English-to-German (En-De): Achieved significant gains on Newstest 2014 and 2015, outperforming several state-of-the-art context-aware and variational NMT models.
Human evaluations mirrored these quantitative gains. In side-by-side rankings, evaluators preferred the self-attentive model over the baseline in approximately 30% of cases, while the baseline was preferred in only 14% of cases on average.
Conclusion and Efficiency
The self-attentive residual decoder offers a powerful yet efficient upgrade to NMT architectures. It adds minimal parameters (~0.2M to a 108M parameter model) and introduces only a small computational overhead. By attending directly to output embeddings rather than internal hidden states, the model creates a robust memory mechanism that is independent of the recurrent layer's internal representations. Future work may further enhance this approach by incorporating explicit positional encoding and exploring key-value prediction techniques.
Summary updated