Abstract
The convergence rates of iterative methods for solving a linear system $\mathbf{A} x = b$ typically depend on the condition number of the matrix $\mathbf{A}$. Preconditioning is a common way of speeding up these methods by reducing that condition number in a computationally inexpensive way. In this paper, we revisit the decades-old problem of how to best improve $\mathbf{A}$'s condition number by left or right diagonal rescaling. We make progress on this problem in several directions. First, we provide new bounds for the classic heuristic of scaling $\mathbf{A}$ by its diagonal values (a.k.a. Jacobi preconditioning). We prove that this approach reduces $\mathbf{A}$'s condition number to within a quadratic factor of the best possible scaling. Second, we give a solver for structured mixed packing and covering semidefinite programs (MPC SDPs) which computes a constant-factor optimal scaling for $\mathbf{A}$ in $\widetilde{O}(\text{nnz}(\mathbf{A}) \cdot \text{poly}(\kappa^\star))$ time; this matches the cost of solving the linear system after scaling up to a $\widetilde{O}(\text{poly}(\kappa^\star))$ factor. Third, we demonstrate that a sufficiently general width-independent MPC SDP solver would imply near-optimal runtimes for the scaling problems we consider, and natural variants concerned with measures of average conditioning. Finally, we highlight connections of our preconditioning techniques to semi-random noise models, as well as applications in reducing risk in several statistical regression models.
Introduction
Iterative methods, such as the Conjugate Gradient algorithm, are the workhorses of modern scientific computing and machine learning. However, the efficiency of these methods is fundamentally limited by the condition number ($\kappa$) of the matrix—the ratio of its largest to smallest eigenvalues. When a matrix is "ill-conditioned," these solvers converge slowly, often requiring a prohibitive number of iterations.
Preconditioning is the standard technique used to mitigate this issue. The simplest and most common form is diagonal preconditioning: rescaling the rows or columns of a matrix by a diagonal matrix $W$ to "round out" its spectral shape. Despite the widespread use of heuristics like Jacobi scaling (dividing by diagonal entries), two major gaps have persisted in the literature: a lack of tight theoretical bounds for these heuristics and the absence of computationally efficient algorithms to find the mathematically optimal scaling. This paper addresses both gaps by introducing near-linear time algorithms for optimal diagonal preconditioning.
The Robustness of Jacobi Preconditioning
For decades, the Jacobi heuristic has been used as a "rule of thumb" for preconditioning. This research provides a new theoretical foundation for this practice. The authors prove that Jacobi preconditioning reduces the condition number to within a quadratic factor of the absolute best possible scaling ($\kappa \le (\kappa^*)^2$). Importantly, this bound is independent of the matrix's dimension, explaining why the heuristic remains robust even in high-dimensional machine learning applications.
Near-Optimal Scaling via MPC SDPs
While the "optimal" diagonal scaling can be identified using Semidefinite Programming (SDP), general-purpose SDP solvers are far too slow for this purpose; the time spent finding the preconditioner would outweigh the time saved during the linear solve.
To solve this, the authors developed a specialized solver for Mixed Packing and Covering (MPC) Semidefinite Programs. Their approach includes several key innovations:
- Matrix Multiplicative Weights: The algorithm maintains weights for each row and column, iteratively updating them based on the "gradient" of the condition number.
- Polynomial Approximations: To avoid the $O(n^3)$ cost of exact matrix exponentials and square roots, the solver uses low-degree polynomial and rational approximations (such as Chebyshev interpolants).
- Homotopy Method: For matrices accessible only via matrix-vector products ("black boxes"), the authors use a homotopy method. They solve a sequence of well-conditioned versions of the problem ($K + \lambda I$), gradually decreasing $\lambda$ and using previous solutions as "warm starts."
These methods allow the algorithm to compute a diagonal $W$ that is within a constant factor of the minimum possible condition number in $\tilde{O}(\text{nnz}(A) \cdot (\kappa^*)^{1.5})$ time.
The Semi-Random Noise Paradox
A unique contribution of this work is the exploration of semi-random noise models. In statistical regression, one might assume that adding more consistent data would improve a system's stability. However, the authors demonstrate a paradox: an adversary can add rows to a well-conditioned matrix that do not change the solution but drastically ruin the condition number. The paper's "inner scaling" method effectively "robustifies" solvers against this type of noise, ensuring efficient convergence even in the presence of adversarial data.
Key Results and Complexity
The proposed algorithm achieves several state-of-the-art benchmarks:
- Constant-Factor Optimality: It finds a scaling within a factor of 2 (or $1+\epsilon$) of the absolute minimum.
- Near-Linear Complexity: The runtime scales with the sparsity of the matrix and the optimal condition number ($\kappa^*$), rather than the original, potentially massive condition number.
- Black-Box Efficiency: The method remains efficient even when the matrix entries are not explicitly known, requiring only $\tilde{O}((\kappa^*)^{1.5})$ matrix-vector products.
Future Directions
The authors suggest that a "width-independent" SDP solver could potentially reduce the runtime dependency from $(\kappa^*)^{1.5}$ to $\sqrt{\kappa^*}$, matching the theoretical lower limits for iterative solvers. Furthermore, while this work focuses on diagonal scaling, extending these near-optimal guarantees to more complex structures like Incomplete Cholesky preconditioning remains an open and vital challenge for the field.
Summary updated