The Matrix Reloaded: Multiplication Strategies in FrodoKEM
Benchmarks naive cubic versus Strassen matrix multiplication for FrodoKEM's Z_q matrix products, proposing row-wise blocking and packing that doubles matrix-multiply speed.
Schemes: FrodoKEM, RWCF, Strassen
Findings (quotes checked against the source text)
-
A row-wise blocking and packing approach (RWCF) improves over the state-of-the-art FrodoKEM matrix multiplication, giving a factor two speed-up for that operation.
Our results show that for the proposed parameter sets of FrodoKEM we can improve over the state-of-the-art implementation with a row-wise blocking and packing approach, denoted as RWCF in the following.
-
The matrix-multiplication improvements reduce full FrodoKEM decapsulation time by up to 22 percent.
The impact of these improvements on the full decapsulation operation is up to 22 percent.
-
For batched use, Strassen multiplication can be the best choice from batch size 8 upwards.
We additionally show that for batching use-cases, where many inputs are processed at once, the Strassen approach can be the best choice from batch size 8 upwards.
-
At batch size 128, Strassen gives a 5 to 11 percent speed-up over RWCF, and the gain grows with batch size.
For a practically-relevant batch size of 128 inputs the observed speed-up is in the range of 5 to 11 percent over using the efficient RWCF approach and this speed-up grows with the batch size.
Numbers (as extracted, not quote-checked)
- FrodoKEM matrix multiplication speed-up with RWCF: factor two
- FrodoKEM decapsulation speed-up from improved multiplication: up to 22 percent
- Strassen batch size threshold: 8 and up
- Strassen speed-up at batch size 128 over RWCF: 5 to 11 percent
For builders
If a PQ chain uses FrodoKEM for batched key exchange, implement blocked/packed matrix multiplication and consider Strassen only at larger batch sizes.
Limits
Based on the ePrint abstract only; full-text benchmarks, platforms, and parameter details were not reviewed, and the work covers only FrodoKEM, not signatures or chain design.
Topics: kem implementation-sidechannel benchmarks