Papers
Topics
Authors
Recent
Search
2000 character limit reached

Simple, Faster (min, +) Matrix Multiplication and APSP

Published 14 Oct 2026 in cs.DS | (2610.20297v1)

Abstract: In this note, we provide a deterministic algorithm that computes the (min⁡,+)(\min, +)-Matrix Product C=A∗BC = A * B of two N×NN \times N matrices AA and BB with polynomially bounded integer entries in O~(N<sup>2.9964)\tilde{O}(N<sup>{2.9964}) time, improving upon the exponent of O(N<sup>2.9995)O(N<sup>{2.9995}) time obtained in the recent breakthrough by Anthropic (Alman and Vassilevska Williams, 2026). Our algorithm uses a phased approach first proposed by Bringmann, Grandoni, Saha, and Vassilevska Williams in 2016. The phased approach produces an approximation C~\tilde{C} of CC in truly subcubic time such that the number of remaining triples $(i,k,j): A_{i,k}+B_{k,j} &lt; \tilde{C}(i,j)$ is truly subcubic. This provided strong evidence that a truly subcubic (min⁡,+)(\min, +)-Matrix Product and therefore, a truly subcubic algorithm for All Pairs Shortest Paths (APSP) may exist. However, to find the remaining triples in subcubic time, a sparse certificate is needed whose construction was not known. We use the thin matrix product theorem of the recent breakthrough to provide such a certificate. This gives a simple modular subcubic algorithm for APSP.

Authors (2)

Summary

  • The paper proposes a new deterministic algorithm for matrix multiplication and APSP, leveraging the $(\min,+)$ matrix product framework, demonstrating an improved running time of $O(N^{2.9963432})$ for polynomially bounded integer entries.
  • The computed matrix leverage sparse-certificate verification to isolate combinatorial difficulties by providing $O(N^{2.9963432})$ running times for selected $(\min,+)$ Matrix Products and related problems, enhancing computational efficiency.
  • Achievement of this improved exponent relies on updating the phased approximation-and-verification algorithm, incorporating a thin matrix product theorem that calculates specific matrix entries.

Problem setting and contribution

The paper studies the (min⁡,+)(\min,+) matrix product of two N×NN \times N matrices, defined by

(A∗B)[i,j]=min⁡k∈[N]{A[i,k]+B[k,j]}.(A * B)[i,j] = \min_{k \in [N]} \{A[i,k] + B[k,j]\}.

This operation is equivalent, up to polylogarithmic factors and standard reductions, to APSP and several other fine-grained problems, including Negative Triangle, Replacement Paths, Metricity, (min⁡,+)(\min,+)-Verification, Weighted Tree Edit Distance, and two-dimensional Maximum Subarray. The central objective is to improve the exponent below three for polynomially bounded integer entries.

The main claimed result is a deterministic algorithm with running time

O(N2.9963432),O\left(N^{2.9963432}\right),

together with a Las Vegas algorithm achieving expected time of the same exponent, up to polylogarithmic factors. The improvement is obtained by combining the phased approximation-and-verification framework for (min⁡,+)(\min,+) multiplication with a thin matrix product theorem that computes selected entries of a rectangular Boolean or integer matrix product faster than dense multiplication. The paper’s principal methodological claim is that the sparse-certificate component required by the phased framework can be supplied without monotonicity or bounded-difference assumptions.

The stated contribution is therefore not a new reduction from APSP, but a modular exploitation of a recently assumed thin matrix product primitive. The resulting algorithm is conceptually decomposed into: additive approximation, modular candidate generation, sparse-certificate verification, and, for derandomization, a hierarchical deterministic search over candidate blocks (2610.20297).

Relation to the phased framework

The algorithm follows the framework in which the exact (min⁡,+)(\min,+) product is reduced to a witness-equality problem. Given matrices AA, BB, and a candidate output matrix CC, the witness-equality problem asks whether every position N×NN \times N0 has some N×NN \times N1 satisfying

N×NN \times N2

The paper uses a standard recursive scaling argument. If N×NN \times N3 and N×NN \times N4 are obtained by halving and rounding the entries of N×NN \times N5 and N×NN \times N6, then N×NN \times N7 gives a constant-additive approximation to N×NN \times N8. For each pair N×NN \times N9, the exact optimum must lie among three candidate values derived from the approximate product. The witness-equality procedure is then invoked on these candidates, and the recursion contributes a factor logarithmic in the entry bound (A∗B)[i,j]=min⁡k∈[N]{A[i,k]+B[k,j]}.(A * B)[i,j] = \min_{k \in [N]} \{A[i,k] + B[k,j]\}.0.

This reduction is important because it isolates the combinatorial difficulty: instead of computing all minima directly, the algorithm must efficiently determine whether a candidate value has an exact witness. The paper’s sparse-certificate strategy addresses precisely this problem.

The inner dimension is partitioned into contiguous blocks of size (A∗B)[i,j]=min⁡k∈[N]{A[i,k]+B[k,j]}.(A * B)[i,j] = \min_{k \in [N]} \{A[i,k] + B[k,j]\}.1. A block (A∗B)[i,j]=min⁡k∈[N]{A[i,k]+B[k,j]}.(A * B)[i,j] = \min_{k \in [N]} \{A[i,k] + B[k,j]\}.2 is a genuine block witness for (A∗B)[i,j]=min⁡k∈[N]{A[i,k]+B[k,j]}.(A * B)[i,j] = \min_{k \in [N]} \{A[i,k] + B[k,j]\}.3 if it contains some (A∗B)[i,j]=min⁡k∈[N]{A[i,k]+B[k,j]}.(A * B)[i,j] = \min_{k \in [N]} \{A[i,k] + B[k,j]\}.4 satisfying the candidate equality. The algorithm attempts to discard most blocks while retaining every genuine block. The total number of blocks is (A∗B)[i,j]=min⁡k∈[N]{A[i,k]+B[k,j]}.(A * B)[i,j] = \min_{k \in [N]} \{A[i,k] + B[k,j]\}.5 per output pair, so an exhaustive search would still require cubic time. The target is consequently a certificate containing only a truly subcubic number of false candidates.

Modular candidate filtering

