WorksComputer Science
How Much Randomness is Needed to Convert MA Protocols to AM Protocols?
Abstract
The Merlin-Arthur class of languages MA is included into Arthur-Merlin class AM, and into PP. For a standard transformation of a given MA protocol with Arthur's message (= random string) of length a and Merlin's message of length m to a PP machine, the latter needs O(ma)random bits. The same holds for simulating MA protocols by AM protocols: in the resulting AM protocol the length of Arthur's message (= random string) is O(ma). And the same holds for simulating heuristic MA protocols by heuristic AM protocols as well. In the paper [A.Knop, Circuit Lower Bounds for Average-Case MA, CSR 2015] it was conjectured that, in the transformation of heuristic MA protocols to heuristic AM protocols, O(ma) can be replaced by a polynomial of a only. A similar question can be asked for normal MA and AM protocols, and for the simulation of MA protocols by PP machines. In the present paper we show that, relative to an oracle, both latter questions answer in the negative and Knop's conjecture is false. Moreover, the same is true for simulation of MA protocols by AM protocols in which the error probability is not bounded away from 1/2, the so called PP.NP protocols. The latter protocols generalize both AM protocols and PP machines.
Introduction
Let MA[] denote the class of languages that have two-round Merlin-Arthur protocols in which Merlin starts the communication, the lengths of messages are , respectively, and error probability is at most 1/3. In a similar way the class AM[] is defined, but now Arthur is the one starting the communication.
The class AM includes MA [3], more specifically, it holds that MA[] AM[]. This can be proved via amplification: we first decrease the error probability from 1/3 to , at the expense of increasing to , as Arthur has to repeat his algorithm times and then make a majority vote. Using derandomization via expanders [1], we can replace by and hence prove the inclusion MA[] AM[]. In this paper we try to understand whether it is possible get rid of and replace in this inclusion by a polynomial of only.
Question 1. Is there a polynomial such that MA[] AM[, ] for all polynomials of the length of the input?
Here AM[, ] denotes the union of AM[] over all polynomials . This question is motivated by the following conjecture from Knop’s paper [6] about heuristic analogs of MA and AM.
Conjecture 1 ([6]). There is a polynomial such that if there is a heuristic Merlin-Arthur protocol for a language that on inputs of length and confidence uses random bits ( is a polynomial) then there is a heuristic Arthur-Merlin protocol for using random bits.
Roughly speaking, a language has a heuristic Merlin-Arthur protocol if there is an ordinary Merlin-Arthur protocol that errs only on a small fraction of inputs (called its confidence). The heuristic analog of AM is defined in a similar way.
This conjecture is interesting, since it provides a way to transform lower bounds for heuristic computations to lower bounds for normal computations. More specifically, the following holds: if Conjecture 1 is true then for all some NP language has no Boolean circuits of size ([6]). Thus it would be very helpful to prove Conjecture 1.
A similar question arises for the inclusion [9], where PP stands for the class of languages recognized by probabilistic polynomial time machines with error probability less than . It is important that the error probability is not bounded away from . This inclusion is also proved via amplification and its more detailed version reads , where in the notation denotes the number of random bits available to PP machines.
Question 2. Is there a polynomial such that for all polynomials ?
If MA = P or MA = NP, then in both above simulations randomness is not needed at all, therefore both questions answer in positive. Hence to prove negative answers, we must show beforehand that MA P. The latter is equivalent to P NP since [5]. Thus we cannot hope to prove negative answers to both Questions 1 and 2 unless we show that P NP. On the other hand, positive answers seem implausible.
In such a situation, it is natural to ask whether one can answer Questions 1 and 2 using relativizable techniques. By the result of [4] there is an oracle under which P NP. Under that oracle MA = P, since the Polynomial Hierarchy collapses. Hence under that oracle both questions answer in the positive and Knop’s conjecture holds.
On the other hand, in the present paper we show that there are oracles under which both questions answer in the negative and Knop’s conjecture does not hold. More specifically, we show that there is an oracle under which for every polynomial the class is not included in both classes and where , , and stands for the length of the input. In particular, under that oracle MA NP thus the “full derandomization” of MA is impossible. Our result implies that we need a non-relativizable proof techniques to fully derandomize MA and even to show that for some fixed polynomial . It remains an open question whether we can resolve both questions using algebrizable techniques in the sense of Aaronson and Wigderson [2].
Actually, we prove a stronger separation. Let denote the class of languages recognized by Arthur-Merlin protocols with error probability less than but not bounded away from . This class obviously includes both classes and . In the present paper we prove that under an oracle, for all non-constant polynomials there is a language in such that for every protocol for it holds for all .
Using the same techniques, we then show that under an oracle Knop’s conjecture is false, too. We also establish a similar theorem for MA protocols, where Merlin never fails. More specifically, let denote the subclass of consisting of languages possessing a protocol for which the error probability is zero for all strings from the language. It is natural to ask whether . From the Sipser–Gács–Lautemann theorem [8, 7] about the inclusion it follows that , more specifically,
Hence our theorem implies that under an oracle for all polynomials there are polynomials with . In the present paper, we establish a more tight bound: relative to an oracle, for every non-constant polynomials there is a language in such that for any protocol for we have for almost all . Compared with simulating MA protocols, is replaced by .
Summarizing, we show that we cannot prove Conjecture 1 or positive answers to Questions 1 and 2 using relativizable techniques.
Preliminaries
A language is a subset of the set of all strings over the binary alphabet. The length of the string is denoted by . When we speak on probability, we always mean the uniform distribution.
A polynomial is a function of the form where are positive integers. Thus any polynomial is a non-constant function with positive values. In the following definitions denote some polynomials.
Definition 1. A language is in the class if there is a Turing machine with input strings , whose running time is bounded by some polynomial of , such that
for all strings .
Definition 2. A language is in the class if there is a Turing machine with input strings , whose running time is bounded by some polynomial of , such that
for all strings .
Definition 3. A language is in the class if there is a Turing machine with input strings , whose running time is bounded by some polynomial of , such that
for all strings . Compared with the definition of MA, the number is replaced by , and the number by (the latter replacement is not important).
Definition 4. A language is in the class if there is a Turing machine with input strings , whose running time is bounded by some polynomial of , such that
for all strings .
Definition 5. A language is in the class if there is a Turing machine with input strings , whose running time is bounded by , such that
for all strings . Triples of the form will be called protocols. We say that a protocol is correct on input if the equivalence (1) is true. Otherwise we say that the protocol errs on .
Definition 6. (Heuristic classes) We say that a language is in Heur- if there is a Turing machine with input strings , whose running time is bounded by a polynomial of , such that for all the equivalence
holds for all but fraction of strings of length .
In a similar way the classes Heur-MA and Heur-AM are defined.
An oracle is a function . The classes MA, MAP, AM, , relativized by an oracle are defined as follows: now the machine has an extra “oracle” tape. On that tape the machine can “query the oracle”. That means that the machine can write any string followed by a question mark on that tape. Immediately after that, the word is replaced by by “the oracle”, which is counted as one step of computation. Complexity classes relativized by an oracle are denoted by .
Constructing an Oracle under which Transformation of MA to PP·NP Protocols Requires Many Random Bits
The first result states that under some oracle some language in has no protocols unless .
Theorem 1. There is an oracle with the following property. For all polynomials there is a language in that is outside any class such that for infinitely many .
Proof. We first prove a weaker version of the theorem, assuming that the polynomials are fixed.
The value of an oracle on strings of length can be viewed as a Boolean matrix with rows and columns. For the constructed oracle for all the matrix will have one of the following forms:
either some row in the matrix has more than two thirds of ones,
or less than one third of entries in every row are ones.
Matrices of the first type are called heavy, and matrices of the second type are called light. We will call this property of by (see Figure 1).

