Skip to main content
QUICK REVIEW

[Paper Review] Joint Source-Target Self Attention with Locality Constraints

José A. R. Fonollosa, Noé Casas|arXiv (Cornell University)|May 16, 2019
Natural Language Processing TechniquesComputer Science19 references19 citations
TL;DR

This paper proposes a joint source-target self-attention transformer architecture with localized attention windows, eliminating the need for separate encoder-decoder components. By training on concatenated source and target sequences as a causal language model with constrained receptive fields, the model achieves a new state of the art of 35.7 BLEU on IWSLT’14 German-English, outperforming prior methods by at least 0.5 BLEU points.

ABSTRACT

The dominant neural machine translation models are based on the encoder-decoder structure, and many of them rely on an unconstrained receptive field over source and target sequences. In this paper we study a new architecture that breaks with both conventions. Our simplified architecture consists in the decoder part of a transformer model, based on self-attention, but with locality constraints applied on the attention receptive field. As input for training, both source and target sentences are fed to the network, which is trained as a language model. At inference time, the target tokens are predicted autoregressively starting with the source sequence as previous tokens. The proposed model achieves a new state of the art of 35.7 BLEU on IWSLT'14 German-English and matches the best reported results in the literature on the WMT'14 English-German and WMT'14 English-French translation benchmarks.

Motivation & Objective

  • To explore a simplified neural machine translation architecture that merges encoder and decoder into a single transformer decoder block.
  • To investigate whether applying locality constraints to self-attention improves translation performance while maintaining joint source-target representation learning.
  • To evaluate whether a joint source-target self-attention model can surpass existing SOTA results without explicit encoder-decoder attention mechanisms.
  • To determine if localized attention windows enhance generalization and efficiency in low-resource translation settings like IWSLT’14.
  • To validate the effectiveness of joint representations learned from concatenated source and target sequences using only self-attention with causal masking.

Proposed method

  • The model uses a standard transformer decoder architecture with multi-head self-attention, but applies locality constraints to limit the receptive field of attention to a fixed window size per layer.
  • Source and target sequences are concatenated and fed into the model as a single input sequence, with separate positional embeddings and language-specific token embeddings for source and target segments.
  • The model is trained as a causal language model, autoregressively predicting target tokens conditioned on the full source sequence and previously generated target tokens.
  • Local attention is implemented by restricting each head’s attention to a sliding window of size w around each token, where window size increases progressively from input to output layers.
  • Positional embeddings are initialized with sinusoidal functions, and language embeddings are learned during training to distinguish source and target segments.
  • The architecture is trained end-to-end using the Adam optimizer with linear warmup and cosine learning rate scheduling, with batch sizes and training steps tuned per dataset.

Experimental results

Research questions

  • RQ1Can a joint source-target self-attention model without an explicit encoder-decoder structure achieve competitive or superior translation performance?
  • RQ2Does applying locality constraints to self-attention improve translation quality, especially in low-resource settings like IWSLT’14?
  • RQ3How does the performance of a localized joint self-attention model compare to the unconstrained version and to existing SOTA models on standard benchmarks?
  • RQ4To what extent do joint source-target representations learned from concatenated sequences improve generalization and model capacity?
  • RQ5Can the proposed architecture match or exceed the performance of state-of-the-art models like Dynamic Convolutions and Transformer variants on WMT benchmarks?

Key findings

  • The proposed local joint self-attention model achieves a new state of the art of 35.7 BLEU on the IWSLT’14 German-English translation benchmark, surpassing the previous best result by at least 0.5 BLEU points.
  • The model with locality constraints improves the unconstrained joint self-attention baseline by 0.4 BLEU points on IWSLT’14 de-en, demonstrating the benefit of localized attention in low-resource settings.
  • On the WMT’14 English-German benchmark, the model matches the best reported results in the literature, achieving a BLEU score of 28.5, consistent with prior SOTA models.
  • On WMT’14 English-French, the model achieves a new SOTA BLEU score of 43.3, outperforming previous results and matching the best reported scores from Wu et al. (2019) and Ott et al. (2018).
  • The locality constraints do not significantly improve performance on large-scale WMT benchmarks but provide a notable boost in low-resource settings, indicating a strong inductive bias for data-scarce scenarios.
  • The joint self-attention model without an explicit encoder-decoder structure achieves competitive performance, validating the effectiveness of joint source-target representation learning via self-attention.

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.