FFT Complexity: OpenAI’s Proof That Cuts the Logarithmic Exponent in Half

A radix-two FFT on 2k2^k samples has kk butterfly stages. OpenAI’s November 24, 2026 preprint reduces the work while computing every output exactly. For finite Fourier transforms on NN points, the optimal FFT complexity is N(log⁡N)1/2+o(1)N(\log N)^{1/2+o(1)} in the binary linear circuit model. The lower bound scales as Nlog⁡NN\sqrt{\log N}, and the upper bound approaches the same exponent. This halves the classical logarithmic exponent in the gate count.

1. FFT Complexity: The 60-Year Quest to Find the True Computational Limit

The discrete Fourier transform (DFT) converts samples xjx_j into frequency coefficients x^k\widehat{x}_k. For a cyclic transform, choose a primitive NNth root of unity ω\omega. Then

𝒙^𝒌=∑𝒋=0𝑵−1𝝎𝒋𝒌𝒙𝒋,0≤𝒌<𝑵.\boldsymbol{\widehat{x}_k=\sum_{j=0}^{N-1}\omega^{jk}x_j,\qquad 0\le k<N.}

Summing NN terms for each of NN outputs takes quadratic work. Sharing work also speeds convolution and polynomial arithmetic.

Theorem 1.1 at a glance. Bounds count exact field operations in the binary linear gate model.
QuestionWhat the Paper Proves
How much work?At least cNlog⁡NcN\sqrt{\log N} gates per transform. The upper bound has logarithmic exponent 1/2+ε1/2+\varepsilon for every fixed ε>0\varepsilon>0.
Which transforms?Forward or inverse transforms on finite abelian groups over fields with the necessary roots of unity and invertible group order.
Can gates mix inputs?Yes. Even with shared gates, the lower bound scales with the number of independent transforms of the same order.

2. Why Was Nlog⁡NN\log N Considered the Fundamental FFT Barrier?

Cooley–Tukey splits an even-length transform into transforms of the even and odd samples. Each butterfly scales an odd contribution by a root of unity and combines it with an even contribution by addition and subtraction. At power-of-two lengths, each recursive level costs linear work.

𝑻(𝑵)=2𝑻(𝑵/2)+𝑶(𝑵).\boldsymbol{T(N)=2T(N/2)+O(N).}

There are log2⁡N\log_2 N levels with O(N)O(N) work per level. In Morgenstern’s bounded-coefficient model, the unnormalized complex Fourier determinant has modulus NN/2N^{N/2}, and each addition can at most double the largest determinant modulus attainable from available linear forms. That forces at least 12Nlog2⁡N\tfrac12 N\log_2 N additions. An arbitrary scalar can defeat that per-step growth bound, so the argument depends on the coefficient restriction.

OpenAI’s September result already saved a fixed positive power of the logarithm for exact complex DFTs at every length. It accounted for indexing and scalar preparation from a supplied root of unity. November’s theorem counts binary linear gates and establishes a matching logarithmic exponent across admissible fields.

3. What OpenAI Actually Proved: The Optimal Logarithmic Exponent

A gate forms au+bvau+bv from two available values with arbitrary coefficients a,ba,b in the field KK. Values can be reused, and an output can select and scale a single available value. Let CK(T)C_K(T) be the minimum gate count for the target map TT. For a finite abelian group GG, the Fourier matrix FGF_G lists the values of the characters, homomorphisms from GG into the nonzero elements of KK. The order NN must be invertible in KK, and KK must contain a primitive root of unity of order equal to the group exponent, the least common multiple of its element orders.

Theorem 1.1 covers JJ independent transforms of common order N≥2N\ge 2, allowing different groups and mixed forward and inverse transforms. For absolute c>0c>0 and a constant CεC_\varepsilon depending only on ε>0\varepsilon>0, it gives

𝑪𝑲(𝑻)≥𝒄𝑱𝑵log⁡𝑵,𝑪𝑲(𝑻)≤𝑪𝜺𝑱𝑵(1+log⁡𝑵)1/2+𝜺.\boldsymbol{\begin{gathered}C_K(T)\ge cJN\sqrt{\log N},\\ C_K(T)\le C_\varepsilon JN(1+\log N)^{1/2+\varepsilon}.\end{gathered}}

The logarithms are base two. For a single transform this reads

𝑪𝑲(𝑻)=𝑵(log⁡𝑵)1/2+𝒐(1).\boldsymbol{C_K(T)=N(\log N)^{1/2+o(1)}.}

Here o(1)o(1) in the exponent tends to zero as NN grows. Whether a constant times Nlog⁡NN\sqrt{\log N} suffices remains open.

