Analysis of Quantization on MLP-based Vision Models
Not on the map. Why?
Abstract (arXiv)
Quantization is wildly taken as a model compression technique, which obtains efficient models by converting floating-point weights and activations in the neural network into lower-bit integers. Quantization has been proven to work well on convolutional neural networks and transformer-based models. Despite the decency of these models, recent works have shown that MLP-based models are able to achieve comparable results on various tasks ranging from computer vision, NLP to 3D point cloud, while achieving higher throughput due to the parallelism and network simplicity. However, as we show in the paper, directly applying quantization to MLP-based models will lead to significant accuracy degradation. Based on our analysis, two major issues account for the accuracy gap: 1) the range of activations in MLP-based models can be too large to quantize, and 2) specific components in the MLP-based models are sensitive to quantization. Consequently, we propose to 1) apply LayerNorm to control the quantization range of activations, 2) utilize bounded activation functions, 3) apply percentile quantization on activations, 4) use our improved module named multiple token-mixing MLPs, and 5) apply linear asymmetric quantizer for sensitive operations. Equipped with the abovementioned techniques, our Q-MLP models can achieve 79.68% accuracy on ImageNet with 8-bit uniform quantization (model size 30 MB) and 78.47% with 4-bit quantization (15 MB).
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 27 of its 33 references that are in the map. First posted on arXiv 14 Sep 2022.
Builds on
27 of 33 references.
References · 27
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,415
- 2019Searching for MobileNetV3cited by 1,984
- 2017Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inferencecited by 1,548
- 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,441
- 2021A Survey of Quantization Methods for Efficient Neural Network Inferencecited by 798
- 2018PACT: Parameterized Clipping Activation for Quantized Neural Networkscited by 456
- 2019HAWQ: Hessian AWare Quantization of Neural Networks with Mixed-Precisioncited by 387
- 2022Rethinking Network Design and Local Geometry in Point Cloud: A Simple Residual MLP Frameworkcited by 376
- 2021Pay Attention to MLPscited by 367
15 more
- 2021ResMLP: Feedforward networks for image classification with data-efficient trainingcited by 338
- 2019PyHessian: Neural Networks Through the Lens of the Hessiancited by 291
- 2021Post-Training Quantization for Vision Transformercited by 274
- 2018LQ-Nets: Learned Quantization for Highly Accurate and Compact Deep Neural Networkscited by 272
- 2020ZeroQ: A Novel Zero Shot Quantization Frameworkcited by 265
- 2019HAWQ-V2: Hessian Aware trace-Weighted Quantization of Neural Networkscited by 250
- 2017Incremental Network Quantization: Towards Lossless CNNs with Low-Precision Weightscited by 211
- 2022Patches Are All You Need?cited by 201
- 2021S2-MLP: Spatial-Shift MLP Architecture for Visioncited by 83
- 2017Adaptive Quantization for Deep Neural Networkcited by 67
- 2020EasyQuant: Post-training Quantization via Scale Optimizationcited by 57
- 2018Value-aware Quantization for Training and Inference of Neural Networkscited by 49
- 2022pNLP-Mixer: an Efficient all-MLP Architecture for Languagecited by 19
- 2021Rethinking Token-Mixing MLP for MLP-based Vision Backbonecited by 15
- 2021HAO: Hardware-aware neural Architecture Optimization for Efficient Inferencecited by 14
Built on by
Citing papers per year: 2023: 1; 2024: 4.
5 papers.
- 2024Quamba: A Post-Training Quantization Recipe for Selective State Space Modelscited by 25
- 2023QD-BEV : Quantization-aware View-guided Distillation for Multi-view 3D Object Detectioncited by 8
- 2024DQRM: Deep Quantized Recommendation Modelscited by 2
- 2024Fully-fused Multi-Layer Perceptrons on Intel Data Center GPUscited by 0
- 2024Stochastic Communication Avoidance for Recommendation Systemscited by 0
- 2024Stochastic Communication Avoidance for Recommendation Systems3 Nov 2024
- 2024DQRM: Deep Quantized Recommendation Models26 Oct 2024
- 2024Quamba: A Post-Training Quantization Recipe for Selective State Space Models17 Oct 2024
- 2024Fully-fused Multi-Layer Perceptrons on Intel Data Center GPUs26 Mar 2024
- 2023QD-BEV : Quantization-aware View-guided Distillation for Multi-view 3D Object Detection21 Aug 2023