← Latest papers
💻 computer science

Truly Subquadratic 3SUM and Truly Subcubic APSP via Triangles in Sparse Lopsided Graphs

This paper presents the first polynomial improvements over textbook algorithms for 3SUM and All-Pairs Shortest Paths (APSP) by introducing a novel algorithm for computing sparse entries of matrix products in lopsided graphs, which refutes the 3SUM and APSP hypotheses and yields speedups for numerous related problems.

Original authors: Josh Alman, Virginia Vassilevska Williams

Published 2026-10-06
📖 5 min read🧠 Deep dive

Original authors: Josh Alman, Virginia Vassilevska Williams

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). ✨ This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

In the vast landscape of computer science, there are problems that have stubbornly resisted improvement for decades, acting as speed bumps for our ability to process information faster. Two of the most famous of these are the "three-sum" problem and the "all-pairs shortest paths" problem. The first asks a simple question: given a list of numbers, can you find three that add up to zero? For a long time, the best way to solve this for a large list of numbers took a amount of time that grew with the square of the list size. The second problem asks for the shortest distance between every single pair of cities in a network of roads. The best known method for this has always taken time that grows with the cube of the number of cities. For years, computer scientists believed these limits were unbreakable, forming a set of rules called "hypotheses" that suggested no algorithm could ever be significantly faster than these textbook methods. These problems are not just abstract puzzles; they underpin everything from mapping software to detecting patterns in complex data, so finding a way to break these speed limits would be a monumental shift in how we compute.

A team of researchers from Columbia University and MIT, working with an artificial intelligence model developed by Anthropic, has now shattered these long-held beliefs. They have discovered a new way to solve these problems that is genuinely faster than the previous best methods. Instead of taking time proportional to the square of the input size for the three-sum problem, their new method solves it in a time that is slightly less than the square. Similarly, for the shortest paths problem, they have reduced the time required to slightly less than the cube of the number of cities. This is not a minor tweak or a trick that only works in special cases; it is a fundamental improvement that applies to a wide range of inputs. By proving that these problems can be solved faster, the researchers have effectively refuted the hypotheses that claimed they could not be.

The secret behind this breakthrough lies in a clever new approach to multiplying matrices, which are simply grids of numbers used to represent data. The researchers focused on a specific type of matrix multiplication where the grids are very thin and long, rather than square. They realized that if you only need to know the answers for a few specific spots in the final result, rather than calculating every single number in the entire grid, you can skip a massive amount of work. They designed an algorithm that acts like a highly efficient filter, ignoring the calculations that would produce answers nobody asked for. This technique was built by modifying an older mathematical identity, a set of rules for combining numbers, to work only on the specific pieces of information that mattered.

The power of this discovery comes from how these different computer problems are connected. In the world of fine-grained complexity, researchers have spent years mapping out how solving one problem helps you solve another. They found that if you can solve the "three-sum" problem faster, you can also solve the "shortest paths" problem faster, and vice versa. The new algorithm acts as a master key. By cracking the code for the specific matrix multiplication problem, the researchers unlocked faster solutions for dozens of other problems that were previously thought to be stuck at their old speeds. This includes finding triangles in networks, checking for specific patterns in data, and optimizing various types of search and sorting tasks.

The team did not just find a theoretical possibility; they provided a concrete, deterministic method that works every time. They also showed that their approach works even when the numbers involved are not just whole integers but real numbers, which are the kind of values used in most real-world scientific calculations. The researchers used a powerful AI tool to help verify their mathematical proofs, ensuring that the logic behind their speedup was sound. This collaboration between human researchers and artificial intelligence highlights a new era in scientific discovery, where machines can help uncover deep mathematical truths that humans might miss.

The implications of this work extend far beyond the specific problems of three-sum and shortest paths. It challenges the idea that some computational limits are absolute. For decades, the community has accepted that certain problems require a specific amount of time to solve, and that trying to go faster was futile. This paper demonstrates that those limits were not walls, but merely ceilings that could be raised with the right perspective. While the new algorithms are currently too complex to be used in everyday software due to the enormous hidden constants in their speed, the proof that they exist changes the theoretical foundation of computer science. It opens the door for future researchers to refine these methods, potentially leading to practical tools that can process massive datasets much more efficiently than ever before. The researchers have shown that even the most stubborn problems can yield to fresh thinking, proving that the boundaries of what is computable are always worth testing.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →