An unofficial, read-only Hacker News reader.

The matrix multiplication exponent is nine fourths [pdf] (opens external site)

1072 points by E-Reverance 4 days ago | github.com | 615 comments on HN

View full thread · View on Hacker News

Comment thread (4)

  1. Given the constants for the known algorithms this is of little practical difference. And even if we find a practical n^2.25 algorithm one day, you would still need pretty large matrices for it to make any difference (i. e. billion rows matrices are only ~200x slower with n^2.25 than with quadratic).
    Replies (3)
    1. “Only 200x slower.” Ok, I guess. Sounds bad to me, though.
    2. "Pretty large matrices". Hmm, wonder where we have large matrices that need multiplication.
    3. The point isn't how far from quadratic we're forced to settle for; the point is how far from cubic we could be. So really we're interested in an exponent difference of .75 rather than .25, enough to be quite relevant even at the size of matrices that frontier LLMs deal with.

      (I looked around a bit and apparently the old Strassen algorithm from 1969 has been tested out — https://pldi26.sigplan.org/details/pldi-2026-papers/24/Compi... — and found practical; the constants can be good enough to show an improvement on frontier LLMs.)