[Paper Review] Modeling Recurrence for Transformer
This paper proposes enhancing the Transformer model with an additional recurrence encoder to address its lack of recurrence, which hinders translation performance. By integrating either a standard RNN or a novel attentive recurrent network (ARN), the model improves translation quality on WMT14 and WMT17 benchmarks, with the shallow ARN variant outperforming deeper counterparts and showing stronger syntactic representation learning.
Recently, the Transformer model that is based solely on attention mechanisms, has advanced the state-of-the-art on various machine translation tasks. However, recent studies reveal that the lack of recurrence hinders its further improvement of translation capacity. In response to this problem, we propose to directly model recurrence for Transformer with an additional recurrence encoder. In addition to the standard recurrent neural network, we introduce a novel attentive recurrent network to leverage the strengths of both attention and recurrent networks. Experimental results on the widely-used WMT14 English-German and WMT17 Chinese-English translation tasks demonstrate the effectiveness of the proposed approach. Our studies also reveal that the proposed model benefits from a short-cut that bridges the source and target sequences with a single recurrent layer, which outperforms its deep counterpart.
Motivation & Objective
- To address the limitation of the Transformer model in capturing sequential dependencies due to its lack of recurrence.
- To improve translation performance by incorporating recurrence into the Transformer architecture.
- To investigate whether a novel attentive recurrent network (ARN) can better combine attention and recurrence than standard RNNs.
- To evaluate the impact of recurrence encoder depth and integration strategies on model performance.
- To analyze whether the proposed model learns more informative representations, especially for syntactic structures.
Proposed method
- Introduce an additional recurrence encoder that processes input word embeddings sequentially to produce hidden state sequences.
- Implement the recurrence encoder using both standard RNNs and a novel attentive recurrent network (ARN), which revises representations over attention-extracted feature vectors.
- Feed the recurrence encoder's output to the Transformer decoder via residual connections, with integration strategies varying in depth and layer connectivity.
- Use a gated fusion mechanism to combine representations from the standard Transformer encoder and the recurrence encoder for probing tasks.
- Train the model on WMT14 English→German and WMT17 Chinese→English translation tasks with standard Transformer training protocols.
- Conduct linguistic probing tasks to evaluate syntactic and semantic representation quality of the learned encoder outputs.
Experimental results
Research questions
- RQ1Does adding a recurrence encoder improve translation performance in the Transformer model?
- RQ2Does the proposed attentive recurrent network (ARN) outperform standard RNNs in modeling recurrence within the Transformer?
- RQ3How does the depth of the recurrence encoder affect model performance?
- RQ4What is the impact of different integration strategies (e.g., single-layer vs. deep, top-layer vs. all-layer feeding) on translation quality?
- RQ5Do the representations from the recurrence encoder capture more informative linguistic features, especially syntactic structures?
Key findings
- The proposed model with a recurrence encoder consistently improves BLEU scores on both WMT14 English→German and WMT17 Chinese→English translation tasks.
- The single-layer ARN implementation outperforms deeper ARN and RNN variants, indicating that shallow recurrence structures are more effective.
- The shortest-path integration strategy—where the recurrence encoder output is fed only to the top decoder layer—achieves the best performance, outperforming deeper and wider integration schemes.
- Linguistic probing tasks show that the proposed model, especially with ARN, significantly improves accuracy on syntactic structure tasks such as 'TrDep' and 'Toco'.
- The 1-layer ARN variant improves surface-level probing tasks like 'WC' and 'SoMo', indicating better word-level and semantic representation learning.
- The model with ARN achieves higher accuracy than the baseline Transformer across all probing tasks, confirming more informative and structured representations.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.