Adding tiny full-precision matrices makes 4-bit LLMs work like their bigger siblings.
A novel method to fix quantization errors in LLMs by adding low-rank weight matrices that work on unquantized activations, enabling efficient 4-bit quantization.
-----
https://arxiv.org/abs/2412.07902
π€ Original Problem:
β Current LLM quantization methods struggle with information loss when compressing both weights and activations to 4-bit precision (W4A4), leading to significant accuracy drops.
β Existing solutions can't effectively handle activation quantization errors at lower bit precision.
-----
π§ Solution in this Paper:
β Introduces LRC (Low-Rank Correction) that adds low-rank weight matrices in full precision to fix quantization errors.
β Uses joint optimization to balance between quantized weights and additional low-rank matrices.
β Processes quantized activations with quantized weights while simultaneously applying low-rank corrections on unquantized activations.
β Compatible with existing techniques like QuaRot and groupsizing.
-----
π‘ Key Insights:
β Low-rank matrices with just 10% of original size can cut accuracy loss by half
β Increasing rank to 30% completely eliminates accuracy gap
β Weight-only quantization needs minimal error correction
β Simple round-to-nearest activation quantization is sufficient
-----
π Results:
β Tested on Phi-3, Llama-2 (7B, 13B), Llama-3 (8B), and Mixtral models
β With 10% rank size, reduces accuracy gap by >50%
β With 30% rank size, achieves near-original model performance
β Maintains reasonable computational overhead










