paper-with-me

홈 › Papers

QMamba: Post-Training Quantization for Vision State Space Models

2025-01-23 · Yinglong Li, Xiaoyu Liu, Jiacheng Li, Ruikang Xu, Yinda Chen, Zhiwei Xiong

State Space Models (SSMs), as key components of Mamaba, have gained increasing attention for vision models recently, thanks to their efficient long sequence modeling capability. Given the computational cost of deploying SSMs on resource-limited edge devices, Post-Training Quantization (PTQ) is a technique with the potential for efficient deployment of SSMs. In this work, we propose QMamba, one of the first PTQ frameworks to our knowledge, designed for vision SSMs based on the analysis of the activation distributions in SSMs. We reveal that the distribution of discrete parameters exhibits long-tailed skewness and the distribution of the hidden state sequence exhibits highly dynamic variations. Correspondingly, we design Long-tailed Skewness Quantization (LtSQ) to quantize discrete parameters and Temporal Group Quantization (TGQ) to quantize hidden states, which reduces the quantization errors. Extensive experiments demonstrate that QMamba outperforms advanced PTQ methods on vision models across multiple model sizes and architectures. Notably, QMamba surpasses existing methods by 21.0% on ImageNet classification with 4-bit activations.

📄 PDF Abstract BibTeX arXiv:2501.13624

Code (0)

등록된 구현이 없습니다.

Tasks

QuantizationState Space Models

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음

Similar Papers 제목 키워드 기반

QMamba: On First Exploration of Vision Mamba for Image Quality Assessment

2024-06-13 · Fengbin Guan, Xin Li, Zihao Yu, Yiting Lu 외

In this work, we take the first exploration of the recently popular foundation model, i.e., State Space Model/Mamba, in image quality assessment (IQA), aiming at observing and excavating the perception potential in visio…

Image Quality AssessmentMambaTransfer Learning

Post-Training Quantization for Vision Transformer

2021-06-27 · NeurIPS 2021 12 · Zhenhua Liu, Yunhe Wang, Kai Han, Siwei Ma 외

Recently, transformer has achieved remarkable performance on a variety of computer vision applications. Compared with mainstream convolutional neural networks, vision transformers are often of sophisticated architectures…

DiversityQuantization

NoisyQuant: Noisy Bias-Enhanced Post-Training Activation Quantization for Vision Transformers

2022-11-29 · CVPR 2023 1 · Yijiang Liu, Huanrui Yang, Zhen Dong, Kurt Keutzer 외

The complicated architecture and high training cost of vision transformers urge the exploration of post-training quantization. However, the heavy-tailed distribution of vision transformer activations hinders the effectiv…

Quantization

FreqMamba: Viewing Mamba from a Frequency Perspective for Image Deraining

2024-04-15 · Zou Zhen, Yu Hu, Zhao Feng

Images corrupted by rain streaks often lose vital frequency information for perception, and image deraining aims to solve this issue which relies on global and local degradation modeling. Recent studies have witnessed th…

MambaRain Removal

AIQViT: Architecture-Informed Post-Training Quantization for Vision Transformers

2025-02-07 · Runqing Jiang, Ye Zhang, Longguang Wang, Pengpeng Yu 외

Post-training quantization (PTQ) has emerged as a promising solution for reducing the storage and computational cost of vision transformers (ViTs). Recent advances primarily target at crafting quantizers to deal with pec…

image-classificationImage ClassificationInstance Segmentationobject-detection+4