Low-precision arithmetic

Also known as: reduced-precision computing

On this page 7

Low-precision arithmetic, also called reduced-precision computing, is the practice of performing calculations with number formats that use fewer bits than 32-bit single precision, such as 16-bit, 8-bit or even 4-bit values. In AI hardware, it is the main reason modern accelerators deliver several times more throughput per watt than they would with full-precision math.

Neural networks tolerate small rounding errors well, because their outputs depend on statistical patterns across millions of weights rather than on the exact value of any single number. Chip designers exploit this tolerance by building dedicated low-precision matrix units whose area, energy and memory traffic shrink roughly in proportion to the bit width.

How fewer bits speed up AI computation

Reducing precision helps in three ways at once. A multiplier circuit for an 8-bit value needs far less silicon area and energy than one for a 32-bit value, because multiplier cost grows roughly with the square of the mantissa width. Smaller numbers also mean less memory bandwidth per operation, which matters because many AI workloads are limited by the memory wall rather than by compute.

Halving the bit width therefore roughly doubles peak throughput on the same chip and halves the memory needed to store weights. A model with 70 billion parameters needs about 140 GB in 16-bit form but only about 35 GB at 4 bits, which decides whether it fits on one accelerator or needs several.

Most designs keep a wider accumulator than the inputs. A matrix multiply unit may multiply FP8 values but sum the products in FP32, because long sums of small rounding errors would otherwise drift and lose accuracy. This pattern is known as mixed-precision arithmetic.

Common low-precision number formats

Each format balances dynamic range, set by exponent bits, against precision, set by mantissa bits. The table lists the formats most widely supported by current data-center GPUs and custom AI chips.

FormatTotal bitsExponent and mantissa bitsTypical use
FP32328 and 23Reference precision, master weights
TF3219 used of 328 and 10Drop-in training speedup on NVIDIA GPUs
FP16165 and 10Training with loss scaling, inference
bfloat16168 and 7Default training format on many accelerators
FP8 E4M384 and 3Forward pass in training, inference
FP8 E5M285 and 2Gradients with wider range
INT88Integer with scale factorQuantized inference
FP4 and INT442 and 1, or integerWeight storage, aggressive inference
Main number formats used in AI accelerators

bfloat16 keeps the same exponent range as FP32, so it rarely overflows and usually needs no special handling. FP16 has more mantissa precision but a narrow range, which is why training in FP16 relies on loss scaling to keep small gradients from underflowing to zero.

Scaling techniques that make very low precision work

Formats with 8 bits or fewer cannot represent the full range of values in a network, so hardware and software attach scale factors to groups of numbers. The finer the grouping, the better the accuracy, at the cost of some extra storage for the scales.

Scaling methodGroup sharing one scaleAccuracy impactExample
Per-tensor scalingWhole tensorSensitive to outliersEarly FP8 training recipes
Per-channel scalingOne output channelGood for weightsINT8 inference
Block scalingBlock of 16 to 32 valuesRobust down to 4 bitsMicroscaling formats such as MXFP4
Dynamic scalingRecomputed each stepTracks changing rangesTransformer Engine
Scaling granularity in low-precision formats

The Microscaling formats standardized by the Open Compute Project, such as MXFP8 and MXFP4, share one 8-bit exponent across a block of 32 elements. NVIDIA Blackwell adds a related NVFP4 format with 16-element blocks, showing how block scaling has become central to 4-bit computing.

Training versus inference requirements

Training and inference tolerate precision loss differently. Training is more demanding because gradients span a wide range and small updates must accumulate correctly over millions of steps, so optimizers typically keep FP32 master weights even when the forward and backward passes run in bfloat16 or FP8.

WorkloadCommon compute formatPrecision kept forMain risk
Large-model pretrainingbfloat16 or FP8Master weights and optimizer stateDivergence from rare outliers
Fine-tuningbfloat16Optimizer stateSmall accuracy loss
Server inferenceFP8 or INT8AccumulatorsQuality drop on long outputs
Edge inferenceINT8 or INT4Sensitive layersCalibration mismatch
Typical precision choices by workload

Inference can go lower through post-training quantization, which converts a trained model using a small calibration set, or quantization-aware training, which simulates rounding during training so the model learns to compensate.

Limitations and failure modes

Lower precision is not free. The most common problems come from outlier values and from accumulated rounding error, and they often appear only in specific layers or on specific inputs.

  • Activation outliers in large language models can force a coarse scale that crushes all other values to zero.
  • Overflow and underflow occur when values fall outside the representable range, producing infinities or lost gradients.
  • Benchmark gaps arise because headline TOPS figures often quote the lowest supported precision, which a real model may not use.
  • Silent quality loss can pass standard benchmarks while degrading rare tasks, so evaluation must cover the target workload.

Practitioners therefore keep sensitive layers, such as embeddings, normalization and the final output layer, in higher precision, and compare low-precision results against an FP32 or bfloat16 reference before deployment.

Explained without jargon

Think of measuring a room. A builder needs millimeters. A person buying a rug only needs the size to the nearest few centimeters. Rounding saves time and still gives a good result.

AI chips do the same with numbers. They store and multiply shorter, rounded numbers instead of long precise ones. Shorter numbers take less memory and less energy. The chip can therefore do much more work per second. The answers stay good enough because an AI model depends on millions of numbers together, not on one exact value.

A typical use case

An online retailer runs a chat assistant built on a 70-billion-parameter language model. In bfloat16, the weights need about 140 GB, so each copy of the model occupies two 80 GB accelerators. Response times during peak hours rise above three seconds.

The engineering team converts the weights to FP8 with per-channel scaling and keeps the embedding and output layers in bfloat16. Each model copy now fits on a single accelerator, and throughput per chip roughly doubles. On the internal evaluation set of 2,000 customer questions, answer quality falls by less than one percentage point, and median latency drops to about 1.4 seconds. The team ships the FP8 version and keeps the bfloat16 model as a reference for regular regression tests.