Beating Floating Point at Its Own Game: Posit Arithmetic [pdf] johngustafson.net...
HN Best 200 @best
Beating Floating Point at Its Own Game: Posit Arithmetic [pdf] johngustafson.net · 33 points · 6 comments · HN thread
TL;DR John Gustafson and Isaac Yonemoto present the posit, a drop-in alternative to IEEE 754 floats that uses a variable-length regime field, no NaN or infinity, and tapered precision. They claim better dynamic range, accuracy and closure than floats of the same width, that 32-bit posits can sometimes replace 64-bit floats, and that posit hardware is simpler. The thread is skeptical, arguing that hardware implementations have proven harder and bulkier than the paper suggests.
- A posit has a sign bit, a variable-length regime (run-length coded scale factor), up to es exponent bits, and the remaining bits as fraction; there is no bias and no subnormals.
- Posits have only 0 and ±∞ as exception values, no NaN, no negative zero, and equality is a plain integer bit comparison.
- The paper reports 32-bit posits (es=3) with about 144 decades of dynamic range versus about 83 for 32-bit floats, and cites a LINPACK run that reaches an exact all-ones answer using a fused dot product for the residual.
- Accuracy claims rest on exhaustive 8-bit scale-model comparisons, a quad-precision thin triangle test, and a quadratic formula example where 32-bit posits give 6 correct decimals versus 4 for floats.
- The authors propose posits as a cheaper, faster replacement for floats in deep learning, including an 8-bit posit sigmoid approximation obtained by flipping and shifting bits.
- Posit arithmetic requires exact fused operations with large accumulators (128 to 1,048,576 bits by size), which the authors note must be supported in hardware or software.
Discussion The thread is short and mostly critical. The top comment says the paper's hardware claims about less circuitry and higher POPS per watt were contradicted by recent ASIC and FPGA studies, and links a 2026 review. Replies argue that the paper did not really investigate hardware, so it cannot be refuted by a review of implementation difficulty. Other commenters raise the lack of NaN and infinity, precision loss at large magnitudes, and the difficulty of formal numerical verification. The mood is measured and technical, with a few brief, curious remarks about how posits relate to other recent number formats.
- Hardware implementations are harder and bulkier than claimed (many): Commenters cite a recent review of posit hardware reporting that variable-length decoding, barrel shifters and wide quire accumulators take a large share of unit area. They conclude that posits are not currently a drop-in or better-supported option in hardware.
- Paper's hardware claims are not refuted by the review (some): One commenter argues the paper's hardware claims were not central and were not studied in depth, so the review shows implementation is harder in practice rather than that posits are fundamentally more complex.
- Non-uniform error hurts verification and training (some): A commenter argues that posits' non-uniform relative error is a problem for numerical formal verifiers used to prevent divergence in training large models.
- Posits lose precision and lack NaN and infinity (some): Posits lose precision more rapidly at large values, have no NaN or infinity, and saturation can silently produce badly wrong results. Still, they could suit the right domain.
- Interest in the format despite the caveats (a few): Some readers find posits a welcome option for representing magnitudes and see benefits in specific domains. One reader notes an unexpected resemblance to recent quantization and positional-encoding techniques.
Links from the comments
#posits #floatingPoint #numericalComputing #computerArithmetic #hardware