The industry is moving from high-precision formats (FP32, FP16, BF16) to lower-precision data types for Machine Learning (ML) inference and training. In cloud and data center environments, lower-precision data types deliver higher throughput by packing more compute per cycle from the same platform. On edge and mobile devices, smaller formats reduce model size, memory footprint and bandwidth, which directly affects power consumption and latency. Arm, Intel, and NVIDIA published an OCP 8-bit Floating Point Specification (OFP8). It is an interchange format that allows software systems to share the models easily. FP8 is not a future concept, it is being deployed today. It is already supported by NVIDIA’s Hopper H100 GPU, with software deployment appearing in major ML frameworks. Arm added the FP8 support to the Arm v9 ISA and is exploring the best way to integrate the FP8 across all the ML platforms. This blog post explains the FP8 data formats, the new Floating-point Mode Register (FPMR), and the instruction set that makes FP8 practical on Arm CPUs. FP8 data format Unlike IEEE FP64, FP32, and FP16, FP8 is not a single format, it is a family. The whitepaper FP8 Formats for Deep Learning proposes an FP8 format consisting of two encodings: E4M3 and E5M2. Why a family of formats? With only 8 bits available, FP8 makes a trade-off between precision and dynamic range. A single encoding cannot fit all tensors equally well. Activations and weights usually have a smaller and more stable value distribution after training or calibration. They can therefore benefit from more mantissa bits, which help represent nearby values more precisely. Gradients can change much more during forward and backward passes. They can therefore benefit from more exponent bits and a larger dynamic range, which helps avoid overflow or underflow. The two encodings enable software to choose the right format for each tensor role. Use E4M3 when precision is more important and use E5M2 when dynamic range is more important. This is the key idea from FP8, and Arm reflects the same idea in the FPMR register. With FPMR, each source operand can independently select which FP8 format it uses. Supported data types E4M3 E5M2 Exponent bits 4 5 Mantissa bits 3 2 Bias 7 15 Max normal value 448 57344 Special values NaN only Inf and NaN E4M3 uses 1 sign bit, 4 exponent bits, and 3 mantissa bits, with a bias of 7. E4M3 uses most bit patterns for normal finite numbers instead of saving many of them for special values. This helps E4M3 extend dynamic range, which is more useful for deep learning workloads. E5M2 uses 1 sign bit, 5 exponent bits, and 2 mantissa bits, with a bias of 15. E5M2 follows IEEE 754 conventions for the exponent field and special values, including infinities and NaNs. Because of this, it can be viewed as IEEE FP16 with fewer mantissa bits, like how bfloat16 and TF32 can be viewed as IEEE FP32 with fewer bits. This makes conversion between E5M2 and IEEE FP16 straightforward, while still providing a wider dynamic range than E4M3 FPMR: The Floating-Point Mode Register When hardware executes an FP8 instruction, it must know the format of each source operand, the format of the destination result, and the scale factors to apply. Because FP8 modes can change per tensor, software may need to update the format and scaling settings frequently inside performance-critical code. For this reason, Arm introduced a dedicated control register – FPMR. FPMR is separate from FPCR. Hardware can recognize and rename FPMR writes more efficiently, making per-tensor FP8 mode changes closer to a normal register write rather than a pipeline-serializing control update. FPMR contains the following fields: Field Bits Description F8S1 [2:0] Format of 1st FP8 source. 0b000 = E5M2, 0b001 = E4M3. F8S2 [5:3] Format of 2nd FP8 source. Same encoding as F8S1. F8D [8:6] Destination result Format for instructions that convert other floating-point formats to FP8. Same encoding as F8S1. OSM [14] Overflow Sa