Learning parity with noise
The learning parity with noise (LPN) assumption states that noisy random linear equations over , with Bernoulli noise , are indistinguishable from uniform. It can be viewed as LWE specialized to the binary field.
Assumption
For a dimension polynomially related to , noise rate with and for a polynomial , and sample count , the LPN game asks an adversary to distinguish a noisy linear system from a uniformly random pair. The bound on excludes noise rates such as , at which samples are within statistical distance of uniform and LPN would hold unconditionally — standard.
\begin{algorithm}
\algname{Game}
\caption{$\Game^{\mathrm{lpn}}_{k,\varepsilon,m,\calA}(\secpar)$}
\begin{algorithmic}
\State $\mathbf{A} \getsr \FF_2^{m \times k}$
\State $\mathbf{s} \getsr \FF_2^k$; $\mathbf{e} \getsr \mathrm{Ber}(\varepsilon)^m$
\State $b \getsr \bits$
\State $\mathbf{v}_0 := \mathbf{A} \cdot \mathbf{s} + \mathbf{e}$
\State $\mathbf{v}_1 \getsr \FF_2^m$
\State $b' \gets \calA(1^\secpar, \mathbf{A}, \mathbf{v}_b)$
\Return $[b' = b]$
\end{algorithmic}
\end{algorithm}
-LPN is hard if for all efficient and all polynomials ,
is negligible.
LPN is naturally stated over . However, it generalizes to any finite field : replace with throughout, and let each noise coordinate be zero with probability and uniformly random in with probability .
Noise Level
Depending on relative to , -LPN has several regimes, which imply different results. The regimes below are ordered from weakest to strongest assumption: hardness at lower noise implies hardness at higher noise — folklore.
Constant-noise LPN
The noise rate is a constant .
High-noise LPN
The noise rate is for a constant .
Mid-noise LPN
The noise rate is for a constant .
Low-noise LPN
-LPN is hard for efficient adversaries for every constant .
At , Gaussian elimination recovers in polynomial time — standard.
The trapdoor hash function of AMR25 assumes -LPN hard, against efficient adversaries as defined above, at noise rate for a constant — AMR25. At this rate Gaussian elimination recovers in time , so the assumption fails against adversaries of size for a large enough constant ; this quasi-polynomial ceiling on attainable security is not part of the premise — standard.
Subexponential LPN
For a function , -LPN is -hard if for all sufficiently large , every adversary running in time at most , given any number of samples, has advantage at most in the game above. Subexponential LPN holds if there are a constant and a function such that -LPN is -hard. Constant-noise LPN with this hardness, for secret size , gives IND-CCA PKE and OT — YZ16.
YZW+19 assume the stronger 2, CG24 the weaker polylogarithmic-dimension LPN, and JLS21 sub-exponential LPN over large fields.
The standard assumption bounds only polynomial-time adversaries.
Subexponential LPN with exponent above 1/2
There are constants and such that -LPN is -hard — YZW+19. It implies subexponential LPN, with (2 ⇒ Subexponential LPN) — folklore.
Polylogarithmic-dimension LPN
For a constant and a function , the assumption states that for every and every polynomial-time adversary ,
over , , and : the secret has dimension , and the number of samples is the security parameter. Polylogarithmic-dimension LPN is the assumption that there is a constant such that holds for every function — CG24, Assumptions 1 and 2. At secret dimension the adversary has samples and time , which is the sense of the -hardness of LPN, for secret dimension , in CG24’s abstract — standard. It implies pseudorandom error-correcting codes (Subexponential LPN ⇒ PRC) — CG24.
Sub-exponential LPN over large fields
There is a constant with the following property. Take any sampler of -bit primes , any polynomial , and any polynomial . Then there is a constant such that, for all sufficiently large , every adversary of size at most has advantage at most against LPN over , in the field generalization above, with dimension , samples and noise rate , even when given and the coins of — JLS21 (arXiv v1, Theorem 5.5 with Definitions 2.1 and 2.3). The coins of let a reduction that receives an instance rebuild whatever sampled along with , such as a bilinear group of order .
The noise distribution of JLS21, which is with probability and uniform in , included, with probability , is within statistical distance of the noise above at rate in each coordinate, so samples change by at most — standard.
Known Results
- Mid-noise LPN ⇒ PKE
- Low-noise LPN ⇒ CRHF
- High-noise LPN ⇒ Secret-Key PIR (SK-PIR)
- Subexponential LPN ⇒ IND-CCA PKE
- Mid-noise LPN ⇒ IND-CCA PKE
- Low-noise LPN + DDH ⇒ NIZK argument for NP
- Subexponential LPN ⇒ OT
- Subexponential LPN ⇒ CRHF
- Polylogarithmic-dimension LPN ⇒ PRC
- Polylogarithmic-dimension LPN ⇒ Substitution-robust zero-bit PRC
Variations
Sparse Learning Parity with Noise
Sparse LPN replaces the uniformly random matrix with one whose rows are -sparse: each row is sampled uniformly from all binary vectors of Hamming weight exactly . The secret and noise distributions are unchanged.
\begin{algorithm}
\algname{Game}
\caption{$\Game^{\mathrm{slpn}}_{k,\varepsilon,m,d,\calA}(\secpar)$}
\begin{algorithmic}
\State $\mathbf{A} \getsr \FF_2^{m \times k}$ with each row sampled uniformly from weight-$d$ vectors
\State $\mathbf{s} \getsr \FF_2^k$; $\mathbf{e} \getsr \mathrm{Ber}(\varepsilon)^m$
\State $b \getsr \bits$
\State $\mathbf{v}_0 := \mathbf{A} \cdot \mathbf{s} + \mathbf{e}$
\State $\mathbf{v}_1 \getsr \FF_2^m$
\State $b' \gets \calA(1^\secpar, \mathbf{A}, \mathbf{v}_b)$
\Return $[b' = b]$
\end{algorithmic}
\end{algorithm}
-Sparse LPN is hard if for all efficient and all polynomials ,
is negligible.
Sparse LPN yields, in the random-oracle model, pseudorandom correlation functions and hence pseudorandom correlation generators for VOLE and OT correlations — BCM+25.
Known results
- Sparse LPN ⇒ PCG
- Additively homomorphic encryption + Sparse LPN ⇒ SHE
- DDH + Sparse Learning Parity with Noise ⇒ Somewhat homomorphic encryption (SHE)
- Noisy k-LIN over expanders, a worst-case-support analogue over with and advantage bounded by rather than an instance of this page’s Sparse LPN, together with planted clique gives PKE (Noisy k-LIN + PC ⇒ PKE) — GHJS25
Ring-LPN
Ring-LPN replaces the matrix with multiplication by a random element of for a fixed polynomial of degree . For a secret , it asks to distinguish samples , with fresh and noise whose coefficients are drawn independently from , from uniform samples over — HKLPP12. Each ring sample gives noisy parities of , whose coefficient matrix (multiplication by in ) is described by the bits of rather than the bits of a uniform block of , and is one polynomial multiplication — standard.
Ring-LPN over yields Lapin, a two-round symmetric-key authentication protocol secure against active attacks — HKLPP12.
Sparse Ring-LPN
For a prime , a polynomial , , and a weight , Sparse Ring-LPN asks to distinguish from for uniform and -sparse — BCG+20.
\begin{algorithm}
\algname{Game}
\caption{$\Game^{\mathrm{srlpn}}_{p,F,t,\calA}(\secpar)$}
\begin{algorithmic}
\State $a \getsr R_p$; $b \getsr \bits$
\State $e, f \gets$ $t$-sparse elements of $R_p$
\State $v_0 := a e + f$
\State $v_1 \getsr R_p$
\State $b' \gets \calA(1^\secpar, a, v_b)$
\Return $[b' = b]$
\end{algorithmic}
\end{algorithm}
TODO: state the hardness notion from the R-LPN definition of BCG+20, then register it as a variant and restore BCG+20’s PCG theorem as a reduction. The definition must fix as a polynomially bounded function of ; a prime with splitting into distinct linear factors modulo ; the weight and the noise distribution (exact weight , or regular); the regime of against , since the PCG seeds, of size , must be sublinear in , and near makes statistically close to uniform; and whether hardness is assumed for every such family or for one that BCG+20 fix.
Sparse Ring-LPN yields pseudorandom correlation generators for OLE and authenticated multiplication triples over large fields — BCG+20.
Attacks
- Gaussian elimination. Solving on fresh samples with invertible returns whenever their noise bits are all , which happens with probability ; repeating and testing each candidate on further samples recovers in time and samples . This is polynomial for , quasi-polynomial in the low-noise regime, and at — standard.
- BKW. For every constant noise rate , the Blum–Kalai–Wasserman algorithm recovers in time from samples — BKW03. It adds pairs of samples that agree on a block of coordinates, zeroing the block at the cost of squaring the noise bias, until only the last block is nonzero; the samples that are then a unit vector reveal the corresponding bit of by majority vote — BKW03.
- Fewer samples. At constant noise rate, with samples for a constant , time suffices — Lyu05.
- Walsh–Hadamard final step. Keeping every sample in BKW’s last stage and recovering the last block of with a fast Walsh–Hadamard transform reduces the number of samples needed; applied to the parameters of the HB+ authentication protocol, this gives an attack with work factor — LF06.
- Decoding. samples are a decoding instance for a random binary code under Bernoulli noise, so the information-set-decoding attacks on syndrome decoding apply — standard.
Participates in
Builds on Learning parity with noise
- DDH + Sparse Learning Parity with Noise ⇒ Somewhat homomorphic encryption (SHE) (via Sparse Learning Parity with Noise)
- Constant-noise LPN ⇒ PRG (via Constant-noise LPN)
- High-noise LPN ⇒ Constant-noise LPN (via High-noise LPN)
- Low-noise LPN + DDH ⇒ NIZK argument for NP (via Low-noise LPN)
- Mid-noise LPN ⇒ High-noise LPN (via Mid-noise LPN)
- Mid-noise LPN ⇒ IND-CCA PKE (via Mid-noise LPN)
- High-noise LPN ⇒ Secret-Key PIR (SK-PIR) (via High-noise LPN)
- Polylogarithmic-dimension LPN ⇒ Substitution-robust zero-bit PRC (via Polylogarithmic-dimension LPN)
- Low-noise LPN ⇒ CRHF (via Low-noise LPN)
- Low-noise LPN ⇒ Mid-noise LPN (via Low-noise LPN)
- Mid-noise LPN ⇒ PKE (via Mid-noise LPN)
- Additively homomorphic encryption + Sparse LPN ⇒ SHE (via Sparse Learning Parity with Noise)
- Sparse Learning Parity with Noise ⇒ Pseudorandom correlation generators (PCG) (via Sparse Learning Parity with Noise)
- 2 ⇒ Subexponential LPN (via 2)
- Subexponential LPN ⇒ CRHF (via 2)
- Subexponential LPN ⇒ OT (via Subexponential LPN)
- Subexponential LPN ⇒ IND-CCA PKE (via Subexponential LPN)
- Subexponential LPN ⇒ Polylogarithmic-dimension LPN (via Subexponential LPN)
- Polylogarithmic-dimension LPN ⇒ PRC (via Polylogarithmic-dimension LPN)
Produces Learning parity with noise