alphaFeedback

WorksComputer Science

Composition Theorem for Randomized Query Complexity

AI contributions
Not recorded for this paper
View details

Abstract

For bounded-error randomized query complexity, we resolve the composition conjecture up to logarithmic factors. The general upper bound R(f∘g)=O ⁣(R(f)R(g)log⁡(R(f)+1))R(f\circ g) = O\!\left(R(f)R(g)\log(R(f)+1)\right) was already known. Although Meiburg recently disproved constant-factor multiplicative composition for total Boolean functions, the conjecture allowing polylogarithmic losses remained open. We settle this question by proving that, for all (possibly partial) Boolean functions ff and gg, R(f∘g)=Ω ⁣(R(f)R(g)log⁡(n+1)), R(f\circ g) = Ω\!\left(\frac{R(f)R(g)}{\log(n+1)}\right), where nn is the input size for ff.

Introduction

A longstanding problem in Boolean function complexity is to determine how the complexity of a block composition relates to the complexities of its constituent functions. For total Boolean functions, tight composition theorems are known for deterministic query complexity and polynomial degree [11, 14, 16], as well as bounded-error quantum query complexity [9, 13]. Recently, [12] proved a composition theorem for approximate degree and showed that constant-factor multiplicative composition fails for exact quantum query complexity. In a latest development, [10] showed that constant-factor multiplicative composition fails for randomized query complexity even for total Boolean functions. Nevertheless, composition for randomized query complexity up to polylogarithmic factors remained open [3, 4, 6]. In this work, we resolve this question by establishing a composition lower bound with a logarithmic loss for all (possibly partial) Boolean functions.

Decision trees have been a fundamental model in computational complexity and have been studied extensively in the form of deterministic, randomized and quantum settings. Randomized query complexity of a Boolean function ff is the minimum worst-case number of queries required by a randomized decision tree to compute ff. A long-standing open question has been

Question 1. For all total Boolean functions f,gf, g,

R(f∘g)=Ω(R(f)R(g))?\mathrm{R}(f \circ g) = \Omega(\mathrm{R}(f)\mathrm{R}(g))?

Recently, [10] showed that this lower bound does not hold true by giving a counter-example. However, the same bound with polylogarithmic factors remained open for total Boolean functions.

Question 2. For all total Boolean functions f,gf, g,

R(f∘g)=Ω~(R(f~)R(g))?\mathrm{R}(f \circ g) = \widetilde{\Omega}(\mathrm{R}(\widetilde{f})\mathrm{R}(g))?

In the past, several papers have made progress towards answering whether composition of randomized query complexity holds by either showing lower bounds in terms of new related measures like noisy randomized query complexity, linearized randomized complexity, max-conflict complexity and randomized sabotage complexity or by showing the composition holds for some special class of families. [15] introduced a measure called randomized sabotage complexity, denoted by RS(f)\mathrm{RS}(f) and showed that RS(f)=O(R(f))\mathrm{RS}(f) = O(\mathrm{R}(f)) and R(f∘g)=Ω(R(f)RS(g))\mathrm{R}(f \circ g) = \Omega(\mathrm{R}(f)\mathrm{RS}(g)). They also asked if R(f)=Θ(RS(f))\mathrm{R}(f) = \Theta(\mathrm{RS}(f)) for all total Boolean functions which would resolve the open conjecture of composition of randomized query complexity. Later, [7] introduced a measure called max-conflict complexity, denoted by χ‾\overline{\chi} and showed that χ‾(g)∈Ω(R1/3(g))\overline{\chi}(g) \in\Omega(\sqrt{\mathrm{R}_{1/3}(g)}) for every partial Boolean function gg and R1/3(f∘g)=Ω(R4/9(f)χ‾(g))\mathrm{R}_{1/3}(f \circ g) = \Omega(\mathrm{R}_{4/9}(f)\overline{\chi}(g)) and χ‾(g)≥RS(g)\overline{\chi}(g) \geq\mathrm{RS}(g). They also proved a relation R1/3(f∘g)=Ω(R4/9(f)R1/3(g))\mathrm{R}_{1/3}(f \circ g) = \Omega(\mathrm{R}_{4/9}(f)\sqrt{\mathrm{R}_{1/3}(g)}). [3] introduced noisy oracle model and a measure called noisy randomized query complexity, denoted by noisyR\mathrm{noisyR} and showed that for all Boolean functions ff, noisyR(f)≤R(f)\mathrm{noisyR}(f) \leq\mathrm{R}(f) and R(f∘g)=Ω(noisyR(f)R(g))\mathrm{R}(f \circ g) = \Omega(\mathrm{noisyR}(f)\mathrm{R}(g)). They also gave a counter-example to noisyR(f)=Ω(R(f))\mathrm{noisyR}(f) = \Omega(\mathrm{R}(f)) and equivalently for R(f∘g)=Ω(R(f)R(g))\mathrm{R}(f \circ g) = \Omega(\mathrm{R}(f)\mathrm{R}(g)) using a partial function and thus refuted the constant-factor composition for partial Boolean functions. But the question remained open for the same bound with logarithmic factors. They conjectured that the following holds true

