arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.12311cs.LG
收藏

混合尺度:面向大语言模型的内存高效令牌自适应二值化方法

Mixture of Scales: Memory-Efficient Token-Adaptive Binarization for Large Language Models

Sungkyunkwan University(成均馆大学);Seoul National University(首尔大学);SqueezeBits Inc.(SqueezeBits公司)

Dongwon Jo, Taesu Kim, Yulhwa Kim, Jae-Joon Kim

AI总结:

针对传统二值化会降低大语言模型性能的问题,提出令牌自适应二值化方法BinaryMoS,通过多缩放专家动态生成自适应缩放因子,在保持高压缩效率的同时提升了二值化模型性能,甚至优于2位量化方法。

摘要:

二值化将权重参数转换为二进制值,已成为缩减大语言模型(LLM)体积的有效策略。但典型二值化技术会显著降低LLM的语言性能。为解决该问题,我们提出一种名为Mixture of Scales(BinaryMoS,混合尺度二值化)的新型二值化技术。与传统方法不同,BinaryMoS为二值权重配置多个缩放专家,针对每个令牌动态融合这些专家以自适应生成缩放因子。这种令牌自适应方法通过对二值权重值进行上下文调整,提升了二值化LLM的表征能力。此外,由于该自适应过程仅涉及缩放因子而非整个权重矩阵,BinaryMoS保持了与传统静态二值化方法相近的压缩效率。实验结果表明,BinaryMoS在多种自然语言处理任务上优于传统二值化技术,甚至性能超过2位量化方法,同时保持了与静态二值化技术相近的模型体积。

英文摘要:

Binarization, which converts weight parameters to binary values, has emerged as an effective strategy to reduce the size of large language models (LLMs). However, typical binarization techniques significantly diminish linguistic effectiveness of LLMs. To address this issue, we introduce a novel binarization technique called Mixture of Scales (BinaryMoS). Unlike conventional methods, BinaryMoS employs multiple scaling experts for binary weights, dynamically merging these experts for each token to adaptively generate scaling factors. This token-adaptive approach boosts the representational power of binarized LLMs by enabling contextual adjustments to the values of binary weights. Moreover, because this adaptive process only involves the scaling factors rather than the entire weight matrix, BinaryMoS maintains compression efficiency similar to traditional static binarization methods. Our experimental results reveal that BinaryMoS surpasses conventional binarization techniques in various natural language processing tasks and even outperforms 2-bit quantization methods, all while maintaining similar model size to static binarization techniques.

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

↑