Learning With Errors (LWE)
Learning With Errors (LWE) is the computational problem of recovering a secret vector from noisy linear equations over a finite field. Given many samples (a, b), where b equals the inner product of a with a hidden secret plus a small random error, finding the secret is believed hard for both classical and quantum computers, which makes LWE the foundation of most lattice-based cryptography.
Why the noise matters
Without the error term, the secret follows immediately from Gaussian elimination. The small errors turn an easy linear-algebra task into one that appears to require solving hard lattice problems. Oded Regev introduced LWE in 2005 and proved a worst-case to average-case reduction: solving random LWE instances is at least as hard as approximating worst-case lattice problems (Regev, JACM 2009).
Structured variants
Plain LWE keys are large, so deployed schemes use algebraically structured versions that shrink keys and speed arithmetic (Peikert, 2015): Ring-LWE and Module-LWE. Module-LWE underlies the standardized ML-KEM KEM, while the Short Integer Solution problem is the dual assumption used for signatures.
Sources
- On Lattices, Learning with Errors, Random Linear Codes, and Cryptography (Journal of the ACM, 2009)
- A Decade of Lattice Cryptography (IACR ePrint Archive, 2015)
- FIPS 203, Module-Lattice-Based Key-Encapsulation Mechanism Standard (NIST, 2024)
Cite this entry
"Learning With Errors (LWE)." postquantum.wiki. Updated July 11, 2026. https://postquantum.wiki/lwe@misc{pqwiki-lwe,
title = {Learning With Errors (LWE)},
howpublished = {\url{https://postquantum.wiki/lwe}},
year = {2026},
note = {postquantum.wiki, updated 2026-07-11}
}