Lune

EUROCRYPT2025Top-tier venue

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 1 9601\ 960 MB to 1.571.57 MB for CC-MM with comparable efficiency.

In a single-thread implementation, the C-MT algorithm takes 0.760.76 seconds to transpose a 2 048×2 0482\ 048\times 2\ 048 encrypted matrix. The CC-MM algorithm requires 85.285.2 seconds to multiply two 4 096×4 0964\ 096\times 4\ 096 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 800800.

Ask Lune

Know where this paper stands in minutes, not an afternoon.

Lune can read the top-tier papers that cite it and the ones closest to it, and tells you what it claims, what came after and where it falls short, each point cited to the paper it comes from. No skimming, no AI slop.

4 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

its abstract · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • MOAI: Module-Optimizing Architecture for Non-Interactive Secure Transformer Inference cites THOR: Secure Transformer Inference with Homomorphic Encryption
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. MOAI: Module-Optimizing Architecture for Non-Interactive Secure Transformer InferenceLinru Zhang, Xiangning Wang, Sim Jun Jie, Zhicong Huang et al.ICLR 2026 · 24 citations
  2. THOR: Secure Transformer Inference with Homomorphic EncryptionJungho Moon, Dongwoo Yoo, Xiaoqian Jiang, Miran KimCCS 2025 · 1 citation
  3. Lodia: Towards Optimal Sparse Matrix-Vector Multiplication for Batched Fully Homomorphic EncryptionJiping Yu, Kun Chen, Xiaoyu Fan, Yunyi Chen et al.CCS 2025
  4. Grafting: Decoupled Scale Factors and Modulus in RNS-CKKSJung Hee Cheon, Hyeongmin Choe, Minsik Kang, Jaehyung Kim et al.CCS 2025

Related papers

  1. Fast Batch Matrix Multiplication in CiphertextsJung Hee Cheon, Minsik Kang, Junho LeeCRYPTO 2026 · 2 citations
  2. 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
  3. Secure Outsourced Matrix Computation and Application to Neural NetworksXiaoqian Jiang, Miran Kim, Kristin E. Lauter, Yongsoo SongCCS 2018 · 359 citations
  4. HETAL: Efficient Privacy-preserving Transfer Learning with Homomorphic EncryptionSeewoo Lee, Garam Lee, Jung Woo Kim, Junbum Shin et al.ICML 2023 · 52 citations
  5. HELiKs: HE Linear Algebra Kernels for Secure InferenceShashank Balla, Farinaz KoushanfarCCS 2023 · 16 citations
Dusk over the sea between two cliffs drawn in fine vertical lines