Near-linear convergence of the Random Osborne algorithm for Matrix Balancing

Jason M. Altschuler, Pablo A. Parrilo

Matrix balancing is a fundamental pre-conditioning step in numerical linear algebra, essential for the stable computation of eigenvalues and matrix exponentials. By scaling rows and columns so their sums are approximately equal, engineers can significantly reduce numerical errors in downstream calculations. Since its introduction in 1960, Osborne’s algorithm has been the industry standard, integrated into major software packages like MATLAB, LAPACK, and R. However, despite its widespread use, a rigorous theoretical understanding of its efficiency—especially for sparse matrices—has remained elusive for over six decades.

The Random Osborne Approach

This paper bridges the gap between practice and theory by analyzing Random Osborne, a variant that selects coordinates for updates uniformly at random rather than following a fixed cyclic order. The authors reframe matrix balancing as a convex optimization problem, minimizing a specific potential function. By exploiting the log-convexity of this function and utilizing the Hellinger distance to measure "imbalance," they provide much tighter convergence bounds than previously possible.

A critical aspect of their analysis is bit-complexity. They demonstrate that the algorithm remains efficient even when using limited-precision arithmetic (logarithmic bit-complexity), ensuring that these theoretical bounds translate to real-world hardware performance.

Theoretical Breakthroughs and Variant Comparison

The study's primary insight is that the runtime of Random Osborne is near-linear in $m$, the number of non-zero entries, rather than the total number of entries $n^2$. This explains the algorithm's exceptional performance on the large, sparse matrices common in modern data science. Furthermore, the authors found that "well-connected" matrices (those with low graph diameter) converge even faster, improving the accuracy dependency from $1/\epsilon^2$ to $1/\epsilon$.

The framework developed by the authors is robust enough to provide the first near-linear runtime bounds for several algorithm variants.

Table 1: Comparison of runtime bounds and bit-complexity for different Osborne variants. The Random variant achieves the best runtime bound relative to non-zero entries (m).

As shown in the table above, the Random variant achieves a runtime of $\tilde{O}(m/\epsilon)$, a significant improvement over the $O(n^2)$ or $O(mn^2)$ bounds suggested by earlier research. Notably, while the "Random-Reshuffle" cyclic variant is now well-understood, the standard "Round-Robin" variant used in most software still lacks a proven near-linear bound, remaining an open theoretical mystery.

Parallelization and Scalability

Beyond sequential updates, the paper explores parallelization through block updates. By using graph coloring techniques, the algorithm can update multiple independent coordinates simultaneously. If a matrix's underlying graph can be colored with $p$ colors, the algorithm achieves a speedup proportional to $n/p$.

Table 2: Runtime and work bounds for block-based (parallel) Osborne variants.

These block variants maintain the efficiency of the original algorithm while enabling scalability on modern multi-core architectures. The "Random Block" variant, in particular, preserves the near-linear total work bound of $\tilde{O}(m/\epsilon)$.

Conclusion

By providing the first near-linear convergence proofs for the Random Osborne algorithm, this work finally establishes a solid theoretical foundation for a ubiquitous numerical tool. While the "Round-Robin" variant still presents a challenge for theorists, the success of the randomized approach offers a clear path forward for both high-performance implementation and future average-case analysis.

Summary updated

BibTeX
@article{altschuler2023near,
  author = {Jason M. Altschuler and Pablo A. Parrilo},
  title = {{Near-linear convergence of the Random Osborne algorithm for Matrix Balancing}},
  journal = {Math. Program.},
  year = {2023},
  doi = {10.1007/s10107-022-01825-4},
}
Figure