Menu

Quantisation: Why Low-Precision Weights Keep Full-Precision Accuracy
πŸ“°

Quantisation: Why Low-Precision Weights Keep Full-Precision Accuracy

DEV Community: deeplearningΒ·Umesh Tharuka MalaviarachchiΒ·14 days ago
#LqkNi0JO
#devtodeeplearning#education#devto#dev#quantisation
Long article (1838 words) β€” no AI summary yet.
Reading 0:00
15s threshold

Quantisation: Why Low-Precision Weights Keep Full-Precision Accuracy

A modern language model stores tens of billions of weights, each one a 32-bit floating point number. Cut every weight to 4 bits and you shrink the model eightfold, halve the memory bandwidth, and run it on hardware that could never hold the original. The surprise is not that this works at all. The surprise is how little accuracy it costs. A 4-bit model usually scores within a point or two of its 32-bit parent on the same benchmarks, and sometimes the gap is smaller than the noise between two training runs.

That should feel wrong. Throwing away seven eighths of the information in every parameter ought to break something. It mostly does not, and the reasons why reveal something important about what neural networks actually store in their weights.

What quantisation actually does

Quantisation replaces a continuous weight with a value from a small, finite set. The standard scheme is affine quantisation.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.