Enregistré dans:
Détails bibliographiques
Auteurs principaux: Saxena, Eshika, Alfarano, Alberto, Charton, François, Allen-Zhu, Zeyuan, Wenger, Emily, Lauter, Kristin
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:https://arxiv.org/abs/2410.03569
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866911119915876352
author Saxena, Eshika
Alfarano, Alberto
Charton, François
Allen-Zhu, Zeyuan
Wenger, Emily
Lauter, Kristin
author_facet Saxena, Eshika
Alfarano, Alberto
Charton, François
Allen-Zhu, Zeyuan
Wenger, Emily
Lauter, Kristin
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2410_03569
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Making Hard Problems Easier with Custom Data Distributions and Loss Regularization: A Case Study in Modular Arithmetic
Saxena, Eshika
Alfarano, Alberto
Charton, François
Allen-Zhu, Zeyuan
Wenger, Emily
Lauter, Kristin
Machine Learning
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.
title Making Hard Problems Easier with Custom Data Distributions and Loss Regularization: A Case Study in Modular Arithmetic
topic Machine Learning
url https://arxiv.org/abs/2410.03569