betaFeedback

WorksComputer Science

On Lattices, Learning with Errors, Random Linear Codes, and Cryptography

Abstract

Our main result is a reduction from worst-case lattice problems such as GapSVP and SIVP to a certain learning problem. This learning problem is a natural extension of the `learning from parity with error' problem to higher moduli. It can also be viewed as the problem of decoding from a random linear code. This, we believe, gives a strong indication that these problems are hard. Our reduction, however, is quantum. Hence, an efficient solution to the learning problem implies a quantum algorithm for GapSVP and SIVP. A main open question is whether this reduction can be made classical (i.e., non-quantum). We also present a (classical) public-key cryptosystem whose security is based on the hardness of the learning problem. By the main result, its security is also based on the worst-case quantum hardness of GapSVP and SIVP. The new cryptosystem is much more efficient than previous lattice-based cryptosystems: the public key is of size O~(n2)\tilde{O}(n^2) and encrypting a message increases its size by a factor of O~(n)\tilde{O}(n) (in previous cryptosystems these values are O~(n4)\tilde{O}(n^4) and O~(n2)\tilde{O}(n^2), respectively). In fact, under the assumption that all parties share a random bit string of length O~(n2)\tilde{O}(n^2), the size of the public key can be reduced to O~(n)\tilde{O}(n).

Introduction

Main theorem. For an integer n≥1n \ge1 and a real number ε≥0\varepsilon\ge0, consider the ‘learning from parity with error’ problem, defined as follows: the goal is to find an unknown s∈Z2n\mathbf{s} \in\mathbb{Z}_2^n given a list of ‘equations with errors’

⟨s,a1⟩≈εb1(mod2)\langle\mathbf{s}, \mathbf{a}_1\rangle\approx_{\varepsilon} b_1 \pmod2
⟨s,a2⟩≈εb2(mod2)\langle\mathbf{s}, \mathbf{a}_2\rangle\approx_{\varepsilon} b_2 \pmod2
⋮\vdots

where the ai\mathbf{a}_i’s are chosen independently from the uniform distribution on Z2n\mathbb{Z}_2^n, ⟨s,ai⟩=∑jsj(ai)j\langle\mathbf{s}, \mathbf{a}_i\rangle= \sum_j s_j(\mathbf{a}_i)_j is the inner product modulo 22 of s\mathbf{s} and ai\mathbf{a}_i, and each equation is correct independently with probability 1−ε1-\varepsilon. More precisely, the input to the problem consists of pairs (ai,bi)(\mathbf{a}_i,b_i) where each ai\mathbf{a}_i is chosen independently and

uniformly from Z2n\mathbb{Z}_2^n and each bib_i is independently chosen to be equal to ⟨s,ai⟩\langle s,a_i\rangle with probability 1−ε1-\varepsilon. The goal is to find ss. Notice that the case ε=0\varepsilon=0 can be solved efficiently by, say, Gaussian elimination. This requires O(n)O(n) equations and poly⁡(n)\operatorname{poly}(n) time.

The problem seems to become significantly harder when we take any positive ε>0\varepsilon>0. For example, let us consider again the Gaussian elimination process and assume that we are interested in recovering only the first bit of ss. Using Gaussian elimination, we can find a set SS of O(n)O(n) equations such that ∑Sai\sum_{S}a_i is (1,0,…,0)(1,0,\ldots,0). Summing the corresponding values bib_i gives us a guess for the first bit of ss. However, a standard calculation shows that this guess is correct with probability 12+2−Θ(n)\frac{1}{2}+2^{-\Theta(n)}. Hence, in order to obtain the first bit with good confidence, we have to repeat the whole procedure 2Θ(n)2^{\Theta(n)} times. This yields an algorithm that uses 2O(n)2^{O(n)} equations and 2O(n)2^{O(n)} time. In fact, it can be shown that given only O(n)O(n) equations, the s′∈Z2ns'\in\mathbb{Z}_2^n that maximizes the number of satisfied equations is with high probability ss. This yields a simple maximum likelihood algorithm that requires only O(n)O(n) equations and runs in time 2O(n)2^{O(n)}.

Blum, Kalai, and Wasserman [11] provided the first subexponential algorithm for this problem. Their algorithm requires only 2O(n/log⁡n)2^{O(n/\log n)} equations/time and is currently the best known algorithm for the problem. It is based on a clever idea that allows to find a small set SS of equations (say, O(n)O(\sqrt{n})) among 2O(n/log⁡n)2^{O(n/\log n)} equations, such that ∑Sai\sum_{S}a_i is, say, (1,0,…,0)(1,0,\ldots,0). This gives us a guess for the first bit of ss that is correct with probability 12+2−Θ(n)\frac{1}{2}+2^{-\Theta(\sqrt{n})}. We can obtain the correct value with high probability by repeating the whole procedure only 2O(n)2^{O(\sqrt{n})} times. Their idea was later shown to have other important applications, such as the first 2O(n)2^{O(n)}-time algorithm for solving the shortest vector problem [23, 5].

An important open question is to explain the apparent difficulty in finding efficient algorithms for this learning problem. Our main theorem explains this difficulty for a natural extension of this problem to higher moduli, defined next.

Let p=p(n)≤poly⁡(n)p=p(n)\leq\operatorname{poly}(n) be some prime integer and consider a list of ‘equations with error’

⟨s,a1⟩≈χb1(modp)⟨s,a2⟩≈χb2(modp)⋮\begin{aligned} \langle s,a_1\rangle&\approx_\chi b_1 \pmod p\\ \langle s,a_2\rangle&\approx_\chi b_2 \pmod p\\ &\vdots \end{aligned}

where this time s∈Zpns\in\mathbb{Z}_p^n, aia_i are chosen independently and uniformly from Zpn\mathbb{Z}_p^n, and bi∈Zpb_i\in\mathbb{Z}_p. The error in the equations is now specified by a probability distribution χ:Zp→R+\chi:\mathbb{Z}_p\to\mathbb{R}_+ on Zp\mathbb{Z}_p. Namely, for each equation ii, bi=⟨s,ai⟩+eib_i=\langle s,a_i\rangle+e_i where each ei∈Zpe_i\in\mathbb{Z}_p is chosen independently according to χ\chi. We denote the problem of recovering ss from such equations by LWE⁡p,χ\operatorname{LWE}_{p,\chi} (learning with error). For example, the learning from parity problem with error ε\varepsilon is the special case where p=2p=2, χ(0)=1−ε\chi(0)=1-\varepsilon, and χ(1)=ε\chi(1)=\varepsilon. Under a reasonable assumption on χ\chi (namely, that χ(0)>1/p+1/poly⁡(n)\chi(0)>1/p+1/\operatorname{poly}(n)), the maximum likelihood algorithm described above solves LWE⁡p,χ\operatorname{LWE}_{p,\chi} for p≤poly⁡(n)p\leq\operatorname{poly}(n) using poly⁡(n)\operatorname{poly}(n) equations and 2O(nlog⁡n)2^{O(n\log n)} time. Under a similar assumption, an algorithm resembling the one by Blum et al. [11] requires only 2O(n)2^{O(n)} equations/time. This is the best known algorithm for the LWE problem.

Our main theorem shows that for certain choices of pp and χ\chi, a solution to LWE⁡p,χ\operatorname{LWE}_{p,\chi} implies a quantum solution to worst-case lattice problems.

Theorem 1.1 (Informal) Let nn, pp be integers and α∈(0,1)\alpha\in(0,1) be such that αp>2n\alpha p>2\sqrt{n}. If there exists an efficient algorithm that solves LWE⁡p,Ψα\operatorname{LWE}_{p,\Psi_\alpha} then there exists an efficient quantum algorithm that approximates the decision version of the shortest vector problem (GapSVP⁡\operatorname{GapSVP}) and the shortest independent vectors problem (SIVP⁡\operatorname{SIVP}) to within O~(n/α)\widetilde{O}(n/\alpha) in the worst case.

The exact definition of Ψˉα\bar{\Psi}_{\alpha} will be given later. For now, it is enough to know that it is a distribution on Zp\mathbb{Z}_p that has the shape of a discrete Gaussian centered around 0 with standard deviation αp\alpha p, as in Figure 1. Also, the probability of 0 (i.e., no error) is roughly 1/(αp)1/(\alpha p). A possible setting for the parameters is p=O(n2)p = O(n^2) and α=1/(nlog⁡2n)\alpha= 1/(\sqrt{n}\log^2 n) (in fact, these are the parameters that we use in our cryptographic application).

Discrete Gaussian distributions on a circle

Figure 1. Ψˉα\bar{\Psi}_{\alpha} for p=127p = 127 with α=0.05\alpha= 0.05 (left) and α=0.1\alpha= 0.1 (right). The elements of Zp\mathbb{Z}_p are arranged on a circle.

GAPSVP and SIVP are two of the main computational problems on lattices. In GAPSVP, for instance, the input is a lattice, and the goal is to approximate the length of the shortest nonzero lattice vector. The best known polynomial time algorithms for them yield only mildly subexponential approximation factors [24, 38, 5]. It is conjectured that there is no classical (i.e., non-quantum) polynomial time algorithm that approximates them to within any polynomial factor. Lattice-based constructions of one-way functions, such as the one by Ajtai [2], are based on this conjecture.

One might even conjecture that there is no quantum polynomial time algorithm that approximates GAPSVP (or SIVP) to within any polynomial factor. One can then interpret the main theorem as saying that based on this conjecture, the LWE problem is hard. The only evidence supporting this conjecture is that there are no known quantum algorithms for lattice problems that outperform classical algorithms, even though this is probably one of the most important open questions in the field of quantum computing.2

In fact, one could also interpret our main theorem as a way to disprove this conjecture: if one finds an efficient algorithm for LWE, then one also obtains a quantum algorithm for approximating worst-case lattice problems. Such a result would be of tremendous importance on its own. Finally, we note that it is possible that our main theorem will one day be made classical. This would make all our results stronger and the above discussion unnecessary.

The LWE problem can be equivalently presented as the problem of decoding random linear codes. More specifically, let m=poly⁡(n)m = \operatorname{poly}(n) be arbitrary and let s∈Zpns \in\mathbb{Z}_p^n be some vector. Then, consider the following problem: given a random matrix Q∈Zpm×nQ \in\mathbb{Z}_p^{m \times n} and the vector t=Qs+e∈Zpmt = Qs + e \in\mathbb{Z}_p^m where each coordinate of the error vector e∈Zpme \in\mathbb{Z}_p^m is chosen independently from Ψˉα\bar{\Psi}_{\alpha}, recover ss. The Hamming weight of ee is roughly m(1−1/(αp))m(1 - 1/(\alpha p)) (since a value chosen from Ψˉα\bar{\Psi}_{\alpha} is 0 with probability roughly 1/(αp)1/(\alpha p)). Hence, the Hamming distance of tt from QsQs is roughly m(1−1/(αp))m(1 - 1/(\alpha p)). Moreover, it can be seen that for large enough mm, for any other word s′s', the Hamming distance of tt from Qs′Qs' is roughly m(1−1/p)m(1 - 1/p). Hence, we obtain that approximating the nearest codeword problem to within factors smaller than (1−1/p)/(1−1/(αp))(1 - 1/p)/(1 - 1/(\alpha p)) on random codes is as hard as quantumly approximating worst-case lattice problems. This gives a partial answer to the important open question of understanding the hardness of decoding from random linear codes.

It turns out that certain problems, which are seemingly easier than the LWE problem, are in fact equivalent to the LWE problem. We establish these equivalences in § 4 using elementary reductions. For example, being able to distinguish a set of equations as above from a set of equations in which the bib_i’s are chosen uniformly from Zp\mathbb{Z}_p is equivalent to solving LWE. Moreover, it is enough to correctly distinguish these two distributions for some non-negligible fraction of all s. The latter formulation is the one we use in our cryptographic applications.

Cryptosystem. In § 5 we present a public key cryptosystem and prove that it is secure based on the hardness of the LWE problem. We use the standard security notion of semantic, or IND-CPA, security (see, e.g., [20 Chapter 10]). The cryptosystem and its security proof are entirely classical. In fact, the cryptosystem itself is quite simple; the reader is encouraged to glimpse at the beginning of § 5. Essentially, the idea is to provide a list of equations as above as the public key; encryption is performed by summing some of the equations (forming another equation with error) and modifying the right hand side depending on the message to be transmitted. Security follows from the fact that a list of equations with error is computationally indistinguishable from a list of equations in which the bib_i’s are chosen uniformly.

By using our main theorem, we obtain that the security of the system is based also on the worst-case quantum hardness of approximating SIVP and GAPSVP to within O~(n1.5)\widetilde{O}(n^{1.5}). In other words, breaking our cryptosystem implies an efficient quantum algorithm for approximating SIVP and GAPSVP to within O~(n1.5)\widetilde{O}(n^{1.5}). Previous cryptosystems, such as the Ajtai-Dwork cryptosystem [4] and the one by Regev [36], are based on the worst-case (classical) hardness of the unique-SVP problem, which can be related to GAPSVP (but not SIVP) through the recent result of Lyubashevsky and Micciancio [26].

References

  1. [1]D. Aharonov and O. Regev. Lattice problems in NP intersect coNP. Journal of the ACM, 52(5):749–765, 2005. Preliminary version in FOCS’04.
  2. [2]M. Ajtai. Generating hard instances of lattice problems. In Complexity of computations and proofs, volume 13 of Quad. Mat., pages 1–32. Dept. Math., Secunda Univ. Napoli, Caserta, 2004. Preliminary version in STOC 1996.
  3. [3]M. Ajtai. Representing hard lattices with O(n log n) bits. In Proc. 37th Annual ACM Symp. on Theory of Computing (STOC), pages 94–103, 2005.DOI
  4. [4]M. Ajtai and C. Dwork. A public-key cryptosystem with worst-case/average-case equivalence. In Proc. 29th Annual ACM Symp. on Theory of Computing (STOC), pages 284–293, 1997.DOI
  5. [5]M. Ajtai, R. Kumar, and D. Sivakumar. A sieve algorithm for the shortest lattice vector problem. In Proc. 33rd ACM Symp. on Theory of Computing, pages 601–610, 2001.DOI
  6. [6]A. Akavia, S. Goldwasser, and V. Vaikuntanathan. Simultaneous hardcore bits and cryptography against memory attacks. In Proc. of 6th IACR Theory of Cryptography Conference (TCC), pages 474–495, 2009.DOI
  7. [7]M. Alekhnovich. More on average case vs approximation complexity. In Proc. 44th Annual IEEE Symp. on Foundations of Computer Science (FOCS), pages 298–307, 2003.
  8. [8]L. Babai. On Lovasz’ lattice reduction and the nearest lattice point problem. Combinatorica, 6(1):1–13, 1986.
  9. [9]W. Banaszczyk. New bounds in some transference theorems in the geometry of numbers. Mathematische Annalen, 296(4):625–635, 1993.DOI
  10. [10]A. Blum, M. Furst, M. Kearns, and R. J. Lipton. Cryptographic primitives based on hard learning problems. In Advances in cryptology—CRYPTO ’93, volume 773 of Lecture Notes in Comput. Sci., pages 278–291. Springer, Berlin, 1994.DOI
  11. [11]A. Blum, A. Kalai, and H. Wasserman. Noise-tolerant learning, the parity problem, and the statistical query model. Journal of the ACM, 50(4):506–519, 2003.
  12. [12]J.-Y. Cai and A. Nerurkar. An improved worst-case to average-case connection for lattice problems. In Proc. 38th Annual IEEE Symp. on Foundations of Computer Science (FOCS), pages 468–477, 1997.
  13. [13]D. Cash, C. Peikert, and A. Sahai. Efficient circular-secure encryption from hard learning problems, 2009. Submitted.
  14. [14]W. Ebeling. Lattices and codes. Advanced Lectures in Mathematics. Friedr. Vieweg & Sohn, Braunschweig, revised edition, 2002. A course partially based on lectures by F. Hirzebruch.
  15. [15]U. Feige. Relations between average case complexity and approximation complexity. In Proc. 34th Annual ACM Symp. on Theory of Computing (STOC), pages 534–543, 2002.
  16. [16]C. Gentry, C. Peikert, and V. Vaikuntanathan. Trapdoors for hard lattices and new cryptographic constructions. In Proc. 40th ACM Symp. on Theory of Computing (STOC), pages 197–206, 2008.DOI
  17. [17]O. Goldreich, D. Micciancio, S. Safra, and J.-P. Seifert. Approximating shortest lattice vectors is not harder than approximating closest lattice vectors. Information Processing Letters, 71(2):55–61, 1999.
  18. [18]L. Grover and T. Rudolph. Creating superpositions that correspond to efficiently integrable probability distributions. In quant-ph/0208112, http://xxx.lanl.gov, 2002.DOI
  19. [19]R. Impagliazzo and D. Zuckerman. How to recycle random bits. In Proc. 30th Annual IEEE Symp. on Foundations of Computer Science (FOCS), pages 248–253, 1989.DOI
  20. [20]J. Katz and Y. Lindell. Introduction to modern cryptography. Chapman & Hall/CRC Cryptography and Network Security. Chapman & Hall/CRC, Boca Raton, FL, 2008.
  21. [22]A. R. Klivans and A. A. Sherstov. Cryptographic hardness for learning intersections of halfspaces. J. Comput. System Sci., 75(1):2–12, 2009. Preliminary version in FOCS’06.
  22. [23]R. Kumar and D. Sivakumar. On polynomial approximation to the shortest lattice vector length. In Proc. 12th Annual ACM-SIAM Symp. on Discrete Algorithms, pages 126–127, 2001.DOI
  23. [24]A. K. Lenstra, H. W. Lenstra, Jr., and L. Lovász. Factoring polynomials with rational coefficients. Math. Ann., 261(4):515–534, 1982.
  24. [25]Y.-K. Liu, V. Lyubashevsky, and D. Micciancio. On bounded distance decoding for general lattices. In International Workshop on Randomization and Computation - Proceedings of RANDOM 2006, volume 4110 of Lecture Notes in Comput. Sci., pages 450–461, Barcelona, Spain, Aug. 2006. Springer.DOI
  25. [26]V. Lyubashevsky and D. Micciancio. On bounded distance decoding, unique shortest vectors, and the minimum distance problem, 2009. Manuscript.DOI
  26. [27]D. Micciancio. Almost perfect lattices, the covering radius problem, and applications to Ajtai’s connection factor. SIAM Journal on Computing, 34(1):118–169, 2004. Preliminary version in STOC 2002.
  27. [28]D. Micciancio and S. Goldwasser. Complexity of Lattice Problems: A Cryptographic Perspective, volume 671 of The Kluwer International Series in Engineering and Computer Science. Kluwer Academic Publishers, Boston, Massachusetts, Mar. 2002.
  28. [29]D. Micciancio and O. Regev. Worst-case to average-case reductions based on Gaussian measures. SIAM Journal on Computing, 37(1):267–302, 2007.
  29. [30]C. Moore, A. Russell, and U. Vazirani. A classical one-way function to confound quantum adversaries. In quant-ph/0701115, http://xxx.lanl.gov, 2007.arxiv.org/abs/quant-ph/0701115
  30. [31]M. A. Nielsen and I. L. Chuang. Quantum Computation and Quantum Information. Cambridge University Press, 2000.
  31. [32]C. Peikert. Limits on the hardness of lattice problems in l_p norms. Comput. Complexity, 17(2):300–351, 2008. Preliminary version in CCC’07.
  32. [33]C. Peikert. Public-key cryptosystems from the worst-case shortest vector problem. In Proc. 41st ACM Symp. on Theory of Computing (STOC), 2009.
  33. [34]C. Peikert, V. Vaikuntanathan, and B. Waters. A framework for efficient and composable oblivious transfer. In Advances in cryptology—CRYPTO ’08, volume 5157 of Lecture Notes in Comput. Sci., pages 554–571. Springer, Berlin, 2008.DOI
  34. [35]C. Peikert and B. Waters. Lossy trapdoor functions and their applications. In Proc. 40th ACM Symp. on Theory of Computing (STOC), pages 187–196, 2008.DOI
  35. [36]O. Regev. New lattice based cryptographic constructions. Journal of the ACM, 51(6):899–942, 2004. Preliminary version in STOC’03.
  36. [37]O. Regev. On lattices, learning with errors, random linear codes, and cryptography. In Proc. 37th ACM Symp. on Theory of Computing (STOC), pages 84–93, 2005.
  37. [38]C.-P. Schnorr. A hierarchy of polynomial time lattice basis reduction algorithms. Theoret. Comput. Sci., 53(2-3):201–224, 1987.DOI

Paper details

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

views · 3

downloads · 0

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

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents