betaFeedback

WorksMathematics

On Inherent Privacy of Posterior Sampling: A Unified Rényi-Divergence Framework

Abstract

Differential Privacy (DP) provides a rigorous framework for quantifying privacy guarantees. While most methods achieve DP by injecting calibrated random noise, the intrinsic randomness of certain procedures such as sampling can yield DP guarantees ``for free''. In this work, we develop a unified Rényi divergence framework to characterize the inherent DP guarantees of sampling from a Bayesian posterior distribution. We show that the privacy loss incurred by One-Posterior-Sampling (OPS) is governed by posterior exponential moments of the single-record log-likelihood ratio, and establish explicit DP guarantees under uniformly bounded, sub-Gaussian, or sub-exponential tail regimes. We apply the framework to representative Bayesian models, including categorical likelihoods with arbitrary priors, Gaussian-Gaussian conjugate pair, generalized linear models from the exponential family and linear regression with Gaussian likelihood, both with Gaussian priors on the regression coefficients. Our results elucidate sample size, model structure, neighboring relations in DP (bounded or unbounded), and how prior if applicable, jointly determine the inherent DP guarantees of OPS. Furthermore, our results recover the existing DP guarantees for OPS as special cases – often with tighter privacy loss bounds – and substantially broaden the class of Bayesian models for which the inherent DP guarantees of OPS can be rigorously characterized.

Introduction

Background and Motivation. Differential Privacy (DP) has emerged as the gold standard for providing rigorous privacy guarantees when releasing information from sensitive databases since its introduction in 2006 [1 b]. By bounding the change in a randomized algorithm’s output distribution induced by any single individual’s data, classical DP notion ensures that no individual can exert a disproportionate influence on the outcome. However, the worst-case nature of pure DP can be overly conservative for practical applications. This has motivated several influential relaxations that enable more refined privacy accounting, such as Rényi DP [3], zero-concentrated DP [4], Gaussian DP [5], among others.

While a target DP level is typically achieved by explicitly injecting calibrated noise – a paradigm underpinning most DP methods – many learning and analytical procedures are intrinsically stochastic. Accounting for the privacy protection provided by such inherent stochasticity would potentially help meet DP requirements while reducing, or even eliminating, the need for external perturbation, thereby better preserving model utility. Bayesian posterior sampling naturally falls into this category and offers a principled setting for exploiting this form of “free” privacy. In particular, a single posterior draw θ∗\theta^* defines a complete randomized predictor or synthetic-data generator; any number of predictions or synthetic records computed from θ∗\theta^* inherits its privacy guarantee by post-processing, without composition.

Despite growing interest in Bayesian methods under DP, existing guarantees for One-Posterior-Sampling (OPS) remain limited (see Related Work): many require uniformly bounded likelihood ratios, bounded sample or parameter spaces, or modified (pseudo-)posterior mechanisms; or yield loose privacy loss bounds. Recent work on posterior sampling under contamination and pseudo-posterior mechanisms shows that this problem remains active and practically relevant. We revisit OPS and develop sharper DP guarantees under weaker and more broadly applicable conditions.

Our Contributions.

  • We establish an exact characterization of the Rényi divergence between the posteriors formulated over two neighboring datasets, showing that the privacy loss of OPS is fully determined by two specific exponential moments of the single-record log-likelihood ratio.

  • We derive explicit DP guarantees for OPS under three log-likelihood ratio regimes: uniformly bounded, sub-Gaussian, and sub-exponential. These results recover existing OPS DP guarantees as special cases and are compatible with various DP notions.

  • We apply the framework to a broader class of Bayesian models than previously studied. The resulting bounds show how the prior, sample size, model structure, and neighboring relation jointly determine the inherent DP guarantees of OPS; in particular, under unbounded neighboring, the two directions of the Rényi divergence can differ even in their range of finite orders.