For a prime (A∗B)[i,j]=min⁡k∈[N]{A[i,k]+B[k,j]}.(A * B)[i,j] = \min_{k \in [N]} \{A[i,k] + B[k,j]\}.6 and a block (A∗B)[i,j]=min⁡k∈[N]{A[i,k]+B[k,j]}.(A * B)[i,j] = \min_{k \in [N]} \{A[i,k] + B[k,j]\}.7, the algorithm declares (A∗B)[i,j]=min⁡k∈[N]{A[i,k]+B[k,j]}.(A * B)[i,j] = \min_{k \in [N]} \{A[i,k] + B[k,j]\}.8 a candidate for (A∗B)[i,j]=min⁡k∈[N]{A[i,k]+B[k,j]}.(A * B)[i,j] = \min_{k \in [N]} \{A[i,k] + B[k,j]\}.9 if some (min⁡,+)(\min,+)0 satisfies

(min⁡,+)(\min,+)1

Every genuine block witness passes this test for every prime. A false block can pass only if at least one nonzero difference

(min⁡,+)(\min,+)2

is divisible by the sampled prime. Since the entries are polynomially bounded, each nonzero (min⁡,+)(\min,+)3 has only (min⁡,+)(\min,+)4 prime divisors in an interval (min⁡,+)(\min,+)5. Applying the prime number theorem and a union bound over the (min⁡,+)(\min,+)6 elements of the block gives a false-positive probability of order

(min⁡,+)(\min,+)7

Choosing (min⁡,+)(\min,+)8 sufficiently larger than (min⁡,+)(\min,+)9 makes this probability a constant below one. Repeating the test with O(N2.9963432),O\left(N^{2.9963432}\right),0 independent primes reduces the expected number of surviving false candidates to approximately O(N2.9963432),O\left(N^{2.9963432}\right),1.

The modular tests are implemented through ordinary matrix multiplication. For a fixed block and prime, the paper constructs matrices whose inner dimension is O(N2.9963432),O\left(N^{2.9963432}\right),2, encoding the residues of O(N2.9963432),O\left(N^{2.9963432}\right),3 and O(N2.9963432),O\left(N^{2.9963432}\right),4. For an output pair whose residue class matches O(N2.9963432),O\left(N^{2.9963432}\right),5, a positive entry of the resulting product certifies the existence of a modular witness in the block. The crucial point is that only selected output positions need to be computed: positions are grouped according to the residue of O(N2.9963432),O\left(N^{2.9963432}\right),6, and the thin matrix product theorem is applied separately to these sparse sets.

This is the main interface between the earlier phased framework and the thin matrix product result. The construction does not require O(N2.9963432),O\left(N^{2.9963432}\right),7 or O(N2.9963432),O\left(N^{2.9963432}\right),8 to be monotone, bounded-difference, or otherwise structured. Its cost is controlled by the rectangular dimension O(N2.9963432),O\left(N^{2.9963432}\right),9 and by the sparsity of the queried output positions.

Use of thin matrix multiplication

The paper invokes the following primitive: for (min⁡,+)(\min,+)0 and (min⁡,+)(\min,+)1 with (min⁡,+)(\min,+)2, and for a set (min⁡,+)(\min,+)3 of at most (min⁡,+)(\min,+)4 output positions, the entries (min⁡,+)(\min,+)5 for (min⁡,+)(\min,+)6 can be computed deterministically in time

(min⁡,+)(\min,+)7

for suitable (min⁡,+)(\min,+)8 depending on (min⁡,+)(\min,+)9 and (min⁡,+)(\min,+)0. The paper attributes this primitive to Theorem 25 of the cited breakthrough work and uses it as a black box (2610.20297).

When a residue class contains more than the permitted number of queried positions, the set is partitioned into smaller subsets. Summing over all residue classes yields a candidate-verification cost of the form

(min⁡,+)(\min,+)1

for one block and one prime, with logarithmic factors suppressed in the exposition. Repeating over all (min⁡,+)(\min,+)2 blocks and the sampled primes leads to the total randomized witness-equality cost

(min⁡,+)(\min,+)3

The terms have distinct origins: scanning blocks, constructing residue-encoding matrices, invoking the thin product theorem, checking surviving genuine blocks, and processing false candidates. The last term is the expected cost of false-candidate enumeration.

The parameter choice reported in the paper is

(min⁡,+)(\min,+)4

Taking (min⁡,+)(\min,+)5 proportional to (min⁡,+)(\min,+)6 and choosing (min⁡,+)(\min,+)7 near (min⁡,+)(\min,+)8 balances the dominant terms. The resulting exponent is

(min⁡,+)(\min,+)9

Thus the numerical improvement is extremely small but formally below three. The same exponent propagates through the logarithmic-depth scaling reduction, yielding the stated AA0 product bound and, via standard reductions, the corresponding APSP bound.

Randomized algorithm

The randomized algorithm samples primes independently from AA1. Genuine block witnesses survive all modular tests, whereas false blocks survive with exponentially decreasing probability in the number of samples. For every output pair, the algorithm enumerates the elements of surviving candidate blocks and stops as soon as it finds an exact witness.

The early stopping rule is essential to the analysis. For a fixed output pair, at most one genuine block witness needs to be fully processed: once the algorithm reaches one, it finds an exact witness and terminates. Consequently, genuine blocks contribute only AA2 total work. False candidates contribute expected time proportional to their number times the block size, which is AA3 after setting the sampling parameter to AA4.

The algorithm is Las Vegas rather than Monte Carlo because modular filtering can create false candidates but cannot eliminate a genuine block witness. The final exact enumeration therefore preserves correctness for every random outcome; randomness affects only the running time.

The paper claims an expected running time of AA5 for polynomially bounded integer entries. This claim depends directly on the stated thin matrix product theorem and on the parameter instantiation attributed to it. Any change in the admissible AA6, AA7, or AA8 values would change the final exponent.

Deterministic derandomization

The deterministic algorithm replaces independent prime sampling with a hierarchical selection of good primes. Blocks are recursively subdivided, and the search proceeds depth-first. At level AA9, blocks have size approximately BB0. The algorithm maintains a potential function that upper-bounds the number of false candidate blocks at that level.

