Parameter Efficient Mamba Tuning via Projector-targeted Diagonal-centric Linear Transformation

Seokil Ham, Hee-Seon Kim, Sangmin Woo, Changick Kim

Abstract

Despite the growing interest in Mamba architecture as a potential replacement for Transformer architecture, parameter-efficient fine-tuning (PEFT) approaches for Mamba remain largely unexplored. In our study, we introduce two key insights-driven strategies for PEFT in Mamba architecture: (1) While state-space models (SSMs) have been regarded as the cornerstone of Mamba architecture, then expected to play a primary role in transfer learning, our findings reveal that Projectors---not SSMs---are the predominant contributors to transfer learning, and (2) Based on our observation, we propose a novel PEFT method specialized to Mamba architecture: Projector-targeted Diagonal-centric Linear Transformation (ProDiaL). ProDiaL focuses on optimizing only diagonal-centric linear transformation matrices, without directly fine-tuning the pretrained Projector weights. This targeted approach allows efficient task adaptation, utilizing less than 1% of the total parameters, and exhibits strong performance across both vision and language Mamba models, highlighting its versatility and effectiveness.

Introduction

While Transformers dominate deep learning, their quadratic complexity with respect to sequence length makes them slow for long-context tasks. The Mamba architecture, based on State-Space Models (SSMs), has emerged as a linear-time alternative. However, as Mamba models scale up, "full fine-tuning" (updating every weight) becomes computationally prohibitive.

Existing PEFT methods like LoRA were designed for Transformers. Previous attempts to adapt Mamba typically focused on fine-tuning the SSM parameters, assuming they were the "brain" of the model. This research challenges that assumption, identifying a more efficient "target" for tuning and a mathematical structure that fits Mamba's specific needs.

Methods

The proposed method, ProDiaL (Projector-targeted Diagonal-centric Linear Transformation), is built on two key technical pillars:

  1. Targeting Projectors: Through empirical analysis, the authors found that the Input and Output Projectors (linear layers surrounding the SSM) contribute significantly more to downstream task performance than the SSM itself.
  2. Diagonal-centric Transformation: They observed that a fine-tuned projector weight ($W'$) can be approximated as a linear transformation of the pretrained weight ($W$) using a nearly diagonal matrix ($T$). Specifically, $W' = WT$.
Overview of the Mamba block architecture and the empirical evidence for projector-targeted tuning.

The ProDiaL Formula

Instead of updating $W$ directly, ProDiaL freezes it and learns a transformation: $$W' = sWD_b + \epsilon$$ * $D_b$ (Block-Diagonal Matrix): Captures the primary scaling and minor rotations needed for task adaptation. * $\epsilon$ (Off-diagonal component): A low-rank matrix (trained via LoRA) that handles the remaining non-diagonal relationships. * $s$ (Scaling factor): A learnable parameter to adjust the magnitude of the output.

This decomposition allows the model to adapt to new tasks by learning very few parameters compared to standard low-rank adaptation.

Key Insights and Ideas

  • The "Projector Dominance" Discovery: In Mamba, the SSM handles sequence modeling, but the Projectors seem to hold the "knowledge" required for specific tasks. Tuning only the projectors often outperforms tuning the entire model.
  • Diagonal Importance: The transformation matrix $T$ between a pretrained and fine-tuned Mamba model is remarkably close to an identity matrix. This suggests that fine-tuning is primarily a process of re-scaling existing features rather than learning entirely new feature interactions.
Visualization of the transformation matrix between pretrained and fine-tuned weights, showing a strong diagonal-centric pattern.
  • Mamba vs. Transformers: In Transformers, tuning the Attention and Feed-Forward Networks (FFN) together is synergistic. In Mamba, tuning the SSM alongside Projectors actually degrades performance, suggesting Mamba requires a more surgical approach to PEFT.

Experimental Results

The authors evaluated ProDiaL across both vision and language modalities, including Vision Mamba (Vim-tiny/small) on datasets like StanfordCars and Caltech 101, and Mamba LLM (up to 1.4B parameters) on reasoning benchmarks like HellaSwag and ARC.

  • Superior Efficiency: ProDiaL consistently outperforms LoRA, DoRA, and BitFit while using significantly fewer parameters.
  • Vision Tasks: On the Vision Mamba benchmark, ProDiaL achieved an average accuracy of 89.87% using only 0.67M parameters, surpassing the "Strong" baseline (89.08% with 0.96M parameters).
  • Language Tasks: For Mamba-130M, ProDiaL achieved an average score of 44.06% across benchmarks, beating Full Fine-Tuning (43.43%) despite using only ~2% of the parameters.
  • Scalability: The method holds up across model sizes, showing consistent gains on Mamba-370M and Mamba-1.4B.

Conclusion and Future Work

ProDiaL demonstrates that surgical, projector-targeted tuning is highly effective for Mamba architectures. However, some limitations remain:

  • Dependency on LoRA: ProDiaL currently uses LoRA to handle the off-diagonal ($\epsilon$) components. A more specialized method for optimizing these elements could further boost efficiency.
  • Scope of Tasks: While tested on classification and reasoning, effectiveness on generative tasks remains an open question.
  • Hyperparameter Sensitivity: The choice of block size ($r_b$) in the diagonal matrix is a new hyperparameter that requires tuning for optimal results.

Summary updated

BibTeX
@inproceedings{ham2025parameter,
  author = {Seokil Ham and Hee-Seon Kim and Sangmin Woo and Changick Kim},
  title = {{Parameter Efficient Mamba Tuning via Projector-targeted Diagonal-centric Linear Transformation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  url = {https://openreview.net/forum?id=f59SusV3Mf},
}
Figure