BKW Meets Fourier: New Algorithms for LPN with Sparse Parities

Dana Dachman-Soled, Huijing Gong, Hunter Kippen, Aria Shahverdi

TL;DR

This paper introduces new algorithms for the Learning Parity with Noise (LPN) problem, specifically when the secret vector has a small number of non-zero entries (sparse parity). The authors achieve asymptotic improvements in runtime over existing methods by combining the BKW algorithm with Fourier analysis techniques, offering faster solutions for both constant and low noise settings.

What Problem Does This Paper Address?

The Learning Parity with Noise (LPN) problem is a fundamental challenge in cryptography and theoretical computer science. It involves recovering a secret binary vector s given noisy linear equations of the form y = Ax + e, where A is a random matrix, x is the secret vector, and e is a noise vector. While LPN is believed to be hard, making it a useful cryptographic assumption, efficient algorithms exist for specific cases. This paper focuses on a variant: LPN with sparse parities, where the secret vector s has a Hamming weight (number of non-zero entries) significantly smaller than the dimension n. Existing algorithms for this sparse LPN problem offer only constant-factor improvements in the exponent over brute-force search. The authors aim to achieve asymptotic improvements in the exponent for the runtime of learning sparse LPN, pushing beyond the state-of-the-art. They also explore applications of their findings to learning other complex functions like Disjoint Negative (DNF) and Juntas.

Methods

The core of the paper's contribution lies in its novel algorithmic approaches, which blend established techniques with new insights:

  • Fourier Analysis for p-biased Distributions: The authors leverage the power of Fourier analysis, a standard tool for learning boolean functions. However, standard Fourier analysis works best with uniformly random inputs. To overcome this, they develop methods to transform uniformly random LPN samples into p-biased samples. This allows them to apply Fourier analysis effectively even when the underlying distribution isn't uniform.
  • BKW Algorithm Modification (Constant Noise): For the constant noise setting, they adapt the well-known Blum-Kalai-Wasserman (BKW) algorithm. Specifically, they use a subroutine of BKW to generate p-biased samples by working on a restricted subset of coordinates. This restriction leads to a significant speedup by reducing the effective problem size.
  • Nisan-Wigderson Designs (Low Noise): In the low noise setting, they employ a construction inspired by Nisan and Wigderson's work on designs. This technique allows them to generate a large number of p-biased samples from a smaller set of original LPN samples, ensuring that these generated samples have specific properties (like low covariance) that are crucial for the Fourier analysis step.
  • Iterative Estimation: For learning the secret coordinates, they use a process of estimating Fourier coefficients. This involves taking a mean over multiple samples and comparing the estimated value to a threshold derived from theoretical bounds.

Datasets

Not discussed in the paper. The paper focuses on theoretical algorithms and does not involve training or evaluating on specific datasets.

Key Insights and Ideas

  • Bridging BKW and Fourier Analysis: The paper demonstrates a powerful synergy between the BKW algorithm and Fourier analysis for learning sparse LPN. By using BKW to generate p-biased samples, they enable the application of Fourier techniques, which are more efficient for sparse problems.
  • The Power of p-biasing: Transforming uniformly random samples into p-biased ones is a key enabler. This allows the Fourier analysis to pinpoint the non-zero secret coordinates more effectively, especially when the secret is sparse.
  • Asymptotic Improvement is Key: The authors explicitly aim for asymptotic improvements in the exponent of the runtime. This means their algorithms are not just slightly faster but fundamentally change the scaling behavior for certain problem parameters, outperforming previous methods in a theoretically significant way.
  • Robustness to Noise: The algorithms are designed to handle noise, a critical aspect of LPN. They show that their Fourier analysis approach remains effective even with a non-negligible amount of noise, by carefully bounding the error propagation.

Key Results

