How Effective are State Space Models for Machine Translation?
Abstract
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.
Community
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- Sliding Window Attention Training for Efficient Large Language Models (2025)
- Adapting Decoder-Based Language Models for Diverse Encoder Downstream Tasks (2025)
- Multilingual State Space Models for Structured Question Answering in Indic Languages (2025)
- Llamba: Scaling Distilled Recurrent Models for Efficient Language Processing (2025)
- Plan2Align: Predictive Planning Based Test-Time Preference Alignment in Paragraph-Level Machine Translation (2025)
- Liger: Linearizing Large Language Models to Gated Recurrent Structures (2025)
- MAGNET: Augmenting Generative Decoders with Representation Learning and Infilling Capabilities (2025)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment:
@librarian-bot
recommend
Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper