paper

Computing Smith Forms Modulo of Sparse Matrices Faster Than Matrix Multiplication

arXiv:2607.05800

Abstract

Let be a prime and the ring of integers modulo . Any is unimodularly equivalent to its Smith form \[ S=diag\bigl(\underbrace{1,\ldots,1}_{r_0}, \underbrace{p,\ldots,p}_{r_1}, \underbrace{0,\ldots,0}_{r_2}\bigr) \in R^{n\times n}, \] i.e., there exist such that , with (where is the set of units in , elements not equivalent to ). Our goal in this paper is to determine quickly when is sparse or structured. By ``sparse'' we mean is given by a black box such that for any we can compute with operations in , which captures having few nonzero elements or a multiplicative structure (e.g., Hankel or Toeplitz matrices). We present a randomized algorithm which requires an expected number of \[ \tilde{O}\left(n^{3-1/(ω-1)}\right) \] operations in to compute the Smith form, where is the exponent of dense matrix multiplication. Using standard cubic matrix multiplication () our algorithm thus requires operations in , while using the current asymptotically fastest matrix multiplication, with , our algorithm requires operations in . Our algorithm is probabilistic of the Monte Carlo type, meaning it fails on any invocation with controllably small probability. We employ iterative block-Wiedemann-style matrix techniques and structured preconditioners. To our knowledge, this is the first algorithm to compute the modular Smith Normal Form modulo requiring fewer than operations in , i.e., faster than any dense algorithm.

Computing Smith Forms Modulo $p^2$ of Sparse Matrices Faster Than Matrix Multiplication · wovepaper