Publicly-Verifiable Certificates for Statistical Algorithms

Michael Ngo1
MIT
mingo@mit.edu

,

Michael P. Kim2
Cornell University
mpk@cs.cornell.edu


Abstract

Following Goldwasser, Rothblum, Shafer, and Yehudayoff, who defined a framework for interactive proofs of learning [1], we initiate the study of non-interactive proofs of learning. We define and study a new notion: Publicly-Verifiable Certificates of Statistical Validity (pvCSVs), which allow for public, distributionally-robust certification that the result of a learning algorithm is valid. In a pvCSV, a learner publishes a hypothesis \(h\) and corresponding certificate \(\pi\); then, any user, who holds a user-specific distribution, can read the pair \((h,\pi)\) and determine efficiently whether the hypothesis is valid according to the user-specific distribution.

We construct pvCSVs in the context of Adaptive Statistical Query (SQ) Algorithms. To certify SQ algorithms that makes \(k\) adaptive queries, we construct pvCSVs where the sample complexity scales with \(O(\log k)\), whereas the sample complexity of the best learning algorithms scale with \(\tilde{O}(\sqrt{k})\). More generally, we study proof systems for learning in the SQ model, demonstrating the model’s strengths as well as its limitations.

1 Introduction↩︎

Training large-scale AI models using statistical machine learning is notoriously costly. Due to the resource demands of running ML algorithms, AI users rely upon pre-trained models from a handful of tech companies. These companies hold enough data—so they claim—to train general-purpose models that are effective across a wide range of settings. In this setup, however, users receive no guarantee that the AI models were trained appropriately. If users fear that the training data does not adequately reflect their setting, they must investigate, for themselves, whether the model produces errors (or worse, harms) within their application.

Inspired by these issues, Goldwasser, Shafer, Rothblum, and Yehudayoff [1] introduced and studied the problem of delegating machine learning, through the PAC Verification framework. Building on the classic model of interactive proofs [2], [3], PAC Verification formalizes the problem: a statistically-limited user (the verifier) interacts with a powerful, but untrusted learner (the prover), who aims to convince the user that a given model (the hypothesis) is valid. As in cryptographic proof systems, PAC Verification requires that protocols for delegating learning satisfy formal notions of completeness and soundness. To date, results in the area focus on developing protocols for verifying Agnostic PAC Learning [4][6] for specific concept classes [1], [7], [8]. As a notable exception, Mutreja and Shafer [7] also introduce a notion of delegation of Statistical Query (SQ) algorithms for loss minimization.

An essential element of prior works on delegation of learning is interaction. To establish whether a given hypothesis is valid, the prover and verifier exchange a sequence of messages in an online fashion, after which the verifier chooses to accept or reject the prover’s hypothesis. As a concrete example, the original work on PAC verification shows how to delegate the Goldreich-Levin algorithm [9] (which requires point query access to the unknown function), when the verifier only has i.i.d.labeled samples. In this proof system, the verifier uses its interactions with the prover to label the point queries, while cleverly hiding some points whose labels are known to the verifier to ensure soundness. The early works on PAC verification have demonstrated that interactive proof systems provide a powerful tool for efficiently checking the results of an expensive ML computation.3

Interaction, however, also presents challenges. Most immediately, running an interactive proof requires the verifier and prover to be online at the same time to execute the protocol. Additionally, each execution of the interactive proof may require the prover to answer execution-specific challenges, including re-running the original ML computation. Given the immense cost of training ML models in the first place, providers may be unwilling to participate in the interactive proof more than once (if at all). In such a setting, where the interactive proof is executed once—between the learner and a single verifier—many users would have to place their trust in a single entity. Even if users agree that the verifier is generally trustworthy, as before, individual users may worry that the verifier’s data does not represent their setting and applications.

1.0.0.1 This Work.

We initiate the study of non-interactive proofs of learning. Our study leads us to a new notion: Publicly-Verifiable Certificates of Statistical Validity (pvCSVs). pvCSVs allow for public, distributionally-robust certification that the result of a learning algorithm is valid. In particular, a pvCSV allows a learner to publish a hypothesis \(h\) and certificate of validity \(\pi\) that allows any downstream user to subsequently verify that the hypothesis is statistically valid on a user-specified distribution.

We can understand the semantics of a pvCSV by imagining two worlds.

  • In the first world, a user collects a huge amount of data from a distribution \(\D\), relevant to their setting and application. Then, they correctly execute a statistical learning algorithm \(\A\) on top of this data to obtain a hypothesis \(h_\mathrm{ideal}\).

  • In the second world, a centralized, well-resourced learner publishes a pvCSV \((h_\mathrm{real},\pi)\) for the algorithm \(\A\); the same user from before collects a much more modest amount of data from \(\D\), then reads and verifies \((h_\mathrm{real},\pi)\), using the small amount of user-specific data.

A pvCSV guarantees that if \((h_\mathrm{real},\pi)\) passes verification, the two worlds produced equally-valid hypotheses \(h_\mathrm{ideal} \approx_{\D,\A} h_\mathrm{real}\) according to the user-specific data distribution and the learning algorithm \(\A\). This guarantee must hold even though the user has no knowledge of the data distribution used to produce the pvCSV. As such, pvCSVs resolve the key shortcomings of interactive proofs for delegation of learning: the learner can execute the expensive training algorithm once and (with little overhead) generate a corresponding pvCSV certificate that any user can subsequently verify.

1.0.0.2 Certification of Adaptive Data Analysis.

We make our study of pvCSVs concrete by revisiting the question of Adaptive Data Analysis [10] in the Statistical Query Model [11]. Many tools for learning from data—including workhorse ML algorithms like gradient descent—can be framed as adaptive statistical algorithms. In such an algorithm, the learner is allowed to ask a sequence of queries of the data distribution (e.g., What is the gradient of the expected loss over \(\D\)?), where each query may depend on the results from prior queries.

Formally, we consider learning algorithms \(\A\) that interact with a Statistical Query (SQ) oracle \(\O\): given a tolerance \(\tau\) and a query \(q\), \(\O(q)\) responds with a \(\tau\)-accurate estimate of the expectation of the predicate \(q\) over the data distribution. Critical to our investigation, the algorithm may select its sequence of queries adaptively based on the prior responses. That is, the algorithm’s choice of the \(i\)-th query \(q_i\) may depend arbitrarily on prior queries \(q_1,\ldots,q_{i-1}\) and responses \(\O(q_1),\ldots,\O(q_{i-1})\), (e.g., What is the gradient at the \(i\)-th iterate, after taking \(i-1\) gradient descent steps?).

While the paradigm of adaptive data analysis is a versatile and powerful tool for learning, such algorithms are known to be statistically expensive. About a decade ago, [10] identified adaptivity as a key issue in statistical algorithms. To maintain the statistical validity of an adaptive analysis requires the learner to either resample fresh data to support every new query, or to employ sophisticated (differentially-private) algorithms for answering queries in a way to prevent overfitting to the data set [10], [12][18]. To answer \(k\) adaptively selected statistical queries, the best algorithms use a number of samples scaling (roughly) with \(\sqrt{k}\), and in fact, this dependence is essentially tight [19], [20].

In other words, no matter what techniques are employed, adaptive statistical algorithms require exponentially more data than non-adaptive (batch) statistical analyses of similar size. In this work, we ask when we can certify the results of adaptive data analysis more efficiently than learning.

1.1 Our Contributions↩︎

We develop proof systems for delegating arbitrarily-adaptive statistical algorithms where the verifier requires samples scaling only with the non-adaptive complexity. In doing so, we realize an exponential gap, between the sample complexity required for executing SQ algorithms versus verifying them. Moving beyond prior work on interactive proofs for learning, we build novel non-interactive proof systems—namely, publicly-verifiable Certificates of Statistical Validity—that enable a new form of distributionally-robust validation of statistical learning. Along the way, we develop a number of extensions to earlier models of proof systems for delegation of learning.

1.1.0.1 Publicly-Verifiable Certificates of Statistical Validity.

In Section 3, we introduce our primary contribution: a new notion of proof that allows for public, distributionally-robust certification of learning. A publicly-verifiable Certificate of Statistical Validity (pvCSV) is a non-interactive proof system that allows any verifier to certify the results of a statistical computation with respect to the verifier’s own distribution. A pvCSV allows a single, well-resourced learner—the prover—to publish the results of a statistical algorithm in a way that can be checked efficiently (with less resources) by any downstream verifier; in particular, the verifiers need not hold the same distribution as the prover. Instead, the proof system guarantees a universal soundness property such that if the verifier accepts the proof, then the results of the statistical algorithm are valid on the verifier’s distribution—even if the algorithm was executed using samples from a different distribution.

A is a non-interactive proof system, where a prover \(P\) with distribution \(\D_P\) publishes a hypothesis \(h\) paired with certificate \(\pi\). Any verifier \(V\) with distribution \(\D_V\) can read the pair \((h,\pi)\) and accept or reject where the following guarantees hold with high probability.

: if \(\D_P = \D_V\), there exists an honest prover pair \((h,\pi)\) such that \(h\) is valid for \(\D_V\) and \(V\) accepts.

: for any verifier \(V\) with distribution \(\D_V\), for any (possibly-cheating) prover pair \((\tilde{h},\tilde{\pi})\), if \(V\) accepts, then \(\tilde{h}\) is actually valid for \(\D_V\).

One way to understand the guarantee of pvCSVs is as a robust proof of statistical validity, without an explicit assumption about distributional shifts. Rather than positing some known relationship between the prover and verifier distributions, the verification procedure works for any \(\D_P\) and \(\D_V\) and results in acceptance whenever the published certificate—derived from the execution of a learning algorithm \(\A\) using the prover’s distribution—reflects some legitimate execution on the verifier’s distribution. While our notion of completeness assumes that \(\D_P = \D_V\), the guarantee is more subtle than this equality would suggest. The distributions \(\D_P\) and \(\D_V\) may differ significantly in composition, but if the verifier accepts, then (by universal soundness) the hypothesis \(h\) is valid for \(\D_V\) (because the distributions are indistinguishable according to some invocation of \(\A\)). The careful reader will note that this “universal soundness” condition is actually implied by standard soundness for delegation of learning,4 but holds new significance in the context of non-interactive proofs. Our view on soundness, paired with a non-interactive proof system, allows us to realize certificates of learning that can be verified publicly by any user.

We can use various measures of complexity to evaluate the quality of a pvCSV construction. Principle to our work is sample complexity: we aim for pvCSVs where the verifier saves considerably in the number of samples needed from \(\D_V\) compared to the number of samples required for learning (or proving). Further, we can track other measures like time complexity (of both the verifier and the honest prover) and proof length as well. We define pvCSVs formally in Section 3 and provide a thorough discussion of the notion and its properties (like validity and universal soundness) therein.

With this key definition in place, the main technical contributions of this work are to construct pvCSVs for adaptive statistical algorithms within the SQ learning framework. Our pvCSVs achieve an exponential gap in the sample complexity between SQ verification and SQ learning. While the core idea of each of our constructions is similar, the resulting protocols differ in important ways based on properties of the original SQ algorithm. As we show, the way that the algorithm uses randomness and the way the SQ oracle is allowed to adapt to the algorithm’s internal state are key factors in building universally-sound pvCSVs.

1.1.0.2 pvCSVs for Deterministic SQ Algorithms.

In Section 3.1, we consider SQ algorithms that do not use internal randomness. These “deterministic” SQ algorithms are considerably simpler to reason about, and as such, we obtain strong, statistically-sound pvCSVs for all such algorithms.5

Let \(\A\) be a deterministic SQ algorithm that learns a concept \(\G\). Suppose \(\A\) makes \(k\) adaptive queries to a \(\tau\)-accurate SQ oracle \(\O\). There exists a pvCSV scheme for certifying \(\G\) (with constant failure probability) achievable in the following complexities.

Honest prover sample complexity: \(m_P \le \tilde{O}(\sqrt{k}/\tau^2)\)

Verifier sample complexity: \(m_V \le O(\log(k)/\tau^2)\)

Certificate size: \(\card{\pi} \le O(k \cdot \log(1/\tau))\)

In other words, even though the best learning algorithms use \(\tilde{O}(\sqrt{k})\) samples to support \(k\) adaptively-chosen queries, there is a short certificate (namely, the results of the queries) that convinces a verifier with considerably less information about the distribution in \(O(\log(k))\) samples. The bounds of Theorem [result:deterministic] follow from the prover and verifier collectively executing a direct simulation of the original SQ algorithm with no overhead for the honest prover; in this sense, the delegation scheme can be thought of as doubly-efficient in its statistical complexity, à la [21]. Computationally, both the prover and the verifier need to simulate the execution of the underlying SQ algorithm, so the time-complexity scales roughly linearly in the running time of the original algorithm.

1.1.0.3 pvCSVs for Randomized SQ Algorithms and SQ Protocols.

In Section 4, we investigate how to build pvCSVs for SQ algorithms that use randomness. Randomness introduces significant technicality in the resulting proof systems. Here, we give an informal description of our results, including various definitions we develop to obtain the results.

Towards a pvCSV for randomized SQ algorithms, we need to reason about how the algorithm—and the (possibly-adversarial) SQ oracle—may act adaptively to the randomness. First, we say that a randomized SQ algorithm operates in \(\ell\) “epochs” if it can be broken down into a series of \(\ell\) deterministic SQ algorithms, which each take a fresh random string as an input. Next, we say that an SQ oracle is “public-state” if it may choose its query responses as a function of the SQ algorithm’s internal randomness (in contrast to an “oblivious” oracle, which has no knowledge of the algorithm’s randomness). We construct pvCSVs in the Random Oracle Model (ROM) [22] for all constant-epoch randomized SQ algorithms that are correct using a public-state SQ oracle.

Let \(\A\) be a randomized SQ algorithm that learns a goal \(\G\) with high probability. Suppose \(\A\) makes \(k\) adaptive queries to a \(\tau\)-accurate public-state SQ oracle \(\O\), over an execution of \(O(1)\) epochs. There exists a computationally-sound pvCSV scheme in the ROM for certifying \(\G\) (with constant failure probability) achievable in the following complexities.

Honest prover sample complexity: \(m_P \le \tilde{O}(\sqrt{k}/\tau^2)\)

Verifier sample complexity: \(m_V \le O(\log(k)/\tau^2)\)

Certificate size: \(\pi \le O(k \cdot \log(1/\tau))\)

In fact, Theorem [result:randomized] follows from a much more general result. We start by adapting the definition of delegation of learning [1] to the statistical query setting, yielding a format for interactive learning which we call SQ protocols. We show that a large class of interactive SQ protocols (of which randomized SQ algorithms are a special case) can be compiled into a canonical SQ protocol with desirable properties. The class consists of SQ protocols where the verifier may send random and non-random challenges to the prover and may make private statistical queries (not sent to the prover) to its public-state oracle; we call these protocols “mixed-message, private-query” SQ protocols. After compilation, we obtain a canonical SQ protocol with the same completeness and soundness guarantees as the original, but which is public-coin (verifier only sends random challenges) and public-query (verifier reveals all SQs to the prover). Importantly, the canonical verifier still only makes a single batch of statistical queries.

Suppose \((P,V)\) is a mixed-message, private-query SQ protocol where the verifier makes \(k\) adaptive queries to a \(\tau\)-accurate public-state SQ oracle and verifies concept \(\G\). There exists a canonical public-coin, public-query SQ protocol \((\mathsf{P}_\mathsf{can},\mathsf{V}_\mathsf{can})\) that verifies \(\G\) with the same completeness/soundness as \((P,V)\), with the following properties.

\(\mathsf{P}_\mathsf{can}\) makes at most \(k\) additional statistical queries compared to \(P\);

\(\mathsf{V}_\mathsf{can}\) makes a single, non-adaptive batch of \(k\) statistical queries.

This canonical SQ protocol can then be compiled into a pvCSV via a Fiat-Shamir transformation [23], whose blow-up in soundness scales exponentially with the “epoch complexity” of the original protocol. The sample complexities claimed in Theorem [result:randomized] follow by giving sample-based implementations of an adaptive SQ oracle (for the prover) and non-adaptive SQ oracle (for the verifier). As a consequence, we obtain computationally-sound pvCSVs for a much broader class of learning goals—those that can be solved by an interactive SQ protocol according to Lemma [result:canonical].

As may be evident, to appropriately reason about delegation of learning in this context, we need to reason about a number of novel concepts (e.g., SQ protocols, public-coin, public-query, epoch complexity, etc.). An additional key contribution of our work is laying out precise definitions for these notions that arise in the study of proof systems for learning, presented formally in Section 4.1. We discuss our construction of pvCSVs for randomized algoirthms/SQ protocols in greater detail within the Technical Overview.

