In cryptography, learning with errors (LWE) is a mathematical problem that is widely used to create secure encryption algorithms. It is based on the idea of representing secret information as a set of equations with errors. In other words, LWE is a way to hide the value of a secret by introducing noise to it. In more technical terms, it refers to the computational problem of inferring a linear n-ary function f over a finite ring from given samples yi=f(𝐱i) some of which may be erroneous. The LWE problem is conjectured to be hard to solve, and thus to be useful in cryptography. More precisely, the LWE problem is defined as follows. Let ℤq denote the ring of integers modulo q and let ℤqn denote the set of n-vectors over ℤq. There exists a certain unknown linear function f:ℤqn→ℤq, and the input to the LWE problem is a sample of pairs (𝐱,y), where 𝐱∈ℤqn and y∈ℤq, so that with high probability y=f(𝐱). Furthermore, the deviation from the equality is according to some known noise model. The problem calls for finding the function f, or some close approximation thereof, with high probability. The LWE problem was introduced by Oded Regev in 2005 (who won the 2018 Gödel Prize for this work); it is a generalization of the parity learning problem. Regev showed that the LWE problem is as hard to solve as several worst-case lattice problems. Subsequently, the LWE problem has been used as a hardness assumption to create public-key cryptosystems, such as the ring learning with errors key exchange by Peikert.
Definition Denote by 𝕋=ℝ/ℤ the additive group on reals modulo one. Let 𝐬∈ℤqn be a fixed vector. Let ϕ be a fixed probability distribution over 𝕋. Denote by A𝐬,ϕ the distribution on ℤqn×𝕋 obtained as follows.
Pick a vector 𝐚∈ℤqn from the uniform distribution over ℤqn, Pick a number e∈𝕋 from the distribution ϕ, Evaluate t=⟨𝐚,𝐬⟩/q+e, where ⟨𝐚,𝐬⟩=∑i=1naisi is the standard inner product in ℤqn, the division is done in the field of reals (or more formally, this "division by q" is notation for the group homomorphism ℤq⟶𝕋 mapping 1∈ℤq to 1/q+ℤ∈𝕋), and the final addition is in 𝕋. Output the pair (𝐚,t). The learning with errors problem LWEq,ϕ is to find 𝐬∈ℤqn, given access to polynomially many samples of choice from A𝐬,ϕ. For every α>0, denote by Dα the one-dimensional Gaussian with zero mean and variance α2/(2π), that is, the density function is Dα(x)=ρα(x)/α where ρα(x)=e−π(|x|/α)2, and let Ψα be the distribution on 𝕋 obtained by considering Dα modulo one. The version of LWE considered in most of the results would be LWEq,Ψα
Decision version The LWE problem described above is the search version of the problem. In the decision version (DLWE), the goal is to distinguish between noisy inner products and uniformly random samples from ℤqn×𝕋 (practically, some discretized version of it). Regev showed that the decision and search versions are equivalent when q is a prime bounded by some polynomial in n.
Solving decision assuming search Intuitively, if we have a procedure for the search problem, the decision version can be solved easily: just feed the input samples for the decision problem to the solver for the search problem. Denote the given samples by {(𝐚i,𝐛i)}⊂ℤqn×𝕋. If the solver returns a candidate 𝐬, for all i, calculate {⟨𝐚i,𝐬⟩−𝐛i}. If the samples are from an LWE distribution, then the results of this calculation will be distributed according χ, but if the samples are uniformly random, these quantities will be distributed uniformly as well.
Solving search assuming decision For the other direction, given a solver for the decision problem, the search version can be solved as follows: Recover 𝐬 one coordinate at a time. To obtain the first coordinate, 𝐬1, make a guess k∈ℤq, and do the following. Choose a number r∈ℤq uniformly at random. Transform the given samples {(𝐚i,𝐛i)}⊂ℤqn×𝕋 as follows. Calculate {(𝐚i+(r,0,…,0),𝐛i+(rk)/q)}. Send the transformed samples to the decision solver. If the guess k was correct, the transformation takes the distribution A𝐬,χ to itself, and otherwise, since q is prime, it takes it to the uniform distribution. So, given a polynomial-time solver for the decision problem that errs with very small probability, since q is bounded by some polynomial in n, it only takes polynomial time to guess every possible value for k and use the solver to see which one is correct. After obtaining 𝐬1, we follow an analogous procedure for each other coordinate 𝐬j. Namely, we transform our 𝐛i samples the same way, and transform our 𝐚i samples by calculating 𝐚i+(0,…,r,…,0), where the r is in the jth coordinate. Peikert showed that this reduction, with a small modification, works for any q that is a product of distinct, small (polynomial in n) primes. The main idea is if q=q1q2⋯qt, for each qℓ, guess and check to see if 𝐬j is congruent to 0modqℓ, and then use the Chinese remainder theorem to recover 𝐬j.
Average case hardness Regev showed the random self-reducibility of the LWE and DLWE problems for arbitrary q and χ. Given samples {(𝐚i,𝐛i)} from A𝐬,χ, it is easy to see that {(𝐚i,𝐛i+⟨𝐚i,𝐭⟩)/q} are samples from A𝐬+𝐭,χ. So, suppose there was some set 𝒮⊂ℤqn such that |𝒮|/|ℤqn|=1/poly(n), and for distributions A𝐬′,χ, with 𝐬′←𝒮, DLWE was easy. Then there would be some distinguisher 𝒜, who, given samples {(𝐚i,𝐛i)}, could tell whether they were uniformly random or from A𝐬′,χ. If we need to distinguish uniformly random samples from A𝐬,χ, where 𝐬 is chosen uniformly at random from ℤqn, we could simply try different values 𝐭 sampled uniformly at random from ℤqn, calculate {(𝐚i,𝐛i+⟨𝐚i,𝐭⟩)/q} and feed these samples to 𝒜. Since 𝒮 comprises a large fraction of ℤqn, with high probability, if we choose a polynomial number of values for 𝐭, we will find one such that 𝐬+𝐭∈𝒮, and 𝒜 will successfully distinguish the samples. Thus, no such 𝒮 can exist, meaning LWE and DLWE are (up to a polynomial factor) as hard in the average case as they are in the worst case.
Hardness results
… excerpt ends here. Continue reading the full article.