R^2: Range Regularization for Model Compression and Quantization

14 Mar 2023  ·  Arnav Kundu, Chungkuk Yoo, Srijan Mishra, Minsik Cho, Saurabh Adya ·

Model parameter regularization is a widely used technique to improve generalization, but also can be used to shape the weight distributions for various purposes. In this work, we shed light on how weight regularization can assist model quantization and compression techniques, and then propose range regularization (R^2) to further boost the quality of model optimization by focusing on the outlier prevention. By effectively regulating the minimum and maximum weight values from a distribution, we mold the overall distribution into a tight shape so that model compression and quantization techniques can better utilize their limited numeric representation powers. We introduce L-inf regularization, its extension margin regularization and a new soft-min-max regularization to be used as a regularization loss during full-precision model training. Coupled with state-of-the-art quantization and compression techniques, models trained with R^2 perform better on an average, specifically at lower bit weights with 16x compression ratio. We also demonstrate that R^2 helps parameter constrained models like MobileNetV1 achieve significant improvement of around 8% for 2 bit quantization and 7% for 1 bit compression.

PDF Abstract

Results from the Paper


Task Dataset Model Metric Name Metric Value Global Rank Result Benchmark
Model Compression ImageNet ResNet-18 + 1bit-1dim model compression using DKM Top-1 59.7 # 10
Quantization ImageNet ResNet-18 + PACT + R2Loss Top-1 Accuracy (%) 68.45 # 27
Weight bits 2 # 1
Activation bits 4 # 1
Quantization ImageNet MobileNet-v1 + LSQ + R2Loss Top-1 Accuracy (%) 69.64 # 26
Model Compression ImageNet MobileNet-v1 + 1bit-1dim model compression using DKM Top-1 52.58 # 12
Quantization ImageNet MobileNet-v1 + EWGS + R2Loss Top-1 Accuracy (%) 69.79 # 25
Weight bits 4 # 4
Model Compression ImageNet ResNet-18 + 4bit-4dim model compression using DKM Top-1 66.1 # 7
Model Compression ImageNet MobileNet-v1 + 4bit-4dim model compression using DKM Top-1 61.4 # 9
Model Compression ImageNet MobileNet-v1 + 2bit-2dim model compression using DKM Top-1 53.99 # 11
Model Compression ImageNet ResNet-18 + 2bit-2dim model compression using DKM Top-1 64.7 # 8
Model Compression ImageNet MobileNet-v1 + 4bit-1dim model compression using DKM Top-1 69.63 # 4
Model Compression ImageNet ResNet-18 + 4bit-1dim model compression using DKM Top-1 70.52 # 3
Model Compression ImageNet MobileNet-v1 + 2bit-1dim model compression using DKM Top-1 67.62 # 6
Model Compression ImageNet ResNet-18 + 2bit-1dim model compression using DKM Top-1 68.63 # 5
Model Compression QNLI MobileBERT + 2bit-1dim model compression using DKM Accuracy 82.13 # 1
Model Compression QNLI MobileBERT + 1bit-1dim model compression using DKM Accuracy 63.17 # 2

Methods