Dynamic Matrix Inverse: Improved Algorithms and Matching Conditional Lower Bounds
Jan van den Brand, Danupon Nanongkai, Thatchaphol Saranurak

TL;DR
This paper introduces improved algorithms for dynamic matrix inverse, explores their tightness under conjectures, and applies these results to enhance algorithms for various graph and matrix problems, advancing understanding of their computational complexity.
Contribution
The paper presents new algorithms for dynamic matrix inverse and its variants, and establishes conjectural lower bounds, advancing the understanding of their computational limits and applications.
Findings
Faster algorithms for dynamic matrix inverse and related problems.
Conditional lower bounds based on the Online Matrix-Vector conjecture.
Applications to improved dynamic algorithms for graph problems like reachability and maximum matching.
Abstract
The dynamic matrix inverse problem is to maintain the inverse of a matrix undergoing element and column updates. It is the main subroutine behind the best algorithms for many dynamic problems whose complexity is not yet well-understood, such as maintaining the largest eigenvalue, rank and determinant of a matrix and maintaining reachability, distances, maximum matching size, and -paths/cycles in a graph. Understanding the complexity of dynamic matrix inverse is a key to understand these problems. In this paper, we present (i) improved algorithms for dynamic matrix inverse and their extensions to some incremental/look-ahead variants, and (ii) variants of the Online Matrix-Vector conjecture [Henzinger et al. STOC'15] that, if true, imply that these algorithms are tight. Our algorithms automatically lead to faster dynamic algorithms for the aforementioned problems, some of which areā¦
Click any figure to enlarge with its caption.
Figure 1Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsGraph Theory and Algorithms Ā· Matrix Theory and Algorithms Ā· Stochastic Gradient Optimization Techniques
Dynamic Matrix Inverse: Improved Algorithms and Matching Conditional Lower Bounds
Jan van den Brand
KTH Royal Institute of Technology, Sweden
Danupon Nanongkai
KTH Royal Institute of Technology, Sweden
Thatchaphol Saranurak Works partially done while at KTH Royal Institute of Technology, Sweden. Toyota Technological Institute at Chicago, USA
The dynamic matrix inverse problem is to maintain the inverse of a matrix undergoing element and column updates. It is the main subroutine behind the best algorithms for many dynamic problems whose complexity is not yet well-understood, such as maintaining the largest eigenvalue, rank and determinant of a matrix and maintaining reachability, distances, maximum matching size, and -paths/cycles in a graph. Understanding the complexity of dynamic matrix inverse is a key to understand these problems.
In this paper, we present (i) improved algorithms for dynamic matrix inverse and their extensions to some incremental/look-ahead variants, and (ii) variants of the Online Matrix-Vector conjecture [HenzingerĀ etĀ al. STOCā15] that, if true, imply that these algorithms are tight. Our algorithms automatically lead to faster dynamic algorithms for the aforementioned problems, some of which are also tight under our conjectures, e.g. reachability and maximum matching size (closing the gaps for these two problems was in fact asked by Abboud and V. Williams [FOCSā14]). Prior best bounds for most of these problems date back to more than a decade ago [Sankowski FOCSā04, COCOONā05, SODAā07; Kavitha FSTTCSā08; Mucha and Sankowski Algorithmicaā10; BosekĀ etĀ al. FOCSā14].
Our improvements stem mostly from the ability to use fast matrix multiplication āone more timeā, to maintain a certain transformation matrix which could be maintained only combinatorially previously (i.e. without fast matrix multiplication). Oddly, unlike other dynamic problems where this approach, once successful, could be repeated several times (ābootstrappingā), our conjectures imply that this is not the case for dynamic matrix inverse and some related problems. However, when a small additional ālook-aheadā information is provided we can perform such repetition to drive the bounds down further.
Contents
-
1.1 Our Algorithmic Results (Details in SectionsĀ 4, C andĀ 6)
-
4.1 Transformation Maintenance implies Dynamic Matrix Inverse
-
5.4 Discussion on Super-Linear Bounds for Dynamic Matrix Inverse
1 Introduction
In the dynamic matrix inverse problem, we want to maintain the inverse of an matrix over any field, when undergoes some updates. There were many variants of this problem considered [San04, San07, LS15, CLS18]: Updates can be element updates, where we change the value of one element in , or column updates, where we change the values of all elements in one column.111There are other kinds of updates which we do not consider in this paper, such as rank-1 updates in [LS15, CLS18]. The inverse of might be maintained explicitly or might be answered through an element query or a row/column query; the former returns the value of a specified element of the inverse, and the latter answers the values of all elements in a specified row/column of the inverse. The goal is to design algorithms with small update time and query time, denoting the time needed to handle each update and each query respectively. Time complexity is measured by the number of field operations.222 Later when we consider other kinds of dynamic problems, such as dynamic graphs, the time refer to the standard notion of time in the RAM model. Variants where elements are polynomials and where some updates are known ahead of time (the look-ahead setting) were also considered (e.g. [SM10, Kav14, KMW98, Yan90]).
Dynamic matrix inverse algorithms played a central role in designing algorithms for many dynamic problems such as maintaining matrix and graph properties. Its study can be traced back to the 1950 algorithm of Sherman and Morrison [SM50] which can be used to maintain the inverse explicitly in time. The previous best bounds are due to Sankowskiās FOCSā04 paper [San04] and its follow-ups [San07, SM10, San05]. Their time guarantees depend on how fast we can multiply matrices. For example, with the state-of-the-art matrix multiplication algorithms [GU18, Gal14], Sankowskiās algorithm [San04] can handle an element update and answer an element query for matrix inverse in time. Consequently, the same update time333See FootnoteĀ 2. can be guaranteed for, e.g., maintaining largest eigenvalues, ranks and determinants of matrices undergoing entry updates and maintaining maximum matching sizes, reachability between two nodes (-reachability), existences of a directed cycle, numbers of spanning trees, and numbers of paths (in directed acyclic graphs; DAG) in graphs undergoing edge insertions and deletions.444We note that while the update and query time for the matrix inverse problem is defined to be the number of arithmetic operations, most of time the guarantees translate into the same running time in the RAM model. Exceptions are the numbers of spanning trees in a graph and numbers of paths in a DAG, where the output might be a very big number. In this case the running time is different from the number of arithmetic operations. (Unless specified otherwise, all mentioned update times are worst-case (as opposed to being amortized555Amortized time is not the focus of this paper, and we are not aware of any better amortized bounds for problems we consider in this paper).) See SectionsĀ 1.1 andĀ 2 for lists of known results for dynamic matrix inverse and FiguresĀ 4 andĀ 5 for lists of applications.
Is the bound the best possible for above problems? This kind of question exhibits the current gap between existing algorithmic and lower bound techniques and our limited understanding of the power of algebraic techniques in designing dynamic algorithms. First of all, despite many successes in the last decade in proving tight bounds for a host of dynamic problems (e.g. [HKN+15, AW14, Pat10]), conditional lower bounds for most of these problems got stuck at in general. Even for a very special case where the preprocessing time is limited to (which is too limited as discussed in SectionĀ 1.3), the best known conditional lower bound of [AW14] is still not tight ([AW14] mentioned that āclosing this gap is a very interesting open questionā). Note that while the upper bounds might be improved in the future with improved rectangular matrix multiplication algorithms, there will still be big gaps even in the best-possible scenario: even if there is a linear-time rectangular matrix multiplication algorithm, the upper bounds will still be only , while the lower bound will be .
Secondly, it was shown that algebraic techniques ā techniques based on fast matrix multiplication algorithms initiated by Strassen [Str69] ā are inherent in any upper bound improvements for some of these problems: Assuming the Combinatorial Boolean Matrix Multiplication (BMM) conjecture, without algebraic techniques we cannot maintain, e.g., maximum matching size and -reachability faster than per edge insertion/deletionĀ [AW14]666More precisely, assuming BMM, no ācombinatorialā algorithm can maintain maximum matching size and -reachability in time, for any constant . Note that ācombinatorialā a vague term usually used to refer as an algorithm that does not use subcubic-time matrix multiplication algorithms as initiated by Strassen [Str69]. We note that this statement only holds for algorithms with preprocessing time, which are the case for Sankowskiās and our algorithms.. Can algebraic techniques lead to faster algorithms that may ideally have update time linear in ? If not, how can we argue lower bounds that are superlinear in and, more importantly, match upper bounds from algebraic algorithms?
In this paper, we show that it is possible to improve some of the existing dynamic matrix inverse algorithms further and at the same time present conjectures that, if true, imply that they cannot be improved anymore.
1.1 Our Algorithmic Results (Details in SectionsĀ 4, C andĀ 6)
Algorithms in the Standard Setting (Details in SectionsĀ 4 andĀ C).
We present two faster algorithms as summarized in SectionĀ 1.1. With known fast matrix multiplication algorithms [GU18, Gal14], our first algorithm requires time to handle each entry update and entry query, and the second requires time to handle each column update and row query.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[AW 14] Amir Abboud and Virginia Vassilevska Williams āPopular Conjectures Imply Strong Lower Bounds for Dynamic Problemsā In FOCS IEEE Computer Society, 2014, pp. 434ā443
- 2[BCS 97] Peter Bürgisser, Michael Clausen and Mohammad Amin Shokrollahi āAlgebraic complexity theoryā 315 , Grundlehren der mathematischen Wissenschaften Springer, 1997
- 3[BHR 18] Aaron Bernstein, Jacob Holm and Eva Rotenberg āOnline Bipartite Matching with Amortized Replacementsā In SODA SIAM, 2018, pp. 947ā959
- 4[BLS+14] Bartlomiej Bosek, Dariusz Leniowski, Piotr Sankowski and Anna Zych āOnline Bipartite Matching in Offline Timeā In FOCS IEEE Computer Society, 2014, pp. 384ā393
- 5[BS 83] Walter Baur and Volker Strassen āThe Complexity of Partial Derivativesā In Theor. Comput. Sci. 22 , 1983, pp. 317ā330
- 6[CGL 15] RaphaĆ«l Clifford, Allan GrĆønlund and Kasper Green Larsen āNew Unconditional Hardness Results for Dynamic and Online Problemsā In FOCS IEEE Computer Society, 2015, pp. 1089ā1107
- 7[CKL 13] Ho Yee Cheung, Tsz Chiu Kwok and Lap Chi Lau āFast matrix rank algorithms and applicationsā Announced at STOCā12 In J. ACM 60.5 , 2013, pp. 31:1ā31:25
- 8[CKL 18] Diptarka Chakraborty, Lior Kamma and Kasper Green Larsen āTight Cell Probe Bounds for Succinct Boolean Matrix-Vector Multiplicationā In STOC ACM, 2018
