Causal Structure Learning for Sparse Matrix Fill-in Reduction

Ziwei Li, Shuzi Niu, Tao Yuan, Huiyuan LiICML 2026

Introduction: The Fill-In Bottleneck

In scientific computing domains such as computational fluid dynamics (CFD) and chemical process simulation, researchers frequently solve massive systems of linear equations ($Ax = b$). Because these matrices are typically "sparse" (containing mostly zeros), specialized direct solvers utilizing LU factorization are the standard approach.

However, the factorization process suffers from a critical bottleneck known as "fill-in"—the generation of new non-zero entries that did not exist in the original matrix. This fill-in explosion can increase memory footprints by orders of magnitude and drastically slow down computation. To mitigate this, matrices are "reordered" (permuting rows and columns) prior to factorization. Finding the optimal elimination order is an NP-hard problem. While classical graph-theoretic heuristics (like Minimum Degree or Nested Dissection) and recent deep learning models exist, they often rely on surrogate objectives—such as pushing non-zeros toward the diagonal—that fail to model the underlying mechanisms of fill-in generation.

A New Paradigm: Causal Triplet Structure Learning (CTS)

To address the lack of interpretability and direct optimization in existing methods, researchers have proposed Causal Triplet Structure Learning (CTS). This novel deep learning framework bridges graph theory and causal inference to directly identify and block the structures that trigger fill-in.

The Fill-Path Theorem and Causal Triplets

The core theoretical contribution of CTS is grounded in the Fill-Path Theorem. The authors demonstrate that any complex, arbitrary-length path leading to a fill-in can be inductively reduced to a simple "causal triplet" $(u, w, v)$. In this triplet, if the middle vertex $w$ is eliminated before its neighbors $u$ and $v$, a new fill-in edge is inevitably born between $u$ and $v$.

By framing fill-in as an "effect" and the elimination order as the "cause," CTS transforms a daunting global optimization problem into a tractable, local causal-structure identification task.

Architecture: MgKGAT

To implement this theory, the authors designed a Multi-grid KAN-enhanced Graph Attention Network (MgKGAT), which consists of three primary innovations:

  1. Multigrid Processing: The network processes the matrix graph at multiple scales, capturing both local connectivity and broad global structures.
  2. Fourier-KAN Activations: Replacing standard ReLU activations, the model employs Kolmogorov-Arnold Networks (KAN) with Fourier basis functions. This allows the network to better capture the complex, high-frequency patterns inherent in graph data.
  3. Causal Triplet Loss: During training, a specialized loss function penalizes the model whenever its predicted elimination order would complete a causal triplet. This effectively trains the model to "intervene" and block fill-in before it materializes.

Experimental Setup and Scalability

The model was evaluated using the SuiteSparse Matrix Collection, a standard benchmark for sparse matrix research. One of the most remarkable insights from the study is the model's scalability. CTS was trained on relatively tiny matrices (100–5,000 nodes for spectral initialization, and 200–500 nodes for the main network). Yet, it generalized effectively to 69 large-scale matrices—some containing over 10,000 nodes and up to 15 million non-zeros. This "train small, test large" capability suggests that the causal rules governing fill-in are fundamentally local and universal across matrix sizes.

Key Results

CTS demonstrates exceptional performance, particularly in specific scientific domains:

  • Fill-in Reduction: The method reduced fill-in by 6× compared to state-of-the-art deep learning methods on Chemical Process Simulation (CPS) matrices.
  • Factorization Speedup: By drastically reducing the number of non-zeros, CTS achieved a 12× speedup in LU factorization time compared to the previous leading deep learning method (PFM) on CFD subsets.
  • Superiority over Heuristics: CTS consistently outperformed classical graph-theoretic baselines, including Nested Dissection (ND) and Spectral Ordering, in both fill-in ratio and raw computation time.

Limitations and Future Directions

While CTS represents a significant leap forward, the authors note a few limitations:

  • Domain Sensitivity: CTS dominated in CFD and CPS matrices but was less effective on "Structural Problems" (SP). SP matrices often exhibit a "banded" structure where simple diagonal-concentration methods (like UDNO) still hold an advantage.
  • Parallelism: The current causal loss optimizes strictly for total fill-in reduction. However, modern supercomputing often benefits from elimination orders that allow many variables to be processed simultaneously. CTS does not yet explicitly account for this parallelism trade-off.
  • Interpretability of Gains: While the causal framework is highly interpretable at the node level, the macro-level reasons why performance gains vary so widely across different matrix "families" remain an open question for future research.

Summary updated

BibTeX
@inproceedings{li2026causal,
  author = {Ziwei Li and Shuzi Niu and Tao Yuan and Huiyuan Li},
  title = {{Causal Structure Learning for Sparse Matrix Fill-in Reduction}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=VbMi2zFVlk},
}
Figure