Fast polynomial multiplication using matrix multiplication accelerators with applications to NTRU on Apple M1/M3 SoCs
Repurposes Apple's undocumented AMX matrix coprocessor to speed up polynomial multiplication and NTRU keygen, encapsulation and decapsulation on M1/M3 chips.
Schemes: NTRU, AMX
Findings (quotes checked against the source text)
-
Repurposing Apple's AMX matrix coprocessor for polynomial multiplication sets new speed records for NTRU on Apple M1 and M3 SoCs.
Our work repurposes AMX to implement polynomial multiplication and applies it to the NTRU cryptosystem, setting new speed records on the Apple M1 and M3 systems-on-chip (SoCs)
-
Polynomial multiplication is sped up 1.54-3.07x over the previous state of the art on Apple M1/M3.
polynomial multiplication, key generation, encapsulation and decapsulation are sped up by $1.54$-$3.07\times$, $1.08$-$1.33\times$, $1.11$-$1.50\times$ and $1.20$-$1.98\times$, respectively, over the previous state-of-the-art.
-
CPUs lack specialized instructions for lattice-based PQC polynomial multiplication, motivating use of existing matrix accelerators.
As PQC standards only recently started to emerge, CPUs still lack specialized instructions to accelerate such routines.
Numbers (as extracted, not quote-checked)
- Polynomial multiplication speedup over previous state of the art: 1.54-3.07x
- Key generation speedup over previous state of the art: 1.08-1.33x
- Encapsulation speedup over previous state of the art: 1.11-1.50x
- Decapsulation speedup over previous state of the art: 1.20-1.98x
For builders
If targeting Apple silicon for a PQ chain client, NTRU KEM performance can benefit from AMX, but this is a KEM speed result, not a signature or chain-design result.
Limits
Based on ePrint abstract only (full text not read); relies on undocumented Apple AMX hardware, and covers NTRU KEM rather than signatures or blockchain use.
Topics: kem implementation-sidechannel benchmarks