3.1. The Proof in Five Stages

OpenAI’s release record identifies the preprint in family 379. This roadmap follows the written proof. The sources provide no step-by-step discovery account.

  1. Find a geometric signature. Place copies of the Fourier matrix’s indices on a rectangle so one measurement reflects both rank and the pattern of nonzero entries.
  2. Turn a small circuit into a testable matrix. Repeat its states across auxiliary time slots and cut long paths. Too few states would leave a rank and sparsity budget that the Fourier signature excludes.
  3. Predict the product of operations. On prime-radix arrays, replace many commuting operations by a low-degree polynomial that gives the right multiplier for most rows at each frequency.
  4. Recover the exceptions. Convert a small set of check rows to frequency coordinates, identify the missing corrections there, and lift them back to every affected row.
  5. Make the stages cheap and extend them. Share short Fourier calls through common routes, recurse on smaller slices, then use synchronized operations and field extensions for general group orders.

4. Tensor Geometry: Turning Fourier Complexity Into a Geometric Problem

	FFT Complexity geometry example comparing the Fourier table price of 32 with the permutation matrix price of 28.
FFT Complexity geometry example comparing the Fourier table price of 32 with the permutation matrix price of 28.

Strassen’s asymptotic spectrum measures tensors using quantities that respect local linear maps, tensor products and direct sums. The companion geometry paper turns these quantities into prices for tensors whose indices occupy sites in the plane. A wire sharing a label with qq possible values costs the distance between its sites times log⁡q\log q. A placed matrix tensor uses four indices: two copies of the row label on the left, two copies of the column label on the right.

At height zero the price reads width times log rank. At width zero it reads height times log support, the logarithm of the number of nonzero entries. Between those extremes, both labels can meet at the center. Supplying each label to its side’s two corners and the center costs its triangle’s semiperimeter times log⁡N\log N. A local map applies the matrix entry, giving a universal upper price.

Why does Fourier attain it? In suitable character coordinates, conjugating a Fourier phase by a change of basis implements controlled addition. Two phases, using opposite registers as controls, yield a swap up to an invertible diagonal weight after local basis changes. In the geometry of the proof, the weighted swap costs exactly as much as transporting the labels along two full diameters. Convexity lifts the resulting tight linear price constraints through the contraction, forcing the first phase to meet the upper price. Thus Theorem 2.2 gives

𝑷𝑭𝑮(𝑳,𝑾)=(𝑳+𝑳2+𝑾2)log⁡𝑵.\boldsymbol{P_{F_G}(L,W)=\left(L+\sqrt{L^2+W^2}\right)\log N.}

A permutation shares one label across all four corners, so its price is (L+W)log⁡N(L+W)\log N. For N=16N=16, L=3L=3 and W=4W=4, the diagonal is 55. The Fourier price is 3232 and the permutation price is 2828, despite both matrices having rank 1616.

The Rectangle Test Row labels occupy the left corners. Column labels occupy the right corners. Both labels are supplied to the center. Row label x Column label y L W O
The two label triangles meet at the center, where the matrix entry sets the coefficient.

5. The Lower Bound: Why Fourier Transforms Cannot Beat the Square Root

With width one and small height LL, the Fourier price exceeds the permutation price by (1+L2−1)log⁡N(\sqrt{1+L^2}-1)\log N, approximately 12L2log⁡N\tfrac12 L^2\log N. At height on the order of 1/log⁡N1/\sqrt{\log N} the gap is already constant. Rank by itself misses this curvature. Density by itself also fails: over the rationals, a dense invertible map can be computed cheaply by first forming the sum of the inputs and then adding it to each input.

Test the combined input and output list [INFG][I_N\; F_G] in symmetric character coordinates. Pairing two copies exposes Fourier tables in the off-diagonal blocks of a Gram matrix. The geometric lower bound survives a small fractional rank loss. To remove a low-rank correction across a batch, row reduction and a scaling limit recover separate block projections. Their rank losses total at most the original budget, so most blocks keep the geometric obstruction.

Next, copy each scalar state across dd time slots. A shift produces the target transfer on the time diagonal. A rank-one change to the shift makes it nilpotent, killing paths that visit dd states. Each surviving output row depends on at most d2d−1d2^{d-1} copied input entries. The resulting rank correction costs at most one dimension per state. Taking dd on the order of log⁡N\sqrt{\log N} makes a sparse transfer with too small a rank correction incompatible with the list test. In particular, one transform requires

𝑪𝑲(𝑻)≥𝒄𝑵log⁡𝑵.\boldsymbol{C_K(T)\ge cN\sqrt{\log N}.}

