Accelerating Post-Quantum Cryptography via LLM-Driven Hardware-Software Co-Design
Uses ChatGPT-4o to profile FALCON, pick hotspots, and generate Verilog kernels for a ZCU104 FPGA; LLM-made kernels beat Vitis HLS on speed but use more LUTs/FFs.
Schemes: FALCON, FALCON-512, FALCON-1024, CRYSTALS-Kyber, Dilithium, NewHope
Findings (quotes checked against the source text)
-
LLM-generated modp_montymul kernel reached a 4.805 ns critical path versus 9.646 ns for the HLS design, attributed to deeper pipelining and DSP48E2 mapping.
the LLM design achieved a critical path of 4.805 ns versus
-
On the zint_add_scaled_mul_small kernel, the LLM design achieved a 1.86x speedup where the HLS design ran at 0.723x of the Cortex-A53 software baseline.
achieved a 1.86x speedup for the same function.
-
LLM accelerators traded speed for area: they used more LUTs and FFs than HLS designs, with lower dynamic power.
modp_montymul required 443 flip-flops in the LLM design
-
Each LLM-generated Verilog module needed roughly 15-20 LLM-tool iterations, which the authors use as a coarse proxy for human effort.
required approximately 15–20 LLM–tool iterations, including
-
LLM-based ranking of hotspots matched gprof only partly; the authors conclude profilers remain necessary for runtime validation.
profiling tools remain indispensable for accurately quantifying
-
Constant-time behaviour was only a design intent; no formal constant-time or side-channel verification was performed.
We leave rigorous constant-time verification to future work.
Numbers (as extracted, not quote-checked)
- Max kernel execution-time speedup of LLM accelerators vs HLS (abstract): 2.6x
- Average speedup over Cortex-A53 baseline, LLM-generated accelerators: 1.782x
- Average speedup over Cortex-A53 baseline, HLS-generated accelerators: 1.15x
- Power reduction of LLM designs vs HLS (excluding zint_add_scaled_mul_small): 6.99%
- Average extra LUTs and FFs in LLM designs vs HLS: 31.86%
- LLM-tool iterations per Verilog module: 15-20
For builders
Treat LLM-generated HDL as a fast way to explore FALCON kernel accelerators for a PQ chain's signing hardware, not as a finished or side-channel-vetted design.
Limits
Kernel-level only on one FPGA (ZCU104) with one LLM (ChatGPT-4o), FALCON only; no end-to-end PS-PL measurement and no constant-time or side-channel verification.