Figure 1. The matrix on the left is heavy, and the matrix on the right is light.
The language will consist of all strings such that the matrix is heavy. The intuition is the following: the hidden heavy row is easy to guess in one step but hard to amplify and find.
The property of guarantees that , since
(the respective machine on input outputs by querying the oracle once).
Now we will define an oracle so that is outside provided for infinitely many .
We first pick any protocol with for infinitely many . Here stands for the polynomial that upper bounds the running time of . W.l.o.g. we may assume that the running time of protocols does not depend on the oracle.
Then we prove that there is an oracle such that this protocol does not recognize . To this end we will need the following
Lemma 1. Assume that a procedure is given that on input (a Boolean matrix of size , strings ) outputs a bit by querying at most elements of the matrix . Let be a natural number with
and any natural number. Then there is a heavy Boolean matrix with
or a light Boolean matrix with
Proof. For the sake of a contradiction assume that there is no such matrix. That is, for every heavy we have (4), and for every light we have (3).
Let first be all-zero matrix. We will derive a contradiction by flipping certain ’s entries in such a way that is still light but there are pairs with pairwise different first components and with . We will find such pairs one by one. For each new pair we will freeze all elements of queried in the computation of . This means that we will not change those elements on further steps and thus the equality will remain valid. On each step we will freeze at most entries and the assumed inequality
will guarantee that on each step it is possible to find a row with few frozen entries. Flipping all non-frozen elements of that row we get a heavy matrix, which will allow to find a new pair .
More specifically, we make steps and on th step we find one new pair . On the first step we flip all the elements of the first row of . We obtain a heavy matrix. By assumption the inequality (4) holds. Hence there is such that there is with . Fix such . Then freeze all elements of queried in the computation of . Then we again flip all non-frozen elements of the first row and becomes light. This follows from the assumed inequality , which implies that the number of ones in the first row is less than one third.
After th step the matrix is light and at most its entries are frozen. Besides that, there are distinct and (not necessarily distinct) with . On st step we choose a row with minimal number of frozen elements. That number is less than , since at most entries of the matrix are frozen, that is, on average less than per row. Then we make all non-frozen elements in that row equal to 1. The resulting matrix is heavy, as it has more than ones. By the assumption we have (4). Since , there is that is different from and there is with . Pick such and and freeze all elements queried in the computation of . Then we make all non-frozen elements of that row equal to 0. The total number of frozen elements in that row is less than , thus we again get a light matrix.
After steps we derive a contradiction: the matrix is light and yet for more than half of there is with .
Let us resume the proof of the theorem. Let us consider the procedure that simulates the run of . If queries oracle’s value on a string of length , then queries the corresponding entry of the input matrix . If queries oracle’s value on a string of length different from , then assumes that the oracle answer is 0. Note that for all sufficiently large the running time of on , and hence the number of oracle queries, is less than . Indeed, grows exponentially and is a polynomial. For such ’s, to meet the assumptions of the lemma, it suffices to satisfy the inequality , that is, . By the assumption there are infinitely many satisfying this inequality. Thus there is for which the conclusion of the lemma holds. We pick any such and define the value of the oracle on strings of length so that the matrix satisfy the conclusion of the lemma. For all other strings we let . By construction the chosen PP·NP protocol does not recognize .
Now we have to fool all PP·NP protocols , with for infinitely many . This can be done by a standard diagonalization. We enumerate all PP·NP protocols with oracle which satisfy the inequality for infinitely many . We first let for all and then we perform infinitely many steps. On each step we freeze a finite number of oracle values. On th step we fool th PP·NP protocol . To this end, we choose such that no value of on strings of length has been frozen yet, and . Using the lemma, we change oracle values on strings of length so that the conclusion of the lemma holds. Then we freeze all oracle values queried by in the runs on inputs of lengths , respectively.
Finally, to construct an oracle such that the statement of the theorem holds for all polynomials , we also enumerate all the pairs of polynomials: and define
Here is defined exactly as we defined earlier for the pair as .
Then we enumerate all pairs (a natural number , a PPNP protocol ) and for each such pair we make one step. On that step we fool the protocol as a candidate protocol for . There is one obstacle however. In order to place the language in , we need the property hold for all . When we change to fool the protocol as a candidate protocol for , we can violate the property for with .
To handle this problem, we will split the oracle into countably many oracles, one oracle for each pair of polynomials. For each we consider the prefix encoding of the number . It is obtained by doubling each bit in the binary representation of and then appending 01 (for instance, ). This encoding ensures that for strings of the form and cannot coincide.
Then we change the definition of the matrix : now it is built from oracle’s values on strings of the form , where the length of is . Changing does not affect any of the matrices for . Therefore, when we change we cannot violate the property for any .
Refuting Knop’s Conjecture under an Oracle
Recall that Knop’s conjecture claims the existence of a polynomial such for all polynomials , if then .
Notice that if then there is a normal protocol that is correct on at least half of inputs of each length and hence is correct on at least one input of each length . We will build an oracle under which Knop’s conjecture is false in a strong way. Under that oracle, for all polynomials there is a language in (and hence in ) such that every protocol with for infinitely many errs on all inputs of length for some .
Let, for instance, and , where is an arbitrary polynomial. We can see that all protocols for a language in that are correct on at least one input of each length require
random bits for almost all .
Theorem 2. There is an oracle with the following property. For all polynomials there is a language such that any protocol for with for infinitely many errs on all inputs of some length .
Sketch of proof. As before, we enumerate all pairs (a polynomial , a polynomial ). Then we define
where is a Boolean matrix of size , , defined by
Note that this time the matrix depends on the input and not only on its length . The oracle construction will ensure that for all the matrix is either heavy, or light. Thus for all the language is in .
The construction of will ensure that for all and for all PP·NP protocols with for infinitely many , there is with the following property: for all of length ,
either is heavy and
or is light and
This implies that the protocol , as a candidate protocol for , errs on all inputs of a certain length .
The construction of proceeds in steps where on each step we fool some protocol as a candidate protocol for some language . To this end we use the following
Lemma 2. Assume that a procedure is given that on input (a sequence of Boolean matrices of size , strings and ) outputs a bit by querying at most elements of the given matrices in total. Let be a natural number with
and any natural number. Then there is a sequence of matrices such that for all either is heavy and
or is light and
Proof. The proof is similar to that of Lemma 1 and thus we explain only what is the difference. Now we make stages and on each stage we make steps. On stage we flip only entries of to ensure the requirement for that . However we need to freeze also entries of other matrices in the case queries their entries in the computation on the input . Thus the total number of frozen elements, in all the matrices, can now raise up to . Since we assume that this number is still less than , on each step each matrix has a row with less than frozen entries. This we can complete each step. □
The rest of the proof is similar to that of Theorem 1. To fool a protocol as a candidate protocol for the language , we apply Lemma 2 to the procedure that simulates the run of . If queries oracle’s value on a string of the form where and , then queries . To fool the protocol , we again choose such that no value of on strings of length has been frozen yet, and . Using the lemma, we change oracle values so that the conclusion of the lemma holds. Then we freeze all oracle values queried by in the runs on inputs of lengths , respectively. □
Constructing an Oracle under which Transformation of MAP to PP·NP Protocols Requires Many Random Bits
Our third result states that under some oracle some language in has protocols only if .
Theorem 3. There is an oracle with the following property. For all polynomials there is a language in that is outside any class such that for infinitely many .
Proof. The proof of this theorem is similar to that of Theorem 1. However this time heavy matrices are defined as those for which there is an all-one row, and light matrices as those in which there are less than one half ones (Figure 2). Instead of Lemma 1 we use the following