1.1.0.4 Beyond pvCSVs: The Limits of SQ Protocols.

Building pvCSVs, particularly for randomized SQ algorithms, required investigating aspects of more general interactive protocols for statistical query learning. We complement our constructions of pvCSVs with a few results about the strengths and limitations of SQ protocols.

We show that, quite generically, verification of SQ protocols can be made statistically non-adaptive, in the sense that the verifier issues a single batch of statistical queries, and thus, has sample complexity scaling logarithmically in the number of queries. The exact class of protocols which we can delegate soundly in this manner is a bit technical, but it consists of a large class of “public-query” SQ protocols. In particular, the class of protocols includes private-coin protocols, where the verifier maintains secret randomness from the prover, but allows the prover to know which statistical queries the verifier issues.

For every public-query SQ protocol where the verifier makes \(k\) adaptive queries to a \(\tau\)-accurate public-state SQ oracle, there is an equivalent SQ protocol where the verifier \(V\) makes a single, non-adaptive batch of queries; that is, \(V\) has sample complexity \(m_V \le O(\log(k)/\tau^2)\).

This result shows that statistical validation of a large class of SQ protocols can be done in non-adaptive sample complexity. A natural question, then, is whether this statistically-efficient verification scheme can be made computationally-efficient. Unfortunately, we show a barrier to generic computational savings in the SQ model. Piggybacking off of a sample complexity lower bound given by [7] for PAC Verfication, we obtain a lower bound on the verifier’s query complexity for the same class of SQ protocols from Proposition [result:protocol].

For every hypothesis class \(\H\) of VC dimension \(d\), in any SQ protocol (as in Proposition [result:protocol]) that \(\eps\)-PAC Verifies \(\H\) using a \(\tau\)-accurate SQ oracle for \(\tau \approx \eps\), the verifier makes \(2^{\Omega(\sqrt{d})}\) statistical queries.

1.1.0.5 SQ Verification under Differential Privacy.

Finally, we show that the verifiers of all of our pvCSVs and interactive SQ protocols can be implemented under Differential Privacy [24]. Differential Privacy (DP) is the de facto notion to protect individuals’ data in statistical analyses, but it can be statistically costly: implementing SQ algorithms under DP requires sample complexity akin to adaptive data analysis. This result shows that a verifier can validate the results of a statistical analysis much more efficiently, while still maintaining privacy over their own data set.

The new private verifiers use essentially the same number of samples as the non-private verifiers. Concretely, we state the result for the pvCSV verifiers.

Consider the pvCSV verifier from either Theorem [result:deterministic] or Theorem [result:randomized]. There exists an \(\eps\)-DP implementation of the verifier over the samples from \(\D_V\) (with constant failure probability) whose sample complexity scales as \(O(\log(k)/\tau^2 + \log(k)/\tau \eps)\).

1.2 Technical Overview and Discussion of Results↩︎

In the remainder of the introduction, we give a more detailed overview of our models and results. Throughout, we aim to provide pointers into the main text for formal presentation. We include discussion of the significance of the results, connections to prior works, as well as possible extensions.

The primary goal of our work is to take an arbitrarily-adaptive SQ algorithm \(\A\) and turn it into a pvCSV that can be verified efficiently. At a high-level our approach is simple: require the prover to run a direct simulation of \(\A\); then, check the prover’s work. In particular, the statistically-expensive aspect of adaptive data analysis is generating the sequence of queries \(q_1,\ldots,q_k\). Once the sequence has been generated, however, the answers to the queries \(q_1,\ldots,q_k\) can be checked in a single, non-adaptive batch of \(k\) statistical queries.

This observation immediately suggests a non-interactive proof system for delegating “deterministic” SQ algorithms that do not use any internal randomness, which is the focus of Section 3.1.

The honest prover \(P\) executes \(\A\) using their own SQ oracle \(\O_P\) to answer any necessary queries. Along the way, the prover records the queries and results, and at the end, when \(\A\) outputs some hypothesis \(h\), \(P\) sends \(h\) and \(\pi = \langle q_1, \O_P(q_1),\ldots,q_k,\O_P(q_k) \rangle\) to the verifier \(V\).

To certify that \(h\) is valid, the verifier must re-run \(\A\), but rather than using its own oracle, it will answer any statistical queries using the answers from \(\pi\). If at any point, the verifier’s execution \(\A\) requires a query \(q\) that is not provided in \(\pi\), then \(V\) rejects immediately, since the transcript sent by the prover was not consistent with the execution of \(\A\). If the transcript is consistent, then the verifier concludes the protocol by issuing the batch of statistical queries from \(\pi\) to its own oracle \(\O_V\), and checks that \(\O_V(q_i)\) is sufficiently close to the reported \(\O_P(q_i)\) for each query.

Note that even though we think of \(\A\) as deterministic since it does not use randomness, its adaptivity to the SQ oracle responses introduces non-determinism, so verifying the consistency of the transcript is a non-trivial aspect of the verifier’s check.

Given the simplicity of this delegation scheme, both the honest prover and verifier can be implemented very efficiently. The only overhead of the honest prover is to record the results of their statistical queries to be sent to the verifier (or posted for public verification), so the sample and time complexities scale precisely with the original complexities of the SQ algorithm \(\A\). To answer a sequence of adaptive queries to \(\tau\)-accuracy, the prover can be implemented in \(\tilde{O}(\sqrt{k}/\tau^2)\) samples [14], [17], [18]. The verifier also has to execute the algorithm \(\A\), so there is no computational savings, but the statistical savings are exponential. By concentration bounds, checking a batch of \(k\) statistical queries to \(\tau\)-accuracy can be achieved from \(O(\log(k)/\tau^2)\) samples.

1.2.0.1 Understanding Universal Soundness.

One of the key selling points of pvCSVs is the universal soundness condition: that any verifier holding \(\D_V\) which may differ significantly from the prover’s distribution \(\D_P\) can check the certificate while maintaining soundness. As described above, our pvCSV construction does not explicitly distinguish between the prover’s distribution \(\D_P\) and the verifier’s \(\D_V\). But in a sense that can be made formal, to obtain universal soundness, we only need for standard soundness to hold from the verifier’s perspective. Specifically, even if the pvCSV \((h,\pi)\) was generated honestly by a prover \(P\) holding \(\D_P\), to the verifer holding \(\D_V\), we can imagine \(P\) to be a potential cheating prover. In this case, the verifier may reject outright, or may accept if \(h\) actually satisfies the learning goal over \(\D_V\). The verifier’s final statistical validation—paired with the correctness guarantee of SQ algorithms—ensures that if the reported query responses from \(\pi\) are sufficiently close to the expectations on the verifier’s distribution \(\D_V\), then \(h\) is the result of some valid invocation of the SQ algorithm \(\A\) over \(\D_V\).

1.2.0.2 Handling Randomness.

For algorithms that use randomness, we cannot simply trust the prover to report a direct simulation of the execution of \(\A\), using untrusted randomness. Instead, a natural idea for a pvCSV is to convert the randomized algorithm into a public-coin protocol, then apply a Fiat-Shamir transformation [23], to obtain a non-interactive proof. In Section 4, we show that this approach works to yield pvCSVs, but we need to be careful in how we reason about the algorithm’s use of randomness, as well as how the SQ oracle affects the proof of soundness.

Starting from a randomized SQ algorithm \(\A\), we imagine breaking the algorithm into a series of “epochs” where in the \(i\)-th epoch, the algorithm samples fresh randomness \(r_i\), and then executes a deterministic SQ algorithm \(\A_i\) until the end of the epoch. Every randomized algorithm can be broken into epochs, but different algorithms require more or fewer epochs. At the low extreme, an algorithm that uses a random initialization, then executes deterministically, would have epoch complexity \(1\); at the other extreme, a stochastic optimization algorithm that makes random choices at every iteration based on fresh independent coins will have high epoch complexity. The epoch complexity of the algorithm \(\A\) controls the complexity of the resulting proof system.

In particular, we can turn any SQ algorithm of epoch complexity \(\ell\) into a public-coin interactive proof in the SQ model of round complexity \(\ell\). At the start of each epoch \(i\), the verifier \(V\) sends randomness \(r_i\) to the prover \(P\). Then, the honest prover \(P\) simulates the deterministic algorithm \(\A_i(r_i)\) using its own oracle \(\O_P\) to answer any statistical queries. At the end of the epoch, the prover can return a transcript, similar to in the deterministic case, that summarizes the statistical queries and oracle responses. At the end of all epochs, the verifier can issue a non-adaptive batch of queries to \(\O_V\) to ensure that the responses were all sufficiently accurate.

As described, the SQ protocol is complete, but has a subtle issue with soundness without further assumptions. In the original algorithm, \(\A\) issues its queries to an SQ oracle \(\O\), whereas in the protocol, the verifier \(V\) simulates \(\A\) but delegates the SQs to the prover. The key distinction between these two setups is that the prover also receives the internal randomness of the algorithm \(r_i\), as the public-coin message at the start of each epoch. In other words, to ensure soundness, the original randomized algorithm \(\A\) must be correct even for SQ oracles that have full knowledge of the state of \(\A\). Algorithms whose correctness hinges on the obliviousness of \(\O\) to the randomness of \(\A\) cannot be delegated in this way while maintaining soundness. Formally, we define “public-state” SQ oracles in Section 4.1, along with the corresponding correctness notion for SQ algorithms.

Once we restrict our delegation to randomized SQ algorithms which are correct under this more powerful SQ oracle, then we obtain a sound public-coin protocol. To obtain pvCSVs, we appeal to the Random Oracle Model (ROM), and show how to apply the Fiat-Shamir transform to our protocol. There is some subtlety in defining the notion of universal soundness for pvCSVs in the ROM and then subsequently arguing that Fiat-Shamir applied to our protocol obtains such soundness. With the appropriate definitions in place, the soundness proof follows by following the state restoration approach of [25], [26].

1.2.0.3 Beyond SQ Algorithms.

Building pvCSVs for randomized SQ algorithms required us to define and investigate a number of more general models of proof systems in the SQ model. A key result we show in Section 4.2 is that a diverse class of interactive SQ protocols can be compiled into a canonical public-coin SQ protocol. In a sense, this result is an analogue of the established understanding of public-coin protocols for delegation of computation. We show that, quite generically, if an SQ protocol consists of a verifier that reveals its randomness to the prover, there is a canonical version of the protocol where the only messages the verifier sends to the prover are its randomness. Further, the verifier need not maintain any private statistical queries, but can delegate all of its queries to the prover, then execute one final non-adaptive validation. This result holds in the same model of public-state SQ oracle, which may adapt to the state of the verifier. With this canonical compiler for SQ protocols, we can similarly obtain computationally-sound pvCSVs in the ROM, by applying Fiat-Shamir to the canonical protocol.

1.2.0.4 Towards Computationally-Efficient Certification of Learning.

In this work, our focus is on developing statistically-efficient proofs of learning. We make no effort to optimize the verifier’s running time. Our pvCSV verifier for an SQ algorithm \(\A\) runs in time proportional to the running time of \(\A\). A natural question in the study of proof systems is whether we can save on computation time during verification.

In Section 5, we show some barrier to generic speed-ups (at least within the SQ framework). In particular, Corollary [result:lb] shows that there are statistically learnable VC classes, for which there is no computationally-efficient SQ verification scheme, even if we allow for interaction. Our SQ lower bound is actually a consequence of the efficiency of our verification schemes (in terms of the number of statistical queries) and an existing lower bound on the samples required for verification from [7] in terms of the VC dimension. In other words, a fast SQ verification scheme (which doesn’t make many SQ queries) would imply an impossibly-statistically-efficient verification scheme for the VC class studied by [7].

Nevertheless, in some sense, our exploration of pvCSVs and SQ protocols provides new design principles for simultaneously statistically and computationally efficient verification. Recall that the canonical protocol of Lemma [result:canonical], which compiles into a pvCSV as in Theorem [result:randomized], applies not just to randomized algorithms but to a broad class of SQ protocols. Further, the verifier in the resulting pvCSV runs in time proportional to (or less than) the verifier in the original protocol—not the full simulation of \((P,V)\). In other words, if we can design SQ protocols that reduce verification time, then we may get simultaneous statistical and computational efficiency for free (provided the protocol is covered by Lemma [result:canonical]).

Concretely, our results show that minimizing the epoch complexity of a learning procedure—even if that entails designing an interactive proof system—may actually lead to more efficient pvCSVs than simply focusing on delegating algorithms for learning. Such observations may also motivate a deeper study of pseudorandomness in machine learning; for instance, if a randomized SQ algorithm can actually be proved correct under a weaker source of randomness, it may reduce the epoch complexity and improve efficiency.

1.2.0.5 Publicly-Verifiable End-to-End DP.

Finally, in Section 6, we show Proposition [result:dp], which implies a mechanism for verifying pvCSVs statistically efficiently under Differential Privacy with respect to the verifier’s samples. Given such a verifier, it’s tempting to wonder whether we can achieve End-to-End DP over both the prover’s samples from \(\D_P\) and the verifier’s from \(\D_V\). The existence of a DP verifier implies an honest prover strategy to achieve such a goal. Due to the connections between adaptive data analysis and DP, this honest prover strategy is no more expensive than accounting for adaptivity.

That said, in our setting, we’d have no guarantees about the behavior of the cheating prover, who might violate DP arbitrarily. To handle the possibility of a cheating prover, we could employ a scheme for Certified DP of [27]. Certified DP ensures that a prover’s release of statistical queries follows a DP mechanism with respect to some committed-to, but untrusted database \(X \sim \D_P\), in a manner that can be verified publicly. In this sense, adding our DP statistical validation scheme as post-processing to the output of a Certified DP mechanism would allow the verifier to be convinced of End-to-End DP, while also ensuring statistical accuracy of queries from the untrusted database \(X\) under the verifier’s distribution \(\D_V\).

1.3 Related Works↩︎

Our study of pvCSVs and SQ protocols lives in the intersection of learning theory and cryptographic proof systems. We highlight some of the most relevant related lines of work.

1.3.0.1 Proof Systems for Learning and Statistics.

Proof systems for statistical algorithms grew out of the literature on interactive (cryptographic) proof systems [2], [3]. The PAC Verification, introduced in [1], led to a number of results about strengths and limitations of interactive proofs of learning [7], [8]. Most related to our work is the work of Mutreja and Shafer [7], who also thought about the issue of delegating SQ algorithms in the context of loss minimization. In fact, in a subsequent journal version [28], the authors independently include a result analogous to Proposition [result:protocol], on the interactive delegation of adaptive SQ algorithms.

Other works have investigated certifying properties of learning algorithms. [27] recently designed mechanisms for public cerification of differential privacy (and other private probabilistic mechanisms) in the release of statistical queries. Following this work, [29] extended the techniques to give a publicly-verifiable implementation of DP Stochastic Gradient Descent, without appealing to heavy-handed cryptographic primitives for certifying generic computations.

Beyond proofs for learning algorithms, there has been significant work investigating proof systems for properties of distributions. Initiated by [30], a sequence of works [31][34] has established doubly-efficient proof systems for distribution testing.

1.3.0.2 Adaptive Data Analysis.

Since its identification as a key algorithmic challenge [10], [12], [13], Adaptive Data Analysis has seen significant developments, in line with the developments of sophisticated tools for Differential Privacy [24]. The majority of work studying adaptive data analysis focuses on the problem of answering statistical queries. [14] first showed near-optimal \(\tilde{O}(\sqrt{k})\) dependence on the number of adaptively chosen queries. Subsequently, a sequence of papers has simplified their analysis and techniques and improved their bounds [15][17]. Recently, [18] showed that a much simpler subsampling mechanism actually suffices for optimal adaptive data analysis—despite the fact that it does not suffice for DP. Indeed, the analysis of [18] does not go through the standard “transfer theorem” that DP implies adaptive generalization, but rather analyzes the effects of subsampling directly.

2 Preliminaries↩︎

We give formal definitions of the statistical query model of learning [11] that we adopt, as well as proof systems developed in the context of verifying machine learning [1], [7]. We start with background on the SQ Model. Then, we discuss our formalisms for algorithms and proof systems that use SQ oracles. We defer some technical aspects of our learning model (particularly those related to algorithms’ use of randomness) to the relevant technical section (Section 4.1). Finally, we review background on adaptive data analysis and the complexity of implementing SQ algorithms from samples [12].

2.1 The Statistical Query Model↩︎

