Ciphertext-Ciphertext Matrix Multiplication: Fast for Large Matrices
Jai Hyun Park
Abstract
Matrix multiplication of two encrypted matrices (CC-MM) is a key challenge for privacy-preserving machine learning applications. As modern machine learning models focus on scalability, fast CC-MM on large datasets is increasingly in demand.
In this work, we present a CC-MM algorithm for large matrices. The algorithm consists of plaintext matrix multiplications (PP-MM) and ciphertext matrix transpose algorithms (C-MT). We propose a fast C-MT algorithm, which is computationally inexpensive compared to PP-MM. By leveraging high-performance BLAS libraries to optimize PP-MM, we implement large-scale CC-MM with substantial performance improvements. Furthermore, we propose lightweight algorithms, significantly reducing the key size from MB to MB for CC-MM with comparable efficiency.
In a single-thread implementation, the C-MT algorithm takes seconds to transpose a encrypted matrix. The CC-MM algorithm requires seconds to multiply two encrypted matrices. For large matrices, our algorithm outperforms the state-of-the-art CC-MM method from Jiang-Kim-Lauter-Song [CCS'18] by a factor of over .
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.
Cited by top-tier papers4
- MOAI: Module-Optimizing Architecture for Non-Interactive Secure Transformer InferenceLinru Zhang, Xiangning Wang, Sim Jun Jie, Zhicong Huang et al.ICLR 2026 · 24 citations
- THOR: Secure Transformer Inference with Homomorphic EncryptionJungho Moon, Dongwoo Yoo, Xiaoqian Jiang, Miran KimCCS 2025 · 1 citation
- Lodia: Towards Optimal Sparse Matrix-Vector Multiplication for Batched Fully Homomorphic EncryptionJiping Yu, Kun Chen, Xiaoyu Fan, Yunyi Chen et al.CCS 2025
- Grafting: Decoupled Scale Factors and Modulus in RNS-CKKSJung Hee Cheon, Hyeongmin Choe, Minsik Kang, Jaehyung Kim et al.CCS 2025
Related papers
- Fast Batch Matrix Multiplication in CiphertextsJung Hee Cheon, Minsik Kang, Junho LeeCRYPTO 2026 · 2 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
- Secure Outsourced Matrix Computation and Application to Neural NetworksXiaoqian Jiang, Miran Kim, Kristin E. Lauter, Yongsoo SongCCS 2018 · 359 citations
- HETAL: Efficient Privacy-preserving Transfer Learning with Homomorphic EncryptionSeewoo Lee, Garam Lee, Jung Woo Kim, Junbum Shin et al.ICML 2023 · 52 citations
- HELiKs: HE Linear Algebra Kernels for Secure InferenceShashank Balla, Farinaz KoushanfarCCS 2023 · 16 citations
