LWE vs Ring-LWE: two lattice problems

Learning with errors (LWE) and its ring form (Ring-LWE) are two lattice problems that differ in structure and efficiency. This page sets out what each is, where each appears in standards and products, and how to tell which one a system uses.

On this page

LWE vs Ring-LWE: what each lattice problem is and where it differs

When a vendor document, standard or audit request names LWE or Ring-LWE, the practical question is whether these are the same thing. They are related but not identical. Learning with errors (LWE) asks whether noisy random linear equations can be told apart from uniform ones. Ring-LWE is its algebraic variant, which, according to Lyubashevsky, Peikert and Regev, makes many applications of LWE much more efficient. Security leads, engineers, auditors and procurement reviewers all meet this distinction, usually when reading key encapsulation mechanism (KEM) or signature documentation and deciding which algorithm a product actually uses.

The distinction shows up in the standards and projects reviewers are most likely to read. FrodoKEM is described on its project site as built on the learning with errors problem, and an IETF draft calls it an unstructured lattice-based KEM, so plain LWE appears there. The CRYSTALS-Kyber project says Kyber uses learning with errors over module lattices, the Module-LWE setting, and NIST's FIPS 203 standardizes ML-KEM on that module basis. Module-LWE, introduced by Langlois and Stehle, sits between standard LWE and Ring-LWE. A reviewer should therefore check which underlying problem a named product implements, rather than assuming the lattice family name settles it.

When confirming this for a specific product, ask the vendor which problem form its KEM or signature scheme uses (plain LWE, Ring-LWE, Module-LWE or a related structured problem) and which standard or specification defines it. Check the version and parameter set in use, because the sources above describe different schemes with different key and ciphertext sizes. Where the sources in this section do not address a particular product, confirm the answer against that product's documentation or the relevant specification instead of inferring it from the family name.

How LWE, Ring-LWE and Module-LWE compare attribute by attribute

This table sets the three forms of the learning with errors problem side by side on the attributes the sources give, from the paper that introduced each to the standards and projects that use it. Read each row across to see how the structure of the lattice changes, and note that the efficiency gain of the ring form is the main reason the structured variants appear in standardized schemes.

AttributeLWERing-LWEModule-LWE
What the problem isAsks whether noisy random linear equations can be told apart from uniform ones, per Lyubashevsky, Peikert and Regev.An algebraic variant of LWE that Lyubashevsky, Peikert and Regev show is pseudorandom under worst-case ideal lattice hardness.A problem between standard LWE and Ring-LWE, introduced by Langlois and Stehle, relating to module lattices.
Introducing paper and dateLyubashevsky, Peikert and Regev, ePrint 2012/230, based on a Eurocrypt 2010 paper.Introduced in the same Lyubashevsky, Peikert and Regev paper, ePrint 2012/230.Langlois and Stehle, ePrint 2012/090.
Stated efficiencyThe paper says applications built on LWE are inefficient because of a quadratic overhead.The paper says the ring form makes many LWE applications much more efficient.The sources give no efficiency figure for Module-LWE on this page; confirm against the Langlois and Stehle paper.
Structure of the latticeUnstructured: no algebraic ring structure is imposed on the lattice.Ideal lattices with algebraic ring structure.Module lattices, which generalize both arbitrary and ideal lattices.
Standards or products that use itFrodoKEM is built on LWE; an IETF draft calls it an unstructured lattice based KEM.The sources on this page name no standard or product built directly on Ring-LWE; confirm with the project pages.ML-KEM in FIPS 203 (formerly CRYSTALS-Kyber) and ML-DSA in FIPS 204 (formerly CRYSTALS-Dilithium) use the module setting.
Security assumption citedHardness of distinguishing noisy random linear equations from uniform ones, as the Lyubashevsky, Peikert and Regev paper frames it.Worst-case ideal lattice problems are hard for quantum polynomial-time algorithms, per Lyubashevsky, Peikert and Regev.Hardness of lattice problems over module lattices, as cited by the CRYSTALS-Kyber and CRYSTALS-Dilithium project pages.
Example key or ciphertext sizeFrodoKEM-640 lists a 9616-byte public key and a 9752-byte ciphertext in liboqs.The sources on this page give no size for a Ring-LWE scheme.ML-KEM-768 lists a 1184-byte public key and a 1088-byte ciphertext in RFC 9935.