The Statistical Query (SQ) Model [11] abstracts away the notion of learning from samples to the notion of learning from approximate statistics. In this model, the learning algorithm is allowed to specify predicates \(q:\X \to \{0,1\}\) from a collection6 \(\Q \subseteq \{0,1\}^\X\) and receive—from the statistical query oracle—the (rough) expectation of the queried predicate on the distribution of interest \(\D\).

Definition 1 (SQ Oracle, idealized). A is a stateful algorithm \(\O:\Q \to [0,1]\) that takes input queries \(q \in \Q\) and responds with evaluations \(\O(q) \in [0,1]\). For \(\tau > 0\), the oracle \(\O\) is if for any finite sequence of \(k \in \mathbb{N}\) (adaptively-selected) queries \(q_1,q_2,\ldots,q_k\), for all \(i \in [k]\) \[\begin{gather} \card{\O(q_i) - \E_{X \sim \D}[q_i(X)]} \le \tau. \end{gather}\]

Many notable learning algorithms can be described in the SQ Model, including most (Agnostic) PAC Learning algorithms7 [11] as well as more modern ML algorithms like Gradient Descent.

We remark that, per the definition, the SQ oracle \(\O\) with \(\tau\)-accuracy must always report approximate expectations within \(\tau\) of the true expectation. As such, given access to an SQ oracle, we can hope to design algorithms that always succeed. In Section 2.3, we discuss concrete, sample-based implementations of the SQ oracle abstraction, which necessarily introduce a failure probability.

2.1.0.1 Learning Goal.

We consider an abstract setting of learning over distributions \(\D\) supported on a domain \(\X\), such as \(\X = \{0,1\}^d\) for some finite dimension \(d \in \mathbb{N}\). Additionally, we consider an abstract collection of hypotheses \(\H\). We define the goal of learning in terms of identifying a hypothesis within some “good” set of hypotheses \(\G(\D)\subseteq \H\), parameterized by the distribution \(\D\).

Definition 2 (Learning goal, abstract). Fix a class of hypotheses \(\H\) and a learning goal \(\G\subseteq\H\). For a distribution \(\D\), we say an algorithm \(\A\) if \(\A\) outputs some \(g \in \G(\D)\) in the target set of hypotheses.

For instance, in the context of Agnostic PAC learning, we can take \(\H\) to be the concept class \(\H \subseteq \{h: \{0,1\}^d \to \{0,1\}\}\), and the good subset \(\G(\D)\subseteq \H\) to be all hypotheses achieving classification error \(\Pr[g(x) \neq y] \le \Pr[h^*(x) \neq y] + \eps\) competitive with the best \(h^* \in \H\) over \(\D\). We adopt this abstract notion of learning, rather than a concrete notion like the PAC framework, in order to emphasize the generality of our approach. At the extreme, we may take the hypotheses \(\H\) to be the collection of sequences of statistical queries and expectations, and the good set \(\G(\D)\) to be sequences that arise as a valid execution of a statistical algorithm on \(\D\). (We comment further on our choice of abstract Learning Goal after Definition 7 of protocols for delegating SQ learning.)

2.1.0.2 Statistical Query Algorithms.

Naturally, we define SQ algorithms as algorithms that may make calls to an SQ oracle. For SQ algorithms that solve a learning goal, we need to specify the approximation parameter \(\tau > 0\) necessary to guarantee correctness. Formally, we distinguish between deterministic and randomized SQ algorithms.

Definition 3 (SQ Learning, deterministic). Fix a learning goal \(\G\) and \(\tau > 0\). A deterministic algorithm \(\A\) if, for any distribution \(\D\) and \(\tau\)-accurate SQ oracle \(\O\) for \(\D\), \(\A^\O\) outputs a hypothesis \(g \in \G(\D)\).

When \(\A\) is deterministic, without loss of generality, we can think of the SQ oracle \(\O\) as a pre-specified function where \(\O(q)\) is defined for all \(q \in \Q\) up front, rather than a stateful algorithm responding sequentially. Specifically, if the queries that \(\A\) issues are a deterministic function of the input to \(\A\) and the responses given by \(\O\) so far, then a pre-specified function can simulate any stateful oracle, by simply running \(\A\) ahead of time. Note the output of running \(\A\) with \(\tau\)-accurate oracle \(\O\) may still be nondeterministic based on the choice of \(\O\), even if \(\A\) doesn’t flip coins. That said, we insist that given a \(\tau\)-accurate (idealized) oracle \(\O\), the algorithm \(\A\) always succeeds.

2.1.0.3 Randomized SQ Algorithms.

In our study of SQ proof systems, the distinction between deterministic and randomized algorithms is significant. In contrast to deterministic algorithms, when \(\A\) is randomized, it becomes important to think of the SQ oracle \(\O\) as a stateful adversary, who responds with knowledge of prior queries/responses, subject to \(\tau\)-accuracy. That is, for a sequence of queries \(q_1,q_2,\ldots,q_k\), the response \(a_i = \O(q_i)\) may depend on \(\langle q_1,a_1,q_2,a_2,\ldots,q_{i-1},a_{i-1},q_i\rangle\). An SQ algorithm that learns \(\G\) must output a good hypothesis with high probability, no matter what decisions the oracle makes in response to the sequence of queries.

Definition 4 (SQ Learning, randomized). Fix a learning goal \(\G\) and \(\tau>0\), \(\gamma>0\). A randomized algorithm \(\A\) if for any distribution \(\D\), and any \(\tau\)-accurate SQ oracle \(\O\) for \(\D\), \(\A^\O\) outputs a hypothesis \(g \in \G(\D)\) with probability at least \(1-\gamma\) over the random coins of \(\A\).

With this high-level definition in place, we defer significant details and definitions about randomized SQ algorithms to Section 4.1, which are essential to understanding our pvCSVs for randomized SQ algorithms and SQ protocols. In particular, we consider two flavors of SQ oracles for randomized algorithms, “oblivious” oracles (as in Definition 1) and “public-state” oracles (see Definition 14).

2.1.0.4 Complexity Measures for SQ algorithms.

An important complexity measure of SQ algorithms is the number of statistical queries the algorithm makes \(B\), as well as the adaptivity to prior query responses \(k\). The adaptivity of an SQ algorithm \(\A\) is the number of rounds in which batches of queries are issued to \(\O\). At the extremes of adaptivity, \(k = B\) is a fully-adaptive algorithm, where the choice of each query \(q_i\) is determined as an arbitrary function of the prior queries and responses \(\langle q_1,\O(q_1),q_2,\O(q_2),\ldots,q_{i-1},\O(q_{i-1}) \rangle\); whereas \(k = 1\) is a non-adaptive SQ algorithm and all of the queries are issued in a single batch. As we discuss in Section 2.3, the adaptive query complexity determines how efficiently we can implement the SQ oracle from samples.

Definition 5 (Query Complexity). Fix \(\tau > 0\). An SQ algorithm has if for all distributions \(\D\) and \(\tau\)-accurate SQ oracles \(\O\), the execution of \(\A^\O\) issues at most \(B\) queries over \(k\) rounds of adaptivity.

Additionally, we will informally track the running time of SQ algorithms (eliding details of computation over real-valued responses from the SQ oracle).

Definition 6 (Running Time). Fix \(\tau > 0\). An SQ algorithm has if over all \(\D\) and all \(\tau\)-accurate SQ oracles \(\O\), the execution of \(\A^\O\) runs in at most \(T(\tau)\) steps.

For simplicity’s sake, in both query and time complexity, we assume that randomized SQ algoirthms provide a deterministic guarantee on the complexity (that is, a BPP-style guarantee).

2.2 Proof Systems for Statistical Learning↩︎

We consider proof systems for statistical learning based off of the classic notions from complexity theory and cryptography [2], [3], and more recently the notion of PAC Verification [1]. In this setting, a prover \(P\) and a verifier \(V\) interact in order for the verifier to be convinced that a given hypothesis \(g \in \G(\D)\) is good for a learning goal. We model \(P\) and \(V\) as randomized algorithms and denote their interaction as \((P,V)\). We adapt the notions from recent works on PAC Verification to define a model of interactive proof system where the parties have access to SQ oracles as follows.

Definition 7 (SQ Protocol, adapted from [1], [7]). A is given by the interaction of two randomized SQ algorithms, the honest prover \(P\) and the verifier \(V\), denoted \((P,V)\).

Fix a learning goal \(\G\), \(\tau_P,\tau_V > 0\), and \(\gamma > 0\). An SQ protocol \((P,V)\) if for any distribution \(\D\) and \(\tau_P\)-accurate SQ oracle \(\O_P\) and \(\tau_V\)-accurate SQ oracle \(\O_V\), the following conditions hold:

  • : the honest protocol \((P^{\O_P},V^{\O_V})\) outputs \(g \in \G(\D)\) with probability at least \(1-\gamma\) over the random coins of \(P\) and \(V\).

  • : for any cheating prover strategy \(\tilde{P}\), with probability at least \(1-\gamma\) over the random coins of \(V\), the protocol \((\tilde{P}^{\O_V},V^{\O_V})\) outputs \(g \in \G(\D)\) or \(V\) rejects.

For \(> 0\), the SQ protocol has if the honest prover’s oracle \(\O_P\) can be implemented from at most \(m_P\) samples and the verifier’s oracle \(\O_V\) can be implemented from at most \(m_V\) samples, with probability at least \(1-\delta\) over i.i.d.samples from \(\D\).

In other words, in an SQ protocol, there exists an honest prover strategy that allows the verifier to accept a good hypothesis \(g \in \G(\D)\) with high probability, and conversely, if the verifier accepts a hypothesis \(\tilde{g}\), then with high probability,8 the hypothesis \(\tilde{g} \in \G(\D)\), even if it was generated through an interaction with a different prover.

Note that, as is standard, we imagine the cheating prover \(\tilde{P}\) is all-powerful and may have arbitrary knowledge of the distribution \(\D\). Additionally, we equip the cheating prover with the verifier’s oracle \(\O_V\); that is, for any query that the verifier asks \(q \in \Q\), the precise value \(a = \O_V(q)\) is known to both \(V\) and \(\tilde{P}\). (That said, the verifier may choose to keep queries private from the prover.)

There are many properties of SQ protocols that may be of interest. For instance, we consider both private- and public-coin protocols (or, as hinted above, private- and public-query protocols). We defer these definitions—particularly those related to our construction of pvCSVs—to Section 4.1.

Implementing the oracles from samples will necessarily incur some additional failure probability \(\delta > 0\), distinguished from soundness error \(\gamma\) of the original protocol. Accounting for the failure probability \(\gamma\) of the oracle-based protocol separately from the failure probability \(\delta\) that arises from sampling actually leads to improved analysis of the soundness of some of our protocols. We discuss background on the sample complexity of adaptive SQ algorithms in Section 2.3.

2.2.0.1 Comparison to PAC Verification.

Definition 7 is directly inspired by the notion of PAC Verification of statistical algorithms [1], [7], but departs in a few key ways.

First off, our notion of learning is not tied directly to Agnostic PAC learning (or loss minimization as in [7]). Instead, we elect to use our abstract learning goal (Definition 2) as the basis for SQ Protocols. We make this choice because the protocols we design are not actually tied to any properties of loss minimization, but instead run a direct simulation of a given SQ algorithm. So, provided we start with a learning algorithm \(\A\) that achieves its learning goal with good probability, we can turn it into a SQ protocol that also learns \(\G\).9

Second, we define SQ protocols in the SQ oracle model, rather than in terms of direct samples from the distribution. In reality, we will be interested in understanding the statistical resources (i.e., samples) necessary to implement the verifier and honest prover strategies. As in the earlier works on PAC verification, the goal is to design SQ protocols where the verifier’s oracle \(\O_V\) can be implemented more efficiently than the honest prover’s \(\O_P\). For instance, quantitatively, perhaps \(P\) requies an oracle with much tighter tolerance than \(V\), \(\tau_P < \tau_V\); or as in our work, qualitatively, \(P\) may require an adaptive oracle, whereas \(V\) uses a non-adaptive oracle. That said, nothing precludes a hybrid definition, where the verifier only has SQ oracle-access to \(\D\), but the prover has more refined access through samples or point evaluations..

2.2.0.2 Computational Soundness and The Random Oracle Model.

Definition 7 assumes that cheating provers are computationally-unbounded. We refer to this property as statistical soundness. In contrast, we say that computational soundness holds when we prove soundness against probabilistic polynomial-time cheating provers \(\tilde{P}\). When we consider computational soundness, we will still assume that \(\tilde{P}\) may hold prior, detailed knowledge of \(\D\) (so need not be given an SQ oracle), but does not have the computational resources to break cryptographic primitives.

We will be particularly interested in computational soundness when designing pvCSVs for randomized SQ algorithms. To do so, we leverage a key cryptographic paradigm: The Fiat-Shamir Transformation [23]. The heuristic takes a public-coin interactive protocol and removes interaction by emulating the verifier’s random messages with calls to a cryptographic hash function. Classically, the soundness of Fiat-Shamir is proved in the Random Oracle Model (ROM) [22], which models public access to an (idealized) hash function.

Definition 8 (Random Oracle Model). For output size \(m \in \mathbb{N}\), the augments the base computational model by assuming that all parties have access to a public, uniformly-random function \(f:\{0,1\}^* \to \{0,1\}^m\) that can be evaluated at unit cost.

Note that when we consider protocols that operate in the ROM, the probability of violating computational soundness is over the verifier’s random coins as well as the draw of the random oracle.

While, in full generality, soundness does not transfer from the ROM to realizable models of computation [35], [36], proofs of soundness in the ROM are generally considered as strong evidence of security and sufficient for many practical applications. Our pvCSVs for randomized SQ algorithms will be proved computationally-sound in the ROM.

2.3 Sample-Based Implementation of SQ Oracles↩︎

To run SQ learning algorithms/protocols, we need a concrete implementation of the SQ oracle abstraction based on samples drawn from \(\D\). The number of samples required to guarantee statistical validity of the oracle’s responses depends on features of the SQ algorithm \(\A\).

In particular, the sample complexity depends on the number of queries issued \(B\), the desired accuracy \(\tau\), as well as the adaptivity \(k\). The adaptivity of an SQ algorithm \(\A\) is the number of rounds in which batches of queries are issued to \(\O\). At the extremes of adaptivity, \(k = B\) is a completely adaptive algorithm, where the choice of each query \(q_i\) is determined as an arbitrary function of the prior queries and responses \(\langle q_1,\O(q_1),q_2,\O(q_2),\ldots,q_{i-1},\O(q_{i-1}) \rangle\); whereas \(k = 1\) is a non-adaptive SQ algorithm and all of the queries are issued in a single batch. The following definition captures these dependencies.

Definition 9 (SQ Oracle implementation). An algorithm \(\O\) is a , if \(\O\) can support any sequence of queries \(q_1,q_2,\ldots,q_B\) satisfying the following properties:

  • : the sequence of queries is issued in at most \(k\) batches; queries selected in the \(i\)th batch may depend arbitrarily on the queries and responses of the first \(i-1\) batches

  • : the total number of queries in the sequence is upper bounded by \(B\)

  • : for every query \(q\) in the sequence, the response \(\O(q)\) is \(\tau\)-accurate on \(\D\).

  • : for all such query sequences of complexity \((k,B)\), with probability at least \(1-\delta\), all queries are answered \(\tau\)-accurately.

The of an SQ oracle implementation is the number \(m \in \mathbb{N}\) of i.i.d.samples from \(\D\) required to guarantee \((k,B,\tau,\delta)\)-implementation.

We define the notion of an SQ Oracle implementation in terms of the rounds of adaptivity and the total number of queries, because certain mechanisms are able to exploit limited adaptivity to achieve better sample complexity [10], [37]. Note that, in order to guarantee \(\tau\)-accurate queries, we can assume that our implementation returns values using \(O(\log(1/\tau))\) bits of precision.

Crucially for our work, the sample complexity required to answer a non-adaptive batch of queries is an exponential improvement over the complexity required to answer an adaptively-selected sequence of queries. For a non-adaptive batch of queries, the empirical SQ oracle that takes \(m\) samples \(x_1,\ldots,x_m \sim \D\) and reports \(\O(q) = \frac{1}{m} \sum_{i=1}^m q(x_i)\) achieves logarithmic dependence on the number of queries.

For any \(\tau,\delta>0\), the empirical oracle is a \((1,B,\tau, \delta)\)-implementation of an SQ oracle for \(\D\) with sample complexity \[m \le O\left(\frac{\log(B/\delta)}{\tau^2}\right).\]

Proposition [prop:non-adaptive] follows by a standard application of Hoeffding’s inequality. The sample complexity for answering an adaptively-selected sequence of statistical queries, however, requires much more sophisticated analysis. The complexity was only established in the past decade, after connecting the problem of adaptive data analysis with the technique of Differential Privacy [24].

