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.
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:
- Exact Block Inverses: Used as a baseline benchmark.
- Sparse Approximate Inverses (SPAI): Minimizes the residual in the Frobenius norm under a sparsity constraint.
- 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.
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