arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.04683cs.CRcs.DS
收藏

为同态稀疏矩阵向量乘法打包条目

Diagonal Packing for Efficient Homomorphic Sparse Matrix-Vector Multiplication

Faculty of Engineering and Natural Sciences, Sabancı University(萨班哲大学工程与自然科学学院);VERIM, Center of Excellence in Data Analytics, Sabancı University(萨班哲大学VERIM数据分析卓越中心)

Kemal Mutluergil, Deniz Elbek, Kamer Kaya, Erkay Savaş

AI总结:

本文研究如何通过排列稀疏矩阵的行和列,将非零元素打包到尽可能少的循环对角线上。提出二维对角线打包问题(2DPP),并设计整数规划方法和启发式算法优化稀疏矩阵的存储结构,从而降低同态加密的计算开销。

摘要:

同态加密(HE)允许对加密数据进行计算,但会产生显著的开销。对于稀疏矩阵向量乘法,广泛使用的Halevi和Shoup(2014)方案的成本与占据的循环对角线数量成线性关系,这可能由于矩阵的不规则非零模式而变得很大。本文研究如何排列稀疏矩阵的行和列,使非零元素尽可能集中到少的循环对角线中。我们将此问题形式化为二维对角线打包问题(2DPP),引入二维圆形带宽度量,并为小实例提出整数规划公式。对于大矩阵,我们提出实用的排列启发式方法,结合基于带宽减少、反带宽最大化和谱分析的图基排列,并采用基于2OPT和3OPT交换的迭代改进优化阶段。我们还引入了密集行/列消除策略和HE-aware成本模型,以量化隔离密集结构的好处。在175个SuiteSparse矩阵上的实验表明,我们的排列优化变体平均可将对角线数量减少5.5倍(一个实例为45.6倍)。此外,密集行/列消除方法在某些情况下非常有用,例如在一项实验中,额外的消除帮助将加密乘法成本降低了23.7倍,而没有消除的情况下改进仅为1.9倍。

英文摘要:

Homomorphic encryption (HE) enables computation over encrypted data but incurs a substantial overhead. For sparse matrix-vector multiplication, the widely used Halevi-Shoup scheme works over the non-empty diagonals, which may be many due to the irregular nonzero pattern of the matrix. Existing HE matrix-vector methods either use dense diagonal packing, which wastes rotations on empty diagonals, or sparse-coordinate compression, which can expose structural metadata. In this work, we instead keep the diagonal-method representation but reorder rows and columns to reduce the number of occupied cyclic diagonals. We formalize this problem as the 2D-diagonal packing problem and provide an integer programming formulation that yields optimal solutions for small instances. For large matrices, we propose practical ordering and iterative-improvement-based optimization heuristics. We also introduce a dense row/column elimination strategy. Experiments on 175 real-life matrices show that our ordering-optimization 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$.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