Overview of natively supported quantization schemes in đ¤ Transformers
Read the original on Hugging Face Blog âThe Flow has not summarised this story yet â read it at Hugging Face Blog.
The Flow has not summarised this story yet â read it at Hugging Face Blog.
The paper investigates how residual connections in transformers affect the distribution of activations, making them heavyâtailed and more difficult to quantize accurately. By comparing standard residual transformers with residualâfree variants, the authors show that residuals increase quantization error and accuracy loss at low precision, while residualâfree models maintain nearâGaussian activations and better robustness to lowâbit quantization. They further demonstrate that residualâfree transformers can be trained effectively using orthogonal initialization, spectral or secondâorder optimization, and depthâaware scaling of attention temperature, achieving comparable fullâprecision performance with improved quantization friendliness.
The paper evaluates the reliability of binary Transformers, specifically BERT, when stored in approximate memory that introduces bit errors. It finds that significant accuracy loss only occurs at high bit error rates (5â10%). To mitigate this, the authors propose a Permutation Invariance Enabled Selective (PIES) protection scheme that selectively safeguards critical weights, achieving nearâfull performance recovery at high error rates with much lower overhead than traditional errorâcorrecting codes.
arXiv:2607. 21446v1 Announce Type: new Abstract: Post-training quantization (PTQ) of diffusion transformers (DiTs) to W4A4 severely degrades output quality, because activations entering each linear layer contain outliers that 4-bit formats cannot represent.
arXiv:2512. 00956v3 Announce Type: replace Abstract: Quantizing LLM weights and activations is a standard approach for efficient deployment, but a few extreme outliers can stretch the dynamic range and amplify low-bit quantization errors.