atlas

Research map / Architectures and efficiency / Attention and transformers

Mamba Modulation: On the Length Generalization of Mamba Models

NeurIPS 2025 · Architectures and efficiency › Attention and transformers · approach: Mamba architectures · 2 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Analyzes why pre-trained Mamba models fail at long contexts via the spectrum of the state transition matrix A, and proposes training-free-style calibrated scaling of A (instead of Delta) per layer to improve length generalization.

Problem

Mamba and Mamba2 language models degrade sharply when evaluated on contexts longer than their pre-training length; prior fixes focus on discretization steps Delta, lacking a principled explanation.

Approach

Connects the asymptotic state norm behavior as input length grows to the eigenvalue spectrum of the transition matrix A, and proposes spectrum scaling of A (per-layer scaling factors calibrated with zeroth-order optimization) as more effective than scaling Delta.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Calibrate per-layer scaling factors for A instead of Δtmamba2-2.7b · LongBenchAverage: 13.60 -> 14.98Helped
Calibrate per-layer scaling factors for A instead of leaving the model unmodifiedmamba2-2.7b · LongBenchAverage: 8.75 -> 14.98Helped
Calibrate per-layer scaling factors for Amamba-1.4b · PG19 64Kperplexity: 444.09 -> 19.13Helped
Calibrate per-layer scaling factors for A instead of Δtmamba-1.4b · PG19 64Kperplexity: 1648.0 -> 19.13Helped
Use one constant A scaling factor across layers instead of calibrated per-layer factors (ablation)mamba-1.4b · PG19 64Kperplexity: 19.13 -> 114.44Hurt
Calibrate per-layer scaling factors for Amamba-2.8b · PG19 64Kperplexity: 508.88 -> 40.00Helped
Calibrate per-layer scaling factors for A instead of Δtmamba-2.8b · PG19 64Kperplexity: 60.00 -> 40.00Helped
Use one constant A scaling factor across layers instead of calibrated per-layer factors (ablation)mamba-2.8b · PG19 64Kperplexity: 40.00 -> 355.77Hurt
Calibrate per-layer scaling factors for Amamba2-1.3b · PG19 64Kperplexity: 1479.45 -> 4.72Helped
Calibrate per-layer scaling factors for A instead of Δtmamba2-1.3b · PG19 64Kperplexity: 27.50 -> 4.72Helped
Use one constant A scaling factor across layers instead of calibrated per-layer factors (ablation)mamba2-1.3b · PG19 64Kperplexity: 4.72 -> 13.22Hurt
Calibrate per-layer scaling factors for A rather than ΔtMamba and Mamba2 models · Passkey Retrievalsolved length/depth pairsMixed

Surprising findings

Limitations

Experimental setup

Datasets: ProofPile PG19 GovReport Pile WikiText-103 LongBench

Benchmarks: ProofPile PG19 GovReport Passkey Retrieval LongBench

Metrics: perplexity passkey retrieval accuracy LongBench F1/accuracy/edit similarity

Baselines: MambaExtend DeciMamba LongMamba Constant Scaling A Base Model

Builds on: Mamba Mamba2 MambaExtend SPSA

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy