Conceptio › Archive › arXiv CS
arXiv CS open access

On the Additive FFT Techniques over Binary Extension Fields

2026 · arxiv_cs
arXiv CS · Papers · 2026
Open Source ↗Direct PDF ↓
cryptographycybersecurityprivacysecurity
Conceptio Open Archive

Analyze & explore related research in Conceptio

Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.

On the Additive FFT Techniques over Binary Extension Fields

arXiv:2608.20855v1 [cs.CR] 21 Aug 2026

Susanta Samanta, Mohammadtaghi Badakhshan, and Guang Gong

Abstract The Bailey’s four-step FFT algorithm (1989) organizes a large Fourier transform into independent column FFTs, a diagonal twiddle-factor multiplication, and independent row FFTs. This decomposition can expose parallelism, improve memory locality, and support hierarchical implementations. Motivated by Bailey’s matrix formulation, we develop additive FFT techniques for polynomial evaluation over affine subspaces of binary extension fields. Our key insight is that the Taylor expansion with respect to vanishing polynomials of subspaces provides a structural counterpart to Bailey’s matrix formulation. It decomposes an additive FFT (AFFT) into independent sub-AFFTs associated with the columns and rows of a matrix. Based on this framework, we first present a general-basis AFFT that applies to any ordered basis and any split of the dimension, providing a unified baseline for measuring the gains from specialization. We then specialize the framework to the Cantor special basis and obtain two AFFT algorithms. The first supports an arbitrary decomposition of the AFFT dimension and exploits the Cantor special basis structure to perform the Taylor expansion stage without finite field multiplications. The second uses a decomposition that preserves the binomial form of the relevant subspace polynomials. It requires exactly 12 n log2 n multiplications, together with a closed-form addition count determined by the binary representation of m. Our implementation results show that this algorithm is faster than the LCH AFFT over a Cantor special basis in 37 of the 42 configurations tested across two hardware platforms. This performance advantage stems from its fully recursive structure, which provides memory locality by design and avoids separate basis-conversion and evaluation stages. We further generalize the butterfly phase of the LCH additive FFT in the novel polynomial basis to support an arbitrary decomposition of the AFFT dimension, while retaining n log2 n additions and 21 n log2 n multiplications independently of the split. Finally, in a separate analysis, we formalize the notion of partial Cantor special bases and identify parameter regimes in which both the von zur Gathen–Gerhard algorithm and our general-basis AFFT require fewer additions and multiplications than the first Gao–Mateer algorithm. Notably, the range of parameters for which our general-basis AFFT provides this improvement is substantially wider than that for the von zur Gathen–Gerhard algorithm. Index Terms Polynomial evaluation, FFT, binary extension field, affine subspace, vanishing polynomial, additive FFT, arithmetic complexity, Taylor expansion. S. Samanta and G. Gong are with the Department of Electrical and Computer Engineering, University of Waterloo, Waterloo, ON N2L 3G1, Canada (e-mail: ssamanta@uwaterloo.ca; ggong@uwaterloo.ca). M. Badakhshan is with LayerZero Labs (e-mail: mtbadakhshan@gmail.com).

1

I. I NTRODUCTION Evaluating a polynomial of degree less than n at n distinct points, commonly called multipoint evaluation, is a central computational primitive across coding theory, cryptography, and signal processing. In the classical discrete Fourier transform (DFT) over a field that contains a primitive nth root of unity ω, the evaluation domain consists of the consecutive powers 1, ω, . . . , ω n−1 . When n is a smooth integer, the Cooley–Tukey fast Fourier transform (FFT) [1] carries out this evaluation in O(n log n) arithmetic operations by leveraging the multiplicative structure inherent in the roots of unity. From an algebraic perspective, the divide-and-conquer structure of the Cooley–Tukey algorithm corresponds to iterated factorizations of the polynomial xn − 1. Specifically, given a decomposition  Qn2 −1 n1 n = n1 n2 , one writes xn − 1 = j=0 x − ω jn1 . Under this interpretation, the input polynomial is reduced modulo each factor, and the resulting remainders are then recursively reduced modulo further subfactors until only linear terms of the form x − ω i remain. Because the remainder of a polynomial f (x) upon division by x − ω i equals the evaluation f (ω i ), the final set of residues yields exactly the desired point evaluations. Over a binary extension field F2k , however, the evaluation points of interest form an affine subspace of F2k rather than a multiplicative subgroup. Since the multiplicative group F⋆2k has odd order 2k − 1, it contains no nontrivial elements of even order. In particular, it cannot provide the roots of unity required for a classical DFT of length n = 2m . Additive fast Fourier transforms (AFFTs) overcome this obstruction by exploiting the additive structure of the evaluation domain. Let Wm = ⟨β0 , β1 , . . . , βm−1 ⟩ ⊆ F2k be an m-dimensional subspace of F2k and let θ ∈ F2k . Given a polynomial f (x) ∈ F2k [x] of degree less than n = 2m , the corresponding additive DFT evaluates f at all points of the affine subspace θ + Wm . An AFFT computes these evaluations efficiently by exploiting the additive structure of Wm . Additive FFTs can be used in zero-knowledge succinct non-interactive arguments of knowledge (zkSNARKs) over binary extension fields. A zkSNARK enables a prover to convince a verifier that it knows a witness w satisfying a statement x, using a proof that is succinct, efficiently verifiable, non-interactive, and zero-knowledge; that is, the proof reveals no information about w beyond the validity of the statement x. Such protocols typically reduce the computation to polynomial relations and require the prover to interpolate and evaluate the resulting polynomials over large affine subspaces. These operations are precisely the tasks addressed by additive FFTs and can account for a substantial portion of the prover’s running time. Examples of such protocols include Ligero [2], STARK [3], Aurora [4], Fractal [5], and Polaris [6]. They also enable fast encoding and decoding of Reed–Solomon codes [7]– [10] and fast multiplication of binary polynomials [11]–[13]. The performance of these applications depends not only on the exact numbers of additions and multiplications, but also on the choice of polynomial basis and the overhead incurred by basis conversions. For example, in [14], the authors show that, when integrated into the Aurora prover, their optimized Cantor algorithm outperforms the LCH algorithm for smaller inputs. The slower performance of the LCH-based implementation is likely attributable to the memory-access overhead associated with basis conversion. This comparison illustrates that the interaction between an FFT algorithm and the underlying protocol structure can substantially affect overall system efficiency, beyond what standalone benchmarks capture. The concept of the AFFT emerged in the late 1980s. It was first introduced by Wang and Zhu in 1988 [15],

2

followed independently by Cantor in 1989 [16]. These methods focus on evaluating polynomials at the roots of the vanishing polynomial associated with a given subspace or affine subspace. In his work [16], Cantor proposed an FFT algorithm for evaluating a polynomial f (x) of degree less than n = 2m over an m-dimensional affine subspace of the field (or subfield) F2k , where k = 2ℓ for some ℓ. Later, von zur Gathen and Gerhard [17] extended this approach to support any arbitrary k, though this generalization resulted in increased computational complexity. Gao and Mateer [18] later introduced two alternative additive FFT algorithms based on Taylor expansion. Their first algorithm, applicable to arbitrary values of k, demonstrated improved efficiency compared to the method proposed by von zur Gathen and Gerhard. The second algorithm, designed for AFFT of length 2m (where m is a power of 2), maintained the same number of multiplications as Cantor’s approach but optimized the number of additions. In 2014, Lin et al. [8] introduced a novel polynomial basis constructed using subspace polynomials over F2k for FFT computations. Their evaluation method processes polynomial coefficients in the LCH basis, achieving a complexity of O(n log n) for both additions and multiplications. The algorithmic advantages of this novel polynomial basis were initially showcased through fast encoding and decoding algorithms for Reed–Solomon codes, which were subsequently refined in [9], [10]. Further in [10], Lin et al. tackled the problem of converting between the LCH and monomial bases. When the subspace Wm is generated by a Cantor special basis, their algorithms perform this conversion using O(n log n log log n) additions and no multiplications, with further refinements presented in [19]. These methods have been applied to fast binary polynomial multiplication [11]–[13]. The Cantor special basis also plays a key role in optimizing other AFFTs. For instance, the second FFT algorithm by Gao and Mateer [18], designed for lengths n = 2m with m = 2t for some t, requires only 12 n log n multiplications. Moreover, when the first Gao–Mateer algorithm is implemented using a Cantor basis, the polynomial-scaling operation required in the general basis setting can be avoided at each recursive step [14], [20]. The lack of sufficiently smooth roots of unity has also motivated FFT-like algorithms over alternative algebraic evaluation domains. The elliptic-curve FFT (ECFFT) [21] constructs evaluation sets from suitable cosets of ellipticcurve subgroups and uses isogenies of smooth degree to obtain the recursive maps underlying the transform. The circle FFT [22] instead evaluates functions on the circle curve x2 + y 2 = 1 over suitable finite fields. More generally, the G-FFT of Li and Xing [23] derives FFT algorithms from automorphism subgroups of the rational function field Fq (x). Its affine-group instances recover the multiplicative and additive FFT settings, corresponding to smooth transform lengths dividing q − 1 and q, respectively, while non-affine cyclic subgroups yield transforms for smooth lengths dividing q + 1. These constructions enlarge the range of algebraic domains that support FFTlike computations. Their fastest bounds rely on polynomial bases adapted to the relevant subgroup or recursive algebraic structure. In particular, the affine G-FFT applied directly to polynomials in the standard monomial basis has complexity O(n log2 n). In this work, we restrict our attention to the direct evaluation of polynomials represented in the standard monomial basis over affine F2 -subspaces of binary extension fields. Our Contributions: This paper develops an additive counterpart of the Bailey’s four-step FFT [24] for polynomial evaluation. The central observation is that a Taylor expansion with respect to a subspace vanishing polynomial provides the algebraic decomposition needed to organize an AFFT into independent column and row transforms. More precisely, for a decomposition m = m1 + m2 , the Taylor coefficients are arranged in a 2m2 × 2m1

3

matrix, after which the evaluation is completed by independent column AFFTs followed by independent row AFFTs. The resulting matrix decomposition provides a unified framework for the algorithms developed in this paper. At the general-basis level, it supports an arbitrary dimension split and thereby permits the dimensions of the column and row sub-AFFTs to be selected according to the computational architecture. Its specialization to a Cantor special basis leads to Algorithms 3 and 4. The arithmetic costs of the proposed algorithms and the existing Gao–Mateer [18], LCH [8], [9], and Cantor AFFTs [16] are summarized in Table I. In addition, the freedom provided by the general framework allows Algorithm 1 to benefit from an available partial Cantor special basis, yielding parameter regimes in which it outperforms the first Gao–Mateer algorithm. The main contributions are as follows. 1) A general-basis AFFT with an arbitrary dimension split. We present an AFFT (Algorithm 1), an additive counterpart of the Bailey’s four-step FFT, for polynomial evaluation over an affine subspace generated by any ordered basis. For any decomposition m = m1 + m2 , the algorithm first computes the Taylor expansion of the input polynomial with respect to the subspace vanishing polynomial ZWm1 (x), arranges the resulting coefficients in a matrix, and then performs independent column and row AFFTs. We prove that, for n = 2m , the algorithm requires 41 n(log2 n)2 + 34 n log2 n additions and the same number of multiplications, independently of the choice of m1 and m2 . In the general-basis setting, its addition count matches that of the first Gao–Mateer algorithm [18], although its multiplication count is asymptotically higher by a factor of O(log n). Nevertheless, the Bailey-style matrix decomposition provides Algorithm 1 several structural and practical advantages. In particular, its split-invariant complexity permits the dimensions of the column and row sub-AFFTs to be selected according to implementation considerations, including parallelism, cache utilization, and memory organization, without changing the arithmetic cost. Moreover, its uniform matrix-decomposition structure serves as the common foundation for the specializations to Cantor special basis (Algorithms 3 and 4), whose operation counts are competitive with those of the best known AFFTs (see Section IV). 2) A specialization for a Cantor special basis. We specialize the matrix-decomposition framework to affine subspaces generated by a Cantor special basis. In this setting, the coefficients of the relevant subspace vanishing polynomials lie in F2 , so the Taylor expansion stage requires no finite field multiplications. Algorithm 3 allows any split m = m1 + m2 , whereas Algorithm 4 recursively chooses m1 as the largest power of two smaller than m to preserve the binomial form of the vanishing polynomial and reduce additions. Both algorithms requires exactly 12 n log2 n multiplications, they differ in splitting flexibility and addition cost. For Algorithm 4, Theorem 3 gives a closed-form addition count determined by the binary representation of m; when m is a power of two, it becomes n log2 n + 14 n log2 n log2 log2 n. Unlike the LCH AFFT [9], this algorithm evaluates a polynomial given directly in the standard monomial basis, avoiding the memory-access overhead of the basis conversion. Its fully recursive structure, together with the uniform Taylor-expansion pattern shared by subproblems, also provides memory locality and predictable memory-access patterns by design, thereby reducing memory-access overhead. Our implementation results (Table IV) show that the algorithm outperforms the LCH AFFT over a Cantor special basis in 37 of the 42 configurations tested across two hardware platforms. Moreover, it is faster than the LCH AFFT for every tested dimension on one of the two platforms.

4

