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

BitNet a4.8:1位大语言模型的4位激活

BitNet a4.8: 4-bit Activations for 1-bit LLMs

Microsoft Research(微软研究院);University of Chinese Academy of Sciences(中国科学院大学)

Hongyu Wang, Shuming Ma, Furu Wei

AI总结:

本文提出BitNet a4.8,通过混合量化与稀疏化策略,在1位LLM中实现4位激活,性能与BitNet b1.58相当,推理更快,且仅激活55%参数并支持3位KV缓存,提升部署效率。

摘要:

近期关于1位大语言模型(LLMs)的研究,如BitNet b1.58,为降低LLMs推理成本同时保持其性能提供了一个有前景的方向。在这项工作中,我们引入了BitNet a4.8,使得1位LLMs能够使用4位激活。BitNet a4.8采用混合量化与稀疏化策略,以减轻由异常通道引入的量化误差。具体而言,我们对注意力层和前馈网络层的输入使用4位激活,同时对中间状态进行稀疏化处理,并随后进行8位量化。大量实验表明,BitNet a4.8在等效训练成本下,性能与BitNet b1.58相当,同时由于支持4位(INT4/FP4)内核,推理速度更快。此外,BitNet a4.8仅激活55%的参数,并支持3位KV缓存,进一步提升了大规模LLM部署与推理的效率。

英文摘要:

Recent research on the 1-bit Large Language Models (LLMs), such as BitNet b1.58, presents a promising direction for reducing the inference cost of LLMs while maintaining their performance. In this work, we introduce BitNet a4.8, enabling 4-bit activations for 1-bit LLMs. BitNet a4.8 employs a hybrid quantization and sparsification strategy to mitigate the quantization errors introduced by the outlier channels. Specifically, we utilize 4-bit activations for inputs to the attention and feed-forward network layers, while sparsifying intermediate states followed with 8-bit quantization. Extensive experiments demonstrate that BitNet a4.8 achieves performance comparable to BitNet b1.58 with equivalent training costs, while being faster in inference with enabling 4-bit (INT4/FP4) kernels. Additionally, BitNet a4.8 activates only 55% of parameters and supports 3-bit KV cache, further enhancing the efficiency of large-scale LLM deployment and inference.

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

↑