Private Convex Optimization via Exponential Mechanism

Sivakanth Gopi, Yin Tat Lee, Daogao Liu

Introduction

Differential Privacy (DP), introduced in [DMNS06, DKM+06], is increasingly becoming the universally accepted standard in privacy protection. We see an increasing array of adoptions in industry [App17, EPK14, BEM+17, DKY17] and more recently the US census bureau [Abo16, KCK+18]. Differential privacy allows us to quantify the privacy loss of an algorithm and is defined as follows.

A randomized mechanism M⁡\operatorname*{\mathcal{M}} is (ε,δ)(\varepsilon,\delta)-differentially private if for any neighboring databases D,D′\mathcal{D},\mathcal{D}^{\prime} and any subset SS of outputs, one has

In this paper, we say D\mathcal{D} and D′\mathcal{D}^{\prime} are neighboring databases if they agree on all the user inputs except for a single user’s input.

where x∗∈Kx^{*}\in\mathcal{K} is the true minimizer of F(x;D)F(x;\mathcal{D}).

One of the first mechanisms invented in differential privacy, the exponential mechanism, was proposed by [MT07] precisely to solve this. It involves sampling xprivx^{priv} from the density

Here kk controls the privacy-vs-utility tradeoff, large kk ensures that we get a good solution but less privacy and small kk ensures that we get good privacy but we lose utility. Suppose ΔF=sup⁡D∼D′sup⁡x∣F(x;D)−F(x;D′)∣\Delta_{F}=\sup_{\mathcal{D}\sim\mathcal{D}^{\prime}}\sup_{x}|F(x;\mathcal{D})-F(x;\mathcal{D}^{\prime})| is the sensitivity of FF, where the supremum is over all neighboring databases D,D′\mathcal{D},\mathcal{D}^{\prime}. Then choosing k=ε2ΔFk=\frac{\varepsilon}{2\Delta_{F}}, the exponential mechanism satisfies (ε,0)(\varepsilon,0)-DP.

Exponential mechanism is widely used both in theory and in practice, such as in mechanism design [HK12], convex optimization [BST14, MV21], statistics [WZ10, WM10, AKRS19], machine learning and AI [ZP19]. Even for infinite and continuous domains, exponential mechanism can be implemented efficiently for many problems [HT10, CSS13, KT13, BV19, CKS20]. There are also several variants and generalizations of the exponential mechanism which can improve its utility based on different assumptions [TS13, BNS13, RS16, LT19]. See [LT19] for a survey of these results.

DP Empirical Risk Minimization (DP-ERM)

In many applications, the loss function is given by the average of the loss of each user:

where D={s1,s2,⋯ ,sn}\mathcal{D}=\{s_{1},s_{2},\cdots,s_{n}\} is the collection of users sis_{i} and f(x;si)f(x;s_{i}) is the loss function of user sis_{i}.

In particular, [BST14] shows that exponential mechanism in (2) achieves the optimal excess empirical risk of O(GDdnε)O\left(\frac{GDd}{n\varepsilon}\right) under (ε,0)(\varepsilon,0)-DP. On the other hand, [BST14, BFTT19, BFGT20] show that noisy gradient descent on F(x;D)F(x;\mathcal{D}) achieves an excess empirical risk of

under (ε,δ)(\varepsilon,\delta)-DP, which is also shown to be optimal [BST14]. This is a significant d\sqrt{d} improvement over the exponential mechanism.

Exponential mechanism is a universally powerful tool in differential privacy. However, nearly all of the previous works on DP-ERM rely on noisy gradient descent or its variants to achieve the significant d\sqrt{d} improvement over exponential mechanism under (ε,δ)(\varepsilon,\delta)-DP. One natural question is whether noisy gradient descent has some extra ability that exponential mechanism lacks or we didn’t use exponential mechanism optimally in this setting. This brings us to the first question.

Can we obtain the optimal empirical risk in (1) under (ε,δ)(\varepsilon,\delta)-DP using exponential mechanism?

DP Stochastic Convex Optimization (DP-SCO)

Beyond the privacy guarantee and the empirical risk guarantee, another important guarantee is the generalization guarantee. Formally, we assume the users are sampled from an unknown distribution P\mathcal{P} over convex functions. We define the loss function as

We want to design a DP mechanism M\mathcal{M} which outputs xprivx^{priv} given users D={s1,s2,…,sn}\mathcal{D}=\{s_{1},s_{2},\dots,s_{n}\} independently sampled from P\mathcal{P} and minimize the excess population loss

where x∗x^{*} is the minimizer of F^(x)\widehat{F}(x). We call the problem of minimizing the excess population loss in (6) as DP Stochastic Convex Optimization (DP-SCO). By a suitable modification of noisy stochastic gradient descent, [BFTT19, FKT20] show that one can achieve the optimal population loss of

[BFTT19] bounds the generalization error by showing that running SGD on smooth functions is stable and [FKT20] proposes an iterative localization technique. Note that only the algorithm for smooth functions in [BFTT19] can achieve both optimal empirical risk and optimal population loss at the same time, with the price of taking more gradient queries and loss of efficiency. It is unclear to us how one can obtain both using current techniques for non-smooth functions. This brings us to the second question.

Can we achieve both the optimal empirical risk and the optimal population loss for non-smooth functions with the same algorithm?

Sampling

Without extra smoothness assumptions on ff, currently, there is no optimally efficient algorithm for both problems. For example, with oracle access to gradients of ff, the previous best algorithms for DP-SCO use:

O~(nd)\widetilde{O}(nd) queries to ∇f(x;s)\nabla f(x;s) (by combining [FKT20], Moreau-Yosida regularization and cutting plane methods),

O~(min⁡(n3/2,n2/d))\widetilde{O}(\min(n^{3/2},n^{2}/\sqrt{d})) queries to ∇f(x;s)\nabla f(x;s) [AFKT21],

O~(min⁡(n5/4d1/8,n3/2/d1/8))\widetilde{O}(\min(n^{5/4}d^{1/8},n^{3/2}/d^{1/8})) queries to ∇f(x;s)\nabla f(x;s) [KLL21].

Combining these results, this gives an algorithm for DP-SCO that uses

many queries to ∇f(x;s)\nabla f(x;s). Although the information lower bound for non-smooth functions with the gradient queries is open, it is unlikely that the answer involves four different cases.

