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

The Rise of Low Precision Floating Point (opens external site)

83 points by matt_d 7 days ago | arxiv.org | 32 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (5)

  1. With fp4 you only have 16 values, if you define it to be symmetric by sign you only have 8 absolute values.

    That seems like a low enough size that you could measure the effectiveness of any set of 8 values across a wide variety of neural net tasks. I would think that it could be possible to do a search for the optimal generally useful 4-bit representation.

    Would the ideal values fall on a simple function? would they seem randomly spaced?

    Replies (2)
    1. NVFP4 and MXFP4 actually have block scaling to adapt to a wide range of values. NVFP4 has an additional tensor scale.
      Replies (1)
      1. GP meant the distribution of values, after normalisation
    2. It would probably be interesting for an architecture and a dataset but I wouldn't assume another architecture and/or another dataset would have the same optimum.
      Replies (1)
      1. I agree that there are almost certainly various specialised optimums. But the idea for a general best would be to find what is most likely to give a good result when you don't know the architecture or task.

        One of the problems with optimising implementations for the task that everyone is doing today is that it discourages people from finding new ways of looking at things if they have to take a performance hit to even consider it.