betaFeedback

WorksComputer Science

Sample-Preserving Search-to-Decision Reduction for Noisy Linear Equations over Large Moduli

Abstract

The Noisy Linear Equations problem involves finding the solution to a random linear system over a finite field given noisy evaluations. This is a generalisation of various learning problems widely used in cryptography, including Learning with Errors (LWE), Learning with Rounding (LWR), and Learning Parity with Noise (LPN). We present a new sample-preserving search-to-decision reduction for Noisy Linear Equations that has complexity poly(n,m,log⁡q,q/σ)\mathrm{poly}(n,m,\log q, q/σ), where nn is the dimension of the secret, mm is the number of samples, qq is the modulus, and σσ is the magnitude of the noise (defined suitably for the kind of noise involved). In particular, this implies search-to-decision reductions for LWE and LWR that run in time poly(n)\mathrm{poly}(n) even if the modulus qq is exponentially large, as long as the noise-to-modulus ratio σ/qσ/q is non-negligible. Our reduction works for prime moduli qq. If qq is composite, it instead produces a list that contains a small multiple of the solution. Prior to this work, known search-to-decision reductions for LWE and LWR either did not preserve the parameters of the problem (i.e., mm, nn, σσ, and qq), or had complexity that scaled polynomially with either σσ or the largest prime factor of qq.

Introduction

The Noisy Linear Equations problem asks to recover the solution to a random system of linear equations over Zq\mathbb{Z}_q given noisy outputs. Let R:Zqm→Zpm\mathcal{R} : \mathbb{Z}_q^m \to\mathbb{Z}_p^m be a “noise” function. (This function could be randomised, and pp may or may not be the same as qq.) Given a random matrix A∈Zqm×nA \in\mathbb{Z}_q^{m \times n} and the noisy evaluation R(Ax)\mathcal{R}(Ax) for a random x∈Zqnx \in\mathbb{Z}_q^n, the goal for the Search problem is to recover the solution xx. For the Decision problem, similarly given AA, the goal is to distinguish the noisy evaluations R(Ax)\mathcal{R}(Ax) from a random vector in Zpm\mathbb{Z}_p^m.

This problem is clearly easy for some choices of the noise function R\mathcal{R}, such as the identity function. It is believed to be hard for certain choices of the noise function, such as the following:

  • R(v)=v+e mod q\mathcal{R}(v) = v + e \bmod q, where each entry in ee is draws from the discrete Gaussian distribution. This is known as the Learning With Errors (LWE) problem [17]. The hardness of LWE can be shown based on the worst-case hardness of lattice problems [17, 16, 9].

  • R(v)=⌊p⋅v/q⌉ mod p\mathcal{R}(v) = \lfloor p \cdot v/q \rceil\bmod p, where p<qp < q and ⌊⋅⌉\lfloor\cdot\rceil represents rounding to the nearest integer. This is called the Learning With Rounding (LWR) problem [11], whose hardness follows from reductions from LWE [11, 5 BGM+16, 1].

  • R(v)i=vi+ai⋅bi\mathcal{R}(v)_i = v_i + a_i \cdot b_i for each i∈[m]i \in[m], where aia_i is a random element of Zq\mathbb{Z}_q and bib_i is a biased random bit. This is the generalised Learning Parity with Noise (LPN) problem [6].

The above problems are of considerable importance to cryptography, and form the basis of numerous constructions of advanced cryptographic primitives [17, 12, 11, 8, 10].

Search-to-Decision Reductions. In the regimes of interest to public-key cryptography, the planted solution xx is typically unique. Search is thus at least as hard as decision. A search-to-decision reduction establishes their equivalence: It efficiently converts a distinguisher (decision algorithm) into a solution finder (search algorithm). Cryptographic applications such as public-key encryption [17], fully homomorphic encryption [12], and structured pseudorandom functions [11, 8, 10] assume decision hardness. A search-to-decision reduction increases our confidence in their security. In order for this equivalence to be as tight as possible, it is desirable for such reductions to be computationally efficient, preserve the number of samples and variables in the problem instance (i.e., the parameters mm and nn), and preserve the noise function R\mathcal{R}.

Recall that in the LWE problem, the noise function R(v)\mathcal{R}(v) corresponds to adding to each entry in vv a sample (called the “error”) from a discrete Gaussian distribution, say of standard deviation σ\sigma, modulo qq. The first search-to-decision reduction for LWE is from Regev’s work that originally defined the problem [17]. This reduction preserves the error distribution, but requires the modulus qq to be prime. It is also not sample-preserving, with the search algorithm needing a O~(1/ε2)\widetilde{O}(1/\varepsilon^2)-factor of extra samples, where ε\varepsilon is the advantage of the distinguisher. Further, the complexity1 of the reduction scales polynomially with the modulus qq.

Several subsequent works have since extended this reduction to composite moduli qq, under various conditions. Peikert [16] obtained a reduction for q=p1⋯pkq = p_1 \cdots p_k (for distinct primes pip_i) that has runtime scaling polynomially with (∑ipi)(\sum_i p_i), under the requirement that the advantage of the distinguisher ε\varepsilon is larger than Ω(∑iexp⁡(−pi2σ2))\Omega(\sum_i \exp(-p_i^2\sigma^2)). Applebaum et al. [2] obtained a reduction for q=peq=p^e (for prime pp) that has runtime scaling polynomially with pp and ee. Micciancio and Peikert [MP12] combined both results and obtained a reduction for q=p1e1⋯pkekq=p_1^{e_1}\cdots p_k^{e_k} (for distinct primes pip_i) that has runtime scaling polynomially with ∑i(pi+ei)\sum_i(p_i+e_i) and a similar requirement on the distinguisher’s advantage: ε>Ω(∑iexp⁡(−pi2eiσ2/q2))\varepsilon>\Omega(\sum_i\exp(-p_i^{2e_i}\sigma^2/q^2)). All of these reductions also have a O~(1/ε2)\widetilde{O}(1/\varepsilon^2)-factor increase in the number of samples needed by the search algorithm.

Later work by Brakerski et al. [BLP^+13] showed how to reduce Decision LWE over a modulus q′q' to Decision LWE over any modulus q≤q′q\le q', with runtime scaling only polylogarithmically in q′q'. Combined with the other reductions mentioned above, this enables reductions from Search LWE over a nice q′q' (that has efficient search-to-decision reductions) to Decision LWE over any q≤q′q\le q'.

Search-LWEm′,q′,σ′⟹Decision-LWEm′,q′,σ′⟹Decision-LWEm,q,σ\mathrm{Search\text{-}LWE}_{m',q',\sigma'} \Longrightarrow\mathrm{Decision\text{-}LWE}_{m',q',\sigma'} \Longrightarrow\mathrm{Decision\text{-}LWE}_{m,q,\sigma}

