We present a quadratic Goldreich–Levin algorithm that is nearly optimal in the following ways. Given a bounded function $f : \mathbb{F}^n_2 \to \mathbb{R}$ and any $\varepsilon > 0$, the algorithm outputs a quadratic polynomial $q : \mathbb{F}^n_2 \to \mathbb{F}_2$ whose correlation with $(−1)^q$ is within an additive $\varepsilon$ of the maximum achievable correlation with any quadratic phase function. It runs in $O_{\varepsilon}(n^3)$ time and makes $O_{\varepsilon}(n^2 \log n)$ queries to $f$, matching the information-theoretic lower bound up to a logarithmic factor. The design of our algorithm draws on ideas from recent advances in quantum learning theory and departs from previous approaches based on algorithmic proofs of the inverse theorem for the Gowers uniformity norms.

doi.org/10.1137/1.9781611978971.224
37th Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2026
Algorithms and Complexity

Briët, J.& Castro-Silva, D. (2026). A near-optimal quadratic Goldreich-Levin algorithm. Proceedings of the Annual ACM-SIAM Symposium on Discrete Algorithms, 6233–6239.https://doi.org/10.1137/1.9781611978971.224