New Tool Radar

AI Concepts

How to Use SmoothQuant When Activation Outliers Block INT8 Quantization

Shift the quantization difficulty from activations into weights, then check INT8 quality on your own tasks.

Schematic with three steps: Confirm activations are the blocker; Apply SmoothQuant with calibration data; Test throughput and quality together.

SmoothQuant targets a different problem from weight-only quantization: quantizing activations, not just weights. Activations have outliers that make them hard to quantize, and a few very large activation values can wreck an INT8 scheme. SmoothQuant mathematically shifts the difficulty from activations into weights, which are easier to quantize, enabling INT8 quantization of both. It is most relevant when you want to quantize activations for throughput, not just shrink weights to save memory.

What you need

  • A model you want to run in INT8 for throughput
  • A calibration set of representative text
  • A test set that measures the tasks the model must still pass

Step 1: Confirm activations are the blocker

Try plain INT8 first: if the quality loss is large and the weight-only INT8 version is fine, activation outliers are the likely cause, and SmoothQuant is the right tool.

Step 2: Apply SmoothQuant with calibration data

Run the SmoothQuant pass with calibration text that resembles your real workload, so the smoothing factors are computed from activations the model will actually see.

Step 3: Test throughput and quality together

Measure the generation speed and the test-set score after quantization. SmoothQuant is a throughput optimisation, so it only earns its place if both numbers are acceptable.

Worked example: synthetic SmoothQuant check

The table below is a synthetic example. It shows the expected result of applying SmoothQuant; no model was quantized.

Method INT8 quality Throughput
Plain INT8 Poor – outliers break it Fast
Weight-only INT8 Good Medium
SmoothQuant INT8 Good Fast
Decision SmoothQuant chosen Quality and speed kept

Expected result (UNTESTED). plain INT8 fails on quality, weight-only INT8 is slow, and SmoothQuant keeps quality at full INT8 speed. This check was not run live; the table shows the expected result for the synthetic example.

Limits

  • SmoothQuant helps when activations are the problem; it does not fix damage from aggressive weight quantization.
  • Activation outliers are model-specific, so measure on your model rather than assuming they exist.
  • FP8 keeps a wider dynamic range than INT8 and is increasingly the default for high-throughput serving on modern accelerators.
  • Always sanity-check a quantized model on tasks you care about, not just the perplexity number.

Sources

See all