Abstract: We present a fast sparse matrix permutation algorithm tailored to linear systems arising from triangle meshes. Our approach produces nested-dissection-style permutations while significantly reducing permutation runtime overhead. Rather than enforcing strict balance and separator optimality, the algorithm deliberately relaxes these design decisions to favor fast partitioning and efficient elimination-tree construction. Our method decomposes permutation into patch-level local orderings and a compact quotient-graph ordering of separators, preserving the essential structure required by sparse Cholesky factorization while avoiding its most expensive components. We integrate our algorithm into vendor-maintained sparse Cholesky solvers on both CPUs and GPUs. Across a range of graphics applications, including single factorizations, repeated factorizations, our method reduces permutation time and improves the sparse Cholesky solve performance by up to 6.27x.
Introduction
In geometry processing and physical simulation, researchers frequently solve large, sparse, positive-definite linear systems. Sparse Cholesky factorization is the standard method for these problems due to its numerical robustness. However, before the numerical factorization can occur, solvers must perform a "symbolic analysis" phase. A critical part of this phase is finding a "fill-reducing" permutation—reordering matrix rows and columns to minimize the creation of new non-zero entries (fill-in) during factorization.
As numerical factorization steps have become highly optimized on modern hardware, the permutation step has emerged as a significant bottleneck. For large meshes, permutation can account for up to 96% of the total solver runtime. Existing general-purpose graph partitioners, such as METIS, spend considerable compute time enforcing strict balance and optimal separators. While these properties are desirable for general graphs, they are often computationally overkill for the structured matrices derived from triangle meshes.
Methodology: Patch-Guided Permutation
Our approach exploits the inherent geometric structure of triangle meshes to bypass the heavy computation of traditional nested dissection. Instead of running partitioning algorithms on the full matrix graph, we compress the problem through a multi-stage strategy:
- Patching: The mesh is first divided into small, connected patches using a fast GPU-based $k$-means algorithm.
- Quotient Graph Construction: These patches are lifted to the matrix graph to form a "quotient graph." In this representation, each node represents an entire patch rather than a single vertex, drastically reducing the graph's complexity.
- Patch-Guided Nested Dissection: We recursively partition this coarse quotient graph to find separators. Crucially, our algorithm builds the elimination tree (etree) simultaneously. This avoids the traditional, expensive process of repeatedly coarsening the full graph at every recursion level.
- Local Ordering: Finally, a Fast Approximate Minimum Degree (AMD) ordering is applied locally within each patch. These local orderings are concatenated based on a schedule optimized for the target hardware (e.g., post-order for CPUs, level-order for GPUs).
Experimental Evaluation
We evaluated our method on a dataset of 103 3D triangle meshes ranging from 1.5K to 1.8M vertices. The evaluation covered standard graphics workloads, including Laplace-Beltrami operator solves, spectral conformal parameterization (SCP), and mean-curvature flow (mesh smoothing).
Key Results
- Ordering Speedup: Our algorithm achieves up to a 10.27x speedup in standalone ordering time compared to state-of-the-art tools like METIS.
- End-to-End Performance: When integrated into NVIDIA's cuDSS solver, we observed up to a 6.62x end-to-end speedup for large meshes (>1.5M vertices). On Intel MKL (CPU), the method yielded up to a 2.55x speedup.
- Iterative Workloads: For tasks like mesh smoothing that require repeated factorizations, the upfront permutation savings resulted in a 3.7x overall speedup on a 1.7M vertex mesh, demonstrating that the efficiency gains persist even when factorization costs are amortized.
Discussion and Insights
The core insight of this work is that relaxing optimality for speed is a winning trade-off in the context of modern sparse solvers. General-purpose partitioners work too hard to find perfect separators; by operating on coarse patches, our algorithm accepts slightly higher fill-in in exchange for a massive reduction in preprocessing time. Furthermore, by outputting the elimination tree directly, we prevent the solver from redundantly recomputing hierarchical information that is naturally generated during the permutation process.
While highly effective for large surface meshes, the method faces limitations on smaller meshes (under ~50k vertices) where the patching overhead becomes significant. Future work will focus on extending this approach to volumetric (tetrahedral) meshes and moving the remaining separator and ordering stages entirely to the GPU to further minimize latency.
Summary updated