What LWE, Ring-LWE and Module-LWE are for and where practitioners meet them

Learning with errors (LWE) is the unstructured form of the problem: distinguishing noisy random linear equations from uniform random values. Lyubashevsky, Peikert and Regev (ePrint 2012/230, Eurocrypt 2010 paper) describe it and note that its applications are inefficient because of a quadratic overhead. Plain LWE is the form used by FrodoKEM, which the FrodoKEM site says is built on the learning with errors problem and which an IETF draft describes as an unstructured lattice based KEM.

  • Defining source: the Lyubashevsky, Peikert and Regev paper introduces the problem in the form used for comparison.
  • Named example: FrodoKEM, a key encapsulation mechanism built on plain LWE.
  • Efficiency: the same paper says LWE applications carry a quadratic overhead, which is the reason the structured variants were developed.
  • Standards status: the FrodoKEM site says NIST did not select it, and it is included in the ISO amendment ISO/IEC 18033-2:2006/Amd 2:2026 according to that site.
  • Where to see it: in vendor documents or protocol drafts that name FrodoKEM as an algorithm option.

When a document names FrodoKEM, check its version and the parameter set, since the sizes differ from ML-KEM. Confirm the exact variant in the vendor's documentation before planning around it.

Which differences between LWE and Ring-LWE change what a system does

The two problems differ in how the lattice is structured, which drives how efficient applications are and which key and ciphertext sizes result. The cards below report what the sources say about each difference and where it shows up in published standards and implementations, without ranking either form as stronger.

Unstructured versus algebraic lattice

Plain LWE works with an unstructured lattice, where the random coefficients have no algebraic relation to one another. Ring-LWE introduces an algebraic variant in which the samples live in a polynomial ring, which is the structure the Lyubashevsky, Peikert and Regev paper uses to reach its efficiency results. Check which form a given product uses before comparing its key sizes with another product's, because the two forms are not interchangeable in published parameter tables.

LPR 2012 paper

Quadratic overhead of plain LWE

The Lyubashevsky, Peikert and Regev paper describes applications built directly on LWE as inefficient because of a quadratic overhead. The same paper says the ring form makes many LWE applications much more efficient. The practical consequence for a deployment is that the choice of form affects the computational cost of each operation, so performance measurements taken on one form should not be assumed to carry over to the other.

Key and ciphertext sizes in published tables

The liboqs FrodoKEM page lists FrodoKEM-640 with a 9616-byte public key and a 9752-byte ciphertext. RFC 9935 lists ML-KEM-768 with a 1184-byte public key and a 1088-byte ciphertext. The gap between these figures reflects the different lattice structures and parameter choices, so a size comparison should always name the exact parameter set and the source document it comes from.

FrodoKEM-640 public key
9616 bytes
liboqs FrodoKEM page

Module form in the standardized ML-KEM

The Kyber project page says Kyber uses learning with errors over module lattices, the Module-LWE setting. FIPS 203 standardizes this scheme as ML-KEM. Langlois and Stehle introduce Module-LWE as a problem between standard LWE and Ring-LWE, so the standardized scheme does not use plain LWE. Confirm the module basis of ML-KEM in FIPS 203 itself before citing it in a review.

CRYSTALS-Kyber page

Plain LWE in FrodoKEM

The FrodoKEM site says FrodoKEM is built on the learning with errors problem, and an IETF draft calls it an unstructured lattice based KEM. The ISO amendment ISO/IEC 18033-2:2006/Amd 2:2026 includes FrodoKEM, according to the FrodoKEM site, which also states that NIST did not select it. Teams that need plain LWE for a specific standard should check the ISO amendment directly rather than relying on the project page alone.

FrodoKEM site

How the module form sits between plain LWE and Ring-LWE in ML-KEM

ML-KEM uses the module form of learning with errors, which sits between the plain and ring versions of the problem. Langlois and Stehle introduced Module-LWE as a problem between standard LWE and Ring-LWE, tied to module lattices that generalize both arbitrary lattices and ideal lattices. The Kyber project page states that Kyber uses learning with errors over module lattices, the Module-LWE setting, and that is why FIPS 203 standardizes the module form rather than plain LWE. Readers who see ML-KEM described as a lattice scheme should therefore understand it as module-based, not as either of the two endpoints of the family.

