Research map / Architectures and efficiency / Attention and transformers
Linear-Time and Constant-Memory Text Embeddings Based on Recurrent Language Models
Tobias Grantner, Emanuel Sallinger, Martin Flechl
Dynatrace Research · University of Oxford · TU Wien
Read the paperPlace an idea next to itCheck your own paper ↗
8measured effects
5improved
1no clear effect
1hurt
1mixed
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| fine-tune Codestral Mamba2 7B instead of Mistral 7B v0.1 | embedding fine-tuning recipe · MTEB(Multilingual, v2) | mean task score: bitext +2.0, reranking +4.8, retrieval +1.9 points | Improved |
| use Mamba2-based models instead of transformers | embedding fine-tuning recipe · MTEB(eng, v2) | mean task score: retrieval -6.5 points; 1-2 points lower overall | Hurt |
| use Mamba2-based models instead of transformers | embedding fine-tuning recipe · LongEmbed | retrieval score: within 0.2 points for similar-size models | No clear effect |
| raise learning rate for Mamba2 1.3B (ablation) | Mamba2 1.3B · MTEB(eng, v2) | mean score | Improved |
| increase vertical chunk size V up to 4096 (batch 1) (ablation) | vertically chunked inference, Codestral Mamba2 7B · runtime on H100 | runtime: converges to horizontal runtime at V = 4096 | Improved |
| vary intra-layer chunk size Q (ablation) | Codestral Mamba2 7B horizontal inference · runtime, batch 1 and 128 | runtime: Q = 256 best | Mixed |
| use vertically chunked inference in Mamba2, RWKV7 and xLSTM | recurrent embedding models · memory vs input length | memory | Improved |
| use Codestral Mamba2 7B instead of Mistral 7B v0.3 | single-sequence embedding inference · inputs beyond 4096 tokens | runtime and memory | Improved |
Open problems in state space and recurrent sequence models
Do state space and recurrent models keep their efficiency and recall at large scale and long context?
- Experiments stop at small models, around 1.3B parameters or less. · 24 papers state it
- Theory covers simplified models, not the architectures used in practice. · 13 papers state it
- Kernels are naive or unoptimized, so speed gains are not realized. · 10 papers state it
Closest papers by meaning
- Repetition Improves Language Model Embeddings (ICLR 2025 · similarity 0.90)
- Repurposing Language Models into Embedding Models: Finding the Compute-Optimal Recipe (NeurIPS 2024 · similarity 0.89)
- Beyond Attention: Breaking the Limits of Transformer Context Length with Recurrent Memory (AAAI 2024 · similarity 0.88)
- Compress, Gather, and Recompute: REFORMing Long-Context Processing in Transformers (NeurIPS 2025 · similarity 0.87)
- Scaling Embedding Layers in Language Models (NeurIPS 2025 · similarity 0.87)
- EmbedLLM: Learning Compact Representations of Large Language Models (ICLR 2025 · similarity 0.87)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.