In this paper, we focus on the function value query (zeroth order query) on f(x;s)f(x;s). This query is weaker than gradient query as it obtains dd times less information. They are used in many practical applications such as clinical trials and ads placement when the gradient is not available and is also useful in bandit problems. This brings us to the third question.

Can we obtain an algorithm with optimal query complexity for DP-SCO for zeroth order query model?

1 Our Contributions

then, for a suitable choice of μ\mu and kk, we recover the optimal excess risk in (4) for DP-ERM and optimal population loss in (7) for DP-SCO. Finally, we give an algorithm to sample xprivx^{priv} from the density (8) with nearly optimal number of queries to f(x;s)f(x;s) (See Figure 1). To the best of our knowledge, our algorithm is the first whose query complexity has polylogarithmic dependence in both dimension and accuracy (in TV distance).

Let K\mathcal{K} be a convex set with diameter DD and {f(⋅;s)}\{f(\cdot;s)\} be a family of convex functions on K\mathcal{K} where f(⋅;s)−f(⋅;s′)f(\cdot;s)-f(\cdot;s^{\prime}) is GG-Lipschitz for all s,s′s,s^{\prime}. Given a database D={s1,s2,⋯ ,sn}\mathcal{D}=\{s_{1},s_{2},\cdots,s_{n}\}, for any ε,δ∈(0,110)\varepsilon,\delta\in(0,\frac{1}{10}), See Theorem 6.2 for general conclusions for all ε>0\varepsilon>0 the regularized exponential mechanism

is (ε,δ)(\varepsilon,\delta)-DP with expected excess empirical loss

for some appropriate choices of kk and μ\mu. Furthermore, if f(⋅;s)f(\cdot;s) is GG-Lipschitz for all ss, we can sample x(priv)x^{(priv)} using O(ε2n2log⁡(1/δ)log⁡2(ndδ))O(\frac{\varepsilon^{2}n^{2}}{\log(1/\delta)}\log^{2}(\frac{nd}{\delta})) queries in expectation to the values of f(x;s)f(x;s).

Let K\mathcal{K} be a convex set with diameter DD and {f(⋅;s)}\{f(\cdot;s)\} be a family of convex functions on K\mathcal{K} where f(⋅;s)−f(⋅;s′)f(\cdot;s)-f(\cdot;s^{\prime}) is GG-Lipschitz for all s,s′s,s^{\prime}. Given a database D={s1,s2,⋯ ,sn}\mathcal{D}=\{s_{1},s_{2},\cdots,s_{n}\} of samples from some unknown distribution P\mathcal{P}. For any ε,δ∈(0,110)\varepsilon,\delta\in(0,\frac{1}{10}), See Theorem 6.9 for general conclusions for all ε>0\varepsilon>0. the regularized exponential mechanism

is (ε,δ)(\varepsilon,\delta)-DP with expected excess population loss

for some appropriate choice of kk and μ\mu. Furthermore, if f(⋅;s)f(\cdot;s) is GG-Lipschitz for all ss, we can sample x(priv)x^{(priv)} using O(min⁡{ε2n2log⁡(1/δ),nd}log⁡2(ndδ))O(\min\{\frac{\varepsilon^{2}n^{2}}{\log(1/\delta)},nd\}\log^{2}(\frac{nd}{\delta})) queries in expectation to the values of f(x;s)f(x;s) and the expected number of queries is optimal up to logarithmic terms.

For DP-SCO, we provide a nearly matching information-theoretic lower bound on the number of value queries (Section 7), proving the optimality of our sampling algorithm. Moreover, when ff is already strongly convex, our proof shows the exponential mechanism (without adding a regularizer) itself simultaneously achieves both the optimal excess empirical risk and optimal population loss.

In a concurrent and independent work, [GTU22] study the DP properties of Langevin Diffusion, and provide optimal/best known private empirical risk and population loss under both pure-DP (δ=0\delta=0) and approximate-DP (δ>0\delta>0) constraints. Utility/privacy trade-off of non-convex functions is also discussed.

Techniques

The main contribution of this paper is the discovery that adding regularization terms in exponential mechanism leads to optimal algorithms for DP-ERM and DP-SCO. For this, we develop some important tools that could be of independent interest. We now briefly discuss each of the main tools.

To analyze the privacy of the regularized exponential mechanism, we need to bound the privacy curve between a strongly log-concave distribution and its Lipschitz perturbation in the exponent. [MASN16] gave a nearly tight (up to constants) privacy guarantee of exponential mechanism if the distribution exp⁡(−kF(x;D))\exp(-kF(x;\mathcal{D})) satisfies Logarithmic Sobolev inequality (LSI). Since strongly log-concave distributions satisfy LSI, their result immediately gives the (ε,δ)(\varepsilon,\delta)-DP guarantee of our algorithm. However, this gives a sub-optimal privacy bound because it does not fully take advantage of the strongly log-concave property.

Instead, we show directly that the privacy curve between a strongly log-concave distribution and its Lipschitz perturbation in the exponent is upper bounded by the privacy curve of an appropriate Gaussian mechanism. This new proof uses the notion of tradeoff function introduced in [DRS19] and the isoperimetric inequality for strongly log-concave distribution.

This proves that the privacy curve for distinguishing between P,QP,Q is upper bounded the privacy curve of a Gaussian mechanism with sensitivity G/μG/\sqrt{\mu} and noise scale 1.

which is precisely the upper bound guaranteed by the theorem.

2 Generalization Error of Sampling

Many important and fundamental problems in machine learning, optimization and operations research are special cases of SCO, and ERM is a classic and widely-used approach to solve it, though their relationships are not well-understood. If one can solve the ERM problem optimally and get the exact optimal solution x∗x^{*} to minimizing F(⋅;D)F(\cdot;\mathcal{D}) (see Equation 3), then [SSSSS09] showed x∗x^{*} will also be a good solution to the SCO for strongly convex functions. But in most situations, solving ERM optimally costs too much or even impossible. Can we find a approximately good solution to ERM and hope that it is also a good solution for SCO? [Fel16] provides a negative answer and shows there is no good uniform convergence between F(⋅;D)F(\cdot;\mathcal{D}) and F^\widehat{F}, that is there always exists x∈Kx\in\mathcal{K} such that ∣F(x;D)−F^(x)∣|F(x;\mathcal{D})-\widehat{F}(x)| is large. This fact forces us to find approximate solution to ERM with very high accuracy, which makes the algorithms inefficient.

Prior works proposed a few interesting ways to overcome this difficulty, such as the uniform stability in [HRS16] and the iterative localization technique in [AFKT21]. Roughly speaking, uniform stability means that if running algorithms on neighboring datasets lead to similar output distributions, then the generalization error of the ERM algorithm is bounded. Thus a good solution to ERM obtained by a stable algorithm is also a good solution for SCO. [BFTT19] makes use of the stability of running SGD on smooth functions to get a tight bound on the population loss for DP-SCO.

Recall F(x;D)F(x;\mathcal{D}) and F^(x)\widehat{F}(x) are defined in Equation (3) and (5) respectively. Our result enriches the toolbox of bounding the generalization error and provides new insights for this problem.

Suppose {fi}\{f_{i}\} is a family of μ\mu-strongly convex functions over K\mathcal{K} and fi−fi′f_{i}-f_{i^{\prime}} is GG-Lipschitz for any two functions fi,fi′f_{i},f_{i^{\prime}} in the family. For any k>0k>0 and suppose the nn samples in data set D\mathcal{D} are drawn i.i.d from the underlying distribution, then by sampling x(sol)x^{(sol)} from density ∝e−kF(x(sol);D)\propto e^{-kF(x^{(sol)};\mathcal{D})}, the population loss satisfies

Considering two neighboring datasets D\mathcal{D} and D′\mathcal{D}^{\prime}, our result is based on bounding the Wasserstein distance between the distributions proportional to e−kF(x;D)e^{-kF(x;\mathcal{D})} and e−kF(x;D′)e^{-kF(x;\mathcal{D}^{\prime})}, which means the sampling scheme is stable and leads to the G2μn\frac{G^{2}}{\mu n} term in generalization error. The other term dk\frac{d}{k} is excess empirical loss of the sampling mechanism. One advantage of our result is that it works for both smooth and non-smooth functions. Moreover, we may choose the value kk carefully and get a solution with both optimal empirical loss and optimal population loss.

3 Non-smooth Sampling and DP Convex Optimization

Implementing the exponential mechanism involves sampling from a log-concave distribution. When the negative log-density function FF is smooth, i.e. the gradient of FF is Lipschitz, there are many efficient algorithms for this sampling tasks such as [Dal17, LSV18, MMW+21, CV19, DMM19, SL19, CDWY20, LST20]. For example, if F=1n∑i=1nfiF=\frac{1}{n}\sum_{i=1}^{n}f_{i} and each fif_{i} is 11-strongly convex with κ\kappa-Lipschitz gradient,For convenience, we used fif_{i} to denote the function f(⋅;si)f(\cdot;s_{i}) in this and Section 5. we can sample x∼exp⁡(−F(x))x\sim\exp(-F(x)) in O~(n+κmax⁡(d,nd)log⁡(1/δ))\widetilde{O}(n+\kappa\max(d,\sqrt{nd})\log(1/\delta)) iterations with δ\delta error in total variation distance and each iteration involves computing one ∇fi(x)\nabla f_{i}(x) [LST21]. Note that this is nearly linear time when n≫κ2dn\gg\kappa^{2}d and the δ\delta error in total variation distance can be translated to an extra δ\delta error in the (ε,δ)(\varepsilon,\delta)-DP guarantee.

Our result is based on the alternating sampler proposed in [LST21] and a new rejection sampling scheme.

Furthermore, each steps accesses only O(1)O(1) many fi(x)f_{i}(x) and samples from exp⁡(−ψ(x)−12η∥x−y∥22)\exp(-\psi(x)-\frac{1}{2\eta}\|x-y\|^{2}_{2}) for O(1)O(1) many yy in expectation with η=Θ(G−2/log⁡(T/δ))\eta=\Theta(G^{-2}/\log(T/\delta)).

Preliminaries

A DP algorithm M⁡\operatorname*{\mathcal{M}} usually satisfies a collection of (ε,δ)(\varepsilon,\delta)-DP guarantees for each ε\varepsilon, i.e., for each ε\varepsilon there exists some smallest δ\delta for which M⁡\operatorname*{\mathcal{M}} is (ε,δ)(\varepsilon,\delta)-DP. By collecting all of them together, we can form the privacy curve or privacy profile which fully characterizes the privacy of a DP algorithm.

One can explicitly calculate the privacy curve of a Gaussian mechanism as

where Φ(⋅)\Phi(\cdot) is the Gaussian cumulative distribution function (CDF) [BW18].

Given two (continuous) distributions P,QP,Q, we define the trade-off functionTradeoff curves in [DRS19] are defined using type I and type II errors. The definition given here is equivalent to their definition for continuous distributions. T(P∥Q):→T(P\|Q):\to as

It is easy to compute explicitly the tradeoff function for Gaussian mechanism [DRS19],

δ(P∥Q)≤δ(P′∥Q′)\delta(P\|Q)\leq\delta(P^{\prime}\|Q^{\prime}) iff T(P∥Q)≥T(P′∥Q′)T(P\|Q)\geq T(P^{\prime}\|Q^{\prime})

2 Optimization

Here we collect some properties of functions which are useful for optimization and sampling.

3 Distribution Distance and Divergence

We present some distribution distances or divergences mentioned or used in this work.

[Rén61, Rényi Divergence] Suppose 1<α<∞1<\alpha<\infty and π,ν\pi,\nu are measures with π≪ν\pi\ll\nu. The Rényi divergence of order α\alpha between π\pi and ν\nu is defined as

We follow the convention that 00=0\frac{0}{0}=0. Rényi Divergence of orders α=1,∞\alpha=1,\infty are defined by continuity. For α=1\alpha=1, the limit in Rényi Divergence equals to the Kullback-Leibler divergence of π\pi from ν\nu, which is defined as following:

The Kullback–Leibler divergence between probability measures π\pi and ν\nu is defined by

where Γ(π,ν)\Gamma(\pi,\nu) is the set of all couplings of π\pi and ν\nu.

The total variation distance between two probability measures π\pi and ν\nu on a sigma-algebra F\mathcal{F} of subsets of the sample space Ω\Omega is defined via

4 Isoperimetric Inequality for Strongly Log-concave Distributions