For a block and prime BB1, let BB2 count nonzero modular witnesses—elements satisfying the congruence but not the exact equality. The potential is the product of these counts over a constant-size set of selected primes, summed over all output pairs and blocks. If the selected primes are well chosen, the potential decreases by a factor related to the block size at each additional prime. This yields a bound of the form

BB3

where BB4 is the number of primes selected at each level.

The difficulty is that the exact potential depends on whether modular witnesses are genuine, which is itself the problem being solved. The paper addresses this by introducing an efficiently computable estimator BB5 that approximates the potential within a constant factor. The estimator uses inclusion-exclusion over auxiliary primes and computes tuple counts through matrix multiplication over a multivariate polynomial ring. For constant BB6, the resulting algebraic overhead is polynomial in BB7 and does not alter the exponent.

At each level, the algorithm evaluates BB8 over a family of candidate primes and greedily chooses primes minimizing the estimator. This produces a deterministic set of moduli with the required potential bound. The construction is technically more involved than the randomized version and introduces a dependence on rectangular matrix multiplication costs of the form

BB9

The paper then uses a data-structure variant of the thin matrix product theorem. This permits faster preprocessing for the residue-encoded products while increasing the cost of individual queries. The depth-first traversal makes this tradeoff effective: higher levels have fewer candidate blocks, so more expensive queries can be tolerated.

The reported deterministic parameters are

CC0

The block size, prime range, and recursion depth are chosen as

CC1

The choice CC2 ensures that the geometric decay in false candidates dominates the growth of query costs across levels. With these settings, the prime-selection cost, data-structure preprocessing, queries, and final scans are each bounded by CC3, up to polylogarithmic factors. The paper therefore claims the same CC4 exponent deterministically.

Technical assessment of the claims

The paper’s strongest claim is that a recent thin matrix product theorem can be inserted into an older sparse-certificate framework without requiring structural assumptions on the input matrices. If all cited black-box results and parameter ranges hold exactly as stated, the modular algorithm is a plausible and relatively clean route to the claimed exponent. Its main conceptual value is the separation between candidate generation and exact verification.

Several aspects nevertheless require careful scrutiny.

First, the exponent is conditional on the precise form of the thin matrix product theorem, including its allowable range of CC5, its dependence of CC6 on CC7, and the availability of the data-structure version used in the deterministic construction. The proof treats these results as black boxes and does not independently establish them.

Second, the presentation contains numerous transcription and notation defects in the supplied manuscript: inequalities and set delimiters are missing in several places, matrix dimensions are malformed, and some displayed expressions are syntactically incomplete. These defects do not necessarily invalidate the underlying strategy, but they make the proof difficult to verify line by line. In particular, the deterministic section requires a careful audit of the potential estimates, the estimator computation, and the cumulative preprocessing costs.

Third, the reduction assumes polynomially bounded integer entries. The paper explicitly leaves extension to real-valued matrices open. This restriction is substantive: the modular-prime filtering argument relies on nonzero integer differences having few prime divisors. A real-valued analogue cannot use the same divisibility argument without an additional discretization or algebraic encoding step.

Fourth, the abstract describes a deterministic algorithm in CC8, while the theorem statement gives CC9 and the randomized theorem gives expected N×NN \times N00. The distinction between suppressed logarithmic factors and the explicit exponent should be maintained consistently. Moreover, the paper’s claims about equivalent APSP problems inherit the entry-domain restrictions and any assumptions in the reductions.

Finally, the manuscript reports that ChatGPT contributed ideas to the deterministic algorithm and parameter optimization. This is a disclosure rather than a mathematical component of the proof. The validity of the deterministic result rests on the formal lemmas and their verification, not on the stated origin of the ideas.

Limitations and open questions

The paper leaves open whether the exponent can be improved by strengthening the thin matrix product theorem. Within the presented framework, the exponent improvement is exactly governed by the product N×NN \times N01, so better admissible rectangular dimensions or a larger decay parameter would directly improve the result.

The extension from polynomially bounded integers to real-valued matrices is also unresolved. The randomized algorithm’s correctness and sparsity analysis use modular divisibility in an essential way, and the paper does not provide a replacement for this mechanism over arbitrary reals.

A further open issue is whether the deterministic construction can be simplified or made quantitatively sharper. Its hierarchical potential argument introduces substantial machinery—multivariate polynomial rings, greedy prime selection, and level-dependent data structures—despite achieving the same exponent as the randomized procedure. The proof also depends on several parameter inequalities that should be checked against the exact constants and hypotheses of the cited thin-product theorem.

Conclusion

The paper presents a modular N×NN \times N02 matrix multiplication algorithm based on additive approximation, modular sparse-certificate generation, and thin rectangular matrix products. Its central claim is a deterministic and Las Vegas running time of N×NN \times N03 for polynomially bounded integer inputs, improving the previously stated N×NN \times N04 exponent. The randomized construction is comparatively direct; the deterministic version replaces random prime sampling with potential minimization and a hierarchical depth-first search. The claimed improvement is small, but the framework is technically significant because it removes structural assumptions from the sparse-certificate stage. Its conclusions remain contingent on the cited thin matrix product primitives and on filling the manuscript’s substantial presentation and verification gaps (2610.20297).

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Explain it Like I'm 14

论文的主要主题

这篇论文研究了一类很重要的矩阵运算,叫做 (min⁡,+)(\min,+) 矩阵乘法,以及一个和它密切相关的问题:全点对最短路径(All-Pairs Shortest Paths,简称 APSP)。

全点对最短路径问题是指:给定一个有很多顶点的网络,找出每一对顶点之间的最短距离。例如,在地图中,它可以表示“任意两个城市之间的最短路线”。

传统方法大约需要 N3N^3 的时间。论文提出了一种更快的方法,运行时间约为:

O(N2.9963432)O(N^{2.9963432})

这里的 NN 是矩阵的大小,也可以理解为图中顶点的数量。这个数字比 $3$ 略小,因此它被称为真正的次立方时间。


研究目标和问题