The price of Brakersi et al.’s reduction is that the noise-to-modulus ratio of the resulting instance is larger: σ/q=Ω(n⋅σ′/q′)\sigma/q=\Omega(\sqrt{n}\cdot\sigma'/q'). The number of variables remains the same, while the number of samples decreases by Ω(n+log⁡log⁡q)\Omega(n+\log\log q) (i.e., m=m′−Ω(n+log⁡log⁡q)m=m'-\Omega(n+\log\log q)).

Most relevant to our work is the search-to-decision reduction of Micciancio and Mol [14], which is the only known sample-preserving classical reduction for LWE.2 Their reduction avoids the dependence on qq and has runtime scaling polynomially with the noise magnitude σ\sigma instead. In the special case when qq is of the form pep^e and the noise is restricted to be at most (p/2)(p/2) in each element, the complexity reduces to linear in pp (and polylogarithmic in qq). More recently, Sudo et al. [SHTY25] showed a quantum sample-preserving search-to-decision reduction for LWE that uses only two queries to the distinguisher, but succeeds only with probability inverse polynomial in qq.

Using techniques related to those of Micciancio and Mol, Bogdanov et al. [BGM^+16] effectively showed the only known search-to-decision reduction for LWR, which has complexity polynomial in the modulus qq.3

Limitations of Existing Reductions. The easy reduction from decision to search for Noisy Linear Equations preserves all parameters: secret dimension, number of samples, error magnitude, and modulus. To establish equivalence of search and decision, so should the reverse reduction. As described above, all currently known reductions either fail to preserve one or more of these, or else have running time that is polynomial in the modulus or error magnitude (and hence are not efficient when these are large). The features of these reductions are summarised in Table 1.

WorkProblemModuliNoiseSamplesComplexity
[17]LWEPrimePreservingO~(m/ε2)\widetilde{O}(m/\varepsilon^2)poly⁡(q)\operatorname{poly}(q)
[MP12]LWEp1e1⋯pkekp_1^{e_1}\cdots p_k^{e_k}PreservingO~(m/ε2)\widetilde{O}(m/\varepsilon^2)poly⁡(∑ipi+ei)\operatorname{poly}(\sum_i p_i+e_i)
[BLP^+13]+[MP12]LWEAllO(n)O(\sqrt{n}) lossO~(m/ε2)\widetilde{O}(m/\varepsilon^2)poly⁡(∑ipi′+ei′)\operatorname{poly}(\sum_i p_i'+e_i')
[14]LWEPrime PowerPreservingPreservingpoly⁡(σ)\operatorname{poly}(\sigma)
[BLP^+13]+[14]LWEAllO(n)O(\sqrt{n}) lossm+O~(n)m+\widetilde{O}(n)poly⁡(log⁡q,σ)\operatorname{poly}(\log q,\sigma)
[BGM^+16]LWRPrimePreservingPreservingpoly⁡(q)\operatorname{poly}(q)
This WorkLWE/LWRPrimePreservingPreservingpoly⁡(log⁡q,q/σ)\operatorname{poly}(\log q,q/\sigma)

Table 1. Comparison of search-to-decision reductions. nn is the dimension of the secret, mm is the number of samples, σ\sigma is the noise magnitude (ratio of moduli in case of LWR), qq is the modulus, and ε\varepsilon is the advantage of the decision algorithm. Complexity omits poly⁡(m,n,1/ε)\operatorname{poly}(m,n,1/\varepsilon) factors. For reductions involving [BLP^+13], the reduction is from Search LWE with a possibly different modulus q′=p1e1′⋯pkek′q'=p_1^{e_1'}\cdots p_k^{e_k'}.

Our Results

We construct a new parameter-preserving search-to-decision reduction for the Noisy Linear Equations problem for noise functions that are robust to ℓ∞\ell_{\infty} perturbations (see below for details). Where it applies, our reduction is sample-preserving and, roughly speaking, its complexity scales with the noise-to-modulus ratio rather than with the magnitude of the noise or the modulus. Among other corollaries (see § 4), our results imply the following for any prime modulus qq:

  • Search-to-decision reduction for LWE that preserves the dimension of the secret nn, number of samples mm, modulus qq, and error magnitude σ\sigma, with running time that is poly⁡(n,m,log⁡q,q/σ)\operatorname{poly}(n,m,\log q,q/\sigma)

  • Search-to-decision reduction for LWR that preserves the dimension of the secret nn, number of samples mm, modulus qq, and rounding modulus pp, with running time that is poly⁡(n,m,log⁡q,p)\operatorname{poly}(n,m,\log q,p)

In particular, our reduction for LWE runs in polynomial time even if the modulus qq is exponentially large, as long as the error rate σ/q\sigma/q is inverse-polynomial.

More generally, our reduction applies to Noisy Linear Equations problems with a noise function R\mathcal{R} that can tolerate small perturbations. We say R\mathcal{R} is BB-smooth if for every vv of ℓ∞\ell_{\infty}-norm at most BB, with sufficiently high probability over the choice of AA, the distribution of R(Ax+v)\mathcal{R}(Ax+v) is very close to that of R(Ax)\mathcal{R}(Ax). LWE is smooth when BB is somewhat smaller than the error magnitude σ\sigma. LWR is smooth when the BB is somewhat smaller than the ratio of the moduli q/pq/p. (See § 2 for the relevant formal definitions and statements.)

Theorem 1.1 (Informal, see Theorem 3.1 and § 4). Consider any n,m,p,q∈Z+n,m,p,q \in\mathbb{Z}^{+}, with qq being prime, and a BB-smooth noise function R:Zqm→Zpm\mathcal{R}:\mathbb{Z}_q^m \to\mathbb{Z}_p^m. For the Noisy Linear Equations problem over Zq\mathbb{Z}_q with sample count mm, secret dimension nn, and noise function R\mathcal{R}, there exists an algorithm that, given a decision algorithm that runs in time TT and has advantage ε\varepsilon, solves the search problem in time poly⁡(n,m,log⁡q,q/Bε,T)\operatorname{poly}(n,m,\log q,q/B\varepsilon,T) with success probability Ω~(Bε/q)\widetilde{\Omega}(B\varepsilon/q).

Beyond prime moduli, our reductions also work as above for moduli qq that do not have any small prime factors (see § 4 for details). Our reductions also work for general moduli qq in some special cases, such as the entries in the secret vector being very small.

Otherwise, for general qq, our search algorithm instead produces a list of size O~((B/qε)2)\widetilde{O}((B/q\varepsilon)^2) of candidate vectors that contains a vector c⋅xc\cdot x for some 0<∣c∣≤O~((B/qε)2)0 < |c| \leq\widetilde{O}((B/q\varepsilon)^2), where xx is the secret vector. If cc turns out to be coprime with qq, then by trial and error over all elements in the list and all cc, we would be able to recover the secret if equipped with an algorithm to verify the solution.

When cc is not coprime to qq, the output of our reduction reveals only partial information about the secret. This is, in fact, a limitation of all known parameter-preserving reductions for the following reason. When qq is not prime, an LWE distinguisher could censor substantial information about the secret. For example, if the modulus qq is even, the distinguisher might base its decision only on the value of the instance reduced modulo q/2q/2. The output of the distinguisher would then be identical for every pair of secrets congruent modulo q/2q/2. All known parameter-preserving reductions, including ours, either leave the secret intact or modify it by an affine transformation. Such reductions can therefore at best recover the secret up to congruencies modulo small factors of qq. Bogdanov et al. [BGM+16, Lemma 4] point out a related limitation in a step of their reduction from search LWE to decision LWR.

Open Problems. Neither our algorithm nor that of Micciancio and Mol [14] runs in time poly⁡(n)\operatorname{poly}(n) in a parameter setting where the error magnitude is both ω(poly⁡(n))\omega(\operatorname{poly}(n)) and o(q/poly⁡(n))o(q/\operatorname{poly}(n)). Ideally, we would like to have a parameter-preserving reduction whose complexity scales only with polylog⁡(q)\operatorname{polylog}(q) for all noise parameter settings. We do not see a fundamental barrier to such a reduction, but it seems out of the reach of existing techniques. The other open problem is to perform exact secret recovery reduction when qq is an arbitrary composite modulus, without any restrictions on the secret xx.

Technical Overview

In this subsection, we first analyse why most existing reductions have a complexity that scales linearly with the size of the modulus. Then we discuss how [14] achieves a sample-preserving reduction that scales with the size of the error. Finally, we introduce our reduction technique.

Prior Reductions. Regev’s initial reduction for LWE [17] uses a coordinate-guessing technique to recover the secret. Make a guess g∈Zqg \in\mathbb{Z}_q for the first co-ordinate of secret x1x_1. For each sample (a,⟨a,x⟩+e)(a, \langle a,x\rangle+e), it is modified to (a+(b,0,…,0),⟨a,x⟩+e+b⋅g)(a+(b,0,\ldots,0),\langle a,x\rangle+e+b\cdot g) where bb is randomly sampled from Zq\mathbb{Z}_q. If g=x1g=x_1, then the distribution stays the same. Otherwise, it becomes random. Because the reduction has to iterate through all possible guesses, the reduction complexity grows with the size of the domain. Later works by [16, 2 MP12] extend this technique to support larger modulus q=p1e1⋯pkekq=p_1^{e_1}\cdots p_k^{e_k}. The rough idea is to use the Chinese Remainder Theorem and guess the value of the secret modulo the small primes. Therefore, the complexity of the reduction has a polynomial dependence on ∑i(pi+ei)\sum_i(p_i+e_i).

Micciancio and Mol obtain a sample-preserving reduction [14] using an approach analogous to the sample-preserving reduction for LPN with q=2q=2 by Applebaum, Ishai and Kushilevitz [4]. The main idea is to use the distinguisher to construct a weak inner product predictor P(y)P(y) that “predicts” ⟨y,x⟩ mod q\langle y,x\rangle\bmod q, where y∈Zqny\in\mathbb{Z}_q^n is an input and xx is the secret. This can be done by transforming (A,Ax+e)(A,Ax+e) to (A+ry⊤,Ax+e+rg)(A+ry^\top,Ax+e+rg) where rr is a random vector from Zqm\mathbb{Z}_q^m and g∈Fqg\in\mathbb{F}_q is a guess for the value ⟨y,x⟩\langle y,x\rangle. If g=y⊤xg=y^\top x, then the distribution stays the same. Otherwise, it becomes random. The predictor P performs this transformation, runs the LWE distinguisher on the resulting instance, and outputs whatever it outputs. They show that this weak predictor P(y)(y) has significant Fourier weight at xx, and use the learning algorithm from Akavia, Goldwasser and Safra [3] to recover its heavy Fourier coefficients, and thus the secret.

Making a guess for the value of ⟨y,x⟩ mod q\langle y,x\rangle\bmod q degrades the advantage by 1/q1/q, which causes the overall learning algorithm to have a running time polynomial in qq. To avoid this polynomial dependency on the modulus, they use the equivalence of LWE and Knapsack and instead construct a predictor for ⟨y,e⟩\langle y,e\rangle, where ee is the error vector. The domain of the predictor P(y)(y) is changed to y∈Zpmy\in\mathbb{Z}_p^m, where pp is a prime and p≥max⁡ieip\geq\max_i e_i, the output is then P(y)=⟨y,e⟩(y)=\langle y,e\rangle mod pp. This prime pp scales with the error size and not with the original modulus qq. When each term of the yiy_i is at most pp, the predictor guessing range for g=⟨y,e⟩g=\langle y,e\rangle (without modulo pp) is reduced to p⋅m⋅max⁡ieip\cdot m\cdot\max_i e_i.

They will make a guess g∈[0,p⋅m⋅max⁡iei]g \in[0,p \cdot m \cdot\max_i e_i] for the value of ⟨y,e⟩\langle y,e\rangle without modulo pp. The loss in advantage is then a factor of 1/poly⁡(p,m)1/\operatorname{poly}(p,m). Running the learning algorithm on such a predictor has running time polynomial in poly⁡(p,log⁡q)\operatorname{poly}(p,\log q).

Ultimately, existing known reductions involve iterating through all possible guesses for some secret value, which incurs a reduction complexity that scales linearly with the size of the domain of this value (qq in the case of [17], ∥e∥∞\lVert e\rVert_\infty in the case of [14], etc.). If iteration through the domain is used in the reduction, it will be difficult to obtain a reduction that runs in time polylogarithmic in the size of the modulus, secret and error.

Threshold Distinguisher. To obtain a better dependence on qq, we would need to use the single-bit output of the distinguisher more effectively than to rule out just one possible guess each time. Ideally, we hope that a single query to the distinguisher would split the search space in half, similar to a binary search.

Consider a distinguishing algorithm D for the Noisy Linear Equation problem that takes as input (A,R(Ax))(A,\mathcal{R}(Ax)) for some A∈Zqm×nA \in\mathbb{Z}_q^{m \times n} and x∈Zqnx \in\mathbb{Z}_q^n, and outputs a bit from {−1,1}\{-1,1\}. We use this to construct an algorithm P that takes as input (A,R(Ax))(A,\mathcal{R}(Ax)) and also a vector y∈Zqny \in\mathbb{Z}_q^n, and somehow signals whether ∣⟨y,x⟩q∣≤B\lvert\langle y,x\rangle_q\rvert\le B or ∣⟨y,x⟩q∣>B\lvert\langle y,x\rangle_q\rvert> B, for some parameter BB. The closer BB is to q/2q/2, the better, because that reveals more information about inner produce ⟨y,x⟩\langle y,x\rangle, and thus the secret xx.

To see how the construction is done, consider taking the input (A,R(Ax))(A,\mathcal{R}(Ax)) and adding vy⊤∈Zqm×nvy^\top\in\mathbb{Z}_q^{m \times n} to the matrix, where v←{0,1}mv \leftarrow\{0,1\}^m. In other words, the input becomes

(A+vy⊤,R(Ax))(A+vy^\top,\mathcal{R}(Ax))

Since AA is random, this distribution is essentially

(A+vy⊤,R(Ax))≡(A,R(Ax−vy⊤x))(A+vy^\top,\mathcal{R}(Ax)) \equiv(A,\mathcal{R}(Ax-vy^\top x))

If y⊤x=∣⟨y,x⟩q∣≤By^\top x=\lvert\langle y,x\rangle_q\rvert\le B is small, this is like adding a small vector to the already noisy R(Ax)\mathcal{R}(Ax). If the noise function R\mathcal{R} absorbs it, then the distribution is close to the noisy linear equations distribution.

(A,R(Ax−vy⊤x))≈(A,R(Ax))(A,\mathcal{R}(Ax-vy^\top x)) \approx(A,\mathcal{R}(Ax))

Otherwise, if y⊤x=∣⟨y,x⟩q∣y^\top x=\lvert\langle y,x\rangle_q\rvert is large, it overwhelms the noise. And if we add many such vy⊤vy^\top to AA, it essentially becomes randomised and independent of R(Ax)\mathcal{R}(Ax).

Unfortunately, we cannot afford to set B=q/2B=q/2 because it will overwhelm the noise in most natural noise distributions. The actual BB that we use is the largest BB such that for any vector zz whose elements have magnitude at most BB, the statistical distance between R(Ax+z)\mathcal{R}(Ax+z) and R(Ax)\mathcal{R}(Ax) is bounded by O(ε)O(\varepsilon).

In the proof, starting with the observation about adding vy⊤vy^\top mentioned above, we will use a hybrid argument to construct the algorithm P. Informally, what we will show is the following (§ 3.1):

∣Pr⁡[P(y,A,R(Ax))=1∣∣⟨y,x⟩q∣≤B]−Pr⁡[P(y,A,R(Ax))=1∣∣⟨y,x⟩q∣>B]∣≥Ω~(ε)\left|\Pr[\mathrm{P}(y,A,\mathcal{R}(Ax))=1\mid\lvert\langle y,x\rangle_q\rvert\le B]-\Pr[\mathrm{P}(y,A,\mathcal{R}(Ax))=1\mid\lvert\langle y,x\rangle_q\rvert>B]\right| \ge\widetilde{\Omega}(\varepsilon)

Where y←Zqny \leftarrow\mathbb{Z}_q^n, A←Zqm×nA \leftarrow\mathbb{Z}_q^{m \times n}, x←Zqnx \leftarrow\mathbb{Z}_q^n

Heavy Fourier Coefficients. Just having P is still not enough to recover the secret xx. As we would like to have a sample-preserving reduction, we use an idea similar to [14 BGM+16], where the information about xx is obtained by looking into the Fourier coefficients of P. We show that for a good fixed input (A,x,R(Ax))(A,x,\mathcal{R}(Ax)), the function P(y)=P(y,A,R(Ax))P(y)=P(y,A,\mathcal{R}(Ax)) has a heavy Fourier coefficient at some character c⋅xc\cdot x, where cc is a small integer and xx is the secret of the noisy linear equations. We can then recover a list containing c⋅xc\cdot x with the algorithm of Akavia, Goldwasser, and Safra [3] (§ 3.6).

To analyse the Fourier spectrum of P, we use an intermediate threshold function SS to isolate the important Fourier characters (Definition 3.6). The function SS is defined as

S(y)={−1if ∣⟨y,x⟩q∣≤B1otherwiseS(y)=\begin{cases} -1 & \text{if } \lvert\langle y,x\rangle_q\rvert\le B\\ 1 & \text{otherwise} \end{cases}

with yy being the input vector, and xx being the secret of the noisy linear equations. Because of the properties of P described earlier, we can show that P is correlated with SS (§ 3.3).

E[(P(y)−μP)(S(y)−μS)]≥Ω~(Bεq)\mathbb{E}[(P(y)-\mu_P)(S(y)-\mu_S)]\ge\widetilde{\Omega}\left(\frac{B\varepsilon}{q}\right)

where μP=E[P]\mu_P=\mathbb{E}[P] and μS=E[S]\mu_S=\mathbb{E}[S]. This correlation implies that PP must have some non-negligible Fourier weight on the heavy Fourier characters of SS.

By definition of SS, it only has non-zero Fourier coefficients at multiples of xx. Furthermore, we show that the Fourier weight of SS concentrates on the characters c⋅xc\cdot x where cc is small (§ 3.4). Due to their correlation, this implies that P also contains at least one heavy Fourier coefficient at a character c⋅xc\cdot x where cc is small.

Recovering the Secret. Finally, if qq is a prime or cc turns out to be coprime with qq, we can go through every element in the output list and try every possible cc. Since the list and ∣c∣\lvert c\rvert are bounded by poly⁡(q/Bε)\operatorname{poly}(q/B\varepsilon), this process finishes in time that grows polynomially with q/Bεq/B\varepsilon. If a verification algorithm exists, we can check each answer candidate and return the correct one. Alternatively, randomly pick an element from the list and choose a random cc, incurring some loss in the success probability.

Paper Outline

In § 2, we present the notation and technical tools used throughout the paper. In § 3, we prove the main theorem. In § 4, we derive various corollaries of our main theorem, including the reductions for LWE and LWR.

Preliminaries

Notation We use xix_i to denote the ii-th bit of the binary string (vector) xx and AiA_i to denote the ii-th row of the matrix AA. Let Fp\mathbb{F}_p denote the order-pp prime field. Let Zq\mathbb{Z}_q denote the integer ring modulo qq. Write [n]:={1,2,…,n}[n]:=\{1,2,\ldots,n\}. Write ⌊x⌋\lfloor x\rfloor as the number xx rounded to the nearest integer. Write ⟨y,x⟩q∈Zq\langle y,x\rangle_q\in\mathbb{Z}_q as the inner product of vectors xx and yy modulo qq. Define ∣x∣\lvert x\rvert, where x∈Zqx\in\mathbb{Z}_q, as ∣x∣=min⁡(x′,x′−q)\lvert x\rvert=\min(x',x'-q) where x′x' is lifted to the integer ring.

Distributions. Denote D1≡D2D_1 \equiv D_2 if the distributions D1D_1 and D2D_2 are the same. Let U(D)U(D) be the uniform distribution on the set DD. The notation x←Dx \leftarrow D means that xx is sampled from the distribution DD; when DD is a set (we abuse notation), it means xx is sampled from U(D)U(D).

Definition 2.1 (Discrete Gaussian Distribution). Define DσD_\sigma as the discrete Gaussian distribution over integers with parameter σ>0\sigma> 0 and centre at 00.

ρσ(x)=exp⁡(−x2/2σ2)\rho_\sigma(x) = \exp(-x^2 / 2\sigma^2)
Pr⁡[Dσ=x]=ρσ(x)∑y∈Zρσ(y)\Pr[D_\sigma= x] = \frac{\rho_\sigma(x)}{\sum_{y \in\mathbb{Z}} \rho_\sigma(y)}

Definition 2.2 (Noisy Linear Equations). Let n,m,p,q∈Z+n,m,p,q \in\mathbb{Z}^{+}. For sample count mm, secret dimension nn, and a noise function R:Zqm→Zpm\mathcal{R} : \mathbb{Z}_q^m \to\mathbb{Z}_p^m, algorithms S and D are said to have advantage ε∈[0,1]\varepsilon\in[0,1] in solving the Search and Decision Noisy Linear Equations problem, respectively, if they satisfy the following conditions:

  • Search: Suppose A←Zqm×nA \leftarrow\mathbb{Z}_q^{m \times n}, x←Zqnx \leftarrow\mathbb{Z}_q^n, S recovers the secret xx with probability at least ε\varepsilon:

Pr⁡[S(A,R(Ax))=x]≥ε.\Pr[\mathrm{S}(A,\mathcal{R}(Ax)) = x] \ge\varepsilon.
  • Decision: Suppose A←Zqm×nA \leftarrow\mathbb{Z}_q^{m \times n}, x←Zqnx \leftarrow\mathbb{Z}_q^n, b←Zqmb \leftarrow\mathbb{Z}_q^m, D distinguishes samples from uniform with advantage at least ε\varepsilon:

∣Pr⁡[D(A,R(Ax))=1]−Pr⁡[D(A,R(b))=1]∣≥ε.\left|\Pr[\mathrm{D}(A,\mathcal{R}(Ax)) = 1] - \Pr[\mathrm{D}(A,\mathcal{R}(b)) = 1]\right| \ge\varepsilon.

Definition 2.3 (Learning With Error (LWE)). The Learning With Error (LWE) problem with noise parameter σ\sigma is a Noisy Linear Equations problem with the noise function R:Zqm→Zqm\mathcal{R} : \mathbb{Z}_q^m \to\mathbb{Z}_q^m defined as R(y)=(y+e) mod q\mathcal{R}(y) = (y + e) \bmod q, where e←Dσme \leftarrow D_\sigma^m.

Definition 2.4 (Learning With Rounding (LWR)). The Learning With Rounding (LWR) problem with modulus p<qp < q is a Noisy Linear Equations problem with the noise function R:Zqm→Zpm\mathcal{R} : \mathbb{Z}_q^m \to\mathbb{Z}_p^m defined, for each i∈[m]i \in[m], as R(y)i=⌊pqyi′⌉ mod p\mathcal{R}(y)_i = \left\lfloor\frac{p}{q} y_i' \right\rceil\bmod p, where yi′y_i' is yiy_i lifted to the reals.

Coprime secret

Throughout the proof, we will only consider secrets of the noisy linear equations (that is, the vector xx in Definition 2.2) that satisfy gcd⁡(x,q)=gcd⁡(x1,…,xn,q)=1\gcd(x,q) = \gcd(x_1,\ldots,x_n,q) = 1. This is a mild assumption when we sample xx at random because the event of obtaining such a secret occurs with very high probability. We can precisely calculate the probability of this event using the Chinese Remainder Theorem.

Pr⁡[gcd⁡(x1,…,xn,q)=1]=∏p∣qp is prime(1−1pn)≥(1−12n)log⁡q≥1−log⁡q2n\Pr[\gcd(x_1,\ldots,x_n,q) = 1] = \prod_{\substack{p \mid q \\ p\text{ is prime}}} \left(1-\frac{1}{p^n}\right) \ge\left(1-\frac{1}{2^n}\right)^{\log q} \ge1-\frac{\log q}{2^n}

which is a value that is exponentially close to 1.

Definition 2.5. Define P(Zqn)={x∈Zqn∣gcd⁡(x1,…,xn,q)=1}\mathcal{P}(\mathbb{Z}_q^n) = \{x \in\mathbb{Z}_q^n \mid\gcd(x_1,\ldots,x_n,q) = 1\}

Proposition 2.6. For any q∈Z≥2q \in\mathbb{Z}_{\ge2}, TV⁡(U(P(Zqn)),U(Zqn))≤log⁡q2n\operatorname{TV}(U(\mathcal{P}(\mathbb{Z}_q^n)), U(\mathbb{Z}_q^n)) \le\frac{\log q}{2^n}

Noise Tolerance

In this subsection, we show that both LWE noise and LWR noise can absorb small deviations in the noisy codeword (which is the term we shall use to refer to AxAx). Specifically, we will be adding a vector v←{0,B}mv \leftarrow\{0,B\}^{m} to the noisy codeword of LWE and LWR, where BB is something much smaller than the noise magnitude. We show that the total variation distance to the original distribution will still be close despite adding vv. This property is essential for our search-to-decision reduction.

Definition 2.7 (Noise Tolerance). Let n,m,p,q,B∈Z+n,m,p,q,B \in\mathbb{Z}^{+} and ε∈[0,1]\varepsilon\in[0,1]. Let R:Zqm→Zpm\mathcal{R}:\mathbb{Z}_{q}^{m}\to\mathbb{Z}_{p}^{m} be a noise function. We say that R\mathcal{R} is (B,ε)(B,\varepsilon)-noise tolerant if for every ∣b∣≤B|b|\le B and every v∈{0,b}mv\in\{0,b\}^{m},

TV⁡((A,R(Ax)),(A,R(Ax+v)))≤ε\operatorname{TV}\left((A,\mathcal{R}(Ax)),(A,\mathcal{R}(Ax+v))\right)\le\varepsilon

where A←Zqm×nA\leftarrow\mathbb{Z}_{q}^{m\times n} and x←P(Zqn)x\leftarrow P(\mathbb{Z}_{q}^{n}).

Let B′(R,ε)∈Z\mathcal{B}'(\mathcal{R},\varepsilon)\in\mathbb{Z} be the largest BB such that such that R\mathcal{R} is (B,ε)(B,\varepsilon)-noise tolerant. The tolerance bound function is defined as B(R,ε)=min⁡(B′(R,ε),⌊q/4−1⌋)\mathcal{B}(\mathcal{R},\varepsilon)=\min(\mathcal{B}'(\mathcal{R},\varepsilon),\lfloor q/4-1\rfloor).

Proposition 2.8 (LWE Noise Tolerance). Let n,m,q,B∈Z+n,m,q,B\in\mathbb{Z}^{+}, σ∈R\sigma\in\mathbb{R}, and R\mathcal{R} be the LWE noise function with noise parameter σ\sigma. Suppose A∈Zqm×nA\in\mathbb{Z}_{q}^{m\times n}, x∈Zqnx\in\mathbb{Z}_{q}^{n}, v∈{0,b}mv\in\{0,b\}^{m} where ∣b∣≤B|b|\le B, then

TV⁡((A,R(Ax)),(A,R(Ax+v)))≤Bm2σ\operatorname{TV}\left((A,\mathcal{R}(Ax)),(A,\mathcal{R}(Ax+v))\right)\le\frac{B\sqrt{m}}{2\sigma}

Which implies B(R,ε)≥min⁡(2εσ/m,⌊q/4−1⌋)\mathcal{B}(\mathcal{R},\varepsilon)\ge\min(2\varepsilon\sigma/\sqrt{m},\lfloor q/4-1\rfloor).

Proof. Expanding the noise function R\mathcal{R}, then by data processing inequality

TV⁡((A,R(Ax)),(A,R(Ax+v)))=TV⁡((A,Ax+e),(A,Ax+e+v))≤TV⁡(e,e+v)\begin{aligned} \operatorname{TV}\left((A,\mathcal{R}(Ax)),(A,\mathcal{R}(Ax+v))\right)=\operatorname{TV}\left((A,Ax+e),(A,Ax+e+v)\right) \\ &\le\operatorname{TV}(e,e+v) \end{aligned}

Where e←Dσme\leftarrow D_{\sigma}^{m} and addition is done over Z\mathbb{Z}.

Without loss of generality, assume that b≥0b\ge0. Looking at a single dimension i∈[m]i\in[m] such that vi=bv_i=b, and write down the KL divergence

DKL(b+ei∥ei)=∑z∈ZPr⁡[b+ei=z]log⁡Pr⁡[b+ei=z]Pr⁡[ei=z]=∑z∈ZPr⁡[b+ei=z]log⁡exp⁡(z22σ2−(z−b)22σ2)=∑z∈ZPr⁡[b+ei=z]2bz−b22σ2\begin{aligned} D_{KL}(b+e_i\mathrel{\|}e_i) &=\sum_{z\in\mathbb{Z}}\Pr[b+e_i=z]\log\frac{\Pr[b+e_i=z]}{\Pr[e_i=z]} \\ &=\sum_{z\in\mathbb{Z}}\Pr[b+e_i=z]\log\exp\left(\frac{z^2}{2\sigma^2}-\frac{(z-b)^2}{2\sigma^2}\right) \\ &=\sum_{z\in\mathbb{Z}}\Pr[b+e_i=z]\frac{2bz-b^2}{2\sigma^2} \end{aligned}

Let Y=b+eiY=b+e_i, and simplify the statement above

∑zPr⁡[Y=z]2bz−b22σ2=EY∼b+Dσ[2bY−b22σ2]=2bE[Y]−b22σ2=b22σ2≤B22σ2\sum_z\Pr[Y=z]\frac{2bz-b^2}{2\sigma^2} =\mathbb{E}_{Y\sim b+D_{\sigma}}\left[\frac{2bY-b^2}{2\sigma^2}\right] =\frac{2b\mathbb{E}[Y]-b^2}{2\sigma^2} =\frac{b^2}{2\sigma^2} \le\frac{B^2}{2\sigma^2}

For mm dimensions, Pinsker’s Inequality bounds the total variation by

TV⁡(e+v,e)≤12DKL(e+v∥e)=m2DKL(ei+vi∥ei)≤Bm2σ.\operatorname{TV}(e+v,e)\le\sqrt{\frac{1}{2}D_{KL}(e+v\mathrel{\|}e)}=\sqrt{\frac{m}{2}D_{KL}(e_i+v_i\mathrel{\|}e_i)}\le\frac{B\sqrt{m}}{2\sigma}.

Proposition 2.9 (LWR Noise Tolerance). Let n,m,p,q∈Z+n,m,p,q \in\mathbb{Z}^{+}, p<qp<q and R\mathcal{R} be the LWR noise function with rounding modulus pp. Suppose A←Zqm×nA \gets\mathbb{Z}_{q}^{m\times n}, x∈P(Zqn)x \in\mathcal{P}(\mathbb{Z}_{q}^{n}), v∈{0,b}mv \in\{0,b\}^{m} where ∣b∣≤B<q/p|b| \le B < q/p, then

TV⁡((A,R(Ax)),(A,R(Ax+v)))≤pBmq\operatorname{TV}\left((A,\mathcal{R}(Ax)),(A,\mathcal{R}(Ax+v))\right) \le\frac{pBm}{q}

Which implies B(R,ε)≥min⁡(qε/pm,⌊q/4−1⌋)\mathcal{B}(\mathcal{R},\varepsilon) \ge\min(q\varepsilon/pm,\lfloor q/4-1\rfloor).

Proof. Without loss of generality, assume that b≥0b \ge0. Let EE be the event that R(Ax)=R(Ax+v)\mathcal{R}(Ax)=\mathcal{R}(Ax+v). This event happens when every value in AxAx is far away from the boundary where rounding occurs. In other words, for each coordinate value (Ax)i(Ax)_i, lifted to the reals (Ax)i′(Ax)'_i, we have that

⌊pq(Ax)i′⌋≡⌊pq((Ax)i′+b)⌋mod  p.\left\lfloor\frac{p}{q}(Ax)'_i \right\rfloor\equiv\left\lfloor\frac{p}{q}((Ax)'_i+b) \right\rfloor\mod p.