The cumulative distribution function (CDF) of one-dimensional standard Gaussian distribution will be denoted by Φ(x)=Pr⁡y∼N(0,1)[y≤x]\Phi(x)=\Pr_{y\sim\mathcal{N}(0,1)}[y\leq x]. The following Lemma relates the expanding property of log-concave measures with Φ\Phi.

The property above implies the concentration of Lipschitz functions over log-concave measures.

Fix some z∈z\in. Let A={x∈K:α(x)≤m(z)}A=\{x\in\mathcal{K}:\alpha(x)\leq m(z)\}, so π(A)=z\pi(A)=z. Let Ar={x:d(x,A)≤r}.A_{r}=\{x:d(x,A)\leq r\}. Since α\alpha is GG-Lipschitz, α(x)≥m(z)+r\alpha(x)\geq m(z)+r implies that d(x,A)≥r/G.d(x,A)\geq r/G. Therefore {x:α(x)≥m(z)+r}⊂{x:d(x,A)≥r/G}=Ar/G‾\left\{x:\alpha(x)\geq m(z)+r\right\}\subset\left\{x:d(x,A)\geq r/G\right\}=\overline{A_{r/G}} and so

We obtain the other inequality by applying the above inequality to −α(x).-\alpha(x). ∎

GDP of Regularized Exponential Mechanism

In this section, we prove our DP result (Theorem 2.1). The proof uses the isoperimetric inequality for strongly log-concave measures [Led99]. Intuitively, the privacy loss random variable will be GG-Lipschitz under the hypothesis and isoperimetric inequality implies that any Lipschitz function will be as concentrated as a Gaussian with appropriate standard deviation. This allows us compare the privacy curve δ(P  ∥  Q)\delta\left(P\;\middle\|\;Q\right) to that of a Gaussian mechanism. In our proof, it is actually more convenient to compare tradeoff curves (T(P  ∥  Q)T\left(P\;\middle\|\;Q\right)) which are equivalent to privacy curves via convex duality (Proposition 3.3 and Theorem 2.1).

We finish by calculating the integrals that showed up in the proof.

As a corollary to Theorem 4.1, we can bound any divergence measure that decreases under post-processing such as Renyi divergence or KL divergence. In particular, this also implies Renyi Differential Privacy [Mir17] of our algorithm.

By Theorem 2.10 in [DRS19], if T(P∥Q)≥T(X∥Y)T(P\|Q)\geq T(X\|Y), then there exists a randomized algorithm MM such that M(X)=PM(X)=P and M(Y)=QM(Y)=Q. Therefore for any divergence measure which decreases under post-processing we have,

Efficient Non-smooth Sampling

In this section, we will present an efficient sampling scheme for (non-smooth) functions to complement our main result first. Specifically, we study the following problem about sampling from a (non-smooth) log-concave distribution.

Our sampler is based on the alternating sampling algorithm in [LST21] (See algorithm 1). This algorithm reduces the problem of sampling from exp⁡(−F^(x))\exp(-\widehat{F}(x)) to sampling from exp⁡(−F^(x)−12η∥x−y∥2)\exp(-\widehat{F}(x)-\frac{1}{2\eta}\|x-y\|^{2}) for some fixed η\eta and for roughly 1ημ\frac{1}{\eta\mu} many different yy. When the step size η\eta is very small, the later problem is easier because the distribution is almost like a Gaussian distribution. For our problem, we will pick the largest step size η\eta such that we can sample exp⁡(−F^(x)−12η∥x−y∥2)\exp(-\widehat{F}(x)-\frac{1}{2\eta}\|x-y\|^{2}) using only O~(1)\widetilde{O}(1) many steps.

Given a μ\mu-strongly convex function FF defined on K\mathcal{K} with an initial point x0x_{0}. Let the distance D=∥x0−x∗∥2D=\|x_{0}-x^{*}\|_{2} for any x∗=arg⁡min⁡x∈KF^(x)x^{*}=\arg\min_{x\in\mathcal{K}}\widehat{F}(x). Suppose the step size η≤1μ\eta\leq\frac{1}{\mu}, the target accuracy δ>0\delta>0 and the number of step T≥Θ(1ημlog⁡(d/μ+D2ηδ))T\geq\Theta(\frac{1}{\eta\mu}\log(\frac{d/\mu+D^{2}}{\eta\delta})). Then, Algorithm 1 returns a random point xTx_{T} that has δ\delta total variation distance to the distribution proportional to exp⁡(−F^(x))\exp(-\widehat{F}(x)).

Now, we show that Line 1 in Algorithm 1 can be implemented by a simple rejection sampling. The idea is to pick step size η\eta small enough such that F^(x)\widehat{F}(x) is essentially a constant function for a random x∼N(y,η⋅Id)x\sim\mathcal{N}(y,\eta\cdot I_{d}). The precise algorithm is given in Algorithm 2.

Let π\pi be the distribution proportional to exp⁡(−F^(x)−12η∥x−y∥22)\exp(-\widehat{F}(x)-\frac{1}{2\eta}\|x-y\|_{2}^{2}) and let G\mathcal{G} be the distribution proportional to exp⁡(−ψ(x)−12η∥x−y∥2)\exp(-\psi(x)-\frac{1}{2\eta}\|x-y\|^{2}). Then, we have that

Let π~\widetilde{\pi} be the distribution returns by Algorithm 2. Then, we have that

For the distribution π~\widetilde{\pi} by the algorithm, we sample x∼Gx\sim\mathcal{G}, then accept the sample if u≤12ρu\leq\frac{1}{2}\rho. Hence, we have

Since uu is uniform between and 11, we have the result.

Finally, for the expectation of ρ\rho, we note that

and that the probability that the loop pass step α\alpha is exactly 1α!\frac{1}{\alpha!}. Hence, we have

Taking expectation over zz gives the result. ∎

Now, we are already to prove our main result. This shows that if η≪G−2\eta\ll G^{-2}, then the algorithm indeed implements Line 1 correctly up to small error.

Let π\pi be the distribution given by c⋅exp⁡(−F^(x)−12η∥x−y∥22)c\cdot\exp(-\widehat{F}(x)-\frac{1}{2\eta}\|x-y\|_{2}^{2}) and π~\widetilde{\pi} is the distribution outputted by the algorithm. By Lemma 5.3, we have