论文主要想解决以下问题:

  1. 能不能比传统的 N3N^3 时间更快地计算 (min⁡,+)(\min,+) 矩阵乘法?
  2. 能不能把这种更快的矩阵运算用于更快地解决全点对最短路径问题?
  3. 能不能设计一种既有效又容易理解的算法?
  4. 能不能让算法不依赖随机选择,也就是设计出完全确定性的版本?

论文最后给出了两个主要结果:

  • 一个随机算法,平均运行时间约为 O(N2.9963432)O(N^{2.9963432});
  • 一个确定性算法,也能达到约为 O(N2.9963432)O(N^{2.9963432}) 的运行时间。

“随机算法”会使用随机选择,但能够保证期望的运行速度;“确定性算法”则每次运行都按照固定规则进行,不需要依赖随机性。


什么是 (min⁡,+)(\min,+) 矩阵乘法?

普通矩阵乘法使用“乘法加法”:

C[i,j]=∑kA[i,k]×B[k,j]C[i,j] = \sum_k A[i,k] \times B[k,j]

而 (min⁡,+)(\min,+) 矩阵乘法使用“加法取最小值”:

C[i,j]=min⁡k(A[i,k]+B[k,j])C[i,j] = \min_k \bigl(A[i,k] + B[k,j]\bigr)

可以把它想象成寻找路线:

  • A[i,k]A[i,k] 表示从地点 ii 到中间地点 kk 的距离;
  • B[k,j]B[k,j] 表示从地点 kk 到地点 jj 的距离;
  • 两段路线的总长度是 A[i,k]+B[k,j]A[i,k]+B[k,j];
  • 我们尝试所有中间地点 kk,然后选择最短的那一条。

所以,这种矩阵乘法天然适合处理最短路径问题。


研究方法:算法是怎样工作的?

论文的方法可以分成几个主要步骤。

1. 先得到一个大概答案

算法不会一开始就精确计算每个答案,而是先通过“缩小和四舍五入”等方法,得到一个比较接近的估计值。

这就像先在地图上估计两座城市之间的距离,而不是马上检查每一条可能的道路。

有了这个估计后,算法就能排除大量明显不可能成为最短路线的选项。


2. 把可能的中间点分成小组

对于每一对位置 (i,j)(i,j),算法需要寻找一个中间点 kk,使得:

A[i,k]+B[k,j]=C[i,j]A[i,k]+B[k,j]=C[i,j]

其中 C[i,j]C[i,j] 是我们想验证的答案。

算法把所有可能的中间点 kk 分成许多小组,也叫作“块”。如果某个小组中存在合适的 kk,这个小组就叫作一个候选块。

这样,算法不必立刻检查所有中间点,而是先判断哪些小组值得进一步检查。


3. 使用模运算筛掉错误候选

论文使用了模运算,也就是计算一个数除以某个数后的余数。

例如:

  • $17$ 除以 $5$ 的余数是 $2$;
  • $32$ 除以 $5$ 的余数也是 $2$。

如果一个小组中真的存在正确的中间点,那么它一定会通过模运算检查。

如果这个小组中没有正确的中间点,那么它通常会被模运算排除。论文通过随机选择一些大质数作为除数,让错误候选很难一直蒙混过关。

这有点像给每个候选答案做多次“指纹检查”:

  • 正确答案每次都能通过;
  • 错误答案可能偶尔通过一次,但很难连续通过很多次。

4. 使用“稀疏证明”减少检查数量

论文的一个关键想法是构造一个稀疏证明。

“稀疏”在这里表示:虽然原本可能有非常多的候选组合,但经过筛选后,只剩下少量候选需要真正检查。

例如,原来可能要检查一百万种可能性,算法先用快速测试排除绝大多数,只保留几千种真正值得检查的情况。

论文使用了一种称为 thin matrix product 的技术来完成这一点。它的作用是:

  • 不必计算整个矩阵乘积;
  • 只计算少数真正需要的位置;
  • 因此节省大量时间。

可以把它想象成:老师不批改整本练习册,而是只检查最容易出错、最关键的题目。


5. 找到真正的答案

筛选出候选块以后,算法才会检查其中的每一个中间点。

如果找到某个 kk 满足:

A[i,k]+B[k,j]=C[i,j]A[i,k]+B[k,j]=C[i,j]

就说明找到了真正的证据,也叫作一个 witness(见证者)。

如果所有候选都检查完仍然没有找到这样的 kk,就说明当前的 C[i,j]C[i,j] 不是正确答案。


随机算法和确定性算法的区别

随机算法

随机算法会随机选择一些质数。

对于错误的候选块,每次检查都有一定概率将其排除。进行多次独立检查后,错误候选继续留下来的概率会变得非常小。

这种方法速度快,而且实现相对简单,但它的运行时间是“期望”意义上的。

确定性算法

确定性算法不随机选择质数,而是通过计算找出“好质数”。

论文设计了一个评分方法,用来估计每个质数能排除多少错误候选,然后选择评分最好的质数。

它还使用了分层搜索:

  • 先检查较大的块;
  • 如果某个大块可能有答案,就把它分成更小的块;
  • 继续深入检查;
  • 最后检查具体的中间点。

这种方法类似于在图书馆找一本书:

  1. 先找到正确的书架;
  2. 再找到正确的书柜;
  3. 最后找到具体的那本书。

主要结果

论文得到的最重要结果如下:

结果 含义
更快的 (min⁡,+)(\min,+) 矩阵乘法 运行时间约为 O(N2.9963432)O(N^{2.9963432})
随机版本 使用随机质数,期望达到上述速度
确定性版本 不使用随机性,也达到类似速度
更快的 APSP 由于 APSP 和 (min⁡,+)(\min,+) 矩阵乘法关系密切,因此可以改进全点对最短路径算法
可应用于其他问题 还可能帮助解决替代路径、第二短路径、加权树编辑距离等问题

虽然 $2.9963432$ 和 $3$ 看起来只差一点点,但在理论计算机科学中,这种改进很重要。因为它第一次真正突破了传统的立方时间界限。

当 NN 非常大时,即使指数只减少一点,节省的计算量也可能很可观。


为什么这些结果重要?

全点对最短路径是计算机科学中的基础问题。它可以用于:

  • 地图导航和路线规划;
  • 网络中的数据传输;
  • 交通系统分析;
  • 社交网络中的关系距离计算;
  • 研究其他算法问题的难度。

