[Paper Review] Faster Multiplication for Long Binary Polynomials
This paper presents a faster method for multiplying long binary polynomials over GF(2) by leveraging an optimized additive FFT (LCH FFT) combined with tower field constructions and SIMD instructions. The approach reduces computation time by ~40% for polynomials of 2^28 and 2^29 bits compared to prior multiplicative FFT methods, primarily due to lower multiplicative complexity and efficient subfield multiplication using VPSHUFB instructions.
We set new speed records for multiplying long polynomials over finite fields of characteristic two. Our multiplication algorithm is based on an additive FFT (Fast Fourier Transform) by Lin, Chung, and Huang in 2014 comparing to previously best results based on multiplicative FFTs. Both methods have similar complexity for arithmetic operations on underlying finite field; however, our implementation shows that the additive FFT has less overhead. For further optimization, we employ a tower field construction because the multipliers in the additive FFT naturally fall into small subfields, which leads to speed-ups using table-lookup instructions in modern CPUs. Benchmarks show that our method saves about $40 \%$ computing time when multiplying polynomials of $2^{28}$ and $2^{29}$ bits comparing to previous multiplicative FFT implementations.
Motivation & Objective
- To improve the efficiency of long binary polynomial multiplication in GF(2)[x], a fundamental operation in cryptography and number theory.
- To overcome the performance limitations of previous multiplicative FFT-based algorithms in large-degree polynomial multiplication.
- To demonstrate that modern additive FFTs, particularly the LCH FFT variant, outperform traditional multiplicative FFTs in practice when combined with hardware-optimized subfield arithmetic.
- To exploit CPU-level parallelism via SIMD instructions (e.g., VPSHUFB) to accelerate subfield multiplications within the additive FFT framework.
Proposed method
- Adopt the LCH FFT algorithm, a generalized additive FFT variant with a regular butterfly structure that simplifies implementation and reduces overhead.
- Construct a tower field representation over subfields (e.g., F_{2^32}, F_{2^128}) to enable efficient multiplication using table-lookup instructions like VPSHUFB.
- Use SIMD instructions to perform multiple 8-bit field multiplications in parallel, reducing the cost per multiplication in subfields.
- Optimize the basis conversion between standard and tower field representations to minimize performance penalties.
- Implement the algorithm in C with hand-tuned assembly considerations, targeting modern x86-64 CPUs with AVX-512 support for future scalability.
- Profile and tune the algorithm across different polynomial sizes, focusing on the 2^28 and 2^29 bit regimes where performance gains are most pronounced.
Experimental results
Research questions
- RQ1Can additive FFTs outperform multiplicative FFTs in practice for large-degree binary polynomial multiplication, despite similar theoretical complexity?
- RQ2How does the use of tower field constructions and subfield arithmetic affect the performance of additive FFT-based multiplication?
- RQ3To what extent can SIMD instructions like VPSHUFB reduce the cost of field multiplications in the additive FFT pipeline?
- RQ4What is the relative cost distribution across components (basis conversion, butterfly, point multiplication, representation change) in the optimized additive FFT multiplier?
- RQ5Can the performance gap between additive and multiplicative FFTs be reversed through algorithmic and low-level optimization?
Key findings
- The proposed additive FFT-based multiplication achieves a 40% reduction in runtime for polynomials of 2^28 and 2^29 bits compared to previous multiplicative FFT implementations.
- The LCH FFT variant enables a more regular butterfly structure, reducing algorithmic overhead and improving performance over earlier additive FFTs.
- Subfield multiplication using VPSHUFB instructions reduces the average cost per multiplication to less than 2 VPSHUFB operations per 128-bit word, compared to 5 PCLMULQDQ instructions in standard F_{2^128}.
- The cost of basis conversion is reduced in the F_{2^256} tower field due to better memory alignment and access patterns.
- The profile analysis shows that the butterfly process and point multiplication dominate the cost, but subfield optimization yields a net performance gain despite increased representation change cost.
- Future AVX-512 support is expected to further accelerate the algorithm, though a two-fold speedup is unlikely.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.