Paper 2025/266
Memory-Efficient BKW Algorithm for Solving the LWE Problem
Abstract
The study of attack algorithms for the Learning with Errors (LWE) problem is crucial for the cryptanalysis of LWE-based cryptosystems. The BKW algorithm has gained significant attention as an important combinatorial attack for solving LWE. However, its exponential time and memory requirements severely limit its practical applications, even with medium-sized parameters. In this paper, we present a memory-efficient BKW algorithm for LWE, which extends Bogos's work [Asiacrypt'16] on the Learning Parity with Noise (LPN) problem. While their work improved efficiency, it overlooked the high memory demands of the BKW algorithm. We address this with two key improvements. First, we propose an efficient reduction technique for low-memory regimes, \(c\)-sum-PCS-reduce, which combines the \(c\)-sum technique with Parallel Collision Search (PCS) to achieve a better time-memory trade-off. Second, we present an improved memory-optimized finite automaton for our optimized BKW algorithm by incorporating several efficient memory-saving reduction techniques and pruning potential high-memory paths. Our algorithm, using graphs as a meta tool, can automatically identify the optimal reduction path within the graph, aiming to reduce both time and memory complexities. Compared to the state-of-the-art coded-BKW in the lattice-estimator, our algorithm achieves time complexity improvements ranging from \(2^{3.3}\) to \(2^{26.2}\). Furthermore, memory complexity is improved, with reductions ranging from \(2^{9.7}\) to \(2^{71.3}\).
Metadata
- Available format(s)
-
PDF
- Category
- Attacks and cryptanalysis
- Publication info
- A major revision of an IACR publication in PKC 2025
- Keywords
- Post-quantum cryptanalysisLearning with errors problemThe BKW algorithmTime-memory trade-off
- Contact author(s)
-
weiyu @ iie ac cn
bilei @ iie ac cn
luxianhui @ iie ac cn
wangkunpeng @ iie ac cn - History
- 2025-02-18: approved
- 2025-02-18: received
- See all versions
- Short URL
- https://ia.cr/2025/266
- License
-
CC BY
BibTeX
@misc{cryptoeprint:2025/266, author = {Yu Wei and Lei Bi and Xianhui Lu and Kunpeng Wang}, title = {Memory-Efficient {BKW} Algorithm for Solving the {LWE} Problem}, howpublished = {Cryptology {ePrint} Archive, Paper 2025/266}, year = {2025}, url = {https://eprint.iacr.org/2025/266} }