Skip to main content
QUICK REVIEW

[Paper Review] EfficientViM: Efficient Vision Mamba with Hidden State Mixer based State Space Duality

Sanghyeok Lee, Joonmyung Choi|arXiv (Cornell University)|Nov 22, 2024
Machine Learning and ELMComputer Science6 citations
TL;DR

EfficientViM introduces a Hidden State Mixer–based SSD (HSM-SSD) within a Vision Mamba backbone to capture global context with lower computational cost, achieving state-of-the-art speed-accuracy trade-offs on ImageNet-1k.

ABSTRACT

For the deployment of neural networks in resource-constrained environments, prior works have built lightweight architectures with convolution and attention for capturing local and global dependencies, respectively. Recently, the state space model (SSM) has emerged as an effective operation for global interaction with its favorable linear computational cost in the number of tokens. To harness the efficacy of SSM, we introduce Efficient Vision Mamba (EfficientViM), a novel architecture built on hidden state mixer-based state space duality (HSM-SSD) that efficiently captures global dependencies with further reduced computational cost. With the observation that the runtime of the SSD layer is driven by the linear projections on the input sequences, we redesign the original SSD layer to perform the channel mixing operation within compressed hidden states in the HSM-SSD layer. Additionally, we propose multi-stage hidden state fusion to reinforce the representation power of hidden states and provide the design to alleviate the bottleneck caused by the memory-bound operations. As a result, the EfficientViM family achieves a new state-of-the-art speed-accuracy trade-off on ImageNet-1k, offering up to a 0.7% performance improvement over the second-best model SHViT with faster speed. Further, we observe significant improvements in throughput and accuracy compared to prior works, when scaling images or employing distillation training. Code is available at https://github.com/mlvlab/EfficientViM.

Motivation & Objective

  • Motivate efficient on-device vision backbones that balance local and global feature processing.
  • Propose an SSD layer redesigned with hidden-state channel mixing to reduce computation.
  • Introduce multi-stage hidden state fusion to boost representation power without memory bottlenecks.
  • Design EfficientViM blocks that minimize memory-bound operations while preserving accuracy.
  • Compare against existing vision Mambas and other lightweight architectures to demonstrate superior speed-accuracy trade-offs.

Proposed method

  • Replace the SSD layer's operations by moving channel mixing into a reduced latent hidden-state space (HSM-SSD).
  • Use a single-head hidden-state mixer to perform gating and projection on hidden states, reducing O(LD^2) cost to O(ND^2) with N << L.
  • Incorporate multi-stage hidden-state fusion to combine logits from multiple stages for improved predictions.
  • Adopt a stem and hierarchical three-stage architecture with DWConv and 1x1 convolutions, plus layer normalization before HSM-SSD and BN elsewhere for efficiency.
  • Allow a non-causal SSD formulation (NC-SSD) as baseline and show HSM-SSD achieves lower runtime via reduced state count.
  • Demonstrate through extensive experiments that EfficientViM achieves superior speed-accuracy trade-offs and memory efficiency.

Experimental results

Research questions

  • RQ1Can hidden-state mixer-based state-space duality (HSM-SSD) reduce computation in global token interactions without sacrificing accuracy?
  • RQ2Does multi-stage hidden-state fusion improve the representational power and final accuracy of EfficientViM?
  • RQ3How does EfficientViM compare to prior vision Mambas and other lightweight backbones in throughput, latency, and memory usage on ImageNet-1k?
  • RQ4What is the impact of single-head versus multi-head designs in HSM-SSD on throughput and accuracy?
  • RQ5How does EfficientViM scale with higher resolution inputs and distillation training?

Key findings

  • EfficientViM achieves state-of-the-art speed-accuracy trade-offs on ImageNet-1k, with up to 0.7% accuracy gain over SHViT while running faster.
  • EfficientViM-M2 outperforms previous SOTA SHViT with substantial throughput improvements (e.g., up to 7% speed-up in some settings).
  • The single-head HSM-SSD design provides higher throughput (e.g., 17,005 img/s) with competitive accuracy compared to multi-head variants.
  • Multi-stage hidden state fusion (MSF) further enhances accuracy by combining logits from multiple stages.
  • EfficientViM shows strong scalability to high-resolution images, maintaining speed advantages over competing models as input size grows.
  • Distillation training further improves throughput and accuracy, preserving EfficientViM’s Pareto-optimal performance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.