Related Work. Chaudhuri and Mishra [2006] initiated the idea that random sampling itself can provide DP guarantees. Building on this insight, Li et al. [2012] showed that random sampling before kk-anonymization [8] yields approximate DP. Subsequent work has mainly followed two directions: 1) studying DP guarantee induced by algorithmic randomness, including uncertainty and noise in control systems [9] and stochastic generative models such as GANs [10]; 2) studying the privacy amplification effect, where subsampling randomness amplifies the privacy guarantees of a base mechanism. Foundational results include Balle et al. [2018] and survey by Steinke [2022], with recent extensions to multistage sampling schemes [13].

Privacy guarantees from posterior sampling in the Bayesian framework have also garnered significant research attention, especially for OPS. Early work Mir [2013], Dimitrakakis et al. [2014, 2017], Wang et al. [2015] established pure DP guarantees for general OPS by assuming uniformly bounded log-likelihood ratio between neighboring datasets – an assumption that is often too restrictive. The resulting DP guarantees scale with the assumed uniform bound and can be conservative due to triangle-inequality-based arguments. Subsequent work examined OPS in specific Bayesian models, including discrete Bayesian networks [18] and exponential family models with conjugate priors [19]. The work most closely related to ours is Geumlek et al. [2017], which studies OPS under Rényi DP [3], but is limited to exponential family and Bayesian logistic regression. In contrast, our work develops a unified Rényi DP characterization for OPS that applies beyond these settings, and recover their results as special cases.

Beyond OPS, intrinsic DP guarantees have also been studied for related posterior-sampling-based inference procedures, including collapsed Gibbs sampling for latent Dirichlet allocation [21, 22] and stochastic gradient MCMC [23]. Related directions include combining OPS with β\beta divergences to obtain bounded sensitivity [24], per-instance DP analyses for linear regression [25, 26], and posterior sampling under contamination models without boundedness assumptions [27]. Our work differs by focusing on unmodified OPS and deriving sharper privacy-loss guarantees under weaker assumptions.

Preliminaries

Definition 1 (Differential Privacy (DP)). [1] A randomized mechanism M\mathcal{M} is said to satisfy (ϵ,δ)(\epsilon,\delta)-DP if for all pairs of neighboring datasets (Y,Y′)(\mathbf{Y},\mathbf{Y}') differing by one record, denoted by d(Y,Y′)=1d(\mathbf{Y},\mathbf{Y}')=1, and for all subsets S⊆image⁡(M)\mathcal{S}\subseteq\operatorname{image}(\mathcal{M}), it holds that

