Svashasan Logo
Simulated data

AI and Machine Learning · Numerical format

FP16

16-bit floating point (IEEE 754 binary16, half precision)

Also known as half precision, binary16, float16, half

IntermediateSource-checked · awaiting technical reviewLast reviewed 6 December 2026

FP16 is the IEEE 754 16-bit binary floating-point format (binary16), with 1 sign bit, 5 exponent bits and 10 fraction bits. It halves memory use compared with FP32 and is widely used for GPU inference and mixed-precision training.

Explanation

FP16 uses an exponent bias of 15. Its largest finite value is 65,504, its smallest normal value is 2⁻¹⁴ (about 6.1 × 10⁻⁵), and subnormal values extend down to 2⁻²⁴ (about 6.0 × 10⁻⁸). With 10 stored fraction bits plus an implicit leading bit, it carries roughly three significant decimal digits.

Halving the bytes per value halves weight storage and memory bandwidth, and NVIDIA GPU tensor cores take FP16 inputs with much higher arithmetic throughput than standard FP32 pipelines, accumulating into FP16 or FP32. Many networks tolerate FP16 inference, but this has to be confirmed for each model.

The narrow range is the main risk. Values above 65,504 overflow to infinity and can propagate as NaN; TensorRT notes that accumulating reductions are prone to this. During training, small gradients can underflow to zero, which is why mixed-precision training uses loss scaling and an FP32 master copy of the weights. BF16 is a different 16-bit format with wider range but lower precision than FP16.

How it works

A normal FP16 value equals (−1)^sign × 2^(exponent − 15) × 1.fraction. Runtimes convert FP32 weights to FP16 when building an engine and run kernels in FP16, often accumulating matrix products in FP32 for accuracy. TensorRT and ONNX Runtime let FP16 be enabled for a whole model, with precision-sensitive layers kept in FP32.

Automotive applications

  • GPU inference for camera and LiDAR networks
  • Mixed-precision training
  • Halving model storage
  • Intermediate step before INT8 quantisation

Example

A LiDAR detection network is built as an FP16 TensorRT engine. Validation shows overflow in a reduce-sum layer that accumulates many point features, so that layer is pinned to FP32 while the rest of the network stays in FP16.

An illustrative example: any figures in it are worked numbers, not measurements.

References

  1. Train With Mixed Precision (opens in a new tab)

    NVIDIA Deep Learning Performance documentation · Manufacturer documentation · 2.1 Half Precision Format; 2.2 Tensor Core Math; 2.3 Loss Scaling · retrieved 6 December 2026

  2. IEEE 754-2019: IEEE Standard for Floating-Point Arithmetic (opens in a new tab)

    IEEE Standards Association · Standard · retrieved 6 December 2026

  3. Accuracy Considerations (opens in a new tab)

    NVIDIA TensorRT documentation · Manufacturer documentation · Reduced Precision Data Types; FP16 Overflow · retrieved 6 December 2026

Definitions are original summaries. Standards text is not reproduced; follow the links for the official publications.