ESPM-D: Efficient Sparse Polynomial Multiplication for Dilithium on ARM Cortex-M4 and Apple M2
Optimizes sparse challenge-polynomial multiplication in Dilithium for ARM Cortex-M4 (stack-focused, DSP) and Apple M2 (NEON), reporting speedups over NTT baselines.
Schemes: Dilithium, ML-DSA, NTT
Findings (quotes checked against the source text)
-
Index-based sparse multiplication of the challenge polynomial with branchless traversal outperforms the state-of-the-art small-modulus NTT on Cortex-M4 for Dilithium2 and Dilithium3.
We obtain speedups in Dilithium2 and Dilithium3 parameters of 30% and 11% compared to small-modulus NTT in [18].
-
On Apple M2, sparse multiplication with 8-bit storage and NEON gives 16-way parallelism and 33% to 55% speedup over NTT for cs1 and cs2.
The sparse polynomial multiplication technique achieves a performance improvement ranging from 33% to 55% compared to NTT technology in polynomial vector multiplication.
-
Storing Dilithium3 sparse coefficients in 8-bit integers yields correct signatures only with probability about 2^-36 per signature, so the modified Dilithium3 is limited to roughly 2^36 signatures.
When utilizing 8-bit signed integer variables to store the coefficients of c, we can produce accurate signatures up to 236 times, which is deemed acceptable for certain embedded IoT scenarios.
-
Signing speed on Cortex-M4 improves only 0.4% to 0.8% over prior best, and the Dilithium5 sparse multiplication is slightly slower than small-modulus NTT.
However, in Dilithium5, our implementation is slightly slower than the small-modulus NTT in [18].
-
On Apple M2, the optimized signing takes 10% to 11% fewer cycles than the prior NEON NTT implementation.
Our optimized implementation utilizing sparse polynomial multiplication achieves an improvement of 10% to 11% in the signing performance of the scheme.
Numbers (as extracted, not quote-checked)
- Cortex-M4 Dilithium2 sign speed, ours (cycles, 10000 iterations): 3608493
- Cortex-M4 Dilithium2 sign stack reduction vs [18]: 10.8% (49372 B to 44044 B)
- Apple M2 Dilithium2 sign cycles, ours vs [6]: 201449 vs 224666
- Probability Dilithium3 8-bit coefficient overflow per signature: approx. 1.7e-11 (about 2^-36)
For builders
Sparse challenge-polynomial multiplication is a sound speedup for Dilithium signing on embedded and ARM targets, but Dilithium3 8-bit storage trades a small per-signature failure probability for speed, so keep NTT for high-volume signing.
Limits
Benchmarks only on STM32F407 and MacBook Air 2022 (Apple M2) with specific compilers; gains are modest on Cortex-M4 and the 8-bit Dilithium3 variant is not standard ML-DSA; no security analysis of implementations.