Lune

CCS2023Top-tier venue

SalsaPicante: A Machine Learning Attack on LWE with Binary Secrets

Cathy Yuanchen Li, Jana Sotáková, Emily Wenger, Mohamed Malhou, Evrard Garcelon, François Charton, Kristin E. Lauter

Abstract

Learning With Errors (LWE) is a hard math problem underpinning many proposed post-quantum cryptographic (PQC) systems. The only PQC Key Exchange Mechanism (KEM) standardized by NIST [13] is based on module LWE, and current publicly available PQ Homomorphic Encryption (HE) libraries are based on ring LWE [2]. The security of LWE-based PQ cryptosystems is critical, but certain implementation choices could weaken them. One such choice is sparse binary secrets, desirable for PQ HE schemes for efficiency reasons. Prior work S [51] demonstrated a machine learningbased attack on LWE with sparse binary secrets in small dimensions ( ≤ 128) and low Hamming weights (ℎ ≤ 4). However, this attack assumes access to millions of eavesdropped LWE samples and fails at higher Hamming weights or dimensions. We present P , an enhanced machine learning attack on LWE with sparse binary secrets, which recovers secrets in much larger dimensions (up to = 350) and with larger Hamming weights (roughly /10, and up to ℎ = 60 for = 350). We achieve this dramatic improvement via a novel preprocessing step, which allows us to generate training data from a linear number of eavesdropped LWE samples (4 ) and changes the distribution of the data to improve transformer training. We also improve the secret recovery methods of S and introduce a novel cross-attention recovery mechanism allowing us to read off the secret directly from the trained models. While P does not threaten NIST's proposed

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

4 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Cool + Cruel = Dual, and New Benchmarks for Sparse LWE cites SALSA VERDE: a machine learning attack on LWE with sparse small secrets
  • Making Hard Problems Easier with Custom Data Distributions and Loss Regularization: A Case Study in Modular Arithmetic cites SALSA VERDE: a machine learning attack on LWE with sparse small secrets
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. SALSA VERDE: a machine learning attack on LWE with sparse small secretsCathy Yuanchen Li, Emily Wenger, Zeyuan Allen-Zhu, François Charton et al.NeurIPS 2023 · 13 citations
  2. AICrypto: Evaluating Cryptography Capabilities of Large Language ModelsYu Wang, Yijian Liu, Liheng Ji, Han Luo et al.ICML 2026 · 3 citations
  3. Cool + Cruel = Dual, and New Benchmarks for Sparse LWEAlexander Karenin, Elena Kirshanova, Julian Nowakowski, Eamonn W. Postlethwaite et al.EUROCRYPT 2026 · 1 citation
  4. Making Hard Problems Easier with Custom Data Distributions and Loss Regularization: A Case Study in Modular ArithmeticEshika Saxena, Alberto Alfarano, Emily Wenger, Kristin E. LauterICML 2025

Builds on1

  1. Zero-Shot Text-to-Image GenerationAditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray et al.ICML 2021 · 6,356 citations

Related papers

  1. SALSA: Attacking Lattice Cryptography with TransformersEmily Wenger, Mingjie Chen, François Charton, Kristin E. LauterNeurIPS 2022 · 61 citations
  2. Benchmarking Attacks on Learning with ErrorsEmily Wenger, Eshika Saxena, Mohamed Malhou, Ellie Thieu et al.S&P 2025
  3. Improving ML Attacks on LWE with Data Repetition and Stepwise RegressionAlberto Alfarano, Eshika Saxena, Emily Wenger, Francois Charton et al.ICML 2026
  4. Provable Dual Attacks on Learning with ErrorsAmaury Pouly, Yixin ShenEUROCRYPT 2024 · 18 citations
  5. A Systematic Study of Sparse LWEAayush Jain, Huijia Lin, Sagnik SahaCRYPTO 2024 · 8 citations
Dusk over the sea between two cliffs drawn in fine vertical lines