Manuscript Offprint
arXiv:2610.12913Sample-Preserving Search-to-Decision Reduction for Noisy Linear Equations over Large Moduli
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
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 , where is the dimension of the secret, is the number of samples, 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 even if the modulus is exponentially large, as long as the noise-to-modulus ratio is non-negligible. Our reduction works for prime moduli . If 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., m, n, , and q), or had complexity that scaled polynomially with either or the largest prime factor of q.
- abogdano@uottawa.ca. University of Ottawa.
kelzin@u.nus.edu. Department of Computer Science, National University of Singapore.
prashvas@nus.edu.sg. Department of Computer Science, National University of Singapore.
i
Contents
1 Introduction 1
1.1 Our Results 3
1.2 Technical Overview 4
1.3 Paper Outline 6
2 Preliminaries 6
2.1 Coprime secret 7
2.2 Noise Tolerance 8
2.3 Fourier Analysis 9
3 Reduction 10
3.1 Threshold Distinguisher 10
3.2 Terminal Hybrid 12
3.3 Correlation With Threshold Function 12
3.4 Heavy Fourier Coefficients 14
3.5 Fourier analysis of f 16
3.6 Learning Significant Fourier Coefficients 17
3.7 Proof of Theorem 3.1 18
4 Corollaries 18
4.1 Exact Secret Recovery 19
5 Acknowledgments 20
A Supplementary Proofs 22
A.1 Hybrid Argument 22
ii
This problem is clearly easy for some choices of the noise function R, such as the identity function. It is believed to be hard for certain choices of the noise function, such as the following:
-
, where each entry in is draws from the discrete Gaussian distribution. This is known as the Learning With Errors (LWE) problem [Reg09]. The hardness of LWE can be shown based on the worst-case hardness of lattice problems [Reg09, Pei09, BLP 13]
-
, where and represents rounding to the nearest integer. This is called the Learning With Rounding (LWR) problem [BPR12], whose hardness follows from reductions from LWE [BPR12, AKPW13, BGM 16, AA16].
-
for each , where is a random element of and is a biased random bit. This is the generalised Learning Parity with Noise (LPN) problem [BFKL93].
The above problems are of considerable importance to cryptography, and form the basis of numerous constructions of advanced cryptographic primitives [Reg09, BV11, BPR12, BLMR13, BP14].
Search-to-Decision Reductions. In the regimes of interest to public-key cryptography, the planted solution x 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 [Reg09], fully homomorphic encryption [BV11], and structured pseudorandom functions [BPR12, BLMR13, BP14] 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 m and n), and preserve the noise function R.
Recall that in the LWE problem, the noise function corresponds to adding to each entry in a sample (called the “error”) from a discrete Gaussian distribution, say of standard deviation , modulo . The first search-to-decision reduction for LWE is from Regev’s work that originally defined the problem [Reg09]. This reduction preserves the error distribution, but requires the modulus to be prime. It is also not sample-preserving, with the search algorithm needing a -factor of extra samples, where is the advantage of the distinguisher. Further, the complexity of the reduction scales polynomially with the modulus .
Several subsequent works have since extended this reduction to composite moduli , under various conditions. Peikert [Pei09] obtained a reduction for (for distinct primes ) that has runtime scaling polynomially with , under the requirement that the advantage of the distinguisher is larger than . Applebaum et al. [ACPS09] obtained a
By “complexity”, we typically mean the product of the running time and the inverse of the success probability.
| Work | Problem | Moduli | Noise | Samples | Complexity |
|---|---|---|---|---|---|
| [Reg09] | LWE | Prime | Preserving | poly(q) | |
| [MP12] | LWE | Preserving | |||
| LWE | All | ||||
| [MM11] | LWE | Prime Power | Preserving | Preserving | poly() |
| LWE | All | poly() | |||
| LWR | Prime | Preserving | Preserving | poly(q) | |
| This Work | LWE/LWR | Prime | Preserving | Preserving | poly() |
Table 1: Comparison of search-to-decision reductions. is the dimension of the secret, is the number of samples, is the noise magnitude (ratio of moduli in case of LWR), is the modulus, and is the advantage of the decision algorithm. Complexity omits factors. For reductions involving , the reduction is from Search LWE with a possibly different modulus .
reduction for (for prime ) that has runtime scaling polynomially with and . Micciancio and Peikert [MP12] combined both results and obtained a reduction for (for distinct primes ) that has runtime scaling polynomially with and a similar requirement on the distinguisher's advantage: . All of these reductions also have a -factor increase in the number of samples needed by the search algorithm.
Later work by Brakerski et al. [BLP] showed how to reduce Decision LWE over a modulus to Decision LWE over any modulus , with runtime scaling only polylogarithmically in . Combined with the other reductions mentioned above, this enables reductions from Search LWE over a nice (that has efficient search-to-decision reductions) to Decision LWE over any .
The price of Brakersi et al.'s reduction is that the noise-to-modulus ratio of the resulting instance is larger: . The number of variables remains the same, while the number of samples decreases by (i.e., ).
Most relevant to our work is the search-to-decision reduction of Micciancio and Mol [MM11], which is the only known sample-preserving classical reduction for LWE. Their reduction avoids the dependence on and has runtime scaling polynomially with the noise magnitude instead. In the special case when is of the form and the noise is restricted to be at most in each element, the complexity reduces to linear in (and polylogarithmic in ). 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 .
Using techniques related to those of Micciancio and Mol, Bogdanov et al. [BGM] effectively showed the only known search-to-decision reduction for LWR, which has complexity polynomial in the modulus .
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,
The sample-preserving reduction of Applebaum et al. for LPN [AIK09] is based on similar ideas.
The focus of their work is different, but this result is implicit in the proof of their Lemmas 3 and 4.
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.
1.1 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 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 Section 4), our results imply the following for any prime modulus :
-
Search-to-decision reduction for LWE that preserves the dimension of the secret n, number of samples m, modulus q, and error magnitude , with running time that is
-
Search-to-decision reduction for LWR that preserves the dimension of the secret n, number of samples m, modulus q, and rounding modulus p, with running time that is
In particular, our reduction for LWE runs in polynomial time even if the modulus is exponentially large, as long as the error rate is inverse-polynomial.
More generally, our reduction applies to Noisy Linear Equations problems with a noise function that can tolerate small perturbations. We say is -smooth if for every of -norm at most , with sufficiently high probability over the choice of , the distribution of is very close to that of . LWE is smooth when is somewhat smaller than the error magnitude . LWR is smooth when the is somewhat smaller than the ratio of the moduli . (See Section 2 for the relevant formal definitions and statements.)
Theorem 1.1 (Informal, see Theorem 3.1 and Section 4). Consider any , with being prime, and a -smooth noise function . For the Noisy Linear Equations problem over with sample count , secret dimension , and noise function , there exists an algorithm that, given a decision algorithm that runs in time and has advantage , solves the search problem in time with success probability .
Beyond prime moduli, our reductions also work as above for moduli q that do not have any small prime factors (see Section 4 for details). Our reductions also work for general moduli q in some special cases, such as the entries in the secret vector being very small.
Otherwise, for general , our search algorithm instead produces a list of size of candidate vectors that contains a vector for some , where is the secret vector. If turns out to be coprime with , then by trial and error over all elements in the list and all , we would be able to recover the secret if equipped with an algorithm to verify the solution.
When c is not coprime to q, 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 q is not prime, an LWE distinguisher could censor substantial information about the secret. For example, if the modulus q is even, the distinguisher might base its decision only on the value of the instance reduced modulo q/2. The output of the distinguisher would then be identical for every pair of secrets congruent modulo q/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 q. 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 [MM11] runs in time poly(n) in a parameter setting where the error magnitude is both and . Ideally, we would like to have a parameter-preserving reduction whose complexity scales only with 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 q is an arbitrary composite modulus, without any restrictions on the secret x.
1.2 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 [MM11] 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 [Reg09] uses a coordinate-guessing technique to recover the secret. Make a guess for the first co-ordinate of secret . For each sample , it is modified to where is randomly sampled from . If , 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 [Pei09, ACPS09, MP12] extend this technique to support larger modulus . 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 .
Micciancio and Mol obtain a sample-preserving reduction [MM11] using an approach analogous to the sample-preserving reduction for LPN with by Applebaum, Ishai and Kushilevitz [AIK09]. The main idea is to use the distinguisher to construct a weak inner product predictor that “predicts” , where is an input and is the secret. This can be done by transforming to where is a random vector from and is a guess for the value . If , then the distribution stays the same. Otherwise, it becomes random. The predictor performs this transformation, runs the LWE distinguisher on the resulting instance, and outputs whatever it outputs. They show that this weak predictor has significant Fourier weight at , and use the learning algorithm from Akavia, Goldwasser and Safra [AGS03] to recover its heavy Fourier coefficients, and thus the secret.
Making a guess for the value of degrades the advantage by , which causes the overall learning algorithm to have a running time polynomial in . To avoid this polynomial dependency on the modulus, they use the equivalence of LWE and Knapsack and instead construct a predictor for , where is the error vector. The domain of the predictor is changed to , where is a prime and , the output is then . This prime scales with the error size and not with the original modulus . When each term of the is at most , the predictor guessing range for (without modulo ) is reduced to .
They will make a guess for the value of without modulo . The loss in advantage is then a factor of . Running the learning algorithm on such a predictor has running time polynomial in .
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 (q in the case of [Reg09], in the case of [MM11], 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 q, 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 for some and , and outputs a bit from . We use this to construct an algorithm P that takes as input and also a vector , and somehow signals whether or , for some parameter . The closer is to , the better, because that reveals more information about inner produce , and thus the secret .
To see how the construction is done, consider taking the input and adding to the matrix, where . In other words, the input becomes
Since A is random, this distribution is essentially
If is small, this is like adding a small vector to the already noisy . If the noise function absorbs it, then the distribution is close to the noisy linear equations distribution.
Otherwise, if is large, it overwhelms the noise. And if we add many such to , it essentially becomes randomised and independent of .
Unfortunately, we cannot afford to set because it will overwhelm the noise in most natural noise distributions. The actual that we use is the largest such that for any vector whose elements have magnitude at most , the statistical distance between and is bounded by .
In the proof, starting with the observation about adding mentioned above, we will use a hybrid argument to construct the algorithm P. Informally, what we will show is the following (Section 3.1):
Where , ,
Heavy Fourier Coefficients. Just having P is still not enough to recover the secret x. As we would like to have a sample-preserving reduction, we use an idea similar to [MM11, BGM 16], where the information about x is obtained by looking into the Fourier coefficients of P. We show that for a good fixed input , the function has a heavy Fourier coefficient at some character , where c is a small integer and x is the secret of the noisy linear equations. We can then recover a list containing with the algorithm of Akavia, Goldwasser, and Safra [AGS03] (Section 3.6).
To analyse the Fourier spectrum of P, we use an intermediate threshold function S to isolate the important Fourier characters (Definition 3.6). The function S is defined as
with y being the input vector, and x being the secret of the noisy linear equations. Because of the properties of P described earlier, we can show that P is correlated with S (Section 3.3).
where and . This correlation implies that must have some non-negligible Fourier weight on the heavy Fourier characters of .
By definition of , it only has non-zero Fourier coefficients at multiples of . Furthermore, we show that the Fourier weight of concentrates on the characters where is small (Section 3.4). Due to their correlation, this implies that also contains at least one heavy Fourier coefficient at a character where is small.
Recovering the Secret Finally, if is a prime or turns out to be coprime with , we can go through every element in the output list and try every possible . Since the list and are bounded by , this process finishes in time that grows polynomially with . 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 , incurring some loss in the success probability.
1.3 Paper Outline
In Section 2, we present the notation and technical tools used throughout the paper. In Section 3, we prove the main theorem. In Section 4, we derive various corollaries of our main theorem, including the reductions for LWE and LWR.
2 Preliminaries
Notation We use to denote the -th bit of the binary string (vector) and to denote the -th row of the matrix . Let denote the order- prime field. Let denote the integer ring modulo . Write . Write as the number rounded to the nearest integer. Write as the inner product of vectors and modulo . Define , where , as where is lifted to the integer ring.
Distributions Denote if the distributions and are the same. Let be the uniform distribution on the set . The notation means that is sampled from the distribution ; when is a set (we abuse notation), it means is sampled from .
Definition 2.1 (Discrete Gaussian Distribution). Define as the discrete Gaussian distribution over integers with parameter and centre at 0.
Definition 2.2 (Noisy Linear Equations). Let . For sample count , secret dimension , and a noise function , algorithms and are said to have advantage in solving the Search and Decision Noisy Linear Equations problem, respectively, if they satisfy the following conditions:
• Search: Suppose , , recovers the secret with probability at least :
- Decision: Suppose , , , distinguishes samples from uniform with advantage at least :
Definition 2.3 (Learning With Error (LWE)). The Learning With Error (LWE) problem with noise parameter is a Noisy Linear Equations problem with the noise function defined as , where .
Definition 2.4 (Learning With Rounding (LWR)). The Learning With Rounding (LWR) problem with modulus is a Noisy Linear Equations problem with the noise function defined, for each , as , where is lifted to the reals.
2.1 Coprime secret
Throughout the proof, we will only consider secrets of the noisy linear equations (that is, the vector x in Definition 2.2) that satisfy . This is a mild assumption when we sample x 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.
which is a value that is exponentially close to 1.
Definition 2.5. Define
Proposition 2.6. For any ,
2.2 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 Ax). Specifically, we will be adding a vector to the noisy codeword of LWE and LWR, where 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 . This property is essential for our search-to-decision reduction.
Definition 2.7 (Noise Tolerance). Let and . Let be a noise function. We say that is -noise tolerant if for every and every ,
where and .
Let be the largest such that such that is -noise tolerant. The tolerance bound function is defined as .
Proposition 2.8 (LWE Noise Tolerance). Let , , and be the LWE noise function with noise parameter . Suppose , , where , then
Which implies .
Proof. Expanding the noise function R, then by data processing inequality
Where and addition is done over Z.
Without loss of generality, assume that . Looking at a single dimension such that , and write down the KL divergence
Let , and simplify the statement above
For m dimensions, Pinsker's Inequality bounds the total variation by
Proposition 2.9 (LWR Noise Tolerance). Let , and be the LWR noise function with rounding modulus . Suppose , , where , then
Which implies .
Proof. Without loss of generality, assume that . Let be the event that . This event happens when every value in is far away from the boundary where rounding occurs. In other words, for each coordinate value , lifted to the reals , we have that . The total variation distance can then be upper-bounded using this event.
As and is randomly sampled, is distributed just as a random vector over . For a list of elements in that round to the same element in , only the last elements in the list would round to a different element after adding the value , while the rest stay the same.
This means that at most elements in will change value after addition. So for a random element in the probability that it falls into this boundary region is at most . By union bound, the probability of is upper bounded.
2.3 Fourier Analysis
Here we describe the basics of Fourier Analysis and establish the choice of basis in the paper. Denote .
Definition 2.10 (Fourier Transform). Let . The Fourier transform of a function is another function defined as
Proposition 2.11 (Inverse Fourier Transform). Let be the Fourier transform of . Then
Proposition 2.12 (Parseval–Plancherel). Let , functions
In particular, this implies the following for any such functions P
3 Reduction
This section describes the proof of the main theorem.
Theorem 3.1. Consider any , a noise function , and any . Let , denote by the noise tolerance bound , and set .
Suppose there exists an algorithm for the Decision Noisy Linear Equations problem over with sample count , secret dimension , and noise function , and that the algorithm runs in time and has advantage .
Then there exists an algorithm as follows. Given an input , where and , it outputs a list of size that contains for some such that . This algorithm runs in time poly and successfully outputs such a list with probability .
Proof overview is described in Section 1.2
Section Outline In Section 3.1 and Section 3.2, we will talk about the threshold distinguisher. Section 3.3 is on the correlation of P and S. Section 3.4 and Section 3.5 are on the concentration of the Fourier weight of S. Finally, in Section 3.6 we state the algorithm from [AGS03] to learn heavy Fourier coefficients.
3.1 Threshold Distinguisher
In this subsection, we describe the construction of a threshold distinguisher P that can distinguish whether or . Note that the inner product is performed over .
Lemma 3.2. Let , , a noise function , , . Suppose there exists an algorithm D for the Decision Noisy Linear Equations problem over with sample count , secret dimension , noise function , that has advantage .
Then there exists an algorithm P that outputs a value in such that
Where , , .
Proof. The construction of P is as follows:
Algorithm P: On input and Decision algorithm D,
1 Sample and
2 Sample matrices and
3 Output
We use the hybrid argument to prove the lemma. First, define the hybrid distribution over as
Claim 3.3. For any , let .
• If , then
• If no condition is imposed, then
Proof. Suppose that , rewrite
The vector is uniformly random in . By the definition of noise tolerance (Definition 2.7), and the fact that ,
On the other hand, if no condition is imposed on y, it is uniformly random and
It is clear from the definition that is distributed as a Noisy Linear Equation instance. We claim that once t is large enough, the terminal hybrid is distributed as a random instance.
Claim 3.4. (Terminal hybrid). Let , , ,
We defer the proof of the claim to the next section (Section 3.2). With this claim, we can then use hybrid argument to conclude a advantage in distinguishing between and where .
Proposition 3.5.
Proof. Standard hybrid argument with Claim 3.4. Details deferred to Section A.1
Let be the distribution sent to the decision algorithm 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 and no condition. i.e.
Where the loss of is from the total variation distance between and when .
The condition can be imposed on the second term at no cost. Let be the event that . By law of total probability,
Which implies
3.2 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 , , ,
Proof. Start by writing
Where , , , .
Since is a random matrix in , and , is uniformly random in , even given . As every row of is a random vector of min-entropy , and dot product with is a universal hash, by the leftover hash lemma [ILL89], is -statistically close to for a uniformly random . By a hybrid argument, the statistical distance between
where are the rows of , is at most times larger. In particular, is -close to uniform. By our choice of parameters, this is at most
3.3 Correlation With Threshold Function
Lemma 3.2 essentially shows that the algorithm P is correlated with the indicator for the event . For analytic purposes it will be convenient to express this correlation in terms of the covariance of P and a random variable defined by sampling the inputs to the following function at random.
Definition 3.6 (Threshold Function). Let . Define as
The conversion from difference in conditional expectations to the covariance of -valued random variables is given by the following formula.
Lemma 3.7. For any -valued random variables X and Y,
where , .
Proof. We can rewrite the variance of Y in terms of probabilities
Expand using law of total probability,
Substitute , then
Finally with ,
Applying Lemma 3.7 to P and S gives the following corollary.
Corollary 3.8. Using the same parameter definitions as in Lemma 3.2,
Where , , .
Proof. From Lemma 3.2, without loss of generality,
Then the statement follows from Lemma 3.7. The calculation of the variance of S is shown as follows:
Where the last inequality is from
3.4 Heavy Fourier Coefficients
To analyse the Fourier coefficients of P, it is more convenient to fix the input problem instance to be any good instance. We say an instance is -good if
By definition, takes value in . By Markov's inequality (Proposition 3.9),
for a fraction of A, x, and (if randomized). We fix these choices from here on and view P and S as functions of y only.
Proposition 3.9. If and , then for any random variable , we have with probability at least over .
Proof. Let be the set of for which . By the law of total expectation,
so that .
By Plancherel's formula (see Proposition 2.12), (1) has an equivalent formulation in the Fourier domain:
( will turn out to be real so we omit complex conjugation.)
The function can be expressed as , where is the univariate function . Making the substitution in the Fourier transform of
gives the Fourier expansion
Comparing this to the inverse Fourier Transform (Proposition 2.11) of S, we have the following observations:
• For any that is not of the form for some , the Fourier coefficients is 0.
• When , .
•
Inequality (2) therefore simplifies to
As f is a threshold function, most of its Fourier mass is concentrated on low frequencies (see Figure 1).

