Search LWE ⇒ Decision LWE
Statement
Let be prime and a distribution on . If search LWE with parameters is hard for every polynomial number of samples, then decision LWE with the same is hard for every polynomial number of samples: a distinguisher between and on samples with advantage yields an efficient algorithm that, for every , outputs from samples with probability exponentially close to — Reg05 (arXiv v1, Lemmas 4.1 and 4.2).
Sketch
Since the advantage averages to over uniform , at least an fraction of secrets have advantage at least ; the self-reduction for uniform , repeated with fresh and with acceptance rates estimated empirically, then gives a test that works for every . To test the guess , map each sample to for the -th unit vector and fresh uniform ; the result is , LWE-distributed if and uniform otherwise, since is prime. Running the test on all pairs , polynomially many because , reads off .
Notes
- The converse holds for every modulus , given samples and error with , and, with the loss stated there, for error with efficiently recognizable support (Decision LWE ⇒ Search LWE) — folklore.
- Smooth moduli. In the normalization with samples , uniform over and a continuous Gaussian of density proportional to , let be a power of and . Then search LWE with parameter reduces efficiently to decision LWE with parameter , both with arbitrarily many samples — MP12 (Theorem 3.1, in the special case stated by BLPRS13, arXiv v1, Theorem 2.17). The reduction of MP12 applies to every smooth modulus, one whose prime factors are all polynomially bounded, and essentially subsumes the earlier ones — BLPRS13 (arXiv v1, §1 and §2.3). For with distinct primes and error of standard deviation , it runs in time polynomial in , , and , needs advantage , and its search algorithm uses samples — MP12 (credited by BTV26, §1 and Table 1). For a product of distinct primes, Pei09 gave an earlier reduction, running in time polynomial in with the same increase in samples, and for with prime ACPS09 gave one running in time polynomial in and (both credited by BTV26, §1).
- Every modulus. Let , , , the smallest power of with , and . An algorithm with advantage for decision LWE at modulus with samples and noise at most , for a universal constant , gives one with advantage at least for decision LWE at modulus with parameter and samples — BLPRS13 (arXiv v1, Corollary 3.3). With the power-of-two case above, applied when , hardness of search LWE at modulus with parameter thus gives hardness of decision LWE at every modulus with noise at most — BLPRS13 (arXiv v1, §3).
- Sample-preserving reductions. The reduction of MM11b turns a distinguisher on samples into a search algorithm on the same samples with the same error distribution, for prime-power moduli, and its running time divided by its success probability is polynomial in , , and the noise magnitude rather than in — MM11b (credited by BTV26, §1 and Table 1). For prime of any size and error with mass proportional to , , a decision algorithm on samples with advantage and running time yields a search algorithm on the same samples that runs in time and succeeds with probability , where ; this is polynomial whenever and are, even for exponential — BTV26 (Corollary 4.4).