Revisiting Sparse Matrix Coloring and Bicoloring
Revisiting Sparse Matrix Coloring and Bicoloring
Sparse matrix coloring and bicoloring are fundamental building blocks of sparse automatic differentiation. Bicoloring is particularly advantageous for rectangular Jacobian matrices with at least one dense row and column. Indeed, in such cases, unidirectional row or column coloring demands a number of colors equal to the number of rows or columns. We introduce a new strategy for bicoloring that encompasses both direct and substitution-based decompression approaches. Our method reformulates the two variants of bicoloring as star and acyclic colorings of an augmented symmetric matrix. We extend the concept of neutral colors, previously exclusive to bicoloring, to symmetric colorings, and we propose a post-processing routine that neutralizes colors to further reduce the overall color count. We also present the Julia package SparseMatrixColorings, which includes these new bicoloring algorithms alongside all standard coloring methods for sparse derivative matrix computation. Compared to ColPack, the Julia package also offers enhanced implementations for star and acyclic coloring, vertex ordering, as well as decompression.
Alexis Montoison、Guillaume Dalle、Assefaw Gebremedhin
计算技术、计算机技术
Alexis Montoison,Guillaume Dalle,Assefaw Gebremedhin.Revisiting Sparse Matrix Coloring and Bicoloring[EB/OL].(2025-05-12)[2025-06-06].https://arxiv.org/abs/2505.07308.点此复制
评论