[论文解读] EfficientViM: Efficient Vision Mamba with Hidden State Mixer based State Space Duality
EfficientViM 在 Vision Mamba 骨干中引入基于隐藏状态混合的SSD(HSM-SSD),以更低的计算成本捕捉全局上下文,在 ImageNet-1k 上实现最优的速度-准确率权衡。
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.
研究动机与目标
- 推动在设备上高效的视觉骨干,平衡局部与全局特征处理。
- 提出一种重新设计的 SSD 层,通过隐藏状态通道混合来减少计算。
- 引入多级隐藏状态融合,在不产生内存瓶颈的情况下提升表示能力。
- 设计 EfficientViM 模块,最小化内存受限操作,同时保持精度。
- 与现有的 Vision Mamba 与其他轻量化体系结构进行比较,以展示更优的速度-准确率权衡。
提出的方法
- 通过将通道混合移入降维潜在隐藏状态空间来取代 SSD 层的运算(HSM-SSD)。
- 使用单头隐藏状态混合器对隐藏状态进行门控和投影,将 O(LD^2) 的成本降低到 O(ND^2),其中 N << L。
- 结合多阶段隐藏状态融合,将来自多个阶段的 logits 进行组合以获得更好的预测。
- 采用一个包含 DWConv 和 1x1 卷积的干区(stem)和分层三阶段架构,并在 HSM-SSD 之前使用层归一化,在其他位置使用 BN 以提高效率。
- 允许一个非因果 SSD 形式(NC-SSD)作为基线,并显示 HSM-SSD 通过减少状态数量实现更低的运行时。
- 通过广泛实验证明 EfficientViM 实现了更优的速度-准确率权衡和内存效率。
实验结果
研究问题
- RQ1基于隐藏状态混合器的状态空间对偶性(HSM-SSD)是否能在全局标记交互中降低计算量而不牺牲准确性?
- RQ2多阶段隐藏状态融合是否提升 EfficientViM 的表示能力和最终准确性?
- RQ3在 ImageNet-1k 上,EfficientViM 与先前的 Vision Mamba 及其他轻量骨干在吞吐量、延迟和内存使用方面的比较?
- RQ4在 HSM-SSD 中,单头与多头设计对吞吐量和准确性的影响?
- RQ5EfficientViM 面向更高分辨率输入和蒸馏训练的扩展性如何?
主要发现
- EfficientViM 在 ImageNet-1k 上实现了最先进的速度-准确率权衡,比 SHViT 提升高达 0.7% 的准确率同时运行更快。
- EfficientViM-M2 在吞吐量方面显著优于先前的 SOTA SHViT(在某些设置下最高提升约 7%)。
- 单头 HSM-SSD 设计提供更高的吞吐量(例如 17,005 img/s),在准确性方面与多头变体相比具有竞争力。
- 多阶段隐藏状态融合(MSF)通过结合来自多个阶段的 logits 进一步提升准确性。
- EfficientViM 对高分辨率图像显示出强大的可扩展性,随着输入尺寸增大,保持对比模型的速度优势。
- 蒸馏训练进一步提升吞吐量和准确性,保持 EfficientViM 的帕累托最优性能。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。