noisyR(f)=Ω(R(f)log⁡(n)).\mathrm{noisyR}(f) = \Omega\left(\frac{\mathrm{R}(f)}{\log(n)}\right).

Thus, this conjecture is equivalent to the following question

Question 3. For all (possibly partial) Boolean functions f,gf, g,

R(f∘g)=Ω(R(f)R(g)log⁡(n))?\mathrm{R}(f \circ g) = \Omega\left(\frac{\mathrm{R}(f)\mathrm{R}(g)}{\log(n)}\right)?

where nn is the input size of ff.

Later, [6] showed that noisyR(f)=Θ(R(f))\mathrm{noisyR}(f) = \Theta(\mathrm{R}(f)) for all Boolean functions with R(f)=Θ(n)\mathrm{R}(f) = \Theta(n). They also showed that if R\mathrm{R} composes with respect to an outer function, then noisyR\mathrm{noisyR} also composes with respect to the same outer functions. Another paper [4] introduced a measure called linearized randomized complexity, denoted as LR, which is the largest possible measure satisfying R(f∘g)=Ω(R(f)LR(g))R(f \circ g) = \Omega(R(f)LR(g)) for all partial Boolean functions f,gf,g.

In this work, we show that bounded-error randomized query complexity composes multiplicatively with logarithmic factors. In particular, we establish that for every partial Boolean function, noisyR⁡(f)=Ω~(R(f))\operatorname{noisyR}(f) = \widetilde{\Omega}(R(f)). The main result is stated below:

Result 1 (Theorem 15, Corollary 2). For a non-constant partial Boolean function f:D⊆{0,1}n→{0,1}f : D \subseteq\{0,1\}^{n} \to\{0,1\},

R(f)≤Clog⁡(n+1)noisyR⁡(f).R(f) \le C\log(n+1)\operatorname{noisyR}(f).

Consequently, for all partial Boolean functions f:D⊆{0,1}n→{0,1}f : D \subseteq\{0,1\}^{n} \to\{0,1\} and g:D′⊆{0,1}m→{0,1}g : D' \subseteq\{0,1\}^{m} \to\{0,1\},

R(f∘g)=Ω(R(f)R(g)log⁡(n+1)).R(f \circ g) = \Omega\left(\frac{R(f)R(g)}{\log(n+1)}\right).

AI Disclosure. We used ChatGPT 6 Astra to explore research directions, identify potential errors in arguments, simplify proof strategies, and improve the exposition. Our use of AI involved sustained back-and-forth discussions over several weeks. We explored numerous approaches drawn from the literature, including recent work, repeatedly refined our arguments, and pursued both proofs and potential counterexamples. Our initial attempts to establish a randomized composition result were consistently unsuccessful. Following the appearance of recent work on randomized composition [10], we asked ChatGPT 6 Astra to prove a weaker bound allowing a logarithmic loss. It succeeded in deriving this bound, leading to the randomized composition result presented here. The authors have rewritten the proof and take full responsibility for the mathematical content and final presentation.

Acknowledgment. We thank Srinivasan Arunachalam for helpful discussions.

Technical Overview

Noisy randomized model was introduced in [3] and they showed that for all partial Boolean functions ff and gg,

noisyR⁡(f)≤R(f),R(f∘g)=Ω(noisyR⁡(f)R(g)).\operatorname{noisyR}(f) \le R(f), \qquad R(f \circ g) = \Omega(\operatorname{noisyR}(f)R(g)).

The paper explicitly mentioned the following conjecture: for all (possibly partial) Boolean function ff,

noisyR⁡(f)=Ω(R(f)log⁡(n+1))?\operatorname{noisyR}(f) = \Omega\left(\frac{R(f)}{\log(n+1)}\right)?

