English

A fast diagonalization algorithm to enable singular value decomposition of large matrices for efficient template matching

Quantitative Methods 2026-08-09 v1 Numerical Analysis

Abstract

Many computational problems possess the following three features: (1) the problem could be solved efficiently if a linear operator could be diagonalized, (2) direct diagonalization is infeasible due to scale, but, (3) the operator is known to commute with a permutation since the problem is (a) symmetric with respect to a change of coordinates, or (b) the operator is block circulant. For example, high-resolution template matching demands repeated convolution of large, high resolution images with an exhaustive list of related templates. The associated linear operator could be compressed, via a low rank approximation, if diagonalized. The required decomposition expensive, but, the entire problem is symmetric to in-plane rotations. In these cases, the eigenfunctions are constrained by the symmetry. These constraints allow efficient decomposition. We illustrate a parallelized algorithm that allows fast diagonalization of any block-circulant matrix. When the index space can be partitioned into ll classes of mm interchangeable elements, the algorithm reduces storage costs by a factor of mm and, if ww workers are available, the algorithm demands O(l2mlog(m)/w)+O(ml3/w)\mathcal{O}(l^2m\log(m)/w) + \mathcal{O}(ml^3/w) floating point operations per worker yielding a m2m^2 speedup. We use this procedure to decompose a high precision template matching matrix. We compare runtime on a reduced problem, where the fast procedure ran 205 times faster per recovered feature, for 22.5 times as many features. On a typical template matching matrix, the decomposition required 25 times less time than computing the matrix entries. We also demonstrate decomposition of a \sim30 times larger matrix that covers the complete set of possible projections represented in a cryo-EM image at 2~{\AA} resolution in 14 minutes. This procedure is more stable and allows recovery of in-plane rotations to arbitrary precision.

Keywords

Cite

@article{arxiv.2608.10029,
  title  = {A fast diagonalization algorithm to enable singular value decomposition of large matrices for efficient template matching},
  author = {Matthew Giammar and Bronwyn Lucas and Alexander Strang},
  journal= {arXiv preprint arXiv:2608.10029},
  year   = {2026}
}

Comments

14 pages main text, 5 figures main text, 5 pages SI, 3 SI figures