Differentially Private Empirical Risk Minimization: Efficient Algorithms and Tight Error Bounds
Raef Bassily, Adam Smith, Abhradeep Thakurta
Introduction
Convex optimization is one of the most basic and powerful computational tools in statistics and machine learning. It is most commonly used for empirical risk minimization (ERM): the data set defines a convex loss function which is minimized over a convex set . When run on sensitive data, however, the results of convex ERM can leak sensitive information. For example, medians and support vector machine parameters can, in many cases, leak entire records in the clear (see “Motivation”, below).
In this paper, we provide new algorithms and matching lower bounds for differentially private convex ERM assuming only that each data point’s contribution to the loss function is Lipschitz and that the domain of optimization is bounded. This builds on a line of work started by Chaudhuri et al. .
Given a data set drawn from a universe , and a closed, convex set , our goal is to
We measure the success of our algorithms by the worst-case (over inputs) expected excess empirical risk, namely
where is the output of the algorithm, is the true minimizer, and the expectation is only over the coins of the algorithm. Expected risk guarantees can be converted to high-probability guarantees using standard amplification techniques (see Appendix D for details).
Another important measure of performance is an algorithm’s (excess) generalization error, where loss is measured with respect to the average over an unknown distribution from which the data are assumed to be drawn i.i.d.. Our upper bounds on empirical risk imply upper bounds on generalization error (via uniform convergence and similar ideas); the resulting bounds are only known to be tight in certain ranges of parameters, however. Detailed statements may be found in Appendix F.
Motivation.
Convex ERM is used for fitting models from simple least-squares regression to support vector machines, and their use may have significant implications to privacy. As a simple example, note that the Euclidean 1-median of a data set will typically be an actual data point, since the gradient of the loss function has discontinuities at each of the . (Thinking about the one-dimensional median, where there is always a data point that minimizes the loss, is helpful.) Thus, releasing the median may well reveal one of the data points in the clear. A more subtle example is the support vector machine (SVM). The solution to an SVM program is often presented in its dual form, whose coefficients typically consist of a set of exact data points. Kasiviswanathan et al. show how the results of many convex ERM problems can be combined to carry out reconstruction attacks in the spirit of Dinur and Nissim .
Differential privacy
is a rigorous notion of privacy that emerged from a line of work in theoretical computer science and cryptography . We say two data sets and of size are neighbors if they differ in one entry (that is, ). A randomized algorithm is -differentially private (Dwork et al. ) if, for all neighboring data sets and and for all events in the output space of , we have
Algorithms that satisfy differential privacy for and provide meaningful privacy guarantees, even in the presence of side information. In particular, they avoid the problems mentioned in “Motivation” above. See Dwork , Kasiviswanathan and Smith , Kifer and Machanavajjhala for discussion of the “semantics” of differential privacy.
Setting Parameters.
We will aim to quantify the role of several basic parameters on the excess risk of differentially private algorithms: the size of the data set , the dimension of the parameter space , the Lipschitz constant of the loss functions, the diameter of the constraint set and, when applicable, the strong convexity .
We may take and to be 1 without loss of generality: We can set by rescaling (replacing by with ); we can then set by rescaling the loss function (replacing by ). These two transformations change the excess risk by . The parameter cannot similarly be rescaled while keeping and the same. However, we always have .
In the sequel, we thus focus on the setting where and . To convert excess risk bounds for to the general setting, one can multiply the risk bounds by , and replace by .
1 Contributions
We give algorithms that significantly improve on the state of the art for optimizing non-smooth loss functions — for both the general case and strongly convex functions, we improve the excess risk bounds by a factor of , asymptotically. The algorithms we give for - and -differential privacy work on very different principles. We group the algorithms below by technique: gradient descent, exponential sampling, and localization.
The gradient descent approach does not, to our knowledge, allow one to get optimal excess risk bounds for -differential privacy. The main obstacle is that “strong composition” of -privacy Dwork et al. appears necessary to allow a first-order method to run for sufficiently many steps.
Exponential Sampling-based Algorithms.
We give a polynomial time algorithm that achieves the optimal excess risk, namely . Note that the achieved excess risk does not have any logarithmic factors which is shown to be the case using a “peeling-” type argument that is specific to convex functions. The idea of our algorithm is to sample efficiently from the continuous distribution on all points in with density . Although the distribution we hope to sample from is log-concave, standard techniques do not work for our purposes: existing methods converge only in statistical difference, whereas we require a multiplicative convergence guarantee to provide -differential privacy. Previous solutions to this issue (Hardt and Talwar ) worked for the uniform distribution, but not for general log-concave distributions.
Localization: Optimal Algorithms for Strongly Convex Functions.
The exponential-sampling-based technique discussed above does not take advantage of strong convexity of the loss function. We show, however, that a novel combination of two standard techniques—the exponential mechanism and Laplace-noise-based output perturbation—does yield an optimal algorithm. Chaudhuri et al. and showed that strongly convex functions have low-sensitivity minimizers, and hence that one can release the minimum of a strongly convex function with Laplace noise (with total Euclidean length about if each loss function is -strongly convex). Simply using this first estimate as a candidate output does not yield optimal utility in general; instead it gives a risk bound of roughly .
Lower Bounds.
We use techniques developed to bound the accuracy of releasing 1-way marginals (due to Hardt and Talwar for and Bun et al. for -privacy) to show that our algorithms have essentially optimal risk bounds. The instances that arise in our lower bounds are simple: the functions can be linear (or quadratic, for the case of strong convexity) and the constraint set can be either the unit ball or the hypercube. In particular, our lower bounds apply to special case of smooth functions, demonstrating the optimality of objective perturbation in that setting. The reduction to lower-bounds for 1-way marginals is not quite black-box; we exploit specific properties of the instances used by Hardt and Talwar , Bun et al. .
Finally, we provide a much stronger lower bound on the utility of a specific algorithm, the Huberization-based algorithm proposed by Chaudhuri et al. for support vector machines. In order to apply their algorithm to nonsmooth loss functions, they proposed smoothing the loss function by Huberization, and then running their algorithm (which requires smoothness for the privacy analysis) on the resulting, modified loss functions. We show that for any setting of the Huerization parameters, there are simple, one-dimensional nonsmooth loss functions for which the algorithm has error . This bound justifies the effort we put into designing new algorithms for nonsmooth loss functions.
Generalization Error.
2 Other Related Work
In addition to the previous work mentioned above, we mention several closely related works. A rich line of work seeks to characterize the optimal error of differentially private algorithms for learning and optimization Kasiviswanathan et al. , Beimel et al. , Chaudhuri and Hsu , Beimel et al. . In particular, our results on -differential privacy imply nearly-tight bounds on the “representation dimension” Beimel et al. of convex Lipschitz functions.
Efficient implementations of the exponential mechanism over infinite domains were discussed by Hardt and Talwar , Chaudhuri et al. and Kapralov and Talwar . The latter two works were specific to sampling (approximately) singular vectors of a matrix, and their techniques do not obviously apply here.
Differentially private convex learning in different models has also been studied: for example, Jain et al. , Duchi et al. , Smith and Thakurta study online optimization, Jain and Thakurta study an interactive model tailored to high-dimensional kernel learning. Convex optimization techniques have also played an important role in the development of algorithms for “simultaneous query release” (e.g., the line of work emerging from Hardt and Rothblum ). We do not know of a direct connection between those works and our setting.
3 Additional Definitions
For completeness, we state a few additional definitions related to convex sets and functions.
4 Organization of this Paper
Our upper bounds (efficient algorithms) are given in Sections 2, 3, and 4, whereas our lower bounds are given in Section 5. Namely, in Section 2, we give efficient construction for -differentially private algorithms for general convex loss as well as Lipschitz strongly convex loss. In Section 3, we discuss a pure -differentially private algorithm for general Lipschitz convex loss and outline an efficient construction for such algorithm. In Section 4, we discuss our localization technique and show how to construct efficient pure -differentially private algorithms for Lipschitz strongly convex loss. We derive our lower bound for general Lipschitz convex loss in Section 5.1 and our lower bound for Lipschitz strongly convex loss in Section 5.2. In Section 6, we discuss a generic construction of an efficient algorithm for sampling (with a multiplicative distance guarantee) from a logconcave distribution over an arbitrary convex bounded set. As a by-product of our generic construction, we give the details of the construction of our efficient -differentially private algorithm from Section 3.2.
The appendices contain proof details and supplementary material: Appendix A shows that smoothing a nonsmooth loss function in order to apply the objective perturbation technique of Chaudhuri et al. can introduce significant additional error. Appendix B gives details on the application of localization in the setting of -differential privacy. Appendix C provides additional details on the proofs of lower bounds. In Appendix D, we explain standard modifications that allow our algorithms to give high probability guarantees instead of expected risk guarantees. Finally, in Appendix F we discuss the how our algorithms can be adapted to provide guarantees on generalization error, rather than empirical error.
Gradient Descent and Optimal (ϵ,δ)italic-ϵ𝛿(\epsilon,\delta)-differentially private Optimization
In this section we provide an algorithm (Algorithm 1) for computing using a noisy stochastic variant of the classic gradient descent algorithm from the optimization literature . Our algorithm (and the utility analysis) was inspired by the approach of Williams and McSherry for logistic regression.
All the excess risk bounds (16) in this section and the rest of this paper, are presented in expectation over the randomness of the algorithm. In Section D we provide a generic tool to translate the expectation bounds into high probability bound albeit at a loss of extra logarithmic factor in the inverse of the failure probability.
Note(2): Instead of using the stochastic variant in Algorithm 1, one can use the complete gradient (i.e., ) in Step 5 and still have the same utility guarantee as Theorem 2.4. However, the running time goes up by a factor of .
Algorithm (Algorithm 1) is -differentially private.
Over a domain of data sets , if an algorithm is differentially private, then for any data set , executing on uniformly random entries of ensures -differential privacy.
To conclude the proof, we apply “strong composition” (Lemma 2.3) from . With probability at least , the privacy loss is at most . This concludes the proof.
Let . The class of -differentially private algorithms satisfies -differential privacy under -fold adaptive composition for .
Let . For output by Algorithm we have the following. (The expectation is over the randomness of the algorithm.)
Let (for ) be a convex function and let . Let be any arbitrary point from . Consider the stochastic gradient descent algorithm , where , and the learning rate function . Then for any , the following is true.
Using the bound from (2) in Lemma 2.5 (i.e., set ), and setting and the learning rate function as in Lemma 2.5, gives us the required excess risk bound for Lipschitz convex functions. For Lipschitz and strongly convex functions we use the following result by .
Let (for ) be a -strongly convex function and let . Let be any arbitrary point from . Consider the stochastic gradient descent algorithm , where , and the learning rate function . Then for any , the following is true.
Using the bound from (2) in Lemma 2.6 (i.e., set ), , and setting and the learning rate function as in Lemma 2.6, gives us the required excess risk bound for Lipschitz and strongly convex convex functions. ∎
Exponential Sampling and Optimal (ϵ,0)italic-ϵ0(\epsilon,0)-private Optimization
In this section, we focus on the case of pure -differential privacy and provide an optimal efficient algorithm for empirical risk minimization for the general class of convex and Lipschitz loss functions. The main building block of this section is the well-known exponential mechanism .
First, we show that a variant of the exponential mechanism is optimal. A major technical contribution of this section is to make the exponential mechanism computationally efficient which is discussed in Section 3.2.
In this section we only deal with loss functions which are Lipschitz. We provide an -differentially private algorithm (Algorithm 2) which achieves the optimal excess risk for arbitrary convex bounded sets.
Algorithm 2 is -differentially private.
In the following we prove the utility guarantee for Algorithm .
Let be the output of (Algorithm 2 above). Then, we have the following guarantee on the expected excess risk. (The expectation is over the randomness of the algorithm.)
Consider a differential cone centered at (see Figure 1). We will bound the expected excess risk of by conditioned on for every differential cone. This immediately implies the above theorem by the properties of conditional expectation.
Let be a fixed threshold (to be set later) and let for the purposes of brevity. Let the marked sets ’s in Figure 1 be defined as
Instead of directly computing the probability of being outside , we will analyze the probabilities for being in each of the ’s individually. This form of “peeling” arguments have been used for risk analysis of convex loss in the machine learning literature (e.g., see ) and will allow us to get rid of the extra logarithmic factor that would have otherwise shown up in the excess risk if we use the standard analysis of the exponential mechanism in .
Since is a differential cone and since is continuous on , it follows that within , only depends on . Therefore, let be the distance of the set boundaries of from . (See Figure 1.) One can equivalently write each as follows:
The following claim is the key part of the proof.
Convexity of for all implies that for all .
Since by definition is the minimizer of within and is convex, we have for any such that . This directly implies the required bound. ∎
Now, the volume of the set is given by for some fixed constant . Hence,
where the last two inequalities follows from Claim 3.3. Hence, we get the following bound on the probability that the excess risk conditioned on (For brevity, we remove the conditioning sign from the probabilities below).
where the last inequality follows from the fact that for . Hence, for every , if we choose , then, conditioned on , we get
Since this is true for every , we have our required bound as a corollary.
In this section, we give a high-level description of a computationally efficient construction of Algorithm 2. Our algorithm runs in polynomial time in and outputs a sample from a distribution that is arbitrarily close (in the multiplicative sense) to the distribution of the output of Algorithm 2.
Since we are interested in an efficient pure -differentially private algorithm, we need an efficient sampler with a multiplicative distance guarantee. In fact, if we were interested in algorithms, efficient sampling with a total variation guarantee would have sufficed which would have made our task a lot easier as we could have used one of the exisiting algorithms, e.g., . In , it was shown how to sample efficiently with a multiplicative guarantee from the unifrom distribution over a convex bounded set. However, what we want to achieve here is more general, that is, to sample efficiently from any given logconcave distribution defined over a convex bounded set. To the best of our knowledge, this task has not been explicitly worked out before, nevertheless, all the ingredients needed to accomplish it are present in the literature, mainly .
We highlight here the main ideas of our constrution. Since such construction is not specific to our privacy problem and could be of independent interest, in this section, we only provide the high-level description of this construction, however all the details of such construction and the proof of our main result (Theorem 3.4 below) are deferred to Section 6.
There is an efficient version of Algorithm 2 that has the following guarantees.
Privacy: The algorithm is -differentially private.
Utility: The output of the algorithm satisfies
Running time: Assuming is in isotropic position, the algorithm runs in timeThe case where is not in isotropic position is discussed below.
In fact, the running time of our algorithm depends on rather than . Namely, all the terms in the running time can be replaced with , however, we chose to write it in this less conservative way since all the bounds in this paper are expressed in terms of .
Before describing our construction, we first introduce some useful notation and discuss some preliminaries.
where (resp., ) denotes the ratio of the two measures (more precisely, the Radon-Nikodym derivative).
3 Our construction
We use the grid-walk algorithm of for sampling from a logconcave distribution defined over a cube as a building block. Our construction is described as follows:
Enclose the set with a cube with edges of length .
Obtain a convex Lipschitz extension of the loss function over . This can be done efficiently using a projection oracle.
Define , for a specific choice of (See Section 6 for details).
Run the grid-walk algorithm of with as the input weight function and as the input cube, and output a sample whose distribution is close, with respect to , to the distribution induced by on which is given by .
Localization and Optimal Private Algorithms for Strongly Convex Loss
It is unclear how to get a direct variant of Algorithm 2 in Section 3 for Lipschitz and strongly convex losses that can achieve optimal excess risk guarantees. The issue in extending Algorithm 2 directly is that the convex set over which the exponential mechanism is defined is “too large” to provide tight guarantees.
Next, we instantiate the generic -differentially private algorithm in the second step with our efficient exponential mechanism of Section3.1 (Algorithm 2) to obtain an algorithm with optimal excess risk bound (Theorem 4.3).
Note: The localization technique is not specific to pure -differential privacy, and extends naturally to case. Although it is not relevant in our current context, since we already have gradient descent based algorithm which achieves optimal excess risk bound. We defer the details for the case to Appendix B.
Details of the generic algorithm: We first give a simple algorithm that carries out the desired localization step. The crux of the algorithm is the same as to that of the output perturbation algorithm of . The high-level idea is to first compute and add noise according to the sensitivity of . The details of the algorithm are given in Algorithm 3.
Algorithm 4 is -differentially private.
The privacy guarantee follows directly from the composition theorem together with the fact that is -differentially private (see ) and that is -differentially private by assumption. ∎
In the following theorem, we provide a generic expression for the excess risk of Algorithm 4 in terms of the expected excess risk of any given algorithm .
for some function , then the output of Algorithm 4 satisfies
where .
The proof follows from the fact that, in Algorithm , the norm of the noise vector is distributed according to Gamma distribution and hence satisfies
Note that the second term on the right-hand side above becomes . From our lower bound (Section 5.2 below), must be at least . Hence, we have
which completes the proof of the theorem. ∎
Instantiation of Algorithm with the exponential sampling algorithm: Next, we give our optimal -differentially private algorithm for Lipschitz strongly convex loss functions. To do this, we instantiate the generic Algorithm in Algorithm 4 with our exponential sampling algorithm from Section 3.1 (Algorithm 2), or its efficient version Algorithm (See Section 3.2) to obtain the optimal excess risk bound. We formally state the bound in Theorem 4.3) below. The proof of Theorem 4.3 follows from Theorem 3.2 and Lemma 4.2 above.
Suppose we replace in Algorithm 4 with Algorithm 2 (Section 3.1), or its efficient version Algorithm 7 (See Theorem 3.4 and Section 6 for details). Then, the output satisfies
where .
Lower Bounds on Excess Risk
Before we state and prove our lower bounds, we first give the following useful lemma which gives lower bounds on the -error incurred by and -differentially private algorithms for estimating the -way marginals of datasets over . This lemma is based on the results of and , however, for the sake of completeness, we give a detailed proof of this lemma in Appendix C.
where .
where .
In this section, we give lower bounds for both and differentially private algorithms for minimizing any convex Lipschitz loss function . We consider the following loss function. Define
We use Part 2 of Lemma 5.1 and follow the same lines of the proof of Theorem 5.2. ∎
2 Lower bounds for Strongly Convex Functions
The proof follows directly from (7) and Part 1 of Lemma 5.1. ∎
The proof follows directly from (7) and Part 2 of Lemma 5.1. ∎
Hence, our upper bounds in Sections 2 and 4 imply that our lower bounds are tight for all values of and for which . In other words, in the general case (where is not necessarily ), these lower bounds are tight up to a factor of .
Efficient Sampling from Logconcave Distributions over Convex Sets and The Proof of Theorem 3.4
In this section, we discuss a generic construction of an efficient algorithm for sampling from a logconcave distribution over an arbitrary convex bounded set. Such algorithm gives a multiplicative distance guarantee on the distribution of its output, that is, it outputs a sample from a distribution that is within a constant factor (close to 1) from the desired logconcave distribution. As a by-product of our generic construction, we give the construction of our efficient -differentially private algorithm whose construction is outlined in Section 3.2 and prove Theorem 3.4. As argued in Section 3.2, we will assume that the convex set is already in isotropic position. The reader may refer to Section 3.2 for the details of dealing with the general case (where the set is not necessarily isotropic) and the effect of that on the running time.
We start by the following lemma which describes Algorithm for sampling from a distribution proprtional to a given logconcave function defined over a hypercube .
Let be a lazy, time reversible Markov chain over a finite state space . Then, the time required for relative convergence of is at most . Here, where denotes the conductance of the set and is the minimum probability assigned by the stationary distribution.
For clarity and completeness, we give a proof of this lemma here.
For the sake of simplicity, let’s assume that is closed. Actually, this is no loss of generality since we can always redefine such that it is defined on the closure of which is possible because is continuous on . We use a standard extension in literature. Namely, define
where the inequality in the first line follows from the fact that is the minimzer (w.r.t. ) of and the inequality in the third line follows from the convexity of and the -norm. This completes the proof of the lemma. ∎
Now, we give the construction of Algorithm followed by a Lemma asserting the probabilistic guarantee discussed above.
where the second inequality in the first line follows from the Lipschitz property of and the second inequality in the second line follows from the fact that and . On the other hand, we can upper bound as follows.
where the last inequality follows from the setting of we made in Algorithm 5. Since this is true for any differential cone as described above, this proves that outputs with probability at least .
Let denote the conditional distribution of (the output of Algorithm ) conditioned on the event that outputs a sample in in one of the iterations of the for loop. From Lemma 6.4, it is easy to see that the probability measure of the output of can be expressed as
The running time of is at most where is the running time of (which is of the same order as that of given in Lemma 6.1). Note that Step 7 can be carried out in linear time using standard methods in literature. Finally, by plugging in our choice for the value of gives the expression in the lemma statement. This completes the proof. ∎
In this section, we show a straightforward construction for our efficient Algorithm (referred to in Section 3.2) based on the construction established above for efficient logconcave sampling. Based on the results established above in this section, we give a proof of Theorem 3.4 which will also be fairly straightforward. First, fix a dataset . Our goal is to construct an efficient version of Algorithm (Algorithm 2 from Section 3.1). To do this, we simply run Algorithm (Algorithm 6 above) with the function instantiated with the scaled decomposable loss function defined over the convex bounded set (which is assumed to be in isotropic position as discussed in Section 3.2). Hence, in our case is . Namely, as shown below, our -differentially private algorithm is an instantiation of on inputs and .
The choice of the scaling factor of the loss function and the multiplicative distance guarantee of is tuned to yield an -differentially private algorithm. To see this, we rely on the following simple lemma given in .
Proof of Theorem 3.4: Having Lemmas 6.5 and 6.6 in hand, the proof of Theorem 3.4 becomes straightforward. First, we show differential privacy of Algorithm 7. For any dataset , let be the distribution of proportional to . Note that is the distribution of the output of Algorithm (Algorithm 2 from Section 3.1) when is replaced with . Let be the distribution of the output of (Algorithm 7 above). From Lemma 6.5, it follows that . Hence, from Theorem 3.1 and Lemma 6.6, we reach the fact that is -differentially private.
To show the utility guarantee of , we first observe that the distribution of the output is close with respect to to (i.e., within a constant factor of) the distribution of the output of (Algorithm 2 from Section 3.1), and hence, the utility analysis follows the same lines of Theorem 3.2.
Acknowledgments
We are grateful to Santosh Vempala and Ravi Kannan for discussions about efficient sampling algorithms for log-concave distributions over convex bodies. In particular, Ravi suggested the idea of using a penalty term to reduce from sampling over to sampling over the cube.
References
Appendix A Straightforward Smoothing Does Not Yield Optimal Algorithms
In (9) the noise . In the results to follow, we show that for any choice of the Huberization parameter , there exists data sets of size from the domain above where the excess risk for objective perturbation will be provably worse than our results in this paper. We present the results for the -differential privacy case, but the same conclusions hold for the pure -differential privacy case.
For every , there exists such the excess risk for the objective perturbation algorithm in (9) satisfies:
Consider the data set with entries being and entries being . In the following lemma we lower bound the excess risk on for a given huberization parameter .
Let be the privacy parameters with being a constant () and . For the data set mentioned above, the excess risk for objective perturbation (9) is as follows. For all , we have
Consider a data set which has exactly entries with and entries with . In the following lemma we lower bound the excess risk on for a given huberization parameter .
Let be the privacy parameters with being a constant () and . Let be a fixed Huberization parameter. Then for the data set mentioned above, the excess risk for objective perturbation (9) is as follows.
Solving for , we have . By assumption and w.p. we have . Therefore, w.p. , we have .
Finally combining Lemmas A.3 and A.2 completes the proof of Theorem A.1. ∎
Algorithm is -differentially private.
The privacy guarantee follows directly from the composition theorem together with the fact that is -differentially private and that is -differentially private by assumption. ∎
for some function , then the output of satisfies
The proof follows the same lines of the proof of Theorem 4.2 except for the fact that, in Algorithm , the noise vector is Gaussian and hence using the standard bounds on the norm of an i.i.d. Gaussian vector, we have
We set and the rest of the proof follows in the same way as the proof of Theorem 4.2. ∎
Appendix C Proof of Lemma 5.1
We restate Part 1 of the lemma here for convenience.
where .
We use a standard packing argument. Variants of such argument have appeared in several places in literature, e.g., and . We first construct points in such that for every distinct pair of these points, we have
It is easy to show the existence of such set of points using the probabilistic method (for example, the Gilbert-Varshamov construction of a linear random -binary code over achieves this property).
Fix . Define . Let’s first consider the case where . We construct datasets where for each , contains n copies of . Note that for all ,
Let be any -differentially private algorithm for answering . Suppose that for every , with probability at least , , i.e., for every , where for any dataset , is defined as
Note that for all , and differ in all their entries. Since is -differentially private, for all , we have . Since, by (11) abd (12), all are mutually disjoint, then
which implies that for sufficiently large which is a contradiction to the fact that . Hence, there must exist a dataset for some on which makes an -error which is at least with probability at least . Note also that the norm of the sum of the entries of such is .
C.2 Proof of Part 2
where .
Appendix D Converting Excess Risk Bounds in Expectation to High-probability Bounds
In this paper all of our utility guarantees are in terms of the expectation over the randomness of the algorithm. Although all the utility analysis except for the gradient descent based algorithm (Algorithm 1) provide high-probability guarantees directly, in this section we provide a generic approach for obtaining high-probability guarantee based on the expected risk bounds. The idea is to run the underlying differentially private algorithm -times, with the privacy parameters and for each run. Let be the vectors output by the -runs. First notice that the vector is -differentially private. Moreover if the algorithm has expected excess risk of (where is the specific excess risk function of and ), then by Markov’s inequality there exist an execution of the algorithm for which the excess risk is with probability at least .
One can now use the exponential mechanism from Algorithm 2, to pick the best from the list. By the same analysis of Theorem 3.2, one can show that with probability at least , the exponential mechanism will output a vector that has excess risk of . Setting , we have that with probability at lest , the excess risk for is at most . Placing this bound in context of the paper, the high probability bounds are only a factor off from the expectation bounds.
Appendix E Excess Risk Bounds for Smooth Functions
Appendix F From Excess Empirical Risk to Generalization Error
In this section, provide a generic tool to interpret our ERM results in the context of generalization error (true risk) bounds. For a given distribution , let us define true risk for a model as follows.
Analogously, we define the excess risk for a given a given model by .
Let be a data set of data samples drawn i.i.d. from the distribution . The following theorem from learning theory relates true excess risk to excess empirical risk.
Plugging in the utility guarantee for from Theorems 2.4 and 4.3, and using the expectation to high-probability bound trick from Appendix D, we obtain the following.
There exists an -differentially private algorithm, that outputs such that with probability at least over the randomness of sampling the data set and the risk minimization algorithm, the following is true:
There exists an -differentially private algorithm, that outputs such that with probability at least over the randomness of sampling the data set and the risk minimization algorithm, the following is true:
Combining with Theorem F.2, plugging in (17), and optimizing for , we have the following:
There exists an -differentially private algorithm, that outputs such that with probability at least over the randomness of sampling the data set and the risk minimization algorithm, the following is true:
There exists an -differentially private algorithm, that outputs such that with probability at least over the randomness of sampling the data set and the risk minimization algorithm, the following is true:
While the dependence on for our private algorithms in Theorem F.3 matches the bounds for the corresponding non-private algorithms (see), unlike the non-private counter parts, the private algorithms have an explicit dependence on . We leave it as an open problem to figure out the right dependence on w.r.t. excess risk for private algorithms.
Generalized Linear Models (GLM).
There exists an -differentially private algorithm, that outputs such that with probability at least over the randomness of sampling the data set and the risk minimization algorithm, the following is true assuming :
There exists an -differentially private algorithm, that outputs such that with probability at least over the randomness of sampling the data set and the risk minimization algorithm, the following is true assuming :
The above theorem follows from Theorem 2 in and the regularization trick above. Theorem F.4 shows that in case of GLM, we can essentially attain the non-private upper bound of which is known to be tight: for example, if we consider a linear loss function then using a standard Central Limit Theorem argument (or using standard lower bounds on the minimax error in parametric estimation), one can show that the there exists a distribution on for which the true excess risk is .
For general Lipschitz loss functions, we provide a tool that can be used to obtain expectation (over algorithm’s random coins) guarantees on the excess risk (as opposed to the high probability guarantees given in Theorem F.3 above.)
Let denote the output of an -differentially algorithm. We have
Let denote the output of an -differentially algorithm. We have
where the expectation in both cases is over the random coins of the algorithm.
We can use this lemma together with our ERM upper bounds for general Lipschitz functions to give the following expectation guarantees on the excess risk:
There is an -differentially private algorithm, that outputs such that the following is true:
There exists an -differentially private algorithm, that outputs such that the following is true:
where the expectation in both cases is over the random coins of the algorithm.