More basis reduction for linear codes: backward reduction, BKZ, slide reduction, and more
Surendra Ghentiyala, Noah Stephens-Davidowitz
TL;DR
This work develops a comprehensive framework for basis reduction of linear codes by generalizing lattice-based concepts to codes over $\,\mathbb{F}_q$, including projection, epipodal vectors, and proper bases. It introduces backward reduction, fully backward-reduced bases, and efficient algorithms with Griesmer-bound guarantees, and extends BKZ and slide-reduction to codes with practical performance. The paper also presents two illustrative algorithms and analyzes the limits of basis quality via $k_1$ and related metrics, supported by experiments showing improved balance of epipodal profiles and competitive runtimes. Overall, the results illuminate the promise and limitations of basis reduction for codes and offer concrete tools that may impact decoding strategies and code-based cryptographic constructions.
Abstract
We expand on recent exciting work of Debris-Alazard, Ducas, and van Woerden [Transactions on Information Theory, 2022], which introduced the notion of basis reduction for codes, in analogy with the extremely successful paradigm of basis reduction for lattices. We generalize DDvW's LLL algorithm and size-reduction algorithm from codes over $\mathbb{F}_2$ to codes over $\mathbb{F}_q$, and we further develop the theory of proper bases. We then show how to instantiate for codes the BKZ and slide-reduction algorithms, which are the two most important generalizations of the LLL algorithm for lattices. Perhaps most importantly, we show a new and very efficient basis-reduction algorithm for codes, called full backward reduction. This algorithm is quite specific to codes and seems to have no analogue in the lattice setting. We prove that this algorithm finds vectors as short as LLL does in the worst case (i.e., within the Griesmer bound) and does so in less time. We also provide both heuristic and empirical evidence that it outperforms LLL in practice, and we give a variant of the algorithm that provably outperforms LLL (in some sense) for random codes. Finally, we explore the promise and limitations of basis reduction for codes. In particular, we show upper and lower bounds on how ``good'' of a basis a code can have, and we show two additional illustrative algorithms that demonstrate some of the promise and the limitations of basis reduction for codes.