The placement is also visible in how NIST names the standard. NIST's August 2024 announcement described FIPS 203 as the primary standard for general encryption and named it for its module-lattice basis, a naming that RFC 9935 also reflects in its treatment of ML-KEM. Those sources establish where the module form appears in the standard, but they do not compare the security of the three variants, so that comparison should come from the original papers and the standard's own security analysis.

For a security lead, the practical step is to record that ML-KEM is module-based whenever it is listed in an inventory or vendor questionnaire, and to distinguish it from FrodoKEM, which the FrodoKEM site describes as built on plain learning with errors. Confirm the exact parameter set and the FIPS 203 revision a product implements against the standard itself and the vendor's documentation, since the placement described here applies to the standard, not to every implementation.

How to work out whether a system uses plain LWE, Ring-LWE or the module form

This sequence lets a reader check, from documents and handshake configuration, which of the three lattice forms a given algorithm or product is built on. Each step produces a record that can be compared against the sources, and none of them is a judgment about how secure the product is.

  1. Read the algorithm name and its standard

    Start with the algorithm name the product lists and the document it cites. FrodoKEM is built on plain learning with errors, according to the FrodoKEM project site and the IETF draft that calls it an unstructured lattice based KEM. ML-KEM is standardized in FIPS 203, and the Kyber project page says it uses learning with errors over module lattices, the Module-LWE setting. Record the name, the standard number and the form the cited source assigns to it. This step is done when you can write down one form per algorithm, with the source it came from.

  2. Match the signature algorithm to its source

    If the product also uses signatures, repeat the check for each one. ML-DSA, standardized as FIPS 204 and formerly CRYSTALS-Dilithium, is described by its project page as based on lattice problems over module lattices. Falcon is described by its site as resting on the short integer solution problem over NTRU lattices, which is a different construction from the learning with errors forms and should not be read as one of them. Record each signature algorithm with its cited source. This step is done when every algorithm in the inventory has a recorded form or a note that the sources do not state one.

  3. Read the vendor's parameter and algorithm documentation

    Open the vendor's own documentation for the product and find the parameter set it ships with. Look for the algorithm name followed by a numeric suffix, the public key and ciphertext sizes, and any statement about the underlying problem. Compare the sizes with the figures in the cited RFC or the liboqs entry, because a mismatch tells you the product may use a different variant than the name suggests. If the documentation names no form, record that. This step is done when you have the vendor's stated parameter set and have compared its sizes with the published ones.

  4. Check the TLS or SSH group name in the handshake

    For transport, find the key exchange group the product negotiates. In TLS 1.3, the hybrid groups in draft-ietf-tls-ecdhe-mlkem-04 include X25519MLKEM768 with codepoint 4588, SecP256r1MLKEM768 with 4587, and SecP384r1MLKEM1024 with 4589. These groups carry ML-KEM, which the sources describe as the module form. In SSH, OpenSSH 10.0 uses mlkem768x25519-sha256 by default. Capture the group name from the handshake configuration or a test connection, and confirm the codepoint matches the one in the draft. This step is done when you have the negotiated group name and its codepoint written down.

  5. Confirm the TLS or SSH library version

    The group name only shows what a library can negotiate, so check which version of the library provides it. OpenSSL 3.5.0, released 8 April 2025, adds ML-KEM and changes the default TLS key shares to offer X25519MLKEM768 and X25519. Go 1.24 adds crypto/mlkem and enables X25519MLKEM768 by default in crypto/tls unless the tlsmlkem=0 setting is applied. Record the library and version the product runs, and whether any default was overridden. This step is done when the version and default settings are recorded next to the group name.

  6. Ask the vendor which form the product implements

    Send the vendor a written question asking which form the product implements: plain learning with errors, Ring-LWE, or the module form, and which standard and version it follows. Ask for the reference the answer rests on. A plain answer with a citation to the standard or the vendor's documentation is what you want. The sources do not say how any particular vendor answers this question, so the reply is the evidence. This step is done when you hold a written answer that you can check against the standard it cites.

  7. Record each check as a finding, not a verdict

    Gather the results from the earlier steps into one record per product: algorithm, cited standard, form according to that source, parameter set, group name and codepoint, library version, and vendor answer. Where the sources disagree or a field is blank, mark it as unresolved and say what would settle it. Each entry records what a document says, not whether the product is secure. This step is done when the record lists every item as confirmed by a named source or as open, with the reason stated.

