Breakthrough O(n log n) Integer Multiplication Algorithm Explained
Breakthrough O(n log n) Integer Multip…
New paper proposes o(n log n) integer multiplication algorithm: theoretical breakthrough, practicality yet to be verified.
A recent paper proposes a new integer multiplication algorithm claiming to reduce complexity to o(n log n), better than the classic Schönhage-Strassen algorithm. The algorithm optimizes the zero-padding step in FFT, introduces multi-modulus representation and recursive splitting strategies, uses NTT for parallel computation under multiple small moduli, and then combines results via CRT. The Hacker News community discussed it enthusiastically, with both recognition of the theoretical breakthrough and doubts about practical performance due to large constant factors and complex preprocessing. The paper has not yet undergone peer review, and its correctness still needs verification. If confirmed, the algorithm could affect fields such as cryptography and scientific computing, but there is still a long way from theory to practice.
Algorithm Background and Core Breakthrough
Integer multiplication is a fundamental operation in computer science, and traditionally we have relied on algorithms such as Karatsuba, Toom-Cook, and Schönhage-Strassen. However, for a long time, the theoretical complexity lower bound for integer multiplication has remained around O(n log n), yet practical algorithms have struggled to achieve this target. Recently, a paper titled "The recently proposed o(n log n) integer multiplication algorithm" sparked heated discussion on Hacker News (293 points, 253 comments). The paper proposes a new integer multiplication algorithm claiming to reduce complexity to o(n log n). If this breakthrough holds, it will rewrite textbooks in computational mathematics.
The paper's author, David Harvey from the University of New South Wales, focuses his research on computational number theory and algorithms. The new algorithm is based on improvements to modular arithmetic and the Fast Fourier Transform (FFT), introducing "sparse convolution" and "segmentation techniques" to theoretically achieve better asymptotic complexity than Schönhage-Strassen. Although the specific implementation details remain to be verified, this theoretical advance has attracted widespread attention from academia and industry.
The Schönhage-Strassen algorithm is an integer multiplication algorithm proposed by Arnold Schönhage and Volker Strassen in 1971. It has long held the record for optimal asymptotic complexity, with a complexity of O(n log n log log n), where n is the number of digits in the operands. The algorithm transforms integer multiplication into polynomial multiplication and uses the Fast Fourier Transform (FFT) over rings to compute, greatly reducing the computational load. For nearly half a century, it has been the upper bound benchmark for integer multiplication complexity in theoretical computer science and is one of the core algorithms for handling very large integer multiplication in many high-precision computation libraries (such as GMP). The new algorithm claims to reduce complexity to o(n log n), meaning it surpasses this classic result in the asymptotic sense.
Technical Principles and Innovations
The core of the algorithm lies in optimizing the "zero-padding" step in traditional FFT multiplication. In traditional methods, to avoid aliasing from cyclic convolution, the input sequence needs to be padded to twice its length, increasing the computational load. The new algorithm constructs special moduli that allow exact multiplication at smaller lengths, thereby reducing complexity.
Specifically, the paper introduces "multi-modulus representation" and "recursive splitting" strategies: first, large integers are split into multiple small blocks, and Number Theoretic Transforms (NTT) are used to compute in parallel under multiple small moduli, then the results are combined via the Chinese Remainder Theorem. This approach is similar to the "sparse FFT" technique recently used in polynomial multiplication, but with targeted improvements for integer multiplication. According to the paper's abstract, the algorithm's complexity for large n is O(n log n / log log n), better than Schönhage-Strassen's O(n log n log log n).
The Number Theoretic Transform (NTT) is a variant of the Fast Fourier Transform (FFT) over finite fields or integer modular rings, often used to avoid precision errors from floating-point operations. In integer multiplication, NTT performs convolution computations modulo some prime p; as long as p is large enough to prevent overflow, the integer product can be exactly reconstructed. Compared to complex-number-based FFT, NTT performs all operations under integer moduli, making it more suitable for computer implementation and free of rounding errors. The new algorithm uses parallel NTT computations under multiple small moduli and then combines them via the Chinese Remainder Theorem. This multi-modulus strategy can reduce the length of individual transforms, thereby reducing the computational load, and is one of the key techniques for breaking through the bottleneck of traditional FFT multiplication.
The Chinese Remainder Theorem (CRT) is a classic theorem in number theory, stating that if the remainders of an integer under several pairwise coprime moduli are known, the integer can be uniquely determined modulo the product of these moduli. In integer multiplication algorithms, CRT is often used to split large integers into components under multiple small moduli, perform fast computations separately, and then combine the results. The new algorithm selects a set of small moduli so that the NTT length under each modulus is shorter, thereby reducing overall complexity; finally, CRT is used to reassemble the convolution results under each modulus into the complete product. This step requires the product of moduli to be large enough to accommodate the result, while the choice of moduli must balance computational efficiency and combination cost.
Community Discussion and Controversy
In the Hacker News discussion, developers fiercely debated the practical significance of the algorithm. Some comments pointed out that a reduction in theoretical complexity does not equate to actual performance improvement, because the new algorithm has large constant factors and requires complex preprocessing steps, and may still fall short of highly optimized existing libraries (such as GMP) at realistic scales. Other users believed that this achievement points the way for future algorithm optimization, especially in cryptography and high-precision computation, where improvements in asymptotic complexity may lead to new applications.
Additionally, some comments questioned the peer-review status of the paper, noting that it has not yet been published in a top conference or journal and that its correctness still requires time to verify. However, given the author's previous contributions in computational number theory, the community is generally cautiously optimistic.
Potential Impact and Future Directions
If the algorithm is confirmed and implemented, its impact will ripple across multiple fields. In cryptography, large integer multiplication is a fundamental operation for public-key encryption such as RSA and ECC. Faster multiplication could accelerate key generation and signature verification, but could also pose a potential threat to cryptographic systems based on the difficulty of large integer factorization. In scientific computing, high-precision floating-point operations and symbolic computation rely on fast multiplication, and the new algorithm is expected to improve computational efficiency.
However, there is still a long way from theory to practice. The algorithm needs rigorous mathematical proof, peer review, and engineering optimization before it can be deployed. In the future, the research team may work on reducing constant factors or exploring accelerated implementations on specific hardware (such as GPUs and FPGAs).
Conclusion
The o(n log n) integer multiplication algorithm proposed in this paper is an important attempt in the field of computational mathematics. Although its practicality remains to be verified, its theoretical value cannot be ignored. It reminds us that breakthroughs in fundamental algorithms often stem from re-examining classic methods, and the lively community discussion also reflects the ongoing exploration of the nature of computation.
One-line Summary
A new paper proposes an o(n log n) integer multiplication algorithm—a theoretical breakthrough, but practicality remains to be verified.
Paragraph Summary
A recent paper proposes a new integer multiplication algorithm claiming to reduce complexity to o(n log n), better than the classic Schönhage-Strassen algorithm. The algorithm optimizes the zero-padding step in FFT, introduces multi-modulus representation and recursive splitting strategies, uses Number Theoretic Transforms (NTT) for parallel computation under multiple small moduli, and then combines results via the Chinese Remainder Theorem. The Hacker News community discussed it enthusiastically, with both recognition of the theoretical breakthrough and doubts about practical performance due to large constant factors and complex preprocessing. The paper has not yet undergone peer review, and its correctness still needs verification. If confirmed, the algorithm could affect fields such as cryptography and scientific computing, but there is still a long way from theory to practice.
Related articles

Reddit Discussion: Real-World AI Agent Use Cases Shared for Business School Classrooms
A Reddit business school lecturer seeks real AI Agent use cases for classroom teaching. This article compiles typical AI Agent applications in professional and personal scenarios and offers three analytical dimensions for selecting classroom cases, helping readers understand the practical value and limitations of AI Agents.

Multi-LLM Provider API Integration: Standardization Challenges and Compliance Headaches
Explore the current state and challenges of multi-LLM provider API standardization, analyze enterprise data compliance pain points, and share community practices and router limitations for data governance in multi-model architectures.

Binance Halts Withdrawals as Hackers Suspected of Stealing Billions in Crypto
Binance paused withdrawals Thursday after a suspected cyberattack, with some estimates claiming billions in crypto stolen. This article reviews the incident, the uncertainty of loss estimates, and the custody trust paradox facing centralized exchanges.