Unofficial Hacker News companion — get notified on comment replies, and more.

Beating Floating Point at Its Own Game: Posit Arithmetic [pdf] (opens external site)

101 points by xenophonf 3 days ago | www.johngustafson.net | 33 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (2)

  1. I'm not a numerical analyst, but what I've seen from Gustafson is that he's been at this game for over a decade. His original proposal was 'unums', which were essentially interval arithmetic, and heavily pitched on the basis of not needing numerical analysis to be able to do the sort of scientific computing that motivated floating-point. His book introducing the concept is literally titled "The End of Error" (although it's missing the word 'Analysis'). Then there was a "debate" between Gustafson and Kahan over unums versus floating-point [1], which, to my eyes, both sides lost [2].

    Evidently, Gustafson felt he had to change tack because he seems to have dropped unums after that debate and changed entirely to posits. And in the change to posits, he seems to have dropped most of the actual benefits of unums he was touting, although he hasn't quite dropped some of the cultish language he uses around the concept. The main trick of posits is to achieve greater precision for numbers around ±1 and greater exponent range, but by brushing the trade-offs used to achieve that under the rug. Except there's not really any demand for greater exponent range, so the trade-offs really overwhelm the marginal benefit of higher precision for a very specific range of numbers.

    The new paper linked in the comment you replied to appears to acknowledge this, even in the AI tiny floating-point space, by basically fixing a maximum exponent range so that you have usable precision at higher exponents.

    [1] I'd say IEEE floating-point, but the principles that Gustafson is attacking are found in virtually all formats pre-IEEE 754, with the exception of NaNs.

    [2] The transcript is here, for the reader to decide for themselves: http://www.johngustafson.net/pdfs/DebateTranscription.pdf

    Replies (1)
    1. (I'm the other author on the posits paper) so the PLAN was to build posits out to "valids", which make each "valid" (number type) interval arithmetic a pair of posits. I'm not particularly convinced of the benefit of interval arithmetic (the complexity explodes dramatically) but it was sure fun to work on. I really wanted the number system to be used in ML applications. One interesting thing is that a lot of tricky ML nonlinearities are approximated using trivial bit-manipulation. However, it seems to not have caught on.

      https://github.com/interplanetary-robot/SigmoidNumbers/blob/...