arXiv:2609.00561cs.DCSep 2026

Manuscript Offprint

arXiv:2609.00561

Comparison of Algebraic Block Multi-Coloring and Leiden Methods for Parallel Preconditioning in the ICCG Method

Tomohiro Suzuki

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

In the application of incomplete Cholesky preconditioning to the incomplete Cholesky-conjugate gradient (ICCG) method, forward and backward substitutions exhibit sequential dependencies that constitute a major bottleneck for parallelization in multicore environments. To alleviate this bottleneck, the algebraic block multicoloring (ABMC) method achieves both parallelism and data locality through block-wise coloring. However, ABMC requires the number of blocks to be specified as an input parameter in advance. This study evaluates the Leiden method as an alternative blocking approach for parallel preconditioning in the ICCG method. As a community detection technique that maximizes a quality function for graph partitioning, the Leiden method automatically generates blocks that reflect the matrix structure without requiring the number of blocks a priori. We partition the adjacency graphs of sparse matrices using the Leiden method and utilize the resulting blocks for parallel preconditioning. We implement the Leiden method using modularity and the constant Potts model as quality functions and compare its performance with that of the ABMC method in terms of the number of iterations, execution time, and L2 cache efficiency across eight symmetric positive definite matrices. The experimental results demonstrate that the Leiden method with the constant Potts model achieves performance comparable to that of the ABMC method configured with an optimized number of blocks.

Keywords: algebraic block multi-coloring (ABMC) method, incomplete Cholesky-conjugate gradient (ICCG) method, Leiden method, parallel preconditioning

1 Introduction

Iterative solvers for sparse linear systems are fundamental tools in numerical linear algebra. In particular, the incomplete Cholesky-conjugate gradient (ICCG) method is widely used in large-scale finite element analysis and fluid simulations. In the computational process of the ICCG method, forward and backward substitutions are utilized to apply the preconditioner based on incomplete Cholesky factorization. These substitutions account for a significant portion of the execution time in each iteration. However, they possess an inherent sequentiality, where each element depends recursively on previously computed values. Such sequential dependencies present a major bottleneck for parallelization in multicore environments.

Techniques that eliminate these sequential dependencies and rearrange matrix elements for parallel execution are referred to as parallel preconditioning. A representative approach is the multi-coloring method. In this method, an adjacency graph is constructed from the nonzero structure of a sparse matrix and colored such that adjacent vertices have distinct colors. The matrix is then reordered to place vertices of the same color contiguously, enabling parallel processing of independent vertex sets. However, the multi-coloring method imposes a constraint that prevents adjacent nodes from being processed simultaneously. Because these adjacent nodes are originally located close to each other in memory, this constraint leads to discontinuous memory access, thereby degrading spatial locality. Consequently, despite the improved degree of thread-level parallelism, frequent cache misses can occur. On modern CPU architectures that feature hierarchical caches, this approach may fail to deliver sufficient performance gains for certain matrices.

To mitigate this issue, block multi-coloring methods have been proposed, with a typical example being the algebraic block multi-coloring (ABMC) method [1]. The ABMC method groups n unknowns into approximately nbn_b blocks with a target block size s=⌈n/nb⌉s = \lceil n/n_b \rceil and subsequently performs coloring at the block level. This approach preserves parallelism while improving memory access locality by processing unknowns sequentially within each block. In this manner, the ABMC method aims to simultaneously achieve high parallelism and enhanced cache efficiency.

In recent years, the analysis of large-scale networks has gained significant attention in computer science [2–5]. These networks inherently exhibit community struc-

0^{0}This work was supported by the Japan Society for the Promotion of Science KAKENHI under grant number 25K15136.

tures, where vertices within the same group are densely connected. Community detection has emerged as a key technique for identifying such natural divisions within a network. Among various approaches, the Louvain method [6] aims to extract substructures that maximize modularity [7], a metric that quantifies the density of internal edges relative to external connections. The Leiden method [8] enhances the Louvain method by guaranteeing connectivity within communities, thereby yielding higher-quality partitions. Furthermore, the Leiden method accommodates alternative quality functions beyond modularity; for instance, the constant Potts model (CPM) [9] evaluates community quality based on the exact number of internal edges and vertices. This concept of identifying densely connected groups provides a powerful guideline for restoring data locality in sparse matrix computations. Specifically, by extracting communities from an adjacency graph and treating them as blocks, strong data dependencies can be confined within individual blocks, leaving inter-block connections relatively sparse.

The conventional ABMC method performs blocking based on a pre-specified number of blocks or block size. Selecting the optimal configuration requires empirical trial and error, which is a practical drawback. In contrast, the Louvain and Leiden methods determine the block structure organically through the optimization of a quality function, without explicitly prescribing the number of blocks a priori. However, unlike ABMC, quality-function-based methods do not explicitly control individual block sizes. This absence of explicit control can lead to non-uniform block sizes, potentially causing performance degradation due to load imbalance. To address this trade-off, this study applies block multi-coloring to the block structures obtained via both the ABMC and Leiden methods for parallel preconditioning. We then comprehensively evaluate the impacts of these methods on the convergence behavior of the ICCG method, parallel execution time, and cache efficiency.

The main contributions of this study are summarized as follows:

  • We propose a Leiden-based automated blocking framework for ICCG preconditioning, which reduces the need for problem-dependent parameter tuning.

  • We evaluate modularity and the CPM as quality functions, analyzing their impacts on block structures, cache efficiency, and solver performance across 32-core execution.

  • Through performance evaluations in a 32-core CPU environment, we demonstrate that the Leiden method with the CPM suppresses the formation of giant blocks and delivers ICCG execution performance comparable to that of the finely tuned ABMC method using only a single resolution parameter.