Theorem 1.2 also permits feedback with a unique solution and simultaneous corrections of rank at most βh\beta h and support at most ηh2log⁡N/8\eta h\,2^{\sqrt{\log N}/8}, where h=JNh=JN and β,η>0\beta,\eta>0 are absolute constants. The bound also holds under joint algebraic limits (Zariski closure).

6. The Upper Bound: Predicting Fourier Operations Instead of Computing Every Stage

	FFT Complexity example where six of eight shifts predict the correct sign at each of two frequencies.
FFT Complexity example where six of eight shifts predict the correct sign at each of two frequencies.

In the Walsh–Hadamard case the target, up to scaling, phases and a permutation, is a product of mm commuting queries. A common spectral basis makes each query act at a given frequency by a sign. The product depends only on whether the number of minus signs is even or odd.

Give different batch rows all possible sign shifts equally often. At each frequency the shifted minus-sign count cc follows a binomial distribution across rows. Nearly all rows fall within a window of width O(mlog⁡m)O(\sqrt{m\log m}). A polynomial of that degree in the query multipliers gives the correct sign throughout the window after undoing the known shift. The proof linearizes that polynomial into the same order of stages, each combining query operators linearly across rows.

For three binary queries, let kk encode the query signs, let β\beta be the row’s shift and let cc be the Hamming weight, or number of ones, of their bitwise sum modulo two. When c=1c=1 or 22, the linear predictor is (−1)|β|(2c−3)(-1)^{|\beta|}(2c-3). For k=𝟶𝟶𝟶k=\texttt{000}, the exceptional shifts are 𝟶𝟶𝟶\texttt{000} and 𝟷𝟷𝟷\texttt{111}. For k=𝟶𝟶𝟷k=\texttt{001}, they are 𝟶𝟶𝟷\texttt{001} and 𝟷𝟷𝟶\texttt{110}.

Three Binary Queries Across the eight shifts, Hamming weights zero through three occur one, three, three and one times. Weights one and two are inside the exact prediction window. Shifts 3210 0 1 2 3 Shifted Hamming weight Exact Needs repair
Six of the eight shifts land in the exact window for the three-query example.

7. Exact Spectral Repair: How the Algorithm Corrects Every Prediction Error

	FFT Complexity diagram showing how 2s check rows recover and lift a correction to all W rows.
FFT Complexity diagram showing how 2s check rows recover and lift a correction to all W rows.

Converting every row to the spectral basis would consume the savings. Instead, for WW rows, Theorem 4.1 converts just 2s2s check rows in each direction, with s≤W/(2m3)s\le W/(2m^3). It takes ss linear checks of the input and the same ss checks of the prediction. At each frequency, subtracting the input checks times the target multiplier from the prediction checks isolates the checks of the error.

The shifts and query exponents locate every possible error. A Vandermonde system recovers their values from the compressed checks. To lift the correction back without transforming every row, the proof modifies the predictor by a polynomial whose difference from the target has a double zero at the target multiplier. The table returns two sets of checks that lift to rows ZZ and their exact transforms FZFZ. The circuit subtracts PZ−FZPZ-FZ, where PP is the original predictor, from the modified prediction. At an exceptional position the subtraction cancels the entire residual error. Everywhere else the multipliers of PP and FF agree, so the correction is zero. Concentration controls the cost, while algebra guarantees exactness.

8. Shared Routing and Recursion: Achieving the New FFT Complexity

A stage can request all mm queries in different directions. The circuit routes weighted sums of source rows to sets of destinations through common coordinate maps. The weighted rectangles sum to the identity matrix on row labels, canceling transfers between different inputs. On rectangles of source and destination labels with orthogonal directions, partial Fourier transforms at the endpoints are independent of the query index. Sources transform once, and destinations add the query contributions before finishing the transform.

The finite template reduces a transform on AfAf prime-radix digits to fewer than AθA^\theta calls on ff-digit axes per row for any chosen θ>1/2\theta>1/2, averaged across the batch. Fixing inactive digits of a single large array supplies the independent slices the template needs. The work per entry then obeys a recurrence with child digit count near k/Ak/A and multiplier strictly below AθA^\theta. Induction gives overhead O((1+k)θ)O((1+k)^\theta), where kk is the number of digits. The general-field extension below preserves the exponent and gives, for one transform,

𝑪𝑲(𝑻)≤𝑪𝜺𝑵(1+log⁡𝑵)1/2+𝜺.\boldsymbol{C_K(T)\le C_\varepsilon N(1+\log N)^{1/2+\varepsilon}.}

9. From Walsh–Hadamard to General Fourier Transforms and Polynomial Multiplication

