Skip to main content
QUICK REVIEW

[Paper Review] Convolutional Self-Attention Networks

Baosong Yang, Longyue Wang|arXiv (Cornell University)|Apr 5, 2019
Topic ModelingComputer Science28 references19 citations
TL;DR

This paper proposes Convolutional Self-Attention Networks (CSANs), a parameter-free method that enhances self-attention mechanisms by introducing 1D and 2D convolutions to model local dependencies and feature interactions across attention heads. The approach improves translation performance across multiple language pairs, outperforming the Transformer baseline and existing locality-enhancing models without adding parameters.

ABSTRACT

Self-attention networks (SANs) have drawn increasing interest due to their high parallelization in computation and flexibility in modeling dependencies. SANs can be further enhanced with multi-head attention by allowing the model to attend to information from different representation subspaces. In this work, we propose novel convolutional self-attention networks, which offer SANs the abilities to 1) strengthen dependencies among neighboring elements, and 2) model the interaction between features extracted by multiple attention heads. Experimental results of machine translation on different language pairs and model settings show that our approach outperforms both the strong Transformer baseline and other existing models on enhancing the locality of SANs. Comparing with prior studies, the proposed model is parameter free in terms of introducing no more parameters.

Motivation & Objective

  • To address the limitation of self-attention networks in capturing local dependencies and phrasal patterns due to global attention distribution.
  • To enable interaction between features learned by different multi-head attention subspaces without introducing additional parameters.
  • To improve translation quality and training efficiency by modeling local context through dynamic convolutional attention.
  • To validate the universality and effectiveness of the proposed method across diverse language pairs and model architectures.

Proposed method

  • Introduces 1D convolution to restrict attention scope to a local window of neighboring tokens, enhancing locality modeling in self-attention.
  • Applies 2D convolution across both token positions and attention head subspaces to allow dynamic interaction between features from adjacent heads.
  • Uses parameter-free convolutions to maintain computational efficiency and avoid increasing model parameters.
  • Integrates the convolutional attention mechanism within the standard multi-head self-attention framework, replacing standard attention computation with localized and cross-head-aware operations.
  • Employs a window-based attention mechanism where each query attends only to a fixed-size local context, controlled by the convolution kernel size.
  • Extends the attention mechanism to operate on a 2D grid of (token position, head index), enabling feature interaction across attention heads during attention computation.

Experimental results

Research questions

  • RQ1Can local attention modeling improve the performance of self-attention networks in sequence modeling tasks?
  • RQ2Does dynamic convolutional interaction between attention heads enhance feature representation beyond independent multi-head attention?
  • RQ3Can locality modeling be achieved without introducing additional trainable parameters?
  • RQ4How does the proposed method compare to existing approaches in terms of translation quality and training efficiency?
  • RQ5Is the proposed model universally effective across diverse language pairs and model configurations?

Key findings

  • The 1D-Convolutional SAN (1D-CSAN) with a window size of 11 achieves the best performance on the WMT14 En→De validation set, outperforming other window sizes.
  • The 2D-Convolutional SAN (2D-CSAN) further improves translation quality by enabling feature interaction across attention heads, especially when the number of heads is moderate.
  • The proposed model consistently improves BLEU scores across three machine translation tasks: WMT14 En→De, WMT17 Zh→En, and WAT17 Ja→En, demonstrating its universality.
  • 2D-CSAN with base settings achieves performance comparable to the larger Transformer-Big model, indicating strong efficiency and scalability.
  • The model improves phrase-level translation accuracy, particularly for larger n-grams, confirming its effectiveness in capturing phrasal patterns.
  • The proposed method outperforms existing models such as CNN-based local attention and other parameter-increasing approaches, while remaining parameter-free and efficient.

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.