Lune

CRYPTO2026顶会

Fast Batch Matrix Multiplication in Ciphertexts

Jung Hee Cheon, Minsik Kang, Junho Lee

2026年份
2被引次数

摘要

Encrypted matrix multiplication (MM) is a fundamental primitive in privacy-preserving machine learning and encrypted data search, but it remains a significant performance bottleneck. Recently, Bae et al. (Crypto’24) and Park (Eurocrypt’25) introduced novel algorithms for ciphertext–plaintext (CPMM) and ciphertext–ciphertext (CCMM) matrix multiplications. These algorithms reduce encrypted MM operations to plaintext matrix multiplications (PPMM), enabling implementation through highly optimized BLAS libraries. While these reduction-based methods offer significant improvements, their benefit is limited to scenarios where the matrix dimension dd is comparable to the ring dimension NN in RLWE-based CKKS schemes. As a result, they fall short for matrix multiplications involving small or medium-sized matrices.

We extend the reduction-based CPMM/CCMM into small-sized matrix operations by batching instances. We encode a batch of matrices into a single matrix over algebraic integers, where each entry is obtained by applying the inverse Discrete Fourier Transform to the batch matrix entries at the same position. This encoding enables reductions of encrypted batch MM algorithms to a small number of batch PPMMs, which can be efficiently accelerated by BLAS libraries. Our batch encrypted MM flexibly accommodates diverse matrix dimensions and batch sizes independent of the ring dimension NN, thereby extending its applicability to practical real-world settings.

For two d×dd \times d matrices with N/dN/d batches, our batch CPMM and CCMM algorithms achieve O(d2N)O(d^2N) cost, improving over Bae et al.'s O(dN2)O(dN^2) and Jiang et al.'s O(d2Nlog⁡N)O(d^2N\log N) (CCS'18). We further extend our techniques to rectangular matrices, achieving O(dN2)O(dN^2) for multiplying a d×Nd \times N matrix by an N×NN \times N matrix, improving previous O(N3)O(N^3) methods. A proof-of-concept implementation validates these improvements: multiplying 128 batches of 64×6464 \times 64 matrices takes 0.200.20s (CPMM) and 1.081.08s (CCMM), yielding 240×240\times and 52×52\times speedups over previous methods. For a 64×204864 \times 2048 by 2048×20482048 \times 2048 multiplication, our CCMM completes in 7.57.5s, achieving a 29×29\times speedup compared to Park's algorithm.

问问这篇 Paper

问问你的智能体。

Lune 读过与它相关的顶会 Paper,每个回答都会注明依据哪几篇。

可以从这些问题问起

智能体调用

Lunesearch_papers

在 Lune 里问

免费开始,无需绑卡

相关 Paper

黄昏的海面,两侧是细线勾勒的悬崖