CLJul 7, 2024

How Effective are State Space Models for Machine Translation?

arXiv:2407.05489v124 citationsh-index: 5
Originality Incremental advance
AI Analysis

This addresses the scalability issue of transformers for long contexts in machine translation, offering a potentially more efficient alternative, though it is incremental as it builds on existing SSM methods.

The paper investigates whether state space models (SSMs) like Mamba can compete with transformers in machine translation, finding that Mamba is highly competitive on sentence and paragraph-level datasets, with hybrid versions incorporating attention improving translation quality, robustness, and entity recall.

Transformers are the current architecture of choice for NLP, but their attention layers do not scale well to long contexts. Recent works propose to replace attention with linear recurrent layers -- this is the case for state space models, which enjoy efficient training and inference. However, it remains unclear whether these models are competitive with transformers in machine translation (MT). In this paper, we provide a rigorous and comprehensive experimental comparison between transformers and linear recurrent models for MT. Concretely, we experiment with RetNet, Mamba, and hybrid versions of Mamba which incorporate attention mechanisms. Our findings demonstrate that Mamba is highly competitive with transformers on sentence and paragraph-level datasets, where in the latter both models benefit from shifting the training distribution towards longer sequences. Further analysis show that integrating attention into Mamba improves translation quality, robustness to sequence length extrapolation, and the ability to recall named entities.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes