EfficientViM:基于隐状态混合器状态空间对偶的高效视觉Mamba
EfficientViM: Efficient Vision Mamba with Hidden State Mixer based State Space Duality
AI总结:
针对资源受限环境下的神经网络部署,提出基于HSM-SSD的EfficientViM架构,通过压缩隐状态通道混合、多阶段隐状态融合等优化,在ImageNet-1k上实现更优的速度-精度权衡。
摘要:
针对神经网络在资源受限环境下的部署需求,已有研究分别构建了基于卷积和注意力的轻量架构,用于捕获局部和全局依赖关系。近年来,状态空间模型(SSM)凭借其在token数量上的线性计算成本,成为实现全局交互的有效算子。为发挥SSM的效能,我们提出了高效视觉Mamba(EfficientViM)——这是一种基于隐状态混合器状态空间对偶(HSM-SSD)的全新架构,能以进一步降低的计算成本高效捕获全局依赖。我们观察到SSD层的运行时间由输入序列上的线性投影主导,因此重新设计了原始SSD层,在HSM-SSD层的压缩隐状态内执行通道混合操作。此外,我们提出多阶段隐状态融合以增强隐状态的表征能力,并设计了缓解内存受限操作带来的瓶颈的方案。实验结果显示,EfficientViM系列在ImageNet-1k上实现了全新的速度-精度权衡最优水平,相比次优模型SHViT速度更快,性能提升最高达0.7%。此外,我们发现在放大图像尺寸或采用蒸馏训练时,该模型相比已有工作在吞吐量和精度上均有显著提升。代码可在https://github.com/mlvlab/EfficientViM获取。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。