---
title: Interactive Differential Privacy
url: https://www.emergentmind.com/topics/interactive-differential-privacy
type: topic
---

# Interactive Differential Privacy

Searching arXiv for recent and foundational papers on interactive differential privacy to ground the encyclopedia entry.
Interactive differential privacy denotes differential privacy guarantees for protocols in which outputs are produced through interaction rather than a single release. In one formulation, an interactive differentially private mechanism is an algorithm that allows an analyst to adaptively ask queries about a sensitive dataset, and privacy is defined over the analyst’s full transcript or view: for adjacent datasets \(x,x'\), every adversary \(A\), and every measurable set \(T\), \(\Pr[A\,M(x)\in T] \le e^\varepsilon \Pr[A\,M(x')\in T] + \delta\) [2105.14427]. In local differential privacy, interaction means that each individual’s randomized response may depend not only on their own data \(X_i\), but also on previously released sanitized messages \(Z_1,\dots,Z_{i-1}\), yielding sequentially interactive or fully interactive protocols [2003.04773, 1904.03564]. The topic therefore spans adaptive query answering, local privacy protocols for estimation and testing, concurrent composition under adversarial interleaving, and system-level verification and deployment [0911.1813, 1101.2819].

## 1. Formal models and problem formulations

A basic distinction is between non-interactive and interactive mechanisms. In the non-interactive setting, a mechanism is a one-shot randomized algorithm that takes a dataset and outputs a single result. In the interactive setting, queries arrive online, one by one, and an adversary may adaptively choose the next query based on previous answers. This distinction appears both in query-release systems for a centralized dataset and in local differential privacy, where each user privatizes their own datum before release [0911.1813, 2003.04773].

