FP6 E2M3 - 6-Bit Floating Point

OCP microscaling format: 2 exponent bits, 3 mantissa bits, precision over range

Bit Layout

FP6 E2M3 allocates only 2 bits to the exponent and 3 bits to the mantissa. This gives it higher precision than E3M2 (8 values per interval vs 4) but a much narrower range (max 7.5 vs 28).

Overview

FP6 E2M3 is the precision-focused 6-bit format in the OCP Microscaling Specification. Like E3M2, it's designed for use within microscaling blocks rather than as a standalone format.

With 3 mantissa bits, E2M3 can distinguish 8 levels within each power-of-2 interval, giving it the same precision as FP8 E4M3. However, with only 2 exponent bits, its range is extremely limited: the maximum value is only 7.5 and the minimum normal is 1.0.

This format is best suited for data distributions that are tightly clustered (like normalized weights), where the shared block exponent handles the coarse positioning and E2M3 provides fine-grained relative differences.

Encoding Rules

Normal Numbers

value = (-1)sign × 2(exponent - 1) × (1 + mantissa / 8)

With 3 mantissa bits, the representable values in each interval are: 1.000, 1.125, 1.250, 1.375, 1.500, 1.625, 1.750, 1.875 (times the power of 2). The bias of 1 is calculated as 2(e-1) - 1, where e is the number of exponent bits (2).

Subnormal Numbers

value = (-1)sign × 20 × (mantissa / 8)

Subnormals range from 0.125 to 0.875 in steps of 0.125.

Special Values

Interactive Value Visualizer

Click any bit to flip it, drag the slider, or enter a decimal or hex value. The graphs show how values are distributed across the encoding space.

Dynamic Range & Precision

Special Values & Bit Patterns

Format Comparison

Where FP6 E2M3 Is Used

E2M3 vs E3M2 Both are 6-bit formats with opposite tradeoffs. E2M3 has higher precision (3 mantissa bits) in a narrow range (max 7.5). E3M2 has wider range (max 28) with lower precision (2 mantissa bits). The choice depends on whether your data's spread or its granularity is the limiting factor.