Learning with errors (LWE)
The learning with errors (LWE) assumptions is a standard assumption in cryptography, especially in post-quantum cryptography. It is a generalization of the LPN assumption.
Assumption
Informally, the LWE problem concerns solving a system of noisy linear equations. In other words, the goal is to find some secret vector that satisfies a given set of random linear equations in variables. If we are allowed to see the equations precisely (i.e., with no errors) then it is possible to find in polynomial time. The LWE assumption is that finding is hard if each equation is correct up to some small, additive error.
Formally, let denote the field of integers modulo . Fix some secret vector and an “error” probability distribution over . Denote to be the random variable on resulting from the following procedure:
- Select uniformly at random.
- Sample according to the error distribution .
- Output And denote to be the random variable for uniformly random and uniformly random .
The LWE problem with parameters is to distinguish from . We say LWE is hard if there exists a negligible function such that for all efficient adversaries , where uniformly at random, , and .
Variations
LWE with modulus is the LPN problem. In this case is modeled only as a Bernoulli random variable.
The problem we state above is the “decision” version of LWE, as the adversary is tasked with distinguish the secret vector . It turns out an equivalent assumption is the “search” LWE problem, where an adversary must recover by sampling .
- Reducing the decision to the search version is trivial. The reduction can find the vector and test whether it matches with the samples it’s seen.
- Reducing the search to decision requires guessing the element for every and every possible field element .
- Using these guesses, one can take the samples from to a new which is distributed as either an LWE instance (when ) or uniform (when ).
- From there, one can search for using samples, when decision can be broken with samples
Related results
- Reduction to lattice problems