The total variation distance can then be upper-bounded using this event.

TV⁡((A,R(Ax)),(A,R(Ax+v)))≤Pr⁡[E‾]\operatorname{TV}\left((A,\mathcal{R}(Ax)),(A,\mathcal{R}(Ax+v))\right) \le\Pr[\overline{E}]

As gcd⁡(x,q)=1\gcd(x,q)=1 and AA is randomly sampled, AxAx is distributed just as a random vector over Zqm\mathbb{Z}_{q}^{m}. For a list of elements in Zq\mathbb{Z}_{q} that round to the same element in Zp\mathbb{Z}_{p}, only the last bb elements in the list would round to a different element after adding the value bb, while the rest stay the same. This means that at most pBpB elements in Zq\mathbb{Z}_{q} will change value after addition. So for a random element in Zq\mathbb{Z}_{q} the probability that it falls into this boundary region is at most pB/qpB/q. By union bound, the probability of E‾\overline{E} is upper bounded.

TV⁡((A,R(Ax)),(A,R(Ax+v)))≤Pr⁡[E‾]≤pBmq.\operatorname{TV}\left((A,\mathcal{R}(Ax)),(A,\mathcal{R}(Ax+v))\right) \le\Pr[\overline{E}] \le\frac{pBm}{q}.

Fourier Analysis