3) An analysis of AFFTs over partial Cantor special bases. We formalize the notion of a partial Cantor special basis, in which only a prefix of dimension ℓ ≤ m of the ordered basis satisfies the Cantor recursion. We show that this partial structure reduces the addition and multiplication counts of both the von zur Gathen–Gerhard AFFT [17] and our proposed Algorithm 1. By contrast, the first Gao–Mateer algorithm [18] cannot benefit from the same advantage because its evaluation basis changes during the recursion. We derive the corresponding operation counts and find that the two resulting regimes of very different width. The requirement ℓ ≥ m − 2 of Theorem 5 leaves the von zur Gathen and Gerhard AFFT with only two admissible values of m in a given field, whereas Theorems 6 and 7 keep Algorithm 1, with m1 = ℓ, ahead of the first Gao–Mateer AFFT over substantially wider ranges. For example, over F248 with m1 = 16, it outperforms the first Gao–Mateer AFFT for all nine dimensions 17 ≤ m ≤ 25 (Table III). 4) A generalized butterfly phase for the LCH AFFT. We formulate the butterfly phase of the LCH AFFT [9] in the novel polynomial basis for an arbitrary decomposition m = m1 + m2 . We prove in Theorem 4 that for every such decomposition, the generalized butterfly phase requires exactly n log2 n additions and 21 n log2 n multiplications. Thus, its arithmetic complexity is independent of the chosen decomposition. Organization of the Paper: The remainder of this paper is organized as follows. Section II reviews the algebraic preliminaries required for the proposed AFFT techniques. Section III presents an AFFT over a general ordered basis using the Taylor expansion-based matrix decomposition and analyzes its arithmetic complexity. Section IV specializes this framework to a Cantor special basis and derives the corresponding operation counts. Section V generalizes the butterfly phase of the LCH AFFT in the novel polynomial basis to an arbitrary decomposition of the dimension. Section VI studies AFFTs over partial Cantor special bases and identifies the parameter regimes in which the von zur Gathen–Gerhard algorithm and our general basis AFFT outperform the first Gao–Mateer algorithm. Section VII describes our implementation and reports benchmark results, including a performance comparison with the LCH AFFT. Finally, Section VIII concludes the paper. II. P RELIMINARIES In this section, we collect the algebraic tools required by our algorithms. Let F2k be the finite field of order 2k . We know that there exists a vector space isomorphism from F2k to Fk2 defined by x = (x0 β0 +x1 β1 +· · ·+xk−1 βk−1 ) 7→ (x0 , x1 , . . . , xk−1 ), where {β0 , β1 , . . . , βk−1 } is a basis of F2k . The polynomial ring over F2k in the variable x is denoted by F2k [x]. An m-dimensional subspace of F2k , equivalently an m-dimensional F2 -vector space is a subset Wm = ⟨β0 , . . . , βm−1 ⟩ =

X m−1

ci βi : ci ∈ {0, 1}

i=0

We order the elements of the subspace Wm by {η0 = 0, η1 , η2 , . . . , η2m −1 } where ηj =

m−1 X

xi βi

and

j=

i=0

m−1 X

xi 2i , xi ∈ {0, 1}.

i=0

Thus, we have |Wm | = 2m . For θ ∈ F2k , we call the set θ + W = {θ + w : w ∈ W } a m-dimensional affine subspace of F2k . Two affine subspace either identical or disjoint and if m < k −1 and θ is any linear combination of

5

TABLE I C OMPARISON OF FINITE FIELD ADDITION AND MULTIPLICATION COUNTS FOR ADDITIVE FFT ALGORITHMS OF LENGTH n = 2m OVER GENERAL AND C ANTOR SPECIAL BASES . T HE TOTAL COST INCLUDES BOTH BASIS CONVERSION AND EVALUATION .

Algorithm

Basis

Op. Basis conversion #A

General

1 1 2 n(log2 n) − n log2 n 4 4

#M n log2 n − n + 1

Gao–Mateer [14]

#A Cantor

1 1 2 n(log2 n) − n log2 n 4 4

#M 0

General

  2 #A O n(log2 n) #M O(n log2 n)

LCH [10] Cantor

#A O(n log2 n log2 log2 n) #M 0

Cantor [14]

#A Cantor

N/A #M

Proposed (Algorithm 1)

#A General

N/A

#A Cantor

N/A

#M

1 3 2 n(log2 n) + n log2 n 4 4 3 n log2 n − n + 1 2

n log2 n 1 n log2 n 2

n log2 n 1 n log2 n 2

1 3 2 n(log2 n) + n log2 n 4 4 1 n log2 n 2   2 n log2 n + O n(log2 n) 1 n log2 n + O(n log2 n) 2

n log2 n 1 n log2 n 2

n log2 n + O(n log2 n log2 log2 n) 1 n log2 n 2

n log2 n 1 n log2 n 2

1 1 n log2 n + n 2 2 1 n log2 n 2

log2 n−1

X

wt(r)

2

r=0

1 3 2 n(log2 n) + n log2 n 4 4

Same as evaluation

Same as evaluation

1 3 2 n(log2 n) + n log2 n 4 4

#M Proposed (Algorithm 4)

Total cost‡

Evaluation

n"log2 n + # w w X 1X p  p −2 m mod 2 i † n pi 2 i + 2 i=1 i=1

Same as evaluation

1 n log2 n 2

† Here, m = 2p1 + 2p2 + · · · + 2pw , where p > p > · · · > p ≥ 0 and w = wt(m). When m = 2t , the addition count simplifies w 1 2

to n log2 n + 41 n log2 n log2 log2 n. ‡ The total cost reports additions and multiplications separately and includes both basis conversion and evaluation. For algorithms that operate directly on the input polynomial representation, no separate basis-conversion stage is required. The exact operation counts for the Gao–Mateer [18] and Cantor [16] algorithms were established in [14].

{βm+1 , βm+2 , . . . , βk−1 }, then we can decompose the affine subspace θ + Wm+1 into two disjoint affine subspace as θ + Wm+1 = (θ + Wm ) ∪ (θ + βm + Wm ). Definition 1 (Vanishing polynomial). Let Wm be a m-dimensional subspace of F2k . The vanishing polynomial of Q Wm is given by ZWm (x) = ω∈Wm (x + ω). The vanishing polynomial of an m-dimensional subspace is a monic F2 -linearized polynomial. Hence, it can be written as m

m−1

ZWm (x) = x2 + cm−1 x2

+ · · · + c1 x2 + c0 x,

where c0 , . . . , cm−1 ∈ F2k . In particular, ZWm (x) has degree 2m and contains at most m + 1 nonzero terms. Since

6

Wm+1 = Wm ∪ (βm + Wm ), we have ZWm+1 (x) = (ZWm (x))2 − ZWm (βm ) · ZWm (x). Definition 2 (Taylor expansion). Let h(x) ∈ F2k [x] be a monic polynomial of degree d, and let f (x) ∈ F2k [x] have degree less than nd for some positive integer n. The Taylor expansion of f (x) with respect to h(x) is the unique representation f (x) =

n−1 X

fi (x) · (h(x))i ,

i=0

where each fi (x) ∈ F2k [x] has deg(fi ) < d. Now we will discuss the evaluation of a univariate polynomial f (x) over the subspace Wm . Definition 3 (Additive Discrete Fourier Transform). The evaluation of f (x) at the points η0 , η1 , . . . , η2m −1 is given by fˆ = (f (η0 ), f (η1 ), . . . , f (η2m −1 )). This set of evaluations is referred to as the additive discrete Fourier transform (DFT) of f (x) over the subspace Wm . We sometimes refer to the vector fˆ as the discrete Fourier transform of length n = 2m for the function f (x), denoted by DFT(f, Wm ). The additive FFT (AFFT) is an efficient method for computing DFT(f, Wm ), which we will denote as AFFT(f, Wm ). Consider the function S : F2k → F2k defined by S(x) = x2 + x, and let the following sequence of functions be defined recursively: S 0 (x) = x

and

A nonrecursive formula for S m (x) is S m (x) =

S m (x) = S(S m−1 (x)). m   X m i=0

where

 m i

i

i

x2 , t

2t

denotes the binomial coefficient reduced modulo 2. For m = 2t , we have S 2 = x2 + x.

Definition 4 (Cantor Special Basis). The Cantor special basis of the m dimensional subspace Wm of F2k is the ordered set {β0 , β1 , . . . , βm−1 } satisfying S(βi ) = βi−1

for

i = 1, . . . , m − 1

with

β0 = 1.

A natural question is for which fields and dimensions such a basis exists. The following proposition gives a precise existential criterion. Proposition 1. [18, Appendix] The field F2k admits a Cantor special basis of dimension ℓ if and only if 2⌈log2 ℓ⌉ divides k. Under a Cantor special basis, the vanishing polynomials take a particularly simple form. More specifically, if {β0 = 1, β1 , . . . , βm−1 } is a Cantor special basis, then the vanishing polynomial of Wi = ⟨β0 , . . . , βi−1 ⟩ is ZWi (x) = S i (x),

7

i.e. the i-fold composition of the mapping S. In particular, ZWi (x) is linearized with all coefficients in F2 , so polynomial division by ZWi requires zero F2k -multiplications. III. A N EW A DDITIVE FFT OVER G ENERAL BASIS In this section, we present our first main algorithm for the additive fast Fourier transform (AFFT) over an arbitrary basis of F2k . The algorithm recursively reduces multipoint evaluation to smaller evaluation problems by applying a Taylor expansion with respect to subspace vanishing polynomials. Let Wm = ⟨β0 , β1 , . . . , βm−1 ⟩, and let f (x) ∈ F2k [x] be a polynomial of degree less than n = 2m . Our goal is to evaluate f over the affine space θ + Wm . Given a decomposition m = m1 + m2 , where m1 , m2 ≥ 1, the algorithm proceeds as follows: 1) Decomposition: Compute the Taylor expansion of f (x) with respect to the vanishing polynomial ZWm1 (x). The resulting coefficient polynomials are arranged as a 2m2 × 2m1 matrix. 2) Column evaluations: Evaluate each of the 2m1 column polynomials, each of degree less than 2m2 , over an appropriate projected affine space. 3) Row evaluations: For each of the 2m2 row polynomials, evaluate a polynomial of degree less than 2m1 over the corresponding affine space θi + Wm1 . For m = m1 + m2 , we can decompose the subspace Wm into 2m2 disjoint affine subspaces Wm =

