Computer Arithmetic
How are the two FP8 formats, E4M3 (4 exponent, 3 significand bits) and E5M2 (5 exponent, 2 significand bits), usually used?
- AE4M3 for weights and activations, E5M2 for gradients
- BBoth have the same precision and range, so they are used interchangeably
- CE4M3 is used as an integer and E5M2 as a floating-point number
Show answer and explanation
Answer: A. E4M3 for weights and activations, E5M2 for gradients
How the scarce 8 bits are split between exponent and significand determines the format's character. E4M3 has one more significand bit, giving more precision but less range; E5M2 has one more exponent bit, giving more range but less precision. E4M3 is therefore typically used for weights and activations, whose magnitudes are fairly uniform, and E5M2 for gradients, whose magnitudes vary widely. Both are floating-point formats, not integers.
- A. Correct. E4M3 for precision and E5M2 for range.
- B. The exponent–significand split differs, so precision and range differ.
- C. Both are floating-point formats.