CLIP-Mamba: CLIP Pretrained Mamba Models with OOD and Hessian Evaluation

Weiquan Huang, Yifei Shen, Yifan Yang
4/30/2024
cs.CV

Official code: raytrun/mamba-clip (82 stars, last commit 2024-08-15).

Abstract

State space models and Mamba-based models have been increasingly applied across various domains, achieving state-of-the-art performance. This technical report introduces the first attempt to train a transferable Mamba model utilizing contrastive language-image pretraining (CLIP). We have trained Mamba models of varying sizes and undertaken comprehensive evaluations of these models on 26 zero-shot classification datasets and 16 out-of-distribution (OOD) datasets. Our findings reveal that a Mamba model with 67 million parameters is on par with a 307 million-parameter Vision Transformer (ViT) model in zero-shot classification tasks, highlighting the parameter efficiency of Mamba models. In tests of OOD generalization, Mamba-based models exhibit exceptional performance in conditions of OOD image contrast or when subjected to high-pass filtering. However, a Hessian analysis indicates that Mamba models feature a sharper and more non-convex landscape compared to ViT-based models, making them more challenging to train. The source code is available at https://github.com/raytrun/mamba-clip.

View on arXivView PDF

Code Implementations(1)

raytrun/mamba-clipOfficial100%

CLIP-Mamba: CLIP Pretrained Mamba Models with OOD and Hessian Evaluation

827C, C++Apr 30, 20242 years ago

Cite this paper

@article{huang2024clipmamba,
  title  = {CLIP-Mamba: CLIP Pretrained Mamba Models with OOD and Hessian Evaluation},
  author = {Weiquan Huang and Yifei Shen and Yifan Yang},
  year   = {2024},
  eprint = {2404.19394},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.19394v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2404.19394.svg)](https://codeofpaper.com/paper/2404.19394)

Discussion