Therefore, to prove the bound in Question 2, it suffices to show that the above relation holds true. This paper heavily builds on the concepts used in [2, 3]. Let us first recap the noisy oracle model. Unlike the ordinary query model which reveals the queried bit exactly, in this noisy oracle model, a query with bias γ\gamma returns the correct bit with probability (1+γ)/2(1+\gamma)/2 and costs γ2\gamma^{2}. The measure noisyR⁡\operatorname{noisyR} captures the query complexity of such model. Let A\mathcal{A} be an arbitrary noisy randomized decision tree that computes the given function ff with error at most 1/31/3 on every promised input x∈Dx \in D where DD is the domain of ff. Let TT be the stopping time of A\mathcal{A}. At step t≤Tt \le T, A\mathcal{A} adaptively chooses a coordinate iti_t and a query strength γt∈[0,1]\gamma_t \in[0,1]. Since the cost of the query is γt2\gamma_t^{2}, the total noisy cost of the execution is ∑t=1Tγt2\sum_{t=1}^{T}\gamma_t^{2}. The cost of a noisy randomized decision tree on an input xx is given by cost⁡(A,x)=E[∑t=1Tγt2]\operatorname{cost}(\mathcal{A},x)=\mathbb{E}\left[\sum_{t=1}^{T}\gamma_t^{2}\right] and then the cost of A\mathcal{A} is max⁡x∈D{cost⁡(A,x)}\max_{x\in D}\{\operatorname{cost}(\mathcal{A},x)\}. Taking an infimum over the cost of all such noisy decision trees gives us noisyR⁡(f)\operatorname{noisyR}(f). Thus, in order to prove the desired lower bound, we choose a hard distribution μ\mu such that for every noisy decision tree A\mathcal{A},

EX∼μ[cost⁡(A,X)]≥Ω(R(f)log⁡(n+1)).\mathbb{E}_{X\sim\mu}[\operatorname{cost}(\mathcal{A},X)] \ge\Omega\left(\frac{R(f)}{\log(n+1)}\right).

This hard distribution μ\mu is supplied by the minimax theorem of [2]. In particular, it is balanced, meaning Pr⁡X∼μ[f(X)=0]=Pr⁡X∼μ[f(X)=1]=1/2\Pr_{X\sim\mu}[f(X)=0]=\Pr_{X\sim\mu}[f(X)=1]=1/2 and for every ordinary randomized algorithm R\mathcal{R} with terminal transcript HH and number of exact queries QQ,

Eμ[β2]≤cR(f)Eμ[Q].\mathbb{E}_{\mu}[\beta^{2}] \le\frac{c}{R(f)}\mathbb{E}_{\mu}[Q].

where β\beta is the posterior label bias

β=E[2f(X)−1∣H].\beta= \mathbb{E}[2f(X)-1 \mid H].

We will keep a track of an arbitrary noisy decision tree at every posterior state after each query using a function that we call “potential”, labeled as WW. Building on top of the forecasting algorithm given in [2], we construct WW using auxiliary forecasting algorithms. Each such forecasting algorithm B\mathcal{B} gives a payoff which is the quantity below

Payoff⁡B=forecasting score−α⋅number of queries+entropy regularization.\operatorname{Payoff}_{\mathcal{B}} = \text{forecasting score} - \alpha\cdot\text{number of queries} + \text{entropy regularization}.

Entropy regularization is a standard way to replace a hard maximum by a smooth log-sum-exp expression [8]. The potential is defined as the supremum of this expected payoff over all such auxiliary exact-query forecasting algorithms. After handling the case R(f)≤2cR(f) \le2c separately, we particularly set this query charge term to be 2cR(f)\frac{2c}{R(f)} and the forecasting score to be the normalized Brier score. Note that this algorithm B\mathcal{B} is neither the same as an ordinary bounded-error randomized algorithm nor the noisy algorithm A\mathcal{A} that computes ff with an error 1/31/3. This is just an adaptive algorithm that may stop querying and output the best forecast from the information available to it. This algorithm follows a dynamic programming framework (see [1]), expressed by a Bellman recurrence: it may stop and give the optimal value or perform additional queries and incur the associated cost. This potential, when evaluated at the algorithm’s posterior state, is initially small under the chosen hard distribution μ\mu. The expected increase on each noisy query is bounded by O(αlog⁡(n+1))O(\alpha\log(n+1)) times noisy query’s cost and has a terminal expected value bounded below by a positive constant when the algorithm successfully terminates.

