Paper 2025/1525

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

Eshika Saxena, FAIR at Meta
Alberto Alfarano, FAIR at Meta
François Charton, FAIR at Meta
Zeyuan Allen-Zhu, FAIR at Meta
Emily Wenger, Duke University
Kristin Lauter, FAIR at Meta
Abstract

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 modulo $q \le 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.

Metadata
Available format(s)
PDF
Category
Attacks and cryptanalysis
Publication info
Published elsewhere. Minor revision. Forty-second International Conference on Machine Learning 2025
Contact author(s)
eshika @ meta com
History
2025-08-30: approved
2025-08-25: received
See all versions
Short URL
https://ia.cr/2025/1525
License
Creative Commons Attribution
CC BY

BibTeX

@misc{cryptoeprint:2025/1525,
      author = {Eshika Saxena and Alberto Alfarano and François Charton and Zeyuan Allen-Zhu and Emily Wenger and Kristin Lauter},
      title = {Making Hard Problems Easier with Custom Data Distributions and Loss Regularization: A Case Study in Modular Arithmetic},
      howpublished = {Cryptology {ePrint} Archive, Paper 2025/1525},
      year = {2025},
      url = {https://eprint.iacr.org/2025/1525}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.