Here we describe the basics of Fourier Analysis and establish the choice of basis in the paper. Denote ωq=e−2πi/q\omega_q=e^{-2\pi i/q}.

Definition 2.10 (Fourier Transform). Let n,q∈Z+n,q \in\mathbb{Z}^{+}. The Fourier transform of a function S:Fqn→CS:\mathbb{F}_{q}^{n}\to\mathbb{C} is another function S^:Fqn→C\widehat{S}:\mathbb{F}_{q}^{n}\to\mathbb{C} defined as

S^(χ)=Ey←Zqm[S(y)ωq⟨χ,y⟩].\widehat{S}(\chi)=\mathop{\mathbb{E}}_{y\leftarrow\mathbb{Z}_{q}^{m}}\left[S(y)\omega_q^{\langle\chi,y\rangle}\right].

Proposition 2.11 (Inverse Fourier Transform). Let S^\widehat{S} be the Fourier transform of S:Fqn→CS:\mathbb{F}_{q}^{n}\to\mathbb{C}. Then

S(y)=∑χ∈ZqmS^(χ)ωq−⟨χ,y⟩.S(y)=\sum_{\chi\in\mathbb{Z}_{q}^{m}}\widehat{S}(\chi)\omega_q^{-\langle\chi,y\rangle}.

Proposition 2.12 (Parseval–Plancherel). Let n,q∈Z+n,q\in\mathbb{Z}^{+}, functions P,S:Fqm→CP,S:\mathbb{F}_{q}^{m}\to\mathbb{C}

Ey←Zqn[P(y)S(y)‾]=Ey←Zqn[(∑χ∈ZqmP^(χ)ωq−⟨χ,y⟩)(∑χ∈ZqmS^(χ)‾ωq⟨χ,y⟩)]=∑χ∈ZqmP^(χ)S^(χ)‾.\mathop{\mathbb{E}}_{y\leftarrow\mathbb{Z}_{q}^{n}}\left[P(y)\overline{S(y)}\right] = \mathop{\mathbb{E}}_{y\leftarrow\mathbb{Z}_{q}^{n}}\left[ \left(\sum_{\chi\in\mathbb{Z}_{q}^{m}}\widehat{P}(\chi)\omega_q^{-\langle\chi,y\rangle}\right) \left(\sum_{\chi\in\mathbb{Z}_{q}^{m}}\overline{\widehat{S}(\chi)}\omega_q^{\langle\chi,y\rangle}\right) \right] = \sum_{\chi\in\mathbb{Z}_{q}^{m}}\widehat{P}(\chi)\overline{\widehat{S}(\chi)}.

In particular, this implies the following for any such functions PP

Ey←Zqn[∣P(y)∣2]=∑χ∈Zqm∣P^(χ)∣2\mathop{\mathbb{E}}_{y \leftarrow\mathbb{Z}_q^n}\left[|P(y)|^2\right] = \sum_{\chi\in\mathbb{Z}_q^m}|\widehat{P}(\chi)|^2

Reduction

This section describes the proof of the main theorem.

Theorem 3.1. Consider any n,m,p,q∈Z+n,m,p,q \in\mathbb{Z}^{+}, a noise function R:Zqm→Zpm\mathcal{R}:\mathbb{Z}_q^m \to\mathbb{Z}_p^m, and any ε∈(0,1]\varepsilon\in(0,1]. Let t=⌈4log⁡(qm/ε)⌉t=\lceil4\log(qm/\varepsilon)\rceil, denote by BB the noise tolerance bound B(R,ε/4t)\mathcal{B}(\mathcal{R},\varepsilon/4t), and set ε′=(Bε/2qt)\varepsilon'=(B\varepsilon/2qt).

Suppose there exists an algorithm for the Decision Noisy Linear Equations problem over Zq\mathbb{Z}_q with sample count mm, secret dimension nn, and noise function R\mathcal{R}, and that the algorithm runs in time TT and has advantage ε\varepsilon.