Common mix-ups between LWE, Ring-LWE, Module-LWE and the algorithm names

The names LWE, Ring-LWE, Module-LWE, Kyber, ML-KEM and FrodoKEM often appear side by side in vendor documents and tender responses, but they do not all refer to the same thing. The cards below set out the relationship each name has to the others, as the sources state it, so reviewers can check which problem and which standard a given product actually uses.

ML-KEM is not plain LWE

ML-KEM is the standard named in FIPS 203, and the sources describe its basis as module lattices, not plain learning with errors. Plain LWE appears in schemes such as FrodoKEM, which is built on the learning with errors problem directly. When a vendor says a product uses LWE, ask whether the product uses ML-KEM, which relies on the module-lattice form, or a different scheme that uses unstructured LWE. The two sets of key and ciphertext sizes are not interchangeable, so confirm which one the configuration actually negotiates.

NIST announcement

Ring-LWE and Module-LWE are different

Ring-LWE is an algebraic variant of LWE, and Module-LWE sits between standard LWE and Ring-LWE. The sources describe module lattices as generalizing both arbitrary lattices and ideal lattices, so neither form is simply a renamed copy of the other. Treating the two as the same problem when reviewing a design can misstate which structure a scheme depends on. Check the specific problem named in the specification or the standard, not the family label alone.

Langlois and Stehle paper

Kyber and ML-KEM are the same scheme under two names

Kyber was the project name for the scheme, and the sources state that NIST published it as ML-KEM in FIPS 203. The CRYSTALS-Kyber project page describes Kyber as using learning with errors over module lattices. Older documents, code and library versions may still say Kyber, while newer standards text uses ML-KEM. Confirm that a product's Kyber references map to the FIPS 203 standard for the version deployed, since pre-standard Kyber and the final ML-KEM are not guaranteed to be compatible.

CRYSTALS-Kyber page

FrodoKEM is not the NIST standard

FrodoKEM is built on the learning with errors problem and appears in an ISO amendment, but the sources say NIST did not select it for standardization. It should not be read as the NIST key encapsulation standard, which is ML-KEM under FIPS 203. A tender or audit response that lists FrodoKEM should be checked against the standard it is cited under, whether an ISO amendment or a NIST document, and reviewers should confirm which one the requirement actually refers to.

FrodoKEM site

Size tables are not comparable across forms

The sources give byte sizes for each scheme's public keys, ciphertexts and signatures, but those figures belong to specific parameter sets and specific forms. The FrodoKEM-640 public key and ciphertext are far larger than the ML-KEM-768 values in RFC 9935, and the two schemes use different underlying forms. A table that puts unstructured LWE sizes beside module-lattice sizes is not a like-for-like comparison. Record the parameter set and the document each figure came from before comparing any two rows.

RFC 9935

Questions people ask about LWE and Ring-LWE

Are LWE and Ring-LWE the same problem?

No. Learning with errors (LWE) asks whether noisy random linear equations can be told apart from uniform ones. Ring-LWE is an algebraic variant of LWE, introduced in the same 2010 Eurocrypt paper by Lyubashevsky, Peikert and Regev, that works over a ring. The paper says LWE applications are inefficient because of a quadratic overhead, and that ring-LWE makes many of those applications much more efficient. Ring-LWE is pseudorandom under the assumption that worst-case ideal lattice problems are hard for quantum polynomial-time algorithms. Confirm the exact assumption in the paper before relying on it in a design review.

Which one is newer, LWE or Ring-LWE?

The sources listed on this page do not give a date for the first appearance of LWE. Ring-LWE is presented in the 2010 Eurocrypt paper by Lyubashevsky, Peikert and Regev as an algebraic variant of LWE, so LWE is the older formulation in that sense. Module-LWE came later: Langlois and Stehle (ePrint 2012/090) introduced it as a problem between standard LWE and Ring-LWE. Check the original papers for dates before citing them in a procurement document.

