Hybrid Digital-Analog Approximate Inverse Preconditioning for Krylov Methods

Shikhar Shah, Rui Peng Li, Tayfun Gokmen, Vassilis Kalantzis, Lior Horesh, Yuanzhe XiarXiv 2026

TL;DR

This paper introduces an analog-aware framework for accelerating Krylov subspace methods (specifically Flexible GMRES) using a hybrid digital-analog architecture. By offloading approximate inverse preconditioners to noisy, low-precision analog in-memory computing (AIMC) hardware while keeping precision-sensitive operations on a digital host, the authors show how to balance mathematical preconditioning strength against hardware non-idealities. They demonstrate that strategies like noise-matched Monte Carlo sampling, damping, and nested block architectures allow analog-accelerated solvers to closely match the convergence performance of pure digital baselines.

What Problem Does This Paper Address?

In scientific computing, solving large, sparse linear systems is a massive computational bottleneck. While Krylov subspace methods (like GMRES) are standard tools for these problems, their performance heavily relies on preconditioning—a technique that transforms the system to make it easier to solve. On conventional digital hardware, these methods are severely bottlenecked by the "memory wall": the high energy and time cost of moving data between memory and the processor.

Analog In-Memory Computing (AIMC) using resistive crossbar arrays offers a solution by performing matrix-vector multiplications (MVMs) directly inside memory using physical laws (Ohm's and Kirchhoff's laws). However, analog hardware is inherently imperfect. It suffers from device noise, programming variability (write noise), limited precision in digital-to-analog/analog-to-digital converters (DAC/ADC), and clipping.

Classical preconditioners (like incomplete factorizations) require sequential operations that cannot be easily mapped to parallel analog crossbars. Approximate inverse preconditioners can be applied via parallel MVMs, but standard digital design principles fail here: a mathematically "stronger" digital preconditioner might actually amplify analog noise or require poor scaling, completely derailing the solver's convergence. This paper addresses how to design robust, analog-aware approximate inverse preconditioners that survive hardware noise.

Methods

The authors propose a hybrid digital-analog solver architecture:

  • Digital Host: Handles precision-sensitive, irregular operations, including sparse MVMs with the original coefficient matrix $A$, vector updates, inner products, and orthogonalization.
  • Analog Compute Core: Stores the block approximate inverse preconditioner blocks on memristive crossbar arrays and executes preconditioner applications via parallel, low-precision analog MVMs.
Hybrid digital-analog solver architecture. The digital host manages the Krylov iteration, while the computational memory unit applies the preconditioner via analog MVMs.

Because the analog hardware introduces input-dependent, non-deterministic noise at each step, the outer solver is formulated as Flexible GMRES (FGMRES), which tolerates a preconditioner that changes from iteration to iteration.

The paper evaluates three block approximate inverse variations:

  1. Exact Block Inverses: Used as a baseline benchmark.
  2. Sparse Approximate Inverses (SPAI): Minimizes the residual in the Frobenius norm under a sparsity constraint.
  3. Monte Carlo Approximate Inverses (MCAI): Computes an approximate inverse based on a Neumann series using highly parallelizable random walks.

To combat hardware noise, they introduce two key robustness mechanisms:

  • Damping and Shifting: Modifying the block inverse action by adding a modest identity component ($\omega I$), which acts as a reliable, noise-free digital search direction.
  • Nesting: Solving the local block preconditioner systems using an inner FGMRES loop preconditioned by even smaller analog sub-blocks. This reduces the physical size of the matrices programmed onto the crossbars, minimizing noise exposure.

Datasets

The methods were evaluated using simulated analog hardware on standard model partial differential equation (PDE) problems:

  • 3D Poisson Equation: Evaluated on $12 \times 12 \times 12$ grids (for spectral diagnostics) and $16 \times 16 \times 16$ grids ($n = 4,096$).
  • 3D Convection-Diffusion-Reaction Equation: A non-symmetric problem evaluated on a $16 \times 16 \times 16$ grid ($n = 4,096$).
  • Larger Scaled Systems: A 3D Poisson problem ($n = 32,768$) and a 2D Poisson problem ($n = 32,400$) to test the scalability of nested preconditioning.