Then there exists an algorithm as follows. Given an input (A,R(Ax))(A,\mathcal{R}(Ax)), where A←Zqm×nA \leftarrow\mathbb{Z}_q^{m \times n} and x←P(Zqn)x \leftarrow P(\mathbb{Z}_q^n), it outputs a list of size O~(1/(ε′)2)\widetilde{O}(1/(\varepsilon')^2) that contains c⋅xc \cdot x for some c∈Zq∖{0}c \in\mathbb{Z}_q \setminus\{0\} such that ∣c∣≤⌈32/(ε′)2⌉|c| \leq\lceil32/(\varepsilon')^2\rceil. This algorithm runs in time poly⁡(n,m,log⁡q,1/ε′,T)\operatorname{poly}(n,m,\log q,1/\varepsilon',T) and successfully outputs such a list with probability Ω(ε′)\Omega(\varepsilon').

Proof overview is described in § 1.2.

Section Outline In § 3.1 and § 3.2, we will talk about the threshold distinguisher. § 3.3 is on the correlation of PP and SS. § 3.4 and Section 3.5 are on the concentration of the Fourier weight of SS. Finally, in § 3.6 we state the algorithm from [3] to learn heavy Fourier coefficients.

Threshold Distinguisher

In this subsection, we describe the construction of a threshold distinguisher PP that can distinguish whether ∣⟨y,x⟩q∣≤B|\langle y,x\rangle_q| \leq B or ∣⟨y,x⟩q∣>B|\langle y,x\rangle_q| > B. Note that the inner product is performed over Zq\mathbb{Z}_q.

Lemma 3.2. Let n,m,p,q∈Z+n,m,p,q \in\mathbb{Z}^{+}, ε∈(0,1]\varepsilon\in(0,1], a noise function R:Zqm→Zpm\mathcal{R}:\mathbb{Z}_q^m \to\mathbb{Z}_p^m, t=⌈4log⁡(qm/ε)⌉t=\lceil4\log(qm/\varepsilon)\rceil, B=B(R,ε/4t)B=\mathcal{B}(\mathcal{R},\varepsilon/4t). Suppose there exists an algorithm D for the Decision Noisy Linear Equations problem over Zq\mathbb{Z}_q with sample count mm, secret dimension nn, and noise function R\mathcal{R}, that has advantage ε\varepsilon.

Then there exists an algorithm P that outputs a value in {−1,1}\{-1,1\} such that

∣Pr⁡[P(y,A,R(Ax))=1∣∣⟨y,x⟩q∣≤B]−Pr⁡[P(y,A,R(Ax))=1∣∣⟨y,x⟩q∣>B]∣≥ε4t\left|\Pr[\mathrm{P}(y,A,\mathcal{R}(Ax))=1\mid|\langle y,x\rangle_q|\leq B] - \Pr[\mathrm{P}(y,A,\mathcal{R}(Ax))=1\mid|\langle y,x\rangle_q|>B]\right| \geq\frac{\varepsilon}{4t}

Where y←Zqny \leftarrow\mathbb{Z}_q^n, A←Zqm×nA \leftarrow\mathbb{Z}_q^{m \times n}, x←P(Zqn)x \leftarrow P(\mathbb{Z}_q^n).

Proof. The construction of P is as follows:

Algorithm P: On input (y,A,b=R(Ax))(y,A,b=\mathcal{R}(Ax)) and Decision algorithm D,

  1. Sample k←[0,t−1]k \leftarrow[0,t-1] and v←{0,1}v \leftarrow\{0,1\}

  2. Sample matrices Vk←{0,1}m×kV_k \leftarrow\{0,1\}^{m \times k} and Yk←Zqk×nY_k \leftarrow\mathbb{Z}_q^{k \times n}

  3. Output D(A+VkYk+vyT,b)\mathrm{D}(A+V_kY_k+vy^{\mathsf{T}},b).

We use the hybrid argument to prove the lemma. First, define the hybrid distribution Hk\mathcal{H}_k over Zqm×n×Zpm\mathbb{Z}_q^{m \times n} \times\mathbb{Z}_p^m as

Hk=(A+VkYk,R(Ax))\mathcal{H}_k = (A + V_kY_k, \mathcal{R}(Ax))

Claim 3.3. For any k∈Z≥0k \in\mathbb{Z}_{\ge0}, let H=(A+VkYk+vyT,R(Ax))H = (A + V_kY_k + vy^{\mathsf{T}}, \mathcal{R}(Ax)).

  • If ∣⟨y,x⟩q∣≤B\lvert\langle y,x\rangle_q\rvert\le B, then TV⁡(H,Hk)≤ε/4t\operatorname{TV}(H,\mathcal{H}_k) \le\varepsilon/4t

  • If no condition is imposed, then H≡Hk+1H \equiv\mathcal{H}_{k+1}

Proof. Suppose that ∣⟨y,x⟩q∣≤B\lvert\langle y,x\rangle_q\rvert\le B, rewrite

H=(A+VkYk+vyT,R(Ax))≡(A+VkYk,R(Ax−vyTx))H = (A + V_kY_k + vy^{\mathsf{T}}, \mathcal{R}(Ax)) \equiv(A + V_kY_k, \mathcal{R}(Ax-vy^{\mathsf{T}}x))

The vector vyTx=v⟨y,x⟩qvy^{\mathsf{T}}x = v\langle y,x\rangle_q is uniformly random in {0,⟨y,x⟩q}m\{0,\langle y,x\rangle_q\}^m. By the definition of noise tolerance (Definition 2.7), and the fact that B=B(R,ε/4t)B = \mathcal{B}(\mathcal{R},\varepsilon/4t),

TV⁡(H,Hk)≤ε/4t\operatorname{TV}(H,\mathcal{H}_k) \le\varepsilon/4t

On the other hand, if no condition is imposed on yy, it is uniformly random and

H=(A+VkYk+vyT,b)≡(A+Vk+1Yk+1,b)≡Hk+1.H = (A + V_kY_k + vy^{\mathsf{T}},b) \equiv(A + V_{k+1}Y_{k+1},b) \equiv\mathcal{H}_{k+1}.

It is clear from the definition that H0\mathcal{H}_0 is distributed as a Noisy Linear Equation instance. We claim that once tt is large enough, the terminal hybrid Ht\mathcal{H}_t is distributed as a random instance.

Claim 3.4. (Terminal hybrid). Let t=⌈4log⁡(qm/ε)⌉t = \lceil4\log(qm/\varepsilon)\rceil, A←Zqm×nA \leftarrow\mathbb{Z}_q^{m \times n}, b←Zqmb \leftarrow\mathbb{Z}_q^m,

TV⁡(Ht,(A,R(b)))≤ε2/2qm≪ε\operatorname{TV}\left(\mathcal{H}_t,(A,\mathcal{R}(b))\right) \le\varepsilon^2/2qm \ll\varepsilon

We defer the proof of the claim to the next section (§ 3.2). With this claim, we can then use hybrid argument to conclude a ε/2t\varepsilon/2t advantage in distinguishing between Hk\mathcal{H}_k and Hk+1\mathcal{H}_{k+1} where k←[0,t−1]k \leftarrow[0,t-1].

Proposition 3.5.

∣Pr⁡k←[0,t−1][D(Hk)=1]−Pr⁡k←[0,t−1][D(Hk+1)=1]∣≥ε/2t\left\lvert\Pr_{k\leftarrow[0,t-1]}[D(\mathcal{H}_k)=1] - \Pr_{k\leftarrow[0,t-1]}[D(\mathcal{H}_{k+1})=1] \right\rvert\ge\varepsilon/2t

Proof. Standard hybrid argument with Claim 3.4. Details deferred to Section A.1.

Let HH be the distribution sent to the decision algorithm D in line 3 of the algorithm P. Using Claim 3.3 and Proposition 3.5, we obtain a distinguisher that behaves differently under the condition of ∣⟨y,x⟩q∣≤B\lvert\langle y,x\rangle_q\rvert\le B and no condition. i.e.

∣Pr⁡y←Zqn[D(H)=1∣∣⟨y,x⟩q∣≤B]−Pr⁡y←Zqn[D(H)=1]∣≥ε/2t−ε/4t=ε/4t\left\lvert\Pr_{y\leftarrow\mathbb{Z}_q^n}[D(H)=1 \mid\lvert\langle y,x\rangle_q\rvert\le B] - \Pr_{y\leftarrow\mathbb{Z}_q^n}[D(H)=1] \right\rvert\ge\varepsilon/2t-\varepsilon/4t=\varepsilon/4t

Where the loss of ε/4t\varepsilon/4t is from the total variation distance between HH and Hk\mathcal{H}_k when ∣⟨y,x⟩q∣≤B\lvert\langle y,x\rangle_q\rvert\le B.

The condition ∣⟨y,x⟩q∣>B|\langle y,x\rangle_q|>B can be imposed on the second term at no cost. Let EE be the event that ∣⟨y,x⟩q∣≤B|\langle y,x\rangle_q|\le B. By law of total probability,

∣Pr⁡[D(H)=1∣E]−Pr⁡[D(H)=1]∣=Pr⁡[E‾]⋅∣Pr⁡[D(H)=1∣E]−Pr⁡[D(H)=1∣E‾]∣\left|\Pr[D(H)=1\mid E]-\Pr[D(H)=1]\right| =\Pr[\overline{E}]\cdot\left|\Pr[D(H)=1\mid E]-\Pr[D(H)=1\mid\overline{E}]\right|

Which implies

∣Pr⁡[D(H)=1∣E]−Pr⁡[D(H)=1∣E‾]∣≥ε/4tPr⁡[E‾]≥ε/4t.\left|\Pr[D(H)=1\mid E]-\Pr[D(H)=1\mid\overline{E}]\right| \ge\frac{\varepsilon/4t}{\Pr[\overline{E}]}\ge\varepsilon/4t.

Terminal Hybrid

Here, we show the proof of the claim that the terminal hybrid is close to the uniform distribution.

Claim 3.4 (Terminal hybrid). Let t=⌈4log⁡(qm/ε)⌉t=\lceil4\log(qm/\varepsilon)\rceil, A←Zqm×nA\leftarrow\mathbb{Z}_q^{m\times n}, b←Zqmb\leftarrow\mathbb{Z}_q^m,

TV(Ht,(A,R(b)))≤ε22qm≪εTV\left(\mathcal{H}_t,(A,\mathcal{R}(b))\right)\le\frac{\varepsilon^2}{2qm}\ll\varepsilon

Proof. Start by writing

Ht=(A+VY,R(Ax))≡(A,R(Ax−VYx))\mathcal{H}_t=(A+VY,\mathcal{R}(Ax))\equiv(A,\mathcal{R}(Ax-VYx))

Where A←Zqm×nA\leftarrow\mathbb{Z}_q^{m\times n}, V←{0,1}m×tV\leftarrow\{0,1\}^{m\times t}, Y←Zqt×nY\leftarrow\mathbb{Z}_q^{t\times n}, x←P(Zq)x\leftarrow P(\mathbb{Z}_q).

Since YY is a random matrix in Zqt×n\mathbb{Z}_q^{t\times n}, and gcd⁡(x,q)=1\gcd(x,q)=1, y=Yxy=Yx is uniformly random in Zqt\mathbb{Z}_q^t, even given xx. As every row vv of VV is a random {0,1}\{0,1\} vector of min-entropy 2−t2^{-t}, and dot product with yy is a universal hash, by the leftover hash lemma [13], (y,⟨v,y⟩)(y,\langle v,y\rangle) is 12q2−t\frac{1}{2}\sqrt{q2^{-t}}-statistically close to (y,r)(y,r) for a uniformly random rr. By a hybrid argument, the statistical distance between

(y,⟨v1,y⟩,…,⟨vm,y⟩)(y,\langle v_1,y\rangle,\ldots,\langle v_m,y\rangle)

and (y,r1,…,rm)(y,r_1,\ldots,r_m), where viv_i are the rows of VV, is at most mm times larger. In particular, VyVy is 12mq2−t\frac{1}{2}m\sqrt{q2^{-t}}-close to uniform. By our choice of parameters, this is at most

12mq(ε/qm)4≤ε22qm.\frac{1}{2}m\sqrt{q(\varepsilon/qm)^4}\le\frac{\varepsilon^2}{2qm}.

Correlation With Threshold Function

Lemma 3.2 essentially shows that the algorithm PP is correlated with the indicator for the event ∣⟨y,x⟩q∣≤B|\langle y,x\rangle_q|\le B. For analytic purposes it will be convenient to express this correlation in terms of the covariance of PP and a random variable defined by sampling the inputs to the following function at random.

Definition 3.6 (Threshold Function). Let n,q,B∈Z+n,q,B\in\mathbb{Z}^+. Define S:Zqn×Zqn→{−1,1}S:\mathbb{Z}_q^n\times\mathbb{Z}_q^n\to\{-1,1\} as

S(y,x)={1if ∣⟨y,x⟩q∣≤B−1otherwiseS(y,x)= \begin{cases} 1 & \text{if }|\langle y,x\rangle_q|\le B\\ -1 & \text{otherwise} \end{cases}

The conversion from difference in conditional expectations to the covariance of ±1\pm1-valued random variables is given by the following formula.

Lemma 3.7. For any {−1,1}\{-1,1\}-valued random variables XX and YY,

E[(X−μX)(Y−μY)]=Var⁡(Y)2⋅(E[X∣Y=1]−E[X∣Y=−1]),\mathbb{E}\left[(X-\mu_X)(Y-\mu_Y)\right]=\frac{\operatorname{Var}(Y)}{2}\cdot\left(\mathbb{E}[X\mid Y=1]-\mathbb{E}[X\mid Y=-1]\right),

where μX=E[X]\mu_X=\mathbb{E}[X], μY=E[Y]\mu_Y=\mathbb{E}[Y].

Proof. We can rewrite the variance of YY in terms of probabilities

Var⁡(Y)=E[Y2]−E[Y]2=1−((1−Pr⁡[Y=−1])−Pr⁡[Y=−1])2=−4Pr⁡[Y=−1]2+4Pr⁡[Y=−1]=4⋅Pr⁡[Y=−1](1−Pr⁡[Y=−1])=4Pr⁡[Y=−1]Pr⁡[Y=1].\begin{aligned} \operatorname{Var}(Y)&=\mathbb{E}[Y^2]-\mathbb{E}[Y]^2\\ &=1-\left((1-\Pr[Y=-1])-\Pr[Y=-1]\right)^2\\ &=-4\Pr[Y=-1]^2+4\Pr[Y=-1]\\ &=4\cdot\Pr[Y=-1](1-\Pr[Y=-1])\\ &=4\Pr[Y=-1]\Pr[Y=1]. \end{aligned}

Expand E[(X−μX)(Y−μY)]\mathbb{E}[(X-\mu_X)(Y-\mu_Y)] using law of total probability,

E[(X−μX)(Y−μY)]=E[XY]−μXμY=E[X∣Y=1]Pr⁡[Y=1]−E[X∣Y=−1]Pr⁡[Y=−1]−(E[X∣Y=1]Pr⁡[Y=1]+E[X∣Y=−1]Pr⁡[Y=−1])μY=E[X∣Y=1]Pr⁡[Y=1](1−μY)+E[X∣Y=−1]Pr⁡[Y=−1](−1−μY).\begin{aligned} \mathbb{E}[(X-\mu_X)(Y-\mu_Y)] &=\mathbb{E}[XY]-\mu_X\mu_Y\\ &=\mathbb{E}[X\mid Y=1]\Pr[Y=1]-\mathbb{E}[X\mid Y=-1]\Pr[Y=-1]\\ &\quad-\left(\mathbb{E}[X\mid Y=1]\Pr[Y=1]+\mathbb{E}[X\mid Y=-1]\Pr[Y=-1]\right)\mu_Y\\ &=\mathbb{E}[X\mid Y=1]\Pr[Y=1](1-\mu_Y)+\mathbb{E}[X\mid Y=-1]\Pr[Y=-1](-1-\mu_Y). \end{aligned}

Substitute μY=Pr⁡[Y=1]−Pr⁡[Y=−1]\mu_Y=\Pr[Y=1]-\Pr[Y=-1], then

1−μY=2Pr⁡[Y=−1]and(−1−μY)=−2Pr⁡[Y=1]1-\mu_Y=2\Pr[Y=-1]\quad\text{and}\quad(-1-\mu_Y)=-2\Pr[Y=1]

Finally with Var⁡(Y)=4Pr⁡[Y=−1]Pr⁡[Y=1]\operatorname{Var}(Y)=4\Pr[Y=-1]\Pr[Y=1],

E[XY]−μXμY=2E[X∣Y=1]Pr⁡[Y=1]Pr⁡[Y=−1]−2E[X∣Y=−1]Pr⁡[Y=−1]Pr⁡[Y=1]=Var⁡(Y)2(E[X∣Y=1]−E[X∣Y=−1]).\begin{aligned} \mathbb{E}[XY]-\mu_X\mu_Y &=2\mathbb{E}[X\mid Y=1]\Pr[Y=1]\Pr[Y=-1]\\ &\quad-2\mathbb{E}[X\mid Y=-1]\Pr[Y=-1]\Pr[Y=1]\\ &=\frac{\operatorname{Var}(Y)}{2}\left(\mathbb{E}[X\mid Y=1]-\mathbb{E}[X\mid Y=-1]\right). \end{aligned}

Applying Lemma 3.7 to PP and SS gives the following corollary.

Corollary 3.8. Using the same parameter definitions as in Lemma 3.2,

E[(P(y,A,R(Ax))−μP)(S(y,x)−μS)]≥(Var⁡(S)2)(ε/4t)≥Bε2qt\mathbb{E}\left[(P(y,A,\mathcal{R}(Ax))-\mu_P)(S(y,x)-\mu_S)\right]\geq\left(\frac{\operatorname{Var}(S)}{2}\right)(\varepsilon/4t)\geq\frac{B\varepsilon}{2qt}

Where A←Zqm×nA\leftarrow\mathbb{Z}_q^{m\times n}, x←P(Zqn)x\leftarrow P(\mathbb{Z}_q^n), y←Zqny\leftarrow\mathbb{Z}_q^n.

Proof. From Lemma 3.2, without loss of generality,

Pr⁡[P(y,A,R(Ax))=1∣S(y,x)=1]−Pr⁡[P(y,A,R(Ax))=1∣S(y,x)=−1]≥ε/4t\Pr[P(y,A,\mathcal{R}(Ax))=1\mid S(y,x)=1]-\Pr[P(y,A,\mathcal{R}(Ax))=1\mid S(y,x)=-1]\geq\varepsilon/4t

Then the statement follows from Lemma 3.7. The calculation of the variance of SS is shown as follows:

Var⁡(S)=4Pr⁡[S=1]Pr⁡[S=−1]=4(2B+1q)(1−2B+1q)≥4Bq\operatorname{Var}(S)=4\Pr[S=1]\Pr[S=-1]=4\left(\frac{2B+1}{q}\right)\left(1-\frac{2B+1}{q}\right)\geq\frac{4B}{q}

Where the last inequality is from B≤⌊q/4−1⌋B\leq\lfloor q/4-1\rfloor.

Heavy Fourier Coefficients

To analyse the Fourier coefficients of PP, it is more convenient to fix the input problem instance (A,x,R(Ax))(A,x,\mathcal{R}(Ax)) to be any good instance. We say an instance (A,x,R(Ax))(A,x,\mathcal{R}(Ax)) is ε\varepsilon-good if

Ey←Zqn[(P(y,A,R(Ax))−μP)(S(y,x)−μS)]≥ε\mathbb{E}_{y\leftarrow\mathbb{Z}_q^n}\left[(P(y,A,\mathcal{R}(Ax))-\mu_P)(S(y,x)-\mu_S)\right]\ge\varepsilon

By definition, (P−μP)(S−μS)(P-\mu_P)(S-\mu_S) takes value in [−4,4][-4,4]. By Markov’s inequality (Proposition 3.9),

Ey←Zqn[(P(y,A,R(Ax))−μP)(S(y,x)−μS)]≥ε2(1)\mathbb{E}_{y\leftarrow\mathbb{Z}_q^n}\left[(P(y,A,\mathcal{R}(Ax))-\mu_P)(S(y,x)-\mu_S)\right]\ge\frac{\varepsilon}{2} \tag*{(1)}

for a ε/8\varepsilon/8 fraction of AA, xx, and R\mathcal{R} (if randomized). We fix these choices from here on and view PP and SS as functions of yy only.

P(y)=P(y,A,R(Ax))andS(y)=S(y,x)P(y)=P(y,A,\mathcal{R}(Ax))\quad\text{and}\quad S(y)=S(y,x)

Proposition 3.9. If ∣X∣≤4|X|\le4 and E[X]≥ε\mathbb{E}[X]\ge\varepsilon, then for any random variable YY, we have E[X∣Y]≥ε/2\mathbb{E}[X\mid Y]\ge\varepsilon/2 with probability at least ε/8\varepsilon/8 over YY.

Proof. Let EE be the set of YY for which E[X∣Y]≤ε/2\mathbb{E}[X\mid Y]\le\varepsilon/2. By the law of total expectation,

ε≤E[X]≤E[X∣Y∉E]Pr⁡(Y∉E)+E[X∣Y∈E]Pr⁡(Y∈E)≤4Pr⁡(Y∉E)+ε/2\varepsilon\le\mathbb{E}[X]\le\mathbb{E}[X\mid Y\notin E]\Pr(Y\notin E)+\mathbb{E}[X\mid Y\in E]\Pr(Y\in E)\le4\Pr(Y\notin E)+\varepsilon/2

so that Pr⁡(Y∉E)≥ε/8\Pr(Y\notin E)\ge\varepsilon/8.

By Plancherel’s formula (see Proposition 2.12), (1) has an equivalent formulation in the Fourier domain:

∑χ≠0mP^(χ)⋅S^(χ)≥ε2.(2)\sum_{\chi\ne0^m}\widehat{P}(\chi)\cdot\widehat{S}(\chi)\ge\frac{\varepsilon}{2}. \tag*{(2)}

(S^\widehat{S} will turn out to be real so we omit complex conjugation.)

The function S(y)S(y) can be expressed as 2f(⟨y,x⟩)−12f(\langle y,x\rangle)-1, where f:Zq→Cf:\mathbb{Z}_q\to\mathbb{C} is the univariate function 1(∣t∣≤B)1(|t|\le B). Making the substitution t=⟨y,x⟩t=\langle y,x\rangle in the Fourier transform of ff

f(t)=∑c∈Zqf^(c)ω−ctf(t)=\sum_{c\in\mathbb{Z}_q}\widehat{f}(c)\omega^{-ct}

gives the Fourier expansion

S(y)=∑c∈Zq2f^(c)⋅ω−c⟨y,x⟩−1=∑χ s.t. χ=c⋅x2f^(c)⋅ω−⟨y,χ⟩−1S(y)=\sum_{c\in\mathbb{Z}_q}2\widehat{f}(c)\cdot\omega^{-c\langle y,x\rangle}-1 =\sum_{\chi\ \mathrm{s.t.}\ \chi=c\cdot x}2\widehat{f}(c)\cdot\omega^{-\langle y,\chi\rangle}-1

Comparing this to the inverse Fourier Transform (Proposition 2.11) of SS, we have the following observations:

  • For any χ\chi that is not of the form c⋅xc\cdot x for some c∈Fqc\in\mathbb{F}_q, the Fourier coefficients S^(χ)\widehat{S}(\chi) is $0.

  • When c≠0c\ne0, S^(c⋅x)=2f^(c)\widehat{S}(c\cdot x)=2\widehat{f}(c).

  • S^(0n)=2f^(0n)−1\widehat{S}(0^n)=2\widehat{f}(0^n)-1

Inequality (2) therefore simplifies to

∑c≠0P^(c⋅x) f^(c)≥ε4.(3)\sum_{c\ne0} \widehat{P}(c\cdot x)\,\widehat{f}(c) \ge\frac{\varepsilon}{4}. \tag*{(3)}

As ff is a threshold function, most of its Fourier mass is concentrated on low frequencies (see Figure 1).

Figure 1. Fourier spectrum of ff with q=31q=31 and B=4B=4.

Claim 3.10. Let τ∈Z+\tau\in\mathbb{Z}^{+} and define the light weight set Wl={c∈Zq∣∣c∣>τ}\mathcal{W}_l=\{c\in\mathbb{Z}_q\mid|c|>\tau\}, then

∑c∈Wl∣f^(c)∣2≤1/2τ\sum_{c\in\mathcal{W}_l}\left|\widehat{f}(c)\right|^2\le1/2\tau

Claim 3.11. Let τ∈Z+\tau\in\mathbb{Z}^{+} and define the heavy weight set Wh={c∈Zq∣0<∣c∣≤τ}\mathcal{W}_h=\{c\in\mathbb{Z}_q\mid0<|c|\le\tau\}, then

∑c∈Wh∣f^(c)∣≤1+ln⁡τ\sum_{c\in\mathcal{W}_h}\left|\widehat{f}(c)\right|\le1+\ln\tau

Proofs of the two claims are deferred to the next section (Section 3.5). We now use these to show that (3) forces a heavy Fourier coefficient of the form P^(c⋅x)\widehat{P}(c\cdot x).

Lemma 3.12. Assuming (1), there exists c∈Zqc\in\mathbb{Z}_q such that c≠0c\ne0, ∣c∣≤⌈32/ε2⌉|c|\le\lceil32/\varepsilon^2\rceil and

∣P^(c⋅x)∣≥ε16ln⁡(14/ε).\left|\widehat{P}(c\cdot x)\right|\ge\frac{\varepsilon}{16\ln(14/\varepsilon)}.

Proof. Set τ\tau to ⌈32/ε2⌉\lceil32/\varepsilon^2\rceil. As explained in the text above, (1) is equivalent to (3). The sum in (3) splits as

∑c∈WhP^(c⋅x)f^(c)+∑c∈WlP^(c⋅x)f^(c)≥ε/4.\sum_{c\in\mathcal{W}_h}\widehat{P}(c\cdot x)\widehat{f}(c)+\sum_{c\in\mathcal{W}_l}\widehat{P}(c\cdot x)\widehat{f}(c)\ge\varepsilon/4.

By the Cauchy-Schwarz inequality, Parseval’s formula, and Claim 3.10,

∑c∈WlP^(c⋅x)f^(c)≤∑c∈Wl∣P^(c⋅x)∣2∑c∈Wl∣f^(c)∣2≤Ey←Zq[P(y)2]∑c∈Wl∣f^(c)∣2≤ε2/64=ε/8\begin{aligned} \sum_{c\in W_l} \widehat{P}(c\cdot x)\widehat{f}(c) \le\sqrt{\sum_{c\in W_l}\left|\widehat{P}(c\cdot x)\right|^2}\sqrt{\sum_{c\in W_l}\left|\widehat{f}(c)\right|^2} \\ &\le\sqrt{\mathbb{E}_{y\leftarrow\mathbb{Z}_q}\left[P(y)^2\right]}\sqrt{\sum_{c\in W_l}\left|\widehat{f}(c)\right|^2}\le\sqrt{\varepsilon^2/64}=\varepsilon/8 \end{aligned}

Therefore, the sum over the heavy terms is lower bounded by

∑c∈WhP^(c⋅x)⋅f^(c)≥ε/8\sum_{c\in W_h}\widehat{P}(c\cdot x)\cdot\widehat{f}(c)\ge\varepsilon/8

By Claim 3.11, the sum of all ∣f^(c)∣|\widehat{f}(c)| terms is at most ln⁡τ\ln\tau. Therefore at least one of the terms P^(c⋅x)\widehat{P}(c\cdot x) must have magnitude at least

ε/81+ln⁡τ=ε/8ln⁡[64ε/ε2]≥ε16ln⁡(14/ε)\frac{\varepsilon/8}{1+\ln\tau}=\frac{\varepsilon/8}{\ln[64\varepsilon/\varepsilon^2]}\ge\frac{\varepsilon}{16\ln(14/\varepsilon)}

by our choice of τ\tau.

Fourier analysis of ff

Next, we prove Claims 3.10 and 3.11. We will make use of the following proposition.

Proposition 3.13. For c∈Zqc\in\mathbb{Z}_q, ∣f^(c)∣≤1q∣sin⁡(cπ/q)∣\left|\widehat{f}(c)\right|\le\frac{1}{q|\sin(c\pi/q)|}.

Proof. The Fourier coefficients of ff are

f^(c)=Et←Zq[1(∣t∣≤B)⋅ωqc⋅t]=1q∑t=−BBωqc⋅t\widehat{f}(c)=\mathbb{E}_{t\leftarrow\mathbb{Z}_q}\left[1(|t|\le B)\cdot\omega_q^{c\cdot t}\right]=\frac{1}{q}\sum_{t=-B}^{B}\omega_q^{c\cdot t}

Using the geometric progression formula,

1q∑t=−BBωqc⋅t=ωq−cB(1−ωqc(2B+1))q(1−ωqc)=ωq−cBωqc(2B+1)/2qωqc/2⋅ωq−c(2B+1)/2−ωqc(2B+1)/2ωq−c/2−ωqc/2\frac{1}{q}\sum_{t=-B}^{B}\omega_q^{c\cdot t}=\frac{\omega_q^{-cB}(1-\omega_q^{c(2B+1)})}{q(1-\omega_q^c)}=\frac{\omega_q^{-cB}\omega_q^{c(2B+1)/2}}{q\omega_q^{c/2}}\cdot\frac{\omega_q^{-c(2B+1)/2}-\omega_q^{c(2B+1)/2}}{\omega_q^{-c/2}-\omega_q^{c/2}}

Since ωq−a−ωqa=−2isin⁡(2πa/q)\omega_q^{-a}-\omega_q^a=-2i\sin(2\pi a/q), we can simplify to

1q∑t=−BBωqc⋅t=sin⁡(c(2B+1)π/q)qsin⁡(cπ/q)\frac{1}{q}\sum_{t=-B}^{B}\omega_q^{c\cdot t}=\frac{\sin(c(2B+1)\pi/q)}{q\sin(c\pi/q)}

Since the denominator is always a positive number when c∈Zqc\in\mathbb{Z}_q and the numerator is within range [−1,1][-1,1], ∣f^(c)∣≤1/q∣sin⁡(cπ/q)∣\left|\widehat{f}(c)\right|\le1/q|\sin(c\pi/q)|.

Claim 3.10. Let τ∈Z+\tau\in\mathbb{Z}^{+} and define the light weight set Wl={c∈Zq∣∣c∣>τ}W_l=\{c\in\mathbb{Z}_q\mid|c|>\tau\}, then

∑c∈Wl∣f^(c)∣2≤1/2τ\sum_{c\in W_l}\left|\widehat{f}(c)\right|^2\le1/2\tau

Proof. From Proposition 3.13,

∑c∈Wl∣f^(c)∣2≤1q2∑c∈Wl1sin⁡(cπ/q)2\sum_{c\in W_l} \lvert\hat{f}(c)\rvert^2 \le\frac{1}{q^2}\sum_{c\in W_l}\frac{1}{\sin(c\pi/q)^2}

As sin⁡2\sin^2 is an even function,

1q2∑c∈Wl1sin⁡(cπ/q)2=2q2∑c=τ+1⌊q/2⌋1sin⁡(cπ/q)2\frac{1}{q^2}\sum_{c\in W_l}\frac{1}{\sin(c\pi/q)^2}=\frac{2}{q^2}\sum_{c=\tau+1}^{\lfloor q/2\rfloor}\frac{1}{\sin(c\pi/q)^2}

As the sin function is concave downward from 0 to π/2\pi/2, the function is lower-bounded by the line that connects the origin and the point at (π/2,1)(\pi/2,1), i.e., sin⁡t≥2t/π\sin t\ge2t/\pi.

2q2∑c=τ+1⌊q/2⌋1sin⁡(cπ/q)2≤2q2∑c=τ+1⌊q/2⌋q24c2=12∑c=τ+1⌊q/2⌋1c2\frac{2}{q^2}\sum_{c=\tau+1}^{\lfloor q/2\rfloor}\frac{1}{\sin(c\pi/q)^2}\le\frac{2}{q^2}\sum_{c=\tau+1}^{\lfloor q/2\rfloor}\frac{q^2}{4c^2}=\frac{1}{2}\sum_{c=\tau+1}^{\lfloor q/2\rfloor}\frac{1}{c^2}

Because 1/t21/t^2 is a decreasing function for t>0t>0, we can apply the integral bound to obtain

12∑c=τ+1⌊q/2⌋1c2≤12∫τq/21c2 dc≤12τ.\frac{1}{2}\sum_{c=\tau+1}^{\lfloor q/2\rfloor}\frac{1}{c^2}\le\frac{1}{2}\int_{\tau}^{q/2}\frac{1}{c^2}\,dc\le\frac{1}{2\tau}.

Claim 3.11. Let τ∈Z+\tau\in\mathbb{Z}^{+} and define the heavy weight set Wh={c∈Zq∣0<∣c∣≤τ}W_h=\{c\in\mathbb{Z}_q\mid0<\lvert c\rvert\le\tau\}, then

∑c∈Wh∣f^(c)∣≤1+ln⁡τ\sum_{c\in W_h}\lvert\hat{f}(c)\rvert\le1+\ln\tau

Proof. From Proposition 3.13, using sin⁡t≥2t/π\sin t\ge2t/\pi in the relevant range,

∑c∈Wh∣f^(c)∣≤∑c∈Wh1q∣sin⁡(cπ/q)∣=2∑c=1τ1qsin⁡(cπ/q)≤∑c=1τ1c≤1+∫1τ1c dc≤1+ln⁡τ.\begin{aligned} \sum_{c\in W_h}\lvert\hat{f}(c)\rvert\le\sum_{c\in W_h}\frac{1}{q\lvert\sin(c\pi/q)\rvert}=2\sum_{c=1}^{\tau}\frac{1}{q\sin(c\pi/q)} \\ &\le\sum_{c=1}^{\tau}\frac{1}{c}\le1+\int_1^\tau\frac{1}{c}\,dc\le1+\ln\tau. \end{aligned}

Learning Significant Fourier Coefficients

With Lemma 3.12, we know that there exists a small ∣c∣\lvert c\rvert such that the Fourier coefficient P^(c⋅x)\hat{P}(c\cdot x) is large, say at least α\alpha. To find c⋅xc\cdot x, we use the Learning Significant Fourier Coefficients algorithm from Akavia, Goldwasser and Safra [3] to find all Fourier Coefficients with magnitude at least α\alpha.

First, we show that the number of such coefficients is at most 1/α21/\alpha^2.

Proposition 3.14. Let α∈(0,1]\alpha\in(0,1], W={χ∈Zqn∣∣P^(χ)∣≥α}W=\{\chi\in\mathbb{Z}_q^n\mid\lvert\hat{P}(\chi)\rvert\ge\alpha\}, then ∣W∣≤1/α2\lvert W\rvert\le1/\alpha^2

Proof. Since P:Zqn→{−1,1}P:\mathbb{Z}_q^n\to\{-1,1\}, Ey←Zqn[P(y)2]=1\mathbb{E}_{y\leftarrow\mathbb{Z}_q^n}[P(y)^2]=1. So

∣W∣α2=∑χ∈Wα2≤∑χ∈WP^(χ)2≤∑χ∈ZqnP^(χ)2=Ey←Zqn[P(y)2]≤1.\lvert W\rvert\alpha^2=\sum_{\chi\in W}\alpha^2\le\sum_{\chi\in W}\hat{P}(\chi)^2\le\sum_{\chi\in\mathbb{Z}_q^n}\hat{P}(\chi)^2=\mathbb{E}_{y\leftarrow\mathbb{Z}_q^n}[P(y)^2]\le1.

:::

Theorem 3.15 ([3]). Let α∈(0,1]\alpha\in(0,1]. There exists an algorithm that, given a function P:Zqn→{−1,1}\mathrm{P}: \mathbb{Z}_q^n \to\{-1,1\} and α\alpha, outputs W={x∈Zqn∣∣P^(x)∣≥α}\mathcal{W}=\{x\in\mathbb{Z}_q^n\mid|\widehat{\mathrm{P}}(x)|\ge\alpha\}, except with probability o(α)o(\alpha), and runs in time poly⁡(n,log⁡q,1/α)\operatorname{poly}(n,\log q,1/\alpha).

Proof of Theorem 3.1

From Lemma 3.2 and Corollary 3.8, we get an algorithm P\mathrm{P} such that

E[(P(y,A,R(Ax))−μP)(S(y,x)−μS)]≥Bε2qt.\mathbb{E}\left[(\mathrm{P}(y,A,\mathcal{R}(Ax))-\mu_{\mathrm{P}})(S(y,x)-\mu_S)\right]\ge\frac{B\varepsilon}{2qt}.

Let ε′=(Bε/2qt)\varepsilon'=(B\varepsilon/2qt). With probability at least ε′/8\varepsilon'/8 we get a ε′/2\varepsilon'/2-good instance (A,x,R(Ax))(A,x,\mathcal{R}(Ax)). In a good instance, Lemma 3.12 says that there exists c∈Zqc\in\mathbb{Z}_q such that c≠0c\ne0, ∣c∣≤⌈32/(ε′)2⌉|c|\le\left\lceil32/(\varepsilon')^2\right\rceil and

∣P^(c⋅x)∣≥ε′16ln⁡(14/ε′)=α.|\widehat{\mathrm{P}}(c\cdot x)|\ge\frac{\varepsilon'}{16\ln(14/\varepsilon')}=\alpha.