In the case of fully-adaptive algorithms, where \(k = B\) statistical queries are issued adaptively, the (roughly) optimal sample complexity scales with \(\sqrt{k}\), rather than \(\log(k)\). Initially, the upper bounds followed by leveraging the stability properties of differentially-private query release [14], [17], but the most recent result of [18] leverages a subsampling technique without DP.10

For any \(\tau,\delta>0\), there exists a mechanism that is a \((k,k,\tau, \delta)\)-implementation of an SQ oracle for \(\D\) with sample complexity \[\begin{gather} m\leq O\left(\frac{\sqrt{k\cdot \log(k/\delta)\cdot \log(1/\delta)}}{\tau^2}\right) \end{gather}\]

The lower bound holds based on the construction of (interactive) fingerprinting codes [19], [20], and holds unconditionally in large-domain settings and assuming the existence of one-way functions in all settings.

For any \(\tau\in(0,0.49)\), any mechanism which is a \((k,k,\tau, 1/2)\)-implementation of an SQ oracle for \(\D\) has sample complexity \[m \geq \Omega(\sqrt{k})\] if either of the following assumptions hold: one-way functions exist, and the mechanism is computationally bounded; or the space of samples \(\X\) is sufficiently large: \(|\X|\geq 2^{O(k)}\).

In other words, there is a provable exponential gap in the sample complexity required to answer \(k\) queries adaptively versus non-adaptively.

3 Publicly-Verifiable Certificates of Statistical Validity↩︎

In this section, we introduce the main conceptual contribution of this work—publicly-verifiable Certificates of Statistical Validity—which allows a prover to publish a digest from the execution of a learning algorithm that any verifier can subsequently test for statistical validity. Importantly, the verifier of a publicly-verifiable Certificate of Statistical Validity (pvCSV) need not hold the same distribution as the prover. Instead, the verifier can test for statistical validity with respect to their own distribution \(\D_V\), through an SQ oracle or samples.

To formalize pvCSVs, we must first introduce the notion of soudness that makes proofs “publicly-verifiable.” We define universal soundness to ensure soundness holds no matter what distribution the verifier holds.

Definition 10 (Universal Soundness for SQ protocols). Fix a learning goal \(\G\), \(\tau_V > 0\), and \(\gamma>0\). An SQ protocol \((P,V)\) has if for any verifier distribution \(\D_V\) and \(\tau_V\)-accurate SQ oracle \(\O_V\) for \(\D_V\), and for any prover \(\tilde{P}\), with probability at least \(1-\gamma\), \((\tilde{P}^{\O_V},V^{\O_V})\) outputs \(g \in \G(\D_V)\) or \(V\) rejects.

It is easy to see that universal soundness of SQ Protocols is actually just a restatement of standard soundness; syntactically, our definition simply renames the distribution \(\D\) to be in terms of \(\D_V\). But importantly, the restatement of the property allows us to reason rigorously about proof systems when the prover and verifier hold different distributions. Under universal soundness, when the verifier has access to \(\D_V\), running the protocol results in \(V\) rejecting or \(V\) accepting a hypothesis that is good for the verifier’s distribution, regardless of the prover’s distribution \(\D_P\).

In a bit more detail, we can imagine an honest prover with oracle access to \(\O_P\) for a distribution \(\D_P\), while a verifier has access to an oracle \(O_V\) for a completely different distribution \(\D_V\). In effect, we can view the honest prover \(P^{\O_P}\), as a possible cheating prover for any downstream verifier \(V^{\O_V}\). Still, if the verifier accepts the proof of some non-\(\bot\) hypothesis, then universal soundness guarantees that \(h \in \G(\D_V)\). The appeal of universal soundness shows itself when we consider non-interactive proofs, where a prover wants to publish a fixed certificate, which any verifier (holding any \(\D_V\)) can verify for themselves. In this context, we can define pvCSVs as a non-interactive SQ protocol satisfying universal soundness.

Definition 11 (pvCSV). Fix a learning goal \(\G\), \(\tau_P,\tau_V > 0\), and \(\gamma>0\). A is a non-interactive SQ protocol, where a prover \(P\) with \(\tau_P\)-accurate SQ oracle for distribution \(\D_P\) publishes a hypothesis \(h \in \H\) with certificate \(\pi\). The pvCSV if any verifier \(V\) with \(\tau_V\)-accurate SQ oracle \(\O_V\) for distribution \(\D_V\) can read \((h,\pi)\) and accept or reject with the following guarantees:

  • : if \(\D_P = \D_V\), the honest prover, with \(\tau_P\)-accurate SQ oracle for \(\D_P\), can generate a hypothesis-certificate pair \((h,\pi) \gets P^{\O_P}\) such that \(V^{\O_V}\) accepts and \(h \in \G(\D_V)\) with probability at least \(1-\gamma\), over the random coins of \(P\) and \(V\).

  • : for any verifier distribution \(\D_V\), for any prover strategy \((h,\pi) \gets \tilde{P}^{\O_V}\), \(V^{\O_V}\) rejects or \(h\in\G(\D_V)\) with probability at least \(1-\gamma\) over the random coins of \(V\).

The construction of a pvCSV allows a prover with access to a distribution \(\D_P\) to execute an algorithm \(\A\) that learns \(\G\) once and publish the results \((h,\pi)\). Then, any party who is interested in running \(\A\) on their own distribution \(\D_V\) can, instead, run the verification algorithm \(V\) on \((h,\pi)\). If \((h,\pi)\) is accepted, then by universal soundness, \(h \in \G(\D_V)\) is guaranteed to be valid for the verifier’s distribution.

3.0.0.1 Remarks.

A few remarks about the definition of pvCSVs are in order.

  • Distributional Access:  We describe our pvCSVs as SQ protocols, then give sample-based implementations. That said, pvCSVs could equally encompass non-interactive protocols for verification of learning, with more general distributional access, provided we define a more general notion of universal soundness. As in [1], the type of statistical access available may serve as a qualitative difference in the complexity of the prover and verifier.

  • Complexity Measures:  Quantitatively, there are many measures of complexity one could track for pvCSVs. We will be most interested in the sample complexity (using i.i.d.random draws) of the honest prover and verifier from \(\D_P\) and \(\D_V\), respectively. In general, we may also track other natural complexity measures, such as the time complexity or size of the certificate.

  • Computational Soundness:  Definition 11 considers universal soundness with respect to computationally-unbounded provers. We also consider computationally-sound pvCSVs, where soundness only holds with respect to PPT algorithms. Concretely, we will prove soundness in the Random Oracle Model, where the failure probability is taken over the random draw of random oracle (in addition to the verifier’s coins).

  • On Robust Completeness?   Note that in our notion of completeness, we assume that the honest prover and verifier have access to exactly the same distribution \(\D_P = \D_V\). Given the motivating perspective on pvCSVs, we might hope for a weaker notion of distributional closeness required for completeness. Such a guarantee may be formally defined in future work. We remark that—paired with universal soundness—we still get some notion of robustness. If the verifier accepts \((h,\pi)\) then the distributions are indistinguishable, according to the queries asked by (a specific execution of) \(\A\), regardless of how close they are in any standard notion of statistical/computational indistinguishability.

3.1 A pvCSV for Every Deterministic SQ Algorithm↩︎

Our first construction establishes that every deterministic SQ algorithm has a statistically-sound pvCSV where the verifier answers \(k\) queries non-adaptively and has sample complexity \(O(\log(k))\), whereas the best known, efficient prover must answer \(k\) possibly adaptive queries with sample complexity scaling with \(\tilde{O}(\sqrt{k})\). We present the pvCSV scheme as a non-interactive SQ protocol, Protocol 1. To generate the certificate, the honest prover first simulates the execution of \(\A\) using the prover’s SQ oracle \(\O_P\), returning a hypothesis \(h\). Along the way, the prover writes down the list of queries \(\vec{q}\) and answers \(\O_P(\vec{q})\) provided by the oracle as the certificate. Then, the verifier also simulates the execution of \(\A\), but uses the digest of query-answer pairs \((\vec{q}, \O_P(\vec{q}))\) provided by the certificate, rather than making any adaptive statistical queries. Finally, the verifier runs a batch statistical validation of the answers provided in the certificate using its oracle \(\O_V\) for \(\D_V\). The key insight is that the verifier can non-adaptively check every (adaptively-chosen) query produced during the execution of \(\A\).

Figure 1: pvCSV for Determinstic SQ Algorithm
Figure 2: \mathsf{Validate}(\vec{q}, \vec{a}, \tau_P, \tau)   i.e., Non-adaptive Statistical Validation

We prove that Protocol 1 is a pvCSV where the verifier’s sample complexity scales “non-adaptively” even when an adaptive algorithm is necessary for learning. We start with the following lemma.

Lemma 1. Fix a learning goal \(\G\), \(\tau>0\). Suppose \(\A\) is a deterministic algorithm that \(\tau\)-SQ learns \(\G\). There is an SQ protocol \((P,V)\), described in Protocol 1, with the following properties:

(a) \((P,V)\) is a non-interactive SQ protocol that \((\tau/3,\tau/3,0)\)-SQ verifiers \(\G\)

(b) \(V\) uses a non-adaptive SQ oracle, regardless of the SQ adaptivity of \(\A\). That is, suppose \(\A\) has \(\tau\)-query complexity \((k,B)\); then,

- *$P$ has $\tau/3$-query complexity $(1,B)$;*

- *$V$ has $\tau/3$-query complexity $(k,B)$*

(c) \(V\) and \(P\) run in linear time in the original algorithm. That is, suppose \(\A\) runs in time \(T_\A(\tau)\); then both \(P\) and \(V\) run in time \(O(T_\A(\tau))\)

Proof. First, we analyze the prover and verifier’s query complexities. Observe that \(P\) runs a direct simulation of the queries issued by \(\A\), supported by \(\O_P\). Since \(\O_P\) is \(\tau/3\)-accurate, then \(P\) has \(\tau/3\)-query complexity \((k,B)\). In contrast, \(V\) calls \(\O_V\) once on all \(B\) queries through the \(\mathsf{Validate}\) subroutine. Since \(\O_V\) is \(\tau/3\)-accurate, \(V\) has \(\tau/3\)-query complexity \((1,B)\). So part (b) holds.

Next, we analyze run time. Observe that both \(P\) and \(V\) simulate an execution of \(\A\). While the oracles \(\O_P\) and \(\O_V\) are both \(\tau/3\)-accurate, the simulations of \(\A\) can assume \(\tau\)-accuracy, so the simulations take time \(O(T_\A(\tau))\). \(V\) also runs a statistical valdiation that checks the statistical closeness of the \(B\) queries, each of which takes constant time to evaluate in the query model, which is also linear in the run time of \(\A\). Thus, part (c) holds.

To complete the lemma, we show that \((P,V)\) is a non-interactive SQ protocol that \((\tau/3,\tau/3,0)\)-SQ verifies \(\G\).11 Observe by construction \((P,V)\) is non-interactive: \(P\) sends one message \((h,\pi)\) to \(V\). Next, we show \((P,V)\) satisfies perfect completenees and universal soundness for \(\G\)

Completeness:   We consider the honest protocol \((P,V)\) where \(\D_P=\D_V\). First, we show that \(V\) always accepts the honestly generated certificate \((h,\pi)\). Since \((h,\pi)\) is honestly generated, \(V\) can parse \(\pi\) into queries \(\vec{q}\) and answers \(\vec{a}\). Then it is sufficient to show that \(\pi\) is consistent with an execution of \(\A\) that results in the output \(h\). Consider the sequence of queries \(\vec{q} = (q_1,q_2,\ldots,q_B)\) listed in the certificate. We claim this is exactly the same sequence of queries that \(V\) will produce when simulating \(\A\). This claim follows (formally by induction on the sequence of queries) because \(\A\) is deterministic and the verifier’s simulation of \(\A\) uses the same query responses \(\vec{a} = (\O_P(q_1),\O_P(q_2),\ldots,\O_P(q_B))\) as the prover’s execution. By the same argument, the output \(h\) of the prover and verifier’s execution of \(\A\) will be the same (since \(\A\) is deterministic and operates on the same input sequence).

Second, we show that \(\pi\) passes the verifier’s statistical validation \(\mathsf{Validate}(\vec{q}, \vec{a}, \tau/3,\tau)\), according to \(\O_V\). Recall that \(\O_P\) and \(\O_V\) are both \(\frac{\tau}{3}\)-accurate oracles for \(\D_P = \D_V\), by assumption. Since the verifier issues the same queries \(q_1,q_2,\ldots,q_B\) to \(\O_V\), we see that, for each \(1 \le j \le B\), the comparison looks at the difference between \(\O_P(q_j)\) and \(\O_V(q_j)\). Both queries are within \({\tau}/{3}\) of the true expectation \(\E_{x \sim \D}[q_j(x)]\), so by the triangle inequality \(|\hat{a}_j - a_j| \le {2\tau}/{3}\). Therefore, \(\mathsf{Validate}\) always returns true, and \(V\) always accepts the honestly generated \((h,\pi)\).

So it is sufficient to show that \(h\in\G(\D_V)\). Recall that \(h\) is the output of running \(\A\) using a \({\tau}/{3}\)-accurate oracle for \(\D_P\). Because \(\D_P = \D_V\) (and \({\tau}/{3} \le \tau\)), this execution is also the result of running \(\A\) using some \(\tau\)-accurate oracle for \(\D_V\). Thus, by the assumption that \(\A\) \(\tau\)-SQ learns \(\G\), then \(h \in \G(\D_V)\). So, \((P,V)\) achieves completeness \(1\).

Universal Soundness:   Let \(\D_V\) be any distribution, and \(\O_V\) be any \(\tau/3\)-accurate SQ oracle for \(\D_V\). Take any cheating prover strategy \(\tilde{P}\), and consider the interaction \((\tilde{P}^{\O_V},V^{\O_V})\). It suffices to argue, as in the above argument for completeness, that if \(V\) accepts, then \(h \in \G(\D_V)\). If \(V\) accepts, then it must be the case that \(\pi\) is consistent with some execution of \(\A\) that results in outputting \(h\). Further, \(\mathsf{Validate}(\vec{q}, \vec{a}, \tau/3, \tau)\) passes, which implies the answers \(\vec{a}\) are within \({2\tau}/{3}\) of the responses from the verifier’s non-adaptive oracle query \(\hat{\vec{a}}=\O_V(\vec{q})\). Since \(\O_V\) is \(\tau/3\)-accurate with respect to \(\D_V\), by the triangle inequality, \(|a_j-\E_{x\sim \D_V}[q_j(x)]|\leq \tau\) for all \(1 \le j \le B\).

In combination, \(\pi\) gives the verifier a way to simulate \(\A\) using \(\tau\)-accurate answers its queries over \(\D_V\). The learning guarantee of \(\A\) implies that the returned hypothesis \(h\in\G(\D_V)\) must be valid. Thus under interaction with any prover cheater, the verifier \(V\) either rejects or accepts and outputs \(h\in\G(\D_V)\), and \((P,V)\) satisfies universal soundness \(0\). ◻

With this lemma in place, establishing our main theorem of this section is straightforward. To achieve an improved bound on the size of the certificate, we make the following optimization. Notice that our proof of correctness does not actually use the fact that the queries \(\vec{q}\) used by the prover are the same as the queries derived by the verifier’s simulation of \(\A\); instead, we only need that the answers in the certificate, \(\vec{a}\) are valid for the verifier’s queries. Thus, we do not need to include queries in the certificate at all: we need only the certificate be the list of answers, that is, \(\pi:=\vec{a}\). While including the names of the queries improves the clarity of the proof system, we derive an equally-valid SQ protocol where \(\pi:=\vec{a}\) in the following theorem.

Theorem 1 (Formal Statement of Theorem [result:deterministic]). Fix a learning goal \(\G\) and \(\tau > 0\). Suppose \(\A\) is a deterministic SQ algorithm that \(\tau\)-SQ learns \(\G\), which makes \(k\) adaptive queries to a \(\tau\)-accurate oracle \(\O\). For any \(\delta > 0\), there exists a pvCSV scheme for \(\G\) with failure probability \(\delta\) achievable in the following complexities.

  • Honest prover sample complexity: \(m_P \le O\left({\sqrt{k\cdot \log(k/\delta)\cdot \log(1/\delta)}}/{\tau^2}\right)\)

  • Verifier sample complexity: \(m_V \le O(\log(k/\delta)/\tau^2)\)

  • Certificate size: \(\card{\pi} \le O(k \cdot \log(1/\tau))\)

