Low Rank Mechanism for Optimizing Batch Queries under Differential Privacy
Ganzhao Yuan, Zhenjie Zhang, Marianne Winslett, Xiaokui Xiao, Yin Yang, Zhifeng Hao
Conclusion
This paper presented the Low Rank Mechanism (LRM), an optimization framework that minimizes the overall error in the results of a batch of linear queries under -differential privacy. LRM is the first practical method for a large number of linear queries, with an efficient and effective implementation using well established optimization techniques. Experiments show that LRM significantly outperforms other state-of-the-art differentially private query processing mechanisms, often by orders of magnitude. The current design of LRM focuses on exploiting the correlations between different queries. One interesting direction for future work is to further optimize LRM by utilizing also the correlations between data values, e.g., as is done in .
Acknowledgments
Yuan and Hao are supported by NSF-China (61070033, 61100148), NSF-Guangdong (9251009001000005, S2011040004804) and Key Technology Research and Development Programs of Guangdong Province (2010B050400011). Zhang, Winslett, Xiao and Yang are supported by SERC 102-158-0074 from Singapore’s A*STAR. Xiao is also supported by SUG Grant M58020016 and AcRF Tier 1 Grant RG 35/09 from Nanyang Technological University.
References
Appendix A Proofs
Based on the definition of the mechanism in Eq. (LABEL:eqn:part_mech), the residual of the noisy result with respect to the exact result, i.e. , is . The expected squared error is thus . Since , the expected error of the mechanism is .
Based on the definition of sensitivity, we have .
The last equality holds because is a positive constant. On the other hand, the scales of the decompositions follow a similar relationship:
Therefore, . Finally, since , we reach the conclusion of the lemma.
Assume that is the best matrix decomposition for minimizing the expected squared error for . In the following, we prove that is optimal, if and only if it also minimizes the program in Formula (LABEL:eqn:opt-problem).
(if part): If minimizes Formula (LABEL:eqn:opt-problem) but incurs more expected error than , implying that
By applying Lemma LABEL:lem:rescale, we can construct another decomposition and , such that . On the other hand, since , we have . Therefore, we can derive the following inequalities.
Finally, since and , it leads to a contradiction if .
(only if part): If is not the optimal solution to the program in Formula (LABEL:eqn:opt-problem), the optimal solution must incur less expected error, using a similar strategy. This completes the proof of the theorem.
To prove the lemma, we aim to artificially construct a workload decomposition satisfying the constraints of the optimization formulation. If the error of this artificial decomposition is no larger than the upper bound, the exact optimal solution must render results with less error.
Recall that has a unique SVD decomposition such that is a diagonal matrix of size . We thus build a decomposition and , in which is the rank of the matrix . First, we will show such satisfies the constraints in Formula (LABEL:eqn:opt-problem). It is straightforward to show it satisfies the first constraint: .
Regarding the second constraint, since only contains orthogonal vectors, every column must have . By the norm triangle inequality, , and we obtain . Therefore, such must be a valid solution to the program.
The expected squared error of the artificial decomposition is at most
This proves that is an upper bound for the noise of our decomposition-based scheme.
In Corollary 3.4 in , Hardt and Talwar proved that any -differential privacy mechanism incurs expected squared error no less than used absolute error in the paper, which we change to squared error here. .
To prove the theorem, we investigate the ratio of the upper bound to the lower bound.
The last inequality holds due to the fact that when . Note that all the inequalities above are tight, and the equalities hold when , i.e. . Thus, we prove that the approximation factor of our decomposition scheme is .
When , the error has two parts. The first part is the noises due to the Laplace random variables. Using Lemma LABEL:lem:decomp_error, the incurred error is at most .
The second part of the error is the structural error on the results. The expected squared error is measured as
The inequality is due to the Cauchy Schwartz inequality. By linearity of expectation, the expected squared errors can be simply summed up. This leads to the conclusion of the theorem.
We use to denote the optimal solution of the Lagrangian sub-problem in iteration. Note the following inequality on the sequence of the Lagrangian subproblems:
Based on the above inequality, we derive the following inequality:
The third equality holds because of the Lagrangian multiplier update rule:
Since is always bounded, we conclude that
Appendix B Implementation of the Matrix Mechanism
In , Li et al. propose the Matrix Mechanism. The core of their method is finding a matrix to minimize the following the program.
Li et al. present a complicated implementation that may not be practical due to its high complexity. We hereby present a simpler and more efficient solution to their optimization program. Here denotes the maximum norm of column vectors of , therefore . Since ( has full column rank), we let , and reformulate Formula (1) as the following semidefinite programming problem:
is given by , where are the th eigenvalue and eigenvector of , respectively. Calculating the second term is relatively straightforward. Since it is smooth, its gradient can be computed as . However, calculating the first term is harder since it is non-smooth. Fortunately, inspired by , we can still use a logarithmic and exponential function to approximate this term.
Approximate the maximum positive number: Since is positive definite, . we let and define:
We then have . If we set , this becomes a uniform -approximation of with a Lipschitz continuous gradient with constant . The gradient of the objective function with respect to can be computed as:
To mitigate the problems with large numbers, using the property of the logarithmic and exponential functions, we can rewrite Eq.(2) and Eq. (3) as:
This formulation allows us to run the non-monotone projected gradient descent algorithm and iteratively improves the result.