paper-with-me

홈 › Papers

Network Quantization with Element-wise Gradient Scaling

2021-04-02 · CVPR 2021 1 · Junghyup Lee, Dohyung Kim, Bumsub Ham

Network quantization aims at reducing bit-widths of weights and/or activations, particularly important for implementing deep neural networks with limited hardware resources. Most methods use the straight-through estimator (STE) to train quantized networks, which avoids a zero-gradient problem by replacing a derivative of a discretizer (i.e., a round function) with that of an identity function. Although quantized networks exploiting the STE have shown decent performance, the STE is sub-optimal in that it simply propagates the same gradient without considering discretization errors between inputs and outputs of the discretizer. In this paper, we propose an element-wise gradient scaling (EWGS), a simple yet effective alternative to the STE, training a quantized network better than the STE in terms of stability and accuracy. Given a gradient of the discretizer output, EWGS adaptively scales up or down each gradient element, and uses the scaled gradient as the one for the discretizer input to train quantized networks via backpropagation. The scaling is performed depending on both the sign of each gradient element and an error between the continuous input and discrete output of the discretizer. We adjust a scaling factor adaptively using Hessian information of a network. We show extensive experimental results on the image classification datasets, including CIFAR-10 and ImageNet, with diverse network architectures under a wide range of bit-width settings, demonstrating the effectiveness of our method.

📄 PDF Abstract BibTeX arXiv:2104.00903

Code (1)

cvlab-yonsei/EWGS 공식 구현 pytorch

Tasks

image-classificationImage ClassificationQuantization

Similar Papers 제목 키워드 기반

PikeLPN: Mitigating Overlooked Inefficiencies of Low-Precision Neural Networks

2024-01-01 · CVPR 2024 1 · Marina Neseem, Conor McCullough, Randy Hsin, Chas Leichner 외

Low-precision quantization is recognized for its efficacy in neural network optimization. Our analysis reveals that non-quantized elementwise operations which are prevalent in layers such as parameterized activation …

Quantization

Breaking the Blocks: Continuous Low-Rank Decomposed Scaling for Unified LLM Quantization and Adaptation

2026-01-30 · Pingzhi Tang, Ruijie Zhou, Fanxu Meng, Wenjie Pei 외 arxiv

Current quantization methods for LLMs predominantly rely on block-wise structures to maintain efficiency, often at the cost of representational flexibility. In this work, we demonstrate that element-wise quantization can…

veScale-FSDP: Flexible and High-Performance FSDP at Scale

2026-02-25 · Zezhou Wang, Youjie Li, Zhiqi Lin, Jiacheng Yang 외 arxiv

Fully Sharded Data Parallel (FSDP), also known as Zero Redundancy Optimizer (ZeRO), is widely used for large-scale model training, because of its memory efficiency and minimal intrusion on model code. However, existing F…

PTQ-SL: Exploring the Sub-layerwise Post-training Quantization

2021-10-15 · Zhihang Yuan, Yiqi Chen, Chenhao Xue, Chenguang Zhang 외

Network quantization is a powerful technique to compress convolutional neural networks. The quantization granularity determines how to share the scaling factors in weights, which affects the performance of network quanti…

Quantization

Few-Bit Backward: Quantized Gradients of Activation Functions for Memory Footprint Reduction

2022-02-01 · Georgii Novikov, Daniel Bershatsky, Julia Gusak, Alex Shonenkov 외

Memory footprint is one of the main limiting factors for large neural network training. In backpropagation, one needs to store the input to each operation in the computational graph. Every modern neural network model has…

Neural Network CompressionQuantization