过去,很多研究者猜测,对于一般图来说,全点对最短路径可能很难明显快于 N3N^3 时间。论文使用的新技术说明:这个猜测至少在某种程度上是不正确的。

这项工作的重要性还不只在于速度提高。论文还把复杂的技术分成了比较清楚的模块:

  1. 先近似;
  2. 再筛选候选;
  3. 使用模运算减少错误;
  4. 最后精确验证。

这种模块化设计可能帮助其他研究者进一步改进算法。


研究的影响和未来方向

这篇论文表明,许多看似必须花费 N3N^3 时间的问题,其实可以通过更聪明的筛选和矩阵技术来加速。

它的潜在影响包括:

  • 让大型图上的最短路径计算更加高效;
  • 改进一批与 (min⁡,+)(\min,+) 矩阵乘法有关的算法;
  • 为未来突破 N2.9963432N^{2.9963432} 提供基础;
  • 推动对快速矩阵乘法和稀疏证明技术的研究。

不过,这个改进目前主要针对整数矩阵,而且整数大小需要受到限制。论文也指出,未来可以继续研究:

  • 能否进一步降低运行时间的指数;
  • 能否更快地完成 thin matrix product;
  • 能否把方法推广到实数矩阵;
  • 能否让算法在实际程序中同样有效。

简单来说,这篇论文的核心思想是:

不要检查所有可能的答案,而是先用快速的数学测试排除绝大多数错误答案,再仔细检查少数剩下的候选答案。

正是这种“先筛选、后验证”的策略,让作者能够比传统的 N3N^3 方法更快地解决最短路径相关问题。

Knowledge Gaps

Knowledge gaps, limitations, and open questions

  • The deterministic algorithm is not fully established in the provided text. The proof of the deterministic running-time bound ends abruptly during the analysis of the depth-first search, so the claimed O(N2.9963432)O(N^{2.9963432}) deterministic algorithm requires a complete query-count and parameter-optimization proof.
  • Several central statements contain malformed or incomplete notation. Examples include missing set and matrix dimensions, undefined or corrupted inequalities, incomplete equations, and inconsistent expressions for matrix-product costs. It remains necessary to reconstruct and formally verify the intended statements before the results can be independently checked.
  • The parameter optimization leading to the exponent $2.9963432$ is not fully justified. The paper instantiates ε=0.056\varepsilon=0.056, κ=0.5\kappa=0.5, and γ=0.0653\gamma=0.0653, but does not provide the complete derivation from the thin matrix product theorem or verify all constraints simultaneously, including ε<Rc(gℓ)\varepsilon<R_c(g_\ell) at every deterministic-search level.
  • The dependence of γ\gamma on ε\varepsilon and κ\kappa is left implicit. Since the thin matrix product theorem only asserts the existence of a suitable γ\gamma, the numerical exponent cannot be independently reproduced without the explicit parameter mapping from the cited result.
  • The treatment of logarithmic factors and the input magnitude is incomplete. The stated theorems claim running times of O(N2.9963432)O(N^{2.9963432}), while intermediate bounds include factors depending on log⁡U\log U and powers of log⁡U\log U. The precise model under which these factors are absorbed into the claimed complexity should be stated.
  • The algorithm is restricted to polynomially bounded integer entries. Its behavior for arbitrary integer magnitudes, exponentially large values, or values represented by succinct encodings is not analyzed.
  • Extension to real-valued matrices remains unresolved. The paper explicitly leaves open whether the exponent improvement can be transferred to real-valued (min⁡,+)(\min,+) matrix multiplication and real-weight APSP using known reductions.
  • The applicability of the modular-prime method to real-valued inputs is unclear. The candidate-witness test relies on nonzero integer differences having few prime divisors; no replacement for this argument is provided for real numbers.
  • The robustness of the approach under negative edge weights is not fully discussed. The paper states that entries can be shifted to positive integers, but does not detail how this transformation interacts with APSP instances containing negative cycles or with the detection of undefined shortest-path distances.
  • Negative-cycle handling is omitted from the APSP implications. It is not specified whether the claimed APSP reductions assume graphs without negative cycles, and no method is given for reporting or detecting negative cycles.
  • The claimed equivalence between (min⁡,+)(\min,+) matrix multiplication and all-pairs shortest paths is used without detailing the precise reduction. The effects on running time, bit complexity, negative weights, and output representation are not quantified.
  • The randomized algorithm’s Las Vegas guarantee is not fully formalized. The paper gives an expected running-time analysis based on false candidates but does not explicitly specify the verification, restart, or certification mechanism needed to ensure zero error under all random choices.
  • The probability analysis for candidate blocks is only sketched. The union bound is applied using bounds on the number of prime divisors, but the required lower bounds on PP and the range of valid UU, BB, and block sizes should be stated precisely, including small-instance cases.
  • The use of independently sampled primes is not reconciled with the notation involving log⁡S\log S. The false-candidate probability calculation appears to contain inconsistent expressions, making it unclear whether the intended bound is 2−log⁡S=1/S2^{-\log S}=1/S or another quantity.
  • The construction cost for all residue-class matrices is not fully validated. The bounds involving NBP2N B P^2, the number of residue values, and the number of blocks need a detailed accounting to confirm that no additional factor in N/BN/B or log⁡S\log S has been omitted.
  • The thin matrix product theorem is treated as a black box without clarifying its computational model. The paper does not explain whether the theorem supports the Boolean or ring-valued matrix products used in the construction, how arithmetic costs are counted, or how integer entries are encoded.
  • The deterministic prime-selection procedure requires stronger implementation details. Although the potential-function argument proposes selecting primes by minimizing an estimator Z(p)Z(p), the cost of constructing and evaluating all such estimators, especially over polynomial rings, is not independently verified in the provided text.
  • The polynomial-ring multiplication analysis may be insufficiently justified. The claim that multivariate polynomial multiplication costs O(R)O(R) for RR monomials is model-dependent and may require additional logarithmic or coefficient-size factors.
  • The deterministic data-structure construction may have substantial hidden preprocessing costs. The number of block, prime, and residue-specific matrix pairs is large, and the paper does not fully demonstrate that their total construction and storage fit within the claimed time and space bounds.
  • The choice of search depth hh and level-dependent parameters is not fully optimized. The deterministic algorithm introduces gℓg_\ell, qℓq_\ell, and B(ℓ)B^{(\ell)}, but the provided text does not show how these parameters are selected to balance preprocessing, query, and leaf-enumeration costs.
  • The relationship between the randomized and deterministic certificates is not completely characterized. It remains unclear whether the deterministic hierarchy achieves the same sparsity bounds as the randomized method at every level or whether additional losses are hidden in the potential-function construction.
  • No empirical evaluation is provided. The practical behavior of the algorithm, including crossover points against Floyd–Warshall, Williams-style algorithms, or prior APSP implementations, is unknown.
  • The algorithm’s constants and memory requirements are not reported. Even a small asymptotic improvement may be impractical if the thin-product subroutine, prime enumeration, residue matrices, or polynomial representations have very large constants.
  • The method’s potential for further exponent improvements is not quantified. The paper suggests improving the thin matrix product theorem but does not derive how improvements in ε∗\varepsilon^*, γ\gamma, or the query trade-off would translate into an APSP exponent.
  • It is unclear whether the framework can exploit additional matrix structure. The paper removes structural assumptions such as monotonicity and bounded differences, but does not determine whether combining those structures with thin matrix multiplication yields stronger bounds.
  • The reductions to related problems are asserted rather than analyzed individually. The effects of the new matrix-multiplication bound on Replacement Paths, Second Shortest Simple Path, Weighted Tree Edit Distance, Metricity, and 2D Maximum Subarray are not stated with precise input-size and bit-complexity guarantees.
  • No lower-bound or conditional-hardness implications are developed. The paper does not examine whether the new algorithm changes known fine-grained hardness conjectures for the related problems or whether further improvements are constrained by existing barriers.
  • The role of external AI-generated ideas is not independently reproducible from the manuscript. Because the deterministic approach is attributed partly to ChatGPT and its proof is incomplete in the supplied text, a fully formal, independently checkable derivation of the claimed result remains an open verification task.

