<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Private Everlasting Prediction</title></titleStmt>
			<publicationStmt>
				<publisher>proceedings of 37th NeurIPS 2023</publisher>
				<date>12/10/2023</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10499333</idno>
					<idno type="doi"></idno>
					<title level='j'>proceedings of 37th NeurIPS 2023</title>
<idno></idno>
<biblScope unit="volume"></biblScope>
<biblScope unit="issue"></biblScope>					

					<author>Moni Naor Naor</author><author>Kobbi Nissim Nissim</author><author>Uri Stemmer</author><author>Chao Yan</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[A private learner is trained on a sample of labeled points and generates a hypothesis that can be used for predicting the labels of newly sampled points while protecting the privacy of the training set [Kasiviswannathan et al., FOCS 2008]. Past research uncovered that private learners may need to exhibit significantly higher sample complexity than non-private learners as is the case of learning of one-dimensional threshold functions [Bun et al., FOCS 2015, Alon et al., STOC 2019].We explore prediction as an alternative to learning. A predictor answers a stream of classification queries instead of outputting a hypothesis. Earlier work has considered a private prediction model with a single classification query [Dwork and Feldman, COLT 2018]. We observe that when answering a stream of queries, a predictor must modify the hypothesis it uses over time, and in a manner that cannot rely solely on the training set.We introduce private everlasting prediction taking into account the privacy of both the training set and the (adaptively chosen) queries made to the predictor. We then present a generic construction of private everlasting predictors in the PAC model. The sample complexity of the initial training sample in our construction is quadratic (up to polylog factors) in the VC dimension of the concept class. Our construction allows prediction for all concept classes with finite VC dimension, and in particular threshold functions over infinite domains, for which (traditional) private learning is known to be impossible.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">Introduction</head><p>A PAC learner for a concept class C is given labeled examples S = {(x i , y i )} i&#8712; <ref type="bibr">[n]</ref> drawn i.i.d. from an unknown underlying probability distribution D over a data domain X and outputs a hypothesis h that can be used for predicting the label of fresh points x n+1 , x n+2 , . . . sampled from the same underlying probability distribution D <ref type="bibr">[Valiant, 1984]</ref>. It is well known that when points are labeled by a concept selected from a concept class C = {c : X &#8594; {0, 1}} then learning is possible with sample complexity proportional to VC(C).</p><p>Learning often happens in settings where the underlying training data is related to individuals and privacy-sensitive. For legal, ethical, or other reasons, the learner is then required, to protect personal information from being leaked in the learned hypothesis h. Private learning was introduced by Kasiviswanathan et al. <ref type="bibr">[2011]</ref> as a theoretical model for studying such tasks. A private learner is a PAC learner that preserves differential privacy with respect to its training set S. That is, the learner's distribution on outcome hypotheses must not depend too strongly on any single example in S. <ref type="bibr">Kasiviswanathan et al.</ref> showed that any finite concept class can be learned privately and with sample complexity n = O(log |C|), a value that is sometimes significantly higher than the VC dimension of the concept class C.</p><p>It is now understood that the gap between the sample complexity of private and non-private learners is essential -an important example is private learning of threshold functions (defined over an ordered domain X as C thresh = {c t } t&#8712;X where c t (x) = 1 xgt ), which requires sample complexity that is asymptotically higher than the (constant) VC dimension of C thresh . In more detail, with pure differential privacy, the sample complexity of private learning is characterized by the representation dimension of the concept class <ref type="bibr">[Beimel et al., 2013a]</ref>. The representation dimension of C thresh (hence, the sample complexity of private learning thresholds) is &#920;(log |X|) <ref type="bibr">[Feldman and Xiao, 2015]</ref>. With approximate differential privacy, the sample complexity of learning threshold functions is &#920;(log * |X|) <ref type="bibr">[Beimel et al., 2013b</ref><ref type="bibr">, Bun et al., 2015</ref><ref type="bibr">, Alon et al., 2019</ref><ref type="bibr">, Kaplan et al., 2020</ref><ref type="bibr">, Cohen et al., 2022]</ref>. Hence, whether with pure or with approximate differential privacy, the sample complexity of privately learning thresholds grows with the cardinality of the domain |X| and no private learner exists for this task over infinite domains. In contrast, non-private learning is possible with constant sample complexity (independent of |X|).</p><p>Privacy preserving (black-box) prediction. <ref type="bibr">Dwork and Feldman [2018]</ref> proposed privacypreserving prediction as an alternative for private learning. Noting that " <ref type="bibr">[i]</ref>t is now known that for some basic learning problems <ref type="bibr">[. . .]</ref> producing an accurate private model requires much more data than learning without privacy," they considered a setting where "users may be allowed to query the prediction model on their inputs only through an appropriate interface". That is, a setting where the learned hypothesis is not made public and may be accessed only in a black-box manner via a privacy-preserving query-answering prediction interface. The prediction interface is required to preserve the privacy of its training set S: Definition 1.1 (private prediction interface <ref type="bibr">[Dwork and Feldman, 2018]</ref> (rephrased)). A prediction interface A is (&#1013;, &#182;)-differentially private if for every interactive query generating algorithm Q, the output of the interaction between Q and A(S) is (&#1013;, &#182;)-differentially private with respect to S.</p><p>Dwork and Feldman focused on the setting where the entire interaction between Q and A(S) consists of issuing a single prediction query and answering it: Definition 1.2 (Single query prediction <ref type="bibr">[Dwork and Feldman, 2018]</ref>). Let A be an algorithm that given a set of labeled examples S and an unlabeled point x produces a label y. A is an (&#1013;, &#182;)-differentially private prediction algorithm if for every x, the output A(S, x) is (&#1013;, &#182;)-differentially private with respect to S. W.r.t. answering a single prediction query, Dwork and Feldman showed that the sample complexity of such predictors is proportional to the VC dimension of the concept class.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.1">Our contributions</head><p>We extend private prediction to answering a sequenceunlimited in length -of prediction queries. We refer to this as private everlasting prediction (PEP). Our goal is to present a generic private everlasting predictor with low training sample complexity |S|.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.1.1">Private prediction interfaces when applied to a large number of queries</head><p>We begin by examining private everlasting prediction under the framework of Definition 1.1. We prove: Theorem 1.3 (informal version of Theorem 3.3). Let A be a private everlasting prediction interface for concept class C and assume A bases its predictions solely on the initial training set S, then there exists a private learner for concept class C with sample complexity |S|.</p><p>This means that everlasting predictors that base their prediction solely on the initial training set S are subject to the same complexity lowerbounds as private learners. Hence, to avoid private learning lowerbounds, private everlasting predictors need to rely on more than the initial training sample S as a source of information about the underlying probability distribution and the labeling concept.</p><p>In this work, we choose to allow the everlasting predictor to rely on the queries madewhich are unlabeled points from the domain X -assuming the queries are drawn from the same distribution the initial training S is sampled from. This requires modifying the privacy definition, as Definition 1.1 does not protect the queries issued to the predictor.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.1.2">A definition of private everlasting predictors</head><p>Our definition of private everlasting predictors is motivated by the observations above. Consider an algorithm A that is first fed with a training set S of labeled points and then executes for an unlimited number of rounds, where in round i algorithm A receives as input a query point x i and produces a label &#375;i . We say that A is an everlasting predictor if, when the (labeled) training set S and the (unlabeled) query points are coming from the same underlying distribution, A answers each query points x i by invoking a good hypothesis h i (i.e., h i has low generalization error), and hence the label &#375;i produced by A is correct with high probability. We say that A is a private everlasting predictor if its sequence of predictions &#375;1 , &#375;2 , &#375;3 , . . . protects both the privacy of the training set S and the query points x 1 , x 2 , x 3 , . . . in face of any adversary that chooses the query points adaptively.</p><p>We emphasize that while private everlasting predictors need to exhibit average-case utility -as good prediction is required only for the case where the initial training set S and the queries x 1 , x 2 , x 3 , . . . are selected i.i.d. from the same underlying distribution -our privacy requirement is worst-case, and holds in face of an adaptive adversary that chooses each query point x i after receiving the prediction provided for (x 1 , . . . , x i-1 ), and not necessarily in accordance with any probability distribution.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.1.3">A generic construction of private everlasting predictors</head><p>We show a reduction from private everlasting prediction of a concept class C to non-private PAC learning of C. Our Algorithm GenericBBL, presented in Section 6, executes in rounds.</p><p>Initialization. The input to the first round is a labeled training set S where |S| = O (VC(C)) 2 , assumed to be labeled consistently with some unknown target concept c &#8712; C. Denote S 1 = S and c 1 = c.</p><p>Rounds. Each round begins with a collection S i of labeled examples and ends with a newly generated collection of labeled examples S i+1 that feeds as input for the next round. The size of these collections grows by a constant factor at each round, to allow for the accumulated error of the predictor to converge. The construction ensures that each labeled set S i is consistent with some concept in c i &#8712; C, which is not necessarily the original target concept c, but has a bounded generalization error with respect to c. In more detail, the construction ensures that Pr x&#8764;D [c i+1 (x) c i (x)] decreases by a factor of two in every round, and hence, by the triangle inequality, Pr x&#8764;D [c i (x) c(x)] is bounded.</p><p>We briefly describe the main computations performed in each round of GenericBBL.<ref type="foot">foot_0</ref> </p><p>&#8226; Round initialization: At the outset of a round, the labeled set S i is partitioned into sub-sets, each with number of samples which is proportional to the VC dimension (so we have queries without exhausting the privacy budget. &#8226; Generating a labeled set for the following round: A round ends with the preparation of a collection S i+1 of labeled samples that is to be used in the initialization of next round. We explore alternatives for creating S i+1 :</p><p>-As at the end of a round the predictor has already labeled all the queries presented during the round's execution, one alternative is to let S i+1 consist of these queries and the labels provided for them. Note, however, that it is not guaranteed that the majority vote would result in a set of labels that are consistent with some concept in C, even if S i is consistent with some concept in C. Hence, following this alternative would require the use of non-private agnostic learners instead. Furthermore, the error introduced by the majority vote can be larger than the generalization error of the classifiers in F i by a constant factor greater than one. This may prevent the generalization error of the classifiers used in future rounds from converging.<ref type="foot">foot_1</ref> -To overcome this problem, we use Algorithm LabelBoost -a tool developed by <ref type="bibr">Beimel et al. [2021]</ref> in the context of private semi-supervised learning. LabelBoost takes as input the sample S i (labeled by a concept c i &#8712; C) and the (unlabeled) queries made during the round. It labels them with a concept c i+1 &#8712; C where the error of c i+1 with respect to c i , i.e., Pr x&#8764;D [c i+1 (x) c i (x)] is bounded. &#8226; Controlling the generalization error: Let S i+1 denote the (re)labeled query points obtained in the ith round. This is a collection of size</p><p>This allows to lower the accuracy parameters of the non-private learners in each round, and hence ensure that the total error converges. Theorem 1.4 (informal version of Theorem 6.1). For every concept class C, Algorithm GenericBBL is a private everlasting predictor requiring an initial set of labeled examples which is (upto polylogarithmic factors) quadratic in the VC dimension of C.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.2">Related work</head><p>Beyond the work of <ref type="bibr">Dwork and Feldman [2018]</ref> on private prediction mentioned above, our work is related to private semi-supervised learning and joint differential privacy.</p><p>Semi-supervised private learning. As in the model of private semi-supervised learning of <ref type="bibr">Beimel et al. [2021]</ref>, our predictors depend on both labeled and unlabeled samples. Beyond the difference between outputting a hypothesis and providing black-box prediction, a major difference between the settings is that in the work of <ref type="bibr">Beimel et al. [2021]</ref> all sampleslabeled and unlabeled -are given at once at the outset of the learning process whereas in the setting of everlasting predictors the unlabeled samples are supplied in an online manner. Our construction of private everlasting predictors uses tools developed for the semi-supervised setting, and in particular Algorithm LabelBoost of of <ref type="bibr">Beimel et al. Joint differential privacy. Kearns et al. [2015]</ref> introduced joint differential privacy (JDP) as a relaxation of differential privacy applicable for mechanism design and games. For every user u, JDP requires that the outputs jointly seen by all other users would preserve differential privacy w.r.t. the input of u. Crucially, in JDP users select their inputs ahead of the computation. In our settings, the inputs to a private everlasting predictor are prediction queries which are chosen in an online manner, and hence a query can depend on previous queries and their answers. Yet, similarly to JDP, the outputs provided to queries not performed by a user u should jointly preserve differential privacy w.r.t. the query made by u. Our privacy requirement hence extends JDP to an adaptive online setting.</p><p>Additional works on private prediction. <ref type="bibr">Bassily et al. [2018]</ref> studied a variant of the private prediction problem where the algorithm takes a labeled sample S and is then required to answer m prediction queries (i.e., label a sequence of m unlabeled points sampled from the same underlying distribution). They presented algorithms for this task with sample complexity |S| &#8819; &#8730; m. This should be contrasted with our model and results,</p><p>where the sample complexity is independent of m. The bounds presented by <ref type="bibr">Dwork and Feldman [2018]</ref> and <ref type="bibr">Bassily et al. [2018]</ref> were improved by Dagan and <ref type="bibr">Feldman [2020]</ref> and by <ref type="bibr">Nandi and Bassily [2020]</ref> who presented algorithms with improved dependency on the accuracy parameter in the agnostic setting.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.3">Discussion and open problems</head><p>We show how to transform any (non-private) learner for the class C (with sample complexity proportional to the VC dimension of C) to a private everlasting predictor for C. Our construction is not polynomial time due to the use of Algorithm LabelBoost, and requires an initial set S of labeled examples which is quadratic in the VC dimension. We leave open the question whether |S| can be reduced to be linear in the VC dimension and whether the construction can be made polynomial time. A few remarks are in order:</p><p>1. While our generic construction is not computationally efficient, it does result in efficient learners for several interesting special cases. Specifically, algorithm LabelBoost can be implemented efficiently whenever given an input sample S it is possible to efficiently enumerate all possible dichotomies from the target class C over the points in S. In particular, this is the case for the class of 1-dim threshold functions C thresh , as well as additional classes with constant VC dimension. Another notable example is the class C enc thresh which intuitively is an "encrypted" version of C thresh . <ref type="bibr">Bun and Zhandry [2016]</ref> showed that (under plausible cryptographic assumptions) the class C enc thresh cannot be learned privately and efficiently, while it can be learned efficiently non-privately. Our construction can be implemented efficiently for this class. This provides an example where private everlasting prediction can be done efficiently, while (standard) private learning is possible but necessarily inefficient.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>2.</head><p>It is now known that some learning tasks require the produced model to memorize parts of the training set in order to achieve good learning rates, which in particular disallows the learning algorithm from satisfying (standard) differential privacy <ref type="bibr">[Brown et al., 2021]</ref>. Our notion of private everlasting prediction circumvents this issue, since the model is never publicly released and hence the fact that it must memorize parts of the sample is not of a direct privacy threat. In other words, our work puts forward a private learning model which, in principle, allows memorization. This could have additional applications in broader settings.</p><p>3. As mentioned above, in general, private everlasting predictors cannot base their predictions solely on the initial training set, and in this work we choose to rely on the queries presented to the algorithm (in addition to the training set). Our construction can be easily adapted to a setting where the content of the blackbox is updated based on fresh unlabeled samples (whose privacy would be preserved), instead of relying on the query points themselves. This might be beneficial to avoid poisoning attacks via the queries.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">Preliminaries</head><p>2.1 Preliminaries from differential privacy Definition 2.1 ((&#1013;, &#182;)-indistinguishability). Let R 0 , R 1 be two random variables over the same support. We say that R 0 , R 1 are (&#1013;, &#182;)-indistinguishable if for every event E defined over the support of R <ref type="bibr">[Dwork et al., 2006]</ref></p><p>In our analysis, we use the post-processing and composition properties of differential privacy, that we cite in their simplest forms. Proposition 2.4 (post-processing). Let M 1 : X n &#8594; Y be an (&#1013;, &#182;)-differentially private algorithm and M 2 : Y &#8594; Z be any algorithm. Then the algorithm that on input x &#8712; X n outputs M 2 (M 1 (x)) is (&#1013;, &#182;)-differentially private. Proposition 2.5 (composition). Let M 1 be a (&#1013; 1 , &#182; 1 )-differentially private algorithm and let M 2 be (&#1013; 2 , &#182; 2 )-differentially private algorithm. Then the algorithm that on input x &#8712; X n outputs</p><p>Definition 2.7 (Laplace mechanism <ref type="bibr">[Dwork et al., 2006]</ref>). For f :</p><p>, where the maximum is taken over all neighboring x, x &#8242; &#8712; X n . The Laplace mechanis is M(x) = f (x) + Y , where Y is sampled from the laplace distribution Lap(&#8710; f /&#949;). The Laplace mechanism is (&#949;, 0)-differentially private. Definition 2.8 (Exponential mechanism <ref type="bibr">[McSherry and Talwar, 2007]</ref>). Let q : X n &#215; Y &#8594; R be a score function defined over data domain X and output domain Y . Define &#8710; = max (|q(x, y) -q(x &#8242; , y)|) where the maximum is taken over all y &#8712; Y and all neighbouring databases x, x &#8242; &#8712; X n . The exponential mechanism is the (&#1013;, 0)-differentially private mechanism which selects an output y &#8712; Y with probability proportional to e &#1013;q(x,y) 2&#8710; . Claim 2.9 (Privacy amplification by sub-sampling <ref type="bibr">[Kasiviswanathan et al., 2011]</ref>). Let A be an (&#949; &#8242; , &#182; &#8242; )-differentially private algorithm operating on a database of size n. Let &#949; f 1 and let t = n &#949; (3 + exp(&#949; &#8242; )). Construct an algorithm B operating the database D = (z i ) t i=1 . Algorithm B randomly selects a subset J &#166; {1, 2, . . . , t} of size n, and executes A on</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2">Preliminaries from PAC learning</head><p>A concept class C over data domain X is a set of predicates c : X &#8594; {0, 1} (called concepts) which label points of the domain X by either 0 or 1. A learner A for concept class C is given n examples sampled i.i.d. from an unknown probability distribution D over the data domain X and labeled according to an unknown target concept c &#8712; C. The learner should output a hypothesis h : X &#8594; [0, 1] that approximates c for the distribution D. More formally, Definition 2.10 (generalization error). The generalization error of a hypothesis h : X &#8594; [0, 1] with respect to concept c and distribution D is defined as error</p><p>Definition 2.11 (PAC learning <ref type="bibr">[Valiant, 1984]</ref>). Let C be a concept class over a domain X.</p><p>where the probability is over the sampling of (x 1 , . . . , x n ) from D and the coin tosses of A.</p><p>The parameter n is the sample complexity of A.</p><p>See Appendix A for additional preliminaries on PAC learning. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.3">Preliminaties</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">Towards private everlasting prediction</head><p>In this work, we extend private prediction to answering any sequence of prediction queries -unlimited in length. Our main goal is to present a generic private everlasting predictor with low training sample complexity |S|. Definition 3.1 (everlasting prediction). Let A be an algorithm with the following properties:</p><p>) n and selects a hypothesis h 0 : X &#8594; {0, 1}.</p><p>2. For round r &#8712; N, algorithm A gets a query, which is an unlabeled element x n+r &#8712; X, outputs h r-1 (x n+r ) and selects a hypothesis h r : X &#8594; {0, 1}.</p><p>We say that A is an (&#179;, &#180;, n)-everlasting predictor for a concept class C over a domain X if the following holds for every concept c &#8712; C and for every distribution D over X. If x 1 , x 2 , . . . are sampled i.i.d. from D, and the labels of the n initial samples S are correct, i.e., y i = c(x i ) for i &#8712; [n], then Pr [&#8707;r g 0 s.t. error D (c, h r ) &gt; &#179;] f &#180;, where the probability is over the sampling of x 1 , x 2 , . . . from D and the randomness of A.</p><p>Applying the Dwork-Feldman notion of a private prediction interface to everlasting predictors we get: Definition 3.2. An algorithm A is an (&#179;, &#180;, &#1013;, &#182;, n)-everlasting differentially private prediction interface if (i) A is a (&#1013;, &#182;)-differentially private prediction interface M (as in Definition 1.1), and (ii) A is an (&#179;, &#180;, n)-everlasting predictor.</p><p>As a warmup, consider an (&#179;, &#180;, &#1013;, &#182;, n)-everlasting differentially private prediction interface A for concept class C over (finite) domain X (as in Definition 3.2 above). Assume that A does not vary its hypotheses, i.e. (in the language of Definition 3.1) h r = h 0 for all r &gt; 0.<ref type="foot">foot_3</ref> Note that a computationally unlimited adversarial querying algorithm can recover the hypothesis h 0 by issuing all queries x &#8712; X. Hence, in using A indefinitely we lose any potential benefits to sample complexity of restricting access to h 0 to being black-box and getting to the point where the lower-bounds on n from private learning apply. A consequence of this simple observation is that a generic private everlasting predictor should answer all prediction queries with a single hypothesis -it should modify its hypothesis over time as it processes new queries.</p><p>We now take this observation a step further, showing that a private everlasting predictor that answers prediction queries solely based on its training sample S (and randomness, but not on the queries) is subject to the same sample complexity lowerbounds as private learners.</p><p>Consider an (&#179;, &#180;&lt; 1/8, &#1013;, &#182;, n)-everlasting differentially private prediction interface A for concept class C over (finite) domain X that upon receiving the training set S &#8712; (X &#215; {0, 1}) n selects an infinite sequence of hypotheses {h r } rg0 where h r : X &#8594; {0, 1}. Formally, we can think of A as composed of three mechanisms A = (M 0 , M 1 , M 2 ) where M 0 is (&#1013;, &#182;)differentially private:</p><p>&#8226; On input a labeled training sample S &#8712; (X &#215; {0, 1}) n mechanism M 0 computes an initial state and an initial hypothesis (&#195; 0 , h 0 ) = M 0 (S).</p><p>&#8226; On a query x n+r mechanism M 1 produces an answer M 1 (x n+r ) = h i (x n+r ) and mechanism M 2 updates the hypothesis-state pair (h r+1 , &#195; r+1 ) = M 2 (&#195; r ).</p><p>Note that as M 0 and M 2 do not receive the sequence {x n+r } rg0 as input, the sequence {h r } rg0 depends solely on S. Furthermore as M 1 and M 2 post-process the outcome of M 0 , i.e., the sequence of queries and predictions {(x r , h r (x r ))} rg0 preserves (&#1013;, &#182;)-differential privacy with respect to the training set S. In Appendix B we prove:</p><p>Theorem 3. We choose to rely on the queries for updating the predictor's internal state. This introduces a potential privacy risk for these queries as sensitive information about a query may be leaked in the predictions following it. Furthermore, we need take into account that a privacy attacker may choose their queries adversarially and adaptively.</p><p>Definition 4.1 (private everlasting black-box prediction). An algorithm A is an (&#179;, &#180;, &#949;, &#182;, n)private everlasting black-box predictor for a concept class C if 1. Prediction: A is an (&#179;, &#180;, n)-everlasting predictor for C (as in Definition 3.1).</p><p>2. Privacy: For every adversary B and every t g 1, the random variables View 0 B,t and View 1 B,t (defined in Figure <ref type="figure">1</ref>) are (&#949;, &#182;)-indistinguishable.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">Tools from prior works</head><p>We briefly describe tools from prior works that we use in our construction. See Appendix C for a more detailed account.</p><p>Algorithm LabelBoost <ref type="bibr">[Beimel et al., 2021]</ref>  </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6">A Generic Construction</head><p>Our generic construction Algorithm GenericBBL transforms a (non-private) learner for a concept class C into a private everlasting predictor for C. The theorem below follows from Theorem 6.2 and Claim 6.3 which are proved in Appendix E. Theorem 6.1. Given &#179;, &#180;, &#182; &lt; 1/16, &#1013; &lt; 1, Algorithm GenericBBL is a (4&#179;, 4&#180;, &#1013;, &#182;, n)-private everlasting predictor, where n is set as in Algorithm GenericBBL. Theorem 6.2 (accuracy of algorithm GenericBBL). Given &#179;, &#180;, &#182; &lt; 1/16, &#949; &lt; 1, for any concept c and any round r, algorithm GenericBBL can predict the label of x r as h r (x r ), such that Pr[error D (c(x r ) h r (x r )) f 4&#179;] g 1 -4&#180;. Claim 6.3 (privacy of algorithm GenericBBL). GenericBBL is (&#949;, &#182;)-differentially private. Remark 6.4. For simplicity, we analyzed GenericBBL in the realizable setting, i.e., under the assumption that the training set S is consistent with the target class C. Our construction carries over to the agnostic setting via standard arguments (ignoring computational efficiency). We refer the reader to <ref type="bibr">[Beimel et al., 2021]</ref> and <ref type="bibr">[Alon et al., 2020]</ref> for generic agnostic-to-realizable reductions in the context of private learning.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.1">Improving the sample complexity dependency on accuracy</head><p>We briefly sketch how to improve the sample complexity of Algorithm GenericBBL from n = &#920; VC 2 (C)</p><p>by modifying steps 3(d)ii and 3(d)iii of Algorithm GenericBBL.</p><p>To simplify the description, we consider a constant &#1013;, we ignore the privacy amplification by subsampling occurring in steps 2 and 3f and illustrate how the modified algorithm would execute by considering round i = 1 of Algorithm GenericBBL.  <ref type="formula">4</ref>&#180;)</p><p>and</p><p>(f) Let &#348;i &#166; S i and Di &#166; D i be random subsets of size</p><p>probability &#180;i . Applying advanced composition, we get that &#920;(T 2 1 ) noisy majority queries implemented in steps steps 3(d)ii and 3(d)iii can be performed, i.e., R 1 = &#920;(T 2 1 ). Finally, to feed the next phase with</p><p>However, when queries are made from the same underlying distribution S was selected, we expect that most of them would exhibit a clear majority in steps 3(d)ii and 3(d)iii, except for a fraction of O(&#179;). Hence a natural way to improve on the number of majority queries that can be performed is to replace steps 3(d)ii and 3(d)iii with a decision based on the sparse vector technique of <ref type="bibr">Dwork et al. [2009]</ref>. In particular, we can use the BetweenThresholds mechanism of <ref type="bibr">Bun et al. [2016]</ref> to get an improved R 1 = &#920;(T 2 1 /&#179;) and hence get</p><p>A final important wrinkle is that the above calculation is based on the queries coming from the same underlying distribution S was selected, while our worst-case privacy requirement allows for an adversarial choice of queries that may in turn cause the execution of BetweenThresholds to halt too often and hence exhaust the privacy budget for the phase. It is hence important to estimate the number of times BetweenThresholds halts within a phase and to stop the execution of Algorithm GenericBBL when the estimate crosses a threshold. This estimate needs to be done in an online manner and should preserve differential privacy with respect to the queries.<ref type="foot">foot_4</ref> This can be done, e.g., using the private counter algorithm of <ref type="bibr">Dwork et al. [2010a]</ref>, which preserves differential privacy under continual observation.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A Additional Preliminaries from PAC Learning</head><p>It is well know that that a sample of size &#920;(VC(C)) is necessary and sufficient for the PAC learning of a concept class C, where the Vapnik-Chervonenkis (VC) dimension of a class C is defined as follows: Definition A.1 (VC-Dimension <ref type="bibr">[Vapnik and Chervonenkis, 1971]</ref>). Let C be a concept class over a domain X. For a set B = {b 1 , . . . , b &#8467; } &#166; X of &#8467; points, let &#928; C (B) = {(c(b 1 ), . . . , c(b &#8467; )) : c &#8712; C} be the set of all dichotomies that are realized by C on B. We say that the set B &#166; X is shattered by C if C realizes all possible dichotomies over B, in which case we have</p><p>The VC dimension of the class C, denoted VC(C), is the cardinality of the largest set B &#166; X shattered by C. Theorem A.2 (VC bound). Let C be a concept class over a domain X. For &#179;, &#180;&lt; 1/2, there exists an (&#179;, &#180;, n)-PAC learner for C, where n = 8VC(C) log( <ref type="formula">13</ref>&#179; )+4 log( <ref type="formula">2</ref>&#180;) &#179; .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B Proof of Theorem 3.3</head><p>The proof of Theorem 3.3 follows from algorithms HypothesisLearner, AccuracyBoost and claims B.1, B.2, all described below.</p><p>In Algorithm HypothesisLearner we assume that the everlasting differentially private prediction interface A was fed with n i.i.d. samples taken from some (unknown) distribution D and labeled by an unknown concept c &#8712; C. Assumning the sequence of hypotheses {h r } rg0 produced by A satisfies &#8704;r error D (c, h r ) f &#179; (1) we use it to construct -with constant probability -a hypothesis h with error bounded by O(&#179;).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Algorithm HypothesisLearner</head><p>1. for all x &#8712; X let L x = &#8709; 2. for r = 0, 1, 2, . . . , R (a) select x uniformly at random from X and let L x = L x &#8746; {h r (x)} 3. if L x = &#8709; for some x &#8712; X then fail, output an arbitrary hypothesis, and halt /* Pr[&#8707;x such that</p><p>&#180;*/ 4. for all x &#8712; X let r x be sampled uniformly at random from L x 5. construct the hypothesis h, where h(x) = r x Claim B.1. If executed on a hypothesis sequence satisfying Equation <ref type="formula">1</ref>then with probability at least 3/4 Algorithm HypothesisLearner outputs a hypothesis h satisfying error D (c, h) f 8&#179;.</p><p>Proof. Having D, c &#8712; C fixed, and given a hypothesis h, we define e h (x) to be 1 if h(x) c(x) and 0 otherwise. Thus, we can write error</p><p>Observe that when Algorithm HypothesisLearner does not fail, r x (and hence h(x)) is chosen with equal probability among (h 1 (x), h 2 (x), . . . , h R (x)) and hence</p><p>where &#185; denotes the randomness of HypothesisLearner. We get:</p><p>By Markov inequality, we have Pr &#185; [error D (c, h) g 8&#179;] f 1/8. The claim follows noting that Algorithm HypothesisLearner fails with probability at most &#180;f 1/8.</p><p>The second part of the transformation is Algorithm AccuracyBoost that applies Algorithm HypothesisLearner O(log(1/&#180;)) times to obtain with high probability a hypothesis with O(&#179;) error.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Algorithm AccuracyBoost</head><p>Parameters:</p><p>&#180;, R = 104 ln 1</p><p>&#205;nput:</p><p>R labeled samples with n examples each (S 1 , . . . , S R ) where S i &#8712; (X &#215; {0, 1}) n 1. for i = 1, 2 . . . R (a) execute A(S i ) to obtain a hypothesis sequence {h i r } rg0 (b) execute Algorithm WeakHypothesisLearner on {h i r } rg0 to obtain hypothesis h i 2. construct the hypothesis &#293;, where &#293;(x) = maj(h 1 (x), . . . , h R (x)).</p><p>Claim B.2. With probability 1 -&#180;, Algorithm AccuracyBoost output a 24&#179;-good hypothesis over distribution D.</p><p>Proof. Define B i to be the event where the sequence of hypotheses {h i r } rg0 produced in Step 1a of AccuracyBoost does not satisfy Equation 1. We have,</p><p>Hence, by the Chernoff bound, when R g 104 ln 1</p><p>&#180;, we have at least 7R/8 hypotheses are 8&#179;-good over distribution D. Consider the worst case, in which R/8 hypotheses always output wrong labels. To output a wrong label of x, we require at least 3R/8 hypotheses to output wrong labels. Thus h is 24&#179;-good over distribution D.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C Tools from Prior Works</head><p>C.1 Algorithm LabelBoost <ref type="bibr">[Beimel et al., 2021]</ref> Algorithm LabelBoost <ref type="bibr">[Beimel et al., 2021]</ref> Parameters: A concept class C. Input: A partially labeled database S&#8226;T &#8712; (X &#215; {0, 1, &#167;}) * . % We assume that the first portion of the database (denoted S) contains labeled examples.</p><p>The algorithm outputs a similar database where both S and T are (re)labeled.</p><p>1. Initialize H = &#8709;.</p><p>2. Let P = {p 1 , . . . , p &#8467; } be the set of all points p &#8712; X appearing at least once in S&#8226;T . Let &#928; C (P) = {(c(p 1 ), . . . , c(p &#8467; )) : c &#8712; C} be the set of all dichotomies generated by C on P. 3. For every (z 1 , . . . , z &#8467; ) &#8712; &#928; C (P), add to H an arbitrary concept c &#8712; C s.t. c(p i ) = z i for every 1 f i f &#8467;. 4. Choose h &#8712; H using the exponential mechanism with privacy parameter &#1013;=1, solution set H, and the database S. 5. (Re)label S&#8226;T using h, and denote the resulting database (S&#8226;T ) h , that is, if</p><p>Lemma C.1 (privacy of Algorithm LabelBoost <ref type="bibr">[Beimel et al., 2021]</ref>). Let A be an (&#1013;, &#182;)differentially private algorithm operating on partially labeled databases. Construct an algorithm B that on input a partially labeled database S&#8226;T &#8712; (X &#215; {0, 1, &#167;}) * applies A on the outcome of LabelBoos(S&#8226;T ). Then, B is (&#1013; + 3, 4e &#182;)-differentially private.</p><p>Consider an execution of LabelBoost on a database S&#8226;T , and assume that the examples in S are labeled by some target concept c &#8712; C. Recall that for every possible labeling &#8407; z of the elements in S and in T , algorithm LabelBoost adds to H a hypothesis from C that agrees with &#8407; z. In particular, H contains a hypothesis that agrees with the target concept c on S (and on T ). That is, &#8707;f &#8712; H s.t. error S (f ) = 0. Hence, the exponential mechanism (on Step 4) chooses (w.h.p.) a hypothesis h &#8712; H s.t. error S (h) is small, provided that |S| is roughly log |H|, which is roughly VC(C) &#8226; log(|S| + |T |) by Sauer's lemma. So, algorithm LabelBoost takes an input database where only a small portion of it is labeled, and returns a similar database in which the labeled portion grows exponentially. Lemma C.2 (utility of Algorithm LabelBoost <ref type="bibr">[Beimel et al., 2021]</ref>). Fix &#179; and &#180;, and let S&#8226;T be s.t. S is labeled by some target concept c &#8712; C, and s.t.</p><p>Consider the execution of LabelBoost on S&#8226;T , and let h denote the hypothesis chosen on Step 4. With probability at least (1 -&#180;) we have that error S (h) f &#179;.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>D Some Technical Facts</head><p>We refer to the execution of steps 3a-3g of algorithm GenericBBL as a phase of the algorithm, indexed by i = 1, 2, 3, . . . .</p><p>In GenericBBL, we require that the set of all predictions in the phase i is (1, &#182;)-differentially private.</p><p>Claim D.1. For &#182; &lt; 1, the composited Laplace mechanism used in step 3c in the i-th iteration, is</p><p>The proof is concluded by using advanced composition (Theorem 2.6).</p><p>In step 3f, GenericBBL takes a random subset of size &#188; i+1 T t+1 from D&#8242; i . We show that the size of D&#8242; i is at least &#188; i+1 T t+1 . Claim D.2. When &#949; f 1, for any i g 1, we always have</p><p>Proof. Let m = 3+exp(&#949; +4) &lt; 200. By the step 3c, step 3e and step 3f,</p><p>We can verify that</p><p>The last inequalitu holds because &#188; j g 4 and &#179; j , &#180;j f 1/2.</p><p>To apply the privacy and accuracy of LabelBoost, the sizes of the databases need to satisfy the inequalities in lemma C.2. We verify that in each phase, the sizes of the databases always satisfy the requirement.</p><p>Proof. By claim D.2, step 3c and step 3f,</p><p>(</p><p>, the inequality holds when &#196; g 50.</p><p>E Accuracy of Algorithm GenericBBL -proof of Theorem 6.2</p><p>We refer to the execution of steps 3a-3g of algorithm GenericBBL as a phase of the algorithm, indexed by i = 1, 2, 3, . . . . We give some technical facts in Appendix D. In Claim E.1, we show that in each phase, samples are labeled with high accuracy. In Claim E.3, we prove that algorithm GenericBBL fails with low probability. In Claim E.4, we prove that algorithm GenericBBL predict the labels with high accuracy.</p><p>Claim E.1. For each phase i we have</p><p>Proof. The proof is by induction on i. The base case for i = 1 is trivial, with g 1 = c. Assume the claim holds for all j f i. By the properties of LabelBoost (Lemma C.2) and Claim D.3, with probability at least 1 -&#180;i we have that S i is labeled by a hypothesis g i &#8712; C s.t. error S i-1 (g i-1 , g i ) f &#179; i . Observe that the points in S i (without their labels) are chosen i.i.d. from D, and hence, By Theorem A.2 (VC bounds) and |S i-1 | g 128&#188; i-1 g &#188; i , with probability at least 1 -&#180;i we have that error D (g i , g i-1 ) f &#179; i . Hence, with probability 1 -2&#180;i , we have error D (g i , g i-1 ) f &#179; i . Finally, by the triangle inequality, error D (g i , c) f i j=1 &#179; j , except with probability 2 i j=1 &#180;j</p><p>Combining claims E.1 union bound, we get: Claim E.2. Let D be an underlying distribution and let c &#8712; C be a target concept. Then</p><p>For each phase i, if there exists a noise &#184;j g 1/16 in step 3c, we say the phase i fails. Define the following good event.</p><p>Event E 1 : Phase i doesn't fail for all i g 1. Notations. Consider the ith phase of Algorithm GenericBBL, and focus on the j-th iteration of Step 3. Fix all of the randomness of noises. Now observe that the output on step 3(d)iii is a deterministic function of the input x i,j . This defines a hypothesis which we denote as h i,j . Proof. In the phase i, by Claim E.2, with probability at least 1 -2&#180;we have that S i is labeled by a hypothesis g i &#8712; C satisfying error D (g i , c) f &#179;. We continue with the analysis assuming that this is the case.</p><p>On step 3a of the ith phase we divide S i into T i subsamples of size &#188; i each, identify a consistent hypothesis f t &#8712; C for every subsample S i,t , and denote F i = (f 1 , . . . , f T ). By Theorem A.2 (VC bounds), every hypothesis in F i satisfies error D (f t , g i ) f &#179; with probability 1 -&#180;i , in which case, by the triangle inequality we have that error</p><p>, using Chernoff bound, it holds that for at least 15T i /16 of the hypotheses in F i have error error D (f t , c) f 2&#179; with probability at least 1 -&#180;i .</p><p>By Claim E.3, with probability 1 -&#180;, all Laplace noises added in step 3d is less than T i 16 . Let m : X &#8594; {0, 1} defined as m(x) = maj f t &#8712;F i (f t (x)). For m to err on a point x (w.r.t. the target concept c), it must be that at least 3/8-fraction of the 2&#179;-good hypotheses in Fi err on x. Consider the worst case in Figure <ref type="figure">3</ref>, based on Claim E.3, we have error D (m, c) f 4&#179; with probability 1 -</p><p>&#180;.  Remark E.7. The above proofs work on the adversarially selected D because: (i) Lemma ?? works on the adaptively selected queries. (We treat the hypothesis class F i as the database, the unlabelled points x i,&#8467; as the query parameters.) (ii) LabelBoost generates labels by applying one private hypothesis on points. The labels are differentially private by post-processing.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="5" xml:id="foot_0"><p>Important details, such as privacy amplification via sampling and management of the learning accuracy and error parameters are omitted from the description provided in this section.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="6" xml:id="foot_1"><p>to see that the majority vote can increase the generalization error by a constant factor consider three classifiers f 1 , f 2 , f 3 , each with generalization error &#179;, and let A, B, C be three disjoint subsets of the support of the underlying distribution, each of probability weight &#179;/2. If the classifier f 1 errs on inputs in A &#8746; B, the classifier f 2 errs on A &#8746; C, and f 3 errs on B &#8746; C then the majority of f 1 , f 2 , f 3 errs on inputs in A &#8746; B &#8746; C and hence the generalization error grows from &#179; to 1.5&#179;.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="7" xml:id="foot_2"><p>We omit the dependency on &#1013;, &#182;, &#179;, &#180;in this brief review.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="8" xml:id="foot_3"><p>Formally, A can be thought of as two mechanisms A = (M 0 , M 1 ) where M 0 is (&#1013;, &#182;)-differentially private. (i) On input a labeled training sample S mechanism M 0 computes a hypothesis h 0 . (ii) On a query x &#8712; X mechanism M 1 replies h 0 (x).</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="9" xml:id="foot_4"><p>For example, stopping GenericBBL after the count of halts crosses a precise threshold would reveal that the last query caused BetweenThresholds to halt, and hence breach differential privacy.</p></note>
		</body>
		</text>
</TEI>
