← Back to homepage
 Blog

Reading Notes: Approximate Gaussian Elimination (Rasmus Kyng, Yale PhD 2017)

October 11, 2026  ·  ~10 min read  ·  #spectral-graph-theory #laplacian-solvers #reading-notes
Dissertation: Approximate Gaussian Elimination (PDF), advised by Daniel A. Spielman. Chapter 3 is joint work with Sushant Sachdeva (FOCS'16); Chapters 3.4–4 with Durfee, Peebles, Rao, Sachdeva (STOC'17); Chapter 5 with Cohen, Kelner, Peebles, Peng, Rao, Sidford (FOCS'17).
TL;DR. For Laplacian matrices — the algebraic avatar of a weighted graph — you can run Gaussian elimination while randomly discarding almost all of the fill-in it creates, and still get a high-quality approximate factorization. This one idea yields: (1) the first Laplacian solver built purely on random sampling, with no graph-theoretic constructions, whose core proof fits in ten pages; (2) the first nearly-linear-time solver for directed Laplacians, which makes a long list of random-walk quantities (stationary distributions, PageRank, hitting/commute times) computable in near-linear time on digraphs; and (3) the first algorithm for sampling random spanning trees in dense/weighted graphs faster than matrix multiplication, the first improvement there in over 20 years. Methodologically, the dissertation is a showcase of matrix martingales: the right probabilistic abstraction collapses a hundred-page theory into a short, clean argument.
1  Background: fill-in and the Laplacian paradigm

A graph Laplacian U is how a weighted graph becomes a matrix, and solving Ux = b is the computational core of electric flows, diffusion, semi-supervised learning, graph partitioning, and PDE solvers built on finite elements. In 2004, Spielman–Teng showed these systems can be solved in nearly-linear time, and their result spawned what Tenenholtz and others call the Laplacian paradigm: many graph optimization problems (max-flow, matchings, spanning tree sampling, min-cost flows) became fast because Laplacian systems became fast.

But there were two uncomfortable facts. First, the classic direct method — Gaussian elimination — suffers fill-in: eliminating vertex i from the graph adds a clique on all of its neighbors, so a sparse matrix turns dense and the runtime degrades to O(n³). Second, all near-linear solvers in the ST line achieved sparsity through heavyweight graph constructions: low-stretch trees, sparsifiers, explicit expanders. Powerful, but a lot of machinery — the original proof spanned roughly a hundred pages across three papers. The popular engineering alternative, incomplete Cholesky (just throw the fill-in away), had no guarantees whatsoever for general Laplacians.

The thesis asks the naïve question directly: what if the incomplete factorization you get by deleting fill-in at random is actually good? The answer is essentially yes, and the proof is short.

2  Result 1: Cholesky by coin flips (Ch. 3)

The algorithm is three lines long:

  1. Randomly permute the vertices;
  2. for i = 1 to n−1: eliminate vertex i;
  3. instead of adding the fill-in clique on its neighbors, add a random sparse sample of that clique.
Theorem 1.2.1 (sketch). Given a Laplacian U with m nonzeros, the sampled factorization satisfies LLT ≈1/2 U (i.e., both e±1/2 sandwiches in the Loewner order) with high probability, and both the number of nonzeros and the runtime are O(m log²(1/δ) log n). Used as a preconditioner in iterative refinement, this gives a nearly-linear-time Laplacian solver.

Why on earth does this work? The proof strategy is what makes the thesis worth reading:

Strikingly, the entire algorithm rests on just two algebraic facts about Laplacians: they are closed under Schur complements, and effective resistances satisfy a triangle inequality. No trees, no expanders, no sparsifiers — the first solver based purely on random sampling. And the core proof fits in under ten pages, versus roughly a hundred for Spielman–Teng. Modern random matrix theory simply removed most of the machinery.

3  Result 2: the directed case (Ch. 5)

Everything above is symmetric. Directed Laplacians (row sums zero, nonpositive off-diagonals, L ≠ LT) had resisted the paradigm: their asymmetric nature broke essentially all known techniques. The thesis delivers the first nearly-linear-time solver for directed Laplacians, via a sparse approximate LU-factorization of Eulerian Laplacians (where in-degree = out-degree at every vertex), combined with the reductions of Cohen–Kelner–Peebles–Peng–Rao–Sidford from general directed systems to Eulerian ones.

Two things I find genuinely surprising here. First, there exists an unbiased, sparse elimination estimator that preserves the null space exactly — you must maintain every vertex degree perfectly while sampling everything else, and a priori that seems impossible. Second, the analysis is done in a norm that depends on the random choices made by the algorithm itself: Schur complements of Eulerian Laplacians can blow up (the symmetric monotonicity fails), so the algorithm carefully chooses which vertices to eliminate (α-RCDD sets), periodically re-sparsifies, and measures its own error in an execution-dependent norm, proving convergence there and transferring to the usual norm at the end.

The payoff list is long. Through the known reductions, one solver gives nearly-linear-time algorithms on directed graphs for: stationary distributions of Markov chains, personalized PageRank, mixing-time estimates, hitting times, escape probabilities, and all-pairs commute times. This effectively opened a directed Laplacian paradigm.

4  Result 3: Schur complements and random spanning trees (Ch. 3.4–4)

A Schur complement is what remains of a matrix after you eliminate a block of variables — electrically, the effective network after shorting out part of the graph. The thesis gives an algorithm producing ε-approximate Laplacian Schur complements whose sparsity scales as ε−2 (vs. ε−4 in prior work), which is exactly the regime where applications become feasible.

The headline application is random spanning trees. In a weighted graph, an edge's marginal probability under the w-uniform spanning tree distribution can be read off a tiny Schur complement, so approximate Schur complements give fast approximate edge probabilities. Starting from the O(nω) conditional-decimation scheme of Harvey–Xu and accelerating its bottleneck (Schur complement computation), the thesis samples a w-uniform random spanning tree in expected time Õ(max{n4/3 m1/2, n²}) — the first improvement for dense and/or weighted graphs in more than 20 years, and the reason this matters is that random spanning trees sat at the core of breakthroughs on symmetric and asymmetric TSP approximation, and even give cut sparsifiers. A cute trick worth stealing: the sampling is exact, not approximate — edge probabilities are recomputed adaptively to higher precision only where an error could actually flip the sampled edge.

5  Why this matters for graph learning

The dissertation predates the current GNN era and makes no learning claims; everything in this section is my own reading of the transfer. But the transfer is real:

6  Why this matters for theory
7  How to read it

Gaussian elimination has been studied since antiquity (the Nine Chapters on the Mathematical Art, ~179 CE). That there were still results this clean and this general to be found — you just have to look at the algorithm additively, and be willing to throw almost everything away at random — is the real lesson of this dissertation.

中文摘要

这篇笔记总结 Rasmus Kyng 在 Yale 的博士论文《Approximate Gaussian Elimination》 (导师 Daniel A. Spielman,2017)。核心思想一句话:对图的拉普拉斯矩阵做高斯消元时, 随机丢弃消元产生的大部分 fill-in(新出现的稠密元素),得到的稀疏近似分解依然是高质量的 预处理子。由此得到三大成果:

对 Graph Learning 的帮助(笔者的个人解读,非论文原意): (i) RWSE、commute time、平稳分布等随机游走类特征/位置编码,如今即使有向图也能近线性 计算 — 这为有向图 PE(如我自己的 Hermitian/Krylov 谱 PE、analytic-walk RoPE 方向)提供了 算法层面的可行性保障;(ii) leverage score 与有效电阻采样是谱稀疏化、graph rewiring、图粗化的 共同引擎,而粗化常用的 kron reduction 本质上就是 Schur 补,近似 Schur 补给出了带谱逼近保证的 粗化方式;(iii) "无偏估计 + 鞅集中不等式"的配方,与 GNN 邻域采样训练的收敛性分析是同一副 骨架,是学习这套技术的最佳范本之一。

对理论(theory)的帮助:Laplacian paradigm 的证明从约百页压缩到十页,大幅降低了 入行门槛;矩阵鞅、消元的无偏加法视角、算法执行依赖范数,已成为后续有向流、负权最短路等 一系列工作的标准工具;加上 Laplacians.jl 等实现,"理论快 + 实现快"的 Laplacian 求解器正在 真正走向实用。

Comments welcome — find me on GitHub or by email. All errors in these notes are mine; the science is Kyng's (and his coauthors').