FP6 E2M3 - 6-Bit Floating Point

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

Bit Layout

Sign
S
1 bit
Exponent
E
E
2 bits
Mantissa
M
M
M
3 bits

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

PropertyValue
Max Positive (Normal)7.5
Min Positive (Normal)1
Max Subnormal0.875
Min Positive (Subnormal)0.125
Machine Epsilon (at 1.0)0.125
Approx. Decimal Digits~0.9
Exponent Bias1
Exponent Range2^0 to 2^2
Total Bit Patterns64
Supports InfinityNo
Supports NaNNo

Special Values & Bit Patterns

ValueBit PatternDecimal
+00 00 0000
-01 00 000-0
Min Subnormal0 00 0010.125
Max Subnormal0 00 1110.875
Min Normal0 01 0001
Max Normal0 11 1117.5

Format Comparison

PropertyFP6 E2M3FP6 E3M2FP4 E2M1FP8 E4M3
Total Bits6648
Sign Bits1111
Exponent Bits2324
Mantissa Bits3213
Bias1317
Max Value7.5286448
Min Normal10.2510.015625
Epsilon0.1250.250.50.125
~Decimal Digits~0.9~0.6~0.3~0.9
Has InfinityNoNoNoNo
Has NaNNoNoNoYes
Has SubnormalsYesYesYesYes

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.