arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.15802cs.LGcs.AIcs.ITmath.IT
收藏

一种用于构建压缩策略的通用误差理论分析框架

A General Error-Theoretical Analysis Framework for Constructing Compression Strategies

Institute of Computing Technology, Chinese Academy of Sciences, Beijing, China(中国科学院计算技术研究所);University of Chinese Academy of Sciences, Beijing, China(中国科学院大学);Peng Cheng Laboratory, Shenzhen, China(鹏城实验室);the School of Microelectronics, South China University of Technology, Guangzhou, China(华南理工大学微电子学院);The University of Hong Kong(香港大学)

Boyang Zhang, Daning Cheng, Yunquan Zhang, Meiqi Tu, Fangming Liu, Jiake Tian

AI总结:

本文提出压缩误差理论框架,通过几何方法优化各层压缩水平,实现高效参数压缩且性能损失小。

摘要:

深度模型参数规模和计算复杂度的指数增长对高效部署提出了重大挑战。现有压缩方法的核心问题在于模型不同层对压缩水平的容忍度存在显著差异。例如,模型的第一层通常可以承受比最后一层更高的压缩水平而不影响性能。因此,关键挑战在于如何在层间分配压缩水平以在最小化性能损失的同时最大化参数减少。为了解决这一挑战,我们提出了压缩误差理论(CET)框架,旨在确定每层的最佳压缩水平。以量化为例,CET利用微分扩展和代数几何来重建量化误差的二次形式作为椭球面和抛物面,并利用其几何结构定义一个误差子空间。为了识别具有最小性能损失的误差子空间,通过执行几何空间的正交分解,CET将误差子空间的优化过程转化为互补问题。最终的理论分析表明,沿着主轴构建量化子空间会导致最小的性能退化。通过理论的实验验证,CET在压缩时能够显著保留性能。具体而言,在ResNet-34模型上,CET实现了接近11倍的参数压缩,同时性能甚至超过了原始模型。

英文摘要:

The exponential growth in parameter size and computational complexity of deep models poses significant challenges for efficient deployment. The core problem of existing compression methods is that different layers of the model have significant differences in their tolerance to compression levels. For instance, the first layer of a model can typically sustain a higher compression level compared to the last layer without compromising performance. Thus, the key challenge lies in how to allocate compression levels across layers in a way that minimizes performance loss while maximizing parameter reduction. To address this challenge, we propose a Compression Error Theory (CET) framework, designed to determine the optimal compression level for each layer. Taking quantization as an example, CET leverages differential expansion and algebraic geometry to reconstruct the quadratic form of quantization error as ellipsoids and hyperbolic paraboloids, and utilizes their geometric structures to define an error subspace. To identify the error subspace with minimal performance loss, by performing orthogonal decomposition of the geometric space, CET transforms the optimization process of the error subspace into a complementary problem. The final theoretical analysis shows that constructing the quantization subspace along the major axis results in minimal performance degradation. Through experimental verification of the theory, CET can greatly retain performance while compressing. Specifically, on the ResNet-34 model, CET achieves nearly 11$\times$ parameter compression while even surpassing performance comparable to the original model.

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

↑