Key Insights and Ideas

  • The Counterintuitive Block-Size Tradeoff: In pure digital math, larger block sizes capture more coupling and lead to faster solver convergence. In analog hardware, larger blocks require larger scaling factors to fit the hardware's dynamic range and accumulate more absolute write noise ($\propto \sqrt{n_k}$). This creates a non-monotonic U-shaped performance curve where intermediate block sizes are optimal.
  • The Noise-Matching Principle: For the MCAI method, refining the digital accuracy of the inverse beyond the hardware's physical noise floor is a waste of time. The authors prove an error bound showing that once the truncation and sampling errors match the analog hardware noise floor, further digital refinement yields zero convergence benefits.
  • Sparsity Isn't a Cure-All: In digital computing, sparse preconditioners save memory and compute. In analog crossbars, MVM latency is independent of matrix density. While sparsity can reduce current draw, unmasked zeros are still subject to absolute write noise, meaning digital sparsity does not automatically guarantee analog robustness.
Noise and quantization sources in a single analog MVM pipeline.

Key Results

  • Damping Gains: Incorporating a modest damping parameter ($\omega = 0.05$) reduced the mean analog FGMRES iteration count by roughly 20% compared to the undamped analog baseline, stabilizing the solver against heavy noise perturbations.
  • Nesting Performance: On the larger 3D Poisson problem ($n = 32,768$), the nested analog MCAI method achieved robust convergence, requiring an average of 38.4 iterations, closely tracking the nested digital baseline (38.6 iterations).
  • For the 2D Poisson problem ($n = 32,400$), the nested analog method averaged 93.8 iterations, matching the nested digital version (94.0 iterations), proving that nesting successfully mitigates hardware noise scaling.

Limitations and Future Work

  • Simulation-Based: The study relies on a realistic functional simulator of analog crossbars rather than physical hardware deployments. Consequently, physical end-to-end runtime and hardware energy measurements are not reported.
  • Zero-Masking Assumptions: The behavior of sparse methods like SPAI depends heavily on whether hardware architectures support explicit masking of logical zeros to protect them from write noise.
  • Future Directions: The authors suggest extending this work to overlapping block Jacobi variants, evaluating performance across varying hardware noise levels, amortizing programming costs using multi-right-hand-side linear systems, and exploring low-rank hierarchical matrix representations (like $\mathcal{H}$-matrices) within analog architectures.

Summary updated

Abstract

Analog in-memory computing enables highly parallel matrix-vector multiplications with reduced data movement, but the resulting operations are noisy, quantized, and affected by device- and circuit-level non-idealities. This paper studies approximate inverse preconditioning for Krylov subspace methods in a hybrid digital-analog setting. The digital host performs sparse products with the coefficient matrix and the precision-sensitive Krylov operations, while preconditioner applications are performed through analog crossbar matrix-vector multiplications. Since the realized preconditioner is inexact and application-dependent, the outer iteration is formulated as the flexible GMRES method. We show that analog execution changes the usual preconditioner design problem in the sense that a stronger digital preconditioner may be less effective after analog scaling, write noise, input/output perturbations, quantization, and clipping are taken into account. We compare various block Jacobi preconditioning schemes including exact block inverses, sparse approximate inverses, Monte Carlo approximate inverses (MCAI), damping, and nested block Jacobi schemes. Numerical experiments with realistic analog matrix-vector simulations show that analog-aware choices of block size, damping, MCAI construction accuracy, and nesting are important for robust convergence.
BibTeX
@misc{shah2026hybrid,
  author = {Shikhar Shah and Rui Peng Li and Tayfun Gokmen and Vassilis Kalantzis and Lior Horesh and Yuanzhe Xi},
  title = {{Hybrid Digital-Analog Approximate Inverse Preconditioning for Krylov Methods}},
  year = {2026},
  eprint = {2606.17227},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.17227},
}

Loading related content...

Figure