We split the ρ\rho into two terms ρ≤L\rho_{\leq L} and ρ>L\rho_{>L}. The first term ρ≤L\rho_{\leq L} is the sum of all terms added to ρ\rho when α≤L\alpha\leq L (including the initial term 11). The second term ρ>L\rho_{>L} is the sum when α>L\alpha>L. Hence, we have ρ=ρ>L+ρ≤L\rho=\rho_{>L}+\rho_{\leq L} and hence

For the term ρ>L\rho_{>L}, by a calculation similar to Lemma 5.3, we have

Denote a function hx,z(t):=Pr⁡i∈I[∣fi(z)−fi(x)∣≥t]h_{x,z}(t):=\Pr_{i\in I}[|f_{i}(z)-f_{i}(x)|\geq t]. Since each fif_{i} is GG-Lipschitz, Lemma 5.4 shows that

By Markov inequality, for any k>0k>0, we know

As ∣fi(z)−fi(x)∣≤G∥x−z∥2|f_{i}(z)-f_{i}(x)|\leq G\|x-z\|_{2}, if hx,z(t)=Pr⁡i∈I[∣fi(z)−fi(x)∣≥t]≤e−t2/(16ηG2)h_{x,z}(t)=\Pr_{i\in I}[|f_{i}(z)-f_{i}(x)|\geq t]\leq e^{-t^{2}/(16\eta G^{2})}, we know

Hence, we have Pr⁡(Δ≥k)≤6exp⁡(−k2/(64G2η))\Pr(\Delta\geq k)\leq 6\exp(-k^{2}/(64G^{2}\eta)) and

As for the term ρ≤L\rho_{\leq L}, we know that

Note that the term ρ≤L\rho_{\leq L} involves only less than L22\frac{L^{2}}{2} many fi(x)f_{i}(x) and fi(z)f_{i}(z). Lemma 5.4 shows that for any ii, we have

Under the event ∣fi(x)−fi(z)∣≤132k|f_{i}(x)-f_{i}(z)|\leq\frac{1}{3}2^{k} for all ii appears in ρ≤L\rho_{\leq L}, we have

Therefore, we have Pr⁡(∣ρ≤L∣>2kL)≤L2exp⁡(−4k32ηG2)\Pr(|\rho_{\leq L}|>2^{kL})\leq L^{2}\exp(-\frac{4^{k}}{32\eta G^{2}}) and

Picking η≤2−8G−2L−1\eta\leq 2^{-8}G^{-2}L^{-1}, we have that

It remains to bound the term Pr⁡[ρ∉]⋅2L\Pr[\rho\notin]\cdot 2^{L}. We know the probability the algorithm enters the (L+1)(L+1)-th phase is at most 1L!≤22L\frac{1}{L!}\leq\frac{2}{2^{L}}. Hence we know Pr⁡[ρ∉]≤22L+Pr⁡[ρ≤L∉]\Pr[\rho\notin]\leq\frac{2}{2^{L}}+\Pr[\rho_{\leq L}\notin]. Similarly, by Gaussian Concentration and union bound, we have

Under the event that ∣fi(x)−fi(z)∣≤1/2|f_{i}(x)-f_{i}(z)|\leq 1/2 for all ii appears in ρ≤L\rho_{\leq L}, we have

Combining Theorem 5.2 and Lemma 5.5, we have the following result:

Furthermore, each steps accesses only O(1)O(1) many fi(x)f_{i}(x) in expectation and samples from exp⁡(−ψ(x)−12η∥x−y∥22)\exp(-\psi(x)-\frac{1}{2\eta}\|x-y\|^{2}_{2}) for O(1)O(1) many yy with η=Θ(G−2/log⁡(T/δ))\eta=\Theta(G^{-2}/\log(T/\delta)).

DP Convex Optimization

In this section we present our results about DP-ERM and DP-SCO.

In this subsection, we state our result for the DP-ERM problem (3). Briefly speaking, our main result (Theorem 2.1) shows that sampling from exp⁡(−kF(x;D))\exp(-kF(x;\mathcal{D})) for some appropriately chosen kk is (ε,δ)(\varepsilon,\delta)-DP and achieves the optimal empirical risk in (4). Our sampling scheme in Section 5 provides an efficient implementation. We start with the following lemma which shows the utility guarantee for the sampling mechanism.

This is first shown by [KV06] for any linear function FF, and [BST14] extends it to any convex function FF with a slightly worse constant.

The excess empirical risk is bounded by dk+μD22\frac{d}{k}+\frac{\mu D^{2}}{2}. Moreover, if {f(⋅,s)}s∈D\{f(\cdot,s)\}_{s\in\mathcal{D}} are already μ\mu-strongly convex, then sampling x(priv)x^{(priv)} with probability proportional to exp⁡(−kF(x;D))\exp(-kF(x;\mathcal{D})) is (ε,δ(ε))(\varepsilon,\delta(\varepsilon))-differentially private where

The excess empirical risk is bounded by dk\frac{d}{k}.

The privacy guarantee follows directly from our main result Theorem 2.1, and the bound on excess empirical loss can be proved by Lemma 6.1. ∎

Before we state the implementation results on DP-ERM, we need the following technical lemma:

For any constants 1/2>δ>01/2>\delta>0 and ε>0\varepsilon>0, if ∣s∣≤2log⁡(1/(2δ))+2ε−2log⁡(1/(2δ))|s|\leq\sqrt{2\log(1/(2\delta))+2\varepsilon}-\sqrt{2\log(1/(2\delta))}, one has

Without loss of generality, we assume s≥0s\geq 0 and want to find an appropriate value of ss such that Φ(−εs+s2)≤δ\Phi\left(-\frac{\varepsilon}{s}+\frac{s}{2}\right)\leq\delta. Denote t=defΦ−1(1−δ)t\stackrel{{\scriptstyle{\text{def}}}}{{=}}\Phi^{-1}(1-\delta) and since 1−Φ(t)≤12exp⁡(−t2/2)1-\Phi(t)\leq\frac{1}{2}\exp(-t^{2}/2) for t>0t>0, we know that t≤2log⁡(1/(2δ))t\leq\sqrt{2\log(1/(2\delta))}. It is equivalent to solve the equation εs−s2≥t\frac{\varepsilon}{s}-\frac{s}{2}\geq t, which is equivalent to 0≤s≤t2+2ε−t0\leq s\leq\sqrt{t^{2}+2\varepsilon}-t. Note that t2+2ε−t\sqrt{t^{2}+2\varepsilon}-t decreases as tt increases, which implies that we can set s≤2log⁡(1/(2δ))+2ε−2log⁡(1/(2δ))s\leq\sqrt{2\log(1/(2\delta))+2\varepsilon}-\sqrt{2\log(1/(2\delta))}. ∎

