Mixed-precision training
Mixed-precision training runs most of a model's calculations in lower-precision number formats while keeping key values in higher precision, cutting memory use and speeding up training on suitable hardware.
Computers store the numbers inside a neural network in floating-point formats, and the standard for years was 32 bits per number. Sixteen-bit formats take half the memory and can be processed much faster on chips built for them, but they keep less detail, and the common float16 format also holds a much narrower range of values, so small numbers can round to zero and information is lost. Mixed-precision training uses the cheap format where it is safe and the precise format where it is needed.
The approach was set out in Mixed Precision Training, published in October 2017 by Paulius Micikevicius and colleagues. They stored weights, activations and gradients in 16-bit half precision and added two safeguards. First, a 32-bit master copy of the weights collects each update, so small changes are not lost. Second, the loss is scaled up before gradients are computed, so tiny gradient values stay representable. They showed this worked across convolutional, recurrent and generative adversarial networks, including models with more than 100 million parameters, and nearly halved memory use.
Frameworks now do this automatically. PyTorch's automatic mixed precision package runs operations such as linear layers and convolutions in 16-bit formats, either float16 or bfloat16, because they are much faster there, while keeping operations such as reductions in 32-bit for their wider range. Its documentation explains the second safeguard plainly: small float16 gradients can underflow to zero, so gradient scaling multiplies the loss by a factor to keep them visible.
The trend is towards ever smaller formats. In December 2024 DeepSeek's V3 technical report described an FP8 mixed-precision training framework, using 8-bit numbers, and said it was the first validation of FP8 training on an extremely large model. The report put the full training run at 2.788 million H800 GPU hours.
This is why number formats feature so heavily in chip announcements. When a vendor quotes performance in FP8 or FP4, it is describing how fast the chip handles these low-precision formats, which only translates into real speed-ups if the software can use them without hurting the model. Mixed-precision training is also different from quantisation, which usually shrinks a finished model to make it cheaper to run.
It is training a model with a mix of number formats: lower-precision 16-bit or 8-bit numbers for most calculations, and 32-bit numbers where accuracy matters, such as the master copy of the weights. The result uses less memory and runs faster on hardware designed for low-precision maths. Both are 16-bit formats that halve memory compared with 32-bit numbers, but they split their bits differently. FP16 keeps more precision but covers a narrow range, so small gradients can round to zero and need gradient scaling. BF16, developed at Google Brain, keeps the same range as 32-bit numbers with less precision, so it usually works without scaling. Done properly, it is designed not to. The 2017 paper that introduced the method kept a full-precision copy of the weights and scaled the loss specifically to avoid losing information, and showed it working across several types of network. Problems arise mainly when the safeguards are missing or a format's range is too narrow for the values involved. No. Mixed-precision training uses lower-precision numbers during training while keeping a precise copy of the weights. Quantisation usually happens after training and permanently stores a model's weights in fewer bits so it is smaller and cheaper to run.Common questions
What is mixed-precision training?
What is the difference between FP16 and BF16?
Does mixed precision reduce model accuracy?
Is mixed-precision training the same as quantisation?
Search for "automatic mixed precision", "bfloat16 vs float16" or "FP8 training" to see how number formats affect training. The most reliable sources are the original 2017 paper on arXiv, framework documentation from PyTorch and NVIDIA, and technical reports from labs that describe their training setups. Treat chip performance figures quoted in low-precision formats with care, since they assume the software can use those formats throughout.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.