arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2507.03052cs.LGcs.AI
收藏

从2:4到8:16稀疏模式在LLM中的应用:用于异常值和方差校正的权重

From 2:4 to 8:16 sparsity patterns in LLMs for Outliers and Weights with Variance Correction

Moscow Independent Research Institute of Artificial Intelligence(莫斯科独立人工智能研究 institute);MIL Team(MIL 团队);MWS AI(MWS 人工智能);Applied AI(应用人工智能)

Egor Maximov, Yulia Kuzkina, Azamat Kanametov, Alexander Prutko, Aleksei Goncharov, Maxim Zhelnin, Egor Shvetsov

AI总结:

本文研究了8:16半结构化稀疏模式在LLM中的应用,通过方差校正和权重平等化技术提升稀疏模型性能,展示其在压缩与精度间的平衡优势。

摘要:

随着大型语言模型(LLM)规模的增长,高效的压缩技术如量化和稀疏化变得至关重要。尽管量化在降低精度的同时保持了性能,但结构化稀疏方法如N:M稀疏化由于灵活性有限和对异常权重敏感而效果不佳。本文探索了8:16半结构化稀疏性,证明其能够超越性能阈值——在等效内存约束下,压缩模型的精度可与未压缩或更小的模型相匹配。与2:4稀疏性相比,8:16提供了更高的灵活性,且存储开销更小(0.875 vs. 0.75 bits/element)。此外,本文还应用了稀疏结构模式来处理显著权重,表明结构化稀疏性处理异常值在与无结构方法竞争时可达到等效或更好的结果。最后,本文证明了简单的技术如方差校正和SmoothQuant类的权重平等化能够提升稀疏模型的性能。

英文摘要:

As large language models (LLMs) grow in size, efficient compression techniques like quantization and sparsification are critical. While quantization maintains performance with reduced precision, structured sparsity methods, such as N:M sparsification, often fall short due to limited flexibility, and sensitivity to outlier weights. We explore 8:16 semi-structured sparsity, demonstrating its ability to surpass the Performance Threshold-where a compressed model matches the accuracy of its uncompressed or smaller counterpart under equivalent memory constraints. Compared to 2:4 sparsity, 8:16 offers greater flexibility with minimal storage overhead (0.875 vs. 0.75 bits/element). We also apply sparse structured patterns for salient weights, showing that structured sparsity for outliers is competitive with unstructured approaches leading to equivalent or better results. Finally, we demonstrate that simple techniques such as variance correction and SmoothQuant like weight equalization improve sparse models performance.

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

↑