[Paper Review] Multiplying boolean Polynomials with Frobenius Partitions in Additive Fast Fourier Transform
This paper presents a new algorithm for multiplying large-degree boolean polynomials using Frobenius partitions within an additive Fast Fourier Transform (FFT) framework. By leveraging high-order elements under the Frobenius map and optimizing with SIMD instructions and memory access patterns, the authors achieve the fastest known software implementation, outperforming prior methods by a factor of two in practical benchmarks.
We show a new algorithm and its implementation for multiplying bit-polynomials of large degrees. The algorithm is based on evaluating polynomials at a specific set comprising a natural set for evaluation with additive FFT and a high order element under Frobenius map of $\mathbb{F}_{2}$. With the high order element, we can derive more values of the polynomials under Frobenius map. Besides, we also adapt the additive FFT to efficiently evaluate polynomials at the set with an encoding process. For the implementation, we reorder the computations in the additive FFT for reducing the number of memory writes and hiding the latency for reads. The algebraic operations, including field multiplication, bit-matrix transpose, and bit-matrix multiplication, are implemented with efficient SIMD instructions. As a result, we effect a software of best known efficiency, shown in our experiments.
Motivation & Objective
- To develop a high-performance software implementation for multiplying large-degree boolean polynomials in $\mathbb{F}_2[x]$.
- To reduce the computational overhead of polynomial multiplication by exploiting Frobenius partitions and additive FFT structures.
- To optimize memory access and utilize SIMD instructions for field operations, bit-matrix transposition, and multiplication.
- To outperform existing implementations in terms of runtime efficiency while maintaining optimal asymptotic complexity.
Proposed method
- The algorithm uses additive FFT to evaluate polynomials at a Frobenius partition $\Sigma = v_{l+m/2} + V_l$, which is tailored for efficient evaluation in $\mathbb{F}_{2^m}$.
- A novel encoding process, 'Encode', accelerates butterfly operations by performing $l_m$ layers as matrix multiplications and truncating redundant results.
- The implementation reorders computations in additive FFT to minimize memory writes and hide memory latency.
- Field multiplication is accelerated using the PCLMULQDQ instruction set, and bit-matrix operations are optimized via SIMD instructions.
- The method exploits the subfield structure of $\mathbb{F}_{2^m}$ to reduce field multiplication costs.
- The Frobenius map is used to generate high-order elements that enable more efficient evaluation points in the transform.
Experimental results
Research questions
- RQ1Can Frobenius partitions be effectively used to improve the efficiency of additive FFT for boolean polynomial multiplication?
- RQ2How can the additive FFT be optimized in practice using memory access reordering and SIMD parallelism?
- RQ3What performance gains can be achieved by combining Frobenius partitions with efficient encoding and field arithmetic?
- RQ4How does the proposed method compare to Kronecker substitution-based approaches in terms of runtime and scalability?
Key findings
- The proposed implementation in $\mathbb{F}_{2^{64}}$ outperforms all prior known implementations, achieving a 2x speedup over Kronecker substitution-based methods.
- The $\mathbb{F}_{2^{64}}$ version is faster than $\mathbb{F}_{2^{128}}$ due to more efficient field multiplication, despite the latter supporting larger polynomial degrees.
- Experimental results show that additive FFT-based algorithms exhibit nearly linear scaling in log-log plots, while multiplicative FFTs show slight deviations due to suboptimal group sizes.
- The Butterfly component, though $O(n)$, dominates runtime in practice, indicating it is a key performance bottleneck.
- The BasisCvt component exhibits the fastest growth in runtime, followed by Butterfly and then Encode, consistent with their theoretical complexity levels.
- The implementation achieves the best known efficiency in practice, with measured running times significantly lower than previous state-of-the-art libraries like gf2x and bitpolymul2.
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.