Pseudorandom generator
In theoretical computer science and cryptography, a pseudorandom generator (PRG) for a class of statistical tests is a deterministic procedure that maps a random seed to a longer pseudorandom string such that no statistical test in the class can distinguish between the output of the generator and the uniform distribution. The random seed itself is typically a short binary string drawn from the uniform distribution.
Many different classes of statistical tests have been considered in the literature, among them the class of all Boolean circuits of a given size. It is not known whether good pseudorandom generators for this class exist, but it is known that their existence is in a certain sense equivalent to (unproven) circuit lower bounds in computational complexity theory. Hence the construction of pseudorandom generators for the class of Boolean circuits of a given size rests on currently unproven hardness assumptions.
Definition
Let [math]\displaystyle{ \mathcal A = \{A: \{0, 1\}^n \to \{0,1\}^*\} }[/math] be a class of functions. These functions are the statistical tests that the pseudorandom generator will try to fool, and they are usually algorithms. Sometimes the statistical tests are also called adversaries or distinguishers.[1] The notation in the codomain of the functions is the Kleene star.
A function [math]\displaystyle{ G: \{0, 1\}^\ell\to\{0,1\}^n }[/math] with [math]\displaystyle{ \ell \lt n }[/math] is a pseudorandom generator against [math]\displaystyle{ \mathcal A }[/math] with bias [math]\displaystyle{ \varepsilon }[/math] if, for every [math]\displaystyle{ A }[/math] in [math]\displaystyle{ \mathcal A }[/math], the statistical distance between the distributions [math]\displaystyle{ A(G(U_\ell)) }[/math] and [math]\displaystyle{ A(U_n) }[/math] is at most [math]\displaystyle{ \varepsilon }[/math], where [math]\displaystyle{ U_k }[/math] is the uniform distribution on [math]\displaystyle{ \{0,1\}^k }[/math].
The quantity [math]\displaystyle{ \ell }[/math] is called the seed length and the quantity [math]\displaystyle{ n-\ell }[/math] is called the stretch of the pseudorandom generator.
A pseudorandom generator against a family of adversaries [math]\displaystyle{ (\mathcal A_n)_{n\in\N} }[/math] with bias [math]\displaystyle{ \varepsilon(n) }[/math] is a family of pseudorandom generators [math]\displaystyle{ (G_n)_{n\in\N} }[/math], where [math]\displaystyle{ G_n : \{0,1\}^{\ell(n)}\to\{0,1\}^n }[/math] is a pseudorandom generator against [math]\displaystyle{ \mathcal A_n }[/math] with bias [math]\displaystyle{ \varepsilon(n) }[/math] and seed length [math]\displaystyle{ \ell(n) }[/math].
In most applications, the family [math]\displaystyle{ \mathcal A }[/math] represents some model of computation or some set of algorithms, and one is interested in designing a pseudorandom generator with small seed length and bias, and such that the output of the generator can be computed by the same sort of algorithm.
In cryptography
In cryptography, the class [math]\displaystyle{ \mathcal A }[/math] usually consists of all circuits of size polynomial in the input and with a single bit output, and one is interested in designing pseudorandom generators that are computable by a polynomial-time algorithm and whose bias is negligible in the circuit size. These pseudorandom generators are sometimes called cryptographically secure pseudorandom generators (CSPRGs).
It is not known if cryptographically secure pseudorandom generators exist. Proving that they exist is difficult since their existence implies P ≠ NP, which is widely believed but a famously open problem. The existence of cryptographically secure pseudorandom generators is widely believed. This is because it has been proven that pseudorandom generators can be constructed from any one-way function which are believed to exist.[2][3] Pseudorandom generators are necessary for many applications in cryptography.
The pseudorandom generator theorem shows that cryptographically secure pseudorandom generators exist if and only if one-way functions exist.
Uses
Pseudorandom generators have numerous applications in cryptography. For instance, pseudorandom generators provide an efficient analog of one-time pads. It is well known that in order to encrypt a message m in a way that the cipher text provides no information on the plaintext, the key k used must be random over strings of length |m|. Perfectly secure encryption is very costly in terms of key length. Key length can be significantly reduced using a pseudorandom generator if perfect security is replaced by semantic security. Common constructions of stream ciphers are based on pseudorandom generators.
Pseudorandom generators may also be used to construct symmetric key cryptosystems, where a large number of messages can be safely encrypted under the same key. Such a construction can be based on a pseudorandom function family, which generalizes the notion of a pseudorandom generator.
In the 1980s, simulations in physics began to use pseudorandom generators to produce sequences with billions of elements, and by the late 1980s, evidence had developed that a few common generators gave incorrect results in such cases as phase transition properties of the 3D Ising model and shapes of diffusion-limited aggregates. Then in the 1990s, various idealizations of physics simulations—based on random walks, correlation functions, localization of eigenstates, etc., were used as tests of pseudorandom generators.[4]
Testing
NIST announced SP800-22 Randomness tests to test whether a pseudorandom generator produces high quality random bits. Yongge Wang showed that NIST testing is not enough to detect weak pseudorandom generators and developed statistical distance based testing technique LILtest.[5]
For derandomization
A main application of pseudorandom generators lies in the derandomization of computation that relies on randomness, without corrupting the result of the computation. Physical computers are deterministic machines, and obtaining true randomness can be a challenge. Pseudorandom generators can be used to efficiently simulate randomized algorithms with using little or no randomness. In such applications, the class [math]\displaystyle{ \mathcal A }[/math] describes the randomized algorithm or class of randomized algorithms that one wants to simulate, and the goal is to design an "efficiently computable" pseudorandom generator against [math]\displaystyle{ \mathcal A }[/math] whose seed length is as short as possible. If a full derandomization is desired, a completely deterministic simulation proceeds by replacing the random input to the randomized algorithm with the pseudorandom string produced by the pseudorandom generator. The simulation does this for all possible seeds and averages the output of the various runs of the randomized algorithm in a suitable way.
Constructions
For polynomial time
A fundamental question in computational complexity theory is whether all polynomial time randomized algorithms for decision problems can be deterministically simulated in polynomial time. The existence of such a simulation would imply that BPP = P. To perform such a simulation, it is sufficient to construct pseudorandom generators against the family F of all circuits of size s(n) whose inputs have length n and output a single bit, where s(n) is an arbitrary polynomial, the seed length of the pseudorandom generator is O(log n) and its bias is ⅓.
In 1991, Noam Nisan and Avi Wigderson provided a candidate pseudorandom generator with these properties. In 1997 Russell Impagliazzo and Avi Wigderson proved that the construction of Nisan and Wigderson is a pseudorandom generator assuming that there exists a decision problem that can be computed in time 2O(n) on inputs of length n but requires circuits of size 2Ω(n).
For logarithmic space
While unproven assumption about circuit complexity are needed to prove that the Nisan–Wigderson generator works for time-bounded machines, it is natural to restrict the class of statistical tests further such that we need not rely on such unproven assumptions. One class for which this has been done is the class of machines whose work space is bounded by [math]\displaystyle{ O(\log n) }[/math]. Using a repeated squaring trick known as Savitch's theorem, it is easy to show that every probabilistic log-space computation can be simulated in space [math]\displaystyle{ O(\log^2 n) }[/math]. Noam Nisan (1992) showed that this derandomization can actually be achieved with a pseudorandom generator of seed length [math]\displaystyle{ O(\log^2 n) }[/math] that fools all [math]\displaystyle{ O(\log n) }[/math]-space machines. Nisan's generator has been used by Saks and Zhou (1999) to show that probabilistic log-space computation can be simulated deterministically in space [math]\displaystyle{ O(\log^{1.5} n) }[/math]. This result is still the best known derandomization result for general log-space machines in 2012.
For linear functions
When the statistical tests consist of all multivariate linear functions over some finite field [math]\displaystyle{ \mathbb F }[/math], one speaks of epsilon-biased generators. The construction of (Naor Naor) achieves a seed length of [math]\displaystyle{ \ell= \log n + O(\log (\epsilon^{-1})) }[/math], which is optimal up to constant factors. Pseudorandom generators for linear functions often serve as a building block for more complicated pseudorandom generators.
For polynomials
(Viola 2008) proves that taking the sum of [math]\displaystyle{ d }[/math] small-bias generators fools polynomials of degree [math]\displaystyle{ d }[/math]. The seed length is [math]\displaystyle{ \ell = d \cdot \log n + O(2^d \cdot \log(\epsilon^{-1})) }[/math].
For constant-depth circuits
Constant depth circuits that produce a single output bit.[citation needed]
Limitations on probability
The pseudorandom generators used in cryptography and universal algorithmic derandomization have not been proven to exist, although their existence is widely believed[citation needed]. Proofs for their existence would imply proofs of lower bounds on the circuit complexity of certain explicit functions. Such circuit lower bounds cannot be proved in the framework of natural proofs assuming the existence of stronger variants of cryptographic pseudorandom generators.[6]
References
- ↑ Katz, Jonathan (2014-11-06). Introduction to modern cryptography. Lindell, Yehuda (Second ed.). Boca Raton. ISBN 9781466570269. OCLC 893721520.
- ↑ HÅstad, Johan; Impagliazzo, Russell; Levin, Leonid A.; Luby, Michael (1 January 1999). "A Pseudorandom Generator from any One-way Function". SIAM Journal on Computing 28 (4): 1364–1396. doi:10.1137/S0097539793244708. https://epubs.siam.org/doi/abs/10.1137/S0097539793244708.
- ↑ Katz, Jonathan; Lindell, Yehuda (20 December 2020) (in en). Introduction to Modern Cryptography. CRC Press. p. 262. ISBN 978-1-351-13302-9. https://books.google.com/books?id=zwIPEAAAQBAJ.
- ↑ Wolfram, Stephen (2002). A New Kind of Science. Wolfram Media, Inc.. p. 1085. ISBN 978-1-57955-008-0. https://archive.org/details/newkindofscience00wolf/page/1085.
- ↑ "Statistical Testing Techniques for Pseudorandom generation". http://webpages.uncc.edu/yonwang/liltest/.
- ↑ Razborov, Alexander; Rudich, Steven (August 1997). "Natural Proofs". Journal of Computer and System Sciences 55 (1): 24–35. doi:10.1006/jcss.1997.1494.
- Sanjeev Arora and Boaz Barak, Computational Complexity: A Modern Approach, Cambridge University Press (2009), ISBN:9780521424264.
- Oded Goldreich, Computational Complexity: A Conceptual Perspective, Cambridge University Press (2008), ISBN:978-0-521-88473-0.
- Oded Goldreich, Foundations of Cryptography: Basic Tools, Cambridge University Press (2001), ISBN:9780521791724.
- Naor, Joseph; Naor, Moni (1990), "Small-bias probability spaces: Efficient constructions and applications", Proceedings of the twenty-second annual ACM symposium on Theory of computing - STOC '90, pp. 213–223, doi:10.1145/100216.100244, ISBN 978-0897913614, http://www.wisdom.weizmann.ac.il/~naor/PAPERS/bias_abs.html
- Viola, Emanuele (2008). "The Sum of d Small-Bias Generators Fools Polynomials of Degree D". 2008 23rd Annual IEEE Conference on Computational Complexity. pp. 124–127. doi:10.1109/CCC.2008.16. ISBN 978-0-7695-3169-4. http://www.ccs.neu.edu/home/viola/papers/d.pdf.
Original source: https://en.wikipedia.org/wiki/Pseudorandom generator.
Read more |