Fast Batch Matrix Multiplication in Ciphertexts
Jung Hee Cheon, Minsik Kang, Junho Lee
Abstract
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.
Ask about this paper
Ask your agent about it.
Lune has read the top-tier papers around this one, so every answer names the papers it rests on.
Your agent calls
Lunesearch_papers
Free to start. No credit card required.
Terminal
Install the CLIlune papers get 4b5ceb73-da21-4b5c-8d33-7aa83a0e3316Related papers
- Ciphertext-Ciphertext Matrix Multiplication: Fast for Large MatricesJai Hyun ParkEUROCRYPT 2025 · 5 citations
- Plaintext-Ciphertext Matrix Multiplication and FHE Bootstrapping: Fast and FusedYoungjin Bae, Jung Hee Cheon, Guillaume Hanrot, Jai Hyun Park et al.CRYPTO 2024 · 16 citations
- Fully Homomorphic Encryption for Matrix ArithmeticCraig Gentry, Yongwoo LeeCRYPTO 2026 · 4 citations
- Secure Outsourced Matrix Computation and Application to Neural NetworksXiaoqian Jiang, Miran Kim, Kristin E. Lauter, Yongsoo SongCCS 2018 · 359 citations
- New Permutation Decomposition Techniques for Efficient Homomorphic PermutationXirong Ma, Junling Fang, Chunpeng Ge, Dung Hoang Duong et al.CCS 2025