Combining the sampling scheme (Theorem 5.6) and our analysis on DP-ERM, we can get the efficient implementation results on DP-ERM directly.

With same assumptions in Theorem 6.2, and assume f(⋅;s)f(\cdot;s) is GG-Lipschitz over K\mathcal{K} for all ss. For any constants 1/10>δ>01/10>\delta>0 and ε>0\varepsilon>0, there is an efficient sampler to solve DP-ERM which has the following guarantees:

The scheme is (ε,δ)(\varepsilon,\delta)-differentially private;

The expected excess empirical loss is bounded by GDdn(log⁡(1/δ)+ε−log⁡(1/δ))\frac{GD\sqrt{d}}{n(\sqrt{\log(1/\delta)+\varepsilon}-\sqrt{\log(1/\delta)})}. In particular, if ε<1/10\varepsilon<1/10, the expected excess empirical loss is bounded by 2GDdlog⁡(1/δ)εn.\frac{2GD\sqrt{d\log(1/\delta)}}{\varepsilon n}. If ε≥log⁡(1/δ)\varepsilon\geq\log(1/\delta), the expected excess empirical loss is bounded by O(GDdnε)O(\frac{GD\sqrt{d}}{n\sqrt{\varepsilon}}).

queries to the values on f(x;s)f(x;s) in expectation and takes the same number of samples from some Gaussian restricted to the convex set K\mathcal{K}.

By Lemma 6.3, we can set s=2log⁡(3/(4δ))+2ε−2log⁡(3/(4δ))s=\sqrt{2\log(3/(4\delta))+2\varepsilon}-\sqrt{2\log(3/(4\delta))} to make δ(N(0,1)  ∥  N(s,1))≤2δ/3\delta\left(\mathcal{N}(0,1)\;\middle\|\;\mathcal{N}(s,1)\right)\leq 2\delta/3. For our setting, Theorem 6.2 shows that we have s=Gknμs=\frac{G\sqrt{k}}{n\sqrt{\mu}} and hence we can take

Putting it into the excess empirical loss bound of dk+μD22\frac{d}{k}+\frac{\mu D^{2}}{2} and setting μ=GdnD(log⁡(3/(4δ))+ε−log⁡(3/(4δ)))\mu=\frac{G\sqrt{d}}{nD\left(\sqrt{\log(3/(4\delta))+\varepsilon}-\sqrt{\log(3/(4\delta))}\right)}, we get the result on the empirical loss.

Particularly, consider the case when ε<1/10\varepsilon<1/10. We know the excess empirical loss is bounded by GDdn(log⁡(3/(4δ))+ε−log⁡(3/(4δ)))\frac{GD\sqrt{d}}{n(\sqrt{\log(3/(4\delta))+\varepsilon}-\sqrt{\log(3/(4\delta))})}. Note that 1+x2−x28≤1+x≤1+x21+\frac{x}{2}-\frac{x^{2}}{8}\leq\sqrt{1+x}\leq 1+\frac{x}{2} for x≥0x\geq 0. Under the assumption that δ,ε∈(0,110)\delta,\varepsilon\in(0,\frac{1}{10}), we know GDdn(log⁡(3/(4δ))+ε−log⁡(3/(4δ)))≤2GDdlog⁡(4/(5δ))nε\frac{GD\sqrt{d}}{n(\sqrt{\log(3/(4\delta))+\varepsilon}-\sqrt{\log(3/(4\delta))})}\leq\frac{2GD\sqrt{d\log(4/(5\delta))}}{n\varepsilon}. The case when ε≥log⁡(1/δ)\varepsilon\geq\log(1/\delta) also follows similarly.

To make it algorithmic, we apply Theorem 5.6 with the accuracy on the total variation distance to be min⁡{δ/3,1cncε}\min\{\delta/3,\frac{1}{cn^{c}\varepsilon}\} for some large enough constant cc. This leads to (ε,δ)(\varepsilon,\delta)-DP and an extra empirical loss and hence we use log⁡(1/δ)\log(1/\delta) rather than log⁡(3/(4δ))\log(3/(4\delta)) or log⁡(4/(5δ))\log(4/(5\delta)) in the final loss term.

The running time follows from Theorem 5.6. ∎

2 DP-SCO and Generalization Error

As mentioned before, one can reduce the DP-SCO (5) to DP-ERM (3) by the iterative localization technique proposed by [FKT20]. But this method forces us to design different algorithms for DP-ERM and DP-SCO, and may lead to a large constant in the final loss. In this section, we show that the exponential mechanism can achieve both the optimal empirical risk for DP-ERM and the optimal population loss for DP-SCO by simply changing the parameters. The bound on the generalization error works beyond differential privacy and can be useful for other (non-private) optimization settings.

The proof will make use of one famous inequality: Talagrand transportation inequality. Recall for two probability distributions ν1,ν2\nu_{1},\nu_{2}, the Wasserstein distance is equivalently defined as

where the infimum is over all couplings Γ\Gamma of ν1,ν2.\nu_{1},\nu_{2}.

To prove our main result on bounding the generalization error of sampling mechanism, we need the following lemma.

For any learning algorithm A\mathcal{A} and dataset D={s1,⋯ ,sn}\mathcal{D}=\{s_{1},\cdots,s_{n}\} drawn i.i.d from the underlying distribution P\mathcal{P}, let D′\mathcal{D}^{\prime} be a neighboring dataset formed by replacing a random element of D\mathcal{D} with a freshly sampled s′∼Ps^{\prime}\sim\mathcal{P}. If A(D)\mathcal{A}(\mathcal{D}) is the output of A\mathcal{A} with D\mathcal{D}, then

Now we begin to state and prove our main result on the generalization error.

