EvoPress:通过进化搜索实现精确的动态模型压缩
EvoPress: Accurate Dynamic Model Compression via Evolutionary Search
AI总结:
本文提出EvoPress,一个用于动态LLM压缩的进化框架,通过将动态压缩表述为通用优化问题,高效识别最优压缩配置,在多种模型和压缩技术上实现了最先进的性能。
摘要:
大型语言模型(LLMs)的高昂计算成本引发了大量关于LLM压缩的研究,方法包括量化、稀疏化或结构化剪枝。该领域的一个新前沿是动态、非均匀的压缩方法,这些方法通过逐块甚至逐层调整压缩级别(例如稀疏度)来最小化精度损失,同时保证全局压缩阈值。然而,当前的方法依赖于估计给定层的重要性,隐含地假设各层对整体压缩误差的贡献是独立的。我们从一个动机观察出发,即这种独立性假设通常不适用于LLM压缩:进一步剪枝模型甚至可能显著恢复性能。为了解决这个问题,我们提出了EvoPress,一个用于动态LLM压缩的新型进化框架。通过将动态压缩表述为一个通用优化问题,EvoPress以高效的方式识别最优压缩配置,并泛化到不同的模型和压缩技术。通过EvoPress,我们在Llama、Mistral和Phi模型的动态压缩方面实现了最先进的性能,为结构化剪枝(块/层丢弃)、非结构化稀疏化和动态位宽量化设定了新的基准。我们的代码可在https://github.com/IST-DASLab/EvoPress}获取。
英文摘要:
The high computational costs of large language models (LLMs) have led to a flurry of research on LLM compression, via methods such as quantization, sparsification, or structured pruning. A new frontier in this area is given by dynamic, non-uniform compression methods, which adjust the compression levels (e.g., sparsity) per-block or even per-layer in order to minimize accuracy loss, while guaranteeing a global compression threshold. Yet, current methods rely on estimating the importance of a given layer, implicitly assuming that layers contribute independently to the overall compression error. We begin from the motivating observation that this independence assumption does not generally hold for LLM compression: pruning a model further may even significantly recover performance. To address this, we propose EvoPress, a novel evolutionary framework for dynamic LLM compression. By formulating dynamic compression as a general optimization problem, EvoPress identifies optimal compression profiles in a highly efficient manner, and generalizes across diverse models and compression techniques. Via EvoPress, we achieve state-of-the-art performance for dynamic compression of Llama, Mistral, and Phi models, setting new benchmarks for structural pruning (block/layer dropping), unstructured sparsity, and quantization with dynamic bitwidths. Our code is available at https://github.com/IST-DASLab/EvoPress}.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。