Proof. Let \((P,V)\) be Protocol 1. By Lemma 1, to run a fully-adaptive SQ algorithm using \(k\) queries, it suffices to have a \((k,k,{\tau}/{3})\)-implementation of \(\O_P\) and a \((1,k,{\tau}/{3})\)-implementation of \(\O_V\). The honest prover and verifier sample complexities follow from Proposition [prop:full-adaptive-upper] and Proposition [prop:non-adaptive], respectively. The original SQ verification protocol contributes \(\gamma = 0\) failure probability, so by union bounding over the failure probability of implementing \(\O_P\) and \(\O_V\), completeness and universal soundness hold with probability at least \(1-\delta\).

Finally, we analyze the size of the certificate \(\pi\). Without loss of generality, we modify the certificate so that \(\pi:=\vec{a}\), and the verifier so that it doesn’t check for \(\tilde{q}_i=q_i\). As mentioned above, this does not change the validity of Lemma 1. Every answer to a statistical query requires \(O(\log(1/\tau))\) bits of space. Since \(\pi=\vec{a}=(a_1,a_2,\ldots,a_B)\), then \(|\pi|=O(B\log(1/\tau))\). ◻

Finally, we remark informally on the time complexities of the honest prover and verifier. Both parties run a direct simulation of the original SQ algorithm \(\A\). Additionally, the honest prover must implement the mechanism of [18] for adaptive data analysis to answer the queries to \(\O_P\), whereas \(\O_V\) may respond with the empirical statistics from its sample. In most settings, the overall running time for both will be dominated by the simulation of \(\A\).

4 Delegation of Randomized SQ Learning↩︎

In this section, we address delegating SQ learning algorithms that use randomness. Our investigation leads us to develop a number of new definitions and tools for understanding SQ protocols. With these tools in place, we obtain (computationally-sound) pvCSVs, not only for randomized SQ algorithms, but for a large class of SQ protocols.

We start by giving essential definitions, highlighting important properties of randomized SQ algorithms and protocols. Using these definitions, we then show that for a large class of SQ protocols, there exists a reformulation into a Canonical SQ Protocol. This canonical protocol allows for non-adaptive verification of the statistical queries, leading to exponential savings in sample complexity for the verifier, for any original SQ protocol (including randomized algorithms that make adaptive statistical queries). We conclude the section with a construction of pvCSVs for this class, by showing how to apply a Fiat-Shamir transformation to the canonical protocol.

4.1 Definitions for Randomized SQ Learning and SQ Protocols↩︎

To begin, we fix a standard, mechanical format for describing randomized SQ algorithms that proceed in epochs. In the \(t\)-th epoch,

  • \(\A\) samples randomness \(r_t \in \{0,1\}^{d_t}\), for some (efficiently-bounded) \(d_t \in \mathbb{N}\)

  • \(\A\) then executes a deterministic SQ algorithm \(\A_t\) as a subroutine, with \(r_t\) as fixed input, which may issue adaptive statistical queries.

The choice of the \(t\)-th subroutine \(\A_t\) may be chosen adaptively as a function of prior randomness, as well as any statistical queries issued. In terms of expressivity, formatting randomized algorithms into epochs is not a restriction, as we can simulate any algorithm in this format. But the number of epochs turns out to be a key quantity that affects the complexity of our proof systems.

Definition 12 (Epoch Complexity). Fix \(\tau > 0\) and \(\ell\in\Nbb\). A randomized SQ algorithm \(\A\) has if for any \(\tau\)-accuate SQ oracle \(\O\), the execution of \(\A^\O\) can be broken into \(\ell\) epochs.

Extending the notion of epoch complexity to SQ protocols, we standardize the verifier’s execution similarly. In the \(t\)-th epoch,

  • \(V\) samples randomness \(r_t\in\{0,1\}^{d_t}\) for some (efficiently-bounded) \(d_t\in\N\)

  • \(V\) executes a deterministic, interactive SQ algorithm \(V_t\) as a subroutine, with \(r_t\) as a fixed input, which may issue adaptive statistical queries and communicate with \(P\).

Again, the choice of the \(t\)-th subroutine \(V_t\) can be chosen adaptively based on prior randomness, \(V\)’s internal state, and messages from the prover.

Definition 13 (Epoch Complexity of SQ Protocols). Fix \(\tau_V > 0\) and \(\ell\in\Nbb\). An SQ verifier \(V\) has if for any prover \(\tilde{P}\) and any \(\tau_V\)-accurate SQ oracle \(\O_V\), the execution of \(V\) within the interaction \((\tilde{P}^{\O_V},V^{\O_V})\) can be broken into \(\ell\) epochs.

Intuitively, formatting randomized algorithms (and SQ verifiers) into epochs allows us to separate “adaptivity” of \(\A\) based on fresh randomness and adaptivity based on the results of statistical queries (and prover messages). In the extreme, each epoch could issue a single statistical query, so adaptivity to the randomness and queries are essentially the same. At the other extreme, we might consider algorithms that start with a random initialization, but then proceed deterministically. Such algorithms may still make adaptive SQ queries, but could be implemented in a single epoch. The number of epochs serves as a natural complexity measure of the algorithm’s use of its randomness.

4.1.0.1 Oblivious vs.Public-State SQ Oracles.

Recall that we model an SQ oracle as a stateful algorithm, who may respond adversarially (within \(\tau\)-accuracy) based on the state of the algorithm \(\A\). When our algorithms leverage randomness, we need to reason about what knowledge the oracle \(\O\) has about the algorithm’s internal state—namely, the randomness sampled at the current epoch.

One standard notion of SQ oracle allows the algorithm to maintain private state from the oracle. In this case, the algorithm need not reveal any of its random coins to the oracle. We refer to such oracles as oblivious SQ oracles, which follow the earlier notion given in Definition 1.

For randomized SQ algorithms, we mainly focus on oracles, who may respond adversarially with full knowledge of the algorithm’s randomness. This notion is captured by a public-state SQ oracle.

Definition 14 (Public-State SQ Oracle). A is a stateful algorithm \(\O:\Q\times \{0,1\}^* \to [0,1]\) that takes as input a query \(q\in \Q\) and a string \(r\in\{0,1\}^*\) representing random coins, and responds with an evaluation \(\O(q,r)\in [0,1]\).

For \(\tau > 0\), the oracle \(\O\) is if for any finite, adaptively chosen sequence of \(k \in \mathbb{N}\) queries and randomness \((q_1,r_1), (q_2,r_2),\ldots, (q_k,r_k)\), for all \(i \in [k]\), \[\begin{gather} \card{\O(q_i,r_i) - \E_{X \sim \D}[q_i(X)]} \le \tau. \end{gather}\] Concretely, consider a sequence issued by a randomized SQ algorithm \(\A\). In the \(t\)-th epoch, whenever \(\A^t\) issues a query \(q \in \Q\), the randomness \(r_1 \ldots r_t\) is sent to the public-state oracle \(\O(q,r_1 \ldots r_t)\).

Further, a randomized SQ algorithm , if correctness holds for any \(\tau\)-accurate public-state SQ oracle \(\O\); an SQ protocol \((P,V)\) , if completeness and soundness hold for any \(\tau_V\)-accurate public-state SQ oracle \(\O_V\).

In other words, a randomized algorithm equipped with a public-state SQ oracle may, as usual, specify the query \(q \in \Q\) of interest, but necessarily reveals the randomness sampled so far. By the standardization into epochs, the randomness captures all of the state of \(\A\).

Note that any algorithm/protocol that succeeds with access to a public-state oracle also works with an oblivious oracle, but the converse is not true. Correctness with respect to a public-state oracle is a stronger guarantee: no matter what information is leaked to the oracle through interaction, the algorithm will work. That said, proving correctness may be more challenging, so designing correct algorithms with a public-state oracle may be harder than with an oblivious oracle.

4.1.0.2 Public-Coin SQ Protocols.

As with traditional interactive protocols, we can distinguish SQ protocols based on the verifier’s communication of its randomness. Key to our study of non-interactive proof systems for randomized SQ algorithms, we first consider public-coin interactive SQ protocols. Defining public-coin protocols when the verifier is equipped with an SQ oracle (which may introduce non-determinism) is nuanced. We consider two alternative definitions.

Definition 15 (Public-Coin SQ Protocols). An SQ protocol \((P,V)\) is a (standard) SQ protocol if in every round of communication, \(V\) samples a uniformly random string \(r\), independent of all prior randomness and messages, and sends \(r\) to \(P\). Concretely, for \(V\) of epoch complexity \(\ell\), the protocol consists of \(\ell\) rounds, where in the \(t\)-th round, \(V_t\) sends its randomness \(r_t\) to \(P\).

Definition 16 (Mixed-Message SQ Protocols). An SQ protocol \((P,V)\), where \(V\) has epoch complexity \(\ell\). \((P,V)\) is a (public-coin) SQ protocol if for all \(t = 1,\ldots,\ell\), the first message of the \(t\)-th epoch is from \(V_t\) to \(P\) and includes the epoch’s randomness \(r_t\).

In other words, a standard public-coin SQ protocol adopts the formalism that the only messages the verifier sends to the prover are its randomness, whereas a mixed-message SQ protocol must reveal its randomness to the prover, but may also send non-random challenges. Without an SQ oracle, the distinction is moot: in the \(t\)-th epoch, \(V_t\) is a deterministic algorithm, so the prover can simulate any challenges it would receive and respond accordingly. But with an SQ oracle—which may respond adversarially within its tolerance—\(V_t^{\O_V}\) may have non-deterministic behavior, even conditioned on \(r_t\). Thus, in principle, mixed-message SQ protocols could be more expressive than public-coin SQ protocols. Despite this distinction, our main result in Section 4.2 (Protocol 3) implies that (as in standard interactive proofs) any mixed-message SQ protocol can be compiled into a public-coin SQ protocol with the same completeness and soudness guarantees.

4.1.0.3 Public-Query SQ Protocols.

A final consideration in classifying SQ protocols is whether the verifier’s queries are kept private or made public to the prover. A public-query protocol reveals its queries to the prover at every round of communication.

Definition 17 (Public-Query SQ Protocols). An SQ protocol \((P,V)\) is a SQ protocol if in every round \(i\) of communication, the \(i\)th message \(m_i\) from \(V\) to \(P\) includes every statistical query \(q_{i_1},\ldots,q_{i_j}\) issued by \(V\) to \(\O_V\) since the previous message \(m_{i-1}\).

Note that, per the discussion above, whether the verifier’s queries are public or private is orthogonal to whether the verifier’s coins are public or private. That said, Protocol 3 also implies that any public-coin, private-query protocol can be made public-query. In this sense, we use the term “public-query” to refer to private-coin, public-query SQ protocols. We explore public-query protocols further when we consider the strength and limits of SQ proof systems beyond pvCSVs in Section 5.

4.2 A Canonical Public-Coin SQ Protocol↩︎

With the preliminaries on randomized SQ algorithms and SQ protocols in place, we are ready to describe protocols for delegating randomized SQ algorithms. We describe, in Protocol 3, an interactive public-coin SQ protocol for delegating any randomized SQ algorithm that SQ-learns a concept \(\G\) with public state. In fact, our protocol is much more general, and can take any mixed-message, private-query SQ protocol that SQ-verifies \(\G\) with public verifier state (which include all randomized SQ algorithms with public state) and compile it into a canonical public-coin SQ protocol, where the verifier issues a single non-adaptive batch of statistical queries.

Figure 3: Canonical SQ Protocol

4.2.0.1 Protocol Description.

Protocol 3 works as follows. We start with a mixed-message SQ protocol \((P,V)\) where the verifier may make private statistical queries, and each player is arbitrarily-adaptive in their queries. Note that randomized SQ algorithms are the special case of such protocols, where the algorithm must accept \(h\) or output \(\bot\) without assistance from any prover. We want to build a public-coin, public-query SQ protocol \((\mathsf{P}_\mathsf{can},\mathsf{V}_\mathsf{can})\) where the verifier issues a single batch of statistical queries. As in Protocol 1, the verifier will delegate its queries to the prover and check them at the end.

Because \((P,V)\) is mixed-message, we know that the verifier \(V\) starts each epoch by sending its randomness to the prover. This random message will be the only message \(\mathsf{V}_\mathsf{can}\) sends to \(\mathsf{P}_\mathsf{can}\) per epoch; then, \(\mathsf{P}_\mathsf{can}\) will be responsible for simulating the remaining interactive execution of that epoch. \(\mathsf{P}_\mathsf{can}\) will use its own SQ oracle \(\O_{\mathsf{P}_\mathsf{can}}\) to make any queries. This aspect of the protocol—where the prover simulates the queries of the verifier with knowledge of its randomness—is where we need to leverage the assumption that \((P,V)\) learns \(\G\) with public verifier state; that is, even if the oracle (or in this case the prover) can respond adversarially based on the state of the verifier, the protocol is still sound. Once the epoch finishes, \(\mathsf{P}_\mathsf{can}\) will send the transcript of the execution to \(\mathsf{V}_\mathsf{can}\), who can update state and move to the next epoch.

At the end, the canonical verifier \(\mathsf{V}_\mathsf{can}\) checks to ensure that the prover faithfully simulated the execution of \(P\) and \(V\). Finally, \(\mathsf{V}_\mathsf{can}\) runs a statistical check to make sure all of the query values reported by the prover are actually within the required tolerance of the original protocol.

In all, we obtain the following guarantee on our canonical public-coin SQ protocol.

Lemma 2 (Formal Statement of Lemma [result:canonical]). Fix a learning goal \(\G\), \(\tau_P,\tau_V > 0\), and \(\gamma > 0\), and let \(\tau_P' = \min\{\tau_P,\tau_V/3\}\) and \(\tau_V' = \tau_V/3\). Suppose \((P,V)\) is a mixed-message, private-query SQ protocol that \((\tau_P,\tau_V,\gamma)\)-verifies \(\G\) with public verifier state. There is an SQ protocol \((\mathsf{P}_\mathsf{can},\mathsf{V}_\mathsf{can})\), described in Protocol 3, with the following properties:

(a) \((\mathsf{P}_\mathsf{can},\mathsf{V}_\mathsf{can})\) is a public-coin SQ protocol that \((\tau_P',\tau_V',\gamma)\)-verifies \(\G\)

(b) For \(V\) of epoch complexity \(\ell\), \((\mathsf{P}_\mathsf{can},\mathsf{V}_\mathsf{can})\) has at most \(\ell\) rounds of interaction.

(c) \(\mathsf{V}_\mathsf{can}\) uses a non-adaptive SQ oracle, regardless of the SQ adaptivity in \((P,V)\). That is,
suppose \(V\) has \(\tau_V\)-query complexity \((k_V,B_V)\) and \(P\) has \(\tau_P\)-query complexity \((k_P,B_P)\); then,

- *$\mathsf{V}_\mathsf{can}$ has $\tau_V'$-query complexity
  $(1,B_V)$;*

- *$\mathsf{P}_\mathsf{can}$ has $\tau_P'$-query complexity
  $(k_P+k_V,B_P+B_V)$*

(d) \(\mathsf{V}_\mathsf{can}\) and \(\mathsf{P}_\mathsf{can}\) run in linear time in the original protocol. That is,
suppose \(V\) runs in time \(T_V(\tau_V)\) and \(P\) runs in time \(T_P(\tau_P)\); then

- *$\mathsf{V}_\mathsf{can}$ runs in time $O(T_V(\tau_V))$*

- *$\mathsf{P}_\mathsf{can}$ runs in time
  $O(T_V(\tau_V) + T_P(\tau_P))$*

(e) For \(P\) of communication complexity \(c_P\), \(\mathsf{P}_\mathsf{can}\) has communication complexity \(O(B_V\log(1/\tau_P')) + c_P\).

Proof. Before we prove that the canonical protocol verifies \(\G\), we will analyze the other properties first. First, we analyze round complexity. Observe by construction that each round of communication corresponds to one epoch of \(V\). Since \(V\) has epoch complexity \(\ell\), \((\mathsf{P}_\mathsf{can},\mathsf{V}_\mathsf{can})\) has round complexity \(\ell\). So part (b) holds.

Next, we analyze statistical complexity. Observe that \(\mathsf{P}_\mathsf{can}\) simulates the interaction \((P^{\O_{\mathsf{P}_\mathsf{can}}},V^{\O_{\mathsf{P}_\mathsf{can}}})\), so \(\O_{\mathsf{P}_\mathsf{can}}\) must answer at most \(B_P\) queries from \(P\) and \(B_V\) queries from \(V\), and compose the rounds of adaptivity for \(k_P+k_V\) rounds. Thus \(\mathsf{P}_\mathsf{can}\) has \(\tau_P'\)-query complexity \((k_P+k_V, B_P+B_V)\). Meanwhile, \(\mathsf{V}_\mathsf{can}\) only checks the statistical validity of the proposed verifier’s queries in a single batch to \(\O_{\mathsf{V}_\mathsf{can}}\), so it has \(\tau_V'\)-query complexity \((1, B_V)\). Therefore part (c) holds.

Next, we analyze run time. \(\mathsf{P}_\mathsf{can}\) just simulates the entire interaction \((P^{\O_{\mathsf{P}_\mathsf{can}}},V^{\O_{\mathsf{P}_\mathsf{can}}})\). While \(\O_{\mathsf{P}_\mathsf{can}}\) operates at \(\tau_P'\) accuracy, in order to meet the \((\tau_P,\tau_V,\gamma)\)-learning guarantee of the original protocol, \(\mathsf{P}_\mathsf{can}\) simulates \(P\) running at \(\tau_P\) accuracy and \(V\) running at \(\tau_V\) accuracy. So \(\mathsf{P}_\mathsf{can}\) runs in time \(O(T_V(\tau_V)+T_P(\tau_P))\). Similarly, \(\mathsf{V}_\mathsf{can}\) simulates \(V\) but using transcript \(\pi\) and running at \(\tau_V\) accuracy. So \(\mathsf{V}_\mathsf{can}\) runs in time \(O(T_V(\tau_V))\), and part (d) holds.

Now, we analyze the \(\mathsf{P}_\mathsf{can}\)’s communication complexity. In the description of Protocol 3, \(\mathsf{P}_\mathsf{can}\) implicitly sends the entire transcript \(\pi\) of the simulation of \((P,V)\), which comprises of the queries \(\vec{q}_V\) and answers \(\vec{a}_V\) of \(V\), public coins \(\tilde{\vec{r}}\) of \(V\), non-random messages \(\vec{s}\) from \(V\) to \(P\), and messages \(\vec{m}\) from \(P\) to \(V\). However, strictly speaking \(\mathsf{P}_\mathsf{can}\) does not need to relay \(\vec{q}_V\), \(\tilde{\vec{r}}\), and \(\vec{s}\). \(\mathsf{V}_\mathsf{can}\) already has the true public coins \((r_1,\ldots,r_\ell)\), and can simulate \(V\) using that, \(\vec{a}_V\) and \(\vec{m}\) to generate the missing \(\vec{q}_V\) and \(\vec{s}\). Therefore, we can simplify \(\mathsf{P}_\mathsf{can}\)’s communication complexity to just \(\vec{a}_V\) and \(\vec{s}\). Then note \(|\vec{a}_V| =O(B_V\log(1/\tau_P'))\). And \(|\vec{s}|=c_P\), the communication complexity of \(P\). So \(\mathsf{P}_\mathsf{can}\)’s communication complexity is \(O(B_V\log(1/\tau_P')+c_P\), and part (e) holds.

To complete the lemma, we show that \((\mathsf{P}_\mathsf{can},\mathsf{V}_\mathsf{can})\) is a public-coin SQ protocol that \((\tau_P',\tau_V',\gamma)\)-SQ verifies \(\G\). First, observe that \(\mathsf{V}_\mathsf{can}\) sends all random coins generated for the \(\ell\) rounds of communication, so it is public-coin. As noted in part (c), \(\mathsf{P}_\mathsf{can}\) employs a \(\tau_P'\)-accurate SQ oracle, and \(\mathsf{V}_\mathsf{can}\) employs a \(\tau_V'\)-accurate SQ oracle. So what remains to be shown is that the canonical transformation preserves \(1-\gamma\) completeness and \(\gamma\) soundness.

Completeness:   Assume \(\D_P=\D_V\), and consider the honest protocol \((\mathsf{P}_\mathsf{can},\mathsf{V}_\mathsf{can})\) whose interaction generates \((h,\pi)\). First, we note that in the honest protocol, \(\pi\) is well-formatted, so the canonical verifier can parse \(\pi\) into \((\vec{q}_V, \vec{a}_V,\tilde{\vec{r}},\vec{s},\vec{m})\) and successfully check that \(\pi\) is consistent with an execution of \((P,V)\) that outputs \(h\). That is, \(V\), using randomness \(\tilde{\vec{r}}\) receiving evaluations \(\vec{a}_V\) and messages \(\vec{m}\), will make queries \(\vec{q}_V\), send messages \(\vec{s}\), and output the hypothesis \(h\). This works since \(\mathsf{P}_\mathsf{can}\) will properly simulate \((P,V)\) and relay the transcript to \(\mathsf{V}_\mathsf{can}\).

Second, we show that \(\vec{a}\) passes the canonical verifier’s statistical validation \(\mathsf{Validate}(\vec{q}_V,\vec{a}_V,\tau_V/3,\tau_V)\), according to \(\O_{\mathsf{V}_\mathsf{can}}\). Recall that \(\O_{\mathsf{P}_\mathsf{can}}\) is \(\tau_P'\)-accurate for \(\D_P\) (which is equal to \(\D_V\) by assumption) and \(\tau_P'\leq \tau_V'\). Similarly, \(\O_{\mathsf{V}_\mathsf{can}}\) is \(\tau_V'\)-accurate for \(\D_V\) and \(\tau_V'=\tau_V/3\). Thus, by the specification of \(\mathsf{Validate}\) (which uses an argument via triangle inequality), statistical validation passes. Additionally since \(\tilde{\vec{r}}\) is generated via \(\mathsf{V}_\mathsf{can}\)’s random coins \((r_1,\ldots,r_\ell)\), in all \(\mathsf{V}_\mathsf{can}\) will always accept unless \(h=\bot\).

Thus, it is sufficient to argue that, under the honest protocol, \(h\in\G(\D_V)\) with probability at least \(1-\gamma\). Recall that \(h\) is the output of simulating \((P^{\O_{\mathsf{P}_\mathsf{can}}},V^{\O_{\mathsf{P}_\mathsf{can}}})\) on randomness \(\tilde{\vec{r}}\). Since \(\O_{\mathsf{P}_\mathsf{can}}\) is a \(\tau_P'\)-accurate for \(\D_P\) and \(\tau_P'\leq\tau_P\), then the simulated \(P\) has access to a \(\tau_P\)-accurate oracle for \(\D_P\). Similarly, since \(\D_P=\D_V\) by assumption, \(\tau_P'\leq \tau_V\), and \(\mathsf{P}_\mathsf{can}\) knows all random coins sent by \(\mathsf{V}_\mathsf{can}\), then the simulated \(V\) has access to a public-state \(\tau_V\)-accurate oracle for \(\D_V\). Since randomness is uniform and generated in epochs according to the canonical verifier, the simulation of \((P^{\O_{\mathsf{P}_\mathsf{can}}},V^{\O_{\mathsf{V}_\mathsf{can}}}(\tilde{\vec{r}}))\) is indistinguishable from a true execution of \((P,V)\). Since \((P,V)\) \((\tau_P,\tau_V,\gamma)\)-SQ verifies \(\G\), then \(h\in\G(\D_V)\) with probability at least \(1-\gamma\). Thus, completeness of \((\mathsf{P}_\mathsf{can},\mathsf{V}_\mathsf{can})\) is \(1-\gamma\).

Universal Soundness:   It suffices to show that universal soundness of \(\mathsf{V}_\mathsf{can}\) reduces to the universal soundness \(V\). Take any cheating prover strategy \(\tilde{P}_\mathsf{can}\) for \(\mathsf{V}_\mathsf{can}^{\O_{\mathsf{V}_\mathsf{can}}}\). We construct a cheating prover \(\tilde{P}\) and oracle \(\tilde{O}_V\) for \(V\) as follows. We will argue anytime \(\tilde{P}_\mathsf{can}\) cheat, then \((\tilde{P}, \tilde{O}_V)\) cheats as well. Without loss of generality, let \(\tilde{P}_\mathsf{can}\) be deterministic. Let \(\tilde{P}\) and \(\tilde{\O}_V\) each simulate \(\tilde{P}_\mathsf{can}\), where the randomness of each epoch of \(V\) is used as input. If the simulation of \(\tilde{P}_\mathsf{can}\) produces a valid transcript \(\pi=(\vec{q}_V, \vec{a}_V,\tilde{\vec{r}},\vec{s},\vec{m})\), then \(\tilde{\O}_V\) responds as the answers \(\vec{a}_V = (a_{1},a_2,\ldots,a_{B_V})\) and \(\tilde{P}\) responds as the messages \(\vec{m} = (m_1,m_2,\ldots)\). To ensure that \(\tilde{\O}_V\) is a \(\tau_V\)-accurate oracle for \(\D_V\), any answer \(a\) which is \(\tau\)-far from the true expectation for \(\D_V\) will be replaced with an arbitrary \(\tau_V\)-accurate answer for \(\D_V\). In the case where \(\tilde{P}_\mathsf{can}\) does not produce a valid transcript, then \(\tilde{P}\) will always reply with a well-formed dummy message and \(\tilde{\O}_V\) will always reply with a \(\tau_V\)-accurate answer.

We now reduce from between \((\tilde{P}_\mathsf{can},\mathsf{V}_\mathsf{can}^{\O_{\mathsf{V}_\mathsf{can}}})\) and \((\tilde{P},V^{\tilde{\O}_V})\). Let the random coins of \(\mathsf{V}_\mathsf{can}\) and \(V\) be the same random coins. Let us condition on the event that \((\tilde{P}_\mathsf{can},\mathsf{V}_\mathsf{can}^{\O_{\mathsf{V}_\mathsf{can}}})\) accepts. Then \(\tilde{P}_\mathsf{can}\) must have produced a valid transcript \(\pi=(\vec{q}_V, \vec{a}_V,\tilde{\vec{r}},\vec{s},\vec{m})\) and a hypothesis \(h\neq\bot\) where \(\pi\) corresponds to a simulation of \(V\) that produces \(h\). Further, \(\mathsf{Validate}(\vec{q}_V,\vec{a}_V,\tau_V/3,\tau_V)\) passed. Then \(\vec{a}_V\) are \(2\tau_V/3\)-close to the answers from \(\O_{\mathsf{V}_\mathsf{can}}(\vec{q}_V)\). Since \(\O_{\mathsf{V}_\mathsf{can}}\) is \(\tau_V/3\)-accurate for \(\D_V\), then by triangle inequality, \(\vec{a}_V\) are \(\tau_V\)-accurate for \(\D_V\).

Since the random coins are shared between \(\mathsf{V}_\mathsf{can}\) and \(V\), \((h,\pi)\), as generated above, is also the output of \(\tilde{P}\) and \(\tilde{\O}_V\)’s simulation of \(\tilde{P}_\mathsf{can}\). Recall that we are conditioning on the event that the \(\mathsf{V}_\mathsf{can}\) accepts. Thus, all answers \(\vec{a}_V\) are \(\tau_V\)-accurate for \(\D_V\), and all messages \(\vec{m}\) are well-formed. Thus, \(\tilde{P}\) sends messages \(\vec{m}\), and \(\tilde{O}_V\) provides answers \(\vec{a}_V\). Therefore, the view of the verifier in \((\tilde{P}, V^{\O_V})\) is indistinguishable from \(\mathsf{V}_\mathsf{can}\) simulation of \(V\) using \(\pi\). Since \(\mathsf{V}_\mathsf{can}\) accepted and output \(h\), then \(V\) must have accepted and also output \(h\).

Suppose that \((\tilde{P}_\mathsf{can},\mathsf{V}_\mathsf{can}^{\O_{\mathsf{V}_\mathsf{can}}})\) accepts and outputs \(h\notin\G(\D_V)\) with probability \(\gamma'\). Then by monotonicity, \((\tilde{P},V^{\tilde{\O}_V})\) accepts and outputs \(h\notin\G(\D_V)\) with probability at least \(\gamma'\). But \((\tilde{P}, V^{\tilde{\O}_V})\) accepts and outputs \(h\notin\G(\D_V)\) with probability at most \(\gamma\) by universal soundness of \((P,V)\). Therefore, \(\gamma'\leq \gamma\). Since this holds over all \(\D_V\) and \(\tau_V/3\)-accurate oracles \(\O_V\) for \(\D_V\), then \((\tilde{P}_\mathsf{can},\mathsf{V}_\mathsf{can}^{\O_{\mathsf{V}_\mathsf{can}}})\) accepts and outputs \(h\notin\G(\D_V)\) with probability at most \(\gamma\). So \((\mathsf{P}_\mathsf{can},\mathsf{V}_\mathsf{can})\) satisfies universal soundness \(\gamma\). ◻

4.3 pvCSVs from the Canonical Protocol and Fiat-Shamir↩︎

Next, we construct pvCSVs for SQ computations that use randomness. Specifically, we compile the canonical Protocol 3 from above into non-interactive SQ protocols using a Fiat-Shamir transformation [23]. We prove soundness of the transformation in the Random Oracle Model (ROM), which allows us to replace the public coins of the verifier with non-interactive calls to the random oracle. We begin with preliminaries defining correctness and soundness in the ROM. Then, we describe our Fiat-Shamir transformation over canonical SQ protocols in Protocol 4.

4.3.0.1 pvCSVs in the ROM.

In the Random Oracle Model [22], both the prover and verifier have query access to a shared random function called the random oracle \(f:\{0,1\}^*\to\{0,1\}^m\) for some output size \(m\in\Nbb\). Completeness and soundness take probabilities over the sampling of the random oracle which is denoted \(f\gets\U\). Furthermore, we restrict the cheating prover to at most \(t\in\Nbb\) queries of the random oracle, called the random oracle budget, typically taken to be polynomial in some security parameter. We adapt Definition 11 of pvCSVs to define computationally-sound pvCSVs in the ROM.

Definition 18 (pvCSV in the ROM). Let \(\G\), \(\tau_P,\tau_V>0\), \(\gamma_\mathsf{csv}>0\), and \((\mathsf{P}_\mathsf{csv},\mathsf{V}_\mathsf{csv})\) be defined in the setup of Definition 11. The pvCSV prover \(\mathsf{P}_\mathsf{csv}\) and verifier \(\mathsf{V}_\mathsf{csv}\) are given query-access to a random oracle \(f\). The pvCSV if the following guarantees hold:

  • : if \(\D_P = \D_V\), then for any verifier distribution \(\D_V\), \(\tau_V\)-accurate oracle \(\O_V\) for \(\D_V\), \(\tau_P\)-accurate oracle \(\O_P\) for \(\D_V\), over sampling of the random oracle \(f\), random coins of \(\mathsf{P}_\mathsf{csv}\) and \(\mathsf{V}_\mathsf{csv}\), the honest prover can generate a hypothesis-certificate pair \((h,\pi) \gets \mathsf{P}_\mathsf{csv}^{\O_P,f}\) such that \(\mathsf{V}_\mathsf{csv}^{\O_V,f}\) accepts and \(h \in \G(\D_V)\) with probability at least \(1-\gamma\). That is, \[\forall \D_V,\O_V,\O_P.\;\Pr\left[\begin{array}{l} \mathsf{V}_\mathsf{csv}^{\O_V,f}(h,\pi)=1 \\ \land\;h\in\G(\D_V) \end{array} \left| \begin{array}{l} f\gets\U, \\ \text{random coins of \mathsf{P}_\mathsf{csv} and \mathsf{V}_\mathsf{csv}},\\ (h,\pi)\gets \mathsf{P}_\mathsf{csv}^{\O_P,f} \end{array}\right.\right] \geq 1- \gamma\]

  • : for any verifier distribution \(\D_V\) and \(\tau_V\)-accurate oracle \(\O_V\) for \(\D_V\), for any random oracle budget \(t\in\Nbb\), for any \(t\)-query prover strategy \(\tilde{P}_\mathsf{csv}\), for \((h,\pi) \gets \tilde{P}_\mathsf{csv}^{\O_V,f}\), then \(V^{\O_V}\) rejects or \(h\in\G(\D_V)\) with probability at least \(1-\gamma'(t)\) over sampling of the random oracle \(f\), random coins of \(\mathsf{V}_\mathsf{csv}\). That is, \[\forall \D_V,\O_V,\tilde{P}_\mathsf{csv}.\;\Pr\left[\begin{array}{l} \mathsf{V}_\mathsf{csv}^{\O_V,f}(h,\pi)=0 \\ \lor\;h\in\G(\D_V) \end{array} \left| \begin{array}{l}f\gets\U, \\ \text{random coins of V},\\ (h,\pi)\gets \tilde{P}_\mathsf{csv}^{\O_V,f} \end{array}\right.\right] \geq 1- \gamma'(t)\]

We denote ROM soundness against \(t\)-query provers as \(\gamma'(t)\) where \(\gamma'\) is a function and \(t\in\Nbb\) is the random oracle query budget. Additionally, since soundness is parameterized whereas completeness is not, we split completeness and soundness error into \((\gamma,\gamma')\).

4.3.0.2 Applying Fiat-Shamir to the Canonical Protocol.

We transform the Canonical SQ protocol \((\mathsf{P}_\mathsf{can},\mathsf{V}_\mathsf{can})\) into a pvCSV in the ROM by applying the Fiat-Shamir transformation to the initial phase of public-coin interaction. As is standard in Fiat-Shamir, the canonical verifier’s randomness in the \(i\)-th round is the query of the random oracle with the partial transcript of interaction up to round \(i\). We describe the resulting protocol \((\mathsf{P}_\mathsf{FS},\mathsf{V}_\mathsf{FS})\) in Protocol 4. The honest prover \(\mathsf{P}_\mathsf{FS}\) simulates the interaction \((\mathsf{P}_\mathsf{can},\mathsf{V}_\mathsf{can})\) where \(\mathsf{V}_\mathsf{can}\)’s randomness is sampled via the random oracle \(f\). Then, the verifier \(\mathsf{V}_\mathsf{FS}\) runs the second and third phase of the canonical protocol as before, checking the correctness of the computational simulation and the statistical validity of the relevant SQs via a batch evaluation of the queries of \(\mathsf{V}_\mathsf{can}\).

Figure 4: Non-Interactive SQ Protocol in Random Oracle Model

The correctness of the resulting pvCSV follows from the state restoration argument of [25], with some subtleties that arise in the SQ protocol setting. The structure of the Canonical protocol simplifies the analysis considerably: the protocol naturally divides into a phase of public-coin interaction, followed by (computational and statistical) verification of the transcript. Completeness of the protocol follows from completeness of Protocol 3, since the honest prover can execute the same sequence of queries and computations. Thus, we focus on establishing soundness.

There are two key aspects of Protocol 4 that require us to be careful in establishing soundness of the transformation. First, in our setting, the cheating prover has considerable powers related to the statistical learning problem, with full knowledge of the underlying distribution \(\D\) and access to the verifier’s SQ oracle. But, importantly, the cheating prover in the Fiat-Shamir protocol and Canonical protocol are afforded the same powers. The approach of establishing Fiat-Shamir soundness via state restoration is a black-box reduction, so we can apply the same argument even in our setting where the provers have non-standard computational and statistical powers. Second, our application of Fiat-Shamir is used to generate a legitimate prover-verifier transcript, which produces a hypothesis \(h\), rather than directly certifying a known predicate (e.g., certifying a given \(h \in \G(\D_V)\)). That said, once we have a sound transcript, Phase 2 and Phase 3 of the original protocol allow us to validate that the \(h\) is actually good for the verifier’s distribution.

Specifically, we invoke the following guarantee about the Fiat-Shamir transformation applied to public-coin protocols.

Theorem 2 (Corollary of Lemma 13.2.7 and Theorem 14.3.1 of [26]). Let \((P,V)\) be a public-coin interactive protocol with round complexity \(\ell\) and soundness \(\gamma\). Let \((\mathsf{P}_\mathsf{FS},\mathsf{V}_\mathsf{FS})\) be the Fiat-Shamir transformed protocol, and suppose it has \(\gamma_\mathsf{FS}\) soundness in the ROM. There is a black-box reduction that establishes the following upper bound on soundness of \((\mathsf{P}_\mathsf{FS},\mathsf{V}_\mathsf{FS})\) in terms of soundness of \((P,V)\), round complexity \(\ell\), and random oracle budget \(t\in\Nbb\). \[\gamma_\mathsf{FS}(t)\leq \binom{t+\ell}{\ell}\gamma\]

Specifically, the reduction goes through a state restoration game and demonstrates how, given a cheating prover for the Fiat-Shamir proof system \(\tilde{\mathsf{P}}_\mathsf{FS}\), there exists a cheating prover \(\tilde{P}\) for the original interactive protocol that makes calls to \(\tilde{\mathsf{P}}_\mathsf{FS}\), at a \(\binom{t+\ell}{\ell}\)-factor loss in success probability. With this fact, we establish the correctness of Protocol 4.

Lemma 3 (Fiat-Shamir for Canonical Protocol). Fix \(\G\), \(\tau_P,\tau_V>0\), \(\gamma_\mathsf{can}>0\), and canonical SQ protocol \((\mathsf{P}_\mathsf{can},\mathsf{V}_\mathsf{can})\) that \((\tau_P,\tau_V,\gamma_\mathsf{can})\)-verifies \(\G\) with round complexity \(\ell\). Then the Fiat- Shamir transformed protocol \((\mathsf{P}_\mathsf{FS},\mathsf{V}_\mathsf{FS})\), described in Protocol 4, is a pvCSV that \((\tau_P,\tau_V,\gamma_\mathsf{can},{t + \ell\choose \ell}\gamma_\mathsf{can})\)-certifies \(\G\) in the ROM where \(t\in\Nbb\) is the random oracle budget.

Proof sketch. Completeness is immediate, by the fact that the random oracle calls are identically distributed to the challenges sent by the public-coin verifier. Thus, the honest prover generates a transcript from the same distribution as the honest execution of Protocol 3.

Soundness follows by Theorem 2 applied to Phase 1 of Protocol 3. In particular, the black-box reduction allows us to convert any cheating prover for Protocol 4 \(\tilde{\mathsf{P}}_\mathsf{FS}\) into a cheating prover for Protocol 3 \(\tilde{\mathsf{P}}_\mathsf{can}\). While the provers are afforded non-standard SQ oracles and knowledge of the distribution, the Canonical interactive prover \(\tilde{\mathsf{P}}_\mathsf{can}\) has the same oracle access as the Fiat-Shamir prover \(\tilde{\mathsf{P}}_\mathsf{FS}\), so \(\tilde{\mathsf{P}}_\mathsf{can}\) can implement the black-box calls to \(\tilde{\mathsf{P}}_\mathsf{FS}\) in the reduction. Thus, converting the interactive SQ protocol into a non-interactive protocol is sound up to the \(\gamma_\mathsf{FS}(t)\leq \binom{t+\ell}{\ell}\gamma_\mathsf{can}\) loss as stated in Theorem 2. In particular, the Fiat-Shamir protocol generates a legitimate transcript of the original Canonical protocol, with all but \(\gamma_\mathsf{FS}(t)\) soundness error.

Finally, we argue that in the SQ model, the verifier’s additional checks establish that \(h \in \G(\D_V)\) or result in rejection. After the non-interactive simulation of the interactive Phase 1, the verifier additionally executes Phase 2 and Phase 3 of Protocol 3. Phase 2 certifies that the transcript is a legitimate execution of the SQ protocol (based on the responses to statistical queries) and Phase 3 validates that the query responses are statistically correct. In the SQ model, these checks contribute zero additional soundness error. Thus, the upper bound on soundness holds as claimed. ◻

4.3.0.3 pvCSVs for all mixed-message protocols with public-verifier state.

We conclude with a statement of the overall pvCSV guarantee established in this section within the ROM. In Lemma 2, we argue that for the class of mixed-message, private-query SQ protocols with public verifier state can be transformed into a Canonical public-coin SQ protocol. Then, in Lemma 3, we apply the Fiat-Shamir transform to turn any Canonical protocol into a pvCSV in the ROM. Chaining these lemmas together, we obtain the following theorem.

Theorem 3. Fix \(\G\), \(\tau_P,\tau_V>0\), \(\gamma>0\), and a mixed-message, private-query SQ protocol \((P,V)\) with public verifier state. Let \(\tau_P'=\min\{\tau_P,\tau_V/3\}\) and \(\tau_V'=\tau_V/3\). Suppose \((P,V)\) \((\tau_P,\tau_V,\gamma)\)-verifies \(\G\). Applying the canonical transformation described in Protocol 3, and then the Fiat-Shamir transformation, described in Protocol 4, yields a pvCSV \((\mathsf{P}_\mathsf{FS},\mathsf{V}_\mathsf{FS})\) that certifies \(\G\) with the following characteristics:

(a) For \(V\) with epoch complexity \(\ell\), \((\mathsf{P}_\mathsf{FS},\mathsf{V}_\mathsf{FS})\) \((\tau_P',\tau_V',\gamma, {t+\ell\choose\ell}\gamma)\)-certifies \(\G\) in the ROM.

(b) \(\mathsf{V}_\mathsf{FS}\) uses a non-adaptive SQ oracle, regardless of the SQ adaptivity in \((P,V)\). That is,
suppose \(V\) has \(\tau_V\)-query complexity \((k_V,B_V)\) and \(P\) has \(\tau_P\)-query complexity \((k_P,B_P)\); then,

- *$\mathsf{V}_\mathsf{FS}$ has $\tau_V'$-query complexity
  $(1,B_V)$;*

- *$\mathsf{P}_\mathsf{FS}$ has $\tau_P'$-query complexity
  $(k_P+k_V,B_P+B_V)$*

(c) \(\mathsf{V}_\mathsf{FS}\) and \(\mathsf{P}_\mathsf{FS}\) run in linear time in the original protocol. That is,
suppose \(V\) runs in time \(T_V(\tau_V)\) and \(P\) runs in time \(T_P(\tau_P)\); then

- *$\mathsf{V}_\mathsf{can}$ runs in time $O(T_V(\tau_V))$*

- *$\mathsf{P}_\mathsf{can}$ runs in time
  $O(T_V(\tau_V) + T_P(\tau_P))$*

(d) For \(P\) with communication complexity \(c_P\), the certificate size \(|\pi|=O(B_V\log(1/\tau_P')) + c_P\).

Proof. Let \((\mathsf{P}_\mathsf{can},\mathsf{V}_\mathsf{can})\) be the intermediate, canonical SQ protocol. By Lemma 2, \((\mathsf{P}_\mathsf{can},\mathsf{V}_\mathsf{can})\) \((\tau_P',\tau_V',\gamma)\)-verifies \(\G\). Since \(V\) has epoch complexity \(\ell\), \((\mathsf{P}_\mathsf{can},\mathsf{V}_\mathsf{can})\) has round complexity \(\ell\). Therefore, by Lemma 3, \((\mathsf{P}_\mathsf{FS},\mathsf{V}_\mathsf{FS})\) \((\tau_P',\tau_V',\gamma,{t+\ell\choose \ell}\gamma)\)-certifies \(\G\) in the ROM. So part (a) holds.

Observe that the Fiat-Shamir transformation from \((\mathsf{P}_\mathsf{can},\mathsf{V}_\mathsf{can})\) to \((\mathsf{P}_\mathsf{FS},\mathsf{V}_\mathsf{FS})\) preserves many properties including the precision, query complexity, and runtime of the prover and verifier, (at least while assuming unit cost for evaluating the random oracle). Therefore, parts (b) and (c) follow directly from Lemma 2.

Let \(c_P\) be the communication complexity of \(P\). By Lemma 2, \(\mathsf{P}_\mathsf{can}\)’s communication complexity is \(O(B_V\log(1/\tau_P'))+c_P\). After applying the Fiat-Shamir transformation, the communication complexity is the canonical prover’s communication complexity. So, part (d) holds. ◻

By application of known implementations for adaptive and non-adaptive SQ oracles in Proposition [prop:full-adaptive-upper] and Proposition [prop:non-adaptive], we have the following.

Corollary 1. Let \(\G\), \(\tau_P\), \(\tau_V\), \(\gamma\), \((P,V)\), pvCSV \((\mathsf{P}_\mathsf{FS},\mathsf{V}_\mathsf{FS})\) be defined as in the above theorem. Let \(\tau_P'=\min\{\tau_P,\tau_V/3\}\). Suppose that both \(P\) and \(V\) make fully-adaptive queries, that is, \(k_P=B_P\) and \(k_V=B_V\). Then for all failure probability \(\delta>0\), the pvCSV has sample complexity \((m_{\mathsf{P}_\mathsf{FS}},m_{\mathsf{V}_\mathsf{FS}})\) is as follows:

5 Beyond pvCSVs: Strengths and Limits of SQ Protocols↩︎

In this section, we consider the power and limitations of SQ protocols. First, we reiterate that, statistically, SQ protocols are very powerful. In even more generic settings than our pvCSV constructions, SQ algorithms/protocols can be delegated via interactive SQ protocol such that the verifier’s sample complexity scales logarithmically in the number of queries. Then, we show that SQ protocols—despite their sample efficiency—do not generically provide a computationally efficient verification scheme. In particular, by a lower bound of [7] on the sample complexity required to PAC Verify certain VC classes, we show a subexponential lower bound on the query complexity of SQ verification for the same class.

5.0.0.1 Interactive Non-Adaptive SQ Verification.

One of the key limitations in our construction of pvCSVs is the reliance on correctness under a public-state SQ oracle. We show that it is possible to achieve non-adaptive statistical verification of SQ algorithms that are only correct under an oblivious SQ oracle, albeit with interaction. This result is analogous to a result showed in the recent journal version of [7]. Given any SQ algorithm, the verifier simply executes the algorithm using the prover as its oracle. The prover responds interactively to each query. And then at the end, the verifier checks the answers of the prover non-adaptively.

In fact, this simple idea also establishes that a large class of SQ protocols—even more general than those covered by Lemma 2—can be verified using non-adaptive statistical complexity. Specifically, for any public-query (private-coin) SQ protocol that verifies \(\G\) with public verifier state, there is an implementation of the protocol that only requires non-adaptive verifier sample complexity.

Fix a learning goal \(\G\), \(\tau_P,\tau_V > 0\), and \(\gamma > 0\), and let \(\tau_P' = \min\{\tau_P,\tau_V/3\}\) and \(\tau_V' = \tau_V/3\). Suppose \((P,V)\) is a public-query SQ protocol that \((\tau_P,\tau_V,\gamma)\)-verifies \(\G\) with public verifier state, where \(P\) has \(\tau_P\)-query complexity \((k_P,B_P)\) and \(V\) has \(\tau_V\)-query complexity \((k_V,B_V)\). There is an SQ protocol \((P',V')\) that \((\tau_P',\tau_V',\gamma)\)-verifies \(\G\) with public verifier state, where \(P'\) has \(\tau_P'\)-query complexity \((k_P + k_B,B_P + B_V)\) and \(V'\) has non-adaptive \(\tau_V'\)-query complexity \((1,B_V)\).

Proposition [prop:public-query] follows, again, by asking the prover to make the verifier’s statistical queries. The completeness, soundness, and resulting bounds are analogous to those established by Lemma 2.

5.0.0.2 Query Lower Bound for SQ Verification of a VC Class.

We show that the statistical upper bound we achieve for the SQ verifier actually implies a computational lower bound for SQ protocols. Specifically, there exists a hypothesis class of VC dimension \(d\) that cannot be SQ verified, even using the most general interactive SQ protocols, using polynomially many queries in \(d\). Our lower bound piggybacks off of the lower bound proved in [7] for PAC Verification.12

Fix \(\eps > 0\), \(\delta = 1/3\), and let \((P,V)\) be an interactive proof system for learning. For any hypothesis class \(\H\) of VC Dimension \(d\), if \((P,V)\) PAC verifies \(\H\) (for all distributions \(\D\)) with accuracy \(\eps\) and failure probability \(\delta\), then the verifier \(V\) must use at least \(m_V \ge \Omega(\sqrt{d}/\eps^2)\) i.i.d.samples from \(\D\).

Stringing this lower bound on the sample complexity of PAC verifying a VC class with our upper bound on the sample complexity of SQ verification, we immediately get a query complexity lower bound for SQ verification. Taking our upper bound of \(\log(k)/\tau^2\) from Proposition [prop:public-query], in terms of the number of statistical queries \(k\), and their lower bound of \(\sqrt{d}/\eps^2\) in terms of the VC dimension \(d\), we obtain the following corollary.

Corollary 2. Fix \(\gamma = 1/3\) and fix the verifier tolerance \(\tau_V = \Omega(\eps) > 0\) in terms of the agnostic learning accuracy \(\eps\). For every hypothesis class \(\H\) of VC dimension \(d\), and for any \(\tau_P > 0\), any public-query SQ protocol that \((\tau_P,\tau_V,\gamma)\)-SQ verifies \(\eps\)-Agnostic PAC learning of \(\H\) with public verifier state requires the verifier to make \(k = 2^{\Omega(\sqrt{d})}\) statistical queries.

That is, even for the strongest model of SQ protocol we consider—interactive, public-query SQ protocols that use a public-state SQ oracle—when the tolerance of the SQ oracle is fixed \(\tau_V \approx \eps\), verification may be computationally inefficient, despite statistical efficiency.

6 Differential Privacy and SQ Verification↩︎

In many statistical analyses, Differential Privacy (DP) [24] is a desirable property to satisfy to maintain the privacy of individuals’ data within a database.13 DP protects individuals’ privacy by requiring stability in a randomized algorithm’s behavior on neighboring databases \(D,D'\) that differ on a single element.

Definition 19 (Differential Privacy [24]). Fix a domain \(\X\) and range \(\R\), and \(\eps,\delta > 0\). A randomized algorithm \(M:\X^* \to \R\) is if for all neighboring databases \(D,D' \in \X^*\) and for all measurable subsets \(S \subseteq \R\), \[\Pr[M(D) \in S] \le e^{\eps} \cdot \Pr[M(D') \in S] + \delta.\]

DP provides rigorous protections to individuals, but comes at a cost. Even for non-adaptive statistical queries, in high-dimensional settings (\(d \ge k\)), answering \(k\) queries requires sample complexity scaling polynomially in \(k\). Concretely, to answer \(k\) queries with \(\tau\) tolerance under pure \((\eps,0)\)-DP requires \(\Omega(k/\tau\eps)\) i.i.d.samples from \(\D\) [42]; under approximate \((\eps,\delta)\)-DP requires \(\Omega(\sqrt{k \cdot \log(1/\delta)}/\tau\eps)\) [43]. Both of these results are tight (up to poly-logarithmic factors); in fact, the upper bound on answering adaptive statistical queries is tightly connected to the upper bound on answering queries under approximate DP.

Certifying the results of a statistical analysis, while maintaining DP with respect to the verifier’s samples, offers a potential for significant savings. We show, generically, that the verifiers for our pvCSVs (in fact, for all of our SQ protocols) can be implemented under DP using essentially the same non-adaptive sample complexity.

Figure 5: \mathsf{DPValidate}(\vec{v}, \vec{a}, \tau_P, \tau)   i.e., Differentially-Private Statistical Validation

There exists an \((\eps,0)\)-DP implementation of the non-adaptive statistical validation, given in Algorithm 5, with failure probability \(\beta\) that uses \(m_V\) i.i.d.samples from \(\D_V\), where for any number of adaptive queries \(k\), \[m_V \le O\left(\frac{\log(k/\beta)}{\tau^2} + \frac{\log(k/\beta)}{\tau\eps}\right).\]

Proof sketch. The proposition follows from a standard application of the Exponential Mechanism [41]. The original non-adaptive statistical validation step evaluates each query on the samples from \(\D_V\).14 Namely, the original verifier computes \(\hat{a}_1,\ldots,\hat{a}_k\) where \(\hat{a}_j = \frac{1}{m_V}\sum_{i=1}^{m_V} q_j(x_i)\). Instead, the new verifier checks the (noisy) maximum difference between the statistics reported by the prover and the empirical statistics on their samples, \(|a_j - \hat{a}_j|\).

To compute the new verifier’s sample complexity, we need to reason about the accuracy of the empirical statistics \(\hat{a}_1,\ldots,\hat{a}_k\), as well as the accuracy of the exponential mechanism. For target tolerance \(\tau\) and prover tolerance \(\tau/3\) (as in our protocols), we will insist that each of these components achieves \(\tau/16\) additive error with all but \(\beta/2\) probability each.

First, the accuracy of the empirical statistics: per Proposition [prop:non-adaptive], \(m_V\) can scale as \(O(\log(k/\beta)/\tau^2)\). Then, the accuracy of the release of the maximum difference \(\max_{1\le j \le k}|a_j - \hat{a}_j|\): per [41], with all but \(\beta/2\) probability, the exponential mechanism achieves error \(\alpha\) where \[\begin{gather} \alpha \le \frac{2\Delta}{\eps} \cdot \log(2k/\beta) \end{gather}\] where \(\Delta = 1/m_V\) is the sensitivity of the release from a database of \(m_V\) samples. Thus, the exponential mechanism guarantees \(\tau/16\)-accuracy to the empirical statistics for some \(m_V \le O(\log(k/\beta)/\tau\eps)\). With these accuracies fixed with all but \(\beta\) total failure probability, we can define the new verifier and analyze Completeness and Soundness.

For a sequence of \(k\) fully-adaptive SQs, Algorithm 5 runs the exponential mechanism to release the noisy maximum difference \(\max_{1\le j \le k} |a_j - \hat{a}_j|\). If the difference is less than \(\tau/2\), it accepts; otherwise, it rejects.

Completeness:  Per our earlier protocols, we assume the honest prover reports each \(a_j\) within \(\tau_P = \tau/3\) of the true query value. The verifier’s empirical statistics \(\hat{a}_j\) are within \(\tau/16\) of the true query value, and their difference is released with \(\tau/16\)-accuracy, so in sum, the reported maximum difference will be strictly less than \(\tau/2\), with all but \(\beta\) probability.

Soundness:  Suppose there is some statistic \(a_j\) that was reported with more than \(\tau\) additive error from the true value, so the SQ guarantee is violated. Again, the verifier’s accuracy ensures that the difference \(|a_j - \hat{a}_j|\) is at least \(15\tau/16\), which is released with at most \(\tau/16\) additive error. So, with all but \(\beta\) probability, the reported maximum difference is strictly more than \(\tau/2\). ◻

Acknowledgements↩︎

The authors thank Noah Stephens-Davidowitz for significant conversations at the start of this work and feedback throughout the project. We also thank Robert Kleinberg, Jonathan Shafer, and Nick Spooner for helpful discussions.

References↩︎

[1]
S. Goldwasser, G. N. Rothblum, J. Shafer, and A. Yehudayoff, “Interactive proofs for verifying machine learning,” in 12th innovations in theoretical computer science conference (ITCS 2021), 2021, pp. 41–1.
[2]
S. Goldwasser, S. Micali, and C. Rackoff, “The knowledge complexity of interactive proof-systems,” in Proceedings of the seventeenth annual ACM symposium on theory of computing (STOC ’85), 1985, pp. 291–304, doi: 10.1145/22145.22178.
[3]
L. Babai, “Trading group theory for randomness,” in Proceedings of the seventeenth annual ACM symposium on theory of computing, 1985, pp. 421–429.
[4]
L. G. Valiant, “A theory of the learnable,” Communications of the ACM, vol. 27, no. 11, pp. 1134–1142, 1984, doi: 10.1145/1968.1972.
[5]
D. Haussler, “Decision-theoretic generalizations of the PAC model for neural net and other learning applications,” Information and Computation, vol. 100, no. 1, pp. 78–150, 1992, doi: 10.1016/0890-5401(92)90046-D.
[6]
M. Kearns, R. E. Schapire, and L. M. Sellie, “Toward efficient agnostic learning,” Machine Learning, vol. 17, no. 2–3, pp. 115–141, 1994.
[7]
S. Mutreja and J. Shafer, “PAC verification of statistical algorithms,” in The thirty sixth annual conference on learning theory, 2023, pp. 5021–5043.
[8]
T. Gur, M. M. Jahanara, M. M. Khodabandeh, N. Rajgopal, B. Salamatian, and I. Shinkar, “On the power of interactive proofs for learning,” in Proceedings of the 56th annual ACM symposium on theory of computing, 2024, pp. 1063–1070.
[9]
O. Goldreich and L. Levin, “A hard-core predicate for all one-way functions,” in Proceedings of the 21st annual ACM symposium on theory of computing (STOC ’89), 1989, pp. 25–32, doi: 10.1145/73007.73011.
[10]
C. Dwork, V. Feldman, M. Hardt, T. Pitassi, O. Reingold, and A. L. Roth, “Preserving statistical validity in adaptive data analysis,” in Proceedings of the forty-seventh annual ACM symposium on theory of computing, 2015, pp. 117–126.
[11]
M. Kearns, “Efficient noise-tolerant learning from statistical queries,” Journal of the ACM (JACM), vol. 45, no. 6, pp. 983–1006, 1998.
[12]
C. Dwork, V. Feldman, M. Hardt, T. Pitassi, O. Reingold, and A. Roth, “Generalization in adaptive data analysis and holdout reuse,” Advances in neural information processing systems, vol. 28, 2015.
[13]
C. Dwork, V. Feldman, M. Hardt, T. Pitassi, O. Reingold, and A. Roth, “The reusable holdout: Preserving validity in adaptive data analysis,” Science, vol. 349, no. 6248, pp. 636–638, 2015.
[14]
R. Bassily, K. Nissim, A. Smith, T. Steinke, U. Stemmer, and J. Ullman, “Algorithmic stability for adaptive data analysis,” in Proceedings of the forty-eighth annual ACM symposium on theory of computing, 2016, pp. 1046–1059.
[15]
V. Feldman and T. Steinke, “Calibrating noise to variance in adaptive data analysis,” in Conference on learning theory, 2018, pp. 535–544.
[16]
C. Jung, K. Ligett, S. Neel, A. Roth, S. Sharifi-Malvajerdi, and M. Shenfeld, “A new analysis of differential privacy’s generalization guarantees,” arXiv preprint arXiv:1909.03577, 2019.
[17]
Y. Dagan and G. Kur, “A bounded-noise mechanism for differential privacy,” in Conference on learning theory, 2022, pp. 625–661.
[18]
G. Blanc, “Subsampling suffices for adaptive data analysis,” Journal of the ACM, vol. 72, no. 1, pp. 1–45, 2025.
[19]
M. Hardt and J. Ullman, “Preventing false discovery in interactive data analysis is hard,” in 2014 IEEE 55th annual symposium on foundations of computer science, 2014, pp. 454–463.
[20]
T. Steinke and J. Ullman, “Interactive fingerprinting codes and the hardness of preventing false discovery,” in Conference on learning theory, 2015, pp. 1588–1628.
[21]
S. Goldwasser, Y. T. Kalai, and G. N. Rothblum, “Delegating computation: Interactive proofs for muggles,” in Proceedings of the 40th annual ACM symposium on theory of computing (STOC ’08), 2008, pp. 113–122, doi: 10.1145/1374376.1374396.
[22]
M. Bellare and P. Rogaway, “Random oracles are practical: A paradigm for designing efficient protocols,” in Proceedings of the 1st ACM conference on computer and communications security, 1993, pp. 62–73.
[23]
A. Fiat and A. Shamir, “How to prove yourself: Practical solutions to identification and signature problems,” in Conference on the theory and application of cryptographic techniques, 1986, pp. 186–194.
[24]
C. Dwork, F. McSherry, K. Nissim, and A. Smith, “Calibrating noise to sensitivity in private data analysis,” in Theory of cryptography conference, 2006, pp. 265–284.
[25]
E. Ben-Sasson, A. Chiesa, and N. Spooner, “Interactive oracle proofs,” in Theory of cryptography conference, 2016, pp. 31–60.
[26]
[27]
Z. R. Bell, S. Goldwasser, M. P. Kim, and J.-L. Watson, “Certifying private probabilistic mechanisms,” in Annual international cryptology conference, 2024, pp. 348–386.
[28]
S. Mutreja and J. Shafer, A preliminary version appeared in the Proceedings of COLT’23“PAC verification of statistical algorithms,” Theory of Computing, vol. 22, no. 5, pp. 1–40, 2026, doi: 10.4086/toc.2026.v022a005.
[29]
Z. R. Bell, A. Thudi, O. Franzese-McLaughlin, N. Papernot, and S. Goldwasser, “Efficient public verification of private ML via regularization,” arXiv preprint arXiv:2512.04008, 2025.
[30]
A. Chiesa and T. Gur, “Proofs of proximity for distribution testing,” in 9th innovations in theoretical computer science conference (ITCS 2018), 2018, pp. 53–1.
[31]
T. Herman and G. N. Rothblum, “Verifying the unseen: Interactive proofs for label-invariant distribution properties,” in Proceedings of the 54th annual ACM SIGACT symposium on theory of computing, 2022, pp. 1208–1219.
[32]
T. Herman and G. Rothblum, “Doubley-efficient interactive proofs for distribution properties,” in 2023 IEEE 64th annual symposium on foundations of computer science (FOCS), 2023, pp. 743–751.
[33]
T. Herman and G. Rothblum, “Interactive proofs for general distribution properties,” in 2024 IEEE 65th annual symposium on foundations of computer science (FOCS), 2024, pp. 528–538.
[34]
T. Herman and G. Rothblum, “How to verify any (reasonable) distribution property: Computationally sound argument systems for distributions,” arXiv preprint arXiv:2409.06594, 2024.
[35]
B. Barak, “How to go beyond the black-box simulation barrier,” in Proceedings 42nd IEEE symposium on foundations of computer science, 2001, pp. 106–115.
[36]
S. Goldwasser and Y. T. Kalai, “On the (in) security of the fiat-shamir paradigm,” in 44th annual IEEE symposium on foundations of computer science, 2003. proceedings., 2003, pp. 102–113.
[37]
M. Hardt and G. N. Rothblum, “A multiplicative weights mechanism for privacy-preserving data analysis,” in 2010 IEEE 51st annual symposium on foundations of computer science, 2010, pp. 61–70.
[38]
C. Dwork and A. Roth, The algorithmic foundations of differential privacy, vol. 9. Now Publishers Inc., 2014, pp. 211–407.
[39]
S. Vadhan, The complexity of differential privacy,” in Tutorials on the foundations of cryptography, Y. Lindell, Ed. Springer, 2017, pp. 347–450.
[40]
G. Kamath, Lecture notes and videos available at http://www.gautamkamath.com/CS860-fa2020.html“CS 860: Algorithms for private data analysis.” 2020, [Online]. Available: http://www.gautamkamath.com/CS860-fa2020.html.
[41]
F. McSherry and K. Talwar, “Mechanism design via differential privacy,” in 48th annual IEEE symposium on foundations of computer science (FOCS), 2007, pp. 94–103.
[42]
M. Hardt and K. Talwar, “On the geometry of differential privacy,” in Proceedings of the 42nd annual ACM symposium on theory of computing (STOC ’10), 2010, pp. 705–714, doi: 10.1145/1806689.1806786.
[43]
T. Steinke and J. Ullman, “Between pure and approximate differential privacy,” Journal of Privacy and Confidentiality, vol. 7, no. 2, pp. 3–22, 2016, doi: 10.29012/2017.428.

  1. Research completed while at Cornell University, supported by the Bowers Undergraduate Research Experience (BURE) and the Dean Archer Undergraduate Research Program. This research was supported by a gift from Google.↩︎

  2. This research was supported by a gift from Google.↩︎

  3. In these works, and in our paper, “efficiency” primarily focuses on statistical resources, rather than computation.↩︎

  4. The honest prover using \(\D_P\) may be viewed as a cheating prover with respect to the verifier holding \(\D_V\).↩︎

  5. We note that such “deterministic” algorithms may still have non-deterministic behavior, due to the algorithm’s adaptivity to the responses from the SQ oracle, which is assumed to be \(\tau\)-accurate, but otherwise, adversarial.↩︎

  6. In our work, we take \(\Q= \{0,1\}^\X\) to be the set of all boolean functions, so often drop explicit reference to \(\Q\). In this work, we will not consider the computational complexity of evaluating functions \(q \in Q\), and instead, measure the complexity of learning in terms of the total number/sequence of queries issued.↩︎

  7. Learning Parities is the most notable example of a task that is PAC learnable, but not SQ learnable.↩︎

  8. For simplicity, we use a single parameter \(\gamma\) for the completeness and soundness error. Of course, it may also be interesting to consider protocols that achieve different completeness and soundness parameters. In fact, all of our protocols achieve completeness \(1\) in the SQ oracle model.↩︎

  9. One may even be inclined to define delegation of learning as a distributional simulation of a given algorithm \(\A\). In fact, once formalized, many of our protocols would satisfy such a notion, but we encounter issues with soundness when we want to achieve non-interactive protocols (i.e., pvCSVs) for randomized SQ algorithms in Section 4.↩︎

  10. Note that the bounds achieved by [17] and [18] are technically incomparable, but differ only in poly-logarithmic factors in \(k\) and \(\tau\). Either mechanism could be used to implement our honest prover’s SQ oracle.↩︎

  11. The failure probability of the pvCSV will arise when we implement the protocol’s oracles using samples.↩︎

  12. Informally, PAC Verification is the problem of delegation of learning, for the specific learning goal of Agnostic PAC learning. We refer the unfamiliar reader to [1].↩︎

  13. DP is the gold standard notion for privacy-protections in statistical analyses. We refer the unfamiliar reader to introductory materials on DP, including [38][40]. For the sake of presentation, we omit background on the Exponential Mechanism of [41].↩︎

  14. This is the simplest implementation of Algorithm 2 given i.i.d.samples.↩︎