Skip to main content
QUICK REVIEW

[Paper Review] Convolutional Self-Attention Network

Baosong Yang, Longyue Wang|arXiv (Cornell University)|Oct 31, 2018
Neural Networks and ApplicationsComputer Science8 citations
TL;DR

This paper proposes a Convolutional Self-Attention Network (CSAN) that enhances self-attention networks by capturing local neighborhood dependencies and modeling interactions between multiple attention heads, without adding any new parameters. On the WMT14 English-to-German translation task, CSAN outperforms both the Transformer baseline and prior methods focused on improving locality in self-attention.

ABSTRACT

Self-attention network (SAN) has recently attracted increasing interest due to its fully parallelized computation and flexibility in modeling dependencies. It can be further enhanced with multi-headed attention mechanism by allowing the model to jointly attend to information from different representation subspaces at different positions (Vaswani et al., 2017). In this work, we propose a novel convolutional self-attention network (CSAN), which offers SAN the abilities to 1) capture neighboring dependencies, and 2) model the interaction between multiple attention heads. Experimental results on WMT14 English-to-German translation task demonstrate that the proposed approach outperforms both the strong Transformer baseline and other existing works on enhancing the locality of SAN. Comparing with previous work, our model does not introduce any new parameters.

Motivation & Objective

  • To improve the modeling of local dependencies in self-attention networks, which are typically limited to global, non-local attention patterns.
  • To enable interaction between multiple attention heads in a self-attention mechanism without introducing additional learnable parameters.
  • To enhance the representational capacity of self-attention networks while maintaining computational efficiency and parameter efficiency.
  • To achieve better performance on sequence modeling tasks, particularly neural machine translation, by integrating local inductive bias into the self-attention mechanism.

Proposed method

  • Integrates a convolutional module into the self-attention mechanism to explicitly model local spatial dependencies between neighboring tokens.
  • Modifies the scaled dot-product attention mechanism to incorporate local context via convolutional operations applied to query, key, and value representations.
  • Enables interaction between multiple attention heads by allowing feature maps from different heads to be concatenated and processed through a shared convolutional layer.
  • Maintains the original parameter count of the self-attention mechanism by reusing existing parameters and avoiding additional linear projections or attention heads.
  • Applies depthwise separable convolutions to preserve computational efficiency while capturing local patterns in the attention space.
  • Uses a residual connection structure to stabilize training and preserve gradient flow in the enhanced attention module.

Experimental results

Research questions

  • RQ1Can local inductive bias be effectively integrated into self-attention networks without increasing model parameters?
  • RQ2How does modeling interactions between multiple attention heads improve performance on sequence modeling tasks?
  • RQ3Does the proposed convolutional self-attention mechanism outperform standard self-attention and existing locality-enhanced variants on machine translation benchmarks?
  • RQ4To what extent does the integration of convolutional operations improve the modeling of sequential dependencies in attention mechanisms?

Key findings

  • The proposed CSAN model achieves superior performance on the WMT14 English-to-German translation task compared to the standard Transformer baseline.
  • CSAN outperforms other existing methods that aim to improve locality in self-attention networks, demonstrating stronger modeling capacity for local dependencies.
  • The model maintains the same number of parameters as the original Transformer, indicating that performance gains are achieved without architectural parameter inflation.
  • The integration of convolutional operations enhances attention patterns by capturing neighboring token interactions, leading to more coherent and contextually accurate predictions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.