ZeroMamba: Exploring Visual State Space Model for Zero-Shot Learning

Wenjin Hou, Dingjie Fu, Kun Li, Shiming Chen, Hehe Fan, Yi Yang

Introduction

Zero-Shot Learning (ZSL) aims to recognize objects from unseen classes during training by leveraging semantic descriptions. Traditional approaches have primarily utilized Convolutional Neural Networks (CNNs) or Vision Transformers (ViTs) as backbones. However, these architectures present inherent trade-offs: CNNs are efficient but suffer from limited receptive fields, while ViTs offer global context at the cost of quadratic computational complexity. Furthermore, these backbones often lack explicit semantic guidance during pre-training, leading to a visual-semantic alignment gap.

To address these challenges, we introduce ZeroMamba, the first framework to adapt the Visual State Space Model (Vision Mamba) for ZSL. ZeroMamba combines the linear complexity and global receptive fields of Mamba with novel semantic-aware modules to achieve state-of-the-art performance with high efficiency.

Proposed Method: ZeroMamba

ZeroMamba integrates three key components into the Vision Mamba architecture to facilitate effective visual-semantic interaction:

  1. Semantic-aware Local Projection (SLP): This module utilizes semantic attribute embeddings to guide the model's attention toward local, semantically relevant regions. It effectively teaches the model "where to look" for specific attributes.
  2. Global Representation Learning (GRL): This component captures the "big picture," bridging the gap between the entire visual scene and high-level semantic spaces.
  3. Semantic Fusion (SeF): SeF combines local (SLP) and global (GRL) features to create a more discriminative and comprehensive feature set for classification.
The architecture of ZeroMamba, highlighting the SLP, GRL, and SeF modules integrated with the Vision Mamba Encoder.

The entire framework is trained end-to-end using a specialized Semantic Constraint Loss ($L_{sc}$) to ensure tight alignment between learned visual features and known class attributes.

Experimental Evaluation

ZeroMamba was evaluated on four major ZSL benchmarks: CUB (fine-grained birds), SUN (scenes), AWA2 (animals), and the large-scale ImageNet dataset.

Key Results

ZeroMamba establishes a new state-of-the-art (SOTA) across several metrics:

  • CUB Dataset: Achieved 80.0% accuracy in conventional ZSL and a Harmonic Mean (H-score) of 74.2 in Generalized ZSL.
  • ImageNet: Reached 24.5% accuracy, a significant improvement over the previous best of 17.6% (I2DFormer+).
  • Qualitative Analysis: Activation maps indicate that ZeroMamba accurately localizes specific semantic regions beneficial for classification, avoiding the "distractions" often seen in CNN or ViT heatmaps.

Efficiency and Analysis

A core advantage of ZeroMamba is its superior accuracy-to-parameter trade-off. As shown in the comparison below, ZeroMamba variants consistently occupy the Pareto frontier, outperforming much larger ViT-based models.

Comparison of accuracy vs. number of parameters on the CUB dataset. ZeroMamba models (red triangles) demonstrate a significantly better efficiency profile than CNN and ViT counterparts.

Beyond parameter efficiency, the Mamba backbone provides a superior "Effective Receptive Field" compared to CNNs. While CNNs focus on local patches, ZeroMamba perceives the entire image with higher intensity, which is crucial for identifying distributed semantic attributes. Ablation studies further confirm that the SLP and GRL modules are essential; removing them leads to a performance drop of up to 6.6% on the CUB dataset.

Conclusion and Future Work

ZeroMamba demonstrates that Vision Mamba is a powerful and efficient alternative to CNNs and Transformers for Zero-Shot Learning. While it excels in fine-grained tasks, its performance on coarse-grained datasets like AWA2 suggests room for improvement in capturing broader features. Future research may explore more sophisticated scanning strategies and extend the Mamba architecture to broader multi-modal tasks involving full-text descriptions.

Summary updated

BibTeX
@inproceedings{hou2025zeromamba,
  author = {Wenjin Hou and Dingjie Fu and Kun Li and Shiming Chen and Hehe Fan and Yi Yang},
  title = {{ZeroMamba: Exploring Visual State Space Model for Zero-Shot Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i4.32366},
}
Figure