pith. sign in

arxiv: 2309.01729 · v1 · pith:RBZI3GIFnew · submitted 2023-09-04 · 💻 cs.LG · cs.AI· cs.CV

Softmax Bias Correction for Quantized Generative Models

classification 💻 cs.LG cs.AIcs.CV
keywords softmaxquantizationbiaslargemodelsaccuracycorrectiondiffusion
0
0 comments X
read the original abstract

Post-training quantization (PTQ) is the go-to compression technique for large generative models, such as stable diffusion or large language models. PTQ methods commonly keep the softmax activation in higher precision as it has been shown to be very sensitive to quantization noise. However, this can lead to a significant runtime and power overhead during inference on resource-constraint edge devices. In this work, we investigate the source of the softmax sensitivity to quantization and show that the quantization operation leads to a large bias in the softmax output, causing accuracy degradation. To overcome this issue, we propose an offline bias correction technique that improves the quantizability of softmax without additional compute during deployment, as it can be readily absorbed into the quantization parameters. We demonstrate the effectiveness of our method on stable diffusion v1.5 and 125M-size OPT language model, achieving significant accuracy improvement for 8-bit quantized softmax.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 1 Pith paper

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. Quantized Keys Steal Attention: Bias Correction for KV-Cache Compression in Video Diffusion

    cs.LG 2026-05 unverdicted novelty 6.0

    A derived bias correction for INT2-quantized KV caches in video diffusion recovers most quality loss, reaching near-BF16 performance while using less memory than INT4.