Differentially Private Coordinate Descent for Composite Empirical Risk Minimization
Paul Mangold, Aurélien Bellet, Joseph Salmon, Marc Tommasi
Introduction
Machine learning fundamentally relies on the availability of data, which can be sensitive or confidential. It is now well-known that preventing learned models from leaking information about individual training points requires particular attention . A standard approach for training models while provably controlling the amount of leakage is to solve an empirical risk minimization (ERM) problem under a differential privacy (DP) constraint . In this work, we aim to design a differentially private algorithm which approximates the solution to a composite ERM problem of the form:
Differential privacy constraints induce a trade-off between the privacy and the utility (i.e., optimization error) of the solution of (1). This trade-off was made explicit by , who derived lower bounds on the achievable error given a fixed privacy budget. To solve the DP-ERM problem in practice, the most popular approaches are based on Differentially Private variants of Stochastic Gradient Descent (DP-SGD) , in which random perturbations are added to the (stochastic) gradients. analyzed DP-SGD in the non-smooth DP-ERM setting, and then proposed an efficient DP-SVRG algorithm for composite DP-ERM. Both algorithms match known lower bounds. SGD-style algorithms perform well in a wide variety of settings, but also have some flaws: they either require small (or decreasing) step sizes or variance reduction schemes to guarantee convergence, and they can be slow when gradients’ coordinates are imbalanced. These flaws propagate to the private counterparts of these algorithms. Despite a few attempts at designing other differentially private solvers for ERM under different setups , the differentially private optimization toolbox remains limited, which undoubtedly restricts the resolution of practical problems.
In this paper, we propose and analyze a Differentially Private proximal Coordinate Descent algorithm (DP-CD), which performs updates based on perturbed coordinate-wise gradients (i.e., partial derivatives). Coordinate Descent (CD) methods have encountered a large success in non-private machine learning due to their simplicity and effectiveness , and have seen a surge of practical and theoretical interest in the last decade . In contrast to SGD, they converge with constant step sizes that adapt to the coordinate-wise smoothness of the objective. Additionally, CD updates naturally tend to have a lower sensitivity. Operating with partial gradients thus enables our private algorithm to reduce the perturbation required to guarantee privacy without resorting to amplification by subsampling .
We propose a novel analysis of proximal CD with perturbed gradients to derive optimal upper bounds on the privacy-utility trade-off achieved by DP-CD. We prove a recursion on distances of CD iterates to an optimal point that keeps track of coordinate-wise regularity constants in a tight manner and allows to use large, constant step sizes that yield high utility. Our results highlight the fact that DP-CD can exploit imbalanced gradient coordinates to outperform DP-SGD. They also improve upon known convergence rates for inexact CD in the non-private setting . We assess the optimality of DP-CD by deriving lower bounds that capture coordinate-wise Lipschitz regularity measures, and show that DP-CD matches those bounds up to logarithmic factors. Our lower bounds also suggest interesting perspectives for future work on DP-CD algorithms.
Our theoretical results have important consequences for practical implementations, which heavily rely on gradient clipping to achieve good utility. In contrast to DP-SGD, DP-CD requires to set coordinate-wise clipping thresholds, which can lead to impractical coordinate-wise hyperparameter tuning. We instead propose a simple rule for adapting these thresholds from a single hyperparameter. We also show how the coordinate-wise smoothness constants used by DP-CD can be estimated privately. We validate our theory with numerical experiments on real and synthetic datasets. These experiments further show that even in balanced problems, DP-CD can still improve over DP-SGD, confirming the relevance of DP-CD for DP-ERM.
Our main contributions can be summarized as follows:
We propose the first proximal CD algorithm for composite DP-ERM, formally prove its utility, and highlight regimes where it outperforms DP-SGD.
We show matching lower bounds under coordinate-wise regularity assumptions.
We give practical guidelines to use DP-CD, and show its relevance through numerical experiments.
Preliminaries
In this section, we introduce important technical notions that will be used throughout the paper.
We start by defining two conjugate norms that will be crucial in our analysis, for they allow to keep track of coordinate-wise quantities. Let be the Euclidean dot product, let with , and
The above component-wise regularity hypotheses are not restrictive: -Lipschitzness implies -component-Lipschitzness and -smoothness implies -component-smoothness. Yet, the actual component-wise constants of a function can be much lower than what can be deduced from their global counterparts. This will be crucial for our analysis and in the performance of DP-CD.
When is the characteristic function of a convex set (with separable components), the regularity assumptions only need to hold on this set. This allows considering problem (1) with a smooth objective under box-constraints.
Let be a set of datasets and a set of possible outcomes. Two datasets are said neighboring (denoted by ) if they differ on at most one element.
A randomized algorithm is -differentially private if, for all neighboring datasets and all in the range of :
In this paper, we consider the classic central model of DP, where a trusted curator has access to the raw dataset and releases a model trained on this datasetIn fact, our privacy guarantees hold even if all intermediate iterates are released (not just the final model)..
Differentially Private Coordinate Descent
In this section, we introduce the Differentially Private proximal Coordinate Descent (DP-CD) algorithm to solve problem (1) under -DP constraints. We first describe our algorithm, show how to parameterize it to satisfy the desired privacy constraint, and prove corresponding utility results. Finally, we compare these utility guarantees with DP-SGD.
Update (3) only requires the computation of the -th entry of the gradient. To satisfy differential privacy, we perturb this gradient entry with additive Gaussian noise of variance . The complete DP-CD procedure is shown in Algorithm 1. At each iteration, we pick a coordinate uniformly at random and update according to (3), albeit with noise addition (see line 7). For technical reasons related to our analysis, we use a periodic averaging scheme (line 8). This scheme is similar to DP-SVRG , although no variance reduction is required since DP-CD computes coordinate gradients over the whole dataset.
2 Privacy Guarantees
For Algorithm 1 to satisfy -DP, the noise scales can be calibrated as given in Theorem 3.1.
The dependence of the noise scales on , , and (the number of updates) in Theorem 3.1 is standard in DP-ERM. However, the noise is calibrated to the loss function’s component-Lipschitz constants. These can be much lower their global counterpart, the latter being used to calibrate the noise in DP-SGD algorithms. This will be crucial for DP-CD to achieve better utility than DP-SGD in some regimes. We also note that, unlike DP-SGD, DP-CD does not rely on privacy amplification by subsampling , and thereby avoids the approximations required by these schemes to bound the privacy loss.
Theorem 3.1 assumes to give a simple closed form for the noise scales. In practice we compute tighter values numerically using Rényi DP formulas directly (see Eq. 18 in Appendix B), removing the need for this assumption.
3 Utility Guarantees
We now state our central result on the utility of DP-CD for the composite DP-ERM problem. As done in previous work, we use the asymptotic notation to hide non-significant logarithmic factors. Non-asymptotic utility bounds can be found in Appendix C.
For convex, , and , then:
where and more simply when .
For -strongly convex w.r.t. , , and , then:
Expectations are over the randomness of the algorithm.
The above inequality shows that coordinate-wise updates leave a fraction of the function “unchanged”, while the remaining part decreases (up to additive noise). Importantly, all quantities are measured in -norm. When summing (4) for , its left hand side simplifies and its right hand side is simplified as a telescoping sum:
Our novel convergence proof of CD is also useful in the non-private setting. In particular, we improve upon known convergence rates for inexact CD methods with additive error , under the hypothesis that gradients are noisy and unbiased. In their formalism, we have and . With our analysis, the algorithm requires (resp. ) iterations to achieve expected precision when is convex (resp. -strongly-convex w.r.t. ), improving upon ’s results by a factor (resp. ). See Section C.3 for details. Moreover, unlike this prior work, our analysis does not require the objective to decrease at each iteration, which is essential to guarantee DP.
Our utility guarantees stated in Theorem 3.3 directly depend on precise coordinate-wise regularity measures of the objective function. In particular, the initial distance to optimal, the strong convexity parameter and the overall sensitivity of the loss function are measured in the norms and (i.e., weighted by coordinate-wise smoothness constants or their inverse). In the remainder of this section, we thoroughly compare our utility results with existing ones for DP-SGD. We will show the optimality of our utility guarantees in Section 4.
4 Comparison with DP-SGD and DP-SVRG
When the smoothness constants are all equal, and . This boils down to comparing to . As , DP-CD can be up to times worse than DP-SGD. This can only happen when features are extremely correlated, which is generally not the case in machine learning. We show empirically in Section 6.2 that, even in balanced regimes, DP-CD can still significantly outperform DP-SGD.
Lower Bounds
If is -strongly-convex w.r.t. :
We recover the lower bounds of for -Lipschitz losses as a special case of ours by setting . In this case, the loss function used in our proof is indeed -Lipschitz. To relate these lower bounds to the performance of DP-CD, consider a suboptimal version of our algorithm where the step sizes are set to . In this setting, results from Theorem 3.3 still hold, and match the lower bounds from Theorem 4.1 up to logarithmic factors. We leave open the question of the optimality of DP-CD under the additional hypothesis of smoothness.
We note that the assumption on the sum of the ’s over a set of indices in Theorem 4.1 can be eliminated at the cost of an additional factor of for convex losses and for strongly-convex losses, making the bound looser. Although the aforementioned assumption may seem solely technical, we conjecture that better utility is possible when a few coordinate-wise Lipschitz constants dominate the others. We discuss this further in Section 8.
DP-CD in Practice
We now discuss practical questions related to DP-CD. First, we show how to implement coordinate-wise gradient clipping using a single hyperparameter. Second, we explain how to privately estimate the smoothness constants. Finally, we discuss the possibility of standardizing the features and how this relates to estimating smoothness constants for the important problem of fitting generalized linear models.
In DP-CD, gradients are released one coordinate at a time and should thus be clipped in a coordinate-wise fashion. Using the same threshold for each coordinate would ruin the ability of DP-CD to account for imbalance across gradient coordinates, whereas tuning coordinate-wise thresholds as individual hyperparameters is impractical.
2 Private Smoothness Constants
3 Feature Standardization
Numerical Experiments
For DP-SGD, we use constant step sizes and standard gradient clipping. For DP-CD, we adapt the coordinate-wise clipping thresholds from one hyperparameter, as described in Section 5.1. Similarly, coordinate-wise step sizes are set to , where is a hyperparameter. When the coordinate-wise smoothness constants are not all equal, we also consider DP-CD with privately computed ’s, as described in Section 5.2. For each dataset and each algorithm, we simultaneously tune the clipping threshold, the number of passes over the dataset and, for DP-CD and DP-SGD, the step sizes. After tuning these parameters, we report the relative error to the (non-private) optimal objective value. The complete tuning procedure is described in Section G.1, where we also give the best error for various numbers of passes for each algorithm and dataset. The code used to obtain all our results is available in a public repository https://gitlab.inria.fr/pmangold1/private-coordinate-descent/ and in the supplementary material.
In the Electricity and California datasets, features are naturally imbalanced. DP-CD can exploit this through the use of coordinate-wise smoothness constants. We also consider a variant of DP-CD (DP-CD-P) which dedicates of the privacy budget to estimate these constants (see Section 5.2) from a crude upper bound on each feature (twice their maximal absolute value). It then uses the resulting private smoothness constants in step sizes and clipping thresholds. Figure 1 shows that DP-CD outperforms DP-SGD and DP-SCD by an order of magnitude on both datasets, even when the smoothness constants are estimated privately.
2 Balanced Datasets
To assess the performance of DP-CD when coordinate-wise smoothness constants are balanced, we standardize the Electricity and California datasets (see Section 5.3). As standardization is done for all algorithms, we do not account for it in the privacy budget. On standardized datasets, coordinate-wise smoothness constants are all equal, removing the need of estimating them privately. We report the results in Figure 2. Although our theory suggests that DP-CD may do worse than DP-SGD in balanced regimes, we observe that it still improves over DP-SGD (and DP-SCD) in practice. Similar observations hold in our challenging Sparse LASSO problem, where DP-SGD is barely able to make any progress. We believe these results are in part due to the beneficial effect of clipping in DP-CD, and the fact that DP-SGD relies on amplification by subsampling, for which privacy accounting is not perfectly tight. Additionally, CD methods are known to perform well on fitting linear models: our results show that this transfers well to private optimization.
3 Running Time
The results above showed that DP-CD yields better utility than DP-SGD. We also observe that DP-CD tends to reach these results in up to times fewer passes on the data than DP-SGD (see Section G.1 for detailed results). Additionally, when accounting for running time, DP-CD significantly outperforms DP-SGD: we refer to Section G.2 for the counterparts of Figure 1 and 2 as a function of the running time instead of the number of passes.
Related Work
Differentially Private Empirical Risk Minimization was first studied by , using output perturbation (adding noise to the solution of the non-private ERM problem) and objective perturbation (adding noise to the ERM objective itself). then proposed DP-SGD and proved its near-optimality. obtained faster convergence rates using a DP version of the SVRG algorithm . DP-SGD has become the standard approach to DP-ERM. In our work, we show that coordinate-wise updates can have lower sensitivity than DP-SGD updates and propose a DP-CD algorithm achieving competitive results. A private variant of the Frank-Wolfe algorithm (DP-FW) was also proposed to solve constrained DP-ERM problems . Although these algorithms achieve a good privacy-utility trade-off in theory, we are not aware of any empirical evaluation. DP-FW algorithms access gradients indirectly through a linear optimization oracle over a constrained set. Restricting to a constrained set is not necessary in DP-CD, allowing its use for a different family of problems.
Recent work has also studied algorithms and utility guarantees for stochastic convex optimization under differential privacy constraints, a problem very similar to DP-ERM. [27, 4, following work from] extended results known for DP-ERM to this setting, showing that the population risk of DP-SCO is asymptotically equivalent to the one of non-private SCO. Efficient algorithms for DP-SCO were proposed by , and studied stochastic variants of DP-FW. As detailed by results from DP-ERM can be converted to DP-SCO.
Coordinate descent (CD) algorithms have a long history in optimization. have shown convergence results for (block) CD algorithms for nonsmooth optimization. later proved a global non-asymptotic convergence rate for CD with random choice of coordinates for a convex, smooth objective. Parallel, proximal variants were developed by , while further considered non-separable non-smooth parts. introduced Dual CD algorithms for smooth ERM, showing performance similar to SVRG. We refer to and for detailed reviews on CD. Inexact CD was studied by , but their analysis requires updates not to increase the objective, which is hardly compatible with DP. We obtain tighter results for inexact CD with noisy gradients (see Remark 3.4).
Conclusion and Discussion
We presented the first differentially private proximal coordinate descent algorithm for composite DP-ERM. Using an original approach to analyze proximal CD with perturbed gradients, we derived optimal upper bounds on the privacy-utility trade-off achieved by DP-CD. We also prove new lower bounds under a component-Lipschitzness assumption, and showed that DP-CD matches these bounds. Our results demonstrate that DP-CD strongly outperforms DP-SGD when gradients’ coordinates are imbalanced. Numerical experiments show that DP-CD also performs very well in balanced regimes. The choice of coordinate-wise clipping thresholds is crucial for DP-CD to achieve good utility in practice, and we provided a simple rule to set them.
Although DP-CD already achieves good utility when most coordinates have small sensitivity, our lower bounds suggest that even better utility could be achieved by dynamically allocating more privacy budget to coordinates with largest sensitivities. A promising direction is to design DP-CD algorithms that leverage active set methods , which could provide practical alternatives to recent DP-SGD approaches that use a subspace assumption . Finally, we believe that adaptive clipping techniques may help to further improve the practical performance of DP-CD when coordinate-wise smoothness constants are more balanced.
Acknowledgments
The authors would like to thank the anonymous reviewers who provided useful feedback on previous versions of this work, which helped to improve the paper.
This work was supported in part by the Inria Exploratory Action FLAMED and by the French National Research Agency (ANR) through grant ANR-20-CE23-0015 (Project PRIDE) and ANR-20-CHIA-0001-01 (Chaire IA CaMeLOt).
References
Appendix A Lemmas on Sensitivity
In this section, we let be the universe where the data is drawn from. To upper bound the sensitivities of a function’s gradient, we start by recalling in Lemma A.1 that (coordinate) gradients are bounded by (coordinate-wise-)Lipschitz constants. We then link this upper bound with gradients’ sensitivities in Lemma A.2.
which is the claim of the first statement. To prove the second statement, we proceed similarly: the triangle inequality and Lemma A.1 give the following upper bounds:
We obtain the inequality (2) stated in Section 2 as a corollary.
Appendix B Proof of Theorem 3.1
To track the privacy loss of an adaptive composition of Gaussian mechanisms, we use Rényi Differential Privacy [38, RDP]. We note that similar results are obtained with zero Concentrated Differential Privacy . This flavor of differential privacy, gives tighter privacy guarantees in that setting, as it reduces the noise variance by a multiplicative factor of in comparison to the usual advanced composition theorem of differential privacy . Importantly, RDP can be translated back to differential privacy.
In this section, we recall the definition and main properties of zCDP. We denote by the set of all datasets over a universe and by the set of possible outcomes of the randomized algorithms we consider.
We will use the Rényi divergence (Definition B.1), which gives a distribution-oriented vision of privacy.
For two random variables and with values in the same domain , the Rényi divergence is, for ,
We now define RDP in Definition B.2. RDP provides a strong privacy guarantee that can be converted to classical differential privacy (Lemma B.3 and Corollary B.8).
A randomized algorithm is -Rényi-differentially private (RDP) if, for all all datasets differing on at most one element,
If a randomized algorithm is -RDP, then it is -differentially private for all .
The above -RDP guarantees hold for multiple values of . As such, can be seen as a function of , and Lemma B.3 ensures that the algorithm is -DP for
We can now restate in Theorem B.5 the composition theorem of RDP, which is key in designing private iterative algorithms.
Let be randomized algorithms, such that for , is -RDP, where these algorithms can be chosen adaptively (i.e., can use to the output of for all ). Let such that for , . Then is -RDP.
Finally, we define the Gaussian mechanism (Definition B.6), as used in Algorithm 1, and restate in Lemma B.7 the privacy guarantees that it satisfies in terms of RDP.
The Gaussian mechanism with noise is -RDP, where (for neighboring ) is the sensitivity of .
The function has sensitivity , thus for any , the Gaussian mechanism is -RDP [38, Corollary 1]. As , we have . This mechanism is thus -RDP. ∎
Let . If a randomized algorithm is -RDP with and for all , it is also -DP.
From Remark B.4 it holds that is -DP with This minimum is attained when the derivative of the objective is zero, which is the case when , resulting in . is thus -DP with
Choosing now gives
where the first inequality comes from , thus and thus . The second inequality follows from . ∎
B.2 Proof of Theorem 3.1
We are now ready to prove Theorem 3.1. From the privacy perspective, Algorithm 1 adaptively releases and post-processes a series of gradient coordinates protected by the Gaussian mechanism. We thus start by proving Lemma B.9, which gives an -differential privacy guarantee for the adaptive composition of Gaussian mechanisms.
Let . Lemma B.7 guarantees that the -th Gaussian mechanism with noise scale is -RDP. Then, the composition of these mechanisms is, according to Theorem B.5, -RDP. This can be converted to -DP via Corollary B.8 with , which gives for . ∎
thus by Lemma B.9 and the post-processing property of DP, Algorithm 1 is -differentially private. ∎
Appendix C Proof of Utility (Theorem 3.3)
Let be a dataset of elements drawn from a universe . Recall that we consider the following composite empirical risk minimization problem:
C.2 Proof of Theorem 3.3
In this section, we prove our central theorem that guarantees the utility of the DP-CD algorithm. To this end, we start by proving a lemma that upper bounds the expected value of in Algorithm 1. Using this lemma, we prove sub-linear convergence for the inner loop of DP-CD. This gives the sub-linear convergence of our algorithm for convex losses. Under the additional hypothesis that is strongly convex, we show that iterates of the outer loop of DP-CD converge linearly towards the (unique) minimum of .
To avoid notational clutter, we will write instead of throughout this section.
The regularization terms can now be reorganized using the separability of , as done by . Indeed, we notice that
Plugging (28) in (26) results in the following:
which gives the lemma since . ∎
To exploit this result, we need to upper bound the right hand side of (C.1) for the realizations of in Algorithm 1. This is where our proof differs from classical convergence proofs for coordinate descent methods. Namely, we rewrite the right hand side of (C.1) so as to obtain telescopic terms plus a bias term resulting from the addition of noise, as shown in Lemma C.3.
where and the expectations are taken over the random choice of and , conditioned upon the realization of .
From Lemma C.1 with , and as defined above we obtain
We can upper bound the right hand term of (C.2.1) using the convexity of and :
where we use the slight abuse of notation to denote any vector in the subdifferential of at the point . We now rewrite the dot product:
where the second equality follows from and . We split (38) into two terms: a “descent” term and a “noise” term.
Rewriting the “descent” term. We first focus on the “descent” term. As for all , it holds that which gives . We can now rewrite the “descent” term as a difference of two norms, materializing the distance to , weighted by the inverse of the step sizes :
where we factorized the norm to obtain the last inequality. We can rewrite (42) as an expectation over the random choice of the coordinate (drawn uniformly in ), given the realizations of and of the noise (which determines ):
Finally, we remark that , as only one coordinate changes between the two vectors, and the squared norm is separable. We thus obtain
For an update of the coordinate , the optimality condition of the proximal operator gives, for the realization of the noise drawn at the current iteration when coordinate is chosen:
and we now separate this term in two using :
It is now time to consider the expectation with respect to the noise of these terms. First, as is not dependent on the noise anymore, it simply holds that
The last step of our proof now takes care of the following term:
where each inequality comes from the triangle inequality. The non-expansiveness property of the proximal operator (see , Section 2.3) is now key to our result, as it yields
We now have everything to prove the lemma by plugging (56) and (53) into expected value of (52), and then (52) and (42) back into (38) to obtain, after using the Tower property of conditional expectations:
C.2.2 Convergence Lemma
Lemma C.3 allows us to prove a result on the mean of consecutive noisy coordinate-wise gradient updates, by simply summing it and rewriting the terms. This gives Lemma C.4, which is the key lemma of our proof.
The term essentially remains in the inequality due to the composite nature of . When , -component-smoothness of (for ) gives
and the result of Lemma C.4 further simplifies as:
Summing Lemma C.3 for to and , taking expectation with respect to all choices of coordinate and random noise and using the tower property gives:
As , the convexity of gives . Plugging this inequality into (65) and combining the result with (64) gives
We conclude the proof by using the fact that for all , thus and . ∎
C.2.3 Convex Case
Setting yields:
In the convex case, we iterate only once in the inner loop (since ). As such, , and applying Lemma C.4 with , and chosen as in Theorem 3.1 gives the result. Taking then gives
and the result follows from . ∎
C.2.4 Strongly Convex Case
Setting yields:
It remains to set to obtain
Recursive application of this inequality gives
where we upper bound the sum by the value of the complete series. It remains to replace by its value to obtain the result. Taking then gives
C.3 Proof of Remark 1
where the expectation is taken over the random noise , and as defined in the analysis of Algorithm 1. We need to link the proximal operator we use in DP-CD with the quantity that we just defined:
which can be rewritten as . Taking the expectation yields
Finally, we remark that and the non-expansiveness of the proximal operator gives
When the objective function is convex, we use Lemma C.4 to obtain, since ,
Therefore, when is convex, we get , for , as long as , that is .
In comparison, [51, Theorem 5.1 therein ] gives convergence to when . We thus gain a factor in utility. Importantly, our utility upper bound does not depend on initialization in that setting, whereas the one of does.
When the objective function is -strongly-convex w.r.t. to , then from (75) we obtain, as long as , that
Appendix D Comparison with DP-SGD
We start by the scenario where coordinate-wise smoothness constants are balanced and all equal to . We observe that
We then consider the convex and strongly-convex functions separately:
Convex functions: it holds that , which yields the equality .
which means that is -strongly-convex with respect to . This gives .
In light of the results summarized in Table 1, it remains to compare with , for which it holds that , which is our result.
When smoothness constants are disparate, we discuss the case where
the first coordinate of is already very close to its optimal value so that . Under this hypothesis,
which implies that when is strongly-convex with respect to , it is strongly-convex with respect to . This yields, under our hypotheses, . In both cases, DP-CD can get arbitrarily better than DP-SGD, and gets better as the ratio increases.
The two hypotheses we describe above are of course very restrictive. However, it gives some insight about when and why DP-CD can outperform DP-SGD. Our numerical experiments in Section 6 confirm this analysis, even in less favorable cases.
Appendix E Proof of Lower Bounds
To prove lower bounds on the utility of -component-Lipschitz functions, we extend the proof of to our setting (that is, -component-Lipschitz functions and unconstrained composite optimization). There are three main difficulties in adapting their proof:
Second, Lemma 5.1 of must be extended to our -component-Lipschitz setting. To do so, we consider datasets with points in rather than , and carefully adapt the construction of the dataset so that , which is essential to prove our lower bounds.
Third, the lower bounds of rely on fingerprinting codes, and in particular on the result of which uses such codes to prove that (when is smaller than some we describe later) differential privacy is incompatible with precisely and simultaneously estimating all counting queries defined over the columns of the dataset . In our construction, since all columns of now have different scales, we need an additional hypothesis on the repartition of the ’s, (i.e., that for all of a given size), which is not required in existing lower bounds (where all columns have equal scale).
We start our proof by recalling and extending to our setting the notions of counting queries (Definition E.1) and accuracy (Definition E.2), as described by . The main feature of our definitions is that we allow the set to have different scales for each of its coordinates, and that we account for this scale in the definition of accuracy. We denote by the convex hull of a set .
Let . A counting query on is a function defined using a predicate . The evaluation of the query over a dataset is defined as the arithmetic mean of on :
In our proof, we will use a specific class of queries: one-way marginals (Definition E.3), that compute the arithmetic mean of a dataset along one of its column.
Let or . The family of one-way marginals on is defined by queries with predicates for . For a dataset of size , we thus have .
E.2 Lower Bound for One-Way Marginals
We can now restate a key result from , which shows that there exists a minimal number of records needed in a dataset to allow achieving both accuracy and privacy on the estimation of one-way marginals on . This lemma relies on the construction of re-identifiable distribution (see [11, Definition 2.10]). One can then use this distribution to find a dataset on which a private algorithm can not be accurate (see [11, Lemma 2.11]).
For and , there exists a number such that for all , there exists no algorithm that is both -accurate and -differentially private for the estimation of one-way marginals on .
To leverage this result in our setting of private empirical risk minimization, we start by extending it to queries on . Before stating the main theorem of this section (Theorem E.5), we describe a procedure (with ), that takes as input a dataset and outputs an augmented and rescaled version. This procedure is crucial to our proof and is defined as follows. First, it adds rows filled with ’s to , which ensures that the sum of each column of is (which gives the lower bound on in Theorem E.5). Then it rescales each of these columns by subtracting to each coefficient and multiplying the -th column of () by . The resulting dataset is a set of points with values in , with the property that, for all , . For , we show how to reconstruct from in 1.
where we use the slight abuse of notation by denoting the one-way marginals and in the same way.
Let , and let constructed by adding rows of ’s at the end of . Let . We remark that
Then, we link with :
combining (97) and (98) gives the result. ∎
Let , and define the set of queries composed of queries for . Let be a -differentially-private randomized algorithm. Let . We will show that there exists a dataset such that for which is not -accurate.
Assume, for the sake of contradiction, that is -accurate for . Then, for each dataset , we have
Importantly, for all , the randomized algorithm satisfies (100) for the dataset . We now construct the mechanism that takes a dataset , constructs and runs on it. It then outputs such that, for , . Using 1, the results of and be linked to the ones of , as
Therefore, if satisfies (100) and (101), then satisfies, for all ,
which is exactly the definition of -accuracy for . Remark that since is only a post-processing of , without additional access to the dataset itself, is itself -differentially-private. We have thus constructed an algorithm that is both accurate and private for , which contradicts the result of Lemma E.4 when . This proves the existence of a dataset such that for , is not -accurate on , which means that with probability at least , there exists a subset of cardinal such that
where the second inequality comes from the fact that and our hypothesis on . Notice that when , we recover the result of , since it holds with probability at least that
and in that case, since all ’s are equal, it indeed holds that . Finally, we remark that the sum of each column of is , and as such, we have .
We get the result in that case by augmenting the dataset that we constructed in the first part of this proof. To do so, we follow the steps described by in the proof of their Lemma 5.1. The construction consists in choosing a vector , and adding rows with , and rows with to the dataset . This results in a dataset such that , since the contributions of rows and (almost) cancel out. The theorem follows from observing that -accuracy on this augmented dataset implies -accuracy on the original dataset. As such, if an algorithm is both private and -accurate on the dataset , we get a contradiction, which gives the theorem as . ∎
Without the assumption on the distribution of the ’s, we can still get an inequality that resembles (103): , with probability at least , and we get a result similar to Theorem E.5, except with an additional multiplicative factor .
E.3 Lower Bound for Convex Functions
To find the solution of (105), we look for so that the objective’s gradient is zero, that is
so that . To prove the lower bound, we remark that
At this point, we can proceed similarly to to relate this quantity to private estimation of one-way marginals. We let and be an -differentially private mechanism that outputs a private solution to (105). Suppose, for the sake of contradiction, that for every dataset with , it holds with probability at least that
We now derive from a mechanism to estimate one-way marginals. To do this, runs to obtain and outputs . We obtain that with probability at least ,
where . This is in contradiction with Theorem E.5. We thus proved that , with probability at least . As a consequence, we now obtain that with probability at least ,
which gives the desired result on the expectation of .
with probability at least , which is in contradiction with Remark E.6. We thus get an additional factor of in the lower bound:
E.4 Lower Bound for Strongly-Convex Functions
To prove a lower bound for strongly-convex functions, we let , , and . We consider the following problem, which fits in our setting:
It remains to apply Theorem E.5 to obtain that, with probability at least ,
which gives the lower bound on the expected value of . Note that without the additional assumption on the distribution of the ’s, Remark E.6 directly gives the result with an additional multiplicative factor :
Appendix F Private Estimation of Smoothness Constants
Assuming that the practitioner knows an approximate upper bound over the ’s, they can enforce it by clipping to for each . The sensitivity of the average of the clipped ’s is thus . One can then compute an estimate of under -DP using the Laplace mechanism as follows:
where the factor in noise scale comes from using the simple composition theorem , and is a sample drawn in a Laplace distribution of mean zero and scale . The computed constant can then directly be used in DP-CD, allocating the remaining budget to the optimization procedure.
Appendix G Additional Experimental Details and Results
We simultaneously tune these three hyperparameters for each algorithm across the following grid:
step size: 10 logarithmically-spaced values between and for DP-SGD, and between and for DP-CD.Recall that step sizes for CD algorithms are coordinate-wise, and thus larger than in SGD algorithms. We empirically verify that the best step size always lies strictly inside the considered interval for both DP-CD and DP-SGD.
clipping threshold: 100 logarithmically-spaced values, between and .
number of passes: 5 values (2, 5, 10, 20 and 50).
We run each algorithm on each dataset 5 times on each combination of hyperparameter values. We then keep the set of hyperparameters that yield the lowest value of the objective at the last iterate, averaged across the runs.
In Table 2, we report the best relative error (in comparison to optimal objective value) at the last iterate, averaged over five runs, for each dataset, algorithm, and total number of passes on the data. As such, each cell of this table corresponds to the best value obtained after tuning the step size and clipping hyperparameters for a given number of passes.
G.2 Running Time
In this section, we report the running times of DP-CD and DP-SGD. We implemented DP-CD and DP-SGD in C++, with Python bindingsThe code is available at https://gitlab.inria.fr/pmangold1/private-coordinate-descent/.. The design matrix and the labels are kept in memory as dense matrices of the Eigen library. No special code optimization nor tricks is applied to the algorithms, except for the update of residuals at each iteration of DP-CD, which prevents from accessing the complete dataset at each step. All experiments were run on a laptop with 16GB of RAM and an Intel(R) Core(TM) i7-10610U CPU @ 1.80GHz.
Figure 3 shows the same experiments as in Figure 1 and Figure 2, but as a function of the running time. In our implementation, DP-CD runs about times as fast as DP-SGD for a given number of iterations (see Figure 3(a) and Figure 3(b) for iterations). On the three other plots, Figure 3(c), Figure 3(d) and Figure 3(e), DP-CD yields better results in less iterations. DP-CD is thus particularly valuable in these scenarios: combined with its faster running time, it provides accurate results extremely fast. For completeness, we provide in Table 3 the full table of running time, corresponding to Table 2 and Figure 3. These results show that, for a given number of passes on the data, DP-CD consistently runs about times faster than DP-SGD.