Practical Applications

Immediate Applications

  • Exact shortest-path computation for large weighted graphs — software and network analysis
    • The paper gives deterministic and Las Vegas algorithms for the (min⁡,+)(\min,+) matrix product, a primitive reducible to All-Pairs Shortest Paths (APSP).
    • A research implementation could be integrated into graph-analysis libraries to compute exact distances in dense weighted graphs, including transportation, communication, dependency, and social-network models.
    • The same framework can support related graph tasks identified in the paper: Negative Triangle, Replacement Paths, Second Shortest Simple Path, Metricity testing, and (min⁡,+)(\min,+) verification.
    • Feasibility assumptions: The strongest stated guarantees apply to polynomially bounded integer weights. The asymptotic improvement is extremely small—approximately N2.9963N^{2.9963} instead of N3N^3—so the method is primarily relevant to very large, dense instances or as a research prototype. Hidden constants, memory usage, and the specialized thin-matrix-product subroutine may dominate for ordinary graph sizes.
  • Benchmarking and evaluation of fine-grained algorithms
    • The modular decomposition into additive approximation, modular filtering, sparse-certificate construction, and witness verification provides a concrete benchmark pipeline for future APSP and min-plus algorithms.
    • Researchers can implement each component independently and compare:
    • randomized prime sampling versus deterministic prime selection;
    • different block sizes BB;
    • alternative thin matrix-product routines;
    • different integer-weight ranges and graph densities.
    • Feasibility assumptions: The claimed running-time advantage depends on the availability of the cited thin matrix-product theorem and its parameter choices. Practical performance must be measured rather than inferred from the exponent alone.
  • Teaching and research training in advanced algorithm design
    • The paper offers a reusable example of combining:
    • reductions between optimization and verification;
    • additive approximation;
    • hashing or modular fingerprinting;
    • sparse certificates;
    • fast algebraic matrix multiplication;
    • Las Vegas randomization and derandomization.
    • These ideas can be used in graduate courses, reading groups, and doctoral training on fine-grained complexity, graph algorithms, and algebraic algorithms.
    • Feasibility assumptions: The manuscript contains notation and typesetting inconsistencies in the supplied text, so educational use would require careful verification and editorial cleanup.
  • Exact optimization over min-plus semirings
    • The algorithm can serve as a general-purpose research primitive for problems expressible as

    C[i,j]=min⁡k{A[i,k]+B[k,j]}.C[i,j]=\min_k\{A[i,k]+B[k,j]\}. - Potential users include researchers working on dynamic programming, weighted automata, parsing, sequence alignment, scheduling, and shortest-path formulations. - A software tool could expose min-plus multiplication as an API, with separate implementations for integer inputs, randomized execution, and deterministic execution. - Feasibility assumptions: The paper directly supports polynomially bounded integer entries. Applications involving arbitrary real values require additional reductions or new analysis, which the authors explicitly leave as future work.

  • Weighted tree edit distance and related dynamic programs

    • The paper states that known reductions transfer the min-plus improvement to Weighted Tree Edit Distance and 2D Maximum Subarray.
    • In academia and specialized software, the method could be used to accelerate exact experiments involving structured sequence, tree, or image-like data.
    • Feasibility assumptions: These are reduction-based applications rather than direct empirical demonstrations in the paper. The end-to-end benefit depends on reduction overhead, input structure, weight ranges, and whether the resulting instances are large and dense enough.
  • Algorithm verification and reproducibility workflows
    • The Las Vegas algorithm can be incorporated into a verification workflow in which randomized filtering is followed by exact witness checking. Because incorrect candidates are explicitly tested, the result can be made reliable despite the randomized prime-selection phase.
    • A practical workflow could include:
    • 1. generate an approximate or candidate solution;
    • 2. use modular tests to discard most impossible witnesses;
    • 3. verify surviving witnesses exactly;
    • 4. repeat or log prime choices for reproducibility.
    • Feasibility assumptions: The expected-time guarantee depends on the probability analysis for sampled primes. Implementations should use cryptographically or statistically adequate prime generation and report failures or retries.