Pr⁡(M(Y)∈S)≤eϵPr⁡(M(Y′)∈S)+δ.(1)\Pr(\mathcal{M}(\mathbf{Y})\in\mathcal{S})\le e^{\epsilon}\Pr(\mathcal{M}(\mathbf{Y}')\in\mathcal{S})+\delta. \tag*{(1)}

d(Y,Y′)=1d(\mathbf{Y},\mathbf{Y}')=1 refers to either bounded neighboring [28], where Y\mathbf{Y} becomes Y′\mathbf{Y}' by substituting exactly one record, or unbounded neighboring, where Y\mathbf{Y} becomes Y′\mathbf{Y}' by adding or removing a single record. ε>0\varepsilon> 0 and δ≥0\delta\ge0 in Eq. (1) are privacy loss parameters, with smaller values indicating stronger privacy protection. When δ=0\delta= 0, (ε,δ)(\varepsilon, \delta)-DP becomes pure ε\varepsilon-DP.

DP can also be characterized using a privacy loss random variable that quantifies the privacy loss incurred by releasing a particular output (Definition 2).

Definition 2 (Privacy Loss Random Variable). [4, 29] For a randomized mechanism M\mathcal{M}, let o∈image⁡(M)o \in\operatorname{image}(\mathcal{M}) be any potential output of M\mathcal{M} and let X0,X1∈X\mathrm{X}_0, \mathrm{X}_1 \in\mathcal{X} be two inputs. The privacy loss random variable L\mathcal{L} associated with releasing oo is defined as

LM(X0)∥M(X1)(o)=log⁡(Pr⁡(M(X0)=o)Pr⁡(M(X1)=o)).(2)\mathcal{L}_{\mathcal{M}(\mathrm{X}_0)\Vert\mathcal{M}(\mathrm{X}_1)}(o)=\log\left(\frac{\Pr(\mathcal{M}(\mathrm{X}_0)=o)}{\Pr(\mathcal{M}(\mathrm{X}_1)=o)}\right). \tag*{(2)}

For any two neighboring datasets Y\mathrm{Y} and Y′\mathrm{Y}', a mechanism M\mathcal{M} satisfies pure ε\varepsilon-DP if and only if Pr⁡(LM(Y)∥M(Y′)>ε)=0\Pr(\mathcal{L}_{\mathcal{M}(\mathrm{Y})\Vert\mathcal{M}(\mathrm{Y}')}> \varepsilon)=0, whereas (ε,δ)(\varepsilon,\delta)-DP is equivalent, up to a small loss in parameters, to the requirement that Pr⁡(LM(Y)∥M(Y′)>ε)≤δ\Pr(\mathcal{L}_{\mathcal{M}(\mathrm{Y})\Vert\mathcal{M}(\mathrm{Y}')}> \varepsilon)\leq\delta. A relaxation of DP based on the Rényi divergence is:

Definition 3 (Rényi Differential Privacy (RDP)). [3] A randomized mechanism M\mathcal{M} is said to have (α,ε)(\alpha,\varepsilon)-RDP if for all pairs of neighboring datasets Y,Y′\mathrm{Y}, \mathrm{Y}', it holds that

Dα(M(Y)∥M(Y′))≤ε,(3)D_{\alpha}(\mathcal{M}(\mathrm{Y})\Vert\mathcal{M}(\mathrm{Y}'))\leq\varepsilon, \tag*{(3)}

where Dα(P∥Q)D_{\alpha}(P\Vert Q) is the Rényi divergence [30] of order α>1\alpha>1 between distributions P,QP,Q:

Dα(P∥Q)=(α−1)−1log⁡Ex∼Q(P/Q)α=(α−1)−1log⁡Ex∼P(P/Q)α−1.(4)D_{\alpha}(P\Vert Q)=(\alpha-1)^{-1}\log\mathbb{E}_{x\sim Q}(P/Q)^{\alpha}=(\alpha-1)^{-1}\log\mathbb{E}_{x\sim P}(P/Q)^{\alpha-1}. \tag*{(4)}

Beyond defining RDP, Rényi divergence is also linked to several popular DP notions, such as (ε,δ)(\varepsilon,\delta)-DP, ρ\rho zero-concentrated DP (zCDP), and Gaussian DP (GDP), in the sense that they can be expressed via Rényi divergence. The following proposition summarizes these relationships.

Proposition 1 (Relations between Rényi divergence and DP notions). Let M\mathcal{M} be a randomized mechanism, and Y,Y′\mathrm{Y},\mathrm{Y}' be any pair of neighboring datasets satisfying d(Y,Y′)=1d(\mathrm{Y},\mathrm{Y}')=1. Then,

  • M\mathcal{M} is of ε\varepsilon-DP if and only if D∞(M(Y)∥M(Y′))≤εD_{\infty}(\mathcal{M}(\mathrm{Y})\Vert\mathcal{M}(\mathrm{Y}'))\leq\varepsilon [3].1

  • M\mathcal{M} is of ρ\rho-zCDP if and only if ∀α∈(1,∞)\forall\alpha\in(1,\infty), Dα(M(Y)∥M(Y′))≤ραD_{\alpha}(\mathcal{M}(\mathrm{Y})\Vert\mathcal{M}(\mathrm{Y}'))\leq\rho\alpha [4].

  • If M\mathcal{M} is of (α,ε)(\alpha,\varepsilon)-RDP, it is also of (ε+(α−1)−1log⁡1/δ,δ)(\varepsilon+(\alpha-1)^{-1}\log1/\delta,\delta)-DP for ∀ 0<δ<1\forall\ 0<\delta<1 [3].

  • If M\mathcal{M} is of ρ\rho-zCDP, it is also of 2ρ\sqrt{2\rho}-GDP. If M\mathcal{M} is of μ\mu-GDP, it is also of μ2/2\mu^2/2-zCDP [5].

A Unified Rényi Framework for Privacy Loss from Posterior Sampling

We develop a unified Rényi-divergence framework for characterizing the inherent privacy loss of posterior sampling, based on a decomposition of the privacy loss random variable between the posterior distributions formulated over two neighboring datasets.

Privacy Loss Decomposition for Neighboring Posteriors

Let y∈Y\mathbf{y}\in\mathcal{Y} denote a single observation, its distribution is p(y∣θ)p(\mathbf{y}\mid\theta) with parameter θ∈Θ\theta\in\Theta, and π(θ)\pi(\theta) is the prior distribution. Given a dataset Y={yi}i=1n\mathbf{Y}=\{\mathbf{y}_i\}_{i=1}^{n} and assuming independence across the nn observations, the posterior distribution of θ\theta is

π(θ∣Y)=π(θ)∏i=1np(yi∣θ)∫∏i=1np(yi∣θ)π(θ)dθ=π(θ)ℓ(θ;Y)p(Y),(5)\pi(\theta\mid\mathbf{Y})=\frac{\pi(\theta)\prod_{i=1}^{n}p(\mathbf{y}_i\mid\theta)}{\int\prod_{i=1}^{n}p(\mathbf{y}_i\mid\theta)\pi(\theta)d\theta}=\frac{\pi(\theta)\ell(\theta;\mathbf{Y})}{p(\mathbf{Y})}, \tag*{(5)}

where ℓ(θ;Y)≜∏i=1np(yi∣θ)\ell(\theta;\mathbf{Y})\triangleq\prod_{i=1}^{n}p(\mathbf{y}_i\mid\theta) denotes the likelihood function and p(Y)=∫ℓ(θ;Y)π(θ)dθp(\mathbf{Y})=\int\ell(\theta;\mathbf{Y})\pi(\theta)d\theta is the normalizing constant. Consider any pair of neighboring datasets d(Y,Y′)=1d(\mathbf{Y},\mathbf{Y}')=1 with corresponding posterior distributions, π(θ∣Y)\pi(\theta\mid\mathbf{Y}) and π(θ∣Y′)\pi(\theta\mid\mathbf{Y}'), which we refer to as neighboring posteriors. The privacy loss random variable c(θ)c(\theta) associated with releasing one posterior sample θ\theta is

c(θ)=log⁡(π(θ∣Y)π(θ∣Y′))=log⁡(π(θ)ℓ(θ;Y)p(Y)⋅p(Y′)π(θ)ℓ(θ;Y′))per Eq. (5)c(\theta)=\log\left(\frac{\pi(\theta\mid\mathbf{Y})}{\pi(\theta\mid\mathbf{Y}')}\right)=\log\left(\frac{\cancel{\pi(\theta)}\ell(\theta;\mathbf{Y})}{p(\mathbf{Y})}\cdot\frac{p(\mathbf{Y}')}{\cancel{\pi(\theta)}\ell(\theta;\mathbf{Y}')}\right)\quad\text{per Eq. (5)}
=log⁡(ℓ(θ;Y)ℓ(θ;Y′))+log⁡(p(Y′)p(Y))=c1(θ)+c2.(6)= \log\left(\frac{\ell(\theta;Y)}{\ell(\theta;Y')}\right) + \log\left(\frac{p(Y')}{p(Y)}\right) = c_1(\theta) + c_2. \tag*{(6)}

Here, c1(θ)c_1(\theta) is the pointwise log-likelihood ratio evaluated at θ\theta, while c2c_2 represents the marginal log-likelihood ratio obtained after integrating out θ\theta. c1(θ)c_1(\theta) and c2c_2 are related; in particular, c2c_2 can be expressed as the logarithm of an exponential moment of c1(θ)c_1(\theta) under the posterior π(θ∣Y)\pi(\theta\mid Y). This relation is formalized in Lemma 2, with the proof is provided in Appendix A.1.

Lemma 2 (Marginal-Pointwise identity). c2=log⁡Eθ∼π(θ∣Y)[exp⁡(−c1(θ))]c_2 = \log\mathbb{E}_{\theta\sim\pi(\theta\mid Y)}[\exp(-c_1(\theta))]. Specifically, if there exist finite constants a,b∈Ra,b \in\mathbb{R} with a<ba < b such that c1(θ)∈[a,b]c_1(\theta) \in[a,b] for ∀θ∈Θ\forall\theta\in\Theta, then c2∈[−b,−a]c_2 \in[-b,-a].

Rényi Divergence Characterization

Building on the decomposition in Eq. (6), we establish an exact expression for the Rényi divergence of any order α>1\alpha> 1 between neighboring posteriors in Theorem 3. The proof is provided in Appendix A.2.

References

  1. [1]Cynthia Dwork, Krishnaram Kenthapadi, Frank McSherry, Ilya Mironov, and Moni Naor. Our data, ourselves: Privacy via distributed noise generation. In Annual international conference on the theory and applications of cryptographic techniques, pages 486–503. Springer, 2006a.
  2. [3]Ilya Mironov. Rényi differential privacy. In 2017 IEEE 30th Computer Security Foundations Symposium (CSF), pages 263–275. IEEE, 2017.
  3. [4]Mark Bun and Thomas Steinke. Concentrated differential privacy: Simplifications, extensions, and lower bounds. In Theory of Cryptography Conference, pages 635–658, 2016.arxiv.org/abs/1605.02065
  4. [5]Jinshuo Dong, Aaron Roth, and Weijie J Su. Gaussian differential privacy. Journal of the Royal Statistical Society Series B: Statistical Methodology, 84(1):3–37, 2022.arxiv.org/abs/1905.02383
  5. [8]Latanya Sweeney. k-anonymity: A model for protecting privacy. International Journal of Uncertainty, Fuzziness and Knowledge-Based Systems, 10(05):557–570, 2002.DOI
  6. [9]Jairo Giraldo, Alvaro Cardenas, and Murat Kant​arcioglu. Security and privacy trade-offs in cps by leveraging inherent differential privacy. In 2017 IEEE Conference on Control Technology and Applications (CCTA), pages 1313–1318. IEEE, 2017.DOI
  7. [10]Zinan Lin, Vyas Sekar, and Giulia Fanti. On the privacy properties of gan-generated samples. In International Conference on Artificial Intelligence and Statistics, pages 1522–1530. PMLR, 2021.arxiv.org/abs/2206.01349
  8. [13]Xingyuan Zhao, Ruyu Zhou, and Fang Liu. Enhancing trade-offs in privacy, utility, and computational efficiency through multistage sampling technique (must). IEEE Transactions on Privacy, 2024.arxiv.org/abs/2312.13389
  9. [15]Christos Dimitrakakis, Blaine Nelson, Aikaterini Mitrokotsa, and Benjamin IP Rubinstein. Robust and private bayesian inference. In International Conference on Algorithmic Learning Theory, pages 291–305. Springer, 2014.DOI
  10. [16]Christos Dimitrakakis, Blaine Nelson, Zuhe Zhang, Aikaterini Mitrokotsa, and Benjamin IP Rubinstein. Differential privacy for bayesian inference through posterior sampling. Journal of machine learning research, 18(11):1–39, 2017.
  11. [17]Yu-Xiang Wang, Stephen Fienberg, and Alex Smola. Privacy for free: Posterior sampling and stochastic gradient monte carlo. In International Conference on Machine Learning, pages 2493–2502, 2015.DOI
  12. [18]Zuhe Zhang, Benjamin IP Rubinstein, and Christos Dimitrakakis. On the differential privacy of bayesian inference. In Thirtieth AAAI Conference on Artificial Intelligence, 2016.
  13. [19]James Foulds, Joseph Geumlek, Max Welling, and Kamalika Chaudhuri. On the theory and practice of privacy-preserving bayesian data analysis. pages 227–236, 2016.
  14. [20]Joseph Geumlek, Shuang Song, and Kamalika Chaudhuri. Renyi differential privacy mechanisms for posterior sampling. In Advances in Neural Information Processing Systems, pages 5289–5298, 2017.arxiv.org/abs/1710.00892
  15. [21]Fangyuan Zhao, Xuebin Ren, Shusen Yang, Qing Han, Peng Zhao, and Xinyi Yang. Latent dirichlet allocation model training with differential privacy. IEEE Transactions on Information Forensics and Security, 16:1290–1305, 2020.arxiv.org/abs/2010.04391
  16. [22]David M Blei, Andrew Y Ng, and Michael I Jordan. Latent dirichlet allocation. Journal of machine Learning research, 3(Jan):993–1022, 2003.
  17. [23]Bai Li, Changyou Chen, Hao Liu, and Lawrence Carin. On connecting stochastic gradient mcmc and differential privacy. In The 22nd International Conference on Artificial Intelligence and Statistics, pages 557–566. PMLR, 2019.
  18. [24]Jack E Jewson, Sahra Ghalebikesabi, and Chris C Holmes. Differentially private statistical inference through β-divergence one posterior sampling. Advances in Neural Information Processing Systems, 36:76974–77001, 2023.
  19. [25]Kentaro Minami, Hiromi Arai, Issei Sato, and Hiroshi Nakagawa. Differential privacy without sensitivity. In NIPS, pages 956–964, 2016.
  20. [26]Yu-Xiang Wang. Per-instance differential privacy. Journal of Privacy and Confidentiality, 9(1), 2019.
  21. [27]Shenggang Hu, Louis Aslett, Hongsheng Dai, Murray Pollock, and Gareth O Roberts. Privacy guarantees in posterior sampling under contamination. arXiv preprint arXiv:2403.07772, 2024.
  22. [28]Daniel Kifer and Ashwin Machanavajihala. No free lunch in data privacy. In Proceedings of the 2011 ACM SIGMOD International Conference on Management of Data, SIGMOD ’11, page 193–204, New York, NY, USA, 2011. Association for Computing Machinery. ISBN 9781450306614. doi: 10.1145/1989323.1989345. URL https://doi.org/10.1145/1989323.1989345.
  23. [29]David Sommer, Sebastian Meiser, and Esfandiar Mohammadi. Privacy loss classes: The central limit theorem in differential privacy. Cryptology ePrint Archive, 2018.
  24. [30]Alfréd Rényi. On measures of entropy and information. In Proceedings of the fourth Berkeley symposium on mathematical statistics and probability, volume 1: contributions to the theory of statistics, volume 4, pages 547–562. University of California Press, 1961.
  25. [31]Sivakanth Gopi, Yin Tat Lee, and Daogao Liu. Private convex optimization via exponential mechanism. In Conference on Learning Theory, pages 1948–1989. PMLR, 2022.arxiv.org/abs/2203.00263
  26. [32]Moshe Shaked and J George Shanthikumar. Stochastic orders. Springer, 2007.
  27. [33]Michel Ledoux. The concentration of measure phenomenon. Number 89. American Mathematical Soc., 2001.

Paper details

vlnc:W_fypjdg5n
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 1

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

Not recorded for this paper

View statement
Looking for related papers…
Contents