arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2511.18653cs.CRcs.AIcs.LG
收藏

FHE-Agent:通过LLM引导的代理框架自动化CKKS配置以实现实用的加密推断

FHE-Agent: Automating CKKS Configuration for Practical Encrypted Inference via an LLM-Guided Agentic Framework

University of Minnesota -- Twin Cities(明尼苏达大学-双城分校);North Carolina State University(北卡罗来纳州立大学)

Nuo Xu, Zhaoting Gong, Ran Ran, Jinwei Tang, Wujie Wen, Caiwen Ding

AI总结:

FHE-Agent通过LLM引导的代理框架自动化CKKS配置,提升加密推断的精度与效率

摘要:

全同态加密(FHE),特别是CKKS方案,是隐私保护MLaaS的有前途的使能者,但其实际部署面临一个阻碍性的障碍:它严重依赖领域专业知识。配置CKKS涉及一个紧密耦合的环尺寸空间、模数链和打包布局空间。没有深厚的密码学知识来导航这些交互,实践者被限制在依赖固定启发式的编译器中。这些“一次性”工具往往发出过于严格的延迟配置或完全无法找到更深层网络的可行解决方案。我们提出了FHE-Agent,一个代理框架,自动化这一专家推理过程。通过将大型语言模型(LLM)控制器与确定性工具套件耦合,FHE-Agent将搜索分解为全局参数选择和逐层瓶颈修复。代理在多保真度工作流中运行,利用廉价的静态分析修剪无效区域,并将昂贵的加密评估保留给最有希望的候选者。我们将在Orion编译器上实例化FHE-Agent,并在标准基准(MLP、LeNet、LoLa)和更深层架构(AlexNet)上评估它。FHE-Agent在精度和延迟方面都优于朴素的搜索策略。关键的是,它自动发现可行的128位安全配置,这些配置在基线启发式和一次性提示失败时无法产生有效设置。

英文摘要:

Fully Homomorphic Encryption (FHE), particularly the CKKS scheme, is a promising enabler for privacy-preserving MLaaS, but its practical deployment faces a prohibitive barrier: it heavily relies on domain expertise. Configuring CKKS involves a tightly coupled space of ring dimensions, modulus chains, and packing layouts. Without deep cryptographic knowledge to navigate these interactions, practitioners are restricted to compilers that rely on fixed heuristics. These "one-shot" tools often emit rigid configurations that are either severely over-provisioned in latency or fail to find a feasible solution entirely for deeper networks. We present FHE-Agent, an agentic framework that automates this expert reasoning process. By coupling a Large Language Model (LLM) controller with a deterministic tool suite, FHE-Agent decomposes the search into global parameter selection and layer-wise bottleneck repair. The agents operate within a multi-fidelity workflow, pruning invalid regimes using cheap static analysis and reserving expensive encrypted evaluations for the most promising candidates. We instantiate FHE-Agent on the Orion compiler and evaluate it on standard benchmarks (MLP, LeNet, LoLa) and deeper architectures (AlexNet). FHE-Agent consistently achieves better precision and lower latency than naïve search strategies. Crucially, it automatically discovers feasible, 128-bit secure configurations for complex models where baseline heuristics and one-shot prompts fail to produce a valid setup.

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

↑