Constructive derandomization of query algorithms

Guy Blanc, Jane Lange, Li-Yang TanarXiv 2019

Introduction

In the study of computational complexity, the query model serves as a fundamental framework for understanding the power of algorithms. In this model, the complexity of an algorithm is measured by the number of bits it reads from its input. A central question in this field is the relationship between randomness and determinism: can every randomized query algorithm be replaced by a deterministic one without a significant loss in efficiency?

While landmark results like Yao’s Lemma and Nisan’s Theorem have long established that such deterministic counterparts exist, their original proofs were non-constructive. They relied on "averaging arguments" that prove the existence of a deterministic algorithm but provide no efficient way to find it. This paper bridges the gap between existential and constructive derandomization, providing the first efficient "meta-algorithms" to automatically transform randomized query algorithms into deterministic ones.

The Challenge of Constructivity

The difficulty in derandomization lies in the search space. To find a deterministic decision tree that mimics a randomized one, a naive search would involve checking an astronomical number of possible trees. This paper addresses two primary pillars of the field:

  1. Yao’s Lemma: This states that for any randomized algorithm, there exists a deterministic one that performs nearly as well on average.
  2. Nisan’s Theorem: This proves that for "total" boolean functions, any randomized algorithm with query complexity $q$ can be replaced by a deterministic one with $O(q^3)$ queries.

By "constructivizing" these results, the authors move beyond mere existence proofs to provide explicit algorithmic procedures for building these deterministic trees efficiently.

Methodological Innovations

The authors utilize a suite of sophisticated tools from the analysis of boolean functions and computational complexity to navigate the search space:

Fourier Analysis and Parseval’s Identity

To evaluate the quality of a candidate deterministic algorithm, the authors represent decision trees as polynomials. By applying Fourier analysis, specifically Parseval’s Identity, they can calculate the "distance" or error between a randomized algorithm and a deterministic candidate in polynomial time.

Pseudorandom Generators (PRGs) and Samplers

To make the search space manageable, the authors avoid exhaustive searches. Instead, they use PRGs and pairwise independent samplers to generate a "shortlist" of candidate algorithms. This shortlist is mathematically guaranteed to contain a deterministic algorithm that meets the required performance bounds.

The FIND Algorithm and Recursive Backtracking

For achieving "instance-optimality"—finding the best possible tree for a specific problem rather than just hitting worst-case bounds—the authors develop the FIND algorithm. This framework uses recursive backtracking to prune the space of possible decision trees, efficiently identifying the optimal structure.

Generalized OSSS Inequality

A key theoretical contribution is a new version of the O’Donnell-Saks-Schramm-Servedio (OSSS) inequality. This theorem implies that every randomized decision tree possesses at least one "influential" input variable. Identifying and querying these influential variables allows for the creation of an online derandomizer, which determines the next bit to query on-the-fly based on the input $x$.

Key Results

The paper establishes several breakthrough results in query complexity:

  • Constructive Yao’s Lemma: The authors provide an algorithm that converts a $q$-query randomized algorithm into a deterministic $O(q/\epsilon)$-query version. The runtime is $poly(N) \cdot 2^{O(q/\epsilon)}$, which is near-optimal relative to the description length $N$.
  • Constructive Nisan’s Theorem: The work provides a method to deterministically find the $O(q^3)$ deterministic tree guaranteed by Nisan’s original theorem.
  • Online Derandomization: One of the most practical insights is that if one only needs the output for a specific input $x$, the entire deterministic tree does not need to be built. Instead, the algorithm can construct only the specific path $x$ follows, significantly saving on computational resources.
  • Turing Machine Implications: The results extend beyond the query model. The authors prove that languages decided by randomized sublinear-time Turing machines can be decided deterministically, provided a quasipolynomial-time preprocessing step is allowed.

Limitations and Future Outlook

Despite these advances, challenges remain. The runtime of these meta-algorithms scales exponentially with the number of queries ($2^q$). While efficient when $q$ is small relative to the input size, it remains computationally taxing for algorithms that query a large portion of the input.

Furthermore, the authors present different algorithms optimized for different goals (e.g., speed vs. instance-optimality). A "unified" algorithm that combines these strengths remains an open problem. Finally, while this work addresses classical algorithms, a full constructive analogue for quantum query algorithms—"constructive dequantization"—is a promising frontier for future research.

Summary updated

BibTeX
@misc{blanc2019constructive,
  author = {Guy Blanc and Jane Lange and Li-Yang Tan},
  title = {{Constructive derandomization of query algorithms}},
  year = {2019},
  eprint = {1912.03042},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1912.03042},
}
Figure