2 −1 2m[

(θi + Wm1 ),

i=0

where θi =

Pm2 −1 j=0

cj βm1 +j with (cm2 −1 , . . . , c0 )2 being the binary representation of i. In particular, θ0 = 0. For

any element θi + ω ∈ θi + Wm1 , where ω ∈ Wm1 , the F2 -linearity of ZWm1 (x) and the fact that ω ∈ ker(ZWm1 ) imply that ZWm1 (θi + ω) = ZWm1 (θi ) + ZWm1 (ω) = ZWm1 (θi ). Hence, ZWm1 (x) is constant on each coset θi + Wm1 , with value ZWm1 (θi ). Algorithm 1 describes the resulting evaluation procedure. We establish the following result to prove its correctness. Theorem 1. Let m = m1 + m2 , and let Wm = ⟨β0 , β1 , . . . , βm−1 ⟩ be an m-dimensional F2 -vector space. Define Wm1 = ⟨β0 , β1 , . . . , βm1 −1 ⟩

U = ⟨βm1 , βm1 +1 , . . . , βm1 +m2 −1 ⟩

and

Then Wm = Wm1 ⊕ U . Let ZWm1 (x) be the vanishing polynomial of Wm1 . Then the restriction ZWm1 U : U → ZWm1 (U ) is an injective F2 -linear map. Consequently, ZWm1 (U ) is an m2 -dimensional F2 -linear subspace. Moreover, the set  ZWm1 (βm1 ), ZWm1 (βm1 +1 ), . . . , ZWm1 (βm1 +m2 −1 )

8

is a basis of ZWm1 (U ) over F2 . Proof. Since Wm = ⟨β0 , β1 , . . . , βm−1 ⟩, and since m = m1 + m2 , we have Wm = ⟨β0 , . . . , βm1 −1 ⟩ ⊕ ⟨βm1 , . . . , βm1 +m2 −1 ⟩ . Hence Wm = Wm1 ⊕ U , where Wm1 = ⟨β0 , . . . , βm1 −1 ⟩ and U = ⟨βm1 , βm1 +1 , . . . , βm1 +m2 −1 ⟩. In particular, we have U ∩ Wm1 = {0}. Now let ZWm1 (x) be the vanishing polynomial of Wm1 . Since ZWm1 vanishes exactly on Wm1 , we have ker(ZWm1 ) = Wm1 . Moreover, ZWm1 is an F2 -linearized polynomial, so it defines an F2 -linear map on Wm . Restricting to U , we get ZWm1 U : U → ZWm1 (U ). Its kernel is  ker ZWm1 U = U ∩ ker ZWm1 = U ∩ Wm1 = {0}. Therefore ZWm1 U is injective. Since U = ⟨βm1 , βm1 +1 , . . . , βm1 +m2 −1 ⟩, the vectors βm1 , βm1 +1 , . . . , βm1 +m2 −1 form a basis of U . Because ZWm1 U is injective and F2 -linear, their images ZWm1 (βm1 ), ZWm1 (βm1 +1 ), . . . , ZWm1 (βm1 +m2 −1 ) are linearly independent in ZWm1 (U ). Therefore, they form a basis of ZWm1 (U ). Hence dim ZWm1 (U ) = dim(U ) = m2 .

Theorem 1 shows that the restriction of ZWm1 to U is an F2 -linear isomorphism onto its image. Consequently, ZWm1 (U ) = ZWm1 (βm1 ), . . . , ZWm1 (βm−1 ) is an m2 -dimensional subspace. Thus, the distinct cosets of Wm1 in Wm are mapped to distinct points of ZWm1 (U ). This observation allows the evaluation over θ + Wm to be organized as a row-column computation. The Taylor expansion of f (x) with respect to ZWm1 (x) can be written as m  2 −1 1 −1 2m 2X X  gi,j xj  (ZWm1 (x))i f (x) =

m2

Arrange the coefficients gi,j in a 2

i=0

j=0

2m1 −1

2m2 −1

=

X

X

j=0

i=0

×2

m1

(1) ! gi,j ZWm1 (x)i

xj .

matrix M such that M [i, j] = gi,j .

For 0 ≤ j < 2m1 , define the each column j by Cj (y) =

2 −1 2m X

M [i, j]y i .

i=0

Equation (1) then becomes f (x) =

1 −1 2m X

 Cj ZWm1 (x) xj .

j=0

9

We next relate the evaluation points of the column polynomials to the cosets of Wm1 in Wm . Since Wm = Wm1 ⊕ U , every element of Wm can be written uniquely as ω + u, where ω ∈ Wm1 and u ∈ U . Consequently, θ + Wm =

[

 θ + u + Wm1 .

u∈U

Enumerate the elements of U as uk =

m 2 −1 X

cℓ βm1 +ℓ ,

where

(cm2 −1 , . . . , c0 )2 = k,

ℓ=0

for 0 ≤ k < 2m2 , and define θk = θ + uk . With this notation, the affine space is partitioned into the 2m2 disjoint cosets θ + Wm =

2 −1 2m[

 θk + W m1 .

k=0

Since ZWm1 is F2 -linear, ZWm1 (θk ) = ZWm1 (θ) + ZWm1 (uk ). It follows that the points ZWm1 (θk ) form the projected affine space U ′ = ZWm1 (θ) + ZWm1 (U ) = ZWm1 (θ) + ZWm1 (βm1 ), . . . , ZWm1 (βm1 +m2 −1 ) . The injectivity established in Theorem 1 ensures that these 2m2 points are distinct. Evaluating each column polynomial Cj over U ′ replaces the entry in row k and column j by  M [k, j] = Cj ZWm1 (θk ) . Consequently, the k-th row of the updated matrix defines the polynomial Rk (x) =

1 −1 2m X

 Cj ZWm1 (θk ) xj .

j=0

For every ω ∈ Wm1 , the vanishing property and linearity of ZWm1 imply that ZWm1 (θk + ω) = ZWm1 (θk ) + ZWm1 (ω) = ZWm1 (θk ). Thus, it follows that Rk (θk + ω) =

1 −1 2m X

 Cj ZWm1 (θk ) (θk + ω)j

j=0 2m1 −1

=

X

 Cj ZWm1 (θk + ω) (θk + ω)j

j=0

= f (θk + ω). Therefore, evaluating Rk over θk + Wm1 produces exactly the values of f on that coset. Hence, concatenating the row evaluations produces the evaluation of f over the entire affine space θ + Wm . Algorithm 1 formalizes this column-row evaluation procedure. Remark 1. Algorithm 1 is an additive analogue of the Bailey’s four-step FFT [24]. The Taylor expansion with respect to ZWm1 (x) plays a role analogous to Bailey’s matrix formulation. It arranges the coefficients of f (x) into

10

Algorithm 1: Additive FFT of length n = 2m over a general basis Input: f (x) ∈ F2k [x] of degree < n = 2m and the affine subspace θ + Wm = θ + ⟨β0 , β1 , . . . , βm−1 ⟩. Output: AFFT(f, θ + Wm ). 1

if m = 1 then return (f (θ), f (θ + β0 ));

2 3

end

4

Let m = m1 + m2 and U = βm1 , βm1 +1 , . . . , βm1 +m2 −1 ;

5

Do the Taylor Expansion of f (x) w.r.t. ZWm (x) 1

f (x) =

2 −1 2m X

 m  1 −1 2 X j i  gi,j x (ZWm (x)) 1

i=0

j=0

6

Initialize a 2m2 × 2m1 matrix M such that M [k2 , k1 ] = gk2 ,k1 ;

7

Let U ′ = ZWm (θ) + ZWm (U ) = ZWm (θ) + ⟨ZWm (βm1 ), . . . , ZWm (βm1 +m2 −1 )⟩; 1

1

1

1

1

/* Compute column evaluations over the affine space U ′

*/

for k1 = 0, . . . , 2m1 − 1 do P2m2 −1 9 Define Ck1 (y) = M [k2 , k1 ]y k2 ; k =0

8

2

M [∗, k1 ] ← AFFT(Ck1 (y), U ′ );

10 11

end /* Compute row polynomials over the affine spaces

*/

for k2 = 0, . . . , 2m2 − 1 do Pm2 −1 13 Let θk2 = θ + ℓ=0 cℓ βm1 +ℓ , where (cm2 −1 , . . . , c0 )2 = k2 ; P2m1 −1 14 Define Rk2 (x) = M [k2 , k1 ]xk1 ; k =0

12

1

Ek2 ← AFFT(Rk2 (x), θk2 + Wm1 );

15 16

end

17

return E0 || E1 || . . . || E2m2 −1

a 2m2 × 2m1 matrix and decomposes the evaluation problem into independent column and row sub-AFFTs. The column sub-AFFTs are evaluated over the projected affine space ZWm1 (θ)+ZWm1 (U ), whereas the row sub-AFFTs are evaluated over the cosets θk + Wm1 for 0 ≤ k < 2m2 . In contrast to Bailey’s classical algorithm, no separate diagonal multiplication by twiddle factors is needed. Instead, the Taylor expansion and the projected evaluation points encode the interaction between the two stages. We now turn to the arithmetic complexity of Algorithm 1. The cost decomposes naturally into two parts, namely the Taylor expansion step, which divides f (x) by powers of ZWm1 (x), and the sub-FFT evaluations in the column and row passes. We analyze each in turn and show that the total cost is invariant under the choice of split m = m1 +m2 . A. Detailed Cost Analysis We first analyze the cost of the Taylor expansion subroutine in the algorithm, where Algorithm 2 computes the Taylor expansion of f (x) with respect to the vanishing polynomial ZWm1 (x). We now quantify the cost of the Taylor expansion subroutine. The key observation is that every power of the vanishing polynomial h(x) = ZWm1 (x) retains at most m1 + 1 nonzero terms, so each division step costs only m1 multiplications regardless of the recursion depth. Proposition 2. Algorithm 2 requires m1 m2 2m−1 multiplications and m1 m2 2m−1 additions, where m = m1 + m2 .

11

Algorithm 2: Computing TE(f (x), h(x) = ZWm1 (x)) Input: A polynomial f (x) with deg(f ) < 2m1 +m2 , integers m1 , m2 , and the polynomial h(x) = ZWm (x). 1

Output: The Taylor Expansion representation of f with respect to h = ZWm . 1

1

e ← 2m2 −1 ;

2

Compute the division e

f (x) = r(x) + q(x)h , 3

e

deg(r) < deg(h )

and

e

deg(q) < deg(h ).

if m2 = 1 then return (r, q)

4 5

end

6

return TE(r, h, m2 − 1) || TE(q, h, m2 − 1);

m2 −1

Proof. At the first step, the first division is by h2

m2

and deg(h2

−1

) = 2m−1 . Since h(x) is the vanishing

polynomial of the subspace Wm1 , both h(x) and every power he contain at most m1 + 1 nonzero terms. Since m2 −1

the highest-degree term in h2

has a coefficient of one, each iteration of dividing f (x) by h2

m2 −1

requires

m1 multiplications. Additionally, at each iteration, the highest-degree term cancels out, allowing us to omit the corresponding addition. Consequently, dividing f (x) by h2

m2 −1

requires a total of 2m−1 · m1 multiplications and

additions. More generally, at recursion level i, where 0 ≤ i ≤ m2 − 1, there are 2i subproblems. Each subproblem involves m2 −1−i

a polynomial of degree less than 2m−i and a divisor h2 , whose degree is  m −1−i  2 deg h2 = 2m1 · 2m2 −1−i = 2m−1−i . Hence, each subproblem requires 2m−1−i m1 multiplications and the same number of additions. Summing over all recursion levels, the total cost is

m 2 −1 X

2i · 2m−1−i m1 = m1 m2 2m−1 .

i=0

Therefore, Algorithm 2 performs m1 m2 2m−1 multiplications and m1 m2 2m−1 additions. We now combine the cost of the Taylor expansion subroutine with that of the recursive sub-FFT calls to obtain the total arithmetic complexity of Algorithm 1. Theorem 2. Algorithm 1 evaluates a polynomial of degree less than 2m over an m-dimensional affine subspace using 1 3 1 m 2 3 m 2 m + 2 m = n(log2 n)2 + n log2 n 4 4 4 4 multiplications and the same number of additions, regardless of the choice of split m = m1 + m2 . Proof. The cost decomposes into two parts, the Taylor expansion step and the sub-FFT evaluations. Since the numbers of additions and multiplications coincide (by Proposition 2), let AT E (m) denote this common quantity. The algorithm produces 2m1 column subproblems and 2m2 row subproblems, AT E (m) satisfies the recurrence 1 AT E (m) = 2m1 AT E (m2 ) + 2m2 AT E (m1 ) + 2m m1 m2 . 2

12

(2)

Define τ (r) = AT E (r)/2r . Dividing both sides by 2m , we obtain 1 τ (m) = τ (m1 ) + τ (m2 ) + m1 m2 . 2 We show τ (m) = 41 (m2 − m) for all m ≥ 1 by strong induction, independent of the split. The base case τ (1) = 0 = 41 (1 − 1) is immediate. Assume τ (k) = 41 (k 2 − k) for all 1 ≤ k < m. For any split m = m1 + m2 with m1 , m2 ≥ 1, we have

1 τ (m) = τ (m1 ) + τ (m2 ) + m1 m2 2 1 1 1 = (m21 − m1 ) + (m22 − m2 ) + m1 m2 4 4 2 1 2 = (m − m). 4

Hence, by strong induction, τ (m) = 14 (m2 − m) for all m ≥ 1. Consequently, the total cost in Algorithm 1 associated with the Taylor expansion is 41 2m (m2 − m) additions and multiplications. We now determine the cost arising from the sub-FFTs. Since the numbers of additions and multiplications coincide, let S(m) denote this common quantity. The algorithm performs 2m1 column FFTs of size 2m2 and 2m2 row FFTs of size 2m1 . Therefore, S(m) = 2m1 S(m2 ) + 2m2 S(m1 ), with S(1) = 2. By the same strong induction argument, this recurrence leads S(m) = 2m m for every split. Combining both contributions, the total number of additions and multiplications performed by Algorithm 1 is given by 1 3 1 m 2 2 (m − m) + 2m m = 2m m2 + 2m m. 4 4 4 This proves the stated operation count. Corollary 1. In the setting of Theorem 2, when the evaluation domain is the subspace Wm , Algorithm 1 requires n − 1 fewer multiplications and n − 1 fewer additions than over a general affine subspace θ + Wm . Proof. When θ = 0, all 2m1 column AFFTs are evaluated over Wm2 , and exactly one row AFFT is evaluated over Wm1 . Thus, if D(m) denotes the number of saved operations, then it satisfies the recurrence D(m) = 2m1 D(m2 ) + D(m1 ), with D(1) = 1. Therefore, by strong induction, D(m) = 2m − 1. Hence, evaluation over the subspace Wm saves exactly n − 1 multiplications and n − 1 additions. Remark 2 (Inverse AFFT). The inverse of Algorithm 1 is obtained by inverting each stage in reverse order. Specifically, one first applies the inverse row sub-AFFTs over the cosets θk + Wm1 , then the inverse column sub-AFFTs over the projected affine space ZWm1 (θ) + ZWm1 (U ), and finally the inverse Taylor expansion, which recombines the entries of M into the coefficients of f (x). The resulting polynomial is the unique polynomial of degree less than 2m that interpolates the given evaluations over θ + Wm . The Taylor stage is bijective by the uniqueness in Definition 2, and the inverse sub-AFFTs are themselves inverse AFFTs of dimensions m1 and m2 .

13

Consequently, the inverse transform requires the same number of finite field additions and multiplications as the forward transform. The same holds for Algorithms 3 and 4. The cost of Algorithm 1 is dominated by the Taylor expansion step, which requires O(n(log2 n)2 ) multiplications. This cost arises from the divisions by vanishing polynomials whose coefficients introduce field multiplications. It is therefore natural to ask whether a suitable choice of basis can remove this quadratic overhead. The answer is affirmative. If the affine space is constructed from a Cantor special basis (see Definition 4). Then the vanishing m1

polynomial reduces to S m1 (x), and, when m1 is a power of two, it takes the simple form S m1 (x) = x2

+ x.

Division by this binomial is multiplication-free and requires only one addition at each iteration. Exploiting this additional structure, the next section presents a specialization of Algorithm 1 whose multiplication count is 21 n log2 n. IV. N EW A DDITIVE FFT S BASED ON C ANTOR S PECIAL BASIS We now specialize Algorithm 1 to the setting where the evaluation subspace admits a Cantor special basis. In the general basis setting of Section III, the Taylor expansion step dominates the overall cost. By Proposition 2, computing the Taylor expansion with respect to ZWm1 (x) requires m1 m2 2m−1 multiplications. In contrast, for a Cantor special basis, we have ZWm1 (x) = S m1 (x), and all coefficients of S m1 (x) lie in F2 . Consequently, the Taylor expansion step incurs no multiplication in F2k . We formalize this observation below. Remark 3. Let {β0 = 1, β1 , . . . , βm−1 } be a Cantor special basis of a m dimensional subspace Wm of F2k , and let m = m1 + m2 . (i) Since S m1 (x) ∈ F2 [x], the Taylor expansion of any polynomial f (x) ∈ F2k [x] with respect to S m1 (x) requires no multiplications in F2k . (ii) By the explicit formula S m1 (x) =

Pm1

i=0

m1 i

 2i x and Lucas’ theorem, S m1 (x) has exactly 2wt(m1 ) nonzero

terms [14], where wt(m1 ) denotes the Hamming weight of m1 . Each polynomial-division step in the Taylor expansion costs 2wt(m1 ) − 1 additions. This quantity is minimized when wt(m1 ) = 1, i.e., m1 = 2t for some positive integer t, giving S m1 (x) = x2

m1

+ x and exactly one addition per step.

Both algorithms below achieve zero multiplications in the Taylor expansion. They differ in the addition cost, which is governed by the number of nonzero terms in S m1 (x). The first algorithm permits an arbitrary split; the second restricts m1 to a power of two, attaining the minimum addition cost by Remark 3(ii). Let Wm = ⟨β0 , β1 , . . . , βm−1 ⟩, where {β0 , β1 , . . . , βm−1 } is a special Cantor basis. We want to evaluate the polynomial f (x) of degree less than n = 2m over the affine space θ + Wm . For a given split m = m1 + m2 , we can decompose the subspace Wm into 2m2 disjoint affine subspaces θi + Wm1 , where θi =

m 2 −1 X

ij βm1 +j ,

i=

m 2 −1 X

j=0

ij 2j ,

ij ∈ {0, 1},

j=0

and θ0 = 0. Also, the recursion gives S m1 (βm1 +j ) = βj for 0 ≤ j ≤ m2 − 1, which implies S m1 (θi ) ∈ Wm2 . Thus, S m1 maps each affine subspace to a single point in Wm2 .

14

Taylor expansion of the input f (x) with respect to the vanishing polynomial S m1 (x) gives m  2 −1 1 −1 2m 2X X  f (x) = gi,j xj  (S m1 (x))i

= and we store the coefficients gi,j in a 2

m2

i=0

j=0

1 −1 2m X

2 −1 2m X

j=0

i=0

×2

m1

! gi,j S

m1

i

(x)

xj

matrix M . By Remark 3, this step is multiplication-free.

Algorithm 3: Additive FFT of length n = 2m over a Cantor special basis with arbitrary split of m Input: f (x) ∈ F2k [x] of degree < n = 2m and the affine subspace θ + Wm = θ + ⟨β0 , β1 , . . . , βm−1 ⟩, where {β0 = 1, β1 , . . . , βm−1 } is a Cantor special basis. Output: AFFT(f, θ + Wm ). 1

if m = 1 then return (f (θ), f (θ + 1));

2 3

end

4

Let m = m1 + m2 and U = βm1 , βm1 +1 , . . . , βm1 +m2 −1 ;

5

Do the Taylor Expansion of f (x) w.r.t. S m1 (x)

f (x) =

2 −1 2m X

 m  1 −1 2 X j m i  gi,j x  (S 1 (x))

i=0

6

Initialize a 2m2 × 2m1 matrix M such that M [k2 , k1 ] = gk2 ,k1 ;

7

Let U ′ = S m1 (θ) + Wm2 = S m1 (θ) + ⟨β0 , . . . , βm2 −1 ⟩;

j=0

/* Compute column evaluations over the affine space U ′

*/

for k1 = 0, . . . , 2m1 − 1 do P2m2 −1 9 Define Ck1 (y) = M [k2 , k1 ]y k2 ; k =0

8

2

M [∗, k1 ] ← AFFT(Ck1 (y), U ′ );

10 11

end /* Compute row polynomials over the affine spaces

*/

for k2 = 0, . . . , 2m2 − 1 do Pm2 −1 13 Let θk2 = θ + ℓ=0 cℓ βm1 +ℓ , where (cm2 −1 , . . . , c0 )2 = k2 ; P2m1 −1 14 Define Rk2 (x) = M [k2 , k1 ]xk1 ; k =0

12

1

Ek2 ← AFFT(Rk2 (x), θk2 + Wm1 );

15 16

end

17

return E0 || E1 || . . . || E2m2 −1

Proposition 3. Algorithm 3 evaluates a polynomial of degree less than 2m over an m-dimensional affine subspace using 12 n log2 n multiplications, regardless of the choice of split m = m1 + m2 . Proof. Over a Cantor special basis, the Taylor expansion stage requires no finite field multiplications. Hence, all multiplications arise from the recursive sub-AFFTs. Their number satisfies M (m) = 2m1 M (m2 ) + 2m2 M (m1 ),

M (1) = 1.

Using strong induction, M (m) = 2m1 · m2 2m2 −1 + 2m2 · m1 2m1 −1 = (m1 + m2 )2m−1 =

15

1 n log2 n. 2

Therefore, the multiplication count is independent of the decomposition m = m1 + m2 . Remark 4. Although the Taylor expansion in Algorithm 3 requires no multiplications for any decomposition m = m1 +m2 , its addition count depends on the choice of m1 . More precisely, each division step requires 2wt(m1 ) −1 additions, where wt(m1 ) denotes the Hamming weight of m1 . Thus, the addition complexity is determined by the number of nonzero terms in the subspace vanishing polynomial S m1 (x). In particular, if m1 = m − 1 and m2 = 1 are chosen recursively, Algorithm 3 yields the same arithmetic cost as the Cantor AFFT [16] reported in Table I. The preceding remark motivates choosing m1 to have the smallest possible Hamming weight. In particular, choosing m1

m1 = 2t yields wt(m1 ) = 1, so that S m1 (x) = x2

+ x and each division step requires only one addition. To

preserve this binomial structure throughout the recursion, we choose m1 = 2⌊log2 (m−1)⌋ , namely, the largest power of two strictly smaller than m. For instance, when m = 15, this choice gives m1 = 8. Algorithm 4 formalizes the resulting recursive power-of-two splitting strategy. Algorithm 4: Additive FFT of length n = 2m over a Cantor special basis with a power-of-two split of m Input: f (x) ∈ F2k [x] of degree < n = 2m and the affine subspace θ + Wm = θ + ⟨β0 , β1 , . . . , βm−1 ⟩, where {β0 = 1, β1 , . . . , βm−1 } is a Cantor special basis. Output: AFFT(f, θ + Wm ). if m = 1 then

1

return (f (θ), f (θ + 1));

2

end

3 4

Set m1 as the largest power of two strictly less than m, and let m2 = m − m1 ;

5

Do the Taylor Expansion of f (x) w.r.t. S m1 (x)

f (x) =

2 −1 2m X

  m 1 −1 2 X m i j  gi,j x  (S 1 (x))

i=0

6

Initialize a 2m2 × 2m1 matrix M such that M [k2 , k1 ] = gk2 ,k1 ;

7

Let U ′ = S m1 (θ) + Wm2 = S m1 (θ) + ⟨β0 , . . . , βm2 −1 ⟩;

j=0

/* Compute column evaluations over the affine space U ′

*/

for k1 = 0, . . . , 2m1 − 1 do P2m2 −1 9 Define Ck1 (y) = M [k2 , k1 ]y k2 ; k =0

8

2

M [∗, k1 ] ← AFFT(Ck1 (y), U ′ );

10

end

11

/* Compute row polynomials over the affine spaces

*/

for k2 = 0, . . . , 2m2 − 1 do Pm2 −1 13 Let θk2 = θ + ℓ=0 cℓ βm1 +ℓ , where (cm2 −1 , . . . , c0 )2 = k2 ; P2m1 −1 14 Define Rk2 (x) = M [k2 , k1 ]xk1 ; k =0

12

1

Ek2 ← AFFT(Rk2 (x), θk2 + Wm1 );

15 16

end

17

return E0 || E1 || . . . || E2m2 −1

A. Detailed Cost Analysis We now establish the arithmetic complexity of Algorithm 4. Since the Taylor expansion with respect to S m1 (x) = m1

x2

+ x is multiplication-free, all multiplications arise from the recursive sub-FFTs. The addition cost consists of

the contributions from the recursive sub-FFTs and the Taylor expansion steps.

16

Theorem 3. Let n = 2m and write m = 2p1 + 2p2 + · · · + 2pw with p1 > p2 > · · · > pw ≥ 0 (so w = wt(m)). Algorithm 4 evaluates a polynomial of degree less than n over an m-dimensional affine subspace using 1 n log2 n 2 multiplications, and n log2 n + n

" w X

w

pi −2

pi 2

i=1

1X + (m mod 2pi ) 2 i=1

#

additions. In particular, when m = 2t (i.e. w = 1), the addition count simplifies to 1 n log2 n + n log2 n log2 log2 n. 4 Proof. The Taylor expansion f (x) with respect to the vanishing polynomial S m1 (x) requires zero finite field multiplications. Thus, the total number of multiplications, denoted by M (m) for an input of size n = 2m , is determined entirely by the sub-FFTs. The algorithm performs 2m1 column FFTs of size 2m2 and 2m2 row FFTs of size 2m1 . Therefore, M (m) = 2m1 M (m2 ) + 2m2 M (m1 ), with M (1) = 1. By the same strong induction argument used in the proof of Theorem 2, this recurrence yields M (m) =

1 n log2 n. 2

Let A(m) denote the total number of additions performed by the algorithm. This cost comprises the additions incurred by the recursive sub-FFTs and those required by the Taylor expansion step, denoted by ATE . We first analyze the addition cost of the Taylor expansion step, denoted by AT E . When n/d is a power of two, the total number of additions required to compute the Taylor expansion of f (x), with degree less than n, with respect to xd + x is 12 n log2 (n/d) [18]. m1

Since m1 is chosen to be a power of two, we have S m1 (x) = x2

+ x. Applying the above result with n = 2m

and d = 2m1 , the Taylor expansion of a polynomial of degree less than 2m with respect to Sm1 (x) requires 1 m 1 2 log2 (2m /2m1 ) = 2m m2 2 2 additions. The recursive calls consist of 2m1 column FFTs of size 2m2 and 2m2 row FFTs of size 2m1 . Therefore, the Taylor expansion cost satisfies 1 AT E (m) = 2m1 AT E (m2 ) + 2m2 AT E (m1 ) + 2m m2 . 2 Define τ (r) = AT E (r)/2r and dividing the recurrence by 2m yields 1 τ (m) = τ (m1 ) + τ (m2 ) + m2 . 2 We first consider the case in which m is a power of two, say m = 2t . The decomposition is then balanced, with m1 = m2 = 2t−1 . Hence, the recurrence for τ becomes 1 τ (2t ) = 2τ (2t−1 ) + 2t−1 . 2

17

Together with the base case τ (1) = 0, corresponding to t = 0, this recurrence yields τ (2t ) = t2t−2 . We now derive a closed form for τ (m) when m is not power of two. Write the binary expansion of m as m = 2p1 + 2p2 + · · · + 2pw , where p1 > p2 > · · · > pw ≥ 0. Then m1 = 2p1

m 2 = m − 2 p1 .

and

Repeatedly applying the recurrence for τ gives 1 τ (m) = τ (2p1 ) + τ (m − 2p1 ) + (m − 2p1 ) ! 2 w X 1 = τ (2p1 ) + τ pi + (m − 2p1 ) 2 i=2 ! w X 1 1 = τ (2p1 ) + τ (2p2 ) + τ pi + (m − 2p2 ) + (m − 2p1 ) 2 2 i=3 =

w X

w

τ (2pi ) +

i=1

=

w X

1X (m mod 2pi ) 2 i=1 w

pi −2

pi 2



i=1

1X + (m mod 2pi ). 2 i=1

Consequently, the addition cost for the Taylor expansion is " w # w X X  1 (m mod 2pi ) . AT E (m) = 2m pi 2pi −2 + 2 i=1 i=1 We now determine the number of additions arising from the sub-FFTs. The algorithm performs 2m1 column FFTs of size 2m2 and 2m2 row FFTs of size 2m1 . Hence, A1 (m) = 2m1 A1 (m2 ) + 2m2 A1 (m1 ), with A1 (1) = 2. By the same strong induction argument used for the multiplication count, this recurrence yields A1 (m) = 2m m. Combining the additions from the recursive sub-FFTs with those from the Taylor expansion steps, the total number of additions is m

A(m) = 2 m + 2

m

" w X

w

pi −2

pi 2

i=1



1X + (m mod 2pi ) 2 i=1

" w X

#

# w X 1 = n log2 n + n pi 2pi −2 + (m mod 2pi ) 2 i=1 i=1 When m = 2t , we have w = 1, p1 = t, and m mod 2p1 = 0. It follows that τ (m) = t2t−2 =

18

1 m log2 m. 4

Therefore,

1 A(m) = 2m m + 2m · m log2 m 4 1 = n log2 n + n log2 n log2 log2 n. 4 This proves the stated operation count.

Corollary 2. In the setting of Theorem 3, when the evaluation domain is the subspace Wm , Algorithm 4 requires n − 1 fewer multiplications and n − 1 fewer additions than over a general affine subspace θ + Wm . Proof. When θ = 0, all 2m1 column AFFTs are evaluated over Wm2 , and exactly one row AFFT is evaluated over Wm1 . Thus, if D(m) denotes the number of saved operations, then it satisfies the recurrence D(m) = 2m1 D(m2 ) + D(m1 ), with D(1) = 1. Therefore, using strong induction, we obtain D(m) = 2m − 1. Therefore, evaluation over the subspace Wm saves exactly n − 1 multiplications and n − 1 additions. Remark 5. The splitting rule of Algorithm 4 coincides with the balanced decomposition used in the second Gao– Mateer algorithm [18] when m is a power of two. Indeed, if m = 2t , then m1 = 2⌊log2 (m−1)⌋ = 2t−1 =

m 2

and

m2 = m − m 1 =

m . 2

For arbitrary m, it generalizes this splitting rule by choosing m1 as the largest power of two strictly smaller than m and setting m2 = m − m1 . The resulting decomposition is not necessarily balanced, while the total multiplication count remains 12 n log2 n. When m is a power of two, the second Gao–Mateer algorithm requires n log2 n+ 12 n log2 n log2 log2 n additions [18], whereas Algorithm 4 requires n log2 n+ 14 n log2 n log2 log2 n. Thus, Algorithm 4 requires fewer additions than the second Gao–Mateer algorithm. Remark 6. Cantor’s AFFT [16] and Algorithm 4 both operate over a Cantor special basis and require exactly 1 2 n log2 n multiplications. They differ only in the number of additions, and this difference is attributable entirely to

the splitting rule. By Remark 3, each iteration of the division costs 2wt(m1 ) −1 additions, so the total is governed by the Hamming weights of the successive splits. From Table I, we know that the addition cost for Cantor algorithm Plog n−1 wt(r) is 21 n log2 n + 12 n r=02 2 . When m = log2 n = 2t , this simplifies to 12 n log2 n + 21 n 3log2 log2 n = 1 1 log2 3 . In contrast, by Theorem 3, Algorithm 4 requires n log2 n + 14 n log2 n log2 log2 n 2 n log2 n + 2 n(log2 n)

additions when m = 2t . Consequently, Algorithm 4 has lower asymptotic addition complexity. Although the above closed forms assume m = 2t , the same advantage holds for every m ≥ 4, since Algorithm 4 always chooses m1 with wt(m1 ) = 1, thereby minimizing the addition cost at each step. Remark 7. Over a Cantor special basis, both Algorithm 4 and the LCH AFFT [9] require 21 n log2 n multiplications. Nevertheless, the two algorithms differ substantially in their treatment of the input polynomial. Algorithm 4 operates directly on the polynomial in the standard monomial basis. In contrast, the LCH algorithm first converts the input from the monomial basis to the novel polynomial basis and then performs the evaluation using its butterfly procedure.

19

Consequently, Algorithm 4 avoids the memory-access overhead associated with the basis-conversion stage of the LCH algorithm. The performance improvement observed over the LCH algorithm is reported in Table IV. V. G ENERALIZED B UTTERFLY P HASE OF THE LCH A DDITIVE FFT The arbitrary matrix decomposition introduced in Algorithm 1 suggests a corresponding generalization of the evaluation phase of the LCH AFFT [8], [9]. Specifically, the column-row viewpoint can be transferred to polynomials represented in the novel polynomial basis, allowing the LCH butterfly phase to use any decomposition m = m1 +m2 . This result is separate from Algorithms 3 and 4. They operate directly on coefficients in the standard monomial basis, whereas the generalized LCH butterfly developed in this section assumes that the input has already been converted to the novel polynomial basis [8]. Thus, Algorithm 5 generalizes only the LCH evaluation phase; it does not eliminate the preceding polynomial-basis conversion. The LCH additive FFT represents the input polynomial in the novel polynomial basis introduced by Lin, Chung, and Han [8]. Although the algorithm is independent of the choice of basis for the underlying finite field, we assume a Cantor special basis throughout this section for simplicity. Definition 5. Let B = {1, β1 , . . . , βm−1 } be a Cantor special basis of a m dimensional subspace Wm of F2k , and let S i (x) denote the corresponding subspace polynomials. For each integer k=

m−1 X

bi 2i ,

bi ∈ {0, 1},

i=0

define Xk (x) :=

m−1 Y

S i (x)

b i

.

i=0

The family {X0 (x), X1 (x), . . . , Xn−1 (x)} is called the novel polynomial basis with respect to B. Thus, Xk (x) is the product of the polynomials S i (x) for which the ith bit of k is equal to one. Since deg(S i (x)) = 2i , it follows that deg(Xk (x)) = k for every k ∈ {0, 1, . . . , n − 1}. Hence, any polynomial f (x) of degree less than n admits a unique representation f (x) =

n−1 X

fk Xk (x),

k=0

where f0 , f1 , . . . , fn−1 ∈ F2m . The LCH additive FFT takes the coefficients of f (x) in this novel polynomial basis as input and evaluates f through a butterfly decomposition. The proposed butterfly phase relies on the compositional structure of the vanishing polynomials associated with a Cantor special basis. In particular, these polynomials satisfy  S i+j (x) = S i S j (x) . This identity allows us to factor the novel polynomial basis Xk (x) to be decomposed into factors of smaller degree. Let P (x) a polynomial of degree less than n = 2m , where m = m1 + m2 , in novel polynomial basis P (x) =

m 2X −1

k=0

20

pk Xk (x).

Each index k ∈ {0, . . . , 2m − 1} can be written uniquely as k = k1 + 2m1 · k2 , where k1 ranges from 0 to 2m1 − 1 and k2 ranges from 0 to 2m2 − 1. Accordingly, P (x) =

1 −1 2m2 −1 2m X X

k1 =0

pk1 +2m1 ·k2 Xk1 +2m1 ·k2 (x).

k2 =0

The binary supports of k1 and 2m1 k2 are disjoint, and hence Xk1 +2m1 ·k2 (x) = Xk1 (x) · X2m1 ·k2 (x). Write k2 =

Pm2 −1 ′ j j=0 bj 2 . Then 2m1 · k2 = 2m1

m 2 −1 X

b′j 2j =

j=0

m 2 −1 X

b′j 2j+m1 ,

j=0

which gives X2m1 ·k2 (x) =

mY 2 −1

′

(S j+m1 (x))bj

j=0

=

mY 2 −1

S j (S m1 (x))

b′j

.

j=0

Therefore, Xk1 +2m1 ·k2 (x) = Xk1 (x) · Xk2 (S m1 (x)). Substituting this identity into the representation of P (x) yields P (x) =

1 −1 2m2 −1 2m X X

k1 =0

pk1 +2m1 ·k2 Xk1 (x) · Xk2 (S m1 (x))

k2 =0

2m1 −1

=

" m2 −1 X 2X

k1 =0

# pk1 +2m1 ·k2 Xk2 (S m1 (x)) Xk1 (x).

k2 =0

We can decompose the subspace Wm into 2m2 disjoint affine subspaces θi + Wm1 , where 0 ≤ i ≤ 2m2 − 1 and θi is linear combination of {βm1 , βm1 +1 , . . . , βm1 +m2 −1 } with θ0 = 0. Also, note that S m1 (βm1 +j ) = βj for 0 ≤ j ≤ m2 − 1. Therefore, for each θi + ω ∈ θi + Wm1 , we have S m1 (θi + ω) = S m1 (θi ) which implies that for each x ∈ θi + Wm1 , we have S m1 (x) ∈ Wm2 . With the factorization of P (x) and the associated affine space structure in place, the generalized butterfly phase follows naturally. The algorithm first evaluates the 2m1 column polynomials over the projected space U and then evaluates each of the resulting 2m2 row polynomials over its corresponding affine space. Algorithm 5 formalizes this procedure for an arbitrary decomposition m = m1 + m2 . The arithmetic cost of Algorithm 5 is invariant under the choice of split m = m1 + m2 , as the following result shows. Theorem 4. Algorithm 5 evaluates a polynomial of degree less than n = 2m , represented in the novel polynomial basis, over an m-dimensional affine subspace using exactly 1 n log2 n 2

multiplications and

21

n log2 n

additions,

Algorithm 5: Generalized butterfly phase of LCH additive FFT of length n = 2m Input: Polynomial P (x) =

Pn−1

k=0 pk Xk (x) in the novel polynomial basis, and the affine subspace θ + Wm = θ + ⟨β0 , β1 , . . . , βm−1 ⟩, where

{β0 = 1, β1 , . . . , βm−1 } is a Cantor special basis. Output: AFFT(P, θ + Wm ). 1

if m = 1 then return (P (θ), P (θ + 1));

2 3

end

4

Write P (x) as P (x) =

1 −1 2m X

 m  2 −1 2 X m  pk +2m1 ·k Xk (S 1 (x)) Xk (x) 1

k1 =0

2

2

1

k2 =0

5

Initialize a 2m2 × 2m1 matrix M such that M [k2 , k1 ] = pk1 +2m1 ·k2 ;

6

Let U ′ = S m1 (θ) + Wm2 = S m1 (θ) + ⟨β0 , . . . , βm2 −1 ⟩; /* Evaluate column polynomials over the affine space U ′

*/

for k1 = 0, . . . , 2m1 − 1 do P2m2 −1 8 Define Ck1 (y) = M [k2 , k1 ]Xk2 (y); k =0

7

2

M [∗, k1 ] ← AFFT(Ck1 (y), U ′ );

9 10

end /* Evaluate row polynomials over the affine spaces

*/

for k2 = 0, . . . , 2m2 − 1 do Pm2 −1 12 Let θk2 = θ + ℓ=0 cℓ βm1 +ℓ , where (cm2 −1 , . . . , c0 )2 = k2 ; P2m1 −1 13 Define Rk2 (x) = M [k2 , k1 ]Xk1 (x); k =0

11

1

Ek2 ← AFFT(Rk2 (x), θk2 + Wm1 );

14 15

end

16

return E0 || E1 || . . . || E2m2 −1 ;

independently of the decomposition m = m1 + m2 . Proof. Let A(m) and M (m) denote the total number of additions and multiplications performed by the algorithm, respectively. We prove by strong induction on m that A(m) = m2m

and

M (m) =

m m 2 . 2

For the base case m = 1, the algorithm uses A(1) = 2 additions and M (1) = 1 multiplication. Hence, A(1) = 1 · 21

and

M (1) =

1 · 1 · 21 . 2

Now let m ≥ 2, and assume that, for every positive integer k < m, A(k) = k2k and M (k) = 12 k2k . Consider an arbitrary decomposition m = m1 + m2 , where m1 , m2 ≥ 1. The algorithm performs 2m1 recursive column FFTs of size 2m2 and 2m2 recursive row FFTs of size 2m1 . Therefore, A(m) = 2m1 A(m2 ) + 2m2 A(m1 ). Applying the induction hypothesis gives   A(m) = 2m1 m2 2m2 + 2m2 m1 2m1 = (m1 + m2 )2m1 +m2 = m2m . The same argument gives M (m) = 21 m2m . Therefore, the algorithm uses n log2 n additions and 21 n log2 n multiplications, independently of the decomposition m = m1 + m2 .

22

Remark 8. Algorithm 5 generalizes the butterfly phase of the LCH AFFT, recovered by choosing m1 = m − 1 and m2 = 1. Although this generalization preserves the arithmetic cost of the LCH butterfly phase for an arbitrary decomposition, it does not eliminate the polynomial basis conversion required by the LCH framework. Consequently, Algorithm 4 retains its principal implementation advantage by accepting coefficients in the standard monomial basis and avoiding the memory-access overhead associated with the conversion to the novel polynomial basis. The algorithms developed so far, namely Algorithm 1 in the general basis setting and Algorithms 4 and 5 in the full Cantor special basis setting, assume either that the evaluation subspace has no additional structure or that it admits a complete Cantor special basis. However, a binary extension field may admit a partial Cantor special basis. More precisely, a prefix of the ordered basis satisfies the Cantor recursion (see Definition 4), whereas the remaining basis vectors are generic. The next section characterizes the parameter regimes in which this advantage arises. VI. A DDITIVE FFT S IN PARTIAL C ANTOR SPECIAL BASIS The first Gao–Mateer [18] and von zur Gathen–Gerhard [17] algorithms evaluate a polynomial f (x) over an mdimensional subspace of F2k , where k is arbitrary. From Proposition 1, we know that F2k admits a Cantor special basis of dimension ℓ if and only if it contains F22⌈log2 ℓ⌉ as a subfield. Here, we focus on how a partial Cantor special basis changes the arithmetic costs of the von zur Gathen–Gerhard AFFT and Algorithm 1. For completeness, Appendix A reviews Cantor’s AFFT [16] and the von zur Gathen–Gerhard generalization. If F2k does not admit a Cantor special basis of the full evaluation dimension m, the first Gao–Mateer additive FFT is generally the preferred method. We show, however, that the von zur Gathen–Gerhard algorithm and Algorithm 1 can outperform it when a partial Cantor special basis is available. In particular, both algorithms can exploit this structure to reduce their numbers of additions and multiplications, whereas the Gao–Mateer algorithm cannot obtain the same reduction because its basis changes at each iteration. We characterize the parameter regimes in which these savings compensate for the higher general cost of the two algorithms, with particular emphasis on the case where the dimension of the evaluation subspace exceeds the dimension of the available Cantor special basis. A. Comparing Gao–Mateer and von zur Gathen–Gerhard AFFTs In this section, we first analyze the exact computational cost of the von zur Gathen–Gerhard AFFT [17]. The m−2

vanishing polynomial ZW m−1 (x) is linearized, taking the form ZW m−1 (x) = c0 x+c1 x2 +· · ·+cm−1 x2

m−1

+x2

,

and consequently, ZW m−1 (x + θ) contains m + 1 coefficients. Since the highest-degree term in ZWm−1 (x + θ) has a coefficient of one, each iteration of dividing f (x) by ZWm−1 (x + θ) requires m multiplications. Additionally, at each iteration, the highest-degree term cancels out, allowing us to omit the corresponding addition. Consequently, dividing f (x) by ZWm−1 (x + θ) requires a total of 2m−1 · m multiplications and additions. Let f (x) = q(x)ZWm−1 (x + θ) + f0 (x). Then, we can rewrite it as f (x) = q(x)ZWm−1 (x + θ + βm−1 ) + f0 (x) + q(x)ZWm−1 (βm−1 ). Since the degree of f (x) is less than n = 2m and the degree of ZWm−1 (x + θ) is 2m−1 , it follows that both q(x) and f0 (x) have degrees less than 2m−1 . This allows us to define f1 (x) = f0 (x) + q(x)ZWm−1 (βm−1 ). Thus, to

23

compute f1 (x), we require 2m−1 multiplications and additions. Thus, obtaining both f0 (x) and f1 (x) requires a total of 2m−1 · m + 2m−1 = 2m−1 · (m + 1) multiplications and additions. Similarly, for the next round we need 2 · (2m−2 m) = 2m−1 m multiplications and additions. More generally, at the rth iteration, we need 2m−1 (m + 1 − r) many multiplications and additions. Therefore, the total number of multiplications and additions in von zur Gathen– Gerhard FFT is given by m−1 X

 (m − 1)m  2m−1 (m + 1 − r) = 2m−1 (m + 1)m − 2 r=0

=

1 m 2 3 m 1 3 2 m + 2 m = n(log2 n)2 + n log2 n 4 4 4 4

(3)

Now, we will discuss the case when we have partial Cantor special basis in F2k . Suppose that f (x) ∈ F2k [x] be a polynomial of degree less than n = 2m and we want to evaluate f (x) over the affine subspace θ + Wm = θ + ⟨β0 , β1 , . . . , βℓ−1 , βℓ , . . . , βm−1 ⟩, where {β0 , β1 , . . . , βℓ−1 } is a set of Cantor special basis in the field F2k . Theorem 5. Let n = 2m , where m ≥ 3, , and let θ + Wm = θ + ⟨β0 , . . . , βm−1 ⟩ ⊆ F2k be an m-dimensional affine subspace. Suppose that the first ℓ basis elements form a Cantor special basis of maximum dimension admitted by F2k . Then the von zur Gathen–Gerhard AFFT requires  2m−2 m2 + 3m − ℓ2 − 3ℓ . finite field multiplications to evaluate a polynomial of degree less than 2m over θ + Wm . Moreover, this requires fewer multiplications than the first Gao–Mateer AFFT if and only if ℓ ≥ m − 2. Proof. Let f (x) ∈ F2k [x] have degree less than n = 2m , and suppose that f (x) is evaluated over θ + Wm . We divide the multiplication cost of the von zur Gathen–Gerhard AFFT into three parts. For the iterations indexed by r = 0, . . . , m − 1 − (ℓ + 1), the algorithm operates on the general part of the ordered basis. At iteration r, it requires 2m−1 (m + 1 − r) finite field multiplications. Hence, the total multiplication cost of these iterations is given by m−1−(ℓ+1)

X

2m−1 (m + 1 − r) = 2m−2 (m − ℓ − 1)(m + ℓ + 4).

r=0

At the (m − 1 − ℓ)th iteration, there are 2m−1−ℓ polynomials, each of degree less than 2ℓ+1 . The divisions in this step are performed by S ℓ (x + θ + ωi ), for some ωi ∈ ⟨βℓ , βℓ+1 , . . . , βm−1 ⟩. Thus, each iteration of the division by S ℓ (x + θ + ωi ) requires only one multiplication. Furthermore, since S ℓ (βℓ ) ̸= 1, each of the 2m−ℓ divisions requires 2ℓ multiplications. As a result, the total number of multiplications needed for the (m − 1 − ℓ)th iteration is 2m−ℓ · 2ℓ = 2m . After the (m − 1 − ℓ)-th iteration, the algorithm reduces to the Cantor algorithm. At this stage, there are 2m−ℓ polynomials, each of degree less than 2ℓ . Consequently, there are 2m−ℓ Cantor AFFT calls, with each call requiring a multiplication cost of 21 2ℓ ℓ (see Table I). This results in a total of 1 2m−ℓ · 2ℓ ℓ = 2m−1 ℓ 2

24

multiplications. Therefore, the overall multiplication cost for the algorithm is given by 2m−2 (m − ℓ − 1)(m + ℓ + 4) + 2m + 2m−1 ℓ (4) = 2m−2 (m2 + 3m − ℓ2 − 3ℓ). This proves the stated multiplication count. Now, we want to show for which values of ℓ, for which the multiplication cost in von zur Gathen–Gerhard algorithm will be less than the Gao–Mateer algorithm. For simplicity, we assume that the multiplication cost in Gao–Mateer multiplication cost is 32 2m m − 2m . Thus, 3 m 2 m − 2m 2

2m−2 (m2 + 3m − ℓ2 − 3ℓ) ≤ ⇐⇒ m2 + 3m − ℓ2 − 3ℓ ≤ 6m − 4 ⇐⇒ ℓ2 + 3ℓ − m2 + 3m − 4 ≥ 0 ⇐⇒ ℓ ≥ m − 2

for m ≥ 3

Consequently, whenever ℓ ≥ m − 2, the von zur Gathen–Gerhard AFFT requires strictly fewer multiplications than the first Gao–Mateer AFFT. Remark 9. If the ordered basis of Wm contains no nontrivial Cantor special prefix, then ℓ = 0. Substituting ℓ = 0 into (4), gives 14 2m m2 + 34 2m m, which agrees with the multiplication cost in (3). For the multiplication comparison, the preceding inequality shows that the von zur Gathen–Gerhard AFFT requires fewer multiplications than the first Gao–Mateer AFFT whenever ℓ ≥ m − 2, where ℓ is the maximum available dimension of the Cantor special basis. Table II reports the exact addition and multiplication counts for several finite fields and for the values of m satisfying this condition. TABLE II C OMPARISON OF THE NUMBERS OF FINITE - FIELD ADDITIONS (#A) AND MULTIPLICATIONS (#M ) REQUIRED BY THE FIRST G AO –M ATEER AND VON ZUR G ATHEN –G ERHARD AFFT S OF LENGTH 2m . H ERE , ℓ IS THE MAXIMUM AVAILABLE DIMENSION OF THE C ANTOR SPECIAL BASIS OVER THE FINITE FIELD .

First Gao–Mateer Finite field

ℓ

F210

2

F212

4

F224

8

F248

16

von zur Gathen–Gerhard

m #A

#M

#A

#M

3

36

29

32

16

4

112

81

104

72

5

320

209

256

96

6

864

513

736

416

9

13824

6401

9728

2560

10

33280

14337

25088

10752

17

11141120

3211265

6553600

1179648

18

24772608

6815745

15597568

4849664

25

The results in Table II show that the von zur Gathen–Gerhard AFFT requires fewer additions and multiplications than the first Gao–Mateer AFFT in every listed case. For example, over F210 with ℓ = 2 and m = 4, the multiplication count decreases from 81 to 72, while the addition count decreases from 112 to 104. The savings become more substantial for larger parameters. Over F248 with ℓ = 16 and m = 18, the multiplication count decreases from 6,815,745 to 4,849,664, and the addition count decreases from 24,772,608 to 15,597,568. Thus, a partial Cantor special basis can reduce both arithmetic costs when it does not span the entire evaluation subspace. B. Comparing Gao–Mateer and Algorithm 1 Following the comparison between the von zur Gathen–Gerhard and first Gao–Mateer algorithms, we now compare our proposed Algorithm 1 with the first Gao–Mateer algorithm under the same partial Cantor-basis setting. Recall that, for evaluating a polynomial of degree less than n = 2m over an affine space θ + Wm , the Gao–Mateer algorithm requires 41 n(log2 n)2 + 34 n log2 n additions and 32 n log2 n − n + 1 multiplications, respectively [14]. Hence, by the cost analysis in Section III-A, Algorithm 1 and the Gao–Mateer algorithm perform the same number of additions, whereas the Gao–Mateer algorithm requires fewer multiplications. We now turn to the case of a partial Cantor special basis in F2k . Suppose that f (x) ∈ F2k [x] be a polynomial of degree less than n = 2m , and we want to evaluate f (x) over the affine subspace θ + Wm = θ + ⟨β0 , β1 , . . . , βm1 −1 , βm1 , . . . , βm1 +m2 −1 ⟩, where {β0 , β1 , . . . , βm1 −1 } is a set of Cantor special basis in the field F2k . In this case, we have ZWm1 (x) = S m1 (x). Consequently, the Taylor expansion of f (x) with respect to ZWm1 (x) incurs no multiplication cost. In the following theorem, we determine the multiplication cost of Algorithm 1 when the first m1 element of the ordered basis of Wm form a Cantor special basis. Theorem 6. Let m = m1 + m2 , where m2 ≥ 1, and let θ + Wm = θ + ⟨β0 , . . . , βm−1 ⟩ ⊆ F2k be an m-dimensional affine subspace. Suppose that the first m1 basis elements form a Cantor special basis of maximum dimension admitted by F2k . Then Algorithm 1, with split m = m1 + m2 , requires 2m−2 m22 + 3m2 + 2m1



finite field multiplications to evaluate a polynomial of degree less than 2m over θ + Wm . Moreover, Algorithm 1 requires fewer multiplications than the first Gao–Mateer AFFT if and only if m22 − 3m2 + 4 ≤ 4m1 . Proof. Since the first m1 basis elements form a Cantor special basis, the corresponding vanishing polynomial has coefficients in F2 . Hence, the Taylor expansion on the m1 -side requires no finite field multiplications. Hence, the AT E (m1 ) term in (2) vanishes, and the multiplication cost of the Taylor expansion step in Algorithm 1 satisfies AT E (m) = 2m1 AT E (m2 ). It follows that the total multiplication cost of the Taylor expansion step is 1 1 2m1 · 2m2 (m22 − m2 ) = 2m (m22 − m2 ). 4 4 26

We now derive the multiplication performed by the recursive sub-FFTs. The 2m1 column sub-AFFTs have dimension m2 and are evaluated over a general basis. Since each requires 2m2 m2 multiplications, their total cost is 2m1 (2m2 m2 ) = 2m m2 . The 2m2 row sub-AFFTs have dimension m1 and are evaluated over the Cantor special  basis. Since each requires 12 2m1 m1 multiplications, their total cost is 2m2 21 2m1 m1 = 2m−1 m1 . Therefore, the total multiplication cost of Algorithm 1 is  1 m 2 2 (m2 − m2 ) + 2m m2 + 2m−1 m1 = 2m−2 m22 + 3m2 + 2m1 . 4 We now determine for which values of m1 the multiplication cost of Algorithm 1 is no greater than that of the Gao–Mateer algorithm. For simplicity, we use the expression 3 m 2 m − 2m = 2m−2 (6m − 4) 2 for the multiplication cost of the Gao–Mateer algorithm. Therefore, 2m−2 (m22 + 3m2 + 2m1 ) ≤ 2m−2 (6m − 4) ⇐⇒ m22 + 3m2 + 2m1 ≤ 6m − 4 ⇐⇒ m22 − 3m2 + 4 ≤ 4m1 . This completes the proof. Hence, for each fixed m1 , the condition m22 − 3m2 + 4 ≤ 4m1 determines the range of m2 for which Algorithm 1 has less multiplication cost than the Gao–Mateer count. We next determine the addition cost of Algorithm 1 under the same partial Cantor special basis assumption. Theorem 7. Let m = m1 + m2 , where m2 ≥ 1, and let θ + Wm = θ + ⟨β0 , . . . , βm−1 ⟩ ⊆ F2k be an m-dimensional affine subspace. Suppose that the first m1 basis elements form a Cantor special basis of maximum dimension admitted by F2k . Then Algorithm 1, with split m = m1 + m2 , requires 2m−2 m22 + 5m2 + 4m1 + m1 log2 m1



finite field additions to evaluate a polynomial of degree less than 2m over θ + Wm . Proof. Since m1 is the maximum dimension of a Cantor special basis admitted by F2k , it is a power of two. Moreover, the first m1 elements of the ordered basis generate a subspace Wm1 whose vanishing polynomial is m1

ZWm1 (x) = S m1 (x) = x2

+ x.

Thus, the first Taylor expansion in Algorithm 1 is performed with respect to a binomial having coefficients in F2 . Consequently, each coefficient update requires one addition and no finite field multiplication. More specifically, the Taylor expansion of a polynomial of degree less than 2m with respect to S m1 (x) requires 1 m 2 log(2m /2m1 ) = 2m−1 m2 2 additions. Also, since Wm1 is generated by a full Cantor special basis, the 2m2 row sub-AFFTs of dimension m1 recursively enjoy the same addition savings established in Theorem 3, contributing 1 2m2 · 2m1 m1 log2 m1 = 2m−2 m1 log2 m1 4 27

additions in total. Whereas, the 2m1 column sub-AFFTs of dimension m2 contribute the generic Taylor expansion step. Therefore, by Theorem 2, the total addition cost due to Taylor expansion of the column sAFFTs is given by 1 2m1 · 2m2 (m22 − m2 ) = 2m−2 (m22 − m2 ). 4 Finally, the additions performed by the recursive sub-FFTs are independent of the dimension split and contributing total 2m m additions. Adding the four contributions, the total number of additions is given by 2m−1 m2 + 2m−2 m1 log2 m1 + 2m−2 (m22 − m2 ) + 2m m  =2m−2 m22 + 5m2 + 4m1 + m1 log2 m1 . This proves the stated addition count. Remark 10. Comparing against the Gao–Mateer addition cost 2m−2 (m2 + 3m) (Table I) and substituting m = m1 + m2 , this algorithm requires no more additions than the Gao–Mateer algorithm exactly when 2m2 (1 − m1 ) ≤ m1 (m1 − log2 m1 − 1). For every m1 ≥ 2, the right-hand side is nonnegative while the left-hand side is negative for every m2 ≥ 1, so this inequality holds unconditionally. Hence, whenever a Cantor special basis of dimension m1 ≥ 2 is available, Algorithm 1 requires strictly fewer additions than the Gao–Mateer algorithm for every admissible m2 , not only within the multiplication-limited range above. Consequently, the multiplication condition m22 − 3m2 + 4 ≤ 4m1 is the sole binding constraint for Algorithm 1 to dominate Gao–Mateer in both additions and multiplications simultaneously.

TABLE III A DMISSIBLE PARAMETER RANGES FOR WHICH A LGORITHM 1, BY EXPLOITING A PARTIAL C ANTOR SPECIAL BASIS , REQUIRES FEWER FINITE FIELD MULTIPLICATIONS AND ADDITIONS THAN THE FIRST G AO –M ATEER AFFT. T HE RANGES SATISFY THE SIMPLIFIED SUFFICIENT CONDITION m2 2 − 3m2 + 4 ≤ 4m1 , WHERE m = m1 + m2 .

Finite Field

m1

Admissible range of m2

Admissible range of m

F210

2

1 ≤ m2 ≤ 4

3≤m≤6

F212

4

1 ≤ m2 ≤ 5

5≤m≤9

F224

8

1 ≤ m2 ≤ 7

9 ≤ m ≤ 15

F248

16

1 ≤ m2 ≤ 9

17 ≤ m ≤ 25

Table III shows that the admissible range generally expands as the dimension m1 of the available Cantor special basis increases. For example, over F210 , where m1 = 2, Algorithm 1 outperforms the first Gao–Mateer algorithm in both additions and multiplications for 3 ≤ m ≤ 6. Over F248 , where m1 = 16, the corresponding range is 17 ≤ m ≤ 25. Thus, when the available Cantor special basis does not span the full evaluation subspace, its partial structure yields a nontrivial range of AFFT dimensions for which Algorithm 1 has lower arithmetic costs than the first Gao–Mateer algorithm.

28

VII. I MPLEMENTATION AND B ENCHMARKING We implemented Algorithm 4 in the C programming language. We refer to the implementation of this algorithm as the Dyadic AFFT because of its hierarchical subdivision into subproblems whose sizes are powers of two. The source code is publicly available1 . Over a Cantor special basis, Algorithm 4 and the LCH AFFT both require 12 n log2 n finite-field multiplications, where n = 2m . However, unlike the LCH AFFT, which consists of separate basis-conversion and evaluation stages, our proposed Algorithm 4 has a fully recursive structure with no separate stages. This structure provides better cache locality by design, thereby reducing memory-access overhead. The memory overhead of the Dyadic AFFT is O(1), as the algorithm operates in place without requiring auxiliary buffers. Each subproblem is laid out within the input array such that the distance between successive coefficients is determined by a run-time stride parameter. Moreover, all subproblems within a given column or row loop in Algorithm 4 share the same Taylor-expansion pattern and stride, differing only in their starting offsets. This organization results in a regular and predictable memory-access pattern throughout the recursive computation. Consequently, once the working set of a subproblem fits within the cache, its descendant subproblems can be processed largely from cache, thereby reducing accesses to main memory and improving data locality. Benchmark: We benchmark our implementation of Algorithm 4 (The Dyadic AFFT) and compared its execution time with that of the LCH AFFT implementation [9] over a Cantor special basis. The LCH AFFT is a widely used method for evaluation over a Cantor special basis (e.g., [11]–[14], [25]). Both AFFT algorihtms require 1 2 n log2 n finite-field multiplications, making Algorithm 4 the most direct arithmetic comparison with LCH among

the proposed algorithms in this paper. Both implementations operate over the binary extension field F2128 . To ensure a fair comparison, our implementation directly reuses the routines provided by the LCH implementation for field multiplication and for deriving the twiddle factors required in the base case (i.e., m = 1). Experimental Setup: The experiments were conducted on two systems. Platform A is equipped with an Intel Core i5-1250P processor operating at up to 4.4 GHz, 16 GB of LPDDR5-5200 memory, and Arch Linux (kernel 6.18.37-1-lts). Platform B is equipped with an AMD Ryzen 9 9950X processor operating at up to 5.7 GHz, 64 GB of DDR5 memory, and Debian GNU/Linux 12 (kernel 6.12.12). All benchmarks were executed in a single thread. For each AFFT dimension m, each algorithm was executed 300 times. The results are reported as the arithmetic mean running time over these iterations, together with the standard deviation. The AFFT length is n = 2m , and all running times are reported in milliseconds. Benchmark Results: Let TLCH (m) and TAlgo 4 (m) denote the mean running times of the LCH AFFT and the Dyadic AFFT, respectively, at dimension m. We define the speedup of the Dyadic AFFT relative to the LCH LCH (m) AFFT as Sm = TTAlgo . Thus, Sm > 1 indicates that the Algorithm 4 is faster, whereas Sm < 1 indicates that 4 (m)

the LCH AFFT is faster. Table IV reports the mean running times of the LCH AFFT and Algorithm 4 (Dyadic AFFT), together with the corresponding speedups, on both platforms. Platform A was tested for 9 ≤ m ≤ 28, while Platform B was tested for 9 ≤ m ≤ 30. 1 https://github.com/mtbadakhshan/additive-fft/C/dyadic

29

TABLE IV B ENCHMARK COMPARISON OF THE LCH AFFT AND A LGORITHM 4 ACROSS INPUT SIZES m = 9, . . . , 30, EVALUATED ON TWO HARDWARE PLATFORMS . R EPORTED VALUES ARE MEAN RUNNING TIMES WITH STANDARD DEVIATIONS , IN MILLISECONDS , AVERAGED OVER 300 ITERATIONS . T HE SPEEDUP FACTOR Sm = TLCH /TAlgo 4 QUANTIFIES THE PERFORMANCE ADVANTAGE OF A LGORITHM 4 RELATIVE TO THE LCH AFFT AT EACH SIZE .

Platform A

Platform B

m

LCH (ms)

Algorithm 4 (ms)

Sm

LCH (ms)

Algorithm 4 (ms)

Sm

9

0.0068 ± 0.0005

0.0053 ± 0.0003

1.283

0.0058 ± 0.0002

0.0049 ± 0.0001

1.184

10

0.0144 ± 0.0004

0.0115 ± 0.0003

1.252

0.0126 ± 0.0002

0.0109 ± 0.0001

1.156

11

0.0314 ± 0.0006

0.0257 ± 0.0005

1.222

0.0271 ± 0.0003

0.0244 ± 0.0002

1.111

12

0.0689 ± 0.0008

0.0580 ± 0.0009

1.188

0.0590 ± 0.0004

0.0546 ± 0.0002

1.081

13

0.1487 ± 0.0012

0.1283 ± 0.0018

1.159

0.1269 ± 0.0013

0.1209 ± 0.0003

1.050

14

0.3209 ± 0.0049

0.2861 ± 0.0059

1.122

0.2724 ± 0.0027

0.2630 ± 0.0005

1.036

15

0.6852 ± 0.0074

0.6020 ± 0.0017

1.138

0.6169 ± 0.0052

0.6093 ± 0.0023

1.012

16

1.5652 ± 0.0057

1.4351 ± 0.0051

1.091

1.3188 ± 0.0126

1.3108 ± 0.0024

1.006

17

3.7949 ± 0.0088

3.5196 ± 0.0131

1.078

2.8022 ± 0.0253

2.8355 ± 0.0058

0.988

18

8.1758 ± 0.0465

8.0434 ± 0.0496

1.016

5.7276 ± 0.0490

5.8051 ± 0.0064

0.987

19

18.9797 ± 0.4522

16.9004 ± 0.2734

1.123

11.9291 ± 0.0674

12.2396 ± 0.0178

0.975

20

46.1808 ± 1.1991

40.7112 ± 0.7746

1.134

25.3817 ± 0.0932

26.1196 ± 0.0254

0.972

21

183.9020 ± 48.9503

142.2784 ± 34.6881

1.293

56.2517 ± 0.2424

58.4476 ± 0.1072

0.962

22

429.4120 ± 18.4772

336.0054 ± 9.5468

1.278

136.0706 ± 0.4392

130.3026 ± 0.2912

1.044

23

916.0992 ± 30.9932

676.2897 ± 16.7546

1.355

297.3184 ± 0.7391

284.1438 ± 0.4391

1.046

24

2117.3995 ± 24.1954

1491.1270 ± 17.4921

1.420

644.5942 ± 1.1382

611.6455 ± 0.8414

1.054

25

4672.1950 ± 42.1372

3207.3658 ± 50.6881

1.457

1358.2545 ± 1.7262

1301.5135 ± 1.0899

1.044

26

10102.0037 ± 48.7173

6837.3803 ± 87.0749

1.477

2861.3927 ± 2.5597

2734.3270 ± 1.4908

1.046

27

21627.2300 ± 69.4215

14943.3218 ± 123.8313

1.447

6053.9774 ± 83.5571

5871.4243 ± 89.2968

1.031

28

46802.5562 ± 293.2676

33453.8079 ± 390.4190

1.399

12825.6158 ± 194.5572 12417.0028 ± 210.6376

1.033

29

–

26757.3777 ± 304.3647 26187.5678 ± 329.0410

1.022

30

–

56927.2574 ± 743.1407 55624.5156 ± 806.8231

1.023

On Platform A, Algorithm 4 is uniformly faster than the LCH AFFT across all tested dimensions. This improvement is more significant on Platform A due to its slower memory subsystem, which amplifies the benefits of the lower memory-access overhead of our algorithm. The observed speedups range from 1.02× at m = 18 to 1.48× at m = 26. At the largest tested dimension, m = 28, our algorithm reduces the running time from 46.803 to 33.454 seconds, corresponding to a speedup of 1.40× and an absolute reduction of 13.349 seconds. On Platform B, the Algorithm 4 is faster for 9 ≤ m ≤ 16 and 22 ≤ m ≤ 30, whereas the LCH AFFT is slightly faster for 17 ≤ m ≤ 21. The largest LCH advantage is observed at m = 21, where its running time is approximately 3.8% lower. The Algorithm 4 regains the advantage at m = 22 and remains faster through m = 30. At m = 30, it reduces the mean running time from 56.927 to 55.625 seconds, corresponding to a speedup of 1.02. Overall, Algorithm 4 is faster in 37 of the 42 measured cases, including all 20 cases on Platform A and 17 of the 22 cases

30

on Platform B. The results therefore show that the proposed algorithm generally achieves lower running times than the LCH AFFT, although the relative performance depends on the transform dimension and the target platform. Discussion of Other Proposed Algorithms: We implemented Algorithm 4 for the experimental comparison. Although Algorithm 3 provides the more general framework, supporting any ordered basis and any decomposition m = m1 + m2 , over a general ordered basis it has the same addition count as the first Gao–Mateer algorithm [18] but requires more finite field multiplications. Nevertheless, Algorithm 1 offers two important advantages. First, its arithmetic complexity is independent of the dimension split (Theorem 2), allowing m1 and m2 to be selected according to the parallelism, cache hierarchy, memory capacity, and data-access characteristics of the target device. Second, when a partial Cantor special basis is available, Algorithm 1 can exploit this structure (see Section VI-B) to reduce both additions and multiplications, whereas the first Gao–Mateer algorithm cannot generally obtain the same benefit because its evaluation basis changes during the recursion. Algorithm 3 specializes this matrix-decomposition framework to a Cantor special basis and retains the freedom to choose an arbitrary split m = m1 + m2 . Thus, it also permits the dimensions of the column and row sub-AFFTs to be selected according to device-dependent considerations such as parallelism, cache utilization, and memory organization. However, an arbitrary split may increase addition count in the Taylor expansion stage. Algorithm 4 instead sets m1 = 2⌊log2 (m−1)⌋ and m2 = m − m1 at each recursive step. Since m1 is a power of two, the corresponding subspace polynomial has a binomial form, so each division step in the Taylor expansion requires only one addition. This algorithm therefore trades splitting flexibility for a lower addition count determined by the binary representation of (see Theorem 3). VIII. C ONCLUDING R EMARKS In this paper, we developed a matrix-decomposition framework for additive fast Fourier transforms (AFFTs) over binary extension fields. Motivated by the Bailey’s four-step FFT [24], the proposed framework uses Taylor expansion with respect to a subspace vanishing polynomial to arrange the coefficients of the input polynomial into a matrix and decompose the original evaluation problem into independent column and row sub-AFFTs. This formulation applies to any ordered basis and any decomposition m = m1 +m2 . The resulting general-basis algorithm requires 41 n(log2 n)2 + 43 n log2 n additions and the same number of multiplications, independently of the chosen dimension split. The Bailey-style matrix decomposition provides structural and practical advantages. In particular, this invariance permits the split to be selected according to implementation requirements, such as parallelism and memory organization, without changing the arithmetic complexity. We then specialized the framework to evaluation subspaces admitting a Cantor special basis. In this setting, the relevant subspace vanishing polynomials have binary coefficients, allowing the Taylor expansion stage to be performed without finite field multiplications. We first presented an algorithm supporting an arbitrary decomposition m = m1 + m2 , which provides flexibility in choosing the dimensions of the column and row sub-AFFTs. We then derived a recursive algorithm in which m1 is chosen as the largest power of two smaller than m. This choice preserves the binomial form of the relevant subspace vanishing polynomial throughout the recursion and minimizes the addition cost of the Taylor expansion stage. The algorithm requires exactly 12 n log2 n finite field multiplications,

31

together with a closed-form number of additions determined by the binary representation of m. Our implementation and benchmark results show that Algorithm 4 outperforms the LCH AFFT [8], [9] over a Cantor special basis in 37 of the 42 tested configurations, and at every tested dimension on one of the two platforms. We further generalized the butterfly phase of the LCH AFFT in the novel polynomial basis to an arbitrary decomposition m = m1 + m2 , showing in Theorem 4 that its cost is invariant under the split, at exactly n log2 n additions and 12 n log2 n multiplications. Finally, we formalized the notion of a partial Cantor special basis, in which only a prefix of dimension ℓ ≤ m of the ordered basis satisfies the Cantor recursion. We showed that this partial structure reduces the arithmetic costs of both the von zur Gathen–Gerhard AFFT [17] and our general-basis algorithm (Algorithm 1), whereas the first Gao–Mateer algorithm [18] cannot exploit the same advantage because its evaluation basis changes during the recursion. The advantage of the von zur Gathen–Gerhard AFFT is limited to m ∈ {ℓ + 1, ℓ + 2} by the condition ℓ ≥ m − 2 in Theorem 5. In contrast, setting m1 = ℓ allows Algorithm 1 to outperform the first Gao–Mateer AFFT over substantially wider ranges. For example, over F248 with m1 = 16, it outperforms the first Gao–Mateer AFFT for 17 ≤ m ≤ 25 (Table III). This work suggests several promising directions for future research. The first problem is to extend the proposed matrix-decomposition framework to truncated AFFTs. This would require determining how to restrict the Taylor coefficient matrix and the row and column sub-AFFTs to prescribed subsets of evaluation points, as well as deriving arithmetic complexity bounds that depend on the number and structure of the requested evaluations. The second problem is to develop Frobenius variants [13] of Algorithms 3 and 4. For polynomials over F2 , the relation f (a2 ) = f (a)2 allows the algorithms to evaluate the polynomial only at representatives of the Frobenius orbits and to recover the remaining values by repeated squaring. This requires determining how such orbit representatives relate to the Taylor coefficient matrix and to the induced row and column sub-AFFTs. The third problem is to reduce the O(n(log2 n)2 ) arithmetic complexity of Algorithm 1. This could be achieved through a more efficient Taylorexpansion stage or an alternative algebraic decomposition, while preserving the row–column structure for arbitrary ordered bases. Establishing lower bounds on the required numbers of additions and multiplications over a Cantor special basis would further clarify whether the operation counts achieved by Algorithm 4 can be reduced. R EFERENCES [1] J. W. Cooley and J. W. Tukey, “An algorithm for the Machine Calculation of Complex Fourier Series,” Mathematics of Computation, vol. 19, no. 90, pp. 297–301, 1965. [Online]. Available: http://www.jstor.org/stable/2003354 [2] S. Ames, C. Hazay, Y. Ishai, and M. Venkitasubramaniam, “Ligero: Lightweight Sublinear Arguments Without a Trusted Setup,” Designs, Codes and Cryptography, vol. 91, no. 11, pp. 3379–3424, Nov 2023. [Online]. Available: https://doi.org/10.1007/s10623-023-01222-8 [3] E. Ben-Sasson, I. Bentov, Y. Horesh, and M. Riabzev, “Scalable, transparent, and post-quantum secure computational integrity,” Cryptology ePrint Archive, Paper 2018/046, 2018. [Online]. Available: https://eprint.iacr.org/2018/046 [4] E. Ben-Sasson, A. Chiesa, M. Riabzev, N. Spooner, M. Virza, and N. P. Ward, “Aurora: Transparent Succinct Arguments for R1CS,” in Advances in Cryptology – EUROCRYPT 2019, Y. Ishai and V. Rijmen, Eds.

Cham: Springer International Publishing, 2019, pp.

103–128. [Online]. Available: https://link.springer.com/chapter/10.1007/978-3-030-17653-2 4 [5] A. Chiesa, D. Ojha, and N. Spooner, “Fractal: Post-quantum and Transparent Recursive Proofs from Holography,” in Advances in Cryptology – EUROCRYPT 2020, A. Canteaut and Y. Ishai, Eds. Cham: Springer International Publishing, 2020, pp. 769–793. [Online]. Available: https://link.springer.com/chapter/10.1007/978-3-030-45721-1 27

32

[6] S. Fu and G. Gong, “Polaris: Transparent Succinct Zero-Knowledge Arguments for R1CS with Efficient Verifier,” Proceedings on Privacy Enhancing Technologies, 2022. [Online]. Available: https://doi.org/10.2478/popets-2022-0027 [7] S. Gao, A New Algorithm for Decoding Reed-Solomon Codes.

Boston, MA: Springer US, 2003, pp. 55–68. [Online]. Available:

https://doi.org/10.1007/978-1-4757-3789-9 5 [8] S.-J. Lin, W.-H. Chung, and Y. S. Han, “Novel Polynomial Basis and Its Application to Reed-Solomon Erasure Codes,” 2014 IEEE 55th Annual Symposium on Foundations of Computer Science, pp. 316–325, 2014. [Online]. Available: https://doi.org/10.1109/FOCS.2014.41 [9] S.-J. Lin, T. Y. Al-Naffouri, and Y. S. Han, “FFT Algorithm for Binary Extension Finite Fields and Its Application to Reed–Solomon Codes,” IEEE Transactions on Information Theory, vol. 62, no. 10, pp. 5343–5358, 2016. [Online]. Available: https://ieeexplore.ieee.org/document/7543456/ [10] S.-J. Lin, T. Y. Al-Naffouri, Y. S. Han, and W.-H. Chung, “Novel Polynomial Basis With Fast Fourier Transform and Its Application to Reed–Solomon Erasure codes,” IEEE Transactions on Information Theory, vol. 62, no. 11, pp. 6284–6299, 2016. [Online]. Available: https://ieeexplore.ieee.org/abstract/document/7565465/ [11] M.-S. Chen, C.-M. Cheng, P.-C. Kuo, W.-D. Li, and B.-Y. Yang, “Faster Multiplication for Long Binary Polynomials,” arXiv: 1708.09746, 2018. [Online]. Available: https://arxiv.org/abs/1708.09746 [12] M.-S Chen and C.-M Cheng and P.-C Kuo and W.-D Li and B.-Y Yang, “Multiplying Boolean polynomials with Frobenius partitions in additive fast Fourier transform,” 2018, arXiv:1803.11301. [Online]. Available: https://arxiv.org/abs/1803.11301 [13] W.-D. Li, M.-S. Chen, P.-C. Kuo, C.-M. Cheng, and B.-Y. Yang, “Frobenius Additive Fast Fourier Transform,” in Proceedings of the 2018 ACM International Symposium on Symbolic and Algebraic Computation, ser. ISSAC 2018, 2018, p. 263–270. [Online]. Available: https://doi.org/10.1145/3208976.3208998 [14] M. Badakhshan, S. Samanta, and G. Gong, “Accelerating post-quantum secure zkSNARKs by optimizing additive FFT,” in Selected Areas in Cryptography – SAC 2025, C. Boura, A. Mashatan, and A. Miri, Eds. Cham: Springer Nature Switzerland, 2026, pp. 339–368. [Online]. Available: https://link.springer.com/chapter/10.1007/978-3-032-10536-3 13 [15] Y. Wang and X. Zhu, “A fast algorithm for the Fourier transform over finite fields and its VLSI implementation,” IEEE Journal on Selected Areas in Communications, vol. 6, no. 3, pp. 572–577, 1988. [Online]. Available: https://ieeexplore.ieee.org/document/1926 [16] D. G. Cantor, “On arithmetical algorithms over finite fields,” Journal of Combinatorial Theory, Series A, vol. 50, no. 2, pp. 285–300, 1989. [Online]. Available: https://www.sciencedirect.com/science/article/pii/0097316589900204 [17] J. v. z. Gathen and J. Gerhard, “Arithmetic and factorization of polynomial over F2 (extended abstract),” in Proceedings of the 1996 International Symposium on Symbolic and Algebraic Computation, ser. ISSAC 1996.

New York, NY, USA: Association for Computing

Machinery, 1996, p. 1–9. [Online]. Available: https://doi.org/10.1145/236869.236882 [18] S. Gao and T. Mateer, “Additive Fast Fourier Transforms Over Finite Fields,” IEEE Transactions on Information Theory, vol. 56, no. 12, pp. 6265–6272, 2010. [Online]. Available: https://doi.org/10.1109/TIT.2010.2079016 [19] N. Coxon, “Fast transforms over finite fields of characteristic two,” Journal of Symbolic Computation, vol. 104, pp. 824–854, 2021. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S0747717120301127 [20] D. J. Bernstein and T. Chou, “Faster Binary-Field Multiplication and Faster Binary-Field MACs,” in Selected Areas in Cryptography – SAC 2014, A. Joux and A. Youssef, Eds.

Cham: Springer International Publishing, 2014, pp. 92–111. [Online]. Available:

https://doi.org/10.1007/978-3-319-13051-4 6 [21] E. Ben-Sasson, D. Carmon, S. Kopparty, and D. Levit, “Elliptic Curve Fast Fourier Transform (ECFFT) Part I: Low-degree Extension in Time o(n log n) over all finite fields,” in Proceedings of the 2023 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), 2023, pp. 700–737. [Online]. Available: https://epubs.siam.org/doi/abs/10.1137/1.9781611977554.ch30 [22] U. Haböck, D. Levit, and S. Papini, “Circle STARKs,” Cryptology ePrint Archive, Paper 2024/278, 2024. [Online]. Available: https://eprint.iacr.org/2024/278 [23] S. Li and C. Xing, “Fast Fourier transform via automorphism groups of rational function fields,” in Proceedings of the 2024 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA). Society for Industrial and Applied Mathematics (SIAM), 2024, pp. 3836–3859. [Online]. Available: https://doi.org/10.1137/1.9781611977912.135 [24] D. H. Bailey, “FFTs in external or hierarchical memory,” The Journal of Supercomputing, vol. 4, no. 1, pp. 23–35, 1990. [Online]. Available: https://doi.org/10.1007/BF00162341 [25] M.-S. Chen, C.-M. Chiu, C.-T. Peng, and B.-Y. Yang, “Accelerating HQC with Additive FFT,” IACR Transactions on Cryptographic Hardware and Embedded Systems, vol. 2026, no. 2, pp. 520–544, Apr. 2026. [Online]. Available: https: //tches.iacr.org/index.php/TCHES/article/view/12898

33

A PPENDIX A VON ZUR G ATHEN –G ERHARD AND C ANTOR AFFT A LGORITHMS This section reviews the classical additive FFTs of Cantor [16] and von zur Gathen and Gerhard [17], focusing on the features used in the partial Cantor basis analysis of Section VI. Cantor introduced the additive FFT in 1989 for evaluation subspaces generated by a Cantor special basis. In 1996, von zur Gathen and Gerhard generalized Cantor’s approach to general ordered bases, at the cost of additional finite field operations. Let f (x) ∈ F2k [x] be a polynomial of degree less than n = 2m and we want to evaluate f (x) over the affine subspace θ + Wm = θ + ⟨β0 , β1 , . . . , βm−1 ⟩. The evaluation of f (x) using the Von zur Gathen–Gerhard algorithm proceeds as follows: first, compute two polynomials f0 (x) and f1 (x) such that f0 (x) = f (x) for all x ∈ θ + Wm−1 and f1 (x) = f (x) for all x ∈ θ + βm−1 + Wm−1 . The polynomials f0 (x) and f1 (x) can be obtained by taking the remainders of f (x) when divided by the vanishing polynomials of the affine subspaces. Specifically, we have f0 (x) = f (x)

mod ZWm−1 (x + θ)

and

f1 (x)

= f (x)

mod ZWm−1 (x + θ + βm−1 ).

By applying this reduction step again to AFFT(f0 , θ + Wm−1 ) and AFFT(f1 , θ + βm−1 + Wm−1 ), we continue until all the resulting polynomials f0 (x) and f1 (x) are constants. Algorithm 6: Von zur Gathen–Gerhard additive FFT of length n = 2m Input: f (x) ∈ F2k [x] of degree < n = 2m and an affine subspace θ + Wm = θ + ⟨β0 , β1 , . . . , βm−1 ⟩, where {β0 = 1, β1 , . . . , βm−1 } is any ordered basis of F2k . Output: AFFT(f, θ + Wm ). 1

if m = 0 then return f (θ).

2 3

end

4

Compute f0 (x) = f (x)

mod ZWm−1 (x + θ)

and

f1 (x) = f (x)

mod ZWm−1 (x + θ + βm−1 ).

return AFFT(f0 , θ + Wm−1 )|| AFFT(f1 , θ + βm−1 + Wm−1 ).

Cantor’s AFFT is obtained by specializing the recursion in Algorithm 6 to affine subspaces generated by a Cantor special basis. Under a Cantor special basis, the vanishing polynomials take a particularly simple form. More specifically, if {β0 = 1, β1 , . . . , βm−1 } is a Cantor special basis, then the vanishing polynomial of Wi = ⟨β0 , . . . , βi−1 ⟩ is ZWi (x) = S i (x), i.e. the i-fold composition of the mapping S (see Section II). In particular, ZWi (x) is linearized with all coefficients in F2 , so polynomial division by ZWi requires zero F2k -multiplications.

34

Related documents

Record · ID 479995 · SHA-256 947230143835a529
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Bring this data into your agent: Connect via MCP or API · 20 free credits to start · no card required
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive