arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.15916cs.CRcs.AR
收藏

ALLMod:通过混合工作负载探索基于查找表的大数模约简的面积效率

ALLMod: Exploring $\underline{\mathbf{A}}$rea-Efficiency of $\underline{\mathbf{L}}$UT-based $\underline{\mathbf{L}}$arge Number $\underline{\mathbf{Mod}}$ular Reduction via Hybrid Workloads

Fangxin Liu, Haomin Li, Zongwu Wang, Bo Zhang, Mingzhe Zhang, Shoumeng Yan, Li Jiang, Haibing Guan

AI总结:

ALLMod提出一种混合工作负载分割方法,提升基于查找表的大数模约简的面积效率,在128位和8192位下分别实现1.65倍和3倍的面积效率提升。

摘要:

模运算,特别是模约简,广泛应用于同态加密(HE)和零知识证明(ZKP)等密码学应用中。高位宽运算对于增强安全性至关重要;然而,由于需要大量模运算,它们计算密集。基于查找表(LUT-based)的方法是一种“以空间换时间”的技术,通过将输入数字分割成较小的位组,预先计算每个位组的模约简结果,并将这些结果存储在查找表中,从而减少计算负载。虽然有效,但该方法因大量使用查找表而带来显著的硬件开销。在本文中,我们介绍了ALLMod,一种通过采用混合工作负载来提高基于查找表的大数模约简面积效率的新方法。受迭代方法的启发,ALLMod将位组分割为两个不同的工作负载,在不牺牲吞吐量的情况下实现更低的面积成本。我们首先开发一个模板以促进工作负载分割并确保均衡分配。然后,我们进行设计空间探索,以评估融合工作负载结果的最佳时机,从而能够在特定约束下识别最有效的设计。大量评估表明,对于128位和8192位的位宽,ALLMod在面积效率上分别比传统基于查找表的方法提高了高达1.65倍和3倍。

英文摘要:

Modular arithmetic, particularly modular reduction, is widely used in cryptographic applications such as homomorphic encryption (HE) and zero-knowledge proofs (ZKP). High-bit-width operations are crucial for enhancing security; however, they are computationally intensive due to the large number of modular operations required. The lookup-table-based (LUT-based) approach, a ``space-for-time'' technique, reduces computational load by segmenting the input number into smaller bit groups, pre-computing modular reduction results for each segment, and storing these results in LUTs. While effective, this method incurs significant hardware overhead due to extensive LUT usage. In this paper, we introduce ALLMod, a novel approach that improves the area efficiency of LUT-based large-number modular reduction by employing hybrid workloads. Inspired by the iterative method, ALLMod splits the bit groups into two distinct workloads, achieving lower area costs without compromising throughput. We first develop a template to facilitate workload splitting and ensure balanced distribution. Then, we conduct design space exploration to evaluate the optimal timing for fusing workload results, enabling us to identify the most efficient design under specific constraints. Extensive evaluations show that ALLMod achieves up to $1.65\times$ and $3\times$ improvements in area efficiency over conventional LUT-based methods for bit-widths of $128$ and $8,192$, respectively.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