Let us look at the initial bound. Given a transcript, the best expected score is the squared posterior bias. The chosen hard distribution bounds this squared posterior bias of every auxiliary algorithm in terms of its expected number of queries averaged over all transcripts. In particular, it gives an upper bound of c/R(f)c/R(f) times expected query count. Choose a sufficiently large query charge, that is, α=2c/R(f)\alpha= 2c/R(f) compared to this best expected score. Moreover, the entropy term is also sufficiently small. This makes the initial potential small.

W(μ)≤1/100.W(\mu) \le1/100.

Let us now bound the expected potential increase by one noisy query. When a noisy algorithm queries a bit, the observed answer re-weights the current posterior according to the query strength γ\gamma. Considering this re-weighted path, the expected increase in potential is a symmetric difference. For weak queries, meaning γ≤1/2\gamma\le1/2, the first-order terms cancel and hence the bound on second derivative gives the dependence on γ2\gamma^2. For stronger queries, that is γ>1/2\gamma> 1/2, convexity and exact-query charge suffice. If γt\gamma_t is the strength of the query tt and μt−1\mu_{t-1} is the current posterior before the query, we get the following bound

E[W(μt)∣Ht−1]−W(μt−1)≤CB′αlog⁡(n+1)γt2.\mathbb{E}\left[W(\mu_t) \mid H_{t-1}\right] - W(\mu_{t-1}) \le C'_{\mathcal{B}}\alpha\log(n+1)\gamma_t^2.

Summing the one query bounds and telescoping over the finite computation gives us the following total bound.

E[W(μT)]−W(μ)≤CB′αlog⁡(n+1)E[∑t=1Tγt2].\mathbb{E}[W(\mu_T)] - W(\mu) \le C'_{\mathcal{B}}\alpha\log(n+1)\mathbb{E}\left[\sum_{t=1}^{T}\gamma_t^2\right].

Let us now consider the terminal potential. Since the noisy randomized algorithm computes ff within an error of 1/31/3, its terminal posterior has expected squared bias at least 1/91/9. Since the potential is at least the best score obtained by stopping immediately, its terminal expectation is also at least 1/91/9. If μT\mu_T is the posterior when the noisy algorithm A\mathcal{A} terminates, then using the success probability of A\mathcal{A}, we get,

E[W(μT)]≥19.\mathbb{E}[W(\mu_T)] \ge\frac{1}{9}.

This gives us a constant lower bound on the total potential increase. To achieve this, the expected total noisy cost has to be Ω(1/(αlog⁡(n+1)))\Omega(1/(\alpha\log(n+1))). Taking α=2c/R(f)\alpha= 2c/R(f) gives us the desired bound.

E[∑t=1Tγt2]=Ω(1αlog⁡(n+1)).\mathbb{E}\left[\sum_{t=1}^{T}\gamma_t^2\right] = \Omega\left(\frac{1}{\alpha\log(n+1)}\right).

Now let us look at the construction of WW. An auxiliary forecasting algorithm BB chooses a probability distribution php_h, depending on the history hh, over the set of actions which is ACT={∗,1,…,n}\mathrm{ACT}=\{\ast,1,\ldots,n\}. If it chooses ∗\ast, then it stops, otherwise for j∈[n]j\in[n], it queries xjx_j exactly and continues. We also use a separate entropy term which is the entropy of this action distribution multiplied by a sufficiently small constant times α/log⁡(n+1)\alpha/\log(n+1). This keeps the entropy term at each decision small compared with the query charge. For the forecasting score, normalized Brier score score⁡Br(y,z)=1−4(y−z)2\operatorname{score}_{Br}(y,z)=1-4(y-z)^2 is used.

