On Solving Linear Systems in Sublinear Time Alexandr Andoni, - - PowerPoint PPT Presentation
On Solving Linear Systems in Sublinear Time Alexandr Andoni, - - PowerPoint PPT Presentation
On Solving Linear Systems in Sublinear Time Alexandr Andoni, Columbia University Robert Krauthgamer, Weizmann Institute Yosef Pogrow, Weizmann Institute Google WOLA 2019 Solving Linear Systems Input: and
Solving Linear Systems
๏ฎ
Input: ๐ต โ โ๐ร๐ and ๐ โ โ๐
๏ฎ
Output: vector ๐ฆ that solves ๐ต๐ฆ = ๐
๏ฎ
Many algorithms, different variants:
๏ฑ
Matrix ๐ต is sparse, Laplacian, PSD etc.
๏ฑ
Bounded precision (solution ๐ฆ is approximate) vs. exact arithmetic
๏ฎ
Significant progress: Linear system in Laplacian matrix ๐๐ป can be solved approximately in near-linear time เทจ ๐(nnz ๐๐ป โ log
1 ๐) [Spielman-
Tengโ04, โฆ, Cohen-Kyng-Miller-Pachocky-Peng-Rao-Xuโ14]
On Solving Linear Systems in Sublinear Time
Our focus: Sublinear running time
2
Sublinear-Time Solver
๏ฎ
Input: ๐ต โ โ๐ร๐, ๐ โ โ๐ (also ๐ > 0) and ๐ โ [๐]
๏ฎ
Output: approximate coordinate เท ๐ฆ๐ from (any) solution ๐ฆโ to ๐ต๐ฆ = ๐
๏ฑ
Accuracy bound เท ๐ฆ โ ๐ฆโ โ โค ๐ ๐ฆโ โ
๏ฎ
Formal requirement: There is a solution ๐ฆโ to the system, such that โ๐ โ ๐ , Pr เท ๐ฆ๐ โ ๐ฆ๐
โ โค ๐ ๐ฆโ โ โฅ 3 4
๏ฎ
Follows framework of Local Computation Algorithms (LCA), previously used for graph problems [Rubinfeld-Tamir-Vardi-Xieโ10]
On Solving Linear Systems in Sublinear Time 3
Motivation
๏ฎ
Fast quantum algorithms for solving linear systems and for machine learning problems [Harrow-Hassidim-Lloydโ09, โฆ]
๏ฑ
Can we match their performance classically?
๏ฑ
Recent success story: quantum ๏ classical algorithm [Tangโ18]
๏ฎ
New direction in sublinear-time algorithms
๏ฑ
โLocalโ computation in numerical problems
๏ฑ
Compare computational models (representation, preprocessing), accuracy guarantees, input families (e.g., Laplacian vs. PSD)
๏ฑ
Known quantum algorithms have modeling requirements (e.g., quantum encoding of ๐)
On Solving Linear Systems in Sublinear Time 4
Algorithm for Laplacians
๏ฎ
Informally: Can solve Laplacian systems of bounded-degree expander in polylog(n) time
๏ฑ
Key limitations: sparsity and condition number
๏ฎ
Notation:
๏ฑ
๐๐ป = ๐ธ โ ๐ต is the Laplacian matrix of graph ๐ป
๏ฑ
๐๐ป
+ is its Moore-Penrose pseudo-inverse ๏ฎ
Theorem 1: Suppose the input is a ๐-regular ๐-vertex graph ๐ป, together with its condition number ๐ > 0, ๐ โ โ๐, ๐ฃ โ ๐ and ๐ > 0. Our algorithm computes เท ๐ฆ๐ฃ โ โ such that for ๐ฆโ = ๐๐ป
+๐,
โ๐ฃ โ ๐ , Pr เท ๐ฆ๐ฃ โ ๐ฆ๐ฃ
โ โค ๐ ๐ฆโ โ โฅ 3 4,
and runs in time เทจ ๐(๐๐โ2๐ก3) for ๐ก = เทจ ๐(๐ log ๐).
On Solving Linear Systems in Sublinear Time
More inputs? Faster?
5
Some Extensions
๏ฎ
Can replace ๐ with ๐ 0
๏ฑ
Example: Effective resistance can be approximate (in expanders) in constant running time! ๐eff(๐ฃ, ๐ค) = ๐๐ฃ โ ๐๐ค ๐๐๐ป
+(๐๐ฃ โ ๐๐ค) ๏ฎ
Improved running time if
๏ฑ
Graph ๐ป is preprocessed
๏ฑ
One can sample a neighbor in ๐ป, or
๏ฎ
Extends to Symmetric Diagonally Dominant (SDD) matrix ๐
๏ฑ
๐ is condition number of ๐ธโ1/2๐๐ธโ1/2
On Solving Linear Systems in Sublinear Time 6
Lower Bound for PSD Systems
๏ฎ
Informally: Solving โsimilarโ PSD systems requires polynomial time
๏ฑ
Similar = bounded condition number and sparsity
๏ฑ
Even if the matrix can be preprocessed
๏ฎ
Theorem 2: For certain invertible PSD matrices ๐, with bounded sparsity ๐ and condition number ๐, every randomized algorithm must query ๐ฮฉ(1/๐2) coordinates of the input ๐.
๏ฎ
Here, the output is เท ๐ฆ๐ฃ โ โ for a fixed ๐ฃ โ ๐ , required to satisfy โ๐ฃ โ ๐ , Pr เท ๐ฆ๐ฃ โ ๐ฆ๐ฃ
โ โค 1 5 ๐ฆโ โ โฅ 3 4,
for ๐ฆโ = ๐โ1๐.
๏ฎ
In particular, ๐ may be preprocessed
On Solving Linear Systems in Sublinear Time 7
Dependence on Condition Number
๏ฎ
Informally: Quadratic dependence on ๐ is necessary
๏ฑ
Our algorithmic bound เทฉ O(๐3) is near-optimal, esp. when matrix ๐ can be preprocessed
๏ฎ
Theorem 3: For certain graphs ๐ป of maximum degree 4 and any condition number ๐ > 0, every randomized algorithm (for ๐๐ป) with accuracy ๐ =
1 log ๐ must probe เทฉ
ฮฉ(๐2) coordinates of the input ๐.
๏ฎ
Again, the output is เท ๐ฆ๐ฃ โ โ for a fixed ๐ฃ โ ๐ , required to satisfy โ๐ฃ โ ๐ , Pr เท ๐ฆ๐ฃ โ ๐ฆ๐ฃ
โ โค 1 log ๐ ๐ฆโ โ โฅ 3 4,
for ๐ฆโ = ๐๐ป
+๐.
๏ฎ
In particular, ๐ป may be preprocessed
On Solving Linear Systems in Sublinear Time 8
Algorithmic Techniques
๏ฎ
Famous Monte-Carlo method of von Neumann and Ulam: Write matrix inverse by power series โ ๐ < 1, ๐ฝ โ ๐ โ1 = ฯ๐ขโฅ0 ๐๐ข then estimate it by random walks (in ๐) with unbiased expectation
๏ฎ
Inverting a Laplacian ๐๐ป = ๐๐ฝ โ ๐ต corresponds to summing walks in ๐ป
๏ฑ
For us: view ๐๐ฃ
๐ ฯ๐ขโฅ0 ๐ต๐ข๐ as sum over all walks, estimate it by sampling
(random walks)
๏ฎ
Need to control: number of walks and their length
๏ฑ
Large powers ๐ข > ๐ขโ contribute relatively little (by condition number)
๏ฑ
Estimate truncated series (๐ข โค ๐ขโ) by short random walks (by Chebyshevโs inequality)
On Solving Linear Systems in Sublinear Time 9
Related Work โ All Algorithmic
๏ฎ
Similar techniques were used before in related contexts but under different assumptions, models and analyses:
๏ฑ
Probabilistic log-space algorithms for approximating ๐๐ป
+ [Doron-Le Gall-
Ta-Shmaโ17]
๏ฎ
Asks for entire matrix, uses many long random walks (independent of ๐)
๏ฑ
Local solver for Laplacian systems with boundary conditions [Chung- Simpsonโ15]
๏ฎ
Solver relies on a different power series and random walks
๏ฑ
Local solver for PSD systems [Shyamkumar-Banerjee-Lofgrenโ16]
๏ฎ
Polynomial time nnz ๐ 2/3 under assumptions like bounded matrix norm and random ๐ฃ โ ๐
๏ฑ
Local solver for Pagerank [Bressan-Peserico-Prettoโ18, Borgs-Brautbar- Chayes-Tengโ14]
๏ฎ
Polynomial time O(๐2/3) and O( nd 1/2) for certain matrices (non-symmetric but by definition are diagonally-dominant)
On Solving Linear Systems in Sublinear Time 10
Lower Bound Techniques
๏ฎ
PSD lower bound: Take Laplacian of 2๐-regular expander but with:
๏ฑ
high girth,
๏ฑ
edges signed ยฑ1 at random, and
๏ฑ
๐( ๐) on the diagonal (PSD but not Laplacian)
๏ฎ
The graph looks like a tree locally
๏ฑ
Up to radius ฮ log ๐ around ๐ฃ
๏ฎ
Set ๐๐ฅ = ยฑ1 for ๐ฅ at distance ๐ , and 0 otherwise
๏ฑ
Signs have small bias ๐ โ ๐โ๐ /2
๏ฑ
Recovering it requires reading ฮฉ(๐โ2) entries
๏ฎ
Using inversion formula, ๐ฆ๐ฃ โ average of ๐๐ฅโs
๏ฎ
Condition number lower bound: Take two 3-regular expanders connected by a matching of size ๐/๐
๏ฑ
Let ๐๐ฅ = ยฑ1 with slight bias inside each expander
On Solving Linear Systems in Sublinear Time
๐ ๐๐ฅ = ยฑ1
๐๐ฅ = 0 ๐๐ฅ = 0
๐ฃ
11
Further Questions
๏ฎ
Accuracy guarantees
๏ฑ
Different norms?
๏ฑ
Condition number of ๐ instead of ๐ธโ1/2๐๐ธโ1/2?
๏ฎ
Other representations (input/output models)?
๏ฑ
Access the input ๐ via random sampling?
๏ฑ
Sample from the output ๐ฆ?
๏ฎ
Other numerical problems?
On Solving Linear Systems in Sublinear Time
Thank You!
12