e01.org

learning with errors

In cryptography, learning with errors (LWE) is a mathematical problem that is widely used to create secure encryption algorithms. It is based on the idea of representing secret information as a set of equations with errors. In other words, LWE is a way to hide the value of a secret by introducing noise to it. In more technical terms, it refers to the computational problem of inferring a linear n -ary function f over a finite ring from given samples y_i = f(\mathbf{x}_i) some of which may be erroneous. The LWE problem is conjectured to be hard to solve, and thus to be useful in cryptography. More precisely, the LWE problem is defined as follows. Let \mathbb{Z}_q denote the ring of integers modulo q and let \mathbb{Z}_q^n denote the set of n -vectors over \mathbb{Z}_q . There exists a certain unknown linear function f:\mathbb{Z}_q^n \rightarrow \mathbb{Z}_q , and the input to the LWE problem is a sample of pairs (\mathbf{x},y) , where \mathbf{x}\in \mathbb{Z}_q^n and y \in...

In cryptography, learning with errors (LWE) is a mathematical problem that is widely used to create secure encryption algorithms. It is based on the idea of representing secret information as a set of equations with errors. In other words, LWE is a way to hide the value of a secret by introducing noise to it. In more technical terms, it refers to the computational problem of inferring a linear n -ary function f over a finite ring from given samples y_i = f(\mathbf{x}_i) some of which may be erroneous. The LWE problem is conjectured to be hard to solve, and thus to be useful in cryptography. More precisely, the LWE problem is defined as follows. Let \mathbb{Z}_q denote the ring of integers modulo q and let \mathbb{Z}_q^n denote the set of n -vectors over \mathbb{Z}_q . There exists a certain unknown linear function f:\mathbb{Z}_q^n \rightarrow \mathbb{Z}_q , and the input to the LWE problem is a sample of pairs (\mathbf{x},y) , where \mathbf{x}\in \mathbb{Z}_q^n and y \in \mathbb{Z}_q , so that with high probability y=f(\mathbf{x}) . Furthermore, the deviation from the equality is according to some known noise model. The problem calls for finding the function f , or some close approximation thereof, with high probability. The LWE problem was introduced by Oded Regev in 2005 (who won the 2018 Gödel Prize for this work); it is a generalization of the parity learning problem. Regev showed that the LWE problem is as hard to solve as several worst-case lattice problems. Subsequently, the LWE problem has been used as a hardness assumption to create public-key cryptosystems, such as the ring learning with errors key exchange by Peikert. Denote by \mathbb{T}=\mathbb{R}/\mathbb{Z} the additive group on reals modulo one. Let \mathbf{s} \in \mathbb{Z}_q^n be a fixed vector. Let \phi be a fixed probability distribution over \mathbb{T} . Denote by A_{\mathbf{s},\phi} the distribution on \mathbb{Z}_q^n \times \mathbb{T} obtained as follows. Pick a vector \mathbf{a}\in \mathbb{Z}_q^n from the uniform distribution over \mathbb{Z}_q^n , Pick a number e\in\mathbb{T} from the distribution \phi , Evaluate t=\langle \mathbf{a},\mathbf{s} \rangle /q + e , where \textstyle \langle \mathbf{a},\mathbf{s} \rangle = \sum_{i=1}^n a_i s_i is the standard inner product in \mathbb{Z}_q^n , the division is done in the field of reals (or more formally, this "division by q " is notation for the group homomorphism \mathbb{Z}_q \longrightarrow \mathbb{T} mapping 1 \in \mathbb{Z}_q to 1/q + \mathbb{Z} \in \mathbb{T} ), and the final addition is in \mathbb{T} . Output the pair (\mathbf{a},t) . The learning with errors problem \mathrm{LWE}_{q,\phi} is to find \mathbf{s} \in \mathbb{Z}_q^n , given access to polynomially many samples of choice from A_{\mathbf{s},\phi} . For every \alpha > 0 , denote by D_\alpha the one-dimensional Gaussian with zero mean and variance \alpha^2/(2\pi) , that is, the density function is D_\alpha(x)=\rho_\alpha(x)/\alpha where \rho_\alpha(x)=e^{-\pi(|x|/\alpha)^2} , and let \Psi_\alpha be the distribution on \mathbb{T} obtained by considering D_\alpha modulo one. The version of LWE considered in most of the results would be \mathrm{LWE}_{q,\Psi_\alpha} Peikert showed that this reduction, with a small modification, works for any q that is a product of distinct, small (polynomial in n ) primes. The main idea is if q = q_1 q_2 \cdots q_t , for each q_{\ell} , guess and check to see if \mathbf{s}_j is congruent to 0 \mod q_{\ell} , and then use the Chinese remainder theorem to recover \mathbf{s}_j . So, suppose there was some set \mathcal{S} \subset \mathbb{Z}_q^n such that |\mathcal{S}|/|\mathbb{Z}_q^n| = 1/\operatorname{poly}(n) , and for distributions A_{\mathbf{s}',\chi} , with \mathbf{s}' \leftarrow \mathcal{S} , DLWE was easy. Then there would be some distinguisher \mathcal{A} , who, given samples \{(\mathbf{a}_i,\mathbf{b}_i) \} , could tell whether they were uniformly random or from A_{\mathbf{s}',\chi} . If we need to distinguish uniformly random samples from A_{\mathbf{s},\chi} , where \mathbf{s} is chosen uniformly at random from \mathbb{Z}_q^n , we could simply try different values \mathbf{t} sampled uniformly at random from \mathbb{Z}_q^n , calculate \{(\mathbf{a}_i,\mathbf{b}_i + \langle \mathbf{a}_i, \mathbf{t} \rangle)/q\} and feed these samples to \mathcal{A} . Since \mathcal{S} comprises a large fraction of \mathbb{Z}_q^n , with high probability, if we choose a polynomial number of values for \mathbf{t} , we will find one such that \mathbf{s} + \mathbf{t} \in \mathcal{S} , and \mathcal{A} will successfully distinguish the samples. Thus, no such \mathcal{S} can exist, meaning LWE and DLWE are (up to a polynomial factor) as hard in the average case as they are in the worst case. For a n-dimensional lattice L , let smoothing parameter \eta_\varepsilon(L) denote the smallest s such that \rho_{1/s}(L^*\setminus \{\mathbf{0}\}) \leq \varepsilon where L^* is the dual of L and \rho_\alpha(x)=e^{-\pi(|x|/\alpha)^2} is extended to sets by summing over function values at each element in the set. Let D_{L,r} denote the discrete Gaussian distribution on L of width r for a lattice L and real r>0 . The probability of each x \in L is proportional to \rho_r(x) . The discrete Gaussian sampling problem (DGS) is defined as follows: An instance of DGS_\phi is given by an n -dimensional lattice L and a number r \geq \phi(L) . The goal is to output a sample from D_{L,r} . Regev shows that there is a reduction from \operatorname{GapSVP}_{100\sqrt{n}\gamma(n)} to DGS_{\sqrt{n}\gamma(n)/\lambda(L^*)} for any function \gamma(n) \ge 1 . Regev then shows that there exists an efficient quantum algorithm for DGS_{\sqrt{2n}\eta_\varepsilon(L)/\alpha} given access to an oracle for \mathrm{LWE}_{q,\Psi_\alpha} for integer q and \alpha \in (0,1) such that \alpha q > 2\sqrt{n} . This implies the hardness for LWE. Although the proof of this assertion works for any q , for creating a cryptosystem, the modulus q has to be polynomial in n . The LWE problem serves as a versatile problem used in construction of several cryptosystems. In 2005, Regev showed that the decision version of LWE is hard assuming quantum hardness of the lattice problems \mathrm{GapSVP}_\gamma (for \gamma as above) and \mathrm{SIVP}_t with t=O(n/\alpha) ). In 2009, Peikert proved a similar result assuming only the classical hardness of the related problem \mathrm{GapSVP}_{\zeta,\gamma} . The disadvantage of Peikert's result is that it bases itself on a non-standard version of an easier (when compared to SIVP) problem GapSVP. m=(1+\varepsilon)(n+1) \log q for an arbitrary constant \varepsilon \chi=\Psi_{\alpha(n)} for \alpha(n) \in o(1/\sqrt{n}\log n) , where \Psi_\beta is a probability distribution obtained by sampling a normal variable with mean 0 and standard variation \frac{\beta}{\sqrt{2\pi}} and reducing the result modulo 1 . The cryptosystem is then defined by: Private key: Private key is an \mathbf{s}\in \mathbb{Z}^n_q chosen uniformly at random. Public key: Choose m vectors \mathbf{a}_1,\ldots,\mathbf{a}_m \in \mathbb{Z}^n_q uniformly and independently. Choose error offsets e_1,\ldots,e_m \in \mathbb{T} independently according to \chi . The public key consists of (\mathbf{a}_i,b_i=\langle \mathbf{a}_i,\mathbf{s} \rangle/q + e_i)^m_{i=1} Encryption: The encryption of a bit x \in \{0,1\} is done by choosing a random subset S of [m] and then defining \operatorname{Enc}(x) as \left(\sum_{i \in S} \mathbf{a}_i, \frac x 2 + \sum_{i \in S} b_i\right) Decryption: The decryption of (\mathbf{a},b) is 0 if b-\langle \mathbf{a}, \mathbf{s} \rangle/q is closer to 0 than to \frac{1}{2} , and 1 otherwise. The proof of correctness follows from choice of parameters and some probability analysis. The proof of security is by reduction to the decision version of LWE: an algorithm for distinguishing between encryptions (with above parameters) of 0 and 1 can be used to distinguish between A_{s,\chi} and the uniform distribution over \mathbb{Z}^n_q \times \mathbb{T} ==References==

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"learning with errors". 1763047440. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1321958564

JSON record · API collection · citation policy