State Spaces Aren't Enough: Machine Translation Needs Attention

Ali Vardasbi, Telmo Pessoa Pires, Robin M. Schmidt, Stephan Peitz
4/25/2023
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

Structured State Spaces for Sequences (S4) is a recently proposed sequence model with successful applications in various tasks, e.g. vision, language modeling, and audio. Thanks to its mathematical formulation, it compresses its input to a single hidden state, and is able to capture long range dependencies while avoiding the need for an attention mechanism. In this work, we apply S4 to Machine Translation (MT), and evaluate several encoder-decoder variants on WMT'14 and WMT'16. In contrast with the success in language modeling, we find that S4 lags behind the Transformer by approximately 4 BLEU points, and that it counter-intuitively struggles with long sentences. Finally, we show that this gap is caused by S4's inability to summarize the full source sentence in a single hidden state, and show that we can close the gap by introducing an attention mechanism.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{vardasbi2023state,
  title  = {State Spaces Aren't Enough: Machine Translation Needs Attention},
  author = {Ali Vardasbi and Telmo Pessoa Pires and Robin M. Schmidt and Stephan Peitz},
  year   = {2023},
  eprint = {2304.12776},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.12776v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2304.12776.svg)](https://codeofpaper.com/paper/2304.12776)

Discussion