A finite abelian group splits into cyclic factors, whose Fourier matrices evaluate polynomials on geometric grids of roots of unity. To avoid paying for each axis separately, the proof synchronizes operations and packs independent fibers into extension-field coordinates. The extensions supply auxiliary roots missing from the base field, with work charged back to base-field coordinates. In characteristic zero, a single deformation parameter handles all cyclic factors in the convolution construction. In positive characteristic, roots with short Frobenius periods control extension sizes.

Formal polynomial multiplication has the same exponent over every field. Theorem 7.1 supplies the division-free upper bound. For the lower bound, the proof extends to an algebraic closure and uses Bluestein’s chirp identity. Set b(t)=t(t−1)/2b(t)=t(t-1)/2, so b(i)+b(−j)−b(i−j)=ijb(i)+b(-j)-b(i-j)=ij. This writes the Fourier coefficient weight qijq^{ij} for a primitive root qq as input and output scalings around a convolution with a fixed sequence. Fix one polynomial operand to that sequence and retain the linear part of each arithmetic gate. A circuit for multiplication would then compute a comparable-size Fourier transform, inheriting its lower bound. The argument also covers independent products in one division-free circuit.

10. Will OpenAI’s Fourier Transform Algorithm Actually Be Faster?

The exponent describes gate counts for exact field operations. Practical FFT time depends on how many arrays must be moved, the price of permutations and data packing, and whether the working rows fit in cache. Choosing a smaller ε\varepsilon can demand a larger fixed template. The crossover against conventional FFT libraries remains unknown.

For a normalized Walsh–Hadamard transform on an even number of address bits, Proposition 5.2 bounds amplification of sufficiently small relative gate perturbations by a polynomial in the digit count. That leaves the performance and stability of a general floating-point implementation to be established. Sparse Fourier algorithms exploit structure in the signal or spectrum, and a quantum Fourier transform acts on amplitudes. Here the task is to compute every output coordinate for arbitrary input data.

11. Proof Verification, Remaining Limitations and the Future of FFT Complexity

OpenAI’s Lean scope notes cover forward and inverse Fourier bounds for single transforms and batches, the robust lower bound, and a formal polynomial multiplication upper bound. The polynomial multiplication lower bound remains unformalized. Independent review can examine the correspondence between the encoded proofs and the paper.

The open question in FFT complexity is whether O(Nlog⁡N)O(N\sqrt{\log N}) gates suffice. Tensor geometry establishes the circuit lower bound, and the exact construction approaches its exponent. Follow Binary Verse AI for research explainers grounded in original papers and proofs.

What is the new FFT complexity proved by OpenAI?

The optimal logarithmic exponent is 1/21/2. A finite Fourier transform of order NN over an admissible field has a minimum binary linear circuit size of N(log⁡N)1/2+o(1)N(\log N)^{1/2+o(1)}. The field must contain the required roots of unity and make NN invertible.

Why is the FFT traditionally faster than the DFT?

Directly evaluating the discrete Fourier transform (DFT) takes O(N2)O(N^2) operations. A traditional fast Fourier transform (FFT) computes the same transform by factoring it and reusing intermediate sums, bringing the cost down to O(Nlog⁡N)O(N\log N).

How did OpenAI break the FFT complexity barrier?

The proof uses Euclidean tensor geometry to derive the lower bound. The upper bound combines polynomial prediction, exact spectral repair, shared routing and recursive transforms on smaller slices.

Is O(Nlog⁡N)O(N\sqrt{\log N}) now the exact optimal FFT complexity?

The lower bound is Ω(Nlog⁡N)\Omega(N\sqrt{\log N}). The paper proves an upper bound of Oε(N(log⁡N)1/2+ε)O_\varepsilon(N(\log N)^{1/2+\varepsilon}) for every fixed ε>0\varepsilon>0. Whether O(Nlog⁡N)O(N\sqrt{\log N}) gates suffice remains open.

Can a linear-time Fourier transform algorithm exist?

The lower bound rules out O(N)O(N) gates for exact Fourier transforms in the specified binary linear circuit model. A different model would require its own lower bound.

Will OpenAI’s proof make practical FFT implementations faster?

That remains open. The proof counts exact algebraic gates. An implementation would also pay for data movement, memory use, finite-precision arithmetic and the fixed overhead of the circuit construction.

Has OpenAI’s Fourier transform proof been formally verified?

OpenAI’s Lean development covers the main upper and lower bounds for individual and batched Fourier transforms, including the robust lower bound. The paper’s formal polynomial multiplication lower bound remains unformalized. Lean verification and independent peer review assess different aspects of the work.

Leave a Comment