ConvKyber: Unleashing the Power of AI Accelerators for Faster Kyber with Novel Iteration-based Approaches
Accelerates Kyber's NTT and full KEM on NVIDIA Tensor Cores by recasting NTT as matrix multiplications and using assembly-level Tensor Core control.
Schemes: Kyber, ML-KEM
Findings (quotes checked against the source text)
-
Recasting Kyber's NTT as iterative matrix multiplications reduces cost by about 75% versus state-of-the-art scanning-based methods.
resulting in approximately a 75% reduction in costs compared to the state-of-the-art scanning-based methods.
-
Assembly-level control of Tensor Cores avoids standard interfaces, eliminating memory accesses and redundant function calls.
we precisely manipulate the internal resources of Tensor Cores using assembly-level code instead of inefficient standard interfaces, eliminating memory accesses and redundant function calls.
-
The work provides a complete Kyber implementation covering all parameter sets, exceeding prior Tensor Core based work.
Finally, building upon our highly optimized NTT, we provide a complete implementation for all parameter sets of Kyber.
-
Kyber-1024 on R3080 achieves 1.93x speedup for polyvec_ntt and 3.55x for Dec over prior Tensor Core work.
achieving remarkable speed-ups of 1.93x, 1.65x, 1.22x and 3.55x for polyvec_ntt, KeyGen, Enc and Dec in Kyber-1024, respectively.
-
Throughput-oriented full Kyber-1024 implementation keeps execution latency acceptable, ranging 1.02 to 5.68 ms at peak throughput.
the execution latency ranges from 1.02 to 5.68 milliseconds for Kyber-1024 on R3080 when achieving the peak throughput.
Numbers (as extracted, not quote-checked)
- NTT cost reduction vs. state-of-the-art scanning-based methods: approximately 75%
- Kyber-1024 polyvec_ntt speedup vs. prior Tensor Core work: 1.93x
- Kyber-1024 KeyGen speedup vs. prior Tensor Core work: 1.65x
- Kyber-1024 Enc speedup vs. prior Tensor Core work: 1.22x
- Kyber-1024 Dec speedup vs. prior Tensor Core work: 3.55x
- Kyber-1024 execution latency at peak throughput on R3080: 1.02 to 5.68 milliseconds
For builders
If your chain runs Kyber/ML-KEM on servers, GPU Tensor Core NTT can raise throughput, but it is not a signature scheme and says nothing about on-chain verification.
Limits
Abstract-only read; results are GPU throughput on an R3080 with latency trade-offs; no signature, hash, or chain-level analysis; side-channel and constant-time properties not assessed.
Topics: kem implementation-sidechannel benchmarks