TensorX
返回文献探索

Paper · arXiv 2411.04965

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

Hongyu Wang, Shuming Ma, Furu Wei

70 upvotesNovember 7, 2024arXiv 预印本
AI 摘要

BitNet a4.8 enhances the efficiency of large language models through 4-bit quantization and sparsification, achieving equivalent performance to BitNet b1.58 with reduced inference costs.

1-bit Large Language Models (LLMs)BitNet b1.58BitNet a4.8hybrid quantizationsparsificationquantization errors4-bit activationsattention layersfeed-forward network layers8-bit quantizationINT4/FP4 kernels3-bit KV cache

Abstract

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.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号
BitNet a4.8: 4-bit Activations for 1-bit LLMs | TensorX