Retraining-free Model Quantization via One-Shot Weight-Coupling Learning

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Tang, Chen, Meng, Yuan, Jiang, Jiacheng, Xie, Shuzhao, Lu, Rongwei, Ma, Xinzhu, Wang, Zhi, Zhu, Wenwu
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866929386038493184
author Tang, Chen
Meng, Yuan
Jiang, Jiacheng
Xie, Shuzhao
Lu, Rongwei
Ma, Xinzhu
Wang, Zhi
Zhu, Wenwu
author_facet Tang, Chen
Meng, Yuan
Jiang, Jiacheng
Xie, Shuzhao
Lu, Rongwei
Ma, Xinzhu
Wang, Zhi
Zhu, Wenwu
contents Quantization is of significance for compressing the over-parameterized deep neural models and deploying them on resource-limited devices. Fixed-precision quantization suffers from performance drop due to the limited numerical representation ability. Conversely, mixed-precision quantization (MPQ) is advocated to compress the model effectively by allocating heterogeneous bit-width for layers. MPQ is typically organized into a searching-retraining two-stage process. In this paper, we devise a one-shot training-searching paradigm for mixed-precision model compression. Specifically, in the first stage, all potential bit-width configurations are coupled and thus optimized simultaneously within a set of shared weights. However, our observations reveal a previously unseen and severe bit-width interference phenomenon among highly coupled weights during optimization, leading to considerable performance degradation under a high compression ratio. To tackle this problem, we first design a bit-width scheduler to dynamically freeze the most turbulent bit-width of layers during training, to ensure the rest bit-widths converged properly. Then, taking inspiration from information theory, we present an information distortion mitigation technique to align the behavior of the bad-performing bit-widths to the well-performing ones. In the second stage, an inference-only greedy search scheme is devised to evaluate the goodness of configurations without introducing any additional training costs. Extensive experiments on three representative models and three datasets demonstrate the effectiveness of the proposed method. Code can be available on \href{https://www.github.com/1hunters/retraining-free-quantization}{https://github.com/1hunters/retraining-free-quantization}.
format Preprint
id arxiv_https___arxiv_org_abs_2401_01543
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Retraining-free Model Quantization via One-Shot Weight-Coupling Learning
Tang, Chen
Meng, Yuan
Jiang, Jiacheng
Xie, Shuzhao
Lu, Rongwei
Ma, Xinzhu
Wang, Zhi
Zhu, Wenwu
Computer Vision and Pattern Recognition
Quantization is of significance for compressing the over-parameterized deep neural models and deploying them on resource-limited devices. Fixed-precision quantization suffers from performance drop due to the limited numerical representation ability. Conversely, mixed-precision quantization (MPQ) is advocated to compress the model effectively by allocating heterogeneous bit-width for layers. MPQ is typically organized into a searching-retraining two-stage process. In this paper, we devise a one-shot training-searching paradigm for mixed-precision model compression. Specifically, in the first stage, all potential bit-width configurations are coupled and thus optimized simultaneously within a set of shared weights. However, our observations reveal a previously unseen and severe bit-width interference phenomenon among highly coupled weights during optimization, leading to considerable performance degradation under a high compression ratio. To tackle this problem, we first design a bit-width scheduler to dynamically freeze the most turbulent bit-width of layers during training, to ensure the rest bit-widths converged properly. Then, taking inspiration from information theory, we present an information distortion mitigation technique to align the behavior of the bad-performing bit-widths to the well-performing ones. In the second stage, an inference-only greedy search scheme is devised to evaluate the goodness of configurations without introducing any additional training costs. Extensive experiments on three representative models and three datasets demonstrate the effectiveness of the proposed method. Code can be available on \href{https://www.github.com/1hunters/retraining-free-quantization}{https://github.com/1hunters/retraining-free-quantization}.
title Retraining-free Model Quantization via One-Shot Weight-Coupling Learning
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2401.01543