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

基于超定基的大语言模型量化

Quantization of Large Language Models with an Overdetermined Basis

Moscow Institute of Physics and Technology(莫斯科物理技术学院);Skolkovo Institute of Science and Technology(斯科尔科沃科学技术研究所);Artificial Intelligence Research Institute(人工智能研究院)

Daniil Merkulov, Daria Cherniuk, Alexander Rudikov, Ivan Oseledets, Ekaterina Muravleva, Aleksandr Mikhalev, Boris Kashin

AI总结:

本研究提出基于Kashin表示的Kashin Quantization量化算法,通过将张量分解为两个范数受限因子并利用其峰值集中特性用质心替换实现量化,在文本任务中实现压缩同时保持或提升模型性能。

摘要:

本文提出了一种基于Kashin表示(卡申表示)原理的数据量化算法。该方法的核心是将任意给定向量、矩阵或张量分解为两个因子:第一个因子保持较小的无穷范数,第二个因子与正交矩阵相乘后范数也受到类似约束。令人意外的是,分解后的因子元素高度集中在若干峰值附近,这使得我们可以高效地用对应的质心替换它们以实现量化。我们研究了所提方法的理论性质,并在下一词预测任务以及一组文本分类下游任务中严格评估了该压缩算法。结果表明,Kashin Quantization(卡申量化)在保证数据压缩的同时,模型性能达到了具有竞争力或更优的水平,是数据量化领域的一项重要进展。

英文摘要:

In this paper, we introduce an algorithm for data quantization based on the principles of Kashin representation. This approach hinges on decomposing any given vector, matrix, or tensor into two factors. The first factor maintains a small infinity norm, while the second exhibits a similarly constrained norm when multiplied by an orthogonal matrix. Surprisingly, the entries of factors after decomposition are well-concentrated around several peaks, which allows us to efficiently replace them with corresponding centroids for quantization purposes. We study the theoretical properties of the proposed approach and rigorously evaluate our compression algorithm in the context of next-word prediction tasks and on a set of downstream tasks for text classification. Our findings demonstrate that Kashin Quantization achieves competitive or superior quality in model performance while ensuring data compression, marking a significant advancement in the field of data quantization.

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

↑