FHE-Agent: Automating CKKS Configuration for Practical Encrypted Inference via an LLM-Guided Agentic Framework
Nuo Xu, Zhaoting Gong, Ran Ran, Jinwei Tang, Wujie Wen, Caiwen Ding

TL;DR
FHE-Agent automates the complex configuration of CKKS encryption parameters for practical encrypted inference by integrating an LLM-guided agentic framework, improving efficiency and feasibility over traditional heuristic methods.
Contribution
The paper introduces FHE-Agent, a novel framework combining LLMs and deterministic tools to automate CKKS configuration, enabling practical encrypted inference for complex neural networks.
Findings
FHE-Agent achieves better precision and lower latency than naive search methods.
It automatically finds feasible, secure configurations for complex models where previous heuristics fail.
The framework effectively decomposes parameter tuning into global and layer-wise steps.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsCryptography and Data Security · Cryptographic Implementations and Security · Security and Verification in Computing
