GPU-Accelerated Parallel Selected Inversion for Structured Matrices Using sTiles

Esmail Abdul Fattah, Hatem Ltaief, Håvard Rue, David E. KeyesarXiv 2025 · DOI

Abstract

Computing the full inverse of a large sparse matrix is often computationally prohibitive due to the "fill-in" phenomenon. However, many scientific applications only require specific elements of the inverse. This paper presents a GPU-accelerated, tile-based algorithm within the sTiles framework for performing "selected inversion" on structured sparse matrices. By utilizing uniform tile grids, static scheduling, and Directed Acyclic Graph (DAG) pruning, the proposed method achieves significant speedups—up to 13.5x over state-of-the-art CPU solvers and an additional 5.7x on modern GPUs.

Introduction

Matrix inversion is a fundamental operation in linear algebra, but it faces a major hurdle: the inverse of a sparse matrix is typically fully dense. This phenomenon, known as fill-in, leads to massive computational and memory overheads. Fortunately, applications such as Bayesian inference (e.g., spatial-temporal modeling), electronic structure calculations, and inverse covariance estimation do not require the entire inverse, but only specific entries or substructures.

While "selected inversion" techniques exist, current state-of-the-art solvers often rely on supernodal or multifrontal methods. These methods group columns by sparsity patterns, creating irregular data structures that are difficult to optimize for massively parallel hardware like modern multi-core CPUs and GPUs.

The sTiles Framework

The authors address these challenges by extending sTiles, a tile-based framework for high-performance linear algebra. Instead of irregular supernodes, the matrix is divided into a uniform grid of fixed-size blocks (tiles).

Block-structured sparse matrix representation suitable for tile-based processing.

By forcing a uniform grid, the workload becomes highly predictable. This predictability allows for static scheduling, which pre-assigns tasks to cores and virtually eliminates the runtime overhead associated with dynamic schedulers on high-core-count machines.

Methods: Parallel Selected Inversion

The algorithm computes the selected inverse via Cholesky factorization ($A = LL^T$) using a novel two-phase parallel approach:

  1. Phase 1 (Independent Updates): Performs row-wise updates of the upper triangular factor. Because these rows are computationally independent, they are distributed across cores using a static, round-robin schedule, requiring zero synchronization.
  2. Phase 2 (Dependent Computations): Handles the complex data dependencies required to finalize the inverse. It uses a lightweight, asynchronous producer-consumer model (via a shared status-tracking matrix) to signal when a tile is ready, avoiding expensive global synchronization barriers.

Crucially, the algorithm performs DAG (Directed Acyclic Graph) pruning. It maps the user-requested elements to specific tiles and prunes any computations that do not contribute to those tiles, drastically shrinking the workload. On the GPU, the entire matrix is loaded into VRAM, and each tile is mapped to a dedicated CUDA stream to maximize concurrent execution.

Experimental Evaluation

The algorithm was evaluated using synthetic structured matrices designed to mimic real-world workloads, specifically the "arrowhead" matrices common in Integrated Nested Laplace Approximations (INLA) Bayesian models.

Sparsity pattern of a typical arrowhead matrix used in the evaluation.

Key Results

  • CPU vs. CPU: On a dual-socket 26-core Intel Xeon system, sTiles achieved up to a 13.49x speedup over Panua-PARDISO 8.2 for large-scale structured matrices.
  • GPU vs. CPU: Using an NVIDIA A100 GPU, the sTiles GPU implementation achieved a 5.72x speedup over a 64-core AMD EPYC CPU baseline. It inverted a massive 50,000-dimension matrix with a bandwidth of 15,000 in just 3.56 seconds.
  • Scalability: Compared to the PLASMA library, sTiles showed near-perfect scaling up to 52 cores, whereas PLASMA's performance stagnated after 16 cores due to thread contention.
  • Density Tolerance: sTiles maintains consistent performance across varying densities because its dense-tile operations use optimized BLAS kernels built for high throughput.

Limitations and Future Work

The current GPU implementation requires that all selected tiles fit within the GPU's memory (e.g., the 80GB limit of an A100). Future work will focus on extending the framework to support multi-GPU setups, distributed-memory architectures, and out-of-core execution to handle matrices that exceed VRAM capacity.

Summary updated

BibTeX
@misc{fattah2025gpu,
  author = {Esmail Abdul Fattah and Hatem Ltaief and Håvard Rue and David E. Keyes},
  title = {{GPU-Accelerated Parallel Selected Inversion for Structured Matrices Using sTiles}},
  year = {2025},
  eprint = {2504.19171},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.19171},
}
Figure