Figure 1: Fourier spectrum of f with q = 31 and B = 4.
Claim 3.10. Let and define the light weight set , then
Claim 3.11. Let and define the heavy weight set , then
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 .
Lemma 3.12. Assuming (1), there exists such that , and
Proof. Set to . As explained in the text above, (1) is equivalent to (3). The sum in (3) splits as
By the Cauchy-Schwarz inequality, Parseval's formula, and Claim 3.10,
Therefore, the sum over the heavy terms is lower bounded by
By Claim 3.11, the sum of all terms is at most . Therefore at least one of the terms must have magnitude at least
by our choice of .
3.5 Fourier analysis of f
Next, we prove Claims 3.10 and 3.11. We will make use of the following proposition.
Proposition 3.13. For , .
Proof. The Fourier coefficients of f are
Using the geometric progression formula,
Since , we can simplify to
Since the denominator is always a positive number when and the numerator is within range , .
Claim 3.10. Let and define the light weight set , then
Proof. From Proposition 3.13,
As is an even function,
As the sin function is concave downward from 0 to , the function is lower-bounded by the line that connects the origin and the point at , i.e., .
Because is a decreasing function for , we can apply the integral bound to obtain
Claim 3.11. Let and define the heavy weight set , then
Proof. From Proposition 3.13, using in the relevant range,
3.6 Learning Significant Fourier Coefficients
With Lemma 3.12, we know that there exists a small such that the Fourier coefficient is large, say at least . To find , we use the Learning Significant Fourier Coefficients algorithm from Akavia, Goldwasser and Safra [AGS03] to find all Fourier Coefficients with magnitude at least .
First, we show that the number of such coefficients is at most .
Proposition 3.14. Let , , then
Proof. Since , . So
Theorem 3.15 ([AGS03]). Let . There exists an algorithm that, given a function and , outputs , except with probability , and runs in time .
3.7 Proof of Theorem 3.1
From Lemma 3.2 and Corollary 3.8, we get an algorithm P such that
Let . With probability at least we get a -good instance . In a good instance, Lemma 3.12 says that there exists such that , and
Then, we run the [AGS03] algorithm from Theorem 3.15 on P with to obtain a list that contains . By Proposition 3.14, this list has size at most . The final runtime of the algorithm is , where 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-good instance and whether the [AGS03] algorithm from Theorem 3.15 returns the list correctly. By the union bound, the algorithm will succeed with probability /8 -
4 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 and is small. Therefore, we write the following with the distribution of the secret being instead.
Corollary 4.1 (Partial Secret Recovery for LWE/LWR). Consider any , and any . Consider the LWE/LWR problem over with sample count , secret dimension .
• Under LWE noise with parameter , , set , or,
• Under LWR noise with rounding modulus , , set
Suppose there exists an algorithm for the corresponding Decision LWE/LWR that runs in time T and has advantage .
Then there exists an algorithm that, given the problem instance, outputs a list of size that contains , where is the solution, for some such that . This algorithm runs in time and successfully outputs such a list with probability .
Proof. For LWE, by Proposition 2.8, set . For LWR, by Proposition 2.9, set . 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 , as long as the secret satisfies
with very high probability.
4.1 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 V for a Noisy Linear Equations problem is an algorithm in which the following holds with high probability over A, x, and R:
For typical Noisy Linear Equations problems, such a verification algorithm exists when m is large enough, and the error is small enough for unique recovery. In particular, a verification algorithm for LWE exists when , while it exists for LWR when .
The next requirement is to be able to recover given and .
Definition 4.3 (Recovery Algorithm). A recovery algorithm G for a Noisy Linear Equations problem is an algorithm such that, for all , and :
Some settings were such a G exists are when is a prime, or if we are guaranteed that . For example, when the secret is uniform over and (Binary secret LWE problem [BLP13]).
Since the algorithm’s output list size is and , in time we can try all candidates on every element in the output list. If returns on any one of them, the verification algorithm 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 c. The success probability of the search algorithm would then become .
Corollary 4.4 (Search-to-Decision Reduction for LWE/LWR). Consider any , a noise function , and any . For the LWE/LWR over with sample count , secret dimension ,
• Under LWE noise with parameter , , set
• Under LWR noise with rounding modulus , , set
Suppose there exists a Decision algorithm that runs in time and has advantage , and a Recovery algorithm that runs in time .
Then there exists a Search algorithm that runs in time with success probability at least .
Furthermore, if a Verification algorithm that runs in time exists, there exists a Search algorithm that runs in time with success probability at least . Specifically, this applies to LWE when , and LWR when ,
5 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.
References
[AA16] Jacob Alperin-Sheriff and Daniel Apon. Dimension-preserving reductions from LWE to LWR. IACR Cryptol. ePrint Arch., 2016:589, 2016.
[ACPS09] 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.
[AGS03] 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.
[AIK09] Benny Applebaum, Yuval Ishai, and Eyal Kushilevitz. Cryptography with constant input locality. J. Cryptol., 22(4):429–469, 2009.
[AKPW13] 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.
[BFKL93] 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.
[BGM 16] Andrej Bogdanov, Siyao Guo, Daniel Masny, Silas Richelson, and Alon Rosen. On the hardness of learning with rounding over small modulus. In Eyal Kushilevitz and Tal Malkin, editors, Theory of Cryptography - 13th International Conference, TCC 2016-A, Tel Aviv, Israel, January 10-13, 2016, Proceedings, Part I, volume 9562 of Lecture Notes in Computer Science, pages 209–224. Springer, 2016.
[BLMR13] 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.
[BLP 13] 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.
[BP14] 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.
[BPR12] 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.
[BV11] 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.
[ILL89] 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.
[MM11] 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.
[MP12] Daniele Micciancio and Chris Peikert. Trapdoors for lattices: Simpler, tighter, faster, smaller. 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 700–718. Springer, 2012.
[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.
[Reg09] Oded Regev. On lattices, learning with errors, random linear codes, and cryptography. J. ACM, 56(6):34:1–34:40, 2009.
[SHTY25] Kyohei Sudo, Keisuke Hara, Masayuki Tezuka, and Yusuke Yoshida. Quantum search-to-decision reduction for the LWE problem. IEICE Trans. Fundam. Electron. Commun. Comput. Sci., 108(2):104–116, 2025.
A Supplementary Proofs
A.1 Hybrid Argument
Proposition 3.5.
Proof of Proposition 3.5. Using from Claim 3.4,
22
☐