Summary
Binary 3-query locally decodable codes with arbitrary encoders and adaptive decoders require exponential length above a new correctness threshold. At corruption fraction $1/5$, the cutoff is about $0.576371$, compared with $0.608$ in the Gál–Mills bound. A correlated corruption law uses an auxiliary message sharing the target bit with the true message. Conditioning on a bounded number of codeword bits gives concentration of the number of flips.
Approach
I tried to make all three-position observations lose their target correlation. The linear attack in the previous attempt does this in part of its parameter range, but it uses exact linear target identities. For arbitrary encoding, I instead couple to a second message with the same target bit. After removing highly correlated observations of one or two positions, the conditional product of three corrupted signs has two main terms with opposite signs. Their difference gives the new bound.
Claims
- [proved] For $0<\delta\le1/4$ put $$
P(\delta)=\frac12+\frac12\max_{0\le u\le1}
u\left((1-2\delta)^3-\frac{8\delta^3}{(2-u)^3}\right).
$$ For every fixed success probability $s>P(\delta)$, any binary 3-query LDC tolerating corruption $\delta$ and succeeding with probability at least $s$ has length $n\ge 2^{\Omega_{\delta,s}(k)}$ for sufficiently large $k$. The encoding may be nonlinear and the decoder may be adaptive. The threshold is strictly below $\frac12+\frac12(1-2\delta)^3$ for all $0<\delta\le1/4$. At $\delta=1/5$, $P(\delta)<0.577$.
Details
Use signs for bits. Let $F_j(X)\in\{-1,1\}$ denote the $j$th encoded sign of message $X\in\{-1,1\}^k$. For a target coordinate $i$ write $Z=X_i$. All entropies are in bits. The proof constructs a message prior and an adversary for one fixed target.
1. Choosing a prior with small average covariance
For any fixed $0<\chi<1$, starting with uniform $X$, one can condition on $O_\chi(1)$ answers of the form $F_j(X)$ so that the resulting prior satisfies $$
H(X)\ge k-L_\chi,\qquad
\frac1{n^2}\sum_{j,l=1}^n
|\operatorname{Cov}(F_j(X),F_l(X))|\le\chi ,
\tag{1}
$$ where $L_\chi$ depends only on $\chi$. Here is the correlation-rounding argument. Use the potential $n^{-1}\sum_j\operatorname{Var}(F_j)$, which lies in $[0,1]$. If the second inequality fails, the average squared covariance is greater than $\chi^2$. For some $l$, the mean decrease of the potential when conditioning on $F_l$ is at least $\chi^2$. In fact the variance decomposition and the binary nature of $F_l$ give a decrease for coordinate $j$ of $\operatorname{Cov}(F_j,F_l)^2/\operatorname{Var}(F_l)$. A constant $F_l$ cannot be the selected coordinate.
A drop of at least $\chi^2/2$ occurs on branches of total probability at least $\chi^2/2$, since the drop never exceeds one. One of the at most two branches giving that drop has probability at least $\chi^2/4$. Follow such a branch. There can be at most $\lceil2/\chi^2\rceil$ steps. The retained prior is uniform on its fiber, whose probability under the initial law is at least $(\chi^2/4)^{\lceil2/\chi^2\rceil}$. This gives (1) with $L_\chi=\lceil2/\chi^2\rceil\log_2(4/\chi^2)$.
2. Removing short observations of one target
Fix $\eta\in(0,1/4]$ and $\gamma>0$ as constants, to be chosen below. For each target $i$, mark a singleton $j$ if $|\mathbb E X_iF_j|>\eta$, and put an edge on two distinct positions $j,l$ if $|\mathbb E X_iF_jF_l|>\eta$. Expectations are under the prior in (1). Unless $$
k\le \frac{L_\chi}{1-h_2((1+\eta)/2)}
+ \frac{L_\chi+\log_2(2n)}{1-h_2(1/2-\gamma\eta/16)},
\tag{2}
$$ there is a target with bias at most $\eta$, at most $\gamma n/4$ marked singletons, and maximum edge matching size at most $\gamma n/8$. It then suffices to overwrite a set $S$ of size at most $\gamma n/2$ to a fixed value. Use all marked singletons and both endpoints of a maximum matching, which meet every edge. For surviving distinct positions, we have $$
|\mathbb E Z|\le\eta,\qquad
|\mathbb E ZF_j|\le\eta,\qquad
|\mathbb E ZF_jF_l|\le\eta.
\tag{3}
$$
To prove (2), first $\sum_i(1-H(X_i))\le L_\chi$, so at most its first term can have bias exceeding $\eta$. For the other two tests, append $n$ dummy signs equal to one. A target failing either test has a matching of more than $\gamma n/8$ pairs of signs, each with target correlation of absolute value greater than $\eta$. For singletons pair each marked position with its own dummy. For the pair test use its original matching.
Here is the random-access bound for this potentially nonuniform prior. Encode each message as the pure quantum state $(2n)^{-1/2}\sum_j F_j(X)|j\rangle$ on the $2n$ positions, with the dummy signs included. For each matching use the observable whose only nonzero entries are the two symmetric off-diagonal entries for each matched pair, equal to the sign of that pair's target correlation. Its norm is at most one. The binary measurement with effects $(I\pm A)/2$ for this observable $A$ predicts $X_i$ with advantage at least $\gamma\eta/16$, by summing the matched-pair contributions. The quantum state $Q$ has $I(X;Q)\le\log_2(2n)$. If $b$ targets have such matchings, data processing and binary Fano give $H(X_i\mid Q)\le h_2(1/2-\gamma\eta/16)$ for those targets. Strong subadditivity gives $H(X\mid Q)\le\sum_i H(X_i\mid Q)$. Combining these with (1) gives $b[1-h_2(1/2-\gamma\eta/16)]\le L_\chi+\log_2(2n)$. This proves (2).
3. Corrupting with an auxiliary message
Choose a flip parameter $0<a<\delta$, and now use $\gamma=\delta-a$ in the preceding step. Let $\mu_{J,z}=\mathbb E[\prod_{j\in J} F_j(X)\mid Z=z]$ and $m_J=\mathbb E\prod_{j\in J}F_j(X)$. For $J$ of size one or two among the surviving positions, (3) implies $$
|\mu_{J,z}-m_J|\le \frac{2\eta}{1-\eta}\le3\eta
\qquad (z\in\{-1,1\}).
\tag{4}
$$ In particular both target conditionals are defined.
On actual message $X$, sample $X'$ from the prior conditional on its target bit being $Z(X)$, independently of the rest of $X$ given $Z$. For each surviving position form $G_j$ from $F_j(X')$ as follows. Keep the sign with probability $c_{j,z}=1/(1+|\mu_{\{j\},z}|)$, and otherwise return the constant sign opposite to the sign of $\mu_{\{j\},z}$. The channel coins are independent over positions. Then $G_j$ is fair conditional on $Z=z$ and $$
\mathbb E[G_j\mid X',Z=z]
=c_{j,z}(F_j(X')-\mu_{\{j\},z}).
\tag{5}
$$ Independently over positions conditional on $X$ and these $G_j$, flip position $j$ with probability $a(1+F_j(X)G_j)$, which lies in $[0,1]$. Write $Y_j$ for the resulting sign. Overwritten positions are assigned their fixed signs. With $A=1-2a$ and $D=2a$, each surviving position has $$
\mathbb E[Y_j\mid X,(G_l)_l]=A F_j(X)-D G_j.
\tag{6}
$$
The number $K$ of flips outside $S$ has expectation at most $an$ even conditional on the true $X$. For distinct surviving $j,l$, the covariance of their flip indicators conditional on $X$ is $$
a^2 F_j(X)F_l(X)\mathbb E[G_jG_l\mid Z(X)].
$$ By (5) its absolute value is at most $a^2|\operatorname{Cov}(F_j,F_l\mid Z)|$. By (4), conditioning on either target value changes this last covariance from the prior covariance by at most $9\eta$. Hence, uniformly over $X$, $$
\operatorname{Var}(K\mid X)\le n/4+a^2 n^2(\chi+9\eta).
$$ Since overwriting costs at most $\gamma n/2$, the probability of exceeding the allowed Hamming budget is at most $$
\frac{1/n+4\chi+36\eta}{\gamma^2}.
\tag{7}
$$ This estimate uses Chebyshev at distance $\gamma n/2$ from the mean and the looser bound $a^2\le1$.
4. The remaining triple correlations
Write $c_j=(1+|m_{\{j\}}|)^{-1}$, and let $\Gamma_{J,z}=\mathbb E[\prod_{j\in J}G_j\mid Z=z]$. By (4), $|c_{j,z}-c_j|\le3\eta$. Each $\Gamma_{\{j\},z}=0$. For distinct $j,l$, let $$
\Gamma_{jl}=c_jc_l(m_{\{j,l\}}-m_{\{j\}}m_{\{l\}}).
$$ The corresponding conditional moment differs from $\Gamma_{jl}$ by at most $15\eta$, using (4) for the covariance and (5) for the scaling. In particular $|\Gamma_{jl}|\le1$.
Equation (6), together with conditional independence of the true and auxiliary messages given $Z$, bounds each singleton's target correlation by $\eta$. It bounds each pair's by $A^2\eta+D^2(15\eta+\eta)\le5\eta$. For a triple $J$ of distinct surviving positions let $t=\mathbb E[Z\prod_{j\in J}F_j(X)]$ and $c_J=\prod_{j\in J}c_j$. Then $$
\left|\mathbb E\left[ Z\prod_{j\in J}Y_j\right]
-(A^3-D^3c_J)t\right|\le 27\eta .
\tag{8}
$$ For completeness, in the product expansion of (6) the three terms containing one auxiliary sign vanish. Each of the three terms with two auxiliary signs contributes $AD^2$ times a number of absolute value at most $19\eta$, since $\mu_{\{j\},z}\Gamma_{J\setminus\{j\},z}$ lies within $18\eta$ of $m_{\{j\}}\Gamma_{J\setminus\{j\}}$ and $|\mathbb E Z|\le\eta$. For the last term (5) gives $$
\Gamma_{J,z}=\left(\prod_{j\in J}c_{j,z}\right)
\left(\mu_{J,z}
-\sum_{j\in J}\mu_{\{j\},z}\mu_{J\setminus\{j\},z}
+ 2\prod_{j\in J}\mu_{\{j\},z}\right).
$$ The expression after $\mu_{J,z}$ differs by at most $36\eta$ from replacing its conditional means with prior means. The replacement is bounded in absolute value by five. The three scale factors differ in product by at most $9\eta$. Thus $|\mathbb E[Z\Gamma_{J,Z}]-c_J t|\le(36+45+9+5)\eta=95\eta$. Since $A\le1$ and $D\le1/2$, the combined error is at most $(57/4+95/8)\eta<27\eta$.
Now write $u=|t|$. Multiplying the uncorrupted triple by $F_j$ exchanges it for the product of the other two positions. The mismatch probability between the uncorrupted triple and $\operatorname{sign}(t)Z$ is $(1-u)/2$. Therefore for every $j\in J$, $$
|m_{\{j\}}|\le 1-u+|\mathbb E Z\prod_{l\in J\setminus\{j\}}F_l|\le1-u+\eta .
$$ This implies $c_J\ge (2-u+\eta)^{-3}\ge(2-u)^{-3}-3\eta$. Also $A^3\ge D^3$ for $a\le1/4$, so $A^3-D^3c_J$ is nonnegative. Equation (8) now gives $$
\left|\mathbb E\left[Z\prod_{j\in J}Y_j\right]\right|
\le 2P(a)-1+28\eta.
\tag{9}
$$
Fix a decoder seed, prune overwritten positions and queries that repeat an earlier answer, and view the resulting decoder as a binary decision tree. A leaf with $m\le3$ fresh queries has indicator $2^{-m}\prod_{j}(1+y_jY_j)$, where the signs $y_j$ are those prescribed on its path. In the correlation of that indicator with $Z$, the constant term has size at most $\eta$, the singleton terms at most $3\eta$, the pair terms at most $15\eta$, and the single possible triple at most $2P(a)-1+28\eta$. The weights $2^{-m}$ sum to one, as is seen by walking the pruned tree with independent fair answers. Summing over leaves with their signed outputs and then averaging the seed bounds success by $P(a)+24\eta$. This also applies to the frozen model, whose queries are fixed by the seed.
5. Concluding the length bound
The function $P$ is continuous because it maximizes a continuous expression on a fixed compact interval. Let $\Delta=s-P(\delta)>0$. Choose $0<a<\delta$ close enough that $P(a)\le P(\delta)+\Delta/4$, and set $\gamma=\delta-a$. Choose positive $\chi,\eta$ small enough that $24\eta\le\Delta/8$ and (7) is at most $\Delta/8$ for sufficiently large $n$. The adversarial guarantee gives unconditional decoding success at least $s-\Delta/8$. The preceding calculation gives success at most $P(\delta)+3\Delta/8$, a contradiction. Therefore (2) must hold. Its positive entropy denominators and all its parameters are constants determined by $\delta,s$, giving exponential length. Injectivity implies $n\ge k$ since $s>1/2$, so excluding finitely many small $n$ has no effect.
For every $u\in[0,1]$ and fixed $\delta>0$, the displayed expression defining $2P(\delta)-1$ is strictly smaller than $(1-2\delta)^3$ on the entire interval, including $u=0$ since $\delta\le1/4$. The old and new thresholds are thus strictly separated.
Verification
The argument uses conditional concentration for every actual message in the selected fiber. The auxiliary message depends on the actual target value, which is permitted because the LDC guarantee is worst-case over the message and its corruptions. The Fourier expansion is over obtained query answers, and the number of fresh queries is at most three even in the adaptive case. The quantum encoding is used only to prove the pair-cover bound. No quantum access is assumed for the LDC.
For $\delta=1/5$, set $\phi(u)=u[(1-2\delta)^3-8\delta^3/(2-u)^3]$. Its derivative decreases strictly on $[0,1]$ and changes sign between $961/1000$ and $481/500$. Bounding each factor using these endpoints gives $P(1/5)<577/1000$. For smaller $\delta$ satisfying $(1-2\delta)^3\ge32\delta^3$, the derivative at one is already nonnegative, so the formula simplifies to $1-3\delta+6\delta^2-8\delta^3$.
The following exact check tests the threshold calculation and the coupling identity on a small rational distribution with biased and correlated query signs. The prior has zero correlation between the target and every product of fewer than three signs. It explicitly averages over the true and auxiliary words and the auxiliary neutralization coins.
from fractions import Fraction as Q
from itertools import product
from math import prod
delta = Q(1, 5)
base, cubic = (1 - 2 * delta)**3, 8 * delta**3
lower, upper = Q(961, 1000), Q(481, 500)
derivative = lambda u: base - cubic * (2 + 2 * u) / (2 - u)**4
assert derivative(lower) > 0 > derivative(upper)
assert (1 + upper * (base - cubic / (2 - lower)**3)) / 2 < Q(577, 1000)
words = list(product((-1, 1), repeat=3))
means = (Q(1, 5), Q(-1, 4), Q(1, 8))
scales = tuple(1 / (1 + abs(mean)) for mean in means)
t = Q(1, 4)
prior = {}
for z in (-1, 1):
prior[z] = {
f: (prod(1 + mean * bit for mean, bit in zip(means, f))
+ Q(1, 8) * f[0] * f[1] + z * t * prod(f)) / 8
for f in words
}
assert min(prior[z].values()) >= 0 and sum(prior[z].values()) == 1
a = Q(1, 5)
moments = [Q(0)] * 8
for z in (-1, 1):
for f, aux, g in product(words, repeat=3):
neutralized = tuple(scale * (bit - mean) for bit, mean, scale in zip(aux, means, scales))
prob_g = prod((1 + sign * mean) / 2 for sign, mean in zip(g, neutralized))
received_means = [(1 - 2 * a) * x - 2 * a * y for x, y in zip(f, g)]
weight = z * prior[z][f] * prior[z][aux] * prob_g / 2
for mask in range(8):
moments[mask] += weight * prod(received_means[j] for j in range(3) if mask >> j & 1)
assert moments[:7] == [0] * 7
assert moments[7] == ((1 - 2 * a)**3 - (2 * a)**3 * prod(scales)) * t
Dead ends
The coupling bounds the contribution of a triple in terms of its clean target correlation. Even when $\delta$ approaches $1/4$, some intermediate correlations give a strictly positive upper bound. Thus the argument leaves the small-advantage regime of the frozen question open. Simply applying the earlier linear hash to truth tables also fails. Averaged query correlation in a nonlinear code need not be an exact identity of functions.
Novelty check
I compared the correctness threshold with the binary nonlinear result in Gál–Mills, the correctness and corruption bounds of Cheraghchi–Gál–Mills, and the linear-only correlated attack in the previous attempt. I also checked the general near-cubic lower bound and the later odd-query work. Searches used “three-query nonlinear locally decodable codes correlated corruption correctness threshold,” “3-query Gál Mills higher correctness adaptive threshold,” and “correlation rounding locally decodable codes.” Gál–Mills use a small cover of short observations followed by essentially independent flips. The previous attempt uses the exact generator-column relation of a linear recovery triple. Here pairwise-correlation rounding makes it possible to condition an auxiliary message on the same target bit, and the signed difference in (6) cancels the relevant part of a triple for general encoders. I did not find either this cancellation or the resulting correctness curve in the sources I checked.
References
- Earlier attempts 2026-12-02-codex-open-codes.md and 2026-12-03-codex-scheduled.md.
- A. Gál and A. Mills, Three-Query Locally Decodable Codes with Higher Correctness Require Exponential Length, ACM Trans. Comput. Theory, 2012. Author manuscript, Theorem 1.1 and §3.5.
- M. Cheraghchi, A. Gál, and A. Mills, Correctness and Corruption of Locally Decodable Codes, 2012.
- B. Barak, P. Raghavendra, and D. Steurer, Rounding Semidefinite Programming Hierarchies via Global Correlation, FOCS, 2011.
- I. Kerenidis and R. de Wolf, Exponential lower bound for 2-query locally decodable codes via a quantum argument, J. Comput. Syst. Sci., 2004.
- A. Nayak, Optimal lower bounds for quantum automata and random access codes, FOCS, 1999.
- O. Alrabiah, V. Guruswami, P. K. Kothari, and P. Manohar, A near-cubic lower bound for 3-query locally decodable codes from semirandom CSP refutation, SIAM J. Comput.
- O. Janzer and P. Manohar, A lower bound for odd-query locally decodable codes from bipartite Kikuchi graphs, author version, v2.
Source: attempts/locally-decodable-codes-3-query/2026-12-03-codex-attack-ldc.md