Suppose {f(⋅,s)}\{f(\cdot,s)\} is a family μ\mu-strongly convex functions over K\mathcal{K} such that f(x;s)−f(x;s′)f(x;s)-f(x;s^{\prime}) is GG-Lipschitz for all s,s′s,s^{\prime}. For any k>0k>0 and dataset D={s1,s2,⋯ ,sn}\mathcal{D}=\{s_{1},s_{2},\cdots,s_{n}\} drawn i.i.d from the underlying distribution P\mathcal{P}, let D′\mathcal{D}^{\prime} be a neighboring dataset formed by replacing a random element of D\mathcal{D} with a freshly sampled s′∼Ps^{\prime}\sim\mathcal{P},

If we sample our solution from density πD(x)∝e−kF(x;D)\pi_{\mathcal{D}}(x)\propto e^{-kF(x;\mathcal{D})}, we can bound the excess population loss as:

We form a neighboring data set D′\mathcal{D}^{\prime} by replacing a random element of D\mathcal{D} by a freshly sampled s′∼P.s^{\prime}\sim\mathcal{P}. Let πD∝e−kF(x;D)\pi_{\mathcal{D}}\propto e^{-kF(x;\mathcal{D})} and πD′∝e−kF(x;D′)\pi_{\mathcal{D}^{\prime}}\propto e^{-kF(x;\mathcal{D}^{\prime})}. By Corollary 4.3, we have

By the assumptions, we know both F(x;D)F(x;\mathcal{D}) and F(x;D′)F(x;\mathcal{D}^{\prime}) are μ\mu-strongly convex and by Theorem 6.5, we have

By Lemma 6.6 and properties of Wasserstein distance, we have

where the last inequality follows from Lemma 6.1. ∎

With the bounds on generalization error, we can get our first result on DP-SCO.

If users in the data-set D\mathcal{D} are drawn i.i.d. from the underlying distribution P\mathcal{P}, the excess population loss is bounded by Gnμ+dk+μD22\frac{G}{n\mu}+\frac{d}{k}+\frac{\mu D^{2}}{2}. Moreover, if {f(⋅;s)}s∈D\{f(\cdot;s)\}_{s\in\mathcal{D}} are already μ\mu-strongly convex, then sampling x(priv)x^{(priv)} with probability proportional to exp⁡(−kF(x;D))\exp(-kF(x;\mathcal{D})) is (ε,δ(ε))(\varepsilon,\delta(\varepsilon))-differentially private where

The excess population loss is bounded by Gnμ+dk\frac{G}{n\mu}+\frac{d}{k}.

The first part about privacy is a restatement of our result on DP-ERM (Theorem 6.4). The excess population loss (See Equation (6)) follows from the bound on generalization error (Theorem 6.7) and utility guarantee (Lemma 6.1). ∎

We give an implementation result of our DP-SCO result.

With same assumptions in Theorem 6.8, and assume f(⋅;s)f(\cdot;s) is GG-Lipschitz over K\mathcal{K} for all ss. For 0<δ<1100<\delta<\frac{1}{10} and 0<ε<1100<\varepsilon<\frac{1}{10}, there is an efficient algorithm to solve DP-SCO which has the following guarantees:

The algorithm is (ε,δ)(\varepsilon,\delta)-differentially private;

The expected population loss is bounded by

where c>0c>0 is an arbitrary constant to be chosen.

queries of the values of f(⋅,si)f(\cdot,s_{i}) in expectation and takes the same number of samples from some Gaussian restricted to the convex set K\mathcal{K}.

As for the non-typical case when ε≥1/10\varepsilon\geq 1/10, one can use the bound in Theorem 6.4 and the bound on generalization error (Theorem 6.7) . Particularly, one can achieve expected population loss O(GD(d/nlog⁡(1/δ)+ε−log⁡(1/δ)+1n))O\left(GD\left(\frac{\sqrt{d}/n}{\sqrt{\log(1/\delta)+\varepsilon}-\sqrt{\log(1/\delta)}}+\frac{1}{\sqrt{n}}\right)\right).

By Theorem 6.8, sampling from exp⁡(−k(F(x;D)+μ∥x∥22/2))\exp(-k(F(x;\mathcal{D})+\mu\|x\|_{2}^{2}/2)) when k≤ε2n2μ2G2log⁡(3/(4δ))k\leq\frac{\varepsilon^{2}n^{2}\mu}{2G^{2}\log(3/(4\delta))} is (ε,2δ/3)(\varepsilon,2\delta/3)-DP. Besides, we can set k=μG2min⁡{ε2n22log⁡(3/(4δ)),2nd}k=\frac{\mu}{G^{2}}\min\{\frac{\varepsilon^{2}n^{2}}{2\log(3/(4\delta))},2nd\} for arbitrarily large constant c>0c>0 to make the mechanism (ε,2δ/3)(\varepsilon,2\delta/3)-differentially private, achieving tight population loss and decrease the running time. Then the population loss is upper bounded by

By setting μ=GD2(2log⁡(3/(4δ))dε2n2+12n)\mu=\frac{G}{D}\sqrt{2(\frac{2\log(3/(4\delta))d}{\varepsilon^{2}n^{2}}+\frac{1}{2n})}, the population loss is upper bounded by

To make it algorithmic, we also apply Theorem 5.6 with the accuracy on the total variation distance to be min⁡{δ/3,1cnc}\min\{\delta/3,\frac{1}{cn^{c}}\} for some large enough constant cc. This leads to an extra empirical loss and hence we use log⁡(1/δ)\log(1/\delta) rather than log⁡(3/(4δ))\log(3/(4\delta)) in the final loss term. The runtime follows from Theorem 5.6. ∎

Information-theoretic Lower Bound for DP-SCO

In this section, we prove an information-theoretic lower bound for the query complexity required for DP-SCO (with value queries), which matches (up to some logarithmic terms) the query complexity achieved by our algorithm (in Theorem 6.9). Our proof is similar to the previous works like [ACCD12, DJWW15] with some modifications.

Therefore G=d(δ2+σ2).G=\sqrt{d(\delta^{2}+\sigma^{2})}.

where v^\widehat{v} denotes the output of any algorithm mapping from the observation (Y1,⋯ ,Yk)(Y^{1},\cdots,Y^{k}) to {−1,1}d\{-1,1\}^{d}, and the probability is taken over the distribution of the underlying vv, the observation (Y1,⋯ ,Yk)(Y^{1},\cdots,Y^{k}) and any additional randomness in the algorithm.

