Skip to main content

Salsa Fresca: Angular Embeddings and Pre-Training for ML Attacks on Learning With Errors

Publication ,  Journal Article
Stevens, S; Wenger, E; Li, CY; Nolte, N; Saxena, E; Charton, F; Lauter, KE
Published in: Transactions on Machine Learning Research
January 1, 2025

Learning with Errors (LWE) is a hard math problem underlying recently standardized post-quantum cryptography (PQC) systems for key exchange and digital signatures (Chen et al., 2022). Prior work (Wenger et al., 2022; Li et al., 2023a;b) proposed new machine learning (ML)-based attacks on LWE problems with small, sparse secrets, but these attacks require millions of LWE samples to train on and take days to recover secrets. We propose three key methods—better preprocessing, angular embeddings and model pre-training—to improve these attacks, speeding up preprocessing by 25× and improving model sample efficiency by 10×. We demonstrate for the first time that pre-training improves and reduces the cost of ML attacks on LWE. Our architecture improvements enable scaling to larger-dimension LWE problems: this work is the first instance of ML attacks recovering sparse binary secrets in dimension n = 1024, the smallest dimension used in practice for homomorphic encryption applications of LWE where sparse binary secrets are proposed Lauter et al. (2011), albeit for larger modulus q. The ML-based approach is the only attack which has successfully recovered secrets for these parameters.

Duke Scholars

Published In

Transactions on Machine Learning Research

EISSN

2835-8856

Publication Date

January 1, 2025

Volume

2025-April
 

Citation

APA
Chicago
ICMJE
MLA
NLM
Stevens, S., Wenger, E., Li, C. Y., Nolte, N., Saxena, E., Charton, F., & Lauter, K. E. (2025). Salsa Fresca: Angular Embeddings and Pre-Training for ML Attacks on Learning With Errors. Transactions on Machine Learning Research, 2025-April.
Stevens, S., E. Wenger, C. Y. Li, N. Nolte, E. Saxena, F. Charton, and K. E. Lauter. “Salsa Fresca: Angular Embeddings and Pre-Training for ML Attacks on Learning With Errors.” Transactions on Machine Learning Research 2025-April (January 1, 2025).
Stevens S, Wenger E, Li CY, Nolte N, Saxena E, Charton F, et al. Salsa Fresca: Angular Embeddings and Pre-Training for ML Attacks on Learning With Errors. Transactions on Machine Learning Research. 2025 Jan 1;2025-April.
Stevens, S., et al. “Salsa Fresca: Angular Embeddings and Pre-Training for ML Attacks on Learning With Errors.” Transactions on Machine Learning Research, vol. 2025-April, Jan. 2025.
Stevens S, Wenger E, Li CY, Nolte N, Saxena E, Charton F, Lauter KE. Salsa Fresca: Angular Embeddings and Pre-Training for ML Attacks on Learning With Errors. Transactions on Machine Learning Research. 2025 Jan 1;2025-April.

Published In

Transactions on Machine Learning Research

EISSN

2835-8856

Publication Date

January 1, 2025

Volume

2025-April