References

  1. [1]Richard E. Bellman. Dynamic Programming. Princeton Landmarks in Mathematics and Physics. Princeton University Press, 2010.
  2. [2]Shalev Ben-David and Eric Blais. “A New Minimax Theorem for Randomized Algorithms”. In: J. ACM 70.6 (Nov. 2023). ISSN: 0004-5411. DOI: 10.1145/3626514.
  3. [3]Shalev Ben-David and Eric Blais. “A Tight Composition Theorem for the Randomized Query Complexity of Partial Functions: Extended Abstract”. In: 2020 IEEE 61st Annual Symposium on Foundations of Computer Science (FOCS). 2020, pp. 240–246. DOI: 10.1109/FOCS46700.2020.00031.
  4. [4]Shalev Ben-David, Eric Blais, Mika Göös, and Gilbert Maystre. “Randomised Composition and Small-Bias Minimax”. In: 2022 IEEE 63rd Annual Symposium on Foundations of Computer Science (FOCS). 2022, pp. 624–635. DOI: 10.1109/FOCS54457.2022.00065.
  5. [5]Stephen Boyd and Lieven Vandenberghe. Convex Optimization. Cambridge University Press, 2004.
  6. [6]Sourav Chakraborty, Chandrima Kayal, Rajat Mittal, Manaswi Paraashar, Swagato Sanyal, and Nitin Saurabh. “On the Composition of Randomized Query Complexity and Approximate Degree”. In: Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques (APPROX/RANDOM 2023). Ed. by Nicole Megow and Adam Smith. Vol. 275. Leibniz International Proceedings in Informatics (LIPIcs). Dagstuhl, Germany: Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2023, 63:1–63:23. ISBN: 978-3-95977-296-9. DOI: 10.4230/LIPIcs.APPROX/RANDOM.2023.63.arxiv.org/abs/2307.03900
  7. [7]Dmitry Gavinsky, Troy Lee, Miklos Santha, and Swagato Sanyal. “A Composition Theorem for Randomized Query Complexity via Max-Conflict Complexity”. In: 46th International Colloquium on Automata, Languages, and Programming (ICALP 2019). Ed. by Christel Baier, Ioannis Chatzigiannakis, Paola Flocchini, and Stefano Leonardi. Vol. 132. Leibniz International Proceedings in Informatics (LIPIcs). Dagstuhl, Germany: Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2019, 64:1–64:13. ISBN: 978-3-95977-109-2. DOI: 10.4230/LIPIcs.ICALP.2019.64.DOI
  8. [8]Matthieu Geist, Bruno Scherrer, and Olivier Pietquin. “A Theory of Regularized Markov Decision Processes”. In: Proceedings of the 36th International Conference on Machine Learning. Ed. by Kamalika Chaudhuri and Ruslan Salakhutdinov. Vol. 97. Proceedings of Machine Learning Research. PMLR, 2019, pp. 2160–2169.arxiv.org/abs/1901.11275
  9. [9]Troy Lee, Rajat Mittal, Ben W. Reichardt, Robert Spalek, and Mario Szegedy. “Quantum Query Complexity of State Conversion”. In: Proceedings of the 2011 IEEE 52nd Annual Symposium on Foundations of Computer Science. FOCS ’11. USA: IEEE Computer Society, 2011, pp. 344–353. ISBN: 9780769545714. DOI: 10.1109/FOCS.2011.75.DOI
  10. [10]Alexander Meiburg. No Perfect Randomized Composition. 2026. arXiv: 2610.31638.arxiv.org/abs/2610.31638
  11. [11]Ashley Montanaro. A composition theorem for decision tree complexity. 2013. eprint: 1302.4207.arxiv.org/abs/1302.4207
  12. [12]Samruddhi Pednekar and Supartha Podder. A General Composition Theorem for Approximate Degree. 2026. arXiv: 2609.30139.arxiv.org/abs/2609.30139
  13. [13]Ben W Reichardt. “Reflections for quantum query algorithms”. In: Proceedings of the Twenty-Second Annual ACM-SIAM Symposium on Discrete Algorithms. SIAM. 2011, pp. 560–569.
  14. [14]Petr Savický. “On determinism versus unambiguous nondeterminism for decision trees”. In: Electronic Colloquium on Computational Complexity (ECCC). Vol. 9. 2002.
  15. [15]Ben-David Shalev and Robin Kothari. “Randomized Query Complexity of Sabotaged and Composed Functions”. In: 43rd International Colloquium on Automata, Languages, and Programming (ICALP 2016). Ed. by Ioannis Chatzigiannakis, Michael Mitzenmacher, Yuval Rabani, and Davide Sangiorgi. Vol. 55. Leibniz International Proceedings in Informatics (LIPIcs). Dagstuhl, Germany: Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2016, 60:1–60:14. ISBN: 978-3-95977-013-2. DOI: 10.4230/LIPIcs.ICALP.2016.60.DOI
  16. [16]Avishay Tal. “Properties and applications of boolean function composition”. In: Proceedings of the 4th Conference on Innovations in Theoretical Computer Science. ITCS ’13. Berkeley, California, USA: Association for Computing Machinery, 2013, pp. 441–454. ISBN: 9781450318594. DOI: 10.1145/2422436.2422485.DOI

Paper details

vlnc:W_uzbf5a4c
v1 · latestHistory (1)

published · Fresh — added to the Hub within the last 30 days

added ·

Usage

views · 0

downloads · 0

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

CC BY 4.0

Original source

  • Computer Science

Not recorded for this paper · View statement →

Looking for related papers…
Contents