SALSA VERDE: a machine learning attack on Learning With Errors with sparse small secrets
Presents VERDE, a transformer-based ML attack that recovers sparse binary, ternary, and small Gaussian LWE secrets at dimension up to 512, with smaller moduli than prior work.
Schemes: LWE, SALSA, PICANTE, VERDE, LIZARD, BKZ 2.0, uSVP
Findings (quotes checked against the source text)
-
Sparse small LWE secrets are weak: VERDE recovers binary and ternary secrets at 10% sparsity for n=256, log2 q=20, and 3% sparsity at log2 q=12.
For dimension n = 256, we can recover binary and ternary secrets with 10% sparsity (h/n) for log2 q = 20, and with 3%
-
The paper's main finding is that small, sparse LWE secrets are weak.
Our main finding is that small, sparse LWE secrets are weak.
-
Recovery success for binary and ternary secrets is comparable, while small Gaussian secrets are significantly harder to recover.
Recovery is comparable for binary and ternary secrets.
-
Recovery occurs only when the NoMod fraction (samples computed without modular reduction) exceeds about 67%, which the authors identify as the main cause of failure at small q.
Clearly, recovery occurs when NoMod exceeds a threshold value, empirically observed to be 67%.
-
Improved BKZ preprocessing makes the attack scale to dimension 512 at the cost of many CPU-hours, and recoverable h tracks lattice-reduction quality.
For n = 512, the first loops in BKZ 2.0 are very slow.
Numbers (as extracted, not quote-checked)
- max binary secret Hamming weight h recovered, n=512, log2 q=41: 63
- preprocessing time for n=512, log2 q=41 (per CPU, fully parallel): 840 hrs/CPU
- max binary h recovered, n=256, log2 q=20: 33
- max ternary h recovered, n=256, log2 q=12: 6
- training time per epoch for n=256: 1.5 hours
For builders
Avoid sparse or small-entry LWE secrets in any lattice-based design, since this paper shows ML attacks recovering them at moderate dimension and small moduli, though it does not break standardized parameters.
Limits
Attacks only medium-to-hard toy-scale instances (n up to 512, q down to 2^12); does not attack standardized NIST parameters; preprocessing scales poorly with n and q; Gaussian full recovery not implemented.
Topics: cryptanalysis sig-lattice kem