Manuscript Offprint
arXiv:2609.38073Optimal Quantum-Classical Separations for Exact Learning
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
We study exact learning with membership queries for concept classes , focusing on the relationships among their deterministic, randomized, and quantum query complexities, denoted , , and , respectively. The two canonical quantum speedups in this model are witnessed by Grover search and Bernstein-Vazirani, leading to the longstanding conjecture
We first refute this conjecture by constructing concept classes C and satisfying
The first bound matches the upper bound of Arunachalam et al. [Quantum'21] up to constant factors, while the second matches the upper bound of Servedio and Gortler [SICOMP'04]. In particular, this shows that the saving in the randomized upper bound of Arunachalam et al. fundamentally relies on randomness. Apart from characterizing the optimal relationship between classical and quantum query complexity, our results are the first to show that quantum speedups for learning can go beyond the Grover and Bernstein-Vazirani paradigms.
Contents
1 Introduction 2
1.1 Deterministic separation 3
1.2 Randomized separation 5
1.3 Other results 10
2 Optimal quantum-randomized separation 13
2.1 Warm up 13
2.2 The concept class 15
2.3 Quantum upper bound 17
2.4 Randomized lower bound 19
2.5 Putting it all together 26
3 Optimal quantum-deterministic separation 26
3.1 The concept class 26
3.2 Quantum upper bound 26
3.3 Deterministic lower bound 27
3.4 Putting it all together 27
4 Further results 28
4.1 Booleanization of exact learning 28
4.2 Fractional combinatorial parameters 29
We denote by , , and the deterministic, randomized, and bounded-error quantum query complexities of identifying an unknown concept in , respectively.
The classical membership-query model has been studied extensively both within and beyond computational learning theory [BCG 96, Bsh13, Bsh18, BH19, HKLM20, CF20, Bsh25]. More broadly, it captures the fundamental black-box identification problem of determining an unknown function promised to belong to a known family, with connections to interpolation, functional verification, and black-box identity testing [Bsh13]. Roughly speaking, the query complexity of exact learning measures the amount of information that must be extracted from an unknown function in order to identify it completely. The quantum analogue has likewise received substantial attention [SG04, AS05, AIK 04, Kot14, AdW17, ACL 21]. In this setting, also studied under the name oracle identification, a basic question is how much quantum queries can reduce the identification of an unknown concept. This leads to a natural question first studied by Servedio and Gortler [SG04]:
What is the optimal relationship between classical and quantum learning?
Servedio and Gortler [SG04] made the first progress by proving the following theorem.
Theorem 1.1 ([SG04, Theorem 1]). For all , we have .
Later, Arunachalam et al. [ACL 21] improved their simulation, albeit in the randomized setting.
Theorem 1.2 ([ACL 21, Section 4]). For all , we have .
Apart from these simulations, the best known separations between quantum and classical learning was by two well-known classes: (i) point functions, , for which the randomized query complexity is and the quantum query complexity is by Grover's algorithm [Gro96] and (ii) parity functions, for all , for which the randomized query complexity is and the quantum query complexity is by Fourier sampling [BV97]. Apart from these two generic separations and reasonably natural generalizations of them [AS05], no non-trivial separation was known between quantum and classical learning which also accounted for the domain size. This led to the natural question, raised and conjectured in several works [SG04, AS05, Mon07, AdW17, ACL 21], with its earliest explicit formulation appearing two decades ago in [AS05, Question 4.4].
We remark that Belovs [Bel15] (and also Atici and Servedio [AS05]) gave a quartic separation between quantum and classical learning, however, these classes are consistent with Conjecture 1.3: the concepts are functions on n variables, and the log N term in the conjectured upper bound is sufficiently large to accommodate the separation.
Conjecture 1.3. For every concept class , we have
This bound was believed to be tight for the point function and the parity function class.
Main result Our main contribution in this work is in refuting this conjecture.
Theorem 1.4. There exists with and .
Theorem 1.5. There exists with and .
Putting these together with Theorem 1.1 and Theorem 1.2, our work gives the optimal relation between quantum and classical learning, both in the deterministic and randomized setting, upto constant factors. In particular, it refutes the two-decade-old conjecture (Conjecture 1.3) of Atici and Servedio [AS05].
1.1 Deterministic separation
1.1.1 High-level overview
We begin with the deterministic setting, where the idea behind the separation is particularly simple. The two canonical quantum advantages in exact learning come from Grover search [Gro96, BBBV97] and Bernstein-Vazirani [BV97]: Grover gives a quadratic speedup for locating a hidden marked item, while Bernstein-Vazirani learns a hidden parity with one quantum query compared to the logarithmic classical lower bound.
Our construction combines these two advantages so that the classical costs multiply while the quantum costs add. We hide a Bernstein-Vazirani-amenable object at one of many possible locations. A deterministic learner must spend many queries ruling out such an object at each location, whereas a quantum learner can first locate the correct location using Grover search and then recover the hidden object using Bernstein-Vazirani. Our main observation is that a bilinear form provides exactly these two properties: classical queries reveal only one constraint at a time, while quantum queries can access many of its coordinates simultaneously. Fix . Let denote the all-zero function on , and for each and nonzero define
Our concept class is
For a concept , all “blocks” are identically zero, while the unique hidden block contains the bilinear form associated with . Quantumly, the hidden block can be located using queries, after which can be recovered using another queries. Deterministically, however, each zero answer within a block imposes only one linear constraint on the entries of , so ruling out a block can require queries. Since there are possible blocks, this leads to an deterministic lower bound, compared with an quantum upper bound. Finally, , so , and therefore , proving Theorem 1.4.
The class for all of parity functions witnesses the bounds in our results, but has , so this is not a very interesting example. The question is thus interesting in the regime where the underlying concept class has .
1.1.2 Quantum and classical bounds
Quantum upper bound. Our quantum learner for the concept class described in Equation (1) and Equation (2) first locates the hidden block, then learns A.
Learning the hidden block. Let . The algorithm prepares a uniform superposition over and use one membership query as a phase query. Up to normalization, this produces
Applying a Hadamard transform to the x-register and using the orthogonality of characters the new state is
Thus every basis state corresponding to a zero block has 0 in its final register, whereas for the hidden block the final register contains . Since , we have , and hence
Since only one of the blocks is nonzero, the total probability mass on states with final register nonzero is at least . Amplitude amplification therefore boosts the probability of observing a basis state with nonzero final register to a constant using membership queries. The reflections required for amplitude amplification are efficiently implementable, since the good subspace is determined by whether the final register is nonzero and the initial state is prepared by a known unitary using one membership query. We then measure. If the final register is nonzero, the first register reveals the hidden block ; otherwise, the learner outputs .
Learning A. Once is known, we recover column by column using Bernstein-Vazirani. This is done as follows: For each , fix and consider the function
Since , this is precisely a Bernstein-Vazirani instance with hidden string . Hence one Bernstein-Vazirani query recovers the th column of . Repeating this for recovers the entire matrix using additional queries. Overall,
Deterministic lower bound. We prove the lower bound using an adversary argument. Consider a deterministic learner making fewer than queries, and consider the transcript obtained by answering 0 to every query. Since there are blocks, by averaging there exists a block that receives fewer than queries. Let be the queries made in block , where . We claim that there exists a nonzero matrix such that for every . Each condition is a homogeneous linear equation in the entries of . Since there are only such equations, the resulting homogeneous system has a nonzero solution. Therefore the all-zero transcript is consistent with both and : queries outside block are answered 0 automatically, while the choice of ensures that every query inside block is also answered 0. Hence no deterministic learner making fewer than queries can identify the target concept, and so . Combining this with and , where the latter follows from , we obtain
This proves Theorem 1.4.
1.2 Randomized separation
1.2.1 High-level overview
First observe that the deterministic separation above does not directly yield a randomized separation. Indeed, consider the concept class described in Equation (1) and Equation (2). For uniformly random , we have whenever . Thus, for each , a randomized learner can test whether using random queries to block . All zero blocks always return 0, while the hidden block is detected with constant probability. Once the hidden block is found, the learner can recover using queries: for every , query in block , which returns . Thus all entries of can be recovered using queries. Hence the previous class satisfies in contrast with the lower bound outlined in the previous section.
As a first step towards our randomized separation, we modify the construction above, which yields a concept class C that already refutes Conjecture 1.3 by obtaining
We discuss this candidate as a warm-up in Section 2.1. However, pushing beyond this requires new ideas. We discuss a second issue that we had to circumvent for our separation. Recall that showed the upper bound of
for all concept classes C. To obtain our stronger separation, we aim for a concept class satisfying
The second requirement prevents us from using Bernstein-Vazirani in the same way as in the deterministic separation. Indeed, obtaining a factor-t classical cost from a parity on bits requires a domain of size , and hence forces . We therefore need a different inner problem that retains a one-versus- quantum-classical gap while having domain size only polynomial in .
Our main idea is to move away from Bernstein-Vazirani as the main source of the separation and instead use a problem inspired by the hidden subgroup problem. In particular, consider the following hidden line problem over a finite field.
Let be a power of two and let be unknown. Define by
where P is a polynomial whose precise form will be specified later. The function is constant on each affine line , with the hidden parameter s determining the slope of these lines. If one had direct query access to , then one quantum query followed by Fourier sampling would recover with high probability. Our Boolean concept will encode these hidden-line values using two parts. In the first part, each pair indexes a block containing a unique marked address encoding . The second part contains auxiliary information that allows the learner to recover efficiently once is known.
Fix a block . It contains possible addresses and exactly one of them is marked, namely . Thus, classically, uncovering the marked address in this block is an unstructured search problem of finding a unique marked element among possibilities, which is well known to require queries. Quantumly, the same marked address can be found in queries using Grover search. Moreover, for any blocks whose associated hidden inputs are distinct, their marked addresses are independent and uniform. Thus, heuristically, uncovering the marked addresses in such blocks requires about queries, suggesting an randomized lower bound. There are, however, a few nontrivial issues in turning this intuition into the desired separation.
-
Hiding the marked addresses. For the randomized lower bound, it is not enough merely to hide each useful value at one of locations: the locations of the marked addresses must remain difficult to predict even for an adaptive learner. We therefore choose P at random from a suitable family of degree-t polynomials. The randomness in the coefficients ensures that the values of P at any t distinct inputs are independent and uniform. Consequently, after seeing fewer than t such values, the marked address corresponding to a new input remains uniform and unpredictable.
-
Hiding the slope. Even after a randomized learner discovers some marked addresses, the corresponding values should not determine the hidden slope s too quickly. As long as fewer than t distinct underlying inputs have been exposed, the corresponding polynomial values remain independent and uniform. We then show that collisions among these underlying inputs are unlikely, so a small number of revealed values gives essentially no information about s.
-
Recovering the polynomial. The previous two issues concern the randomized lower bound. On the quantum side, recovering the hidden slope s is not enough to identify the concept, since the polynomial P remains unknown. We therefore add an auxiliary “cheat sheet” component whose unique nonzero sheet is indexed by s. Once s has been recovered, the quantum learner can access this sheet and efficiently recover the coefficients of P. All other sheets are identically zero, and since there are many possible sheet addresses, a randomized learner cannot locate the active sheet without essentially learning s first.
With this motivation, we now formally define the concept class. Fix a binary basis of , and let denote truncation to the first coordinates. Since each element of has exactly preimages under , truncation maps a uniform element of to a uniform element of . An unknown concept is indexed by a pair , where and is the monic degree-t polynomial
Thus defines a function . Write . For each pair with and as in Equation (3), the concept consists of two parts.
- Block part. For every pair , the coordinates form a block of size . Exactly one coordinate in this block is marked, namely the coordinate with . The concept takes value 1 at this coordinate and 0 at every other coordinate in the block.
Figure 1: Each block has one marked address, namely . Finding the marked address reveals the value .
There are choices of , and each block contains coordinates. Hence the block part contains bits in total. See Figure 1 for a visual description of the block part.
- Cheat-sheet part. Recovering alone does not identify the concept, since the polynomial remains unknown. We therefore include one auxiliary sheet for each . Every sheet with is identically zero, while the unique active sheet contains Hadamard encodings of the coefficients of described in Equation (3). Concretely, the coordinate indexed by , where and , has value
Once is known, the learner knows which sheet is active and can recover the coefficients of efficiently. There are choices of , choices of , and choices of . Hence the cheat-sheet part contains bits in total. See Figure 2 for a visual description of the cheat-sheet part.
sheets indexed by
Figure 2: The cheat-sheet part consists of sheets indexed by . All sheets are zero except the active sheet , whose -th row is the Hadamard encoding of the coefficients .
The concept class is now implicitly defined to be the set of all Boolean-valued concepts, one for each , defined as above.
1.2.2 Quantum and classical bounds
Quantum upper bound. The quantum learner first recovers the hidden slope from the block part. For every , exactly one of the addresses is marked, namely . Using exact amplitude amplification over the address register, the learner can therefore prepare
using membership queries. Importantly, this can be done coherently with in superposition.
Next, apply to each of the first two registers and measure them. Writing and using orthogonality of characters, the resulting outcome satisfies for every . Whenever , taking for gives , which is a system of linear equations over that uniquely determines . Indeed, suppose that is another solution. Then
If , multiplication by is a bijection on , and hence for every , which implies , a contradiction. Thus, whenever , the outcome uniquely determines .
It remains to bound the probability of the exceptional case . For every label , there are exactly elements satisfying . Since has degree , each equation has at most solutions. Hence
For , necessarily . For each , the amplitude of is
since for each there are exactly choices of . Therefore
where we used . Thus the learner recovers with probability at least using membership queries. Finally, once is known, the learner knows which cheat sheet to query. Its rows contain Hadamard encodings of the coefficients of . Each coefficient can be recovered with one query, so all of is learned using another queries. Therefore, the quantum query complexity is
Randomized lower bound. We prove that using Yao's minimax principle and a sequence of hybrid experiments. Choose independently and uniformly from , and fix a deterministic learner making at most queries. We compare its execution under this distribution with three successively simpler experiments. Each hybrid removes one source of dependence on the hidden slope , while changing the learner's success probability by only a small amount. In the final experiment, the learner's entire transcript is independent of , at which point the desired lower bound is immediate. We now present the three hybrids and summarize the eventual lower bound afterwards.
- We may assume the active cheat sheet is never queried. First modify the execution by answering every cheat-sheet query with 0, while leaving all block answers unchanged. Let A be the event that, in this modified execution, the learner either queries the sheet indexed by s or outputs a concept with slope s.
The real and modified executions agree until the learner first queries the sheet indexed by s. Hence, if the learner succeeds in the real execution, then either it must query this sheet, or else the two executions remain identical throughout and its final output must have the correct slope. Therefore,
- Replacing the polynomial labels by a random function. For any distinct points , the values are independent and uniform in . Hence are independent and uniform in .
For fixed , every block query is an equality query of the form . We show that replacing by a fully random function changes the probability of the event from the previous step by at most
For a sufficiently small constant times , this error is exponentially small in .
- Replacing the random function by independent block labels. After the previous step, the label of block is , where is a fully random function. We compare this with the independent-block experiment in which each block is assigned its own independent uniform label , reused on repeated queries to that block.
The two experiments can be coupled to agree until two distinct queried blocks and satisfy
Indeed, as long as all these hidden inputs are distinct, the corresponding values of the random function are themselves independent and uniform in . For any fixed pair of distinct blocks, the above equality holds for at most one slope : if it is impossible since then while if it requires . In the independent-block experiment, all answers are independent of , and hence so are the learner's adaptive choices of which blocks to query. Conditioning on the resulting transcript therefore fixes at most queried blocks while leaving uniform in . A union bound over pairs shows that a collision occurs with probability at most . Thus this replacement changes the probability of A by at most .
Thus, after the three hybrid steps, we have reduced to an experiment in which the learner's entire view is independent of the hidden slope s. The only remaining way to identify s is therefore to guess it, either through one of its cheat-sheet queries or in its final output. Hence the cheat-sheet addresses it queries, as well as its final slope guess, are independent of s. There are at most such guesses, so the probability of the event A is at most . Combining the three steps gives
For , this is at most for sufficiently large . Therefore, by Yao's principle,
The blocks contribute coordinates and the cheat sheets contribute coordinates, giving domain size , while the choices of and choices of define distinct concepts, so . Hence the standard exact-learning lower bound of [SG04] gives
Together with the quantum upper bound, this yields and . Thus,
proving Theorem 1.5 and matching the general simulation upper bound of for this family.
1.3 Other results
We now present other structural results on exact learning with membership queries, that might be of independent interest.
1.3.1 Booleanization of quantum learnability
Every Boolean decision about an unknown concept is at most as hard as identifying the concept itself: one can first learn the concept and then evaluate the desired function with no extra queries. A natural question is to ask when the opposite direction is true: for what concept classes is it true that some Boolean decision witnesses a matching quantum query lower bound? Equivalently,
For what promise domains does there exist a partial Boolean function whose quantum query complexity is asymptotically equal to that of identifying an unknown string in ?
For the full domain , any maximally hard function for quantum query complexity (e.g., parity) easily witnesses such a lower bound, but it is not clear whether this remains true for an arbitrary restricted domain. Prior work used Boolean decisions to lower-bound exact learning [AIK 04] and studied learning with respect to prescribed partitions [AS05]. We show that the answer to the question above is affirmative for every promise domain: every concept class admits a Boolean decision whose quantum query complexity matches that of learning the concept itself, i.e.,
We defer the proof to Section 4.1. In contrast, we show that the analogous statement for randomized query complexity is false in a strong sense.
1.3.2 A new combinatorial measure
The extended teaching dimension (ETD) was introduced by Hegedüs [Heg95] in connection with the query complexity of exact learning, building on earlier work of Moshkov [Mos82]. In particular, ETD and its variants have been used to obtain upper bounds on the number of membership queries required for exact learning [Heg95, BCG02, BM18, Han24]. In a rather different line of work, Servedio and Gortler [SG04] introduced the -parameter, which had already appeared implicitly as a lower-bound measure in [BCKT94]. They showed that
Although ETD and arose from different approaches to exact learning, they play closely related roles: both measure, in different ways, how much progress can be forced by a membership query. It is therefore natural to ask whether the two parameters are manifestations of the same underlying combinatorial phenomenon. We show that this is indeed the case after passing to natural fractional relaxations. We introduce fractional analogues and fETD of and ETD, respectively, satisfying
Our main structural observation is that the distinction between the two measures disappears completely after fractionalization: Lemma 4.9 shows that
This phenomenon is reminiscent of the relationship between block sensitivity and certificate complexity for Boolean functions. While bs and C can differ polynomially, Tal [Tal13] observed that their natural fractional relaxations coincide by linear programming duality: for every input x; see also [GSS16]. The analogy is particularly natural here because extended teaching dimension is closely related to certificate complexity, with a specifying set playing the role of a certificate. Lemma 4.9 shows that an analogous collapse occurs for the splitting parameter and extended teaching dimension in exact learning. Moreover, this common fractional parameter has direct consequences for query complexity.
Theorem 1.6. For every ,
Equivalently, by Lemma 4.9,
The possibility that ETD might also yield quantum query lower bounds was raised by Arunachalam and de Wolf [AdW17]. Theorem 1.6 confirms this intuition after fractionalization: the fractional extended teaching dimension captures, up to constant factors, the same combinatorial quantity as the splitting parameter underlying the Servedio-Gortler quantum lower bound. The theorem can also be viewed as simultaneously refining two classical bounds. On the lower-bound side, it strengthens Eq. (4) by replacing with the potentially smaller fractional parameter . On the upper-bound side, our argument refines the randomized simulation of Arunachalam et al. [ACL 21, Theorem 10],
and may be viewed as a fractional analogue of the classical bounds of [Heg95, Mos82] who showed
There is one important distinction: the Hegedüs bound is deterministic, whereas ours is randomized. In exchange, our bound replaces ETD(C) by the potentially smaller and more refined quantity fETD(C). Our randomized upper bound is inspired by the framework of [ACL 21, Theorem 10].
AI statement. We used GPT-5.6 in the process of discovering most of our results, but notably the construction underlying our separation in Theorem 1.5. Our use of the model was iterative with a long thread of discussions. The model first provided us with a separation, which itself emerged only after substantial back-and-forth, with several intermediate candidates and repeated simplifications. We present the final simplified version as a warm-up separation in Section 2.1. The final construction there is considerably simpler than the earlier versions considered during these discussions.
We then provided several possible ingredients and directions, including standard quantum query separations, the idea of totalizing a partial construction using a cheat-sheet gadget and how to use that to construct a learning separation. We then asked it to search for candidate exact-learning classes inspired by these. GPT-5.6 produced an initial “superquadratic” separation that ignored several nuances of exact learning and was considerably more complicated than necessary. After isolating the core mechanism, we suggested replacing the central gadget (i.e., Forrelation, which was its initial inspiration) by a hidden-shift problem (since it was using the Forrelation candidate as a 1 vs quantum-classical query separation). GPT-5.6 then helped simplify the construction around this idea while preserving the same separation. The eventual construction was still fairly complicated, and the current version is after a substantial simplification. The resulting arguments were subsequently verified, refined, simplified and rewritten in final form by the authors and we take full responsibility for any mistakes.
2 Optimal quantum-randomized separation
2.1 Warm up
Before proving our optimal quantum-randomized separation, we first give a simpler construction that already refutes the Atici-Servedio conjecture [AS05] (Conjecture 1.3).
We first give the concept class witnessing this separation, together with a proof sketch of the quantum and classical bounds. For integers , consider an unknown matrix and define the concept
Let
Thus, the learner is given membership-query access to an unknown matrix through queries of the form “is ?”
Quantum upper bound. A pseudocode for our algorithm witnessing the upper bound is in Algorithm 1. The algorithm is described below: Write for the rows of . We learn
Algorithm 1 Quantum exact learning algorithm for from Section 2.1
Require: Query access to the oracle , where is unknown.
1: For , let denote the ith row of .
2: for do
3: Define a phase oracle acting on as follows:
4: Compute the known prefix .
5: Grover-search to find the unique satisfying .
6: Apply the phase and uncompute.
7: Bernstein-Vazirani( ).
8: end for
9: return .
them sequentially. To learn , we use Grover search to coherently recover the ith bit of , and then Bernstein-Vazirani to recover the linear form . How we do this is described below. Suppose are already known. For any fixed , the first coordinates of are known, so the set of possible values of , namely , has size . The membership oracle itself serves as the Grover marking oracle, since . The reflection about the uniform superposition over the candidate values of is query-free: this superposition is prepared by a known unitary depending only on the previously learned rows . Among these candidates there is a unique correct value . Hence, using the membership oracle to test whether a candidate satisfies , exact Grover search (zero error) finds using membership queries.
Moreover, this search can be implemented coherently with in superposition. We can therefore compute the th bit into an ancilla while leaving unchanged. Applying a phase conditioned on this ancilla and then uncomputing the search workspace implements the phase oracle
A Bernstein-Vazirani query to this phase oracle recovers the entire row . For the query upper bound, summing the costs over all i gives
The matching lower bound follows by restricting to matrices of the form , which reduces learning to unstructured search over . Hence .
Randomized lower bound. We apply Yao’s minimax principle to the uniform distribution over . Fix a deterministic decision tree making at most queries, after removing queries whose answers are already forced by the preceding transcript. At a node , let denote the set of matrices consistent with the transcript so far, and define
Thus is the subspace of inputs on which the value of the unknown linear map has already been determined. Suppose a nonredundant query receives answer 1. Then every matrix surviving this answer satisfies , so belongs to the new determined subspace. On the other hand, did not belong to before the query: otherwise was already fixed by the transcript, and the answer to would have been forced. Since is a subspace, every 1-answer therefore increases by at least one. As , every root-to-leaf transcript contains at most answers equal to 1. Consequently, a depth- decision tree has at most
reachable leaves. Each leaf outputs a single matrix and hence can be correct on at most one of the possible targets. Therefore, success probability at least 2/3 under the uniform distribution requires
Equation (6) and Equation (7) imply . Yao's minimax principle therefore gives
Finally, take . Since the domain of has size , we have . Equation (5) and Equation (8) thus give the separation of
The lower bound presented above is closely related to the search-by-hyperplane-queries lower bound of Yun [Yun15]. Yun's result is stated over prime fields and for unrestricted affine-hyperplane queries, whereas our setting involves the restricted queries arising from the concept class above. We therefore included the short proof above for completeness.
2.2 The concept class
We now formally define the concept class that proves Theorem 1.5. An accompanying figure that describes concepts from this class is Figure 3.
Definition 2.1. Let be a power of two. Fix a binary basis of . All inner products use coordinates in this basis and are taken over . Define truncation to the first 2 log t coordinates by the map
For an element and a monic polynomial
of degree , write . For each pair as above, we define a concept with a block part and a cheat sheet part. We use a first coordinate blk or sheet to indicate which part is being queried, with respective domains
Block part. For and , define
For each fixed , the corresponding block has locations indexed by , with a unique at .
Cheat sheet part. For and , define
For each fixed , the corresponding cheat sheet is the function . It is identically zero for , while at its th row is the linear function .
Concept definition. Let
Thus an input to is either a block query (blk, x, c, z), on which
or a cheat sheet query (sheet, u, j, b), on which
We suppress the tags blk and sheet when the intended part is clear from context. Hence
The domain size is
The learner may make membership queries to either part in any adaptive order, and its goal is to identify the unknown concept, or equivalently, to recover both P and s.

Figure 3: The two parts of . Each block (represented by rows in the block part) has a unique marked address; blank entries are zero. The cheat sheet part consists of sheets indexed by : sheet encodes the coefficients of , and every other sheet is zero. The arrow shows that the part that is uncovered in the block part serves as the pointer for the row in the cheat sheet part.
2.2.1 Useful facts
In this section we list useful facts about our concept class from Definition 2.1 which will be useful in the analysis of the quantum upper bound and classical lower bound subsequently.
Fact 2.2. Every label in has exactly preimages under trunc. Consequently, trunc sends a uniform element of to a uniform label in .
Proof. Using the fixed binary basis of , we identify , and trunc simply discards the last coordinates. Thus, for any fixed , the first coordinates are prescribed while the remaining coordinates may be chosen arbitrarily. Hence
Since every has the same number of preimages, the image under trunc of a uniformly random element of is uniform on .
Fact 2.3. Let be monic of degree . Then for every , , and is nonconstant.
Proof. Fix . By Fact 2.2, there are exactly elements satisfying . Therefore
For each such w, the polynomial is monic (and hence a nonzero polynomial) of degree t, and hence has at most t roots. Consequently,
Since , no fiber of is the entire domain, so is nonconstant.
Fact 2.4. The map is injective. In particular, .
Proof. Suppose . Taking in the block part gives ; write for this common function. Equality of the block parts then gives
If , then multiplication by is a bijection of , so as ranges over , the quantity also ranges over all of . Hence is constant, contradicting Fact 2.3. Therefore . At the cheat sheet address , equality of the concepts gives for every and every , and hence for every . Thus .
Finally, since is monic, each of its coefficients can be chosen independently from , giving choices for . There are also choices for , and therefore .
Fact 2.5. Suppose are independent and uniformly chosen from . Then for any distinct with , the random variables are independent and uniform in .
Proof. Fix distinct with , and write
Consider the evaluation map
This map is surjective: for any prescribed values , polynomial interpolation gives a polynomial of degree at most taking value at for every . Since the evaluation map is linear and surjective, all of its fibers have the same size. Hence, because is uniform in , the vector is uniform in . Adding the fixed vector shows that is also uniform in . Finally, applying trunc coordinatewise and using Fact 2.2 shows that is uniform in , equivalently the random variables are independent and uniform in .
2.3 Quantum upper bound
We now show that the concept class can be learned with quantum membership queries.
Theorem 2.6. Let be a power of two, and let be the concept class from Definition 2.1. Then
Proof. Fix an unknown concept . We first recover the hidden slope from the block part, and then learn from the cheat sheet part.
• Prepare the uniform superposition over all block coordinates,
For every pair , there is exactly one marked value of , namely . Since there are choices of and choices of , exactly a fraction of the basis states are marked. We may therefore use exact amplitude amplification to prepare
using membership queries.
Apply the Hadamard transform to each of the first two registers of Equation (9). This gives
Writing , this state becomes
For fixed , multiplication by is an -linear map on . Let denote its matrix with respect to our fixed binary basis, so that . Hence . The inner sum in Equation (10) is therefore equal to
By orthogonality of characters, this sum equals when and is zero otherwise. Hence the state in Equation (10) simplifies to
Measuring the first two registers therefore returns a pair satisfying . If , then the relation uniquely determines . Indeed, the th coordinate of is
since the ith column of is the coordinate vector of s. These are 6 log t linear equations over in the 6 log t coordinate bits of s.
To see uniqueness, suppose also satisfies . Then , and hence for every . If , multiplication by is a bijection of , so this implies for every , and therefore , a contradiction. Thus is uniquely determined whenever .
It remains to bound the probability that . Since , this also forces . For each , the amplitude of is
Therefore
By Fact 2.3, . Moreover, since the fibers of partition . Hence Equation (11) gives
Thus the hidden slope s is recovered with probability at least .
- Finally, once is known, the learner knows the unique active cheat sheet (recall Definition 2.1). Also recall that for each , the th row of the active sheet is the Boolean function
where is the th coefficient of . Thus each row is a Bernstein–Vazirani instance with hidden string . One quantum membership query therefore recovers exactly, and repeating this for recovers all coefficients of using additional queries.
Combining the query cost of from the last bullet to learn with the queries used in the previous bullets to recover , the total query complexity is . The only possible failure occurs when the Fourier sample has , which happens with probability at most . Hence the learner succeeds with bounded error, proving .
2.4 Randomized lower bound
We now prove our randomized lower bound for .
Theorem 2.7. Let be a power of two, and let be the concept class from Definition 2.1. Then
We prove the lower bound using Yao’s minimax principle [Yao77]. Choose independently and uniformly from , where is the hidden slope and are the coefficients of the unknown polynomial , and let be the resulting distribution on . We will show that every deterministic learner making queries has success probability less than under the input distribution .
We first describe the proof strategy. The idea is to compare the learner's real execution under with a sequence of simpler fictitious executions. At each step, we modify how some queries are answered, and show that with high probability the learner cannot distinguish the modified execution from the previous one. After three such modifications, we arrive at an execution whose transcript is independent of the hidden slope s, and is therefore easy to analyze. Since the real execution is close to this final fictitious one, any learner that succeeds with high probability in the real experiment would also have to succeed in the fictitious experiment with noticeable probability, which we will show is impossible with queries.
-
First, we modify the execution by answering every cheat-sheet query with 0, while leaving all block answers unchanged. The real and modified executions agree until the learner first queries the active sheet u = s. Thus, if the learner succeeds in the real execution, then either it queries the active sheet in both executions, or the two executions agree throughout and its final output has the correct slope s. It therefore suffices to bound the probability that, in the modified execution, the learner either queries the active sheet or outputs a concept with slope s.
-
Second, we replace by a uniformly random function . This makes the labels at distinct hidden inputs independent, removing the dependencies imposed by the polynomial. By Fact 2.5, is t-wise independent, but the learner may query more than t distinct hidden inputs, so this alone does not justify the replacement. We also use the fact that each block query only tests whether the label equals one specified address among possibilities. We prove that, when , this replacement changes the probability of the event from the previous bullet, namely that the learner queries the active sheet or outputs the correct slope, by only a small amount. Since the previous bullet bounds the learner's success probability by the probability of this event, it suffices to bound its probability in the new experiment, allowing for this small error.
-
Finally, we assign each block an independent uniformly random marked address from , which remains fixed throughout the execution. To compare this with the previous experiment, observe that a random function already assigns independent uniformly random marked addresses to blocks with distinct hidden inputs . We can therefore arrange for the two experiments to give exactly the same answers unless two distinct queried blocks have the same hidden input. In the new experiment, the learner's queries are independent of , and each pair of distinct blocks has the same hidden input for at most one slope. A union bound thus bounds the probability of such a collision by , which also bounds the change in the probability of the event tracked in the previous bullets.
In this final experiment, the learner’s entire transcript is independent of s. Its cheat-sheet queries and final output therefore give at most guesses for a uniformly random slope in . Hence the probability that it queries the active sheet or outputs the correct slope is at most .
Combining the three steps, the learner's success probability in the real execution is at most
Taking , the first term is , the second is at most 1/200, and the third is at most . Thus the success probability is less than 2/3 for all sufficiently large . By Yao's minimax principle, this proves .
We now formalize the hybrid argument. Fix a deterministic learner making at most queries. We run this same learner in the real experiment and in each of the hybrids defined below. In each experiment, denotes the transcript produced in that experiment, including the queries, answers, and final output; its distribution therefore depends on the experiment. We may assume that the learner always outputs a concept in , since replacing an invalid output by an arbitrary fixed concept in cannot decrease its success probability. By Fact 2.4, each concept has a unique parameter pair . We can therefore read a slope guess from the learner's output, which we denote by . In the real experiment, successful identification of the target concept necessarily implies . In the hybrids, we will track whether this slope guess is correct or the learner queries the sheet indexed by .
2.4.1 Hybrid 1
Sample from exactly as in the original learning problem. Answer each block query by , but answer every cheat-sheet query by 0. Write for probability in this experiment, and let denote its transcript. Define
Thus A occurs if the learner queries the active sheet or its final output has the correct slope. Querying the active sheet does not require the learner to recognize that it is active. Let denote the probability that the fixed deterministic learner outputs the target concept in the real experiment, where .
Lemma 2.8. Let A be as in Equation (12). For every deterministic learner, .
Proof. Fix a pair and run the deterministic learner in both the real experiment and Hybrid 1 with this same pair. Block queries receive the same answers in both experiments, as do queries to inactive cheat sheets. Thus, until the learner first queries the active sheet, it receives the same answers and makes the same subsequent queries in both executions.
If the learner queries the active sheet in the real experiment, it makes the same query in Hybrid 1, since the two executions agree up to that query. Hence the first event in the definition of A from Equation (12) occurs in Hybrid 1. Otherwise, the learner never queries the active sheet in the real experiment, so the two executions agree throughout and have the same final output. If the learner succeeds in the real experiment, this output has slope s. Hence in Hybrid 1, so the second event in the definition of A occurs. In either case, whenever the learner succeeds in the real experiment, the event A occurs in Hybrid 1. Taking probabilities over ,
proving the lemma.
☐
2.4.2 Hybrid 2
Choose uniformly at random and, independently, choose a uniformly random function . Thus the values at distinct inputs are independent and uniform in
. Answer each block query by , and continue to answer every cheat-sheet query by 0. Write for probability in this experiment.
The following lemma will allow us to compare Hybrid 1, where the marked address in block is , with Hybrid 2, where it is . By Fact 2.5, the values of on at most distinct inputs are independent and uniform in . The learner may of course query more than distinct inputs, so this fact alone does not justify replacing by a fully random function. The following lemma shows that such a replacement nevertheless changes the transcript distribution only slightly, because each query only tests whether a function value equals one specified address.
Lemma 2.9. Let X, Z be finite sets with , and let . Let be a random k-wise independent function, and let be a uniformly random function. Then any deterministic adaptive algorithm making at most D equality queries of the form in the first experiment and in the second induces transcript distributions whose total variation distance is at most
Proof. Let denote the supremum, over all deterministic decision trees of depth at most , of the total variation distance between the transcript distributions obtained when the queried function is -wise independent and when it is fully random. We prove the desired bound by induction on . Clearly , while for every , since a depth-zero decision tree makes no queries.
Fix a deterministic decision tree of depth at most and an event of transcripts. Label each leaf by 1 if its transcript lies in , and by 0 otherwise, and let be the resulting output on a function . Follow the path obtained by answering 0 to every equality query, and let , where , be the queries encountered on this path. Let be the label of the terminal leaf. For each and , let denote the Boolean function that maps an oracle to the final leaf label obtained by continuing the computation from the -child of the th node with oracle . Then
This identity follows by repeatedly expanding the computation along the all-zero path, starting from
Now suppose . Since both F and G are uniform at every individual input,
By the assumptions in the lemma, conditioned on , the values of on any distinct inputs different from remain independent and uniform, while conditioned on , the values of on the remaining inputs remain fully independent and uniform. Any subsequent query to has a predetermined answer under this conditioning and may therefore be removed. Thus, for each ,
Importantly, we condition only on the single event (respectively ), and not on the preceding zero answers along the all-zero path. This is what allows us to retain -wise independence after conditioning. Taking expectations in Equation (13) gives
and similarly
Subtracting these expressions, applying the triangle inequality, and using Equation (14) for gives
Since is the indicator of the chosen transcript event , we have and . Since , taking the supremum over all deterministic decision trees of depth at most and all transcript events therefore gives
By induction,
where the last equality uses . Since total variation distance is the maximum difference in the probability of an event, this proves the lemma.
We now show that the transcript distributions in Hybrid 1 and Hybrid 2 are close in total variation distance.
Lemma 2.10. The joint distributions of in Hybrid 1 and Hybrid 2 have total variational distance at most
Consequently, .
Proof. Fix a value of . In Hybrid 1, every block query is an equality query to the function at the input , i.e., . By Fact 2.5, the values of on any set of at most distinct inputs are independent and uniform in . In Hybrid 2, these labels are instead generated by a fully random function . Therefore, by Lemma 2.9, conditioned on this fixed value of , the two transcript distributions differ in total variation distance by at most
Since is uniform in both hybrids, averaging over gives the same bound for the joint distributions of . Since is an event determined by , we have .
2.4.3 Hybrid 3
In Hybrid 3, assign to each block an independent uniformly random marked address , which is reused on repeated queries to the same block. Thus, a block query is answered by . As in the previous hybrids, every cheat-sheet query is answered by 0. Write for probability in this experiment.
The only difference from Hybrid 2 is that there the marked address of block is , where is a uniformly random function. Hence two distinct blocks receive the same marked address whenever they correspond to the same hidden input , whereas in Hybrid 3 distinct blocks are assigned independent marked addresses.
Recall that T denotes the transcript produced by the learner in the hybrid under consideration, including its queries, the corresponding answers, and its final output.
Lemma 2.11. The joint distributions of in Hybrid 2 and Hybrid 3 differ in total variation distance by at most
Consequently, for A as in Equation (12), .
Proof. We couple Hybrid 2 and Hybrid 3 as follows. Sample the same uniformly random slope s in both experiments. Whenever the learner queries a block for the first time, let . If no previously queried block satisfies , sample a fresh uniformly random marked address , set in Hybrid 2, and set in Hybrid 3. Repeated queries to the same block use the previously assigned marked address in both hybrids. Thus the two transcripts remain identical unless the learner queries two distinct blocks satisfying
Let denote the event that such a pair occurs among the queried blocks. Let and denote the transcripts in Hybrid 2 and Hybrid 3, respectively, under the coupling above, and set and . By construction, the marginal distributions of and are precisely and , respectively. By the standard coupling inequality, the total variation distance between and is bounded by
Under our coupling, X = Y whenever C does not occur. Hence
It remains to bound . Condition on the complete transcript in Hybrid 3. Since the unique marked address assigned to each block is chosen independently of , and every cheat-sheet query is answered by 0, the transcript is independent of . Hence, conditioned on , the slope remains uniform in . The transcript contains at most distinct queried blocks. Fix two distinct queried blocks and . If , then implies , and hence , contradicting that the two blocks are distinct. If , then is equivalent to . Thus this equality holds for exactly one value of , and therefore
A union bound over at most pairs of queried blocks gives . Since this holds for every transcript , averaging over yields , proving the lemma.
Lemma 2.12. In Hybrid 3, .
Proof. Condition on the complete transcript T. In Hybrid 3, the marked address of each block is chosen independently of s, and every cheat-sheet query is answered by 0. Hence T is independent of s, so conditioned on T, the slope s remains uniform in .
The transcript determines the at most cheat-sheet addresses queried by the learner, as well as its final slope guess . Therefore, conditioned on , the event can occur only if equals one of at most specified elements of . Thus
Since this bound holds for every transcript T,
proving the lemma.
2.4.4 Putting hybrids together
We now show how to put the hybrids together to obtain our randomized lower bound in Theorem 2.7.
Proof of Theorem 2.7. Recall the definition of A from Equation (12) and that is the distribution obtained by choosing independently and uniformly from . We use Yao's minimax principle [Yao77] and show that the success probability of any deterministic learner that makes less than queries is small under the input distribution . Combining Lemmas 2.8 and 2.10 to 2.12 gives
where
Now, let . Thus
while
Hence, for all sufficiently large t, the right-hand side of Equation (16) is strictly smaller than 2/3.
Thus, for all sufficiently large , every deterministic learner making at most queries has success probability less than under . By Yao's minimax principle, .
2.5 Putting it all together
Theorem 1.5. There exists with and .
Proof. We have from Fact 2.4 and from Definition 2.1. The standard quantum lower bound for exact learning [SG04, Theorem 10] implies
Hence . Together with the quantum upper bound from Theorem 2.6, this gives . Applying the randomized lower bound from Theorem 2.7, we obtain
as required.
3 Optimal quantum-deterministic separation
In this section, we prove Theorem 1.4. Like before we first give the concept class, then describe the classical and quantum bounds.
3.1 The concept class
The construction is based on combining two standard sources of quantum speedup, Grover search and Bernstein-Vazirani. We partition the domain into blocks and choose one hidden block . On every block , the concept is identically zero, while on block it is given by for an unknown nonzero matrix . We now formalize this construction.
Definition 3.1. Let be an integer and let . For and nonzero , define by
Let be the identically zero concept, and define
3.2 Quantum upper bound
We first show that can be learned with quantum membership queries. The algorithm has two stages: first find the unique nonzero block, and then recover the matrix .
Suppose first that the target concept is with . Since is a proper subspace of , a uniformly random satisfies with probability at least 1/2. For every such , exactly half of the vectors satisfy . Therefore at least a 1/4 fraction of the coordinates in block have value 1. Since all other blocks are identically zero, at least a fraction of the entire domain has value 1. By quantum search [BHMT02], we can therefore

