---
title: "Module Learning With Errors (MLWE)"
description: "Noisy linear equations over a polynomial ring are indistinguishable from random. Schemes that rely on it, evidence of hardness, and best known attacks."
url: "https://pqt-19a6ffd695e12a.pages.dev/assumptions/mlwe/"
site: "PQ Tracker, maintained by zkSecurity"
reviewed: "2026-11-25"
license: "https://creativecommons.org/licenses/by/4.0/"
---

# Module Learning With Errors (MLWE)

Lattices · Hardness assumption

Noisy linear equations over a polynomial ring are indistinguishable from random.

**zkSecurity** · Reviewed 2026-11-25

## Statement

Let R_q = ℤ_q[X]/(X^n + 1). Let **A** be a uniformly random k × ℓ matrix over R_q, and let **s** and **e** be vectors over R_q with small coefficients. Given

(**A**, **t** = **A**·**s** + **e** mod q)

the search problem is to find **s**; the decision problem is to distinguish (**A**, **t**) from a uniformly random pair. The module rank k interpolates between Ring-LWE (k = 1) and [plain LWE](https://pqt-19a6ffd695e12a.pages.dev/assumptions/lwe/) (n = 1).

| Scheme | n | q | Module rank |
| --- | --- | --- | --- |
| ML-KEM-512 / 768 / 1024 | 256 | 3329 | k = 2 / 3 / 4 |
| ML-DSA-44 / 65 / 87 | 256 | 8380417 | (k, ℓ) = (4,4) / (6,5) / (8,7) |

## Evidence of hardness

- A worst-case to average-case reduction from approximate SIVP on module lattices (Langlois and Stehlé). The reduction is asymptotic and is not used to set parameters.
- No known attack exploits the module structure at the parameters in use. The best algorithms treat an instance as unstructured LWE of dimension n·k.
- Parameters are set from the cost of the best known attacks.

## Best known attacks

- **Lattice reduction.** BKZ with sieving, in primal and dual variants. Sieving in block size β costs about 2^0.292β classically.
- **Dual attacks.** MATZOV (2022) estimated Kyber a few bits below its targets. Ducas and Pulles (2023) showed that the heuristics of that analysis fail in the relevant regime. Carrier et al. re-derived a dual attack without the disputed assumption and estimate Kyber 3 to 12 bits below the targets in a cost model that ignores memory access. NIST holds that ML-KEM-512 meets category 1 when memory cost is counted. No parameter has changed.
- **Quantum.** Quantum sieving lowers the exponent constant to about 0.26. No further speedup is known. Claims of polynomial-time quantum algorithms for LWE in 2024 and 2026 were respectively withdrawn and rebutted.
- **Asymptotic results.** Papers of October 2026 give provable subexponential algorithms for parameter families in which secrets remain very small while the modulus grows. The authors state that no specified parameter set is affected.
- **Ideal lattices.** Quantum algorithms find moderately short vectors in rank-1 (ideal) lattices of cyclotomic rings faster than generic methods. They reach only large approximation factors and do not extend to rank 2 or higher.

## Limitations

- MLWE yields passive security only. Security of ML-KEM against active attackers derives from the Fujisaki-Okamoto transform, analysed in the [random oracle model](https://pqt-19a6ffd695e12a.pages.dev/assumptions/random-oracle-model/).
- Every practical attack on Kyber and ML-KEM to date recovers the secret through an implementation side channel, not by solving MLWE.
- Security categories depend on the cost model for sieving (gates, memory, memory access). Reasonable models differ by more than ten bits for ML-KEM-512.

## Record

7 entries · [Feed](https://pqt-19a6ffd695e12a.pages.dev/feed/)

- 2026-10-06 · Theoretical result · No action required · [Provable subexponential algorithms for asymptotic Kyber/Dilithium/Frodo/Falcon families](https://pqt-19a6ffd695e12a.pages.dev/feed/2026-10-06-provable-subexponential-algorithms-for-asymptoti/)
- 2026-08-03 · Claim refuted · No action required · [Simon's claimed polynomial-time quantum algorithm for DCP (hence LWE) rebutted](https://pqt-19a6ffd695e12a.pages.dev/feed/2026-08-03-simon-s-claimed-polynomial-time-quantum-algorith/)
- 2024-04-10 · Claim refuted · No action required · [Chen's claimed quantum algorithm for LWE withdrawn after a bug was found](https://pqt-19a6ffd695e12a.pages.dev/feed/2024-04-10-chen-s-claimed-quantum-algorithm-for-lwe-withdra/)
- 2023-10-03 · Theoretical result · No action required · [Bernstein disputes NIST's Kyber-512 security estimate; NIST rejects the miscount claim](https://pqt-19a6ffd695e12a.pages.dev/feed/2023-10-03-bernstein-disputes-nist-s-kyber-512-security-est/)
- 2023-02-28 · Theoretical result · No action required · [Ducas and Pulles question the heuristics behind dual-sieve attacks on LWE](https://pqt-19a6ffd695e12a.pages.dev/feed/2023-02-28-ducas-and-pulles-question-the-heuristics-behind/)
- 2022-12-20 · Theoretical result · Action: monitor · [Carrier et al.: dual attack variant puts Kyber 3.5-12.3 bits under NIST targets](https://pqt-19a6ffd695e12a.pages.dev/feed/2022-12-20-carrier-et-al-dual-attack-variant-puts-kyber-3-5/)
- 2022-04-04 · Theoretical result · No action required · [MATZOV report: improved dual lattice attack lowers Kyber and Dilithium estimates](https://pqt-19a6ffd695e12a.pages.dev/feed/2022-04-04-matzov-report-improved-dual-lattice-attack-lower/)

- **Status**: Standing
- **Studied since**: 2012 (Module-LWE 2012; Ring-LWE 2010; LWE 2005)
- **Exploitable structure**: Module over a cyclotomic ring
- **Worst-case reduction**: Yes, from module-SIVP (asymptotic only)
- **Quantum speedup**: Small (better sieving constant)

### Relied on by

- **[ML-KEM](https://pqt-19a6ffd695e12a.pages.dev/algorithms/ml-kem/)** (Key generation and encryption are hidden by decisional Module-LWE)
- **[ML-DSA](https://pqt-19a6ffd695e12a.pages.dev/algorithms/ml-dsa/)** (The public key hides the signing key under Module-LWE)
- **[X25519MLKEM768](https://pqt-19a6ffd695e12a.pages.dev/algorithms/hybrid-tls-x25519mlkem768/)** (ML-KEM-768 component: Module-LWE)
- **[SMAUG-T](https://pqt-19a6ffd695e12a.pages.dev/algorithms/smaug-t/)** (Decisional Module-LWE with a sparse ternary secret hides the secret key; Module-LWR (rounding in place of added error) hides the shared key in the ciphertext)
- **[HAETAE](https://pqt-19a6ffd695e12a.pages.dev/algorithms/haetae/)** (Decisional Module-LWE: the verification key is indistinguishable from uniform)

### Consequence of failure

ML-KEM and ML-DSA fail together, as does the post-quantum component of the hybrid TLS groups. SLH-DSA and HQC were standardized or selected as non-lattice alternatives for this reason.

### Related

[LWE](https://pqt-19a6ffd695e12a.pages.dev/assumptions/lwe/), [Module-SIS](https://pqt-19a6ffd695e12a.pages.dev/assumptions/msis/), [NTRU](https://pqt-19a6ffd695e12a.pages.dev/assumptions/ntru/), [Ring-LWE](https://pqt-19a6ffd695e12a.pages.dev/assumptions/rlwe/)

**References (6)**

- [Langlois, Stehlé: Worst-case to average-case reductions for module lattices](https://eprint.iacr.org/2012/090)
- [Lyubashevsky, Peikert, Regev: On ideal lattices and learning with errors over rings](https://eprint.iacr.org/2012/230)
- [Bos et al.: CRYSTALS-Kyber, a CCA-secure module-lattice-based KEM](https://eprint.iacr.org/2017/634)
- [Peikert: A decade of lattice cryptography (survey)](https://eprint.iacr.org/2015/939)
- [Ducas, Pulles: Does the dual-sieve attack on learning with errors even work?](https://eprint.iacr.org/2023/302)
- [Carrier, Meyer-Hilfiger, Shen, Tillich: Assessing the impact of a variant of MATZOV's dual attack on Kyber](https://eprint.iacr.org/2022/1750)

### Data

[data.json](https://pqt-19a6ffd695e12a.pages.dev/assumptions/mlwe/data.json)