Long-Term Applications

  • Large-scale routing and transportation planning
    • A more practical APSP implementation could support exact travel-time computation across dense road, transit, logistics, or airline networks.
    • Possible products include route-planning back ends, multimodal transport optimizers, and network-resilience dashboards that repeatedly compute alternate or replacement paths.
    • Dependencies: Real transportation graphs often have millions of vertices, dynamic or real-valued weights, sparsity, and time dependence. The paper’s dense-matrix formulation and integer-weight assumption would need to be adapted, and the improvement would need to overcome substantial preprocessing and memory costs.
  • Communication, datacenter, and distributed-network optimization
    • Exact all-pairs distances and replacement paths could help analyze latency, bottlenecks, fault tolerance, and routing policies in datacenter or communication networks.
    • A future system could combine min-plus multiplication with graph monitoring to identify links whose failure causes the largest increase in network distance.
    • Dependencies: The approach assumes static edge weights and centrally available matrices. Distributed execution, changing network conditions, and sparse graph representations require additional engineering and algorithmic work.
  • Robotics and motion planning
    • Min-plus products arise in shortest-path planning, waypoint optimization, and dynamic programming over discretized state spaces.
    • A future robotics planner could use faster min-plus multiplication to evaluate transitions between large collections of configurations, particularly for multi-stage navigation or manipulation tasks.
    • Dependencies: Robotic costs are often real-valued, continuous, uncertain, and dynamically updated. The paper does not establish applicability to these settings; discretization, numerical robustness, and real-valued extensions would be necessary.
  • Dynamic programming for speech, language, and computational biology
    • Many parsing, alignment, segmentation, and sequence-comparison algorithms use min-plus-style recurrences. Faster min-plus multiplication could potentially accelerate batched versions of these computations.
    • Possible tools include weighted parsing engines, large-scale sequence alignment systems, and exact cost-minimization libraries.
    • Dependencies: The benefit depends on whether the target recurrence can be reduced without excessive overhead and whether its matrices are sufficiently dense. Real-valued scores, affine penalties, numerical precision, and memory bandwidth are unresolved issues.
  • Energy-system and supply-chain optimization
    • APSP and replacement-path computations can support contingency analysis in power grids, transportation systems, and supply-chain networks.
    • Future decision-support software could use exact shortest-path and alternative-path calculations to evaluate failures, rerouting costs, or network upgrades.
    • Dependencies: Operational systems require rapid updates, constraints beyond additive path costs, and often optimization under uncertainty. The paper provides a primitive, not a complete solver for these applications.
  • Financial-network analysis
    • The methods could eventually support exact analysis of weighted dependency, transaction, or exposure networks, including shortest exposure chains and sensitivity to removed edges.
    • Related min-plus formulations may be useful for risk propagation and constrained path calculations.
    • Dependencies: Financial applications require auditability, low latency, real-valued data, regulatory validation, and resistance to adversarial inputs. The theoretical integer-weight model and asymptotic expected-time guarantees are insufficient on their own for deployment.
  • Improved exact algorithms for min-plus-complete problems
    • The paper’s most important long-term implication is methodological: improving the thin matrix-product theorem could improve a broad family of problems through known reductions.
    • Potential targets include:
    • APSP;
    • Negative Triangle;
    • Replacement Paths;
    • Second Shortest Simple Path;
    • Metricity;
    • min-plus verification;
    • Weighted Tree Edit Distance;
    • 2D Maximum Subarray.
    • Dependencies: Each transfer requires preserving the relevant weight model, sparsity, and dimensional parameters. Some reductions may incur logarithmic or polynomial overhead that eliminates the practical gain.
  • Extension to real-valued and high-precision inputs
    • A mature version of the framework could handle real-valued weights through scaling, discretization, symbolic perturbation, or reductions such as those referenced by the authors.
    • This would expand applicability to scientific computing, robotics, finance, scheduling, and physical-network optimization.
    • Dependencies: Exactness, approximation error, bit complexity, and numerical stability must be proved. The paper explicitly identifies real-valued matrices as an open direction.
  • Hardware-accelerated min-plus computation
    • The modular structure could motivate GPU, FPGA, or specialized-processor implementations:
    • residue encoding could be vectorized;
    • Boolean matrix products could use bit packing;
    • block witness checks could be parallelized;
    • sparse candidate certificates could reduce memory traffic.
    • Such systems might make the theoretical algorithm competitive for large dense instances.
    • Dependencies: The thin matrix-product component must have a practical implementation, and the many intermediate matrices may impose prohibitive memory and data-movement costs. Hardware acceleration would require a careful reformulation rather than a direct transcription of the proof.
  • New sparse-certificate methods beyond min-plus multiplication
    • The paper demonstrates a general pattern: use modular tests to eliminate most false candidates, then apply a specialized algebraic routine only to a sparse set of outputs.
    • This could inspire algorithms for other witness-finding, constraint-checking, and combinatorial optimization problems where exact candidates are rare but naive enumeration is cubic.
    • Dependencies: Generalization requires problem-specific hashing guarantees, a suitable thin or partial matrix-product primitive, and rigorous control of false positives. The current results do not establish such extensions automatically.