Now we continue our proof of the lower bound. We will make use of the property of the Bayes risk.

Suppose that vv is uniformly sampled from V={−1,1}d\mathcal{V}=\{-1,1\}^{d}, then any estimate v^\widehat{v} obeys

where the first inequality follows from the definition of Bayes risk BjB_{j}, the second inequality follows by Lemma 7.3 and the last inequality follows by the Cauchy-Schwartz inequality.

To complete the proof, it suffices to show that

Assuming Equation (18) first, which will be established later. Then we know that

We will complete the proof of Lemma 7.4 by showing the following bounded total variation distance.

The convexity of the KL divergence suggests that

As we are considering linear functions, without loss of generality we can assume ⟨Qij,Qij′⟩=0\langle Q_{i}^{j},Q_{i}^{j^{\prime}}\rangle=0 for each ii and any j≠j′j\neq j^{\prime}, and ∥Qit∥2∈{0,1}\|Q_{i}^{t}\|_{2}\in\{0,1\} for any ii and tt. We name this assumption Orthogonal Query. Roughly speaking, for any algorithm, we can modify it to satisfy the Orthogonal Query. Whenever the algorithm wants to query some point, we can use Gram–Schmidt process to query another point and satisfy Orthogonal Query, and recover the function value at the original point queried by the algorithm.

By the chain-rule of KL-divergence, if we define P−1,j,v′(Yt∣Y[t−1])P_{-1,j,v^{\prime}}(Y^{t}\mid Y^{[t-1]}) to be the distribution of ttth observation YtY^{t} conditional on v′v^{\prime}, vj=−1v_{j}=-1 and Y[t−1]Y^{[t-1]}, then we have

Fix Y[t−1]Y^{[t-1]} such that Y[t−1]=yY^{[t-1]}=y. Since the algorithm is deterministic and (Xt,St)(X^{t},S^{t}) is fixed given Y[t−1]Y^{[t-1]}. Let St=siS^{t}=s_{i} so Xt=QitX^{t}=Q_{i}^{t}.

where Qit(j)Q_{i}^{t}(j) is the jj-th coordinate of QitQ_{i}^{t}. Summing over the terms, one has

where the last line follows from the fact that for each tt,∑i=1n∥Qit∥22=∑i=1n∑j=1d(Qit(j))2=1\sum_{i=1}^{n}\|Q_{i}^{t}\|_{2}^{2}=\sum_{i=1}^{n}\sum_{j=1}^{d}(Q_{i}^{t}(j))^{2}=1 as we only query one user for tt-th step.

Having Lemma 7.4, we can complete the proof of Theorem 7.1.

of Theorem 7.1. As discussed before, we know

where the last line follows from Lemma 7.4. We now set δ=σd2k\delta=\frac{\sigma\sqrt{d}}{2\sqrt{k}} and σ=Gd+d2/4k\sigma=\frac{G}{\sqrt{d+d^{2}/4k}}, so that d(σ2+δ2)=G2d(\sigma^{2}+\delta^{2})=G^{2}. Hence one has

Note that Theorem 7.1 almost gives us what we want, except that the Lipschitz constant of the functions in the hard distribution is bounded only on average by GG. To get distributions over GG-Lipschitz functions, we just condition on the bad event not happening.

In particularly, for some constant cc, we know

By the concentration of spherical Gaussians, we know if s∼N(δv,σ2Id)s\sim\mathcal{N}(\delta v,\sigma^{2}I_{d}), then

We can choose the constant cc large enough, such that Pr⁡[max⁡si∈D∥si∥2≤cG1+log⁡(nd)/d]≥1−1/poly⁡(nd)\Pr[\max_{s_{i}\in\mathcal{D}}\|s_{i}\|_{2}\leq cG\sqrt{1+\log(nd)/d}]\geq 1-1/\operatorname{poly}(nd), which implies

If we use the distributions conditioned on max⁡si∈D∥si∥2≤cG1+log⁡(nd)/d\max_{s_{i}\in\mathcal{D}}\|s_{i}\|_{2}\leq cG\sqrt{1+\log(nd)/d} rather than the Gaussians, and scale the constant to satisfy the assumption on Lipschitz continuity, we can prove the statement. Particularly, let G′=cG(1+log⁡(nd)/d)G^{\prime}=cG(\sqrt{1+\log(nd)/d}). If the algorithm can only make k=O(min⁡{ε2n2log⁡(1/δ),nd})k=O\left(\min\{\frac{\varepsilon^{2}n^{2}}{\log(1/\delta)},nd\}\right) observations, we know

which proves the lower bound claimed in the Corollary statement. ∎

where F^v∗=min⁡x∈KF^v(x)\widehat{F}_{v}^{*}=\min_{x\in\mathcal{K}}\widehat{F}_{v}(x) and x^k∈K\widehat{x}_{k}\in\mathcal{K} is the output of A\mathcal{A}.

Suppose we have a sampling algorithm that takes kk queries. We use it to sample from x(sol)x^{(sol)} proportional to p(x):=exp⁡(−F^v(x)−μ2∥x∥2)p(x):=\exp(-\widehat{F}_{v}(x)-\frac{\mu}{2}\|x\|^{2}) on K\mathcal{K} with total variation distance η≤min⁡(1/2,dμ/G2)\eta\leq\min(1/2,\sqrt{d\mu/G^{2}}).

where the last term involving η\eta is due to the total variation distance between x(sol)x^{(sol)} and pp. Setting D=d/μD=\sqrt{d/\mu} and using the diameter of K\mathcal{K} is DD and η≤min⁡(1/2,dμ/G2)\eta\leq\min(1/2,\sqrt{d\mu/G^{2}}), we have

Note that we set D=d/μD=\sqrt{d/\mu}. Comparing with (19), we have

and hence k=Ω(G2/μ)k=\Omega(G^{2}/\mu). If G2/μ≥exp⁡(d)G^{2}/\mu\geq\exp(d), we have

and hence k=Ω(G2d/μlog⁡(G2/μ))k=\Omega(\frac{G^{2}d/\mu}{\log(G^{2}/\mu)}). If G2/μ≤dG^{2}/\mu\leq d, we can construct our function only on the first O(G2/μ)O(G^{2}/\mu) dimensions to get a lower bound k=Ω(G2/μ).k=\Omega(G^{2}/\mu). Combining all cases gives the result. ∎

References