Solving sparse linear systems with approximate inverse preconditioners on analog devices

Vasileios Kalantzis, Anshul Gupta, Lior Horesh, Tomasz Nowicki, Mark S. Squillante, Chai Wah Wu, Tayfun Gokmen, Haim Avron

Introduction

Solving sparse linear systems ($Ax = b$) is a foundational and computationally expensive bottleneck in science and engineering. While digital CMOS processors have historically driven performance gains, they are hitting inherent scaling and power dissipation limits. Analog crossbar arrays, utilizing memristive elements, offer a tempting alternative: they can perform Matrix-Vector Multiplications (MVM) in $O(1)$ time, independent of the matrix size.

However, analog hardware is inherently noisy and low-precision, making it difficult to use for exact scientific computing tasks that typically rely on highly precise, deterministic algorithms like Krylov subspace methods. The challenge lies in finding an algorithmic framework that can harness the $O(1)$ speed of analog MVMs while tolerating their stochastic inaccuracies.

The Hybrid Digital-Analog Framework

To address these challenges, this research proposes a hybrid digital-analog architecture. In this setup, the digital CPU handles high-precision tasks, such as computing the exact residual, while the analog accelerator handles the heavy lifting of preconditioning.

Schematic of the hybrid digital-analog architecture, featuring a digital CPU for high-precision tasks and an analog crossbar array for O(1) matrix-vector multiplications.

Key techniques include:

  • Approximate Inverse Preconditioners: Instead of standard implicit preconditioners (like ILU), the system computes an explicit sparse approximate inverse $M \approx A^{-1}$.
  • Analog MVM: The matrix $M$ is written to the analog crossbar array. Because analog MVM takes $O(1)$ time regardless of matrix density, the system can use much denser (and thus higher quality) preconditioners than would be efficient on a digital CPU.
  • Preconditioned Richardson Iteration: Standard Krylov solvers fail with noisy preconditioners. Instead, the authors use a stationary iterative method (Richardson iteration). The update step $x_{i+1} = x_i + M r_i$ is computed using the analog array. Mathematical bounds prove that as long as the analog noise is below a certain threshold, the iteration will converge in expectation.

Experimental Validation and Datasets

The method was evaluated on sparse matrices derived from discretizations of model Partial Differential Equations (PDEs), including Finite Element discretizations on square and circular meshes, and Finite Difference discretizations in 3D. These problems are standard benchmarks for PDE solvers and serve to validate the analog hardware simulator.

Sparsity patterns of the matrices involved in the PDE discretizations, illustrating the computational structure handled by the hybrid solver.

Key Insights

  • Density is "free" on analog hardware: On digital hardware, a denser preconditioner means more floating-point operations (FLOPs) and slower execution. On analog crossbar arrays, MVM is $O(1)$ regardless of the number of non-zeros. This allows the use of highly accurate, dense approximate inverses without a performance penalty.
  • Stationary solvers beat Krylov for noisy hardware: While Krylov methods (like GMRES) are the digital gold standard, they require deterministic preconditioners. The simple, stationary Richardson iteration is much more resilient to the stochastic write/read noise of memristors.
  • Hybrid Synergy: By keeping the residual calculation ($r = b - Ax$) on the digital CPU and only offloading the preconditioner application ($Mr$) to the analog array, the system prevents analog errors from accumulating and diverging.

Results and Future Outlook

The hybrid preconditioned Richardson method demonstrated a 5x to 10x reduction in digital FLOPs required for convergence compared to purely digital versions. Theoretical per-iteration speedups approach an order of magnitude, even for relatively small systems. The method successfully converges using simulated hardware with realistic noise levels, requiring 7-bit Digital-to-Analog Converters (DACs) and 9-bit Analog-to-Digital Converters (ADCs).

While current tests were limited to smaller matrices ($n \le 625$) due to simulation overhead, the relative advantage of analog hardware is expected to increase with larger systems. This solver is an ideal candidate for future exascale computing platforms, potentially serving as a fast, low-power local solver within larger, hierarchical parallel systems.

Summary updated

BibTeX
@inproceedings{kalantzis2021solving,
  author = {Vasileios Kalantzis and Anshul Gupta and Lior Horesh and Tomasz Nowicki and Mark S. Squillante and Chai Wah Wu and Tayfun Gokmen and Haim Avron},
  title = {{Solving sparse linear systems with approximate inverse preconditioners on analog devices}},
  booktitle = {HPEC},
  year = {2021},
  url = {https://openreview.net/forum?id=rW4ZKklMtb9},
}
Figure