HRVMamba: High-Resolution Visual State Space Model for Dense Prediction

Hao Zhang, Yongqiang Ma, Wenqi Shao, Ping Luo, Nanning Zheng, Kaipeng Zhang · DOI

Introduction

Dense prediction tasks, such as human pose estimation and semantic segmentation, necessitate high-resolution feature maps to accurately localize fine-grained details. However, traditional Vision Transformers (ViTs) suffer from a "Quadratic Tax," where computational costs grow quadratically ($O(N^2)$) with input resolution. While State Space Models (SSMs) like Mamba offer linear complexity ($O(N)$), they often lack spatial inductive bias and suffer from long-range information decay. HRVMamba addresses these challenges by integrating the multi-resolution design of HRNet with an optimized Mamba framework.

Architecture and Methods

The HRVMamba architecture adopts a multi-branch parallel structure to maintain high-resolution representations throughout the network. As illustrated in Figure 1, the model processes information across multiple scales (4x to 32x downsampling) and continuously fuses these features.

Detailed architecture of HRVMamba, highlighting the multi-resolution branches and the internal structure of the ESInB and DSS2D blocks.

The core of the architecture is the Dynamic Visual State Space (DVSS) block, which features two key innovations:

  1. Enhanced Spatial Inductive Bias (ESInB) Block: This component utilizes multi-scale depthwise convolutions (kernels ranging from $3\times3$ to $9\times9$) to restore the 2D spatial intuition typically lost in sequential SSM scanning.
  2. Deformable 2D-Selective-Scan (DSS2D): Unlike standard fixed-direction scans, DSS2D employs deformable operations. This allows the model to adaptively sample pixels based on content, effectively "jumping" across the image to mitigate the forgetting of distant features.

Experimental Results

HRVMamba was evaluated across several benchmarks, demonstrating superior efficiency and performance:

  • Human Pose Estimation (COCO): HRVMamba-Base achieved 76.7 AP on the test-dev set, outperforming heavier models like ViTPose-B. Notably, the Small variant achieved 74.6 AP with only 20% of the FLOPs required by comparable CNN-based models.
  • Semantic Segmentation (ADE20K): The model reached 52.2 mIoU, surpassing other recent SSM-based backbones like VMamba-B.
  • Image Classification (ImageNet-1K): Despite its focus on dense prediction, HRVMamba-Base achieved a Top-1 accuracy of 84.2%.

Discussion and Key Insights

The integration of deformable sampling serves as a structural remedy for the inherent limitations of SSMs. By allowing the scan path to adapt to semantically relevant areas, the model bypasses the exponential decay of hidden states over long sequences.

Activation map comparison demonstrating how the DSS2D block enhances focus on semantically relevant features compared to the standard VSS block.

As shown in Figure 2, activation maps reveal that the DSS2D block significantly improves the model's ability to focus on critical regions (e.g., joints in pose estimation) compared to standard VSS blocks. This confirms that local multi-scale convolutions and adaptive scanning are complementary, providing both global context and precise local detail.

Conclusion

HRVMamba successfully brings linear efficiency to high-resolution vision tasks. While the model shows immense promise, the authors noted that standard ImageNet pretraining may not be optimal for larger SSM architectures, suggesting a need for specialized pretraining regimes. Future work will explore these regimes and further hardware-level optimizations for mobile deployment.

Summary updated

BibTeX
@misc{zhang2024hrvmamba,
  author = {Hao Zhang and Yongqiang Ma and Wenqi Shao and Ping Luo and Nanning Zheng and Kaipeng Zhang},
  title = {{HRVMamba: High-Resolution Visual State Space Model for Dense Prediction}},
  year = {2024},
  eprint = {2410.03174},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.03174},
}
Figure