We study the challenging task of neural network quantization without end-to-end retraining, called Post-training Quantization (PTQ). PTQ usually requires a small subset of training data but produces less powerful quantized models than Quantization-Aware Training (QAT). In this work, we propose a novel PTQ framework, dubbed BRECQ, which pushes the limits of bitwidth in PTQ down to INT2 for the first time. BRECQ leverages the basic building blocks in neural networks and reconstructs them one-by-one. In a comprehensive theoretical study of the second-order error, we show that BRECQ achieves a good balance between cross-layer dependency and generalization error. To further employ the power of quantization, the mixed precision technique is incorporated in our framework by approximating the inter-layer and intra-layer sensitivity. Extensive experiments on various handcrafted and searched neural architectures are conducted for both image classification and object detection tasks. And for the first time we prove that, without bells and whistles, PTQ can attain 4-bit ResNet and MobileNetV2 comparable with QAT and enjoy 240 times faster production of quantized models. Codes are available at https://github.com/yhhhli/BRECQ.
Automatic heterogeneous quantization of deep neural networks for low-latency inference on the edge for particle detectors
Palo Alto Networks(帕洛阿尔托网络公司);Google LLC(谷歌有限责任公司);Institute of Physics Belgrade(贝尔格莱德物理研究所);European Organization for Nuclear Research (CERN)(欧洲核子研究组织(CERN));California Institute of Technology(加州理工学院)
When W4A4 Breaks Camouflaged Object Detection: Token-Group Dual-Constraint Activation Quantization
VCIP, College of Computer Science, Nankai University(南开大学计算机科学学院VCIP);School of Computer Science and Engineering, Tianjin University of Technology(天津工业大学计算机科学与工程学院);Institute for Infocomm Research, A*STAR(A*STAR信息与通信研究所);Academy for Advanced Interdisciplinary Studies, Nankai University(南开大学先进跨学科研究院);Nankai International Advanced Research Institute, Shenzhen Futian(南开国际先进研究院,深圳福田)
Shedding the Bits: Pushing the Boundaries of Quantization with Minifloats on FPGAs
School of Computing, National University of Singapore(新加坡国立大学计算机学院);AMD Research and Advanced Development(AMD研究与高级开发部);Tampere University(坦佩雷大学);AMD(AMD公司)
Pushing the Limits of Block Rotations in Post-Training Quantization
Advanced Micro Devices, Inc. (AMD)(Advanced Micro Devices公司);State University of New York at Buffalo(纽约州立大学布法罗分校);Norwegian University of Science(挪威科学与技术大学)
经过收敛训练的超参数化网络在计算机视觉和自然语言处理等领域表现出令人印象深刻的性能。在这些领域中推动最先进的任务,对应于这些模型变得越来越大,机器学习从业者越来越难以使用,因为内存和存储需求不断增加,更不用说更大的碳足迹了。因此,近年来,模型压缩技术出现了复苏,特别是对于深度卷积神经网络和基于自注意力的网络,如Transformer。因此,本文及时概述了用于深度神经网络的新旧压缩技术,包括修剪、量化、张量分解、知识蒸馏及其组合。我们假设基本熟悉深度学习架构\footnote{For an introduction to deep learning, see ~\citet{goodfellow2016deep}},即循环神经网络~ \citep [(RNNs)][]{rumelhart 1985 learning,hochreiter 1997 long},卷积神经网络~ \citep{fukushima1980neocognitron} ~ \footnote{For an up to date overview see~\citet{khan2019survey}}和基于自我注意力的网络~ \citep{vaswani2017attention} \footnote{For a general overview of self-attention networks, see ~…
Achieving binary weight and activation for LLMs using Post-Training Quantization
MAIS, Institute of Automation, Chinese Academy of Sciences(自动化研究所,中国科学院);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);Central Media Technology Institute, Huawei Technologies Ltd.(华为技术有限公司媒体技术研究所)
Illinois Institute of Technology(伊利诺伊理工学院);Hong Kong University of Science and Technology(香港科技大学);Texas State University(德克萨斯州立大学);Harbin Institute of Technology, Shenzhen(哈尔滨工业大学(深圳))