KD-Finder: A Karatsuba Decomposition Optimization Finder for NTT-Friendly Montgomery Modular Multiplication
Abstract
Fully homomorphic encryption (FHE) allows operations to be performed directly on encrypted data, and has attracted massive attention in data security scenarios. Numerous resource efficient FHE acceleration methods have been proposed, including many on the optimization of modular multiplication (MM), a fundamental operation in FHE, by leveraging Karatsuba multiplication and NTT-friendly moduli for Montgomery MM (MMM). However, FHE is not yet practical due to its significant resource overheads. In this paper, we report an automated Karatsuba decomposition search strategy that drastically improves the efficiency of MM implementation. Our key idea is to integrate NTT-friendly moduli into Karatsuba decomposition within parallel MMM, and incorporate optimization features such as truncated multiplication ⌊<italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">AB/R</i>⌋ and modular multiplication <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">AB</i> mod <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">R</i>. After a careful analysis on the optimization space, we propose an automated Karatsuba decomposition optimization search algorithm based on a greedy strategy to enhance efficiency and effectiveness. Theoretical analysis shows that, under the mainstream NTT-friendly modulus conditions, the optimized 2, 3, 4-term Karatsuba decomposition schemes achieve an average area reduction of 18% for MMM over the basic Karatsuba method and 57% over the classical Schoolbook method. Furthermore, hardware implementations on FPGA demonstrate 29% to 79% improvement, with an average of 59%, in Area/Throughput compared to the state-of-the-art implementations.
BibTeX
@article{huang2026kd,
author = {Yicheng Huang and Xueyan Wang and Shicheng Ma and Song Bian and Meng Li and Gang Qu},
title = {{KD-Finder: A Karatsuba Decomposition Optimization Finder for NTT-Friendly Montgomery Modular Multiplication}},
journal = {IEEE Trans. Comput. Aided Des. Integr. Circuits Syst.},
year = {2026},
doi = {10.1109/tcad.2025.3634196},
}Ask Althea to put this paper to the test.
Loading related content...