Integer multiplication below n log n

(github.com)

39 points | by E-Reverance 1 hour ago

7 comments

  • Kotlopou 10 minutes ago
    I love this, entirely separate from any applications or even understanding. It's incredible that we needed this trillion-dollar technology to learn about a faster way to multiply two numbers!

    Math is incredibly rich, and even the simplest things have insanely complicated structure when you zoom in. However this all ends up, math is bigger than LLMs, and the people who claim it is getting "solved" and we are running out of open problems haven't stared into the abyss enough.

  • wk_end 28 minutes ago
    Is there an associated machine-checked proof of this?

    We're in full vibe-code mode at work, so I understand both how powerful frontier models can be and how often they can over-confidentially state subtly (or not so subtly) wrong things, even when you're taking great efforts to try to keep that from happening.

    So without a Lean development or extensive human verification, I guess I'm a little bit skeptical, and even sort of hoping this is wrong - not just because of my not so positive feelings about AI, but by my disposition towards beauty in math. n log n is an awful lot nicer than what we have here.

    • bawolff 1 minute ago
      Agree 100% on wanting machinr verification of AI generated math.

      But in regards to beauty, i feel like multiplication already has a lot of non beautiful exponents. Best known matrix multiply is O(n^2.371). For integer factorization, the inverse of this problem, general number field sieve is a crazy subexponential.

      If factorization is just barely subexponential, is it really that surprising that multiplication is just barely sub n lg n ?

    • reddozen 10 minutes ago
      We can just wait for whomever they stole THIS proof from to come forward with threatening emails sent by OpenAI.
  • shmoil 49 minutes ago
    I laughed out loud at the n lg n ^ (1 - 2^{-182}). It is so funny.
    • elcritch 37 minutes ago
      Wowzers!

      This also reaffirms my (wishful) thinking that if there’s a way to do FTL communication it’ll be something with an absurdly tiny factor like 2^-182 with a slight asymmetry in a probability somewhere.

      Then you’re not violating FTL, just gaining a very slight chance that you might know something FTL – probably.

      • hgoel 31 minutes ago
        Given that c is the speed of causality itself, FTL communications would effectively be like predicting the future.

        From that angle, beating light speed by some absurdly tiny factor would probably correspond to a means of predicting the future at some almost absurdly tiny factor better than random guessing.

        Edit: Actually...it doesn't make sense to call this FTL communication, it's just predicting the future state of a system given some previous state. You could perfectly predict the future state of an infinite sine wave signal, but that isn't FTL communication.

        • Lerc 12 minutes ago
          I think that is entirely expected from what we know of modern physics. It doesn't say you can't do it, just things are very weird if you can.
          • elcritch 5 minutes ago
            Exactly! It’s not forbidden, just very unlikely and would be very strange.

            It’d likely involve exponentially more energy as well. It’d be a good sci-if plot point if FTL communications required machines the size of Jupyter to get a few milliseconds of prescience.

      • saagarjha 19 minutes ago
        If there was a way to do FTL communications you’d expect that Jane Street would have found it already
    • dprkh 24 minutes ago
      Why is that funny?
      • philipwhiuk 0 minutes ago
        The -182 feels highly arbitrary.
    • qarl 45 minutes ago
      Dangit! I was betting on -183.
      • utopcell 30 minutes ago
        You didn't believe!
  • 12390asdjkas 37 minutes ago
    this is perfect for when i have an array of at LEAST 2^118000 items

    i will NEVER care about proposed multiplication speedups unless they are truly generalized

    • zamadatix 28 minutes ago
      If you view them as "theories of computational limits" instead of "proposed practical speedups" they can be a lot more interesting.

      It's most interesting when the lower bound can actually be proven. In lack of that, we have to guess what the best possible algorithm might yield (generalized or not). This tells us that need not be O(n log n) and we have the opportunity to still find better algorithms than we typically thought would be possible. This does the latter, which is interesting, but it just leaves us to hunger more for what the real limit must be :).

  • MinimalAction 45 minutes ago
    For the uninitiated, why is this interesting given it doesn't seem to be so much below the threshold?
    • bawolff 10 minutes ago
      O(n lg n) is a bit of a threshold value. For a lot of algorithms, this is the best you can do, even in theory (similar to how O(n^2) is also a threshold for many algorithms). So for many algorithms, people stop trying when they get close to O(n lg n) on the belief that you'll never do better than that.

      The fact that you can in principle go faster than n lg n, even if just by an almost imperceptible amount, is kind of surprising. It raises the question of, if n lg n isn't the limit, what is? How far down can we get the speed? If we can get it a little past n lg n, maybe we can go a lot further.

      [or at least that is my understanding. not a theoretical computer scientist]

    • Chinjut 40 minutes ago
      It's interesting because people wondered if it was possible to go below the threshold at all, that's all. Many suspected it was not possible.
      • Fordec 17 minutes ago
        It's like when Tony Hawk did a 900 for the first time. Now 900s in skateboarding aren't a big deal, kids can do it now. It was proving to the world what was possible was the mental hurdle that inspires others to actually try at the problem harder.
  • isaac-harvey 21 minutes ago
    I mean, cracking anything below the nlogn bound implies that there might be much more room for improvement. Often a very minor win over the theory opens up enough extra attention to later truly move the needle.
  • infocollector 1 hour ago
    This is pretty remarkable, IF someone can understand it :)
    • saagarjha 53 minutes ago
      I only skimmed the paper but it doesn’t see particularly dense, mostly just relying on college math?
      • cr4zy 45 minutes ago
        It's 50 pages and cites this other paper in the same repo:

        OpenAI. An explicit power saving for the exact discrete Fourier transform.

        Here's a random excerpt:

        8.3 The middle transform and the final permutation The factor QFt in (35) can be computed from a cyclic convolution and two pointwise phase multiplications. The chirp identity below performs the frequency change in Q without applying Q as a separate permutation of the array. The second identity shows how the retained source permutation R cancels when computing a convolution. Here ∗ denotes cyclic convolution on the product of the coordinate groups and a dot denotes coordinatewise multiplication.

        • saagarjha 18 minutes ago
          Sure, I don’t see what’s horrible about this? It is a lot to read, sure, but it doesn’t seem unreasonably advanced