Figure 4: The concept . Rows and columns within each block are indexed by , respectively. Only block is nonzero. For , every block is zero.
find a coordinate of value 1 using queries with probability at least 2/3. The block containing this coordinate must be b. If the target is , quantum search reports failure, and we output .
It remains to recover A once b is known. For each , fix . Then
Thus this is precisely a Bernstein-Vazirani instance with hidden string , the th column of . One query suffices to therefore recover exactly. Repeating this for all recovers using queries. This uses queries in total and succeeds with probability at least 2/3 on every concept.
3.3 Deterministic lower bound
Next we give our deterministic lower bound of . Fix a correct deterministic learner of strictly smaller cost and consider an adversary that answers 0 to every query; in particular, these answers are consistent with . Suppose the learner halts after fewer than queries. For each , let be the number of its queries to block . Since , some block satisfies .
Write the queries to that block as . A matrix consistent with their zero answers must satisfy
for every . These are fewer than homogeneous linear constraints on the entries of , so there exists a nonzero matrix satisfying all of them.
The concept therefore answers 0 to every query in block , and answers 0 to every query outside that block by definition. Hence the learner receives exactly the same transcript on as on , and, being deterministic, produces the same output on both concepts. It cannot identify both correctly, which is a contradiction.
3.4 Putting it all together
Theorem 1.4. There exists with and .
Proof. Let be as in Definition 3.1. Observe that the domain size of satisfies , so . Using our quantum upper bound of from Section 3.2 and , we have . The theorem now follows from our deterministic lower bound of from Section 3.3.
This matches the general simulation upper bound of Servedio and Gortler [SG04, Theorem 1] for this family.
4 Further results
4.1 Booleanization of exact learning
For every concept class, every Boolean decision about an unknown concept can be solved by first identifying the concept, and then evaluating the desired Boolean function. We show in this section that, quantumly, the converse holds up to a constant factor: every concept class admits a Boolean decision whose query complexity matches that of exact learning.
For any concept class and any set , define a “Booleanization” of as the Boolean function that identifies an element of , i.e., . Also define
We use the general adversary bound given below. For a function with , define
where the maximum is over all real symmetric matrices indexed by such that whenever , and . Then .
Theorem 4.1 (Quantum Booleanization). For every concept class ,
Proof. The inequality is immediate. Let be a partition for which . An algorithm that identifies can also determine whether without making additional queries.
For the converse, we use the general adversary bound . Let be the function . Let be an optimal adversary matrix for . By the constraints on given after Equation (17), its diagonal will be zero. Replacing by , if necessary, choose a unit vector such that
For a sign vector , let and . Note that , and hence if , while otherwise. Consequently, if , then is a valid adversary matrix for . We have for , . Moreover, for every . Therefore, for all ,
Thus . For the choice of from Equation (18), we have . By an averaging argument, this implies the existence of for which
On the other hand, for any ,
where we used that S is diagonal. Since conjugation by S preserves operator norm, the triangle inequality gives
For the choice of s from Equation (19), Equations (19) and (20) give
where the last equality uses our initial assumption that is an optimal adversary matrix for Id. Since is a valid adversary matrix for as justified earlier, it follows that . Using the tightness of the general adversary bound ,
which proves the claim.
The analogous statement fails for randomized query complexity, even when every Booleanization is solvable exactly with one query.
Theorem 4.2 (Randomized separation). For every integer , there is a concept class with such that but .
Proof. Let be the class of dictator functions, where each is defined by for every . Fix an arbitrary set , and define by . If the unknown concept is , then
Thus every Booleanization can be computed deterministically with one query, and hence . On the other hand, each membership query returns only one bit. A standard information-theoretic lower bound (see, e.g., [SG04, Lemma 8]) implies .
4.2 Fractional combinatorial parameters
In this section we first define the standard parameters and ETD from the literature and then go on to define their fractional analogs.
4.2.1 Existing parameters
Inspired by notation from [SG04], we use the splitting parameter
Some intuition behind this definition is that if a learner maintains the set of concepts consistent with the answers seen so far, then whenever , there is a query such that, regardless of the answer received, at least a fraction of the concepts in are eliminated.
The definition of can equivalently be viewed distributionally: for each nontrivial subclass , place the uniform distribution on the concepts in and zero mass on concepts outside . Then
We will also use the density parameter of Bshouty and Makhoul [BM18, Equation (9)], defined by
We first observe that is asymptotically equivalent to .
Proposition 4.3. For every concept class , .
Proof. Writing , we have
The claim follows from for .
For , a set is a specifying set for with respect to if at most one concept in agrees with on every coordinate in . The extended teaching dimension of with respect to is defined as
Equivalently, a specifying set can be represented by weights , where if coordinate is included in the set. Thus,
The extended teaching dimension of is . The following proposition is thus immediate from Proposition 4.3 and the observation that [BM18, Lemma 6].
Proposition 4.4. For all concept classes , we have .
4.2.2 Fractional measures
We now introduce fractional analogues of and ETD. In the distributional formulation of from Equation (21), the distribution is uniform on a nontrivial subclass , and hence every concept has probability at most 1/2. We generalize this by allowing an arbitrary distribution on subject to the same condition that no single concept has probability greater than 1/2. Similarly, in the formulation of ETD from Equation (22), a specifying set is represented by weights on the coordinates; we generalize this by allowing arbitrary nonnegative weights. We show that these two fractional relaxations are equivalent up to constant factors.
Definition 4.5 (Fractional splitting parameter). Define
Thus, is the largest value such that for every distribution on with no atom of mass greater than 1/2, there is a query such that, regardless of the answer received, at least an fraction of the probability mass is eliminated.
Proposition 4.6. For every concept class , .
Proof. For every with , the uniform distribution on is feasible in the definition of . Hence .
Definition 4.7 (Fractional extended teaching dimension). For , define
Define fETD(C) := max_{h∈{0,1}^N} fETD(C, h).
Proposition 4.8. For every concept class , fETD( ) ETD( ).
Proof. Fix , and let be a minimum specifying set for with respect to . Set for and otherwise. If there is a concept in that agrees with on every coordinate in , choose it as ; otherwise choose arbitrarily from . Since is a specifying set, every differs from on at least one coordinate in , and hence . Thus the above weights form a feasible solution for fETD( ) of value . Therefore fETD( ) ETD( ), and taking the maximum over proves the claim.
We next show that these two fractional relaxations coincide up to a constant factor. More precisely, the reciprocal of and fETD( ) differ by at most a factor of two.
Lemma 4.9. For every concept class with ,
Proof. Fix , and define
where the minimum is over distributions on satisfying . For a fixed , choosing each to be the more likely bit at coordinate makes . Hence
We have therefore shown that . It remains to compare with for each fixed , which we do by proving the two required inequalities separately.
• We first show fETD(C, h) ≤ 1/βh. We have
(24)
where p ranges over distributions on [N], and ranges over feasible distributions on C. The second equality follows since the maximizing p may be taken to be a point mass, and the last equality follows from von Neumann's minimax theorem.
Fix a maximizing distribution , and let attain the two smallest values of , in increasing order. Since every feasible distribution satisfies for every , the minimizing must place probability exactly on each of and . By Equation (24),
Since attains the second-smallest value, it follows that for every . Choosing and setting in Definition 4.7 therefore gives a feasible solution for fETD() of total weight . Thus fETD(.
• We next show that . Let and be an optimal solution to using the notation from Definition 4.7. In particular, we have
Fix any distribution that is feasible in the definition of in Equation (23). Since , we have . Thus,
where the first inequality follows from the constraints in Definition 4.7, which give for every , and the last inequality follows from . By Equation (25), the LHS above is a weighted average of the quantities with total weight . Hence there exists some such that . Since this holds for every distribution feasible in Equation (23), we obtain , or equivalently .
Thus for every . Taking the maximum over , and using , proves the claim.
The results in Propositions 4.6, 4.8, and Lemma 4.9 are summarized in Theorem 4.10 below.
Theorem 4.10. For all concept classes ,
4.2.3 Bounds in terms of fractional measures
We now relate these fractional parameters to the query complexity of exact learning. We first show that fETD lower bounds quantum query complexity quadratically.
Theorem 4.11. For every concept class C,
Proof. Let be a distribution attaining the minimum in the definition of (Definition 4.5). Thus for every , and
Consider the matrix whose rows and columns are indexed by , defined by
Let be given by . Since ,
Since is a real symmetric matrix, we have .
Fix , and let denote the matrix with -entry equal to 1 iff . Order the concepts so that those in come first and those in come second. Since exactly when , we can write
where for and for . Since is symmetric, its operator norm is by Equation (26). Therefore, by the positive-weight adversary bound [Amb02],
We next show that fETD also gives a randomized upper bound. The proof is inspired by the entropy-based argument of Arunachalam et al. [ACL 21], but replaces their use of the nonnegative adversary bound by the fractional extended teaching dimension.
Theorem 4.12. For every concept class ,
Proof. We use Yao’s minimax principle. Fix an arbitrary distribution on . We will construct a deterministic decision tree that has error at most under and expected depth at most
Truncating this tree after 6d queries and outputting an arbitrary concept if the tree has not already stopped gives a deterministic tree of depth 6d. By Markov's inequality,
where T is a random variable denoting the depth of the original tree on an input drawn from . Hence the truncated deterministic decision tree has error at most under the input distribution . By Yao's minimax principle, it therefore suffices to prove the stated bound on the expected depth of the tree constructed below.
The construction of the tree is straightforward. At a node , let denote the distribution on obtained by conditioning on the transcript leading to . If there exists a with , the tree stops and outputs . At every leaf , the tree outputs a concept satisfying . Hence, conditioned on reaching , the error probability is at most . Averaging over the leaves, the overall error of the tree under is at most as required. At an internal node, query a coordinate
That is, is a coordinate whose query guarantees the largest possible decrease in the posterior mass of the remaining concepts, regardless of the answer received. The remainder of the proof analyzes the expected depth of this tree.
Fix an arbitrary non-leaf node , and define by choosing, for each , a bit satisfying . In particular, this means
Let and attain fETD( ) (see Definition 4.7). Since is a non-leaf node, . Taking the -weighted sum of the minority masses, we obtain
(29)
where the first equality follows from Equation (28), the second equality is obtained by changing the order of summation, the first inequality follows from the defining constraints of fETD(C, h) together with the nonnegativity of the weights (and hence nonnegativity of the second term on the second line), and the final equality uses that is a distribution on C. The last inequality follows since which holds since is a non-leaf node.
Since , Equation (29) implies existence of such that
By the definition of in Equation (27), we therefore have
We now analyze the entropy decrease caused by the query at a non-leaf node . Let denote the random concept distributed according to , and let be the answer to the query at . Then the expected posterior entropy after the query is , and hence the expected entropy decrease is
where the equality uses that is a deterministic function of since the tree is deterministic. Let . Then is a Bernoulli random variable with probabilities and , and hence . By Equation (30), we have . Since binary entropy is increasing on and since for all ,
Let be the random variable denoting the depth at which the tree stops on a random concept . For , let denote the transcript after the first queries, and define
Let
be the lower bound from Equation (31) on the expected entropy decrease at every non-leaf node.
Fix and condition on a particular value . If is a transcript that leads to a leaf, then no further query is made and hence , so the entropy decrease is 0. If is a transcript that leads to an internal node, then the tree makes a query at this node, and by Equation (31) the expected entropy decrease from this query, conditioned on , is at least . Thus, for every possible transcript ,
Averaging over all possible values of and recalling the definition of from Equation (32), we therefore obtain
Summing over , we obtain
The last equality uses the standard identity for every nonnegative integer-valued random variable . Plugging back in the value of from Equation (33), we have
which is precisely the expected-depth bound required at the beginning of the proof.
Lemma 4.9, Theorems 4.11 and 4.12 immediately yield Theorem 1.6.
References
[ACL 21] Srinivasan Arunachalam, Sourav Chakraborty, Troy Lee, Manaswi Paraashar, and Ronald de Wolf. Two new results about quantum exact learning. Quantum, 5:587, 2021.
[AdW17] Srinivasan Arunachalam and Ronald de Wolf. Guest column: A survey of quantum learning theory. ACM Sigact News, 48(2):41–67, 2017.
[AIK 04] Andris Ambainis, Kazuo Iwama, Akinori Kawachi, Hiroyuki Masuda, Raymond H Putra, and Shigeru Yamashita. Quantum identification of boolean oracles. In Annual Symposium on Theoretical Aspects of Computer Science, pages 105–116. Springer, 2004.
[Amb02] Andris Ambainis. Quantum lower bounds by quantum arguments. Journal of Computer and System Sciences, 64(4):750–767, 2002.
[Ang88] Dana Angluin. Queries and concept learning. Machine Learning, 2:319–342, 1988.
[AS05] Alp Atici and Rocco A Servedio. Improved bounds on quantum learning algorithms. Quantum Information Processing, 4(5):355–386, 2005.
[BBBV97] Charles H Bennett, Ethan Bernstein, Gilles Brassard, and Umesh Vazirani. Strengths and weaknesses of quantum computing. SIAM journal on Computing, 26(5):1510–1523, 1997.
[BCG 96] Nader H. Bshouty, Richard Cleve, Ricard Gavaldà, Sampath Kannan, and Christino Tamon. Oracles and queries that are sufficient for exact learning. Journal of Computer and System Sciences, 52(3):421–433, 1996.
[BCG02] José L. Balcázar, Jorge Castro, and David Guijarro. A new abstract combinatorial dimension for exact learning via queries. Journal of Computer and System Sciences, 64(1):2–21, 2002.
[BCKT94] Nader H Bshouty, Richard Cleve, Sampath Kannan, and Christino Tamon. Oracles and queries that are sufficient for exact learning. In Proceedings of the seventh annual conference on Computational learning theory, pages 130–139, 1994.
[Bel15] Aleksandrs Belovs. Quantum algorithms for learning symmetric juntas via the adversary bound. computational complexity, 24(2):255–293, 2015.
[BH19] Nader H. Bshouty and Catherine A. Haddad-Zaknoon. Adaptive exact learning of decision trees from membership queries. In Algorithmic Learning Theory, ALT, volume 98 of Proceedings of Machine Learning Research, pages 207–234. PMLR, 2019.
[BHMT02] Gilles Brassard, Peter Høyer, Michele Mosca, and Alain Tapp. Quantum amplitude amplification and estimation. In Quantum Computation and Information, volume 305 of Contemporary Mathematics, pages 53–74. American Mathematical Society, 2002.
[BM18] Nader H. Bshouty and Waseem Makhoul. On polynomial time constructions of minimum height decision tree. In 29th International Symposium on Algorithms and Computation, ISAAC, volume 123 of LIPIcs, pages 34:1–34:12, 2018.
[Bsh13] Nader H. Bshouty. Exact learning from membership queries: Some techniques, results and new directions. In Algorithmic Learning Theory, volume 8139 of Lecture Notes in Computer Science, pages 33–52. Springer, 2013.
[Bsh18] Nader H. Bshouty. Exact learning from an honest teacher that answers membership queries. Theoretical Computer Science, 733:4–43, 2018.
[Bsh25] Nader H. Bshouty. On exact learning of d-monotone functions. In Algorithms and Complexity - 14th International Conference, CIAC, volume 15679 of Lecture Notes in Computer Science, pages 34–50. Springer, 2025.
[BV97] Ethan Bernstein and Umesh Vazirani. Quantum complexity theory. SIAM Journal on computing, 26(5):1411–1473, 1997.
[CF20] Hunter Chase and James Freitag. Bounds in query learning. In Conference on Learning Theory, pages 1142–1160. PMLR, 2020.
[Gro96] Lov K Grover. A fast quantum mechanical algorithm for database search. In Proceedings of the twenty-eighth annual ACM symposium on Theory of computing, pages 212–219, 1996.
[GSS16] Justin Gilmer, Michael E. Saks, and Srikanth Srinivasan. Composition limits and separating examples for some boolean function complexity measures. Comb., 36(3):265–311, 2016.
[Han24] Steve Hanneke. The star number and eluder dimension: Elementary observations about the dimensions of disagreement. In Proceedings of the 37th Conference on Learning Theory, volume 247 of Proceedings of Machine Learning Research, pages 2308–2359. PMLR, 2024.
[Heg95] Tibor Hegedüs. Generalized teaching dimensions and the query complexity of learning. In Proceedings of the eighth annual conference on Computational learning theory, pages 108–117, 1995.
[HKLM20] Max Hopkins, Daniel Kane, Shachar Lovett, and Gaurav Mahajan. Point location and active learning: Learning halfspaces almost optimally. In 2020 IEEE 61st Annual Symposium on Foundations of Computer Science (FOCS), pages 1034–1044. IEEE, 2020.
[Kot14] Robin Kothari. An optimal quantum algorithm for the oracle identification problem. In 31st International Symposium on Theoretical Aspects of Computer Science, STACS, volume 25 of LIPIcs, pages 482–493. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2014.
[LMR 11] Troy Lee, Rajat Mittal, Ben W Reichardt, Robert Špalek, and Mario Szegedy. Quantum query complexity of state conversion. In 2011 IEEE 52nd Annual Symposium on Foundations of Computer Science, pages 344–353. IEEE, 2011.
[Mon07] Ashley Montanaro. Structure, randomness and complexity in quantum computation. PhD thesis, University of Bristol, 2007.
[Mos82] Mikhail Yuryevich Moshkov. On conditional tests. In Doklady Akademii Nauk, volume 265, pages 550–552. Russian Academy of Sciences, 1982.
[SG04] Rocco A Servedio and Steven J Gortler. Equivalences and separations between quantum and classical learnability. SIAM Journal on Computing, 33(5):1067–1092, 2004.
[Tal13] Avishay Tal. Properties and applications of boolean function composition. In Innovations in Theoretical Computer Science, ITCS, pages 441–454. ACM, 2013.
[Yao77] Andrew Chi-Chin Yao. Probabilistic computations: Toward a unified measure of complexity. In 18th Annual Symposium on Foundations of Computer Science (SFCS 1977), pages 222–227. IEEE, 1977.
[Yun15] Aaram Yun. Generic hardness of the multiple discrete logarithm problem. In Annual International Conference on the Theory and Applications of Cryptographic Techniques, pages 817–836. Springer, 2015.