On the Concrete Security of LWE with Small Secret

Hao Chen, Lynn Chua, Kristin E. Lauter, Yongsoo Song

TL;DR

This paper demonstrates that the "concrete security" of the Learning With Errors (LWE) problem—the backbone of modern lattice-based cryptography—is lower than previously estimated when using small secrets. By running actual lattice reduction attacks, the authors show that standard security estimators are overly optimistic, as current algorithms can break these instances using smaller blocksizes and less time than theory predicts.

What Problem Does This Paper Address?

Learning With Errors (LWE) is a mathematical problem used to build post-quantum cryptographic systems and Homomorphic Encryption (HE) schemes. In HE, developers often use "small secrets" (where the secret vector contains only 0s, 1s, or small integers) to make computations faster and more efficient.

However, the security of these systems is usually estimated using theoretical heuristics (like the "LWE Estimator") based on how algorithms perform on random lattices. There is a gap in our understanding: do these heuristics hold up when the secret is non-uniform and small? The authors set out to validate these security recommendations by launching concrete attacks against LWE instances to see if the theoretical "safety margins" are actually safe.

Methods

The authors employ a "reduction to uSVP" approach. They transform LWE instances into instances of the unique Shortest Vector Problem (uSVP) using Kannan’s embedding technique. To solve these, they use the BKZ 2.0 algorithm (implemented via the fplll library), which is the industry standard for lattice reduction.

The core of their method involves:

  1. Scaling: Balancing the lengths of the secret and error vectors to optimize the attack.
  2. Comparison: Testing the experimental results against two major theoretical models: the 2008 estimate (Gama and Nguyen) and the 2016 estimate (Alkim et al.).
  3. Parameter Sweeping: Varying the lattice dimension ($n$), modulus ($q$), and blocksize ($\beta$) to find the exact point where the attack succeeds.

Datasets

The study uses two primary sources of data:

  • Synthetically Generated LWE Instances: Randomly generated problems using three secret distributions: Binary $\{0, 1\}$, Ternary $\{0, \pm1\}$, and Discrete Gaussian.
  • TU Darmstadt LWE Challenges: A well-known public benchmark for lattice security. The authors created synthetic versions of these challenges specifically using binary and ternary secret distributions to compare them against the standard "uniform" secret versions.

Key Insights and Ideas

  • The Heuristic Gap: The most significant finding is that BKZ 2.0 performs better than expected on these specific lattices. Attacks succeeded at blocksizes (e.g., $\beta=30$) where estimators predicted a much higher blocksize (e.g., $\beta=40$) would be required.
  • Distribution Matters: Not all "small" secrets are created equal. For the same parameters, Binary secrets are the easiest to break, followed by Ternary. Discrete Gaussian secrets provided the highest level of security among the small distributions tested.
  • The "Hermite Factor" Trend: The authors observed that the root Hermite factor ($\delta$)—a measure of how well a lattice is reduced—actually decreases as the lattice dimension increases for successful attacks. This contradicts the static or increasing trends predicted by standard heuristics for random lattices.
  • uSVP Advantage: The structure of the uSVP lattice created by a small-secret LWE instance makes it "brittle," allowing reduction algorithms to find the shortest vector more efficiently than they would in a generic, random lattice.

Key Results

  • Faster Breaks: Instances of LWE with $n=200$ and $\log(q)=19$ were broken with a blocksize of 30, whereas the LWE Estimator predicted a blocksize of 40 was necessary.
  • Challenge Success: Many instances of the TU Darmstadt LWE challenges were solved significantly faster when the secret was binary or ternary rather than uniform.
  • Quantitative Discrepancy: In one example ($n=110, \log(q)=11$), the authors successfully attacked a binary secret instance with a blocksize of 35, while previous literature (using uniform secrets) suggested a blocksize of 78 was required for the same parameters.
  • Time Efficiency: Successful attacks often ran in a matter of minutes or hours on a standard server, even for parameters that were theoretically considered more secure.

Limitations and Future Work

  • Computational Scale: Due to the exponential nature of lattice reduction, the authors were limited to relatively small blocksizes ($\beta \leq 45$) and dimensions ($n \leq 200$). It remains to be seen if the gap between theory and practice widens or narrows at the much larger parameters used in production-grade cryptography (where $\beta > 100$).
  • Uniform Secrets: The paper focuses on small secrets; the authors suggest that applying this concrete attack framework to uniform secrets would be a valuable follow-up to see if the "LWE Estimator" is more accurate in that regime.
  • Heuristic Refinement: The results suggest that the community needs to develop new, more conservative heuristics specifically tailored for the small-secret distributions used in Homomorphic Encryption.

Summary updated

BibTeX
@article{chen2020concrete,
  author = {Hao Chen and Lynn Chua and Kristin E. Lauter and Yongsoo Song},
  title = {{On the Concrete Security of LWE with Small Secret}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2020},
  url = {https://openreview.net/forum?id=WOPtZ4gSGvc},
}
Figure