Then, we run the [[3] algorithm from Theorem 3.15 on P\mathrm{P} with α\alpha to obtain a list that contains c⋅xc\cdot x. By Proposition 3.14, this list has size at most O~(1/(ε′)2)\widetilde{O}(1/(\varepsilon')^2). The final runtime of the algorithm is poly⁡(n,m,log⁡q,1/ε′,T)\operatorname{poly}(n,m,\log q,1/\varepsilon',T), where TT is the running time of the algorithm for the Decision Noisy Linear Equations problem.

The success probability of the algorithm depends on whether we obtain an ε′/2\varepsilon'/2-good instance and whether the [[3] algorithm from Theorem 3.15 returns the list correctly. By the union bound, the algorithm will succeed with probability ε′/8−o(ε′)=Ω(ε′)\varepsilon'/8-o(\varepsilon')=\Omega(\varepsilon')

Corollaries

We can derive corollaries from Theorem 3.1 for the specific noise functions corresponding to LWE and LWR. From Proposition 2.6, the total variation distance of U(P(Zqn))U(\mathcal{P}(\mathbb{Z}_q^n)) and U(Zqn)U(\mathbb{Z}_q^n) is small. Therefore, we write the following with the distribution of the secret being U(Zqn)U(\mathbb{Z}_q^n) instead.

Corollary 4.1 (Partial Secret Recovery for LWE/LWR). Consider any n,m,q∈Z+n,m,q\in\mathbb{Z}^+, and any ε∈(0,1]\varepsilon\in(0,1]. Consider the LWE/LWR problem over Zq\mathbb{Z}_q with sample count mm, secret dimension nn.

  • Under LWE noise with parameter σ∈R\sigma\in\mathbb{R}, σ<q\sigma<q, set ε′=σε2/qm\varepsilon'=\sigma\varepsilon^2/q\sqrt{m}, or,

  • Under LWR noise with rounding modulus p∈Z+p\in\mathbb{Z}^+, p<qp<q, set ε′=ε2/pm\varepsilon'=\varepsilon^2/pm

Suppose there exists an algorithm for the corresponding Decision LWE/LWR that runs in time TT and has advantage ε\varepsilon.

Then there exists an algorithm that, given the problem instance, outputs a list of size O~(1/(ε′)2)\widetilde{O}(1/(\varepsilon')^2) that contains c⋅xc\cdot x, where xx is the solution, for some c∈Zq∖{0}c\in\mathbb{Z}_q\setminus\{0\} such that ∣c∣≤O~(1/(ε′)2)|c|\le\widetilde{O}(1/(\varepsilon')^2). This algorithm runs in time poly⁡(n,m,log⁡q,1/ε′,T)\operatorname{poly}(n,m,\log q,1/\varepsilon',T) and successfully outputs such a list with probability Ω~(ε′)\widetilde{\Omega}(\varepsilon').

Proof. For LWE, by Proposition 2.8, set B=min⁡(2εσ/m,⌊q/4−1⌋)B=\min(2\varepsilon\sigma/\sqrt{m},\lfloor q/4-1\rfloor). For LWR, by Proposition 2.9, set B=min⁡(qε/pm,⌊q/4−1⌋)B=\min(q\varepsilon/pm,\lfloor q/4-1\rfloor). The rest follows from Theorem 3.1.

We note that, assuming that the search problem and decision problem are defined over the same secret distribution, our reduction also applies to secret distributions other than uniform over Zqm\mathbb{Z}_q^m, as long as the secret xx satisfies

gcd⁡(x1,…,xn,q)=1\gcd(x_1,\ldots,x_n,q)=1

with very high probability.

Exact Secret Recovery

So far, we have shown that our algorithm can compute a list of vectors that contains some small multiple of the secret. Under certain conditions, the exact secret can be recovered from this list. We describe a few sufficient conditions for the recovery.

The first requirement for recovery is the existence of an efficient verification algorithm V for the Noisy Linear Equations problem.

Definition 4.2 (Verification Algorithm). A verification algorithm VV for a Noisy Linear Equations problem is an algorithm in which the following holds with high probability over AA, xx, and RR:

∀x′∈Zqn, V(x′,A,R(Ax))={1if x′=x−1if x′≠x\forall x' \in\mathbb{Z}_q^n,\ V(x',A,R(Ax)) = \begin{cases} 1 & \text{if } x'=x\\ -1 & \text{if } x'\ne x \end{cases}

For typical Noisy Linear Equations problems, such a verification algorithm exists when mm is large enough, and the error is small enough for unique recovery. In particular, a verification algorithm for LWE exists when nlog⁡q≪mlog⁡(q/σ)n\log q \ll m\log(q/\sigma), while it exists for LWR when nlog⁡q≪mlog⁡pn\log q \ll m\log p.

The next requirement is to be able to recover x∈Zqnx \in\mathbb{Z}_q^n given c⋅xc\cdot x and cc.

Definition 4.3 (Recovery Algorithm). A recovery algorithm G for a Noisy Linear Equations problem is an algorithm such that, for all xx, and c∈Zq∖{0}c \in\mathbb{Z}_q \setminus\{0\}:

G(c⋅x,c)=xG(c\cdot x,c)=x

Some settings were such a G exists are when qq is a prime, or if we are guaranteed that c⋅max⁡ixi≤qc\cdot\max_i x_i\le q. For example, when the secret xx is uniform over {0,1}n\{0,1\}^n and ∣c∣<q|c|<q (Binary secret LWE problem [9]).

Since the algorithm’s output list size is O~(1/(ε′)2)\widetilde{O}(1/(\varepsilon')^2) and ∣c∣≤O~(1/(ε′)2)|c|\le\widetilde{O}(1/(\varepsilon')^2), in time O~(1/(ε′)4)\widetilde{O}(1/(\varepsilon')^4) we can try all candidates cc on every element in the output list. If G returns xx on any one of them, the verification algorithm V would tell us that we got the right answer.

Suppose a verification algorithm does not exist, but G exists. We can still perform recovery at the cost of lowering the success probability by randomly choosing an element from the output list and randomly choosing a cc. The success probability of the search algorithm would then become Ω((ε′)5)\Omega((\varepsilon')^5).

Corollary 4.4 (Search-to-Decision Reduction for LWE/LWR). Consider any n,m,q,p∈Z+n,m,q,p\in\mathbb{Z}^+, a noise function R:Zqm→ZpmR:\mathbb{Z}_q^m\to\mathbb{Z}_p^m, and any ε∈(0,1]\varepsilon\in(0,1]. For the LWE/LWR over Zq\mathbb{Z}_q with sample count mm, secret dimension nn,

  • Under LWE noise with parameter σ∈R\sigma\in\mathbb{R}, σ<q\sigma<q, set ε′=σε2/(qm)\varepsilon'=\sigma\varepsilon^2/(q\sqrt{m})

  • Under LWR noise with rounding modulus p∈Z+p \in\mathbb{Z}^{+}, p<qp < q, set ε′=ε2/pm\varepsilon' = \varepsilon^2/pm

Suppose there exists a Decision algorithm that runs in time TDT_{\mathrm{D}} and has advantage ε\varepsilon, and a Recovery algorithm that runs in time TGT_{\mathrm{G}}.

Then there exists a Search algorithm that runs in time poly⁡(n,m,log⁡q,1/ε′,TD,TG)\operatorname{poly}(n,m,\log q,1/\varepsilon',T_{\mathrm{D}},T_{\mathrm{G}}) with success probability at least Ω~((ε′)5)\widetilde{\Omega}((\varepsilon')^5).

Furthermore, if a Verification algorithm that runs in time TVT_{\mathrm{V}} exists, there exists a Search algorithm that runs in time poly⁡(n,m,log⁡q,1/ε′,TD,TV,TG)\operatorname{poly}(n,m,\log q,1/\varepsilon',T_{\mathrm{D}},T_{\mathrm{V}},T_{\mathrm{G}}) with success probability at least Ω~(ε′)\widetilde{\Omega}(\varepsilon').

Specifically, this applies to LWE when nlog⁡q≪mlog⁡(q/σ)n \log q \ll m \log(q/\sigma), σ≪o(p)\sigma\ll o(p) and LWR when nlog⁡q≪mlog⁡pn \log q \ll m \log p, p≪qp \ll q

Acknowledgments

This work was supported by the National Research Foundation, Singapore, under its NRF Fellowship programme, award no. NRF-NRFF14-2022-0010 and by an NSERC Discovery Grant. AI tools were used as typing assistants for grammar and basic editing.

Supplementary Proofs

Hybrid Argument

Proposition 3.5.

∣Pr⁡k←[0,t−1][D(Hk)=1]−Pr⁡k←[0,t−1][D(Hk+1)=1]∣≥ε2t\left|\Pr_{k\leftarrow[0,t-1]}[D(\mathcal{H}_k)=1]-\Pr_{k\leftarrow[0,t-1]}[D(\mathcal{H}_{k+1})=1]\right|\ge\frac{\varepsilon}{2t}

Proof of Proposition 3.5. Using TV(Ht,(A,R(b)))≤ε2/2qtTV(\mathcal{H}_t,(A,\mathcal{R}(b)))\le\varepsilon^2/2qt from Claim 3.4,

∣Pr⁡i←[0,t−1][D(Hi)=1]−Pr⁡i←[0,t−1][D(Hi+1)=1]∣=∣∑i=0t−11tPr⁡[D(Hi)=1]−1tPr⁡[D(Hi+1)=1]∣=∣1t(Pr⁡[D(H0)=1]−Pr⁡[D(Ht)=1])∣≥εt−ε22qt≥ε2t\begin{aligned} &\left|\Pr_{i\leftarrow[0,t-1]}[D(\mathcal{H}_i)=1]-\Pr_{i\leftarrow[0,t-1]}[D(\mathcal{H}_{i+1})=1]\right|\\ &=\left|\sum_{i=0}^{t-1}\frac{1}{t}\Pr[D(\mathcal{H}_i)=1]-\frac{1}{t}\Pr[D(\mathcal{H}_{i+1})=1]\right|\\ &=\left|\frac{1}{t}\left(\Pr[D(\mathcal{H}_0)=1]-\Pr[D(\mathcal{H}_t)=1]\right)\right|\\ &\ge\frac{\varepsilon}{t}-\frac{\varepsilon^2}{2qt}\ge\frac{\varepsilon}{2t} \end{aligned}

□\square

References

  1. [1]Jacob Alperin-Sheriff and Daniel Apon. Dimension-preserving reductions from LWE to LWR. IACR Cryptol. ePrint Arch., 2016:589, 2016.
  2. [2]Benny Applebaum, David Cash, Chris Peikert, and Amit Sahai. Fast cryptographic primitives and circular-secure encryption based on hard learning problems. In Shai Halevi, editor, Advances in Cryptology - CRYPTO 2009, 29th Annual International Cryptology Conference, Santa Barbara, CA, USA, August 16-20, 2009. Proceedings, volume 5677 of Lecture Notes in Computer Science, pages 595–618. Springer, 2009.DOI
  3. [3]Adi Akavia, Shafi Goldwasser, and Shmuel Safra. Proving hard-core predicates using list decoding. In 44th Symposium on Foundations of Computer Science, FOCS 2003, Cambridge, MA, USA, October 11-14, 2003, Proceedings, pages 146–157. IEEE Computer Society, 2003.
  4. [4]Benny Applebaum, Yuval Ishai, and Eyal Kushilevitz. Cryptography with constant input locality. J. Cryptol., 22(4):429–469, 2009.
  5. [5]Joël Alwen, Stephan Krenn, Krzysztof Pietrzak, and Daniel Wichs. Learning with rounding, revisited - new reduction, properties and applications. In Ran Canetti and Juan A. Garay, editors, Advances in Cryptology - CRYPTO 2013 - 33rd Annual Cryptology Conference, Santa Barbara, CA, USA, August 18-22, 2013. Proceedings, Part I, volume 8042 of Lecture Notes in Computer Science, pages 57–74. Springer, 2013.
  6. [6]Avrim Blum, Merrick L. Furst, Michael J. Kearns, and Richard J. Lipton. Cryptographic primitives based on hard learning problems. In Douglas R. Stinson, editor, Advances in Cryptology - CRYPTO ’93, 13th Annual International Cryptology Conference, Santa Barbara, California, USA, August 22-26, 1993, Proceedings, volume 773 of Lecture Notes in Computer Science, pages 278–291. Springer, 1993.DOI
  7. [8]Dan Boneh, Kevin Lewi, Hart William Montgomery, and Ananth Raghunathan. Key homomorphic prfs and their applications. In Ran Canetti and Juan A. Garay, editors, Advances in Cryptology - CRYPTO 2013 - 33rd Annual Cryptology Conference, Santa Barbara, CA, USA, August 18-22, 2013. Proceedings, Part I, volume 8042 of Lecture Notes in Computer Science, pages 410–428. Springer, 2013.
  8. [9]Zvika Brakerski, Adeline Langlois, Chris Peikert, Oded Regev, and Damien Stehlé. Classical hardness of learning with errors. In Dan Boneh, Tim Roughgarden, and Joan Feigenbaum, editors, Symposium on Theory of Computing Conference, STOC’13, Palo Alto, CA, USA, June 1-4, 2013, pages 575–584. ACM, 2013.arxiv.org/abs/1306.0281
  9. [10]Abhishek Banerjee and Chris Peikert. New and improved key-homomorphic pseudorandom functions. In Juan A. Garay and Rosario Gennaro, editors, Advances in Cryptology - CRYPTO 2014 - 34th Annual Cryptology Conference, Santa Barbara, CA, USA, August 17-21, 2014, Proceedings, Part I, volume 8616 of Lecture Notes in Computer Science, pages 353–370. Springer, 2014.
  10. [11]Abhishek Banerjee, Chris Peikert, and Alon Rosen. Pseudorandom functions and lattices. In David Pointcheval and Thomas Johansson, editors, Advances in Cryptology - EUROCRYPT 2012 - 31st Annual International Conference on the Theory and Applications of Cryptographic Techniques, Cambridge, UK, April 15-19, 2012. Proceedings, volume 7237 of Lecture Notes in Computer Science, pages 719–737. Springer, 2012.
  11. [12]Zvika Brakerski and Vinod Vaikuntanathan. Efficient fully homomorphic encryption from (standard) LWE. In Rafail Ostrovsky, editor, IEEE 52nd Annual Symposium on Foundations of Computer Science, FOCS 2011, Palm Springs, CA, USA, October 22-25, 2011, pages 97–106. IEEE Computer Society, 2011.
  12. [13]Russell Impagliazzo, Leonid A. Levin, and Michael Luby. Pseudo-random generation from one-way functions (extended abstracts). In David S. Johnson, editor, Proceedings of the 21st Annual ACM Symposium on Theory of Computing, May 14-17, 1989, Seattle, Washington, USA, pages 12–24. ACM, 1989.
  13. [14]Daniele Micciancio and Petros Mol. Pseudorandom knapsacks and the sample complexity of LWE search-to-decision reductions. In Phillip Rogaway, editor, Advances in Cryptology - CRYPTO 2011 - 31st Annual Cryptology Conference, Santa Barbara, CA, USA, August 14-18, 2011. Proceedings, volume 6841 of Lecture Notes in Computer Science, pages 465–484. Springer, 2011.DOI
  14. [16][Pei09] Chris Peikert. Public-key cryptosystems from the worst-case shortest vector problem: extended abstract. In Michael Mitzenmacher, editor, Proceedings of the 41st Annual ACM Symposium on Theory of Computing, STOC 2009, Bethesda, MD, USA, May 31 - June 2, 2009, pages 333–342. ACM, 2009.
  15. [17][Reg09] Oded Regev. On lattices, learning with errors, random linear codes, and cryptography. J. ACM, 56(6):34:1–34:40, 2009.

Paper details

vlnc:W_2ukgf5pj
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 8

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

AI tools

View statement
Looking for related papers…
Contents