Reproduce “Cobra: Extending Mamba to Multi-Modal Large Language Model for Efficient Inference” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Han Zhao, Min Zhang, Wei Zhao, Pengxiang Ding, Siteng Huang, Donglin Wang

Researchers at Zhejiang University and Westlake University developed Cobra, a Multi-modal Large Language Model (MLLM) that leverages the Mamba architecture to achieve 3 to 4 times faster inference speeds compared to Transformer-based MLLMs. Cobra maintains or surpasses performance on visual question answering and grounding benchmarks, while also demonstrating improved spatial reasoning and reduced visual hallucination.

Key insights

  • The Mamba architecture effectively addresses the quadratic complexity bottleneck of Transformer-based MLLMs, enabling substantial inference speed improvements while maintaining or enhancing multi-modal reasoning capabilities.
  • Fusing diverse visual features (spatial from DINOv2 and semantic from SigLIP) is crucial for robust multi-modal understanding, improving performance on tasks requiring detailed visual and spatial context.
  • Direct end-to-end fine-tuning for sufficient epochs is an effective strategy for Mamba-based MLLMs, and simpler projector designs are often more beneficial than complex ones that might compress too much visual information.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.