For repeated-query systems, the starting point is the standard differential privacy condition
\[
\Pr[Y(D)\in S] \le e^\epsilon \Pr[Y(D')\in S] + \delta
\]
for neighboring datasets \(D,D'\) differing in one record. The query sensitivity
\[
\Delta Q = \max_{neighboring\ D,D'} \|Q(D)-Q(D')\|_2
\]
determines how much noise must be added. In frequent-query settings, every query answered with differential privacy consumes privacy budget, and the cost accumulates even if the same query is asked repeatedly; this can lead to privacy budget exhaustion and higher privacy leakage risk [2006.04693].

In local differential privacy, the privacy constraint is imposed on each local randomization channel. One standard form is
\[
\sup_{A}\sup_{x,x':\,d_0(x,x')=1}\frac{Q(A\mid x)}{Q(A\mid x')}\le e^\alpha,
\]
with \(\alpha\in(0,1]\). A channel is \(\alpha\)-sequentially interactive if it factorizes as
\[
Q(A\mid x_1,\dots,x_n) = \int \cdots \int Q_n(dz_n\mid x_n,z_{1:n-1})\cdots Q_1(dz_1\mid x_1),
\]
and each conditional mechanism satisfies the same local privacy bound uniformly over previous sanitized outputs. This is a strict superset of non-interactive channels, which have product form \(\prod_i Q_i(A_i\mid x_i)\) [2003.04773].

A further distinction arises within local protocols. Sequentially interactive protocols may query users adaptively in sequence, but they cannot return to previously queried users. Fully interactive protocols may revisit users and query them multiple times adaptively. The separation between these models becomes central when interactivity is studied as a statistical resource rather than only as an implementation detail [1904.03564].

## 2. Adaptive query answering and interactive mechanisms

A canonical interactive mechanism is the median mechanism for arbitrary predicate queries that arrive online. For a database \(D\) over a finite domain \(X\), predicate queries have the form \(f_i:X\to\{0,1\}\) with
\[
f_i(D)=\frac{|\{x\in D : f_i(x)=1\}|}{|D|}.
\]
The mechanism distinguishes between easy queries, whose answers are already essentially determined by previous hard-query answers, and hard queries, which still reveal genuinely new information. It maintains a set \(C_i\) of databases consistent with the hard-query answers seen so far; easy queries are answered by the median answer over \(C_{i-1}\), while hard queries are answered with Laplace noise and then shrink the candidate set. A central combinatorial fact is that among any set of \(k\) predicate queries, only
\[
O(\log k \log |X|)
\]
of them are truly hard, yielding privacy cost polylogarithmic in \(k\) rather than linear in \(k\). Relative to fixed accuracy and privacy constraints, this mechanism can answer exponentially more queries than the Laplace mechanism, and the paper also gives an efficient implementation running in time polynomial in the number of queries, the database size, and the domain size [0911.1813].

Another fundamental interactive tool is the Sparse Vector Technique (SVT). In the interactive setting, queries arrive one-by-one and are not all known in advance. SVT is useful because it lets the analyst keep testing incoming queries against a threshold while spending privacy budget mainly on the few queries that are positive. The basic mechanism perturbs the threshold \(T\) by Laplace noise \(\rho\), perturbs each query answer \(q_i(D)\) by noise \(\nu_i\), compares \(q_i(D)+\nu_i\) to \(T+\rho\), and stops after at most \(c\) positive answers. The authors’ correct variant uses threshold noise scale \(\rho=\Delta/\epsilon_1\), query noise scale \(\nu_i=2c\Delta/\epsilon_2\), and total privacy budget \(\epsilon=\epsilon_1+\epsilon_2\), proving \(\epsilon\)-DP. A major contribution of the same work is a systematic demonstration that many published SVT variants are not private, due to errors such as refreshing threshold noise unnecessarily, outputting noisy query values instead of \(\top/\bot\), omitting the cutoff \(c\), or using too little query noise. The paper also derives an optimal budget allocation rule
\[
\epsilon_1:\epsilon_2 = 1:(2c)^{2/3},
\]
with \(1:c^{2/3}\) in the monotonic-query setting, and argues that in the non-interactive top-\(c\) selection setting the Exponential Mechanism is more accurate than SVT [1603.01699].

A more recent systems-oriented mechanism addresses interactive or repeated queries through reuse of prior noisy outputs. The proposed blockchain-based differential privacy cost management system uses blockchain as a trusted, tamper-proof ledger to store metadata about past differentially private queries and their noisy outputs. The system stores and checks the query type, standard deviation \(\sigma\) of the Gaussian noise used, noisy response, privacy cost, remaining privacy budget, and query ID. Its reuse workflow is comparison-based: it computes the required noise level for the new query, searches the blockchain for an existing record with the same query type and same standard deviation, returns the same previously released noisy result if found, and otherwise either fully reuses previous noise or adds only the extra noise needed to reach the desired privacy level. The demo is implemented as an interactive decentralized web application using Bootstrap, Ethereum, MetaMask, Web3.js, Truffle Suite, Provable, MongoDB, and Heroku. The reported finding is qualitative: leveraging blockchain to store and compare noisy outputs significantly decreases the total privacy cost accumulated, but the paper also states that the system is a demo or prototype and does not fully analyze optimal privacy accounting, formal utility guarantees, or the full security and performance overhead of blockchain storage [2006.04693].

## 3. Statistical gains from sequential interaction under local privacy

A major line of work studies whether interaction changes minimax rates under local differential privacy. For estimating the quadratic functional
\[
D(f)=\int_0^1 f(x)^2\,dx,
\]
with \(f\) in a Besov ball \(\mathcal P_s^{pq}(L)\), the non-interactive and sequentially interactive minimax risks differ sharply. Up to logarithmic factors, the non-interactive rate is
\[
\mathcal M_{n,\alpha}^{(NI)}(\mathcal P_s^{pq}(L)) \asymp (n\alpha^2)^{-\frac{8s'}{4s'+3}} \;\vee\; (n\alpha^2)^{-1},
\]
with elbow at \(s'=\frac34\), whereas the sequentially interactive rate is
\[
\mathcal M_{n,\alpha}^{(SI)}(\mathcal P_s^{pq}(L)) \asymp (n\alpha^2)^{-\frac{4s'}{2s'+1}} \;\vee\; (n\alpha^2)^{-1},
\]
with elbow at \(s'=\frac12\). The interactive estimator uses a two-step scheme: the first half of the sample produces a rough private estimate \(\hat f_J^{(1)}\), and the second half privatizes a transformed statistic based on the linear functional \(f\mapsto \int_0^1 \hat f_J^{(1)}(x)f(x)\,dx\) through a binary randomized response mechanism. The paper emphasizes that this kind of improvement is not typical for many local DP estimation problems such as density estimation or linear functional estimation; here the nonlinear nature of \(D(f)\) makes interaction fundamentally beneficial [2003.04773].

The same phenomenon appears in goodness-of-fit testing for Hölder continuous densities under local differential privacy. For the testing problem \(H_0:f\equiv f_0\) versus \(H_1(\rho): \|f-f_0\|_1\ge \rho\), the non-interactive minimax separation radius behaves, up to logarithmic factors and tail terms, like
\[
|B|^{\frac{3\beta+3}{4\beta+3}}(n\alpha^2)^{-\frac{2\beta}{4\beta+3}},
\]
whereas the sequentially interactive radius improves to
\[
|B|^{\frac{\beta+1}{2\beta+1}}(n\alpha^2)^{-\frac{\beta}{2\beta+1}}.
\]
The non-interactive test uses privatized kernelized statistics and a tail test based on randomized response. The sequentially interactive procedure uses three blocks: the first estimates cell masses \(p(j)\), the second uses the first block’s estimate to privatize later data adaptively, and the third performs the same tail test. The paper states that the second block is adapted to the estimated sign and magnitude of the discrepancy \(p(j)-p_0(j)\), which yields a better signal-to-noise balance [2107.02439].

Interactive local privacy has also been shown to improve nonparametric spectral density estimation for a centered stationary Gaussian time series. For estimating a covariance coefficient \(\sigma_j\), the proposed two-stage interactive mechanism first privatizes truncated raw data with Laplace noise and then forms products \(W_{i,j}=X_i\cdot Z_{i-j}\) using previously released private values \(Z_{i-j}\). Under \(\|\sigma\|_2^2\le M_1\), the resulting risk bound is
\[
\sup_{\sigma:\|\sigma\|_2^2\le M_1}\mathbb E|\hat\sigma_j-\sigma_j|^2 \le c\left\{\frac1n\vee \frac{\log^{4+4\delta}(n)}{n\alpha^2}\right\},
\]
while the paper proves the non-interactive lower bound
\[
\inf_{\hat\sigma_j}\sup_{Q\in\mathcal Q_\alpha^{NI}}\sup_{\|\sigma\|_2^2\le M_1} \mathbb E\bigl[|\hat\sigma_j-\sigma_j|^2\bigr] \ge \frac{C}{n\alpha^4}.
\]
For pointwise spectral density estimation, the pointwise rates depend on \(n\alpha^2\) instead of \(n\alpha^4\). The paper stresses that this is especially relevant for correlated time series, where past privatized data contain information about the dependence structure and can be leveraged by a sequentially interactive mechanism [2504.00919].

## 4. Limits of interaction and model-dependent separations

Interactive differential privacy does not yield uniform improvements across all problems or all notions of interaction. A central result in local privacy is that the gap between fully interactive and sequentially interactive protocols is controlled by compositionality. A protocol is \(k\)-compositionally private if, for every user \(i\), with probability \(1\) over the transcript,
\[
\sum_{t:\, i_t = i} \epsilon_t \le k\epsilon.
\]
If a protocol is fully interactive and \(k\)-compositional, then it can be transformed into a sequentially interactive protocol with sample complexity \(O(k)\cdot n\). The paper gives the explicit bounds
\[
\mathbb{E}[N] \le n\left(\frac{2e^\epsilon\cdot \epsilon}{1-e^{-\epsilon}}k + 1\right),
\]
and, with high probability,
\[
N = O\!\left(nk + \sqrt{nk\log\frac{1}{\delta}}\right).
\]
The reduction is also tight up to polylogarithmic factors: there exists a family of problems such that, for every \(k\), there is a fully interactive \(k\)-compositional protocol solving the problem, while no sequentially interactive protocol can solve the problem without at least a \(\tilde \Omega(k)\) factor more examples [1904.03564].

The same paper shows that for a broad class of compound hypothesis testing problems, a simple noninteractive test is optimal among the class of all possibly fully interactive tests. In simple hypothesis testing between \(P_0\) and \(P_1\), the folklore noninteractive local test succeeds with
\[
n = \Omega\!\left(\frac{1}{\epsilon^2\alpha^2}\right)
\]
samples, and this scaling is proved optimal even among fully interactive tests. The compound version extends this noninteractive optimality to convex and compact hypothesis classes separated in total variation [1904.03564].

These results align with a more specific observation from quadratic-functional estimation: interaction is statistically valuable for some nonlinear estimation tasks, but such gains are not typical for many local DP estimation problems such as density estimation or linear functional estimation [2003.04773]. A plausible implication is that the relevance of interaction is highly task-dependent: the presence of nonlinear structure, dependence structure, or non-compositional reuse opportunities is what makes interaction materially useful.

## 5. Concurrent composition and adaptive privacy accounting

Interactive differential privacy raises a distinct composition question: what happens when several interactive mechanisms are used concurrently and an adversary can arbitrarily interleave queries across them? In the basic concurrent composition model, the adversary may query \(M_0\), then \(M_1\), then return to \(M_0\), with each query depending on responses from all mechanisms. For pure differential privacy, if interactive mechanisms \(M_0,\dots,M_{k-1}\) are each \((\varepsilon_i,0)\)-DP, then their concurrent composition is
\[
\left(\sum_{i=0}^{k-1}\varepsilon_i,\; 0\right)\text{-DP}.
\]
The proof reduces any pure interactive \((\varepsilon,0)\)-DP mechanism to randomized response:
\[
RR_{\varepsilon}(b)=
\begin{cases}
b & \text{with prob. } \frac{e^\varepsilon}{1+e^\varepsilon},\\[4pt]
\neg b & \text{with prob. } \frac{1}{1+e^\varepsilon}.
\end{cases}
\]
For approximate DP, the same paper proves the weaker bound
\[
\left(\sum_{i=0}^{k-1}\varepsilon_i,\; \delta_g\right)\text{-DP},
\qquad
\delta_g = \sum_{i=0}^{k-1} e^{\sum_{j=0}^{i-1}\varepsilon_j}\,\delta_i
\le e^{\sum_{i=0}^{k-1}\varepsilon_i}\sum_{i=0}^{k-1}\delta_i,
\]
and explicitly leaves the gap to optimal non-interactive composition as an open problem [2105.14427].

Subsequent work significantly generalizes this picture. One line proves optimal concurrent composition theorems for approximate DP, Rényi DP, zero-concentrated DP, and truncated concentrated DP, with the main message that the adversary gains no advantage by interleaving its queries to independently running mechanisms. For Rényi DP, if each \(\mathcal M_i\) is \((\alpha,\eta_i)\)-RDP, then
\[
\mathrm{COMP}(\mathcal{M}_1,\dots,\mathcal{M}_k) \text{ is } (\alpha,\sum_{i=1}^k \eta_i)\text{-RDP}.
\]
For approximate DP, the concurrent guarantee matches the optimal sequential composition theorem. Another line proves the more general statement that any composition theorem that holds for non-interactive mechanisms also holds for concurrent composition of interactive mechanisms whenever privacy is measured in the hypothesis-testing framework of \(f\)-DP. In that framework, \((\varepsilon,\delta)\)-DP corresponds to the trade-off function
\[
f_{\varepsilon,\delta}=\max\{0,\;1-\delta-e^\varepsilon\alpha,\; e^{-\varepsilon}(1-\delta-\alpha)\},
\]
and every interactive \(f\)-DP mechanism can be simulated by interactive post-processing of a non-interactive \(f\)-DP mechanism [2207.09397, 2207.08335].

The adaptive-accounting layer extends these results further. In a more general model, the adversary may interleave queries to existing interactive mechanisms, create new ones on the fly, and choose the privacy-loss parameter of each new mechanism adaptively based on the history so far. The main theorem states that every valid privacy filter and odometer for noninteractive mechanisms extends to the concurrent composition of interactive mechanisms if privacy loss is measured using \((\epsilon,\delta)\)-DP, \(f\)-DP, or Rényi DP of fixed order. For RDP, the filter and odometer take the especially simple form
\[
F(\epsilon_1,\epsilon_2,\dots;\epsilon)=\mathbb I\!\left(\sum_i \epsilon_i\le \epsilon\right),
\qquad
G(\epsilon_1,\dots,\epsilon_k)=\sum_{i=1}^k \epsilon_i.
\]
An important operational detail is that in the interactive odometer or filter setting, the privacy budget is paid at the launch of each new interactive mechanism, not at each query to an already-running mechanism [2309.05901].

## 6. Verification, systems, and unresolved issues

Interactive differential privacy has also been formalized at the system level as differential noninterference. One probabilistic automaton model represents an interactive system as a probabilistic labeled transition system \(L=\langle S,I,O,\trans\rangle\) with input partition \(I=D\uplus Q\), output partition \(O=R\uplus H\), and examiner-observable actions
\[
E = Q \cup R.
\]
The interactive privacy condition compares observable trace prefixes under input sequences differing by insertion of one data point. If inputs differ by \(n\) data points, the privacy loss scales to \(n\epsilon\). The main proof method is an \(\epsilon\)-unwinding family, a relation family indexed by remaining privacy budget, together with an approximate lifting condition between successor distributions. A refinement theorem shows that replacing an abstract hidden transition by a subroutine automaton preserving the same terminal-state distribution does not change observable behavior. In the PINQ-like example, bounded memory causes extra leakage, so the privacy loss becomes \(2t\epsilon\) rather than \(t\epsilon\) [1101.2819].

This verification perspective complements deployment-oriented work. The adaptive-accounting results explicitly connect to OpenDP and Tumult Analytics, where interactive mechanisms are core abstractions. OpenDP uses queryables, represented as interactive state machines; an odometer is a queryable that can be asked for current privacy loss, and a filter is a queryable that refuses further queries if budget would be exceeded. Tumult restricts interleaving queries across queryables to avoid concurrent composition. The theoretical results suggest that these restrictions are unnecessary for privacy, and the stated practical benefits include less code complexity, better auditability, more exploratory workflows, the ability to interleave queries across multiple analyses, and support for parallel composition without forcing users to artificially serialize their code [2309.05901].

Several caveats remain important. The blockchain-based repeated-query system is presented as a demo or prototype, not a fully quantified theoretical system; it does not fully analyze optimal privacy accounting under reuse, formal utility guarantees, full security and performance overhead of blockchain storage, or the exact quantification of privacy reduction. The formal-verification framework is sound but not complete, applies only to a restricted class of relation families, assumes finite state space, and does not synthesize candidate relations automatically [2006.04693, 1101.2819]. More broadly, the literature shows both that interactivity can be strictly beneficial and that it can be “free” under concurrent composition. These are distinct claims: the first concerns statistical or operational power, while the second concerns privacy accounting under composition. The current body of work suggests that interactive differential privacy is best understood not as a single technique, but as a family of models and mechanisms whose significance depends on whether the objective is adaptive query answering, locally private inference, concurrent composition, or verifiable system design.

Source: https://www.emergentmind.com/topics/interactive-differential-privacy