Packing Entries to Diagonals for Homomorphic Sparse-Matrix Vector Multiplication

📅 2026-04-06
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
This work addresses the high computational cost of sparse matrix-vector multiplication under homomorphic encryption, which stems from irregular distributions of non-zero elements leading to numerous cyclic diagonals. The authors propose the two-dimensional diagonal packing problem (2DPP) together with a homomorphic encryption-aware cost model, aiming to minimize the number of cyclic diagonals through row and column permutations. Their approach integrates graph bandwidth reduction, anti-bandwidth maximization, spectral ordering, and iterative 2OPT/3OPT refinements, augmented by a dense row/column elimination mechanism to isolate highly dense substructures. Evaluated on 175 SuiteSparse matrices, the method reduces the number of diagonals by an average of 5.5× (up to 45.6×), and when combined with dense elimination, achieves up to a 23.7× reduction in encrypted multiplication cost.
📝 Abstract
Homomorphic encryption (HE) enables computation over encrypted data but incurs a substantial overhead. For sparse-matrix vector multiplication, the widely used Halevi and Shoup (2014) scheme has a cost linear in the number of occupied cyclic diagonals, which may be many due to the irregular nonzero pattern of the matrix. In this work, we study how to permute the rows and columns of a sparse matrix so that its nonzeros are packed into as few cyclic diagonals as possible. We formalise this as the two-dimensional diagonal packing problem (2DPP), introduce the two-dimensional circular bandsize metric, and give an integer programming formulation that yields optimal solutions for small instances. For large matrices, we propose practical ordering heuristics that combine graph-based initial orderings - based on bandwidth reduction, anti-bandwidth maximisation, and spectral analysis - and an iterative-improvement-based optimization phase employing 2OPT and 3OPT swaps. We also introduce a dense row/column elimination strategy and an HE-aware cost model that quantifies the benefits of isolating dense structures. Experiments on 175 sparse matrices from the SuiteSparse collection show that our ordering-optimisation variants can reduce the diagonal count by $5.5\times$ on average ($45.6\times$ for one instance). In addition, the dense row/column elimination approach can be useful for cases where the proposed permutation techniques are not sufficient; for instance, in one case, the additional elimination helped to reduce the encrypted multiplication cost by $23.7\times$ whereas without elimination, the improvement was only $1.9\times$.
Problem

Research questions and friction points this paper is trying to address.

homomorphic encryption
sparse-matrix vector multiplication
diagonal packing
matrix reordering
cyclic diagonals
Innovation

Methods, ideas, or system contributions that make the work stand out.

homomorphic encryption
sparse-matrix vector multiplication
diagonal packing
matrix reordering
integer programming
🔎 Similar Papers
No similar papers found.
K
Kemal Mutluergil
Faculty of Engineering and Natural Sciences, Sabancı University, Istanbul, 34956, Turkey.
D
Deniz Elbek
Faculty of Engineering and Natural Sciences, Sabancı University, Istanbul, 34956, Turkey.; VERIM, Center of Excellence in Data Analytics, Sabancı University, Istanbul, 34956, Turkey.
Kamer Kaya
Kamer Kaya
Assoc. Prof., Sabancı University
High Performance ComputingParallel AlgorithmsGraph AlgorithmsCryptography
E
Erkay Savaş
Faculty of Engineering and Natural Sciences, Sabancı University, Istanbul, 34956, Turkey.