Glossary

  • Additive approximation: An approximation that differs from the target value by a bounded additive amount. “This additive approximation is used to perturb the entries of AA and BB so that many entries of AA and BB become small.”
  • All-Pairs Shortest Paths (APSP): The problem of finding shortest-path distances between every ordered pair of vertices in a graph. “All-Pairs Shortest Paths (APSP), which asks given an NN-vertex graph to compute the distance δ(u,v)\delta(u, v) between all pairs of vertices”
  • Bounded Difference matrix: A matrix whose entries satisfy a bounded-difference condition, typically between neighboring or related indices. “The works of \cite{bringmann2019truly, gu2021faster, chi2022faster, jin2026deterministic} show such sparse certificate exists for various structured matrices such as bounded difference and monotone matrices.”
  • Candidate block witness: A matrix-index block that may contain an exact witness based on a modular congruence test. “For a block KK and prime pp, we say KK is a candidate block witness with respect to pp for (i,j)(i, j) if there exists k∈Kk \in K satisfying”
  • Certificate: A compact collection of information that allows an algorithm to verify a property without examining all possible cases. “However, to find the remaining triples in subcubic time, a sparse certificate is needed whose construction was not known.”
  • Derandomization: The conversion of a randomized algorithm into a deterministic one, usually while preserving similar efficiency. “Next, we discuss how to derandomize \Cref{thm:faster-min-plus}.”
  • Depth-first search: A traversal strategy that explores one branch completely before moving to another branch. “We proceed to search blocks in a depth-first order.”
  • Deterministic algorithm: An algorithm whose behavior and output are fully determined by its input, without random choices. “Our second result shows that the same exponent can be achieved deterministically.”
  • Entropy: A function measuring the uncertainty or combinatorial complexity associated with a probability distribution. “For p∈[0,1]p \in [0, 1], we use H(p)=−pln⁡p−(1−p)ln⁡(1−p)H(p) = - p \ln p - (1 - p) \ln (1 - p) to denote entropy.”
  • Fine-grained complexity: The study of precise computational-time bounds, including the exact exponents in running times. “All-Pairs Shortest Paths (APSP) ... is one of the central problems in fine-grained complexity.”
  • Floyd–Warshall algorithm: A dynamic-programming algorithm for computing all-pairs shortest paths in a weighted graph. “Classical algorithms for APSP, such as the Floyd–Warshall algorithm, achieve a O(N3)O(N^3) running time.”
  • Infimum: The greatest lower bound of a set of values. “We use ω\omega to denote the matrix multiplication exponent, i.e. the infimum over all constants such that two N×NN \times N matrices can be multiplied in Nω+o(1)N^{\omega + o(1)} time.”
  • Las Vegas algorithm: A randomized algorithm that always returns a correct result but whose running time is random. “Our first result is an improved randomized algorithm.”
  • Matrix multiplication exponent: The limiting exponent governing the fastest known asymptotic multiplication of square matrices. “We use ω\omega to denote the matrix multiplication exponent”
  • Metricity: The property of a weighted distance function or matrix satisfying the metric axioms, especially the triangle inequality. “including APSP, Negative Triangle, Replacement Paths, Second Shortest Simple Path, Metricity”
  • Modular arithmetic: Arithmetic involving remainders with respect to a modulus. “Subsequent work ... combine the perturbation and sparse certification steps through modular arithmetic over primes.”
  • Monotone matrix: A matrix whose entries obey a prescribed monotonicity relation across rows or columns. “The works of \cite{bringmann2019truly, gu2021faster, chi2022faster, jin2026deterministic} show such sparse certificate exists for various structured matrices such as bounded difference and monotone matrices.”
  • Negative Triangle: The problem of determining whether a weighted graph contains a triangle whose total edge weight is negative. “including APSP, Negative Triangle, Replacement Paths, Second Shortest Simple Path”
  • Polynomially bounded: Bounded above by a polynomial function of the input-size parameter. “with polynomially bounded integer entries”
  • Prime Number Theorem: A theorem describing the asymptotic density of prime numbers. “Our algorithm makes use of the prime number theorem.”
  • Randomized algorithm: An algorithm that uses random choices during execution. “We present the proof of \Cref{thm:faster-min-plus}.”
  • Replacement Paths: The problem of finding shortest paths that remain valid after deleting individual edges or vertices from a given shortest path. “including APSP, Negative Triangle, Replacement Paths, Second Shortest Simple Path”
  • Residue: The remainder obtained when an integer is divided by a modulus. “For r∈pr \in _{p}, let $W_{r} := #1 {(i, j) s.t. C[i, j] \equiv r \mod p}$.”
  • Sparse certificate: A small subset of candidate information sufficient to verify the desired matrix-product or witness property. “We develop on the modular approach of \cite{bringmann2019truly,gu2021faster, chi2022faster,jin2026deterministic} and utilize Theorem 25 of the recent breakthrough \cite{alman2026truly} to provide a sparse certificate in truly subcubic time without any structural assumptions.”
  • Subcubic time: Running time asymptotically smaller than cubic time, usually O(N3−δ)O(N^{3-\delta}) for some δ>0\delta>0. “This provided strong evidence that a truly subcubic (min⁡,+)(\min, +)-Matrix Product and therefore, a truly subcubic algorithm for All Pairs Shortest Paths (APSP) may exist.”
  • Thin matrix product: A matrix product in which the shared dimension is substantially smaller than the outer dimensions, together with an algorithm exploiting that structure. “We use the thin matrix product theorem of the recent breakthrough to provide such a certificate.”
  • Union bound: A probability inequality stating that the probability of at least one event is at most the sum of their individual probabilities. “A union bound ensures that Δk≡0mod  p\Delta_{k} \equiv 0 \mod p for any k∈Kk \in K with probability at most O(Blog⁡U/P)O(B \log U / P).”
  • Verification problem: A decision problem that checks whether a proposed output satisfies the required condition. “The (min⁡,+)(\min, +)-Witness Equality problem asks to check for all i,ji, j, whether there exists k∈[N]k \in [N] such that A[i,k]+B[k,j]=C[i,j]A[i, k] + B[k, j] = C[i, j].”
  • Witness: An index or object certifying that a claimed matrix-product equality or minimum is attained. “The phased approach produces an approximation C~\tilde{C} of CC in truly subcubic time such that the number of remaining triples (i,k,j):Ai,k+Bk,j<C~(i,j)(i,k,j): A_{i,k}+B_{k,j} < \tilde{C}(i,j) is truly subcubic.”
  • (min⁡,+)(\min,+) matrix product: Matrix multiplication over the min-plus semiring, where multiplication is replaced by addition and addition by minimum. “The (min⁡,+)(\min, +) product of two matrices A,BA, B, defined (A∗B)[i,j]=min⁡kA[i,k]+B[k,j](A* B)[i, j] = \min_{k} A[i, k] + B[k, j]”
  • O~\tilde{O} notation: Asymptotic running-time notation that suppresses polylogarithmic factors. “with polynomially bounded integer entries in O~(N2.9964)\tilde{O}(N^{2.9964}) time”

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Tweets

Sign up for free to view the 7 tweets with 124 likes about this paper.