NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

On the low-shot transferability of [V]-Mamba

Diganta Misra, Jay Gala, Antonio OrvietoarXiv 2024

TL;DR

This paper investigates how well Mamba-based vision models ([V]-Mamba) transfer knowledge to new tasks with limited data (few-shot learning), comparing them to Vision Transformers (ViTs). They found [V]-Mamba excels with linear probing but lags behind ViTs when using visual prompting, with a curious correlation between model scale and this performance gap.

What Problem Does This Paper Address?

Modern deep learning models, especially large ones, are powerful because they can learn new tasks with very few examples – a concept known as few-shot transfer learning. While Vision Transformers (ViTs) have been extensively studied for this, a new class of models called Mamba (and its vision variants, [V]-Mamba) has emerged, showing promise in other areas. However, their effectiveness in few-shot transfer learning, particularly compared to ViTs and across different transfer methods, remained an open question. This paper aims to bridge that gap by empirically evaluating [V]-Mamba's low-shot transferability.

Methods

The core of this study is a comparative analysis of [V]-Mamba and ViT models on various downstream tasks using two common few-shot transfer learning techniques:

  • Linear Probing (LP): This method involves freezing the pre-trained model's weights and training only a new linear classifier on top. It's a simple yet effective way to assess how well the model's learned features can be linearly separated for a new task.
  • Visual Prompting (VP): This technique, specifically using the Iterative Label Mapping (ILM-VP) method, involves transforming the input images and mapping them to target classes. It's a more involved method that aims to adapt the model's internal representations more directly.

The researchers compared models of similar scales to ensure a fair comparison.

Datasets

The study utilized a diverse set of seven datasets to evaluate transferability across different domains:

  • CIFAR-10: A standard dataset for object recognition with 10 classes.
  • SVHN (Street View House Numbers): Recognizes digits from Google Street View images.
  • GTSRB (German Traffic Sign Recognition Benchmark): Classifies various traffic signs.
  • DTD (Describable Textures Dataset): Focuses on texture classification.
  • Flowers-102: A dataset for classifying different species of flowers.
  • OxfordPets: Differentiates between various pet breeds.
  • EuroSAT: Classifies land use and land cover categories from satellite imagery.

These datasets were chosen to represent a mix of near and far domains, allowing for a broad assessment of transfer capabilities.

Key Insights and Ideas

  • [V]-Mamba shines with Linear Probing: The study found that when using linear probing, [V]-Mamba models often outperform or match ViTs of similar sizes. This suggests that the features learned by [V]-Mamba are highly amenable to simple linear classification for new tasks.
  • [V]-Mamba struggles with Visual Prompting: In contrast, when visual prompting was used as the transfer method, [V]-Mamba's performance was generally weaker or comparable to ViTs. This indicates that the specific way visual prompting adapts models might not align as well with [V]-Mamba's internal architecture compared to ViTs.
  • Model Scale and the VP Gap: A surprising finding was a weak positive correlation between the performance difference (gap) between LP and VP methods and the scale of the [V]-Mamba model. This implies that as [V]-Mamba models get larger, the disparity in performance between these two transfer methods might increase, warranting further investigation.

Key Results

The paper presents results primarily through accuracy plots across different datasets and few-shot settings (1, 10, 50, 100 shots).

  • Linear Probing: In Figure 2 (top plots), SSM models (including [V]-Mamba variants like Vim-Small and VSSM-Tiny) generally show superior or comparable test accuracy to ViTs (like DeiT-Small, DeiT3-Small, MoCov3-Small) across most datasets and shot settings. For instance, MoCov3-Small was significantly outperformed by Vim-Small and VSSM-Tiny on many datasets.
  • Visual Prompting (ILM-VP): In Figure 2 (middle plots), the trend reverses. SSM models tend to perform worse or similarly to ViTs. Vim-Small, in particular, underperformed across multiple datasets. OxfordPets was a notable case where MoCov3 performed the worst, with a gap exceeding 50%.
  • Performance Gap (LP vs. VP): Figure 2 (bottom plots) shows the difference in accuracy between LP and VP. This difference (denoted by $\Delta$) is often higher for SSM models, indicating VP is less effective relative to LP for them. This gap tends to decrease at higher shot settings, suggesting VP might help close the gap as more data becomes available.
  • Scaling Effect: Figure 3 specifically analyzes the performance gap for SSM models across different scales. It shows that this gap generally increases as the model size (e.g., from VSSM-Tiny to VSSM-Small) increases, highlighting a potential challenge for larger [V]-Mamba models with VP.

Limitations and Future Work

The authors acknowledge that this is a "preliminary analysis" and lays the "foundation for more comprehensive studies."

  • Limited Scope: The study focuses on specific variants of [V]-Mamba and ViTs, and only two transfer methods. Future work could explore other Mamba architectures, different ViT variants, and a wider range of transfer learning techniques.
  • Correlation vs. Causation: The observed correlation between model scale and the LP-VP performance gap is noted as needing further exploration to understand the underlying mechanisms.
  • Understanding the Gap: The paper suggests further research is needed to "comprehensively elucidating the capabilities of [V]-Mamba variants and their distinctions from ViTs," particularly concerning why VP performs differently for these architectures. Mitigating this transferability gap for larger models is also highlighted as an area for future work.

Summary updated

BibTeX
@misc{misra2024low,
  author = {Diganta Misra and Jay Gala and Antonio Orvieto},
  title = {{On the low-shot transferability of [V]-Mamba}},
  year = {2024},
  eprint = {2403.10696},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.10696},
}
Figure