Manuscript Offprint
arXiv:2610.23160Nearly Linear Private Learning of Littlestone Classes
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Differentially private learning aims to learn from data while protecting individual training examples. For binary classification, finite Littlestone dimension characterizes approximate private PAC learnability (Alon et al., JACM 2022). Understanding how this dimension controls private sample complexity remains a central question. For classes of Littlestone dimension , the first general upper bound was doubly exponential in (Bun, Livni, and Moran, FOCS 2020). Subsequent work improved this to (Ghazi et al., STOC 2021) and then to (Lyu, STOC 2026). We prove a nearly linear upper bound of .
Our main algorithmic contribution is a structural exponential mechanism for data-dependent candidate sets equipped with a rank satisfying suitable stability conditions. For natural Littlestone classes such as subspace indicators, this rank has a simple geometric interpretation: it is the codimension. This yields a private PAC learner for subspaces of dimension at most d over any field, with tight linear dependence on d and no dependence on the ambient dimension, improving the quadratic dependence of Kaplan et al. (STOC 2025). Our second contribution is combinatorial: drawing on model-theoretic ideas, we construct a suitable rank for general Littlestone classes and establish the counting bounds required by the mechanism.
1 Introduction
A basic goal of learning theory is to understand how much data is needed to learn an unknown concept. In the classical PAC model, a learner receives labeled examples drawn from an unknown distribution and should produce a predictor that is accurate on new examples from the same distribution; see, for example, [16]. For binary concept classes, Vapnik–Chervonenkis (VC) dimension [28] characterizes learnability and controls the number of examples needed to achieve a desired accuracy and confidence [5, 11, 27, 13].
*Departments of Mathematics, Computer Science, and Data and Decision Sciences, Technion – Israel Institute of Technology; Google Research. Shay Moran acknowledges support by Israel by ISF grant 2362/26. and by the European Union (ERC, GENERALIZATION, 101039692).
Department of Mathematics, Technion – Israel Institute of Technology. Chao Yan acknowledges support by Israel by ISF grant 2362/26. and by the European Union (ERC, GENERALIZATION, 101039692).
When training examples contain information about individuals, we also want the learning algorithm to protect their privacy. Differential privacy formalizes the protection of individuals by requiring that the distribution of the algorithm's output change only slightly when a single training example changes [7, 9]. There are two standard forms of this guarantee: pure differential privacy and its relaxation, approximate differential privacy [8]. Every purely private algorithm is also approximately private, but the converse need not hold. Private PAC learning combines privacy with the usual prediction guarantee [15]. This raises three basic questions:
-
Learnability: Which concept classes can be learned privately?
-
Sample complexity: How many examples are necessary and sufficient?
-
Learning principles: Which general learning methods attain the optimal sample complexity?
For pure differential privacy, all three questions have a general answer. Finiteness of the representation dimension characterizes which concept classes are learnable, and this dimension determines their optimal sample complexity up to constant factors for fixed learning and privacy parameters [4]. The matching upper bound is achieved by the exponential mechanism [23], a basic scheme for private optimization. It is thus the governing algorithmic principle behind this characterization of pure private PAC learning. We recall the mechanism in Section 2.2.
For approximate differential privacy, the first question has a complete answer: a binary concept class is privately PAC learnable if and only if its Littlestone dimension is finite [3, 6, 2]. Finite Littlestone dimension also characterizes online learnability [18]. Thus, exactly the same classes are learnable when examples arrive stochastically, under approximate differential privacy, and when examples arrive adversarially, without a privacy requirement.
The other two questions—the optimal sample complexity and the algorithmic principles that attain it—remain open. We now review what is known about the sample complexity of private learning. Let and denote the Littlestone dimension and VC dimension of the concept class, respectively. Suppressing the learning and privacy parameters, the general upper bound improved from doubly exponential in [6] to [12] and then to [19], while the general lower bound is [11, 3].
We prove a nearly linear upper bound of (Theorem 1). Among bounds depending only on Littlestone dimension, this is optimal up to a logarithmic factor. Indeed, even without privacy, learning requires examples, where is the VC dimension [11]. For classes with , this gives an lower bound.
Our proof has two main ingredients. First, we formulate a structural exponential mechanism, a variant of the exponential mechanism for data-dependent candidate sets (Theorem 2). To apply this variant, one must equip the candidate hypotheses with a ranking function satisfying suitable stability axioms. Second, we construct such a rank for general Littlestone classes (Definition 1) and verify these axioms (Section 7.3). This rank is rooted in model theory and builds on connections with learning developed by [20, 21]. As a simpler application, we use the structural mechanism to learn indicators of linear subspaces. Here codimension serves as the rank, giving a tight sample complexity bound that is linear in the maximum subspace dimension and independent of the ambient dimension (Theorem 3).
The learning guarantees below are stated in the realizable setting. Known reductions [1, 17] extend such guarantees to the agnostic setting while preserving properness. The refined reduction of [17] incurs an additive sample overhead of , where denotes excess error. The precise bound and its application under addition/deletion adjacency are given in Appendix B.
2.1 Nearly Linear Dependence on Littlestone Dimension
Theorem 1 (Private PAC learning of Littlestone classes). Let be a nonempty class with . There exists an -differentially private -PAC learner for with sample complexity
The construction and proof appear in Section 7. For fixed learning and privacy parameters, the bound is . The lower bound for classes with shows that this dependence is optimal up to a logarithmic factor in the worst case.
Although our bound is nearly optimal in the worst case, it leaves room for substantially smaller sample complexity when VC dimension is much smaller than Littlestone dimension. Writing , the log-star question asks whether sample complexity can be bounded by , apart from the learning and privacy parameters. This question, explicitly raised by Nissim, Stemmer, and Tsfadia in their COLT 2026 open-problem paper [24], remains open.
2.2 A Structural Exponential Mechanism
The exponential mechanism [23] is a basic tool for private optimization and can be viewed as a differentially-private counterpart of empirical risk minimization. In learning, an empirical risk minimizer selects a hypothesis with the smallest empirical loss on the sample. In the terminology of the exponential mechanism, one instead maximizes a score; taking the score to be minus the loss makes the two objectives equivalent. Such a deterministic choice can change abruptly when one example changes. The exponential mechanism instead assigns larger probability to hypotheses with higher scores, while controlling how much these probabilities change between neighboring datasets.
Throughout, a sample (or dataset) is a finite sequence of examples, with repetitions allowed. Two datasets are neighboring if one is obtained from the other by inserting one example at any position or deleting one entry, preserving the relative order of all remaining entries. All privacy guarantees use this addition/deletion adjacency convention. Our PAC sample complexity bounds also hold under replacement adjacency.
The exponential mechanism guarantees pure differential privacy ( ) and is the governing algorithmic principle behind the characterization of pure private PAC learning by representation dimension [4].
The classical exponential mechanism. Let be a fixed, finite, nonempty output set, and let be a real-valued score to be maximized. Suppose that for every pair of neighboring datasets and every , where . The exponential mechanism [23] samples with probability proportional to . It is -differentially private and, for every input and , with probability at least ,
See also [10, Section 3.4].
A structural variant. The classical mechanism requires its candidate set to be fixed independently of the dataset. This prevents a direct application when the useful candidates are constructed from the sample itself: an output available on one dataset may disappear on its neighbor. Approximate privacy allows such outputs to have a small total probability, which can be charged to . Our main algorithmic contribution is a structural variant of the exponential mechanism that controls this probability and permits data-dependent candidate sets. It underlies our nearly linear dependence on Littlestone dimension.
The mechanism modifies the empirical score by adding a structural bonus , where is an integer rank. Higher rank is favored. This balance between empirical fit and a preference for simpler solutions parallels structural risk minimization and motivates the name structural exponential mechanism.
Setup. Fix a (possibly infinite) output universe and a rank . For each dataset , let be a score function and let be a finite, nonempty data-dependent output set. The score is to be maximized. For example, in classification, can count the examples that classifies correctly. Write for the range of the rank on :
Algorithm 1 Structural exponential mechanism A
Require: Dataset S; privacy parameters , .
Require: Score sensitivity bound and preimage growth bound , as in Theorem 2.
1: Set .
2: Sample with probability proportional to
.
3: return .
Under replacement adjacency, two sequences have the same length and differ in exactly one coordinate. A replacement consists of a deletion followed by an addition. By group privacy, an -private algorithm under addition/deletion is -private under replacement. Thus, for , using and gives -privacy under replacement, affecting our sample complexity bounds only by constant factors.
Theorem 2 (Structural exponential mechanism). Fix and , and suppose that for every ordered pair of neighboring datasets there is a map satisfying the following conditions:
-
Low sensitivity. For every , .
-
Rank increase. Let . If then ; else, .
-
Bounded preimages. For every and integer ,
- Score preservation under the maps. For every , .
Then, Algorithm 1 is -differentially private and for every dataset and , with probability at least its output satisfies
The proof appears in Section 5. Equation (2) bounds the difference between the output's score and the highest score among the candidates. The bound consists of the usual exponential-mechanism term, logarithmic in the number of candidates, and an additional term linear in the rank range defined in (1). The term reflects the local growth of preimages: the bound at rank gap contributes a logarithmic cost of per unit of rank, over the range . In classification, taking , where is the integer number of mistakes on , gives . In our application to a class of Littlestone dimension , the rank takes values in , so ; see Section 3.3.
Note that the maps are used only in the proof and are not needed for the algorithm.
In the next section we explain how this mechanism recovers the classical exponential mechanism and applies to subspace learning and general Littlestone classes. That section provides an overview; the formal proofs of the mechanism and its applications appear in Sections 5, 6, and 7.
3 Technical Overview
This section gives an informal overview of the structural exponential mechanism and the combinatorial ideas behind its application to Littlestone classes. We begin with a simple warm-up: recovering the classical exponential mechanism by assigning rank zero to every candidate. We then turn to a richer application, learning subspaces, where codimension provides a natural rank. This yields a tight sample complexity bound, improving the quadratic dependence on subspace dimension in the bound of Kaplan et al. [14] to linear. Building on the intuition from subspaces, we explain how to construct an abstract rank for general Littlestone classes and establish the counting bounds required by the mechanism. Formal proofs are deferred to the subsequent sections.
3.1 The Classical Exponential Mechanism
We now explain how to recover the classical exponential mechanism as an instance of the structural exponential mechanism. To this end, set the output universe U to be R, the fixed, finite, nonempty set of candidate solutions available to the classical mechanism, and set for every sample . Thus, the same candidates are available on every sample.
We use the original score function , with sensitivity at most , and assign rank zero to every candidate:
These choices specify the sampling rule. The rank bonus vanishes, so Algorithm 1 samples with probability proportional to , exactly as in the classical exponential mechanism.
To apply Theorem 2, we must also define the maps used in the analysis. For every ordered pair of neighboring datasets , take the identity map , given by . These maps are used only in the analysis and need not be computed by the algorithm. Since all candidates belong to both output sets, the identity map satisfies the rank condition. It has no preimages of smaller rank, so the preimage bound holds with . Score preservation under this map is exactly the assumed sensitivity bound. Thus all the hypotheses of Theorem 2 are satisfied. The rank range is , so the theorem gives the usual utility bound with no rank term. Moreover, no outputs disappear between neighboring datasets, so the privacy analysis gives pure -privacy.
3.2 Subspaces: Codimension as Rank
We next explain how to instantiate the structural exponential mechanism for private learning of subspace indicators. Here the candidate set depends on the sample, and codimension provides a natural rank.
Let F be any field and let . The concept class is
Here means that is a linear subspace. The learner receives independent labeled examples , where the target subspace has dimension at most and the distribution of is arbitrary. The goal is small population classification error, counting both false positives and false negatives.
Theorem 3 (Private PAC learning of subspaces). For every field and integers , the class has a proper -differentially private -PAC learner with sample complexity
The bound is independent of the field and the ambient dimension D.
This class has VC dimension and Littlestone dimension exactly (Lemma 2). Consequently, for fixed learning and privacy parameters, the linear dependence on is tight even without privacy. Theorem 3 is sharper than what follows by substituting into Theorem 1: it avoids the additional factor.
Kaplan et al. [14] gave efficient private algorithms for subspace learning with quadratic dependence on the target dimension. They explicitly asked about closing the gap between their bounds and the necessary linear dependence on dimension [14, Section 2.4 and Appendix A]. Our bound closes this dimensional gap at the level of sample complexity. Their open question also asks for computationally efficient algorithms; our result does not settle that additional requirement. Combining our bound with their reduction yields an -differentially private solver for linear equations over any field. Given a consistent system in variables with sufficiently many equations, it returns an assignment satisfying at least a fraction of them with probability at least . For fixed , a number of equations linear in suffices. We give the precise bound and proof in Appendix A.
Applying the structural mechanism. We first describe a private procedure for selecting a subspace from a finite sequence of vectors in . We will then apply this procedure to the positive examples in a labeled sample. Set the output universe to be
the collection of all linear subspaces of dimension at most . For each input , the candidate solutions are the distinct subspaces in this universe that can be spanned by vectors from :
This set is finite and contains the zero subspace, obtained by taking . We score a candidate by the number of positions whose vectors it contains, and rank it by its codimension:
Thus the score rewards covering many input vectors, while the rank favors smaller subspaces. With privacy parameters and , and with as verified below, these choices specify Algorithm 1: it samples with probability proportional to
For the analysis, we define the maps between neighboring candidate sets. Suppose P is obtained from Q by inserting one vector u at an arbitrary position. Define
Here is the subsequence of entries of Q lying in V, in their original order, and the span of a sequence means the linear span of its entries. The first map retains the part of V spanned by the remaining input vectors; its image belongs to . The reverse map is inclusion, since every candidate generated from Q is also generated from P.
These maps fix every common candidate. For the map , we now reverse the insertion: delete the newly inserted entry from to recover . If , then every subsequence of spanning must include this entry; otherwise, would already belong to . Hence
Thus V loses exactly one dimension under the map, and its rank increases by one.
The deletion map is at most two-to-one. Each image has the fixed preimage itself, and at most one additional preimage, namely . When this additional preimage exists, its dimension is one larger than that of , so its rank is one smaller.
Recall that bounds the number of preimages at each positive rank gap (Theorem 2): at gap , there must be at most preimages. Here there is at most one preimage at gap one and none at larger gaps. The fixed preimage has gap zero and does not enter this count. Thus we may take .
For a fixed subspace, adding or deleting one vector changes its score by at most one. Also, V and contain exactly the same vectors of Q, so their scores on P and Q differ by at most one. The reverse inclusion map satisfies the same score bound. This verifies the sensitivity and score-preservation conditions with . Theorem 2 therefore gives -privacy under addition/deletion on all input sequences.
To obtain the PAC learner, form P by retaining the vectors of the positively labeled entries of S, in their original order, and apply this procedure with privacy parameters . Adding or deleting one labeled example changes P by at most one vector. The returned subspace indicator therefore inherits -privacy.
On a realizable sample of size , the positive examples lie in the target subspace, which has dimension at most . Every candidate therefore lies in the target subspace, so there are no false positives: missed positive examples are exactly the classification errors. The full positive span is a candidate containing all the positive examples. The rank range is at most , and, for , . Theorem 2 and the VC generalization bound of Lemma 1 give Theorem 3. The absence of from the preimage bound is what avoids the extra log factor in the general Littlestone result. In Section 6 we give a complete proof of Theorem 3.
3.3 Littlestone Classes: Ranks and Local Counting
We now describe the rank and the data-dependent candidate sets that allow the structural exponential mechanism to yield our main result. Fix a nonempty class with . The rank is a combinatorial abstraction of the linear algebraic codimension, defined for every class of finite Littlestone dimension. We first develop the definition through the simple example of the class of singletons, then explain its relation to subspace codimension and how it guides the construction of candidates.
Model-theoretic origins. Littlestone dimension is the finite combinatorial form of Shelah's 2-rank [26, 21]. In learning theory, it provides an abstraction of majority voting that applies even to infinite classes. Given the class H and a query point x, compare
The label whose class has larger Littlestone dimension plays the role of the majority label, even when both classes are infinite. This gives the Standard Optimal Algorithm (SOA) predictor of Littlestone [18], defined formally in Definition 5. Our rank relies on the Littlestone dimension of version spaces (Definition 2): the subclasses of H consistent with a prescribed collection of labeled examples. To construct the candidate set for the structural exponential mechanism, we select, based on the sample, a small collection of version spaces and use their SOA predictors as candidates. Together, these candidates realize every labeling of the sample induced by H. To bound the size of this candidate set, we also use ordinary majority votes in finite good families: families of predictors in which, at each point, almost all members assign the same label. These families appear in the stable regularity framework of Malliaris and Shelah [22] and its learning-theoretic development [20]. The treatment below is self-contained and requires no model theory.
Rank at least zero: local realizability. For a predictor and a finite set , write
for the version space obtained by prescribing the labels of on . For an integer , we say that is -locally realizable with respect to if this version space is nonempty for every of size at most . Thus, the labels of on any set of at most points are consistent with : any finite collection of labeled points certifying that , if one exists, must contain at least points.
We now take and use the -locally realizable predictors as our output universe and as the predictors of rank at least zero:
Every member of H belongs to , but can strictly contain H.
For example, let be infinite and let be the singleton class, where . This class has Littlestone dimension . Its locally realizable completion is
where 0 is the constant-zero predictor. Indeed, the zero labeling on any two points is realized by a singleton outside those points, while a predictor that labels two distinct points positively is not locally realizable.
Higher ranks. To have rank at least one, a predictor must first belong to . We then require that prescribing its labels on any set of at most d points leaves a version space of Littlestone dimension at least one. The predictors satisfying this additional condition form .
If , rank at least two requires membership in and requires that every set of at most points leave a version space of dimension at least two. These predictors form . We continue in this way: each step raises the required remaining dimension by one and reduces the number of prescribed labels by one. At the last step, membership in requires membership in and dimension at least after prescribing the label of any single point.
Definition 1 (Rank). Let . For , recursively define
For , set .
Thus consists of the predictors of rank at least r. Higher rank means that a large Littlestone dimension remains after prescribing the predictor's labels on small sets. The rank depends only on H and the predictor, and is independent of the sample.
Basic properties of the rank. Three combinatorial properties will guide the construction: predictors of higher rank form classes of smaller Littlestone dimension (Lemma 4); overwhelming majorities increase rank (Lemma 5); and small sets of labeled points distinguish predictors from others of equal or higher rank (Lemma 6). We state and prove these properties together in Section 7.1.
For the singleton class, the constant-zero predictor has rank one: prescribing a zero at any point leaves all the other singletons, whose Littlestone dimension is still one. Each singleton has rank zero, because prescribing its positive label at leaves the singleton version space , of dimension zero.
Although and this inclusion may be strict, its Littlestone dimension is the same like :
Indeed, any path in a tree of depth uses at most points, so local realizability would transfer a shattered tree of this depth from to ; see also Lemma 4.
Relation to codimension. For the subspace class of Section 3.2, suppose that . Then the abstract rank of the indicator of a subspace is its codimension relative to the dimension cap:
This measures how many dimensions remain available after specifying V. Adding the constant recovers the geometric rank used for subspaces; this shift changes neither rank gaps nor sampling probabilities.
Constructing the candidate set. Our goal is to construct a small data-dependent candidate set that satisfies the requirements of the structural exponential mechanism. We use version spaces both in the original class H and in the enlarged class U.
The small-witness property (Lemma 6) gives each a witness set of at most points such that the version space in agreeing with on contains only and predictors of lower rank. We denote this witness version space by . The corresponding version space in has SOA predictor . We fix one such witness for each predictor, independently of the sample.
We now describe the construction of for a given sample S, formalized in Algorithm 3:
-
Partition U into the nonempty version spaces induced by all labelings of the sample points.
-
Within each version space, proceed from rank d down to rank zero. At each rank, select every predictor that does not belong to the witness version space of a predictor selected at a higher rank.
-
Take the union of the selected predictors over all these version spaces to obtain the candidate set .
A useful observation (Lemma 10) is that, by construction, every predictor is either selected or belongs to the witness version space of a selected predictor of strictly higher rank in the same version space. In particular, realizes every labeling of the sample induced by .
For subspaces with , this yields precisely the subspaces of dimension at most spanned by subsets of the sample points, regardless of their labels. The construction in Theorem 3 uses only positively labeled points, which reduces the candidate set when many labels are zero.
The neighboring-sample map. For every ordered pair of neighboring samples , where is obtained from by adding or deleting one example, define as follows.
-
If also belongs to , set .
-
Otherwise, consider the version space in of predictors agreeing with on every point of . Since , Lemma 10 guarantees that belongs to the witness version space of some predictor selected at a strictly higher rank in this same version space. Set , choosing one such by a fixed rule.
Thus the map fixes common candidates, strictly increases the rank of disappearing candidates, and preserves their labels on the points of T.
Counting the candidates. We need to bound both the total number of candidates, for utility, and the number that can map to a single candidate on a neighboring sample, for privacy. The argument rests on two combinatorial lemmas about good families. Recall that a finite nonempty family G is good if, at every point, fewer than a fraction of its members disagree with its pointwise majority predictor . Consequently, on any set of at most points, more than half of G agrees with simultaneously on all those points.
We summarize good-subfamily extraction and the majority property below. Their full statements are Lemmas 8 and 5, respectively.
-
Finding a good subfamily. A finite family of Littlestone dimension at most with more than members contains a good subfamily with at least two members.
-
Majority increases rank. For , the majority predictor of a good family of at least two distinct predictors, all of rank at least s, has rank at least .
These lemmas imply that the selected candidates of any one rank in a version space cannot contain a good family with at least two members. To see this, fix one of these version spaces V and suppose that some selected predictors of rank form such a good family . Its majority still belongs to , because all members of agree on the sample points. By Lemma 5, has rank greater than . Thus, was considered before rank and lies in the witness version space of a predictor selected at a rank above (possibly itself) (Lemma 10). Goodness ensures that some member of agrees with on the at most witness points. It therefore belongs to that same witness version space and could not have been selected at rank , a contradiction; this is the avoidance argument of Lemma 9. At rank , there is at most one predictor, since (Lemma 4).
We now apply Lemma 8 to turn this exclusion into counting bounds. The predictors of rank at least have Littlestone dimension at most (Lemma 4), so at most rank- candidates can be selected in any one version space. Summing over ranks and using the Sauer–Shelah bound (recalled in Section 4.2) on the number of nonempty version spaces induced by the sample points gives a total candidate count whose logarithm is for .
For the local bound, fix a predictor of rank . Inside its witness version space , the predictors of rank at least have Littlestone dimension at most (Lemma 7). The same argument therefore bounds the number of selected rank- predictors in and a fixed version space by . The exponent is the rank gap , which is exactly the form needed for the structural mechanism's preimage bound. The precise counting statements appear in Lemma 11.
Applying the mechanism. Using the number of correctly classified examples as the score gives . For a fixed image and rank gap , its preimages agree on the common sample points and hence occupy at most two version spaces on . The local count (Lemma 11) therefore bounds their number by , giving . The rank range is at most , and every realizable sample has a candidate making no mistakes (Lemma 10). The structural mechanism's utility bound (Equation (2)), the candidate count (Lemma 11), and VC generalization (Lemma 1) now yield Theorem 1.
4 Technical Preliminaries
We use natural logarithms, except in the iterated logarithm . For , is the least number of successive applications of needed to obtain a value at most 1; in particular,
0 for . A sample (or dataset) is a finite sequence , with repeated entries allowed. We write for its length and count every position in empirical losses. A subsequence retains the entries at selected positions in their original order. For an integer , write , with .
4.1 Learning and Privacy
Let be a nonempty binary concept class. For a distribution on labeled examples, write . The distribution is realizable by if its labels are given almost surely by some . An -PAC learner, on independent examples from any such distribution, outputs a hypothesis with with probability at least . The probability is over both the sample and the algorithm's randomness. A learner is proper if it always outputs a member of .
We also use the realizable online model, in which examples arrive sequentially and may be chosen adversarially, rather than being drawn independently from a fixed distribution as in PAC learning. At round , the learner observes , predicts , and then receives the label . The sequence must be consistent with some , meaning that for every . Performance is measured by the number of mistakes ; see Littlestone [18].
Two samples are neighboring if one is obtained from the other by inserting one example at any position or deleting one entry, with the remaining entries in the same relative order. A randomized algorithm is -differentially private if, for every ordered pair of neighboring samples and every measurable output event ,
Privacy is required on all inputs, independently of realizability. Pure privacy is the case .
4.2 Dimensions, Version Spaces, and Generalization
Given points , a predictor realizes a binary labeling if for every . A class realizes this labeling if it contains such a predictor. A finite set of points is shattered by if every binary labeling of it is realized by . The VC dimension is the largest size of a shattered set, or infinity if these sizes are unbounded. We next define version spaces and the tree-based analogue of this dimension.
Definition 2 (Version spaces). For a class and a labeled sequence , its version space consistent with is
We also call this the restriction of G to T. In particular,
For a predictor and a finite set , write
for the version space obtained by labeling A according to h.
Definition 3 (Littlestone dimension). A mistake tree of depth m over is a complete binary tree in which every root-to-leaf path has m edges. Each internal node is labeled by a point of . Of the two edges leaving any internal node, one is labeled 0 and the other is labeled 1. A class shatters the tree if, for every root-to-leaf path with successive node labels and edge labels , there exists satisfying for all . The Littlestone dimension is the largest depth of a mistake tree shattered by , or infinity if these depths are unbounded. We set .
Throughout this section, assume
Definition 4 (Empirical loss and realizability). For a sample and a hypothesis , define
Here counts mistakes and is integer-valued. In contrast, the normalized empirical loss is for . The sample is realizable by if , equivalently, .
Definition 5 (Standard Optimal Algorithm classifier). For a nonempty subclass , define by
with ties broken in favor of 0.
The SOA selects a label whose corresponding version space has maximal Littlestone dimension. The version space for the opposite label always has smaller dimension than :
Every set of points shattered in the VC sense gives a shattered Littlestone tree of depth , so . By the Sauer–Shelah bound [25], if and , the number of nonempty version spaces obtained by labeling any points is at most .
Lemma 1 (VC generalization [5]). Let G be a binary class with , where . There is a universal constant C such that, if
then, with probability at least over an independent sample from any distribution , every with satisfies .
The following lemma is folklore; we include a proof for completeness.
Lemma 2 (Dimensions of the subspace class). For every field and , .
Proof. Any linearly independent vectors are shattered: each subset is labeled positively by its span and the other basis vectors lie outside that span. This proves the VC lower bound. For the upper bound, consider the online rule that predicts 1 exactly on the span of previously observed positive examples. On a sequence labeled by , it never makes a false-positive mistake. Every false-negative mistake adds a linearly independent vector to this span, so there are at most mistakes. A shattered tree of depth would force any deterministic online rule to make mistakes, a contradiction.
5 Proof of the Structural Mechanism
Write for the insertion/deletion relation on sequences defined in Section 4. Assume the four hypotheses of Theorem 2 for every ordered pair with .
Proof of Theorem 2. We use the notation and parameter ranges of Algorithm 1 and Theorem 2. All probabilities below are over the internal randomness of A.
We may assume : replace every by and by . This leaves the sampling distribution unchanged and makes both score bounds at most one. We use and for the normalized quantities, so . At the end, multiplying the utility bound by recovers the statement in the original score units.
We first prove privacy. Fix datasets and choose maps and satisfying the theorem's hypotheses. Let be their common output set. The key step is to bound the probability of outputs that disappear when the dataset changes from to . For and , define the weight and normalizing constant by
Each is finite and strictly positive because is finite and nonempty. For every measurable event , write
Weights of disappearing outputs. Fix , and put and . The rank-increase axiom makes a positive integer. Score preservation under the map gives
For each fixed image and rank gap , there are at most such preimages, each of weight at most . Summing first over the preimages, then over the rank gaps and images, gives
(3)
Applying the same argument to the reverse map gives (3) with S and T interchanged.
Privacy. For , its rank is the same on both datasets, so low sensitivity gives . Splitting each normalizing constant into common and disappearing outputs therefore yields
In particular, , since and . Dividing (3) by now shows that the probability of a disappearing output is small:
For an arbitrary measurable event , combining this with the weight comparison for common outputs gives
where the last step uses . Interchanging S, T proves the other privacy inequality.
Utility. Fix a dataset and a failure probability , and let be the random output. Write and define the regularized score for , with . Recall that is the difference between the largest and smallest ranks on (Equation (1)). For every , direct comparison with a maximizing candidate gives
Take , and let maximize over . On the resulting event of probability at least ,
Since , the normalized rank coefficient satisfies
where we used . Substituting this bound and returning to the original score units proves (2).
6 Application to Subspace PAC Learning
We first analyze a private span-selection procedure using Theorem 2, and then turn it into a proper PAC learner with the same privacy parameters. Throughout, the dimension cap d and ambient space are fixed independently of the input.
6.1 Private Span Selection
For a finite sequence of vectors, write
This finite set is nonempty because it contains . We write span for the span of its entries and for the subsequence of entries lying in . With privacy parameters and , apply Algorithm 1 with
Denote this procedure by . It uses and samples with probability proportional to .
Lemma 3 (Span selection). The procedure SpanSelect is -differentially private under addition/deletion on all finite sequences of vectors. Its output V always satisfies and . If and , then, for every , with probability at least ,
If , there are no missed vectors.
Proof. We verify the four axioms of Theorem 2. For a fixed V, adding or deleting one vector changes by at most one, so the low-sensitivity axiom holds with .
Let be obtained from by inserting one vector , and define . The image is generated by vectors of and has dimension at most , so it belongs to . The reverse map is inclusion. If , then spans , so the map fixes every common output.
If , any subsequence of spanning must include the inserted entry . Hence
It follows that and . For each , the subspace itself is a preimage of the same rank. Any other preimage must equal and has rank . Thus has at most one preimage whose rank is one less than its own, and none whose rank is smaller by two or more. This proves the preimage bound with . The reverse inclusion map fixes every input, so it has no preimages of smaller rank.
Finally, V and contain exactly the same vectors of Q. Their scores on P and Q therefore differ by at most one. For the inclusion map the same score bound is immediate. All four axioms hold on arbitrary input sequences, proving privacy.
For utility, suppose . The full span belongs to and has score . The rank range on the candidate set is , and every candidate has a basis of at most input vectors. Since ,
Substituting , , and this candidate count into (2) gives the claimed bound on , the number of missed vectors. When the input span is zero, the zero subspace is the only candidate and contains every input vector.
6.2 From Span Selection to a Proper PAC Learner
Algorithm 2 Private PAC learning of subspace indicators
Require: Labeled sample in ; dimension cap ; privacy parameters , .
1: Form .
2: Sample .
3: return .
Proof of Theorem 3. Inserting or deleting one labeled example inserts or deletes at most one vector in the sequence of positive examples. Lemma 3 therefore gives -privacy for the returned subspace indicator by postprocessing. The dimension cap ensures that the output always belongs to , so the learner is proper.
Now let be realizable by . Since every entry of lies in every candidate satisfies Thus there are no false-positive errors, and
In particular, we use the score on positive examples only; negative examples need not satisfy any structural score condition on unrealizable inputs. The full positive span is a candidate of zero loss. For , the rank range is at most and . Applying Theorem 2 with failure probability gives
For
with a sufficiently large universal constant , the right-hand side is at most . The cancellation of in is what avoids a term in this sample bound. Finally, Lemma 2 gives VC dimension , so Lemma 1, with failure probability , transfers empirical error at most to population error at most . A union bound completes the proof.
7 Application to Littlestone Classes
We recall the construction from Section 3.3 and verify the four axioms of Theorem 2. Fix a nonempty class H of Littlestone dimension . We first define the output universe and rank, then establish some basic combinatorial properties in Section 7.1. Section 7.2 uses these properties to construct and count the candidates sets associated with the input samples. Sections 7.3 and 7.4 then prove privacy and the PAC guarantee.
Universe and rank. We allow outputs outside H, but require their labels on every set of at most points to be consistent with H. This gives the output universe
The rank (Definition 1) measures how much Littlestone dimension survives when we prescribe a predictor's labels on small sets. For , set
For , its rank is
7.1 Basic Properties of the Rank
Before analyzing the learning algorithm, we establish three basic combinatorial properties of the rank.
Lemma 4 (Dimension decreases with rank). For every integer , the class of predictors of rank at least has Littlestone dimension at most . In particular, .
Lemma 5 (Overwhelming majorities increase rank). Let , and let be a finite family of at least two distinct predictors in of rank at least . If, at every point, fewer than a fraction of disagree with its majority predictor , then has rank at least .
Lemma 6 (Small witnesses distinguish predictors). For every predictor of rank , there is a set of at most points such that is the only predictor of rank at least agreeing with on . The same set satisfies
Here SOA is the Standard Optimal Algorithm predictor, defined in Definition 5.
Proof of Lemma 4. We first handle , proving the stronger equality . Since , we have . For the reverse inequality, suppose that shatters a complete binary tree of depth . Fix any root-to-leaf path, and let realize its labels. The set of points queried along this path has size at most . By the definition of , some realizes the same path. Thus also shatters this tree, contradicting . Therefore .
For , suppose towards contradiction that shatters a tree of depth . For each root-to-leaf path, let be its set of points and choose realizing its labels. Since , the version space has dimension at least . Append a tree of depth shattered by this version space below the corresponding leaf. Doing this for every leaf gives a tree of depth shattered by , a contradiction.
Proof of Lemma 5. Write . The assumed pointwise agreement and a union bound imply that, for every set of at most points,
Since , at least two members agree with on all of . First, : for each such , take an agreeing , giving . For and , the same choice gives
since . Hence .
Now fix . Choose distinct agreeing with on , and a point where they differ. Necessarily . The two branches of at are and . Both have dimension at least , because and . For , use membership in . Putting above shattered trees of depth in the two branches proves . This holds for every such , so .
Proof of Lemma 6. Let . We first choose with the claimed size and dimension. If , take , so has dimension . For , the fact that supplies with and dimension less than , while gives dimension at least . Thus in every case and .
We next show that . For any , we have , and hence
The first inequality follows from when and from local realizability when . Thus the branch corresponding to has dimension . The opposite branch has smaller dimension:
otherwise, putting above two shattered trees of depth would give dimension at least for . Therefore the SOA predicts at every point .
To prove the distinguishing property, let have rank at least and agree with on . Then has dimension . The same branch argument applies to : membership in (or local realizability if ) shows that its label at every point is the SOA label of this version space. Hence .
7.2 Candidate Construction and Counting
In this subsection, we present Algorithm 3 for constructing the candidate set of the structural exponential mechanism and prove bounds on the number of candidates, both in total and inside each witness version space. The small-witness lemma (Lemma 6) provides the exclusion rule used in the construction, while the dimension bounds (Lemmas 4 and 7) and the majority property (Lemma 5) control how many candidates survive this rule.
Witness version spaces. For each , fix one witness supplied by Lemma 6. The witnesses are fixed once and for all, independently of the input sample , and the same witnesses are used to construct the candidate set for every sample. Define
The distinguishing property in Lemma 6 ensures that every member of other than has strictly smaller rank. These witness version spaces guide candidate selection.
Selecting candidates. We now define the candidate set for each input sample.
For a sample and a labeling , write
The nonempty version spaces partition ; we consider all labelings , regardless of the observed labels .
Algorithm 3 constructs by processing each version space from higher to lower rank. At each rank, we keep every predictor that does not belong to the witness version space of a candidate already selected at a higher rank in the same version space.
Algorithm 3 Candidate set construction for Littlestone classes
Require: Sample ; universe , rank , and witness version spaces as above.
1: for all nonempty version spaces , do
2: .
3: for do
4: .
5: .
6: end for
7: end for
8: , where the union is over the version spaces processed above.
9: return .
We set . Lemma 10 proves , and Lemma 11 establishes an upper bound on its size.
Counting candidates. We will bound the total number of candidates and, within each version space , the number of candidates of a given rank belonging to a fixed witness version space (Lemma 11). The latter bound will control how many candidates can map to a fixed output in the privacy analysis. To this end, we first complement the dimension bound for in Lemma 4 with a bound on the dimension of .
Lemma 7 (Dimension inside a witness version space). Let have rank . For every , the class of predictors in whose rank is at least has Littlestone dimension at most ; that is, . In particular, .
Proof. Suppose, towards a contradiction, that shatters a tree of depth . For each root-to-leaf path, let be its set of points and choose realizing its labels. Since
membership in (Definition 1) gives when . When , local realizability of and ensure that is nonempty, so its Littlestone dimension is at least . Every member of this version space agrees with on and realizes the path. Appending a shattered tree of depth below each leaf therefore gives a tree of depth shattered by , contradicting its dimension .
Finally, taking gives . This intersection contains and cannot contain a second distinct predictor, since two distinct predictors shatter a tree of depth one. Hence .
To bound the number of selected predictors of rank , we combine the dimension bounds for and (Lemmas 4 and 7) with the following extraction lemma. For , a finite nonempty family is -good if, for every , one label is assigned by fewer than members of . The other label defines its majority predictor . In particular, fewer than members disagree with at any one point. We call good if it is -good.
The next lemma is the good subset extraction argument of Malliaris and Shelah [22, Section 5], stated in terms of Littlestone dimension. We include its short proof for completeness.
Lemma 8 (Good subset). Every finite nonempty family with contains a good subset of size at least .
Proof. Write . If the current family is not good, some point splits it into two parts, each of size at least a fraction of the family. At least one part has strictly smaller Littlestone dimension. Keep that part and repeat. After at most steps the remaining nonempty family is good, and its size is at least .
Lemma 5 shows that the majority of a good family of at least two predictors of rank at least has rank at least . For the selection argument, we also need that this majority avoids any witness version space avoided by all members of the family.
Lemma 9 (Majorities preserve avoidance of witness version spaces). Let be a finite nonempty good family, and let . If every member of lies outside , then its majority predictor also lies outside .
Proof. Suppose that . By a union bound, at most members of disagree with somewhere on . Thus some agrees with , and hence with , on . This gives , a contradiction.
Before combining these facts, we record that every omitted predictor belongs to the witness version space of a selected predictor of strictly higher rank.
Lemma 10 (Coverage). Let be a sample and a nonempty version space. For every , some satisfies and . If , then .
Proof of Lemma 10. If , take . Otherwise, the selection rule in Algorithm 3 excludes at rank precisely because it lies in the witness version space of a predictor selected at a strictly higher rank.
Combining good-subfamily extraction (Lemma 8), rank increase (Lemma 5), avoidance of witness version spaces (Lemma 9), and coverage (Lemma 10) gives the candidate counts for Algorithm 3 below; in the local bound, the exponent is the difference in ranks.
Lemma 11 (Global and local candidate counts). For every sample S, every nonempty version space , and every ,
For every of rank ,
Consequently, for a sample of size ,
Proof of Lemma 11. We first show that contains no finite good family of size at least two. For , this follows from (Lemma 4). For , suppose such a family exists. Its majority has rank greater than by Lemma 5, and belongs to the same version space . All members of avoid every witness version space of a predictor selected in at a rank above ; Lemma 9 shows that also avoids these witness version spaces. But Lemma 10 puts in the witness version space of a selected predictor of rank at least , a contradiction.
If , choose a finite subset larger than this bound. It has Littlestone dimension at most , since and Lemma 4 bounds the dimension of . Lemma 8 supplies a good subset of size at least , contradicting the preceding paragraph. This proves the global bound.
For the local bound, if , choose a finite subset larger than this bound. Lemma 7 gives . The good-subset lemma (Lemma 8) again provides a good family of size greater than one inside , a contradiction.
Finally,
There are at most nonempty version spaces when contains points, by (Lemma 4) and the Sauer–Shelah bound (recalled in Section 4.2). Multiplication proves the total count.
7.3 Verifying the Structural Axioms
We now construct the maps required by Theorem 2, using coverage (Lemma 10) to choose their images and the local candidate bound (Lemma 11) to control their preimages.
Set and for . The candidate set is finite by Lemma 11 and nonempty by coverage (Lemma 10). The score of a fixed predictor changes by at most one when an example is added or deleted.
Fix an ordered pair of neighboring datasets , and let be the shorter sequence. One of equals , and the other is obtained from by inserting one example at some position. For , set . For any other , let be the version space in consisting of predictors that agree with on every point of . Coverage (Lemma 10) provides a selected predictor with and ; set , choosing one such image by a fixed rule. This defines a map to with the required rank increase.
Because g and h agree on every sample point in T, they agree on R. The contributions of R to their scores are equal, and the single additional example contributes either zero or one. Thus
To bound preimages, fix of rank and a gap . If , there are no such preimages. Otherwise, every preimage of rank belongs to and agrees with on . Since is either itself or augmented by one example, these predictors occupy at most two version spaces on . Inside each such version space , every preimage belongs to . The local candidate bound (Lemma 11) therefore gives
The construction works for every ordered pair of neighboring datasets, covering both addition and deletion. All four axioms hold with and .
7.4 Utility and PAC Learning
We finish by combining the mechanism’s utility guarantee (Equation (2)) with the candidate count (Lemma 11) to bound empirical loss, then applying VC generalization (Lemma 1) to obtain the PAC guarantee.
Our learner first constructs using Algorithm 3, then applies Algorithm 1 with this candidate set and the preceding score and rank.
Proof of Theorem 1. By Section 7.3, all four axioms of Theorem 2 hold with and . The theorem therefore gives -privacy on all samples.
Let now be realizable by . Writing , recall that counts the mistakes of on . Coverage (Lemma 10) in the version space supplies a selected predictor agreeing with on all sample points, hence of score . Thus . Rearranging Equation (2) therefore gives an upper bound on , the number of mistakes made by the output. We apply that equation with failure probability , using , , , and, for , from Lemma 11. With probability at least , this gives
For a sufficiently large universal C, this is at most whenever
By Lemma 4, . Lemma 1, with failure probability , now gives population error at most . A union bound proves the claimed PAC guarantee.
Acknowledgements
We are especially grateful to Maryanthe Malliaris for inspiring and encouraging us to explore model-theoretic tools, most notably ranks, in the study of private learning.
AI disclosure. The authors developed the strategy of studying linear subspaces and extending the resulting linear-algebraic arguments to Littlestone classes using model-theoretic ideas, and formulated the structural exponential mechanism. The algorithms and proofs were derived through interaction with ChatGPT Pro. ChatGPT Astra also assisted with the writing. All use of these tools was guided by the authors.
References
[1] N. Alon, A. Beimel, S. Moran, and U. Stemmer. Closure properties for private classification and online prediction. In COLT, volume 125 of Proceedings of Machine Learning Research, pages 119–152. PMLR, 2020.
[2] N. Alon, M. Bun, R. Livni, M. Malliaris, and S. Moran. Private and online learnability are equivalent. Journal of the ACM, 69(4):28:1–28:34, 2022.
[3] N. Alon, R. Livni, M. Malliaris, and S. Moran. Private PAC learning implies finite littlestone dimension. In M. Charikar and E. Cohen, editors, Proceedings of the 51st Annual ACM SIGACT Symposium on Theory of Computing, STOC 2019, Phoenix, AZ, USA, June 23-26, 2019, pages 852–860. ACM, 2019.
[4] A. Beimel, K. Nissim, and U. Stemmer. Characterizing the sample complexity of private learners. In ITCS, pages 97–110. ACM, 2013.
[5] A. Blumer, A. Ehrenfeucht, D. Haussler, and M. K. Warmuth. Learnability and the vapnik-chervonenkis dimension. J. ACM, 36(4):929–965, 1989.
[6] M. Bun, R. Livni, and S. Moran. An equivalence between private classification and online prediction. In 2020 IEEE 61st Annual Symposium on Foundations of Computer Science (FOCS), pages 389–402. IEEE, 2020.
[7] I. Dinur and K. Nissim. Revealing information while preserving privacy. In PODS, pages 202–210. ACM, 2003.
[8] C. Dwork, K. Kenthapadi, F. McSherry, I. Mironov, and M. Naor. Our data, ourselves: Privacy via distributed noise generation. In S. Vaudenay, editor, EUROCRYPT, volume 4004 of Lecture Notes in Computer Science, pages 486–503. Springer, 2006.
[9] C. Dwork, F. McSherry, K. Nissim, and A. Smith. Calibrating noise to sensitivity in private data analysis. In TCC, pages 265–284, 2006.
[10] C. Dwork and A. Roth. The algorithmic foundations of differential privacy. Foundations and Trends in Theoretical Computer Science, 9(3-4):211–407, 2014.
[11] A. Ehrenfeucht, D. Haussler, M. J. Kearns, and L. G. Valiant. A general lower bound on the number of examples needed for learning. Inf. Comput., 82(3):247–261, 1989.
[12] B. Ghazi, N. Golowich, R. Kumar, and P. Manurangsi. Sample-efficient proper pac learning with approximate differential privacy. In Proceedings of the 53rd Annual ACM SIGACT Symposium on Theory of Computing, pages 183–196, 2021.
[13] S. Hanneke. The optimal sample complexity of pac learning. J. Mach. Learn. Res., 17(1):1319–1333, Jan. 2016.
[14] H. Kaplan, Y. Mansour, S. Moran, U. Stemmer, and N. Tur. On differentially private linear algebra. In Proceedings of the 57th Annual ACM Symposium on Theory of Computing, STOC '25, pages 2362–2373, New York, NY, USA, 2025. Association for Computing Machinery.
[15] S. P. Kasiviswanathan, H. K. Lee, K. Nissim, S. Raskhodnikova, and A. Smith. What can we learn privately? SIAM J. Comput., 40(3):793–826, 2011.
[16] M. J. Kearns and U. V. Vazirani. An Introduction to Computational Learning Theory. MIT press, Cambridge, Massachusetts, 1994.
[17] B. Li, W. Wang, and P. Ye. Private realizable-to-agnostic transformation with near-optimal sample complexity. In Proceedings of the Thirty Eighth Conference on Learning Theory, volume 291 of Proceedings of Machine Learning Research, pages 3700–3722. PMLR, 2025.
[18] N. Littlestone. Learning quickly when irrelevant attributes abound: A new linear-threshold algorithm. In 28th Annual Symposium on Foundations of Computer Science (sfcs 1987), pages 68–77, 1987.
[19] X. Lyu. Private learning of littlestone classes, revisited. In Proceedings of the 58th Annual ACM Symposium on Theory of Computing, pages 2218–2229, 2026.
[20] M. Malliaris and S. Moran. Agnostic online learning and excellent sets. arXiv:2108.05569, 2021.
[21] M. Malliaris and S. Moran. The unstable formula theorem revisited via algorithms. arXiv:2212.05050, 2022.
[22] M. Malliaris and S. Shelah. Regularity lemmas for stable graphs. Transactions of the American Mathematical Society, 366(3):1551–1585, 2014.
[23] F. McSherry and K. Talwar. Mechanism design via differential privacy. In FOCS, pages 94–103, 2007.
[24] K. Nissim, U. Stemmer, and E. Tsfadia. Invited open problem: Does differential privacy make PAC learning much harder? In S. Hanneke and T. Lattimore, editors, Proceedings of Thirty Ninth Conference on Learning Theory, volume 336 of Proceedings of Machine Learning Research, pages 7129–7135. PMLR, 2026.
[25] N. Sauer. On the density of families of sets. Journal of Combinatorial Theory, Series A, 13(1):145 – 147, 1972.
[26] S. Shelah. Classification theory: and the number of non-isomorphic models. Elsevier, 1990.
[27] M. Talagrand. Sharper bounds for Gaussian and empirical processes. The Annals of Probability, 22(1):28–76, 1994.
[28] V. N. Vapnik and A. Y. Chervonenkis. On the uniform convergence of relative frequencies of events to their probabilities. Theory of Probability and its Applications, 16(2):264–280, 1971.
A A Private Solver for Linear Equalities
The span-selection guarantee (Lemma 3) yields a private solver through the augmented-vector reduction used by Kaplan et al. [14].
Corollary 1. Fix a field and . There is an -differentially private algorithm on systems of linear equations in variables, under addition/deletion of one equation, with the following guarantee. If a system of equations is consistent and
then, with probability at least , the algorithm returns a vector satisfying at least of the equations. Here C is a universal constant, and privacy holds on inconsistent systems as well.
Proof. Write the input sequence of equations as and form the sequence in . Apply SpanSelect to , and let be the output. Choose, by a fixed rule, a solution to
if one exists, and return a fixed vector otherwise. This last operation depends only on W; it can equivalently be performed on any basis of W. Adding or deleting one equation adds or deletes one augmented row. Span selection Lemma 3) therefore gives -privacy, and postprocessing preserves it even on inconsistent inputs.
If the system has a solution , then every augmented row lies in the kernel of the nonzero linear functional . Thus . Moreover, , so the displayed system always has a solution. Every augmented row contained in corresponds to an equation satisfied by the returned vector. Lemma 3 bounds the number of rows outside by
with probability at least . The asserted sample bound makes this at most .
B Extension to Agnostic Learning
We explain how to apply the realizable-to-agnostic reduction of [17, Theorem 3.6] under our addition/deletion privacy convention.
Quantitative bound. Let be a nonempty binary concept class, write , and fix . Let be the sample complexity of an -private -PAC learner for in the realizable setting. By Footnote 1, this learner is -private under replacement. The reduction uses
examples and is -private under replacement, with excess error and failure probability . It also preserves properness.
To obtain excess error at most and failure probability at most , apply the realizable-to-agnostic reduction with sufficiently small constant multiples of and , and take for a sufficiently small absolute constant . This absorbs the constants hidden in the bounds above and controls the additional failure term . The resulting learner is -private under replacement and has the desired learning guarantee on i.i.d. samples of size , where denotes the sample size after these parameter choices.
Extending fixed-size learners. We now show how to convert the replacement-privacy guarantee obtained above into addition/deletion privacy, the convention used throughout this paper. To do so, we extend the agnostic learner from samples of a fixed size n to arbitrary input sizes. Here n is chosen in advance according to the stated sample complexity bound, and we use the same fixed n on every input, including neighboring inputs.
Fix any labeled example , independently of the input; its label is arbitrary. For an input sequence of length , append copies of . For , choose a uniformly random -element subset of and retain those entries in their original order. For , retain the entire sequence. In each case, apply a uniformly random permutation to the resulting positions before running the learner. This last step can be omitted if the learner is invariant under permutations.
For neighboring inputs, the padding and subsampling can be coupled so that the retained entries admit a matching of size at least with identical values. To see this for subsampling, assign independent continuous random priorities to input positions, use the same priorities for corresponding positions in the two inputs, and retain the smallest priorities. Inserting one entry changes the retained positions by at most one exchange. For padding, match all common input entries and all but at most one padding copy. Couple the final permutations by placing matched entries in the same uniformly random positions; the two resulting sequences then differ in at most one coordinate. Averaging the replacement privacy inequality over this coupling proves -privacy on inputs of every size.
The utility guarantee applies when at least n genuine examples are available. On an input of size n, no padding or subsampling occurs. On a larger i.i.d. input, the uniformly selected n examples are themselves i.i.d., and random ordering preserves this distribution. Thus the extension preserves the agnostic learning guarantee. Below size n, padding may affect the loss and the predictions; we assert privacy but no accuracy guarantee on these inputs. Properness is preserved on all inputs.