arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.17269stat.MLcs.LG
收藏

权重量化对学习模型的影响:基于典型案例分析

Effect of Weight Quantization on Learning Models by Typical Case Analysis

The University of Tokyo(东京大学);The Institute of Statistical Mathematics(统计数理研究所);RIKEN AIP(理化学研究所革新智能统合研究中心)

Shuhei Kashiwamura, Ayaka Sakata, Masaaki Imaizumi

AI总结:

针对大模型量化超参数选择研究不足的问题,采用统计物理典型案例分析的复本法探究超参数对简单学习模型量化的影响,得出三项关键结论并通过近似消息传递算法验证。

摘要:

本文研究了大规模数据分析模型中使用的量化方法及其超参数选择。近期数据分析规模的激增大幅提升了计算资源需求。为解决这一问题,量化模型权重已成为深度学习等数据分析应用中的普遍做法,量化对于在计算资源有限的设备上部署大模型尤为关键。然而,权重量化的比特数、取值范围等量化超参数的选择仍是一个研究不足的领域。本研究采用统计物理学中的典型案例分析方法,具体为replica方法(复本法),探究超参数对简单学习模型量化的影响。分析得出三项关键结论:(i)当比特数较少且量化宽度较大时,会出现不稳定的超参数相,即replica symmetry breaking(复本对称破缺);(ii)存在一个最优量化宽度,可使误差最小化;(iii)量化会推迟过参数化的出现,有助于缓解双下降现象所体现的过拟合问题。研究还发现非均匀量化可提升稳定性。此外,我们开发了一种approximate message-passing algorithm(近似消息传递算法)来验证理论结果。

英文摘要:

This paper examines the quantization methods used in large-scale data analysis models and their hyperparameter choices. The recent surge in data analysis scale has significantly increased computational resource requirements. To address this, quantizing model weights has become a prevalent practice in data analysis applications such as deep learning. Quantization is particularly vital for deploying large models on devices with limited computational resources. However, the selection of quantization hyperparameters, like the number of bits and value range for weight quantization, remains an underexplored area. In this study, we employ the typical case analysis from statistical physics, specifically the replica method, to explore the impact of hyperparameters on the quantization of simple learning models. Our analysis yields three key findings: (i) an unstable hyperparameter phase, known as replica symmetry breaking, occurs with a small number of bits and a large quantization width; (ii) there is an optimal quantization width that minimizes error; and (iii) quantization delays the onset of overparameterization, helping to mitigate overfitting as indicated by the double descent phenomenon. We also discover that non-uniform quantization can enhance stability. Additionally, we develop an approximate message-passing algorithm to validate our theoretical results.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