Learning with errors (LWE) is a computational problem in the field of lattice-based cryptography. It serves as a hardness assumption for constructing various cryptographic primitives that are believed to be resistant to attacks by quantum computers.
Definition
In the standard (search) version of LWE, an algorithm is given access to a sequence of samples $(\mathbf{a}_i, b_i)$ where each $\mathbf{a}_i$ is drawn uniformly at random from $\mathbb{Z}_q^n$ (the vector space of dimension $n$ over the integers modulo a prime or integer modulus $q$), and
$$ b_i = \langle \mathbf{a}_i, \mathbf{s} \rangle + e_i \pmod q . $$
Here $\mathbf{s}\in\mathbb{Z}_q^n$ is a fixed secret vector, $\langle\cdot,\cdot\rangle$ denotes the inner product, and $e_i$ is an error term drawn from a distribution (typically a discrete Gaussian or a bounded‑uniform distribution) that is “small’’ compared to $q$. The challenge is to recover the secret vector $\mathbf{s}$ (search LWE) or to distinguish such noisy samples from uniformly random pairs (decision LWE).
Historical development
The LWE problem was introduced by Oded Regev in 2005 (STOC 2005) as part of his work on worst‑case to average‑case reductions for lattice problems. Regev proved that solving LWE (with appropriate parameters) is at least as hard as approximating certain lattice problems—such as the Shortest Vector Problem (SVP) and the Shortest Independent Vectors Problem (SIVP)—in the worst case to within polynomial factors. This foundational result linked LWE to the well‑studied hardness of lattice problems and motivated its adoption as a basis for cryptographic design.
Key properties and variants
| Property / Variant | Description |
|---|---|
| Modulus $q$ | Typically a prime or a power of two; larger moduli increase security but also affect efficiency. |
| Error distribution | Commonly a discrete Gaussian with standard deviation $\sigma$; the size of the error relative to $q$ determines hardness. |
| Search vs. decision | Regev showed that, for appropriate parameters, the search and decision versions are computationally equivalent. |
| Ring‑LWE (RLWE) | Extends LWE to polynomial rings, leading to more efficient implementations while preserving security assumptions. |
| Module‑LWE | Generalizes both LWE and RLWE, offering a trade‑off between efficiency and security. |
| Binary‑LWE | Uses binary error vectors; useful for specific protocols such as key‑exchange. |
Applications
- Public‑key encryption – The first LWE‑based public‑key encryption scheme was proposed by Regev (2005). |
- Key‑exchange protocols – Protocols such as NewHope and FrodoKEM derive their security from LWE or RLWE. |
- Fully homomorphic encryption (FHE) – LWE underpins many modern FHE constructions (e.g., Gentry‑Sahai‑Waters, Brakerski‑Gentry‑Vaikuntanathan). |
- Digital signatures – Schemes like BLISS and Dilithium use variants of LWE or RLWE. |
- Identity‑based encryption, attribute‑based encryption, and zero‑knowledge proofs – LWE provides a versatile foundation for advanced cryptographic functionalities. |
Security considerations
- The believed quantum‑resistance of LWE stems from the lack of known quantum algorithms that solve the underlying lattice problems substantially faster than classical algorithms. |
- Parameter selection (dimension $n$, modulus $q$, error distribution) must follow guidelines from standardization bodies (e.g., NIST Post‑Quantum Cryptography project) to achieve targeted security levels. |
- Reductions to worst‑case lattice problems are proven only for specific ranges of parameters; using parameters outside these ranges may weaken the theoretical security guarantee, though practical attacks are still considered infeasible. |
Related concepts
- Lattice problems – Shortest Vector Problem (SVP), GapSVP, Shortest Independent Vectors Problem (SIVP). |
- Other learning problems – Learning Parity with Noise (LPN), a similar problem over $\mathbb{F}_2$ with binary errors. |
- Ring‑LWE and Module‑LWE – Structured variants that improve efficiency. |
- Post‑quantum cryptography – LWE‑based schemes are prominent candidates for standardization. |
References
- O. Regev, “On lattices, learning with errors, random linear codes, and cryptography,” Proceedings of the 37th Annual ACM Symposium on Theory of Computing (STOC), 2005. |
- J. Brakerski, Z. Gentry, and V. Vaikuntanathan, “Fully homomorphic encryption without bootstrapping,” ITCS 2012. |
- C. Peikert, “A decade of lattice cryptography,” Foundations and Trends® in Theoretical Computer Science, vol. 10, no. 4, pp. 283–424, 2016. |
- NIST, “Post‑Quantum Cryptography – Round 3 Submission Materials,” 2023. |
See also
- Lattice‑based cryptography
- Learning parity with noise (LPN)
- Ring‑LWE
- Post‑quantum cryptography standards
This entry reflects the current consensus in the academic literature up to 2024.