Skip to main content

Making Hard Problems Easier with Custom Data Distributions and Loss Regularization: A Case Study in Modular Arithmetic

Publication ,  Conference
Saxena, E; Alfarano, A; Wenger, E; Lauter, K
Published in: Proceedings of Machine Learning Research
January 1, 2025

Recent work showed that ML-based attacks on Learning with Errors (LWE), a hard problem used in post-quantum cryptography, outperform classical algebraic attacks in certain settings. Although promising, ML attacks struggle to scale to more complex LWE settings. Prior work connected this issue to the difficulty of training ML models to do modular arithmetic, a core feature of the LWE problem. To address this, we develop techniques that significantly boost the performance of ML models on modular arithmetic tasks—enabling the models to sum up to N = 128 elements mod-ulo q ≤ 974269. Our core innovation is the use of custom training data distributions and a carefully designed loss function that better represents the problem structure. We apply an initial proof of concept of our techniques to LWE specifically and find that they allow recovery of 2x harder secrets than prior work. Our techniques also help ML models learn other well-studied problems better, including copy, associative recall, and parity, motivating further study.

Duke Scholars

Published In

Proceedings of Machine Learning Research

EISSN

2640-3498

Publication Date

January 1, 2025

Volume

267

Start / End Page

53080 / 53094
 

Citation

APA
Chicago
ICMJE
MLA
NLM
Saxena, E., Alfarano, A., Wenger, E., & Lauter, K. (2025). Making Hard Problems Easier with Custom Data Distributions and Loss Regularization: A Case Study in Modular Arithmetic. In Proceedings of Machine Learning Research (Vol. 267, pp. 53080–53094).
Saxena, E., A. Alfarano, E. Wenger, and K. Lauter. “Making Hard Problems Easier with Custom Data Distributions and Loss Regularization: A Case Study in Modular Arithmetic.” In Proceedings of Machine Learning Research, 267:53080–94, 2025.
Saxena E, Alfarano A, Wenger E, Lauter K. Making Hard Problems Easier with Custom Data Distributions and Loss Regularization: A Case Study in Modular Arithmetic. In: Proceedings of Machine Learning Research. 2025. p. 53080–94.
Saxena, E., et al. “Making Hard Problems Easier with Custom Data Distributions and Loss Regularization: A Case Study in Modular Arithmetic.” Proceedings of Machine Learning Research, vol. 267, 2025, pp. 53080–94.
Saxena E, Alfarano A, Wenger E, Lauter K. Making Hard Problems Easier with Custom Data Distributions and Loss Regularization: A Case Study in Modular Arithmetic. Proceedings of Machine Learning Research. 2025. p. 53080–53094.

Published In

Proceedings of Machine Learning Research

EISSN

2640-3498

Publication Date

January 1, 2025

Volume

267

Start / End Page

53080 / 53094