Introduction
Transformers have long served as the backbone of modern foundation models. However, their attention mechanism scales quadratically with sequence length, making long-context tasks computationally expensive. Recently, Mamba—an architecture based on State Space Models (SSMs)—has emerged as a promising alternative, processing sequences in linear time while matching or exceeding Transformer performance.
While the community has developed robust Parameter-Efficient Fine-Tuning (PEFT) methods (like LoRA and Prompt-tuning) to adapt massive pre-trained Transformers to downstream tasks, doing the same for Mamba remains largely unexplored. Because Mamba's architecture fundamentally differs from a Transformer's, it is unclear which existing PEFT methods work, how they should be applied, or if entirely new methods are required. This paper addresses this gap by systematically benchmarking existing techniques and designing novel PEFT methods specifically tailored for Mamba.
Adapting PEFT for the Mamba Architecture
The authors explore 20 variations across 7 main PEFT categories, systematically evaluating how to inject learnable parameters into the Mamba block without disrupting its pre-trained representations.
These approaches can be grouped into three main strategies:
1. Adapting Existing Methods
Techniques like ParallelAdapter and LoRA are applied directly to Mamba's linear layers. The authors systematically test LoRA on individual modules (e.g., embedding, in_proj, out_proj) to identify where low-rank adaptation is most effective within the SSM framework.
2. Re-designing Existing Methods
Because Mamba compresses diverse intermediate features into single linear layers, standard PEFT methods can sometimes cause model collapse.
- Partial LoRA: Instead of applying low-rank adaptation to the entire layer, Partial LoRA targets only specific output features, preserving the integrity of the compressed representations.
- Affix-tuning: Standard Prefix-tuning relies on Transformer Query/Key/Value matrices, which Mamba lacks. Affix-tuning instead adds learnable "soft tokens" right before the SSM block and discards them immediately after. This injects task-specific information without breaking the positional relationships inherent to time-series data.
3. New Mamba-Specific Methods
To fully leverage Mamba's unique design, the authors propose entirely new tuning mechanisms:
- Partial-tuning: This method fine-tunes specific low-degree-of-freedom parameters native to Mamba (such as the 1D causal convolution weights or SSM parameters $A$ and $D$). It uses a novel weight decay strategy that anchors these parameters to their pre-trained values, preventing catastrophic forgetting.
- Additional-scan: Because Mamba uses a diagonal SSM, the state dimension can be expanded. Additional-scan adds new dimensions to the SSM, allowing the model to store task-specific information without corrupting the pre-trained hidden state memory.
Finally, the authors introduce a Hybrid PEFT Search, a two-step optimization framework using the Tree-structured Parzen Estimator (TPE) to find the optimal combination of PEFT methods and hyperparameters without exploding the total parameter count.
Experimental Setup
The proposed methods were rigorously evaluated across two distinct domains:
- Computer Vision: Evaluated on the VTAB-1k benchmark, comprising 19 diverse image classification tasks (Natural, Specialized, and Structured domains) using 1,000 training images per task.
- Natural Language Processing: Evaluated on Commonsense Reasoning tasks (BoolQ, PIQA, SIQA, HellaSwag, WinoGrande, ARC-e, ARC-c, OBQA) using the Language Model Evaluation Harness, trained on a 170k-sample dataset.
Key Insights and Results
Mamba Benefits More from PEFT than Transformers In vision tasks, Vision Transformers (ViTs) tend to overfit early as the number of trainable PEFT parameters increases. Mamba, however, continues to improve. Its highly modular structure appears to protect pre-trained memory from being corrupted by additional parameters, making it exceptionally well-suited for parameter-efficient tuning.
Over-parameterization Helps Small Weights When applying LoRA to Mamba's smaller linear weights, setting the LoRA rank higher than the layer's full rank actually improves accuracy. Rather than causing overfitting, adding more parameters to these specific bottlenecks acts as beneficial over-parameterization.
Data Size Dictates the Best Method LoRA (specifically Partial LoRA) proves highly effective for small datasets, such as the 1k images in VTAB. However, for larger datasets like the 170k NLP corpus, the newly proposed Additional-scan and Affix-tuning achieve competitive or superior accuracy with a fraction of the parameters.
Performance Breakthroughs * Vision (VTAB-1k): Using a Vision Mamba (Vim-S) base model, the Hybrid PEFT framework achieved 72.05% average accuracy. This massively outperforms full fine-tuning (47.08%) and beats the best ViT-S PEFT baseline (Adapter+ at 69.87%). * Language (Commonsense Reasoning): On a Mamba 1.4B model, Affix-tuning achieved 53.9% average accuracy using only 0.09% trainable parameters. This outperformed both full fine-tuning (53.0%) and the existing Mamba PEFT baseline, SLL LoRA (52.7%, which required 4.64% parameters).
Limitations and Future Work
While these findings establish a strong foundation for tuning SSMs, the exploratory experiments were conducted on small-to-medium models (up to 1.4B parameters for language and Vim-S/B for vision). Evaluating these methods on massive, multi-billion parameter foundation models (like Llama-scale models) is a necessary next step.
Furthermore, while the Hybrid PEFT search works exceptionally well—likely due to ensemble diversity offsetting individual module errors—detailed theoretical verification of why certain PEFT combinations synergize remains an exciting direction for future research.
Summary updated