[Paper Review] Double Path Networks for Sequence to Sequence Learning
This paper proposes Double Path Networks for Sequence-to-Sequence learning (DPN-S2S), which jointly leverages convolutional neural networks (CNN) for local feature extraction and self-attention networks (SAN) for global semantic modeling via a dual-path encoder and a cross-attention gating mechanism in the decoder. The model achieves state-of-the-art performance on machine translation and text summarization tasks, outperforming both CNN-only and SAN-only baselines by 0.46–2.96 BLEU and 0.74–0.99 BLEU, respectively.
Encoder-decoder based Sequence to Sequence learning (S2S) has made remarkable progress in recent years. Different network architectures have been used in the encoder/decoder. Among them, Convolutional Neural Networks (CNN) and Self Attention Networks (SAN) are the prominent ones. The two architectures achieve similar performances but use very different ways to encode and decode context: CNN use convolutional layers to focus on the local connectivity of the sequence, while SAN uses self-attention layers to focus on global semantics. In this work we propose Double Path Networks for Sequence to Sequence learning (DPN-S2S), which leverage the advantages of both models by using double path information fusion. During the encoding step, we develop a double path architecture to maintain the information coming from different paths with convolutional layers and self-attention layers separately. To effectively use the encoded context, we develop a cross attention module with gating and use it to automatically pick up the information needed during the decoding step. By deeply integrating the two paths with cross attention, both types of information are combined and well exploited. Experiments show that our proposed method can significantly improve the performance of sequence to sequence learning over state-of-the-art systems.
Motivation & Objective
- To address the limitation of single-path models in capturing both local and global sequence dependencies in sequence-to-sequence learning.
- To explore the integration of CNN and self-attention mechanisms to improve modeling capacity without increasing model complexity.
- To design a dual-path architecture that maintains separate representations from CNN and SAN paths during encoding and decoding.
- To develop a cross-attention mechanism with gating to dynamically select and fuse relevant information from both paths during decoding.
- To empirically validate the effectiveness of both CNN and SAN paths in both encoder and decoder components.
Proposed method
- The encoder employs two parallel paths: one using convolutional layers to capture local sequence connectivity, and another using self-attention layers to model global semantic relationships.
- Each path in the encoder independently encodes the source sequence, preserving distinct representations of local and global context.
- The decoder uses a cross-attention module with learnable gating to dynamically attend to and fuse features from both the CNN and SAN paths in the encoder.
- The gating mechanism allows the decoder to automatically weigh which path's representation is more relevant for generating each target token.
- The model is trained end-to-end using standard sequence-to-sequence objectives, with no recurrence, enabling efficient parallelization.
- The architecture is evaluated on machine translation (NIST, IWSLT14) and text summarization (Gigaword) benchmarks.
Experimental results
Research questions
- RQ1Can combining CNN and self-attention pathways improve sequence-to-sequence modeling beyond single-path architectures?
- RQ2How do the local and global representations from CNN and SAN paths contribute differently to the final output?
- RQ3Can a cross-attention mechanism with gating effectively fuse dual-path representations during decoding?
- RQ4Is the performance gain due to the complementary nature of CNN and SAN, or is it due to increased model capacity?
- RQ5What is the relative contribution of each path in both the encoder and decoder to the overall model performance?
Key findings
- On the NIST Chinese-English translation task, DPN-S2S outperforms the CNN-based baseline by 0.46–2.96 BLEU and the SAN-based baseline by 0.74–0.99 BLEU across different test sets.
- The model achieves state-of-the-art BLEU and ROUGE scores on the IWSLT14 German-English translation and English Gigaword text summarization tasks.
- Ablation studies confirm that removing either the CNN or SAN path in the encoder or decoder leads to a performance drop, demonstrating the necessity of both paths.
- Attention visualization shows that CNN-based attention heads have higher entropy (more distributed attention), while SAN-based heads have lower entropy (more focused), confirming their distinct roles.
- Case studies show that DPN-S2S successfully combines local details (from CNN path) and global coherence (from SAN path), producing more accurate translations than either single-path model.
- The cross-attention gating mechanism enables effective fusion of dual-path features, with the decoder dynamically selecting the most relevant context from both 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.