SALSA PICANTE: a machine learning attack on LWE with binary secrets
Not on the map. Why?
Abstract (arXiv)
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 is based on module~LWE, and current publicly available PQ Homomorphic Encryption (HE) libraries are based on ring LWE. 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, SALSA, demonstrated a machine learning-based attack on LWE with sparse binary secrets in small dimensions (n ≤ 128) and low Hamming weights (h ≤ 4). However, this attack assumes access to millions of eavesdropped LWE samples and fails at higher Hamming weights or dimensions. We present PICANTE, an enhanced machine learning attack on LWE with sparse binary secrets, which recovers secrets in much larger dimensions (up to n=350) and with larger Hamming weights (roughly n/10, and up to h=60 for n=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 (4n) and changes the distribution of the data to improve transformer training. We also improve the secret recovery methods of SALSA and introduce a novel cross-attention recovery mechanism allowing us to read off the secret directly from the trained models. While PICANTE does not threaten NIST's proposed LWE standards, it demonstrates significant improvement over SALSA and could scale further, highlighting the need for future investigation into machine learning attacks on LWE with sparse binary secrets.
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Builds on 17 of its 56 references that are in the map. First posted on arXiv 7 Mar 2023.
Builds on
17 of 56 references.
References · 17
- 2017Attention Is All You Needcited by 59,932
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2021Zero-Shot Text-to-Image Generationcited by 4,276
- 2014Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translationcited by 4,016
- 2019Mastering Atari, Go, Chess and Shogi by Planning with a Learned Modelcited by 1,327
- 2019Solving Rubik's Cube with a Robot Handcited by 699
- 2018Universal Transformerscited by 613
- 2020Generative Language Modeling for Automated Theorem Provingcited by 379
- 2019Deep Learning for Symbolic Mathematicscited by 266
5 more
- 2019Transformer-based Acoustic Modeling for Hybrid Speech Recognitioncited by 86
- 2021The Neural Data Router: Adaptive Control Flow in Transformers Improves Systematic Generalizationcited by 62
- 2021Linear algebra with transformerscited by 62
- 2022SALSA: Attacking Lattice Cryptography with Transformerscited by 28
- 2013Classical Hardness of Learning with Errorscited by 11
Built on by
Citing papers per year: 2024: 3; 2025: 6; 2026: 2.
11 papers.
- 2024Salsa Fresca: Angular Embeddings and Pre-Training for ML Attacks on Learning With Errorscited by 7
- 2024Making Hard Problems Easier with Custom Data Distributions and Loss Regularization: A Case Study in Modular Arithmeticcited by 4
- 2025Geometric Generality of Transformer-Based Gr"obner Basis Computationcited by 3
- 2024Machine learning for modular multiplicationcited by 2
- 2025Discovering Learning-Friendly Generation Orders for Sequential Computationcited by 1
- 2025The informativeness of the gradient revisitedcited by 0
- 2025Learning Moderately Input-Sensitive Functions: A Case Study in QR Code Decodingcited by 0
- 2025NoMod: A Non-modular Attack on Module Learning With Errorscited by 0
- 2025TAPAS: Datasets for Learning the Learning with Errors Problemcited by 0
- 2026Improving ML Attacks on LWE with Data Repetition and Stepwise Regressioncited by 0
- 2026Discovering Lattice Reduction Strategies via Self-Playcited by 0
- 2026Discovering Lattice Reduction Strategies via Self-Play13 Jun 2026
- 2026Improving ML Attacks on LWE with Data Repetition and Stepwise Regression5 Apr 2026
- 2025TAPAS: Datasets for Learning the Learning with Errors Problem9 Oct 2025
- 2025NoMod: A Non-modular Attack on Module Learning With Errors2 Oct 2025
- 2025Discovering Learning-Friendly Generation Orders for Sequential Computation30 Jun 2025
- 2025Learning Moderately Input-Sensitive Functions: A Case Study in QR Code Decoding25 Jun 2025
- 2025The informativeness of the gradient revisited28 May 2025
- 2025Geometric Generality of Transformer-Based Gr"obner Basis Computation16 Apr 2025
- 2024Making Hard Problems Easier with Custom Data Distributions and Loss Regularization: A Case Study in Modular Arithmetic4 Oct 2024
- 2024Machine learning for modular multiplication29 Feb 2024
- 2024Salsa Fresca: Angular Embeddings and Pre-Training for ML Attacks on Learning With Errors2 Feb 2024