Figure 2. The matrix on the left is heavy, and the matrix on the right is light.
Lemma 3. Assume that a procedure is given that on input (a Boolean matrix of size , strings ) outputs a bit by querying at most elements of the matrix . Let be a natural number with or and any natural number. Then there is a heavy matrix satisfying (3), or a light matrix satisfying (4).
Proof. Assume first that . For the sake of contradiction assume that for every heavy matrix it holds (4) and for every light matrix it holds (3). Let be all-zero matrix. Flip all bits of the first row. We get a heavy matrix. By assumption we have (4). Choose any such that there is a with . Fix such and freeze all values of queried in the run . Thus we guarantee that . Then flip again all non-frozen elements of the first row. As , now the matrix is light.
Then we make similar steps. After th step we have at most frozen elements of , distinct and (not necessarily distinct) with . On st step we choose a row with no frozen entries (such a row does exist, since we assume that ) and flip all elements of that row. We get a heavy matrix and hence it satisfies (4). Since , there is a that is different from and there is a with . Freeze all entries of queried in this computation. Then flip all non-frozen elements of the first row. As , now the matrix is light.
After we get a contradiction as the matrix is light and for more than half of there is a with .
Assume now that . In this case the arguments are simpler. Again, for the sake of contradiction assume that for every heavy matrix it holds (4) and for every light matrix it holds (3). Let be all-one matrix and hence it is heavy. By assumption we have (4). Fix pairs with and with pair-wise distinct first components. Freeze at most entries of guaranteeing for all those pairs. Flip all non-frozen elements of . The inequality implies that less than half entries in each row are frozen. Hence we get a light matrix satisfying (4), a contradiction.
The remaining part of the proof is similar to that of the proof of Theorem 1.
Open questions
Is it true that for some polynomial for all polynomials it holds ?
Can we prove the inclusion by algebrizing techniques (for some fixed polynomial )?
Can we prove Conjecture 1 by algebrizing techniques?
Acknowledgments
The author is sincerely grateful to anonymous referees for helpful suggestions.
References
- [1]Noga Alon, Uriel Feige, Avi Wigderson, and David Zuckerman. Derandomized graph products. Computational Complexity, 5(1):60–75, 1995.DOI
- [2]Scott Aaronson and Avi Wigderson. Algebrization: A new barrier in complexity theory. ACM Trans. Comput. Theory, 1(1):2:1–2:54, 2009.
- [3]Laszlo Babai. Trading group theory for randomness. In 17th STOC, pages 421–429, 1985.DOI
- [4]T. Baker, J. Gill, and R. Solovay. Relativization of P=?NP question. SIAM J. Computing, 4(4):431–442, 1975.
- [5]R. B. Boppana, J. Håstad, and S. Zachos. Does co-np have short interactive proofs? Information Processing Letters, 25:127–132, 1987.DOI
- [6]Alexander Knop. Circuit lower bounds for average-case MA. In Lev D. Beklemishev and Daniil V. Musatov, editors, Computer Science - Theory and Applications - 10th International Computer Science Symposium in Russia, CSR 2015, Listvyanka, Russia, July 13-17, 2015, Proceedings, volume 9139 of Lecture Notes in Computer Science, pages 283–295. Springer, 2015.DOI
- [7]Clemens Lautemann. BPP and the polynomial hierarchy. Inf. Proc. Lett., 17(4):215–217, 1983.DOI
- [8]Michael Sipser. A complexity theoretic approach to randomness. In Proceedings of the 15th ACM Symposium on the Theory of Computing, pages 330–335. ACM, New York, 1983.DOI
- [9]Nikolay Vereshchagin. On the power of PP. In Proc. 7th Annual IEEE Conference on Structure in Complexity Theory, Boston, MA, pages 138–143, 1992.