arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.16602cs.CVcs.AI
收藏

V"Mean"ba:视觉状态空间模型只需要1个隐藏维度

V"Mean"ba: Visual State Space Models only need 1 hidden dimension

National Yang Ming Chiao Tung University(国立阳明交通大学);The University of Texas at Austin(德克萨斯大学奥斯汀分校);Cornell University(康奈尔大学)

Tien-Yu Chi, Hung-Yueh Chiang, Chi-Chih Chang, Ning-Chi Huang, Kai-Chiang Wu

AI总结:

针对状态空间模型线性递归机制难以充分利用硬件矩阵乘法单元的计算瓶颈,提出免训练压缩方法VMeanba,通过跨通道平均操作消除通道维度,在准确率损失不到3%的情况下实现1.12倍加速。

摘要:

Vision transformers凭借其卓越的性能主导着图像处理任务。然而,自注意力的二次复杂度限制了这些系统的可扩展性及其在资源受限设备上的部署。State Space Models (SSMs)通过引入线性递归机制提供了一种解决方案,将序列建模的复杂度从二次降低到线性。最近,SSMs已被扩展到高分辨率视觉任务。尽管如此,线性递归机制难以充分利用现代硬件上的矩阵乘法单元,从而导致计算瓶颈。我们通过引入VMeanba来解决这一问题,这是一种免训练的压缩方法,利用均值操作消除了SSMs中的通道维度。我们的关键观察是,SSM块的输出激活在各个通道上表现出低方差。我们的VMeanba利用这一特性,通过在通道上对激活图进行平均来优化计算,从而在不损害准确率的情况下降低计算开销。在图像分类和语义分割任务上的评估表明,VMeanba实现了高达1.12倍的加速,且准确率损失不到3%。当与40%的非结构化剪枝相结合时,准确率下降仍保持在3%以下。

英文摘要:

Vision transformers dominate image processing tasks due to their superior performance. However, the quadratic complexity of self-attention limits the scalability of these systems and their deployment on resource-constrained devices. State Space Models (SSMs) have emerged as a solution by introducing a linear recurrence mechanism, which reduces the complexity of sequence modeling from quadratic to linear. Recently, SSMs have been extended to high-resolution vision tasks. Nonetheless, the linear recurrence mechanism struggles to fully utilize matrix multiplication units on modern hardware, resulting in a computational bottleneck. We address this issue by introducing \textit{VMeanba}, a training-free compression method that eliminates the channel dimension in SSMs using mean operations. Our key observation is that the output activations of SSM blocks exhibit low variances across channels. Our \textit{VMeanba} leverages this property to optimize computation by averaging activation maps across the channel to reduce the computational overhead without compromising accuracy. Evaluations on image classification and semantic segmentation tasks demonstrate that \textit{VMeanba} achieves up to a 1.12x speedup with less than a 3\% accuracy loss. When combined with 40\% unstructured pruning, the accuracy drop remains under 3\%.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