TensorX
返回文献探索

Paper · arXiv 2504.18415

BitNet v2: Native 4-bit Activations with Hadamard Transformation for 1-bit LLMs

Hongyu Wang, Shuming Ma, Furu Wei

53 upvotesApril 25, 2025arXiv 预印本
AI 摘要

BitNet v2 enables native 4-bit activation quantization for 1-bit Large Language Models by using an online Hadamard transformation to mitigate activation outliers, achieving performance comparable to 8-bit activations with reduced memory and computational costs.

Large Language ModelsLLMSBitNetH-BitLinearHadamard transformationactivation quantizationactivation outliersattention networkfeed-forward network

Abstract

Efficient deployment of 1-bit Large Language Models (LLMs) is hindered by activation outliers, which complicate quantization to low bit-widths. We introduce BitNet v2, a novel framework enabling native 4-bit activation quantization for 1-bit LLMs. To tackle outliers in attention and feed-forward network activations, we propose H-BitLinear, a module applying an online Hadamard transformation prior to activation quantization. This transformation smooths sharp activation distributions into more Gaussian-like forms, suitable for low-bit representation. Experiments show BitNet v2 trained from scratch with 8-bit activations matches BitNet b1.58 performance. Crucially, BitNet v2 achieves minimal performance degradation when trained with native 4-bit activations, significantly reducing memory footprint and computational cost for batched inference.

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

京ICP备2026059466号
BitNet v2: Native 4-bit Activations with Hadamard Transformation for 1-bit LLMs | TensorX