The paper presents several key theoretical results:

  • Constant Noise Setting: For sparse LPN with constant noise rate, they achieve an algorithm with runtime and sample complexity that improves asymptotically in the exponent when the sparsity k is of the form log^(1+1/c)(n) where c is between w(1) and o(log log n). This beats brute-force search and BKW in terms of asymptotic exponent.
  • Low Noise Setting: For sparse LPN with subconstant noise rate, they present an algorithm that requires a polynomial number of samples and achieves asymptotic improvement in the exponent when k is around log(n) and the noise rate η is subconstant.
  • Applications to DNF and Juntas: Their LPN algorithms translate to improved learning algorithms for Disjoint Negative (DNF) functions and Juntas, offering asymptotic improvements in specific parameter regimes. For DNFs of size s and approximation factor ε, they achieve improvements when log(s/ε) is between ω(log n log log c) and n^(1-o(1)). For Juntas of size k, they achieve n^o(k) runtime.

Limitations and Future Work

  • Specific Parameter Regimes: The asymptotic improvements are achieved only within specific parameter regimes for sparsity k, noise rate η, and dimension n. The paper clearly defines these regimes.
  • Heuristic vs. Provable Improvements: While the paper focuses on provable improvements, it acknowledges that some prior work in related areas (like BKW optimizations) has involved heuristic improvements. Their work is primarily focused on provable gains.
  • Future Work: The authors suggest extending their work to other learning problems and exploring further parameter settings where their algorithms can offer advantages. The paper also hints at potential improvements by leveraging more advanced techniques for optimizing BKW, though their current work is compatible with only some of these.

Summary updated

Abstract

We consider the Learning Parity with Noise (LPN) problem with sparse secret, where the secret vector $\textbf{s}$ of dimension $n$ has Hamming weight at most $k$. We are interested in algorithms with asymptotic improvement in the $\textit{exponent}$ beyond the state of the art. Prior work in this setting presented algorithms with runtime $n^{c \cdot k}$ for constant $c < 1$, obtaining a constant factor improvement over brute force search, which runs in time ${n \choose k}$. We obtain the following results: - We first consider the $\textit{constant}$ error rate setting, and in this case present a new algorithm that leverages a subroutine from the acclaimed BKW algorithm [Blum, Kalai, Wasserman, J.~ACM '03] as well as techniques from Fourier analysis for $p$-biased distributions. Our algorithm achieves asymptotic improvement in the exponent compared to prior work, when the sparsity $k = k(n) = \frac{n}{\log^{1+ 1/c}(n)}$, where $c \in o(\log \log(n))$ and $c \in \omega(1)$. The runtime and sample complexity of this algorithm are approximately the same. - We next consider the $\textit{low noise}$ setting, where the error is subconstant. We present a new algorithm in this setting that requires only a $\textit{polynomial}$ number of samples and achieves asymptotic improvement in the exponent compared to prior work, when the sparsity $k = \frac{1}{\eta} \cdot \frac{\log(n)}{\log(f(n))}$ and noise rate of $\eta \neq 1/2$ and $\eta^2 = \left(\frac{\log(n)}{n} \cdot f(n)\right)$, for $f(n) \in \omega(1) \cap n^{o(1)}$. To obtain the improvement in sample complexity, we create subsets of samples using the $\textit{design}$ of Nisan and Wigderson [J.~Comput.~Syst.~Sci. '94], so that any two subsets have a small intersection, while the number of subsets is large. Each of these subsets is used to generate a single $p$-biased sample for the Fourier analysis step. We then show that this allows us to bound the covariance of pairs of samples, which is sufficient for the Fourier analysis. - Finally, we show that our first algorithm extends to the setting where the noise rate is very high $1/2 - o(1)$, and in this case can be used as a subroutine to obtain new algorithms for learning DNFs and Juntas. Our algorithms achieve asymptotic improvement in the exponent for certain regimes. For DNFs of size $s$ with approximation factor $\epsilon$ this regime is when $\log \frac{s}{\epsilon} \in \omega \left( \frac{c}{\log n \log \log c}\right)$, and $\log \frac{s}{\epsilon} \in n^{1 - o(1)}$, for $c \in n^{1 - o(1)}$. For Juntas of $k$ the regime is when $k \in \omega \left( \frac{c}{\log n \log \log c}\right)$, and $k \in n^{1 - o(1)}$, for $c \in n^{1 - o(1)}$.
BibTeX
@article{dachmansoled2021bkw,
  author = {Dana Dachman-Soled and Huijing Gong and Hunter Kippen and Aria Shahverdi},
  title = {{BKW Meets Fourier: New Algorithms for LPN with Sparse Parities}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2021},
}

Loading related content...

Figure