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

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Chi, Tien-Yu, Chiang, Hung-Yueh, Chang, Chi-Chih, Huang, Ning-Chi, Wu, Kai-Chiang
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866916538037043200
author Chi, Tien-Yu
Chiang, Hung-Yueh
Chang, Chi-Chih
Huang, Ning-Chi
Wu, Kai-Chiang
author_facet Chi, Tien-Yu
Chiang, Hung-Yueh
Chang, Chi-Chih
Huang, Ning-Chi
Wu, Kai-Chiang
contents 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\%.
format Preprint
id arxiv_https___arxiv_org_abs_2412_16602
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle V"Mean"ba: Visual State Space Models only need 1 hidden dimension
Chi, Tien-Yu
Chiang, Hung-Yueh
Chang, Chi-Chih
Huang, Ning-Chi
Wu, Kai-Chiang
Computer Vision and Pattern Recognition
Artificial Intelligence
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\%.
title V"Mean"ba: Visual State Space Models only need 1 hidden dimension
topic Computer Vision and Pattern Recognition
Artificial Intelligence
url https://arxiv.org/abs/2412.16602