Does FIPS 203 use LWE or Ring-LWE?

FIPS 203, which standardizes ML-KEM (formerly CRYSTALS-Kyber), uses learning with errors over module lattices, the Module-LWE setting. It does not use plain LWE, and the sources listed on this page do not present it as using Ring-LWE. NIST announced FIPS 203 on 13 August 2024 as the primary standard for general encryption, and RFC 9935 names it for its module-lattice basis. If your team needs the exact parameter definitions, read the standard itself rather than relying on a summary.

Is FrodoKEM a NIST standard?

No. NIST did not select FrodoKEM for standardization. FrodoKEM is built on plain learning with errors, which the FrodoKEM project describes, and an IETF draft calls it an unstructured lattice based KEM. The ISO amendment ISO/IEC 18033-2:2006/Amd 2:2026 includes FrodoKEM, according to the FrodoKEM project site. Its public keys and ciphertexts are much larger than ML-KEM's. For example, the liboqs documentation lists FrodoKEM-640 with a 9616-byte public key and 9752-byte ciphertext, while RFC 9935 lists ML-KEM-768 with a 1184-byte public key and 1088-byte ciphertext. Check current status with NIST and ISO before drawing conclusions.

Do we need both LWE and Ring-LWE forms in our stack?

The sources listed on this page do not say that an organization must run both forms. The standardized schemes they cover use module-lattice structure: ML-KEM in FIPS 203 and ML-DSA in FIPS 204, which the Dilithium project says rests on lattice problems over module lattices. FrodoKEM uses unstructured LWE and is listed in the ISO amendment. Whether you need both depends on which standards or ISO profiles your customers, regulators or contracts require. Confirm the scheme list with your standards owner and the vendor documentation for each product you run.

What should we ask a vendor about LWE or Ring-LWE?

Ask which lattice scheme the product uses and which standard it implements: ML-KEM under FIPS 203, FrodoKEM, or another scheme. Ask the vendor to name the exact version, the parameter set (for example, ML-KEM-768) and the source of the implementation. Ask whether key establishment is hybrid, and how it is negotiated in TLS or SSH. Vendors should point to the specific RFC, draft or standard for each claim. Request the key and ciphertext sizes they ship, and check them against the RFC or standard text, since sizes matter for protocol design.

Can our team do this migration ourselves?

Your team can check what a product uses by reading its documentation, standards references and configuration, and by comparing key and ciphertext sizes against the RFCs. Whether your team can carry out the changes depends on how many systems use lattice-based key establishment and how much testing they need. DeployOpen plans, implements and tests self-hosted platforms in your infrastructure, and most engagements are fixed-scope with written deliverables. The cost components are staff time, testing and any vendor support, and they recur when standards or products change. Ask for a quote based on your written scope.

How DeployOpen helps teams confirm which lattice form a system uses

DeployOpen works through this question in the client's own environment, starting from where lattice-based key establishment and signatures appear in their stack. The work confirms which form each component uses, documents the evidence and hands over findings the client's security and compliance teams can review. Engagements are fixed-scope and agreed in writing before work begins.

How we scope

  • The written scope lists which systems, protocols and libraries are in review for LWE vs Ring-LWE: two lattice problems.
  • The scope names the versions and configurations to check, such as the OpenSSL, Go or OpenSSH releases the client runs.
  • Ongoing support and continuous review can be added as a retainer, with its coverage agreed in writing.

How we build

  • We map each deployed component to the standard it implements, such as ML-KEM under FIPS 203 or FrodoKEM as plain LWE.
  • We check the configured key exchange groups and default key shares against the versions in use in the environment.
  • We test the running system and record which lattice form each connection and signature actually uses.

How we hand over

  • The deliverable is a written record of each component, the lattice form it uses and the evidence behind that finding.
  • We document configuration changes made during the work, with the commands or config keys used to make them.
  • The client receives the record and retest results, so their security and compliance teams can review them independently.

How we support

  • We flag where a vendor or project has not published information on a component, and list the open questions to put to it.
  • We recheck the findings after upgrades, since default key shares and supported groups can change between releases.
  • Clients can confirm compatibility for the exact versions they run against the specifications and vendor documentation.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.