the.ai

Compression / Optimization

verified

Quantization-Aware Training

Rather than quantise a finished model and hope, train with the rounding in the loop so the model learns weights that survive it. It costs a training run and reaches lower bit widths than post-training methods can — which matters below four bits, where simply rounding a trained model stops working.

Viz primitive · loss-curvesteps = 2000 · lr = 0.002 · batch = 64 · params = 1
loss
step 0dashed = held-out2000

Loss over 2000 training steps, starting near 7.2. It falls to about 1.94, with 92% of the total improvement arriving in the first half. A second line shows held-out, ending higher at about 2.14.

Loss in full precision against loss once the rounding is applied. Drag the quantisation severity up to watch the two separate — training with the gap in the loop is what pulls the second curve back down.

0.15

Reviewed by opendroid · 2026-08-18

  • arXiv:2103.13630 — A Survey of Quantization Methods for Efficient Neural Network Inference