Fast Batch Matrix Multiplication in Ciphertexts
Jung Hee Cheon, Minsik Kang, Junho Lee
摘要
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 is comparable to the ring dimension 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 , thereby extending its applicability to practical real-world settings.
For two matrices with batches, our batch CPMM and CCMM algorithms achieve cost, improving over Bae et al.'s and Jiang et al.'s (CCS'18). We further extend our techniques to rectangular matrices, achieving for multiplying a matrix by an matrix, improving previous methods. A proof-of-concept implementation validates these improvements: multiplying 128 batches of matrices takes s (CPMM) and s (CCMM), yielding and speedups over previous methods. For a by multiplication, our CCMM completes in s, achieving a speedup compared to Park's algorithm.
问问这篇 Paper
问问你的智能体。
Lune 读过与它相关的顶会 Paper,每个回答都会注明依据哪几篇。
相关 Paper
- Ciphertext-Ciphertext Matrix Multiplication: Fast for Large MatricesJai Hyun ParkEUROCRYPT 2025 · 被引用 5 次
- Plaintext-Ciphertext Matrix Multiplication and FHE Bootstrapping: Fast and FusedYoungjin Bae, Jung Hee Cheon, Guillaume Hanrot, Jai Hyun Park 等CRYPTO 2024 · 被引用 16 次
- Fully Homomorphic Encryption for Matrix ArithmeticCraig Gentry, Yongwoo LeeCRYPTO 2026 · 被引用 4 次
- Secure Outsourced Matrix Computation and Application to Neural NetworksXiaoqian Jiang, Miran Kim, Kristin E. Lauter, Yongsoo SongCCS 2018 · 被引用 359 次
- New Permutation Decomposition Techniques for Efficient Homomorphic PermutationXirong Ma, Junling Fang, Chunpeng Ge, Dung Hoang Duong 等CCS 2025
