Manuscript Offprint
arXiv:2611.05038The Power of Interaction in Locally Edge-Private Subgraph Counting
Abstract
We study (non-induced) subgraph counting under interactive local edge differential privacy (LEDP). Given a fixed pattern graph with vertices, edges, and connected components, our goal is to approximately count its copies in an arbitrary -vertex undirected graph while preserving edge privacy.
We give two complementary accuracy guarantees. First, for every , we give Linear Noise Cancellation (LNC), a two-round -LEDP algorithm with additive error and root mean square error both on every -vertex graph. For fixed sufficiently small , this improves the optimal noninteractive additive error for triangles by a factor of and gives the same improvement in worst-case root mean square error for all cliques on at least three vertices. To our knowledge, this is the first separation between interactive and noninteractive LEDP subgraph counting, showing that a single additional round can improve worst-case accuracy polynomially.
Second, we determine how accuracy improves when the graph has maximum degree at most a public bound . Our Predict and Correct (PC) framework gives an -round -LEDP algorithm with additive error . For connected patterns, its polynomial factor is , giving sublinear error on constant-degree graphs at fixed privacy. We prove matching lower bounds in and , up to logarithmic factors at fixed privacy, even under arbitrary interaction and approximate privacy with sufficiently small . At , the lower bound also establishes the optimality of LNC's dependence on .
†University of Science and Technology of China. Emails: xianchen@mail.ustc.edu.cn, ppeng@ustc.edu.cn.
Contents
1 Introduction 1 1.1 Our Results 2 1.2 Technical Overview 4 1.2.1 LNC: Canceling Linear Randomization Error 4 1.2.2 PC: Exploiting a Degree Bound for Triangles 5 1.2.3 PC: Extending to Arbitrary Patterns 7 1.2.4 PC: From Approximate to Pure Privacy 10 1.2.5 Lower Bounds via Private Gap Testing 11 1.3 Related Work 12 1.4 Organization 13
2 Preliminaries 13 2.1 Graph-Theoretic Notation and Tools 13 2.2 Linear Algebra 15 2.3 Probabilistic and Optimization Tools 15 2.4 Differential Privacy 16
3 LNC: The General Upper Bound 18
4 PC: The Degree-Dependent Upper Bound 21 4.1 The Counting Algorithm 21 4.1.1 Homomorphisms and Weighted Counts 22 4.1.2 Guarantees for Edge Replacements 22 4.1.3 Block Elimination and Count Preservation 25 4.1.4 Analysis of the Counting Algorithm 25 4.2 Center and Correction Procedures 27 4.2.1 Estimating a Correction 27 4.2.2 Constructing a Public Center 36 4.3 Pure Privacy 43 4.3.1 The Mechanism and the Counting Algorithm 43 4.3.2 Proof of the Linear Query Guarantee 48
5 The Degree-Dependent Lower Bound 55
AI methodology 58
References 62
In applications involving sensitive relational data, the usefulness of these statistics must be balanced against the privacy risks of releasing them. Differential privacy provides a formal framework for releasing such statistics while protecting information about individual relationships or participants [DMNS06]. Two modeling choices are fundamental. In the central model, a trusted curator collects the graph and releases private statistics. Although the release is protected, participants must still entrust their original data to the curator. This requirement can be undesirable when the graph is distributed across participants who are unwilling to disclose their relationships to a central party. The local model removes the need for such trust: participants randomize their reports before sharing them with an untrusted server. Each participant reports information about its own connections, and the server combines these reports to estimate global network statistics [KLN 11].
Independently of this trust model, one must decide what information the privacy guarantee protects. Edge privacy protects the presence or absence of a single relationship, whereas node privacy protects a participant's entire set of relationships [HLMJ09]. Node privacy provides a stronger guarantee, but can also entail a greater loss of accuracy [KNRS13]. When individual relationships are the intended unit of protection, edge privacy is a natural choice and may allow more accurate estimates of aggregate network statistics [HLMJ09, RSWZ26a]. It has also been extensively studied in private graph analysis, including subgraph counting in the local model [HLMJ09, KRSY14, QYY 17, DLR 22, ELRS25].
Within the local model, interaction introduces another important distinction. In the noninteractive setting, each participant sends a randomized report based on its local information, without adapting to other participants' reports. In the interactive setting, the server may use earlier reports to determine subsequent queries, and participants may respond over multiple rounds [KLN 11]. For graph data, the server can send summaries of earlier reports back to the participants, who can combine this information with their own neighbor lists to produce further randomized reports [IMC21, IMC22a]. This capability is particularly relevant to subgraph counting, where the relationships forming a pattern are distributed across several participants. By allowing participants to combine their local information with privatized information from others, interaction may improve the accuracy of subgraph count estimates [IMC21, IMC22a, ELRS25].
We focus on understanding the power of interaction for subgraph counting under local edge differential privacy (LEDP). Given a fixed pattern graph with vertices, edges, and connected components, our goal is to design interactive local algorithms that approximately estimate the number of its non-induced copies in an arbitrary -vertex undirected graph while preserving edge privacy.
Previous work provides noninteractive algorithms for counting pattern that output an estimate with additive error and success probability at least 2/3. The same bound holds for root mean square error (RMSE; see Equation (3)), which is optimal in its dependence on for cliques on at least three vertices when is a sufficiently small constant [SPHH25]. However, whether interaction can improve the worst-case dependence on has remained unresolved, even for triangle counting. On general -vertex graphs, previous triangle-counting algorithms achieve additive error both with and without interaction [IMC22a, ELRS25, HSS25b]. Although this rate is optimal in the noninteractive setting, the known lower bound for interactive algorithms is only [ELRS25]. This leaves a polynomial gap between the upper and lower bounds, and motivates the question of whether interaction can improve the exponent of in the worst-case error for arbitrary fixed patterns.
We resolve this question with a two-round LEDP algorithm, which we call Linear Noise Cancellation (LNC), for every fixed pattern. For triangles and fixed sufficiently small , LNC improves the optimal noninteractive additive error by a factor of , with success probability at least 2/3. Its RMSE guarantee yields the same separation in worst-case RMSE for all cliques on at least three vertices. Our lower bound shows that even arbitrarily many rounds cannot improve the resulting exponent of .
These results characterize the optimal worst-case accuracy over all -vertex graphs. A finer question is how the accuracy achievable under interaction depends on structural properties of the input graph beyond its size. Many real-world networks are sparse [CNM04]. Worst-case upper and lower bounds expressed only in terms of do not reveal how achievable accuracy varies with the structural properties of the input graph. For example, constant-degree graphs contain only triangles, so even an optimal unrestricted-graph error bound of order at fixed privacy can exceed the entire range of possible counts.
We therefore consider the maximum degree as a natural additional parameter for refining accuracy guarantees, building on an extensive line of research on degree-dependent bounds for private subgraph counting. This includes algorithms and error analyses for stars and triangles [IMC21, IMC22a], four-cycles [GZL+26], odd cycles [HSS25b], and acyclic patterns, including paths and trees [HWD26]. These results demonstrate the benefits of exploiting graph structure, but do not determine the optimal joint dependence on and for arbitrary fixed patterns under unrestricted interaction. Although degree-dependent lower bounds are known for some patterns in the noninteractive setting [IMC21], they do not resolve this interactive question. We therefore seek matching upper and lower bounds parameterized jointly by and . For fixed privacy parameters, our second algorithm Predict and Correct (PC) achieves the optimal polynomial dependence on both parameters, up to logarithmic factors, while retaining privacy on all input graphs.
1.1 Our Results
For a fixed pattern graph , we refer to the problem of estimating the number of non-induced copies of in an input graph as -counting. We measure privacy using -LEDP (see Definition 2.13 for the formal definition), which limits how much the distribution of the complete interaction transcript can change when a single edge is added or removed. The case corresponds to pure -LEDP. Throughout, these privacy guarantees hold on all input graphs. We first obtain a two-round -LEDP algorithm LNC for subgraph counting with the following error guarantee.
Theorem 1.1. For any fixed pattern graph with vertices and edges, and any , there is a two-round -LEDP algorithm LNC (Algorithm 1) for -counting with additive error with probability at least 2/3. Its RMSE satisfies the same bound.
For comparison, any noninteractive -LEDP algorithm for triangle counting with success probability at least 2/3 must incur worst-case additive error for fixed sufficiently small [ELRS25].
| Pattern | Prior Results | Our Results | ||
|---|---|---|---|---|
| Additive Error | Rounds | Additive Error | Rounds | |
| Triangle C₃ | 2 | 3 | ||
| Four-cycle C₄ | 2 | 4 | ||
| Odd cycles Cₖ | 3 | k+2 | ||
| Paths Pₖ | k-1 | k+1 | ||
| Trees Tₖ | k+1-L | k+1 | ||
Table 1: Comparison of additive-error bounds under pure -LEDP on -vertex graphs of maximum degree at most , for fixed and , with success probability at least 2/3. Here denotes the number of leaves in the tree row. The notation suppresses logarithmic factors. For a uniform comparison, we report general error upper bounds for each pattern family in terms of and , upper-bounding finer structural parameters where necessary. Our error bounds and round counts follow from Theorem 1.2 and Corollary 4.12.
LNC therefore improves the optimal noninteractive additive error by a factor of . More generally, for -vertex cliques with , the noninteractive worst-case RMSE is for fixed sufficiently small [SPHH25]. LNC's additional RMSE guarantee gives the same factor- separation under this measure, where the worst case is over all -vertex input graphs. To our knowledge, this is the first proved separation between interactive and noninteractive LEDP subgraph counting in worst-case accuracy.
Our second algorithm PC exploits a degree bound to obtain a more refined accuracy guarantee for every fixed pattern. Table 1 compares our bounds with prior results. Our algorithms substantially improve the polynomial dependence on and while using only a constant number of rounds for each fixed pattern .
Theorem 1.2. For any fixed pattern graph with vertices, edges and connected components, and any , there is an -round -LEDP algorithm PC. On every -vertex graph of maximum degree at most , it solves -counting with additive error
with probability at least 2/3. Its worst-case running time is .
For certain patterns, PC uses fewer rounds without changing the error bound. If is connected and deleting a vertex leaves a star centered at , it uses at most rounds. A related improvement applies when has a vertex adjacent to every other vertex (Corollary 4.12). In particular, triangles require only three rounds and four-cycles only four.
We complement PC's accuracy guarantee with a lower bound matching its polynomial dependence on and , even under arbitrary interaction. We state an informal version for fixed . Theorem 5.3 gives the precise parameter conditions and the full dependence on for any .
Theorem 1.3 (Informal). Fix a pattern graph with vertices, connected components and at least one edge, and . Let be a sufficiently large absolute constant. For all sufficiently large , every integer
satisfying and , and every , any -LEDP algorithm for -counting with success probability at least 2/3 must incur worst-case additive error on -vertex graphs of maximum degree at most , even under arbitrary interaction.
Together, Theorems 1.2 and 1.3 show that PC achieves optimal polynomial dependence on both and , up to logarithmic factors at fixed privacy. Taking gives a lower bound of , so LNC (Theorem 1.1) also achieves the optimal dependence on under arbitrary interaction, using only two rounds and without a logarithmic loss.
1.2 Technical Overview
Our two upper bounds use interaction to control the error in public edge reports. In Section 1.2.1, we explain how Linear Noise Cancellation (LNC) uses a second round to cancel terms linear in the reporting noise, achieving the optimal dependence on . We then turn to Predict and Correct (PC), which exploits a degree bound by learning public predictions that reduce the coefficients of the noise. For ease of exposition, Section 1.2.2 introduces this idea through triangle counting; Section 1.2.3 extends it to arbitrary patterns and explains how random hashing and signs are used to estimate the corrections. Section 1.2.4 presents a pure-DP replacement for the Gaussian releases used by PC, preserving its accuracy guarantee. Finally, Section 1.2.5 outlines the matching lower bounds under arbitrary interaction. Throughout this overview, we consider -counting on an input graph with vertex set and its adjacency matrix .
1.2.1 LNC: Canceling Linear Randomization Error
A natural starting point is to estimate the subgraph count using a noisy adjacency matrix. In the first round, each potential edge is assigned to one of its endpoints, which reports its adjacency bit using standard debiased randomized response (Lemma 2.17). The server assembles these unbiased edge estimates into a symmetric public matrix with zero diagonal. We write to separate the true adjacency information from the randomization noise. This noise has mean zero and is independent across distinct unordered vertex pairs. Substituting these edge estimates into the counting formula gives the polynomial estimator
Here is an injective vertex map, is the unordered pair corresponding to edge , and is the number of automorphisms of . The polynomial gives the exact -count at and an unbiased estimate at . We expand into a sum of products of entries of and . In the part linear in , the coefficient of counts the ways to complete to a copy of using the other edges of . In a complete graph, these coefficients are of order for order pairs, so the linear terms alone contribute a variance of order at fixed privacy. This produces RMSE of order , exceeding the order we seek.
In the second round, we cancel the terms linear in by adding a correction for each potential edge , where denotes the derivative of with respect to (see (5)). Since depends only on public reports, the endpoint responsible for can compute this correction using its own adjacency bit. Each vertex releases the sum of its corrections with standard sensitivity-calibrated Laplace noise (Lemma 2.9). Each correction term has mean zero, so the estimator
obtained by adding the corrections from all vertices to the initial estimate remains unbiased for the exact -count , even after the final Laplace noise is added.
To see the effect of the correction, expand into products of entries of and . A product containing entries of appears once in the expansion of and is subtracted once by the correction associated with each of those entries. Its original coefficient is therefore multiplied by . Consequently, every term containing exactly one entry of disappears.
Every remaining error term contains entries of indexed by at least two distinct unordered vertex pairs, whose endpoints span vertices. Since entries indexed by distinct unordered pairs are independent and have mean zero, the expected product of two terms vanishes unless they contain exactly the same entries of . For each fixed configuration of these pairs, there are choices of their endpoints and extensions of each choice to an injective vertex map. Thus, for each , the number of pairs of terms that can contribute to the variance is at most
which is largest at . Accounting for the dependence on , the corrected estimator has variance . The Laplace noise needed to release the local corrections privately contributes at most the same order of variance, so the final estimator retains this bound. Thus LNC has RMSE and the same order of additive error, as proved in Section 3.
1.2.2 PC: Exploiting a Degree Bound for Triangles
LNC achieves the optimal dependence on , raising the natural question of whether its correction mechanism can also exploit a degree bound to achieve optimal dependence on both and .
For triangles, expanding gives products of entries of and , each containing at least two entries of . A term containing exactly two entries of contains only one adjacency entry. This restricts the vertex pair corresponding to the adjacency entry to one of the edges in , but leaves choices for the third vertex, since the noise is present even on nonedges. These terms, therefore, contribute variance , which gives RMSE of order that exceeds our target when is small compared with . Thus, directly incorporating the degree bound into LNC's analysis does not yield the desired accuracy.
This motivates constructing local estimates that make fuller use of the true adjacency information. For a candidate triangle on distinct vertices , vertex knows and and can form the local estimate , where is obtained using standard debiased randomized response. When these local estimates are summed, the coefficients of are proportional to the common-neighbor counts . PC aims to reduce these coefficients by learning public predictions and using them to construct more accurate correction estimates. These predictions are represented by a matrix , called a public center, whose entries are fractional predictions of the adjacency bits. To reflect the degree bound, we require to be symmetric with zero diagonal, entries in , and row sums at most .
PC replaces one edge factor of the ordered triangle count by and estimates the difference between the original and predicted counts. To see how the center controls accuracy, fix and consider estimating this difference using fresh randomized responses for the third edge. Ignoring the additional Laplace noise needed to release the local corrections privately, the additive estimation error is
After summing over , the reporting noise is weighted by the entries of , giving the variance bound conditional on , where is the Frobenius norm. The additional Laplace noise used to release these local estimates contributes total variance , keeping its error contribution within our target bound. This motivates learning a center satisfying .
Learning the center from private sketches. We learn the public center through two rounds of private linear queries. The procedure begins by compressing the adjacency rows using a standard Rademacher sketch [Ach03], represented by a public matrix with and independent uniform entries . In two rounds, the vertices release noisy rows of and then , giving
Here and are independent noise matrices from the standard Gaussian mechanism (Lemma 2.10), with privacy budgets allocated to ensure an overall -LEDP guarantee. The normalization of bounds the first query's sensitivity, while public norm checks control the second query's sensitivity. The server then chooses a public center by approximately minimizing over the centers satisfying the constraints above. The feasible centers form a bounded convex set defined by linear constraints; the public checks ensure that every row of and has polynomially bounded Euclidean norm. We can therefore minimize the convex quadratic objective to constant additive error in polynomial time using standard convex optimization tools, such as the ellipsoid method (Lemma 2.5).
To understand why the fitted center achieves the required prediction error bound, ignore the privacy noise momentarily: and are sketches of and , respectively. In this setting, , so minimizing the fitting error amounts to minimizing the norm of a sketch of the desired prediction residual. Reducing each released row to coordinates keeps the noise cost tied to , up to logarithmic factors. The main difficulty is to show that fitting these noisy sketches controls the prediction error in the original space. We establish a comparison that holds with high probability simultaneously for every feasible center , ensuring that it also applies to the center selected by the algorithm:
where the suppressed logarithmic factors depend on . Our proof exploits the degree bound: every residual row has -norm at most . We first use moment bounds to obtain simultaneous control over a finite family of sums of signed coordinate vectors, then extend the comparison to all feasible residual rows through an averaging argument. Finally, since and the true is an admissible center on the accuracy domain, the fitted center cannot have a substantially larger fitting error than . This bounds by . Substituting this bound into the uniform comparison yields the desired guarantee for .
Combining this two-round center construction with the correction gives a three-round algorithm for triangle counting. The randomized responses needed for the correction can be collected alongside the first center reports, and the parties release their local estimates in round three. The center construction currently provides approximate privacy through Gaussian noise. We first extend PC to arbitrary patterns, then explain how to obtain pure privacy in Section 1.2.4.
1.2.3 PC: Extending to Arbitrary Patterns
To extend PC to an arbitrary pattern , we first remove isolated vertices, restoring their contribution through a known combinatorial factor at the end. We then use the standard quotient-graph inversion formula (Lemma 2.1) to express the remaining pattern's non-induced copy count as a fixed linear combination of homomorphism counts of quotient graphs. A homomorphism preserves every pattern edge but may map distinct pattern vertices to the same input vertex. This linear combination preserves the asymptotic error bound for fixed , so we focus on homomorphism counting. This change of viewpoint serves two purposes: first, homomorphism counts factor over connected components, so we can estimate each component separately and control the error of their product using bounds on the component counts; second, allowing repeated images lets us combine local computations through interaction without enforcing distinctness across vertex assignments.
Consider a connected component of a quotient graph, with vertices, and suppose first that it has no cut vertex, meaning that deleting any one vertex leaves it connected. Such a graph forms a single block. PC organizes prediction and correction as a sequence of edge replacements. Each pattern edge contributes a factor to the homomorphism count, represented by a matrix . Initially, all these matrices equal ; as edges are processed, their factors are replaced by public centers. When replacing the factor on edge by , we estimate the difference between the counts before and after replacement. Each vertex assignment contributes a product of matrix entries, using on and the current factors on all other edges. Summing these products over all vertex assignments gives . Once every edge factor has been replaced, the server can evaluate the final public count; adding the estimated differences gives an estimate of the original homomorphism count.
The main challenge is estimating these differences with the desired degree dependence. For triangles, a vertex knows the two incident adjacency bits, and randomized response suffices to estimate the closing edge. Already for a four-cycle, the vertex opposite the reporting vertex lies outside its local view. Directly substituting randomized responses for the remaining edges leaves sums over images that are not restricted by true local adjacency bits; because randomized-response noise is present even on nonedges, these sums can introduce an extra factor of n in the variance. Learning a center must therefore be accompanied by a correction procedure that controls this remaining computation. Our construction combines interaction along a spanning tree with random hashing and signs.
Estimating corrections with hashing and signs. For a replacement on , choose a spanning tree of rooted at , then add the edge to obtain a spanning tree of rooted at . This makes the only tree child of , allowing us to first aggregate the contributions from at and then combine them with the edge factors incident to . We orient non-tree edges incident to away from , so that each party evaluates all factors incident to using its own adjacency row and public information when is mapped to it. The remaining non-tree edges can be oriented arbitrarily. We process the tree from leaves toward the root. For each possible image of a pattern vertex, the corresponding party combines its local edge factors with public reports summarizing the computations already performed at its children. For each non-tree edge directed from to , use independent uniform signs : the computation at multiplies the factor for a candidate image of by , and the computation at uses the same sign at its own image. Averaging over the signs removes contributions in which these two images disagree.
To control the size of the local sums, we use random hashing to distribute the possible images of each nonroot pattern vertex among buckets, independently across pattern vertices. For each pattern vertex and candidate image , party computes the contribution with mapped to , using its own edge factor rows and public information. For each tree child of , it sums the corresponding edge factor entries weighted by the child's public reports. For each outgoing non-tree edge of , it instead weights these entries by the random signs. Each sum ranges over candidate images of the other endpoint in the corresponding bucket. Party then multiplies these edge sums and the signs associated with incoming non-tree edges to form its local contribution.
These local values are normalized and clipped to control sensitivity, with Laplace noise added whenever a private release is needed. Each nonroot vertex uses the bucket containing its own image. At the root , each party uses the residual factor on and sums over all buckets; the server then aggregates these reports over all possible images of . The complete procedure is given in Algorithm 3.
The key to controlling the error in this computation is to avoid paying a factor of for every edge. Without hashing, normalizing each local edge sum by its worst-case bound would accumulate such factors, amplifying the privacy noise when these normalizations are undone. Hashing into buckets instead bounds all bucket sums by with high probability, so the local normalizations incur only logarithmic factors. Clipping keeps the queries bounded on all graphs and is inactive with high probability on bounded-degree graphs. It remains to account for the contributions discarded by hashing. In the noiseless, unclipped expansion, after averaging over the signs, an assignment survives exactly when the hash values associated with vertices other than all agree, which occurs with probability . Recovering the desired correction in expectation therefore requires a single multiplier . Up to logarithmic factors, the rescaling cost thus depends on the number of vertices rather than the number of edges. Hashing further allows us to run independent repetitions without a proportional increase in privacy noise: a public hash check ensures that a changed adjacency bit affects only coordinates of each internal report vector, and clipping bounds the change in each coordinate. Averaging these repetitions reduces the variance by a factor of , thereby reducing the estimation error.
Bounding the correction variance. To analyze the variance of our correction procedure, condition on the centers and extract the edge factors incident to , which do not depend on the fresh hashes, signs, or reporting noise. Summing over the image of gives a coefficient for each assignment of images to the neighbors of . For one repetition, write for the remaining random computation, including the hash indicators, signs, and internal reporting noise. Apart from deterministic rescaling and final scalar noise, the unclipped estimator is their weighted sum, whose variance satisfies
This separates the analysis into controlling the squared coefficients through the center and bounding the covariance of the remaining computation.
For the first factor , we express the coefficients as the entries of , extending the triangle residual . The matrix combines the factors on the edges incident to other than . Its rows correspond to images of , and its columns to assignments of images to the other neighbors . Each entry records their joint contribution. Multiplying by incorporates the residual edge and sums over the image of , so the first factor is precisely . The center construction extends accordingly: independently sketch the incident factors, multiply their sketch entries coordinate by coordinate with the appropriate normalization, and apply the same second linear query and convex fit. A similar analysis gives the required bound on the norm (Section 4.2.2).
To bound the remaining covariance term, we expand pairs of computations into auxiliary graphs. Our assumption that has no cut vertex ensures that is connected. This connectivity, together with sign matching and independence, guarantees that every component contributing to the covariance contains an image fixed by . We can therefore sum over the remaining images along a forest rooted at these fixed images, paying at most for each edge without introducing a free root with possible images. Combining this covariance bound with the center guarantee, and accounting for bucket scaling, averaging, and final scalar noise, yields the desired additive error for connected patterns without cut vertices (Section 4.2.1).
Handling cut vertices. It remains to handle connected patterns with cut vertices. In fact, the preceding correction analysis still applies whenever deleting the chosen endpoint preserves connectivity. However, both endpoints of an edge may be cut vertices, so neither can serve directly as the correction endpoint. To handle this case, we organize the replacements using the standard block-cut tree construction (Lemma 2.2). Root this tree at any block and process it from the leaves upward. A current leaf block meets the rest of the pattern only at its attachment vertex . Choosing the correction endpoint ensures that deleting preserves connectivity, as required by the correction procedure.
Once a leaf block is public, the server sums over the images of its vertices other than , obtaining a contribution that depends only on the image of . This contribution becomes a public vertex weight at , allowing the block to be removed before processing its parent. Homomorphism counting makes this elimination possible without tracking overlaps between the images of the removed and remaining vertices. We normalize each weight to lie in and keep track of the normalization factors separately. The weights then simply multiply the corresponding rows of and local computation values, preserving the center and correction guarantees (Section 4.1.3). Combining the component estimates, applying quotient-graph inversion, and restoring the isolated-vertex factor gives error .
Scheduling the reports. Although the replacements are sequential, their reporting rounds overlap. The first-round private sketches depend only on the adjacency rows and fresh public randomness, so they can all be collected together. Once the preceding centers are known, the server incorporates the public factors into the sketch for the next center, which is then learned in one further reporting round. Each correction runs alongside later center constructions. The homomorphism counts for the connected components of all quotient graphs are also estimated in parallel. For a component with edges, the th center is available by round , and its correction needs at most
further rounds. Every correction therefore finishes by round (Section 4.1.4). For some patterns, stopping the replacements early and using local reports for the remaining count gives fewer rounds (Corollary 4.12).
1.2.4 PC: From Approximate to Pure Privacy
PC's correction reports already satisfy pure privacy; the remaining obstacle is the Gaussian noise used to construct its public centers. A natural approach is to replace each Gaussian coordinate by independent Laplace noise. However, calibrating this noise to the sensitivity of the whole report can introduce an additional dependence on the sketch dimension, losing the degree-dependent accuracy established above. We therefore need a pure-private replacement that preserves the accuracy of these Gaussian reports.
Our key idea is to exploit the particular directions in which a center query can change. Each party holds a binary adjacency row and releases a noisy version of for a public matrix . Changing one bit shifts this query by a signed row . Pure privacy requires a uniform likelihood-ratio bound under these shifts. The Gaussian log-density has unbounded slopes in the tails, so rare outputs prevent such a bound. We refer to its negative log-density, up to an additive constant, as its potential. We modify this potential by bounding its slopes along all public sensitive directions, while preserving its quadratic form on a region containing almost all of the Gaussian probability mass.
More concretely, normalize the query and matrix by a public bound on the Euclidean row norms, and write . Let be a fixed fraction of the report's privacy budget. We restrict the slope vector to the set defined by and for every , and use the potential
where is the Gaussian noise standard deviation on this scale. Without the constraint , the maximizer is and the value is the Gaussian potential . The two potentials therefore agree whenever this maximizer is feasible. Meanwhile, the directional constraints give for every .
To construct a pure-private replacement for the Gaussian report, we use in place of the Gaussian quadratic potential and define a target density proportional to on a public cube. The cube contains all possible values of with a noise margin and is shared by all private inputs for fixed ; the final report is . The bound on ensures that, after normalization over the common cube, the density ratio under neighboring inputs is at most . To implement sampling efficiently with approximate evaluations of , we use the sampling framework of [BST14] and its extension to approximate function evaluations in [LL25]. These results give a small pointwise multiplicative sampling error, meaning that the ratio between the implemented and target densities is uniformly close to one at every output. We reserve enough privacy margin to accommodate this error, so that the implemented report also satisfies pure privacy (Algorithm 5).
We next show that the new reports remain close to their Gaussian counterparts, allowing PC to retain its accuracy guarantee. Choosing sufficiently large ensures that, for Gaussian noise , the unconstrained maximizer lies in with high probability. Thus agrees with the Gaussian quadratic potential on a region containing almost all of the Gaussian probability mass. On this region, the modified and Gaussian unnormalized densities agree. Their normalized densities may still differ because the modified tails change the total mass. We use the standard Gaussian isoperimetric inequality (Lemma 2.4) to bound this additional tail mass and the resulting change in normalization. Combining this bound with the errors from restriction to the public cube and approximate sampling gives a small total-variation distance between the pure and Gaussian reports.
We formalize the construction and analysis above in Lemma 4.11, proving that Gaussian releases of linear queries on binary data admit pure-private replacements with an explicit bound on total variation distance (see Equation (4)). Applying this result to each Gaussian release in PC converts its approximate-privacy guarantee to pure privacy. Choosing the error of each replacement sufficiently small keeps the final output distribution close to that of the Gaussian version, preserving its accuracy guarantee. The replacements also preserve the reporting schedule and can be implemented in worst-case polynomial time, yielding Theorem 1.2.
1.2.5 Lower Bounds via Private Gap Testing
A natural starting point is the triangle-counting reduction of [ELRS25] from private summation, where each party holds one bit and the goal is to estimate their sum under local differential privacy. Their construction encodes each private bit as the presence of an edge in a matching and connects all matching endpoints to a common set of public neighbors. Every present private edge creates the same number of triangles, and no triangle contains more than one private edge. The triangle count is therefore a known multiple of the bit sum, so an additive approximation to the triangle count can be rescaled into an additive approximation to the sum.
To adapt this construction to a degree bound, we use connected components of vertices each. Within each connected component, a public clique is joined to a disjoint set of vertices partitioned into pairs. Each private bit determines whether the edge between its corresponding pair is present. The sizes are chosen so that the maximum degree is at most d, while the construction encodes private bits. The public cliques allow us to extend each present private edge to copies of any fixed pattern H. The single-edge pattern is a special case, for which a private matching suffices.
For general , however, the count need not be a function of the bit sum. A copy may contain several private edges, and the total number of copies can depend on how the present private edges are distributed among the connected components of the constructed graph. Thus, the count need not have a fixed linear relation to the bit sum, so the rescaling used for triangles does not directly extend to general patterns.
We instead reduce from gap testing: distinguish the all-zero input from inputs containing at least ones. This requires only a lower bound on the increase over the count in the public graph obtained when all private edges are absent. Fix one edge of and map it to a present private edge. The other vertices of its component in can be mapped into the public clique in the connected component containing that private edge, while each remaining component of can be mapped into any public clique, with all images chosen to be distinct. This gives new copies using exactly that one private edge. These copies are distinct for different private edges, so for some , where is the public graph obtained when all bits are zero. Additional copies involving several private edges only increase this gap.
We prove that this gap-testing problem requires at fixed privacy and sufficiently small , even under arbitrary interaction (Lemma 5.2). Our proof compares the all-zero input with a random input consisting of independent Bernoulli bits whose expected sum is a sufficiently large constant multiple of r. Since the random input contains at least r ones with high probability, a gap-testing algorithm would also distinguish these two input distributions. Applying the local hypothesis-testing lower bound of [JMNR19] then yields the claimed bound on .
Finally, we reduce gap testing to -counting. Suppose an LEDP algorithm estimates the -count with additive error . Each party simulates the two vertices corresponding to its bit, and the server simulates the remaining public vertices. Since changing one bit changes exactly one edge, the reduction preserves privacy under arbitrary interaction. Comparing the counter's output with distinguishes the two testing cases whenever . The testing lower bound therefore yields , matching PC's polynomial dependence on and .
1.3 Related Work
LEDP subgraph counting. For stars, [IMC21] exploit the fact that each vertex can determine the number of copies centered at it from its own adjacency vector. Summing noisy versions of these local counts gives a one-round algorithm with RMSE for an -leaf star under a public degree bound . For triangles, their two-round algorithm combines true incident edges with randomized reports of the closing edge, achieving RMSE . The follow-up work [IMC22a] reduces communication by sampling edge reports and selectively downloading those needed for local computations. For triangle counting, [ELRS25] prove an noninteractive lower bound and an lower bound under arbitrary interaction, for fixed sufficiently small . They also give tight variance bounds for the debiased randomized response estimator. For a fixed pair of vertices on the same side of a bipartite graph, [HWZ+24] give a two-round unbiased estimator of their common-neighbor count with RMSE when the maximum degree is at most .
Subsequent work improves accuracy by exploiting graph structure and extends counting to more general patterns. For triangles and odd cycles, [HSS25b] order vertices by their noisy reported degrees, obtaining triangle RMSE , where is the degeneracy, the largest minimum degree among nonempty subgraphs. Further refinements of triangle estimation use more entries of the noisy adjacency matrix and tighter global sensitivity bounds [HWZ+25], compress edge reports through hashing [HSS25a], or combine randomized edge reports with a private vertex ordering that limits the number of later neighbors, giving error bounds in terms of degeneracy [MPSL25]. For arbitrary fixed patterns, [SPHH25] sum products of debiased edge reports, achieving noninteractive RMSE , with a matching noninteractive lower bound for cliques on at least three vertices and interactive lower bounds for certain cycles. To count trees, [HWD26] combine counts of smaller patterns over multiple rounds and assign each vertex of a random position in the pattern to enforce distinct images, obtaining additive error for trees on vertices. Their length-three walk estimator, combined with corrections for repeated vertices, also yields for the four-vertex path.
Interaction in local privacy. The study of [JMNR19] distinguishes local algorithms that contact each party once from those that may return to the same party, and proves hypothesis-testing lower bounds under arbitrary interaction. For pointer-chasing problems, in which each answer determines the next location to query, [JMR20] show that one additional round of interaction can exponentially reduce the sample complexity. [DF20] show that interaction can be necessary to achieve polynomial sample complexity in learning and stochastic convex optimization, and can improve estimation of a mean with few nonzero coordinates [ACST22].
Other privacy models. Central algorithms for counting triangles [NRS07] and other small patterns [KRSY14] calibrate noise to sensitivity bounds that adapt to the input graph. [CBP26] study subgraph counts in induced subgraphs selected by ranges of public vertex attributes, giving central algorithms and nearly matching lower bounds for general fixed patterns. Under node privacy, which protects a vertex together with all its incident edges, [BBDS13, KNRS13] control sensitivity through restrictions such as bounded degree, while [CZ13] give algorithms for general subgraph counting. Other decentralized models allow parties to observe edges beyond those incident to themselves or use a shuffler to hide the association between reports and their senders. The algorithms of [SXK⁺19] count subgraphs from extended local views, in which a party can observe edges beyond those incident to itself. In the shuffle model, a trusted shuffler hides the association between randomized reports and their senders. Using such reports about paths of length two, [IMC22b] estimate triangles and four-cycles; Fang and Yi [FY25] improve these estimates and also count paths of length three. More recently, [RSWZ26a] introduce local node privacy and give algorithms for degree statistics, and [RSWZ26b] give algorithms and lower bounds for subgraph counting in the noninteractive setting.
From approximate to pure privacy. The conversion of [BNS19] requires privacy under arbitrary input replacements, which would increase the noise scale and worsen our accuracy bounds. The more general purification method of [LWMW26] uses randomized post-processing on a bounded output domain, but its dependence on the output range and for -dimensional outputs do not directly preserve our accuracy guarantees as the sketch dimension grows. The Huber mechanism [WZK23] modifies Gaussian tails to obtain pure privacy, but its calibration to -sensitivity can also introduce additional dimension dependence.
1.4 Organization
Section 2 introduces the notation and background used throughout the paper. Section 3 presents and analyzes our two-round -LEDP algorithm LNC for counting arbitrary fixed patterns on general graphs. Section 4 develops our algorithm PC for counting arbitrary fixed patterns by learning public predictions and correcting their errors, and establishes its degree-dependent accuracy guarantee. Finally, Section 5 proves a lower bound that holds under arbitrary interaction.
2 Preliminaries
For any , we use to denote the clipping of to the interval , i.e., . Let denotes the positive part of .
2.1 Graph-Theoretic Notation and Tools
We only consider undirected simple graphs. Let denote the family of all graphs on vertex set with maximum degree at most . For a graph , write and .
Subgraph Counting. We retain for the input graph and for its adjacency matrix. For each , let denote the -th row of , which we refer to as the adjacency vector of vertex . Let denote the degree of vertex . Let be a fixed graph with connected components, vertices and edges. Let denote the automorphism group of , i.e., the set of all permutations of such that, for every , if and only if . We denote by the number of non-induced copies of contained in . Equivalently,
where the sum ranges over all injections from to .
Given an arbitrary matrix , we use the following shorthand notation. For an undirected edge , let so that always refers to the corresponding upper-triangular entry of . For an injection and an edge , let . For a set , let . For an edge set , let denote the set of vertices incident to the edges in . The operation vec lists all entries of a matrix or tensor in lexicographic order as a row vector.
Quotient Graphs and Möbius Inversion. For any graph , let denote the number of homomorphisms from to , i.e.,
where the maps need not be injective. Let denote the set of all partitions of whose parts are independent sets in . For each , let denote the quotient graph of under , whose vertices are the parts of , with two distinct parts adjacent if contains an edge between them.
Lemma 2.1 (Quotient Graph Inversion [Lov12]). Let and be two graphs. For each , let denote the set of connected components of . Then
where .
The second equation holds because homomorphisms on distinct connected components can be chosen independently; their images in need not be disjoint.
Block-Cut Tree. A vertex of a graph is called a cut vertex if removing increases the number of connected components. A block of is a maximal connected subgraph with no cut vertex. The block-cut tree of a connected graph is a tree whose vertices correspond to the blocks and cut vertices of , with a block adjacent to a cut vertex if and only if the block contains that vertex. The following lemma states that the block-cut tree can be constructed in linear time.
Lemma 2.2 (Construction of a Block-Cut Tree, [Tar72]). The block-cut tree of a connected graph can be constructed in time.
2.2 Linear Algebra
Let be the identity matrix and, for , let be the row vector with a one in coordinate and zeros elsewhere. For a row vector and , its norm is , and . For a matrix , its Frobenius norm is . Writing for its th row, we have . The Frobenius norm is also submultiplicative: for any two matrices and of compatible dimensions, we have . This follows by applying the Cauchy–Schwarz inequality to each pair consisting of a row of and a column of , and then summing over all entries.
2.3 Probabilistic and Optimization Tools
For a randomized estimate of on a fixed input graph , its root mean square error (RMSE) is
where the expectation is over the randomness of the estimator.
For two probability distributions and over a common domain with probability density functions and , respectively, their total variation distance is defined as
We will use the following probabilistic and optimization tools.
Lemma 2.3 (Gaussian Norm Tail Bound [Wai19, Example 2.28]). Let , where . Then, for every ,
Lemma 2.4 (Gaussian Isoperimetric Inequality [Bor75, Theorem 3.1, Eq. (3.1)]). Let and let be a nonempty closed set. Write for the standard Gaussian distribution function and . If for some , then, for every ,
Lemma 2.5 (Ellipsoid Method, Theorem 5.2.1 in [BTN21]). Let , with , be a closed convex set contained in the ball and containing a Euclidean ball of radius . Let be convex and differentiable. Suppose that we have access to a separation oracle that tests membership in and returns a separating hyperplane for any point outside , and an oracle that evaluates and its gradient at any point. Then, for every , the ellipsoid method returns a point satisfying and after at most
iterations. Each iteration uses at most one call to each oracle and additional arithmetic operations.
2.4 Differential Privacy
We begin with the standard definition of differential privacy.
Definition 2.6 (Differential Privacy [DMNS06]). Let and . A randomized algorithm is -differentially private (DP) if, for every pair of neighboring datasets and every measurable event in the output space of ,
When , we say that is -differentially private.
We will make use of the following properties of differential privacy.
Lemma 2.7 (Basic Composition Theorem [DMNS06]). If is an -DP algorithm for each , then their composition is -DP.
Lemma 2.8 (Post-processing Property [DMNS06]). Let be an -DP algorithm and let be an arbitrary function. Then, the function is also -DP.
A common way to release a function's value under differential privacy is to use noise scaled to its sensitivity. For , let denote the Laplace distribution with density , mean 0, and variance . Let denote the Gaussian distribution with mean and variance , and let denote the distribution of a row vector with independent coordinates drawn from .
Lemma 2.9 (Laplace Mechanism [DMNS06]). Let and , and suppose that has -sensitivity at most , that is, for every neighboring pair in . The mechanism that outputs , where are independent samples from , is -DP.
Lemma 2.10 (Gaussian Mechanism [DKM06]). Let and , and suppose that has -sensitivity at most , that is, for every neighboring pair in . For any , the mechanism that outputs , where are independent samples from , is -DP.
For graph datasets, we use the edge-neighboring relation. An algorithm satisfying differential privacy for every edge-neighboring graph pair is called edge DP.
Definition 2.11 (Edge-Neighboring Graphs). Two graphs and are edge-neighboring, denoted by , if they differ in exactly one edge.
Local Differential Privacy We first recall the local model [JMNR19]. Consider a distributed input , where party holds as its private input. A local algorithm interacts with the parties only through local randomizers, each of which is a DP algorithm and acts on the private input of a single party.
An interactive local algorithm proceeds in rounds. Let denote the transcript after round , with being the empty transcript. At round , based on , the algorithm may select a collection of parties, assign local randomizers to the selected parties, and specify the privacy parameters of these randomizers. Each selected party applies its assigned randomizer to its private input and sends the resulting message to the algorithm. The choices made at round may be arbitrary randomized functions of . The transcript records all information generated during the interaction, including the selected parties, the assigned local randomizers and privacy parameters, and the messages returned by the parties. We write for the complete transcript produced on input .
Definition 2.12 (Local Differential Privacy). Let and . A randomized local algorithm is -locally differentially private (LDP) if the randomized algorithm that outputs its complete transcript is -DP. When , we say that is -LDP.
We consider the local model for graph data [ELRS25]. For an -vertex graph , each vertex is treated as a party and holds its adjacency vector as its private input. In this setting, we use the edge-neighboring relation on distributed graph inputs.
Definition 2.13 (Local Edge Differential Privacy). Let and . A randomized local algorithm is -locally edge differentially private (LEDP) if the randomized algorithm that outputs its complete transcript is -DP with respect to the edge-neighboring relation. When , we say that is -LEDP.
In the graph setting, a local randomizer used by a party acts on its adjacency vector.
Definition 2.14 (Local Randomizer). Let and . An -local randomizer is a randomized mapping such that, for every pair differing in exactly one coordinate and every measurable set ,
When , we simply call an -local randomizer.
An LEDP algorithm is called noninteractive if it consists of a single round in which the local randomizers are fixed independently of any previous messages. Otherwise, it is called interactive. Unless stated otherwise, the LEDP algorithms considered in this paper may be fully interactive and may use an arbitrary number of rounds.
Many DP algorithms in the local model are built from the randomized response primitive of [War65, KLN11].
Definition 2.15 (Randomized Response). Given a privacy parameter and a -bit vector , the algorithm outputs a -bit vector, where each bit is randomized independently: for each , bit is with probability and otherwise.
Lemma 2.16. Randomized Response is an -local randomizer.
The standard method for debiasing randomized response is analyzed, e.g., in [ELRS25].
Lemma 2.17. Given output , the debiased estimate is -local randomizer and has expectation . Moreover, for any .
Input: Graph represented by adjacency row vectors , pattern graph with vertices and edges, and privacy budget .
Output: A private estimate of .
/* First round: randomized response */
1 [s] Let and ;
2 for to do
3
5 Upload to the server;
6 for to do
7
/* Second round: cancellation of the linear RR error */
9 for to do
10
11 Upload to the server;
12 ;
13 return .
Algorithm 1: Linear Noise Cancellation (LNC) for subgraph counting.
3 LNC: The General Upper Bound
In this section, we present the algorithm LNC for counting an arbitrary fixed subgraph in Algorithm 1. In the pseudocode, marks operations performed by the server, and marks operations performed by the party corresponding to vertex . Recall the counting polynomial defined in Equation (1), for which . For , its partial derivative is
Proof of Theorem 1.1. We prove LNC's privacy and accuracy guarantees separately.
Privacy. By Lemmas 2.8 and 2.16, the first round is -LEDP.
Now condition on an arbitrary fixed first-round transcript . Note that and for any . Then the sensitivity of satisfies
Then we can bound by bounding . Fix an edge . There are two possible ways to map its endpoints to and . Once these two images are fixed, the remaining
vertices of can be mapped injectively to the remaining vertices in ways. Summing over the choices of , the derivative contains at most monomials. Moreover, each monomial contains factors, each of absolute value at most , and hence has absolute value at most . Therefore,
By Lemma 2.9, the second round is -LEDP. Basic composition therefore gives -LEDP for LNC (Algorithm 1).
Accuracy. We first show that LNC outputs an unbiased estimator of .
Lemma 3.1. .
Proof. Note that . Then we have
Therefore,
where the second inequality follows from the fact that the Laplace distribution is unbiased and is independent of .
Then we bound the variance of .
Lemma 3.2. .
Proof. For every pair , define . Then we have and by Lemma 2.17.
Let and . Then .
We first consider . By Lemma 3.1 and , we have , and hence . Fix an injection . Its contribution to is
Then
where the inequality follows from the fact and the final equation follows from the fact that only the terms satisfying contribute to the sum due to .
We reorganize the summation according to the common image edge set . Since and induce injective maps on , for fixed , and , the sets and are uniquely determined by and . Hence,
where the last inequality follows from the fact . The range of in the last equation follows from the fact that 2 edges must contain at least 3 vertices.
It remains to bound . For each fixed set , the inner sum is at most . Indeed, for each of the injections and , there are at most ways to select and order the vertices of mapped to , while the images of the remaining vertices can be chosen in at most ways. Moreover, the number of possible choices for is at most . To see this, we first choose the vertices in in at most ways and then choose the edges of from among the possible edges on these vertices. Consequently,
Moreover, we can bound the term directly as
In conclusion, we have
By Lemmas 3.1 and 3.2, for every -vertex graph ,
which proves the RMSE guarantee uniformly over all input graphs. By applying Chebyshev's inequality and Lemma 3.1, we have
which, together with Lemma 3.2, establishes the claimed additive error bound.
4 PC: The Degree-Dependent Upper Bound
We now give the formal construction and analysis of PC. We first establish its -LEDP guarantee using Gaussian releases, then derive the pure-privacy guarantee in Theorem 1.2.
4.1 The Counting Algorithm
PC estimates the subgraph count by progressively replacing private edge factors with public centers and estimating the change at each replacement. Algorithm 2 describes the complete Gaussian version of PC, in which the public centers are learned from linear queries released with Gaussian noise. The following theorem gives its accuracy guarantee. Sections 4.1.1 to 4.1.3 explain the details of Algorithm 2, while Section 4.1.4 proves the theorem using the center and correction guarantees in Lemmas 4.2 and 4.3.
Theorem 4.1. For any fixed pattern graph with vertices, edges and connected components, and any and , on every -vertex graph with maximum degree at most , the Gaussian version of PC (Algorithm 2) is an -round -LEDP algorithm for H-counting with additive error
with probability at least 2/3. The algorithm runs in poly time.
4.1.1 Homomorphisms and Weighted Counts
Let be with its isolated vertices deleted. We use the standard quotient-graph inversion formula (Lemma 2.1), with and , to reduce -counting to homomorphism counting. Let be the connected components of . Since homomorphism counts factor over connected components, we estimate separately for each , obtaining an estimate . We then multiply these estimates within each quotient graph, combine the products with coefficients , and divide by .
Each copy of extends to a copy of H by choosing any of the remaining vertices. There are such choices, so we multiply the estimate of by this factor.
Fix one such connected component , and let K, initially equal to , be the current pattern. As in Section 1.2.3, PC progressively replaces the private edge factors by public centers and estimates the change at each replacement. Each public center belongs to the following convex set of fractional adjacency matrices:
Each edge of contributes a factor matrix , initially and subsequently the public center in used to replace it. Public vertex weights record contributions from parts of the pattern that have already been processed. Initially all weights are one. At any stage of the procedure, the current weighted count is
Initially this expression is . A public multiplier , initialized to one, records the normalization factors introduced when these weights are updated.
Before making any replacements, we root the block-cut tree of at any block (Lemma 2.2) and fix a postorder traversal of its blocks. For a nonroot block, let be the cut vertex corresponding to its parent in this tree. Completed nonroot blocks are removed from K, with their contributions absorbed into the weight at .
4.1.2 Guarantees for Edge Replacements
Within each block , we replace one private edge factor at a time. Under the postorder traversal, a nonroot block meets the rest of K only at . Since has no cut vertex, choosing an endpoint
Input: Graph , represented by adjacency row vectors , a target integer degree parameter , pattern graph with vertices and edges, and privacy parameters and .
Output: An estimate .
/* Public parameters and isolated vertices */
1 [s] if then
2 return 0;
3 [s] Let be with its isolated vertices deleted;
4 [s] if then
5 return ;
6 [s] Construct the set of all partitions of whose parts are independent sets in ;
7 [s] Let , and ;
/* Construct centers and start their corrections */
8 foreach in parallel do
9 [s] Form with one vertex per part of and one edge between two parts whenever an edge of connects them; let be the connected components of ;
10 foreach in parallel do
11 [s] Let , be a copy of ;
12 [s] Let for all and ;
13 [s] Let (marked private) for all ;
14 [s] Root the block-cut tree of at any block;
15 foreach block in postorder do
16 [s] if is not the root block then
17 Let be the cut vertex corresponding to its parent in the block-cut tree;
18 foreach do
19 [s] if is the root block then
20 Let be either endpoint of ;
21 else
22 Let be an endpoint of different from ;
23 [s] Let be the other endpoint of ;
24 Run Algorithm 4 with to obtain , allowing the first rounds of different calls to run in parallel;
25 [s] Let be a copy of , and let be a copy of ;
26 [s] Let , and mark as public;
27 Run Algorithm 3 with in parallel with subsequent calls to Algorithm 4;
28 [s] When Algorithm 3 returns , let , where is the value saved for this call;
29 [s] if is not the root block then
30 Compute for all by Equation (8);
31 Let for all ;
32 Let and delete from ;
33 [s] Wait until all calls to Algorithm 3 return and their contributions are added to ;
34 [s] Let , where is calculated by Equation (6);
35 [s] Let ;
36 return .
Algorithm 2: Predict and Correct (PC) with Gaussian center reports.
of the selected edge ensures that remains connected; when the root block is processed, either endpoint is valid. Each edge is processed exactly once because it belongs to a unique block.
Write for the graph obtained by deleting and its incident edges. The center procedure takes the public weight , the other factors incident to , and the private adjacency rows, and returns a public . Replace the factor on by and save the current factors, weights, and normalization multiplier from immediately before this replacement. Saving a private factor means recording its position as an factor, not publishing any private entries.
Let be the count before replacement minus the count after replacement. Thus is the same weighted sum with the factor on replaced by .
The center guarantee. Let the edges incident to other than be , and write for the edge factor on . Suppose of these factors are still private. Number them first, so for , whereas the other are public. For each , write for the saved public weight.
To express what the center predicts, collect all assignments of the other neighbors of in one matrix. Define a matrix whose row corresponds to mapping to and whose columns are indexed by maps . Its entry is the product of the weight and these edge contributions:
This matrix is used only to state and prove the guarantee; the center procedure need not construct it explicitly. The following lemma establishes privacy and bounds the prediction error , with the center construction and proof given in Section 4.2.2.
Lemma 4.2. For any , , constant , public weights , and incident edge factors satisfying the conditions above, Algorithm 4 is a two-round -LEDP algorithm, allowing the first rounds of different calls to run in parallel. On every -vertex graph with maximum degree at most , put , where is the adjacency matrix of and is the output of the algorithm, and we have
with probability at least . The algorithm runs in poly time.
The correction guarantee. Given a center satisfying Lemma 4.2, the following lemma bounds the additive error of the correction estimate ; the correction procedure and proof are given in Section 4.2.1.
Lemma 4.3 (One-edge correction). Fix the saved replacement with connected and marked private. For any , , constant , Algorithm 3 is an -LEDP algorithm. On every -vertex graph with maximum degree at most , if the saved center satisfies the error bound in Lemma 4.2, then
with probability at least , where and . The number of rounds used by Algorithm 3 is at most one plus the number of private edge factors in . The algorithm runs in poly time.
4.1.3 Block Elimination and Count Preservation
Eliminating a completed public block. Once all edges of a nonroot are public, its contribution can be absorbed into the weight at . Using the current public factors , compute
The factor is excluded from because it remains attached to in the rest of the pattern. For any fixed assignment of the remaining vertices with , summing over the images of the removed vertices contributes exactly . Thus multiplying by for each preserves the weighted count, with every vertex weight and edge factor included exactly once. All factors in this computation are public.
A spanning tree rooted at gives . Indeed, all vertex weights and edge entries lie in , so omitting the weights and the non-tree edge factors can only increase the sum. With the image of the root fixed to , sum over the images of the other vertices from the leaves upwards. Each leaf sum is at most , because the corresponding public matrix belongs to and thus has row sums at most . Removing the nonroot vertices in this way gives the bound.
Delete , replace with for every , and multiply the accumulated multiplier by . The product of and the remaining weighted count is unchanged, and all weights stay in . Thus the next center and correction calls still have the required inputs. The final block is evaluated entirely from public factors.
The count preserved throughout the procedure. For each component , Algorithm 2 builds by adding back the estimated difference from each edge replacement. Each estimate is multiplied by the saved multiplier to account for the normalization introduced by earlier block eliminations. Once all factors in the remaining pattern are public, the algorithm computes its weighted count exactly and adds to the accumulated corrections. Together, these terms account for the original homomorphism count: replacing each by the exact difference makes their sum equal to .
4.1.4 Analysis of the Counting Algorithm
Now we give the formal proof of Theorem 4.1.
Proof of Theorem 4.1. We prove these guarantees for the Gaussian version of PC.
Privacy. By Lemmas 4.2 and 4.3, Algorithms 3 and 4 are -LEDP and -LEDP, respectively. Each subroutine is invoked at most times. Since , and , their composition is -LEDP by Lemma 2.7. All remaining computations are postprocessing, so this Gaussian version of PC (Algorithm 2) is -LEDP by Lemma 2.8.
Accuracy. Fix . The cases and return exact answers, so assume and . We first consider without isolated vertices.
By Lemma 4.2, each center bound fails with probability at most . Conditional on all center bounds holding, each refined correction bound also fails with probability at most by Lemma 4.3. Since each procedure is invoked at most times, a union bound shows that all these bounds hold simultaneously with probability at least . We bound the estimation error on this event below.
Fix and a component , and write . For a correction saved when the current pattern is , its multiplier is , since each previously eliminated vertex contributes one factor of . The endpoint choice in Section 4.1.2 ensures that is connected. The refined correction bound therefore gives
where we used and the fact that depends only on the fixed pattern .
By Section 4.1.3, replacing each by its exact value recovers . Summing the scaled errors over at most replacements therefore gives the same bound for . A spanning tree of also gives : its root has possible images and each subsequent vertex has at most choices.
We next combine the component estimates. Let and . For , let . Writing each estimate as its true count plus its error and expanding the product gives
The last equation uses , , , and the fact that the number of summands depends only on . Identifying vertices cannot increase the number of vertices or connected components, so and . Since , we have
Applying Lemma 2.1 now gives the claimed error bound for , since , the coefficients and depend only on .
If has isolated vertices, Algorithm 2 multiplies the estimate for by
Removing each isolated vertex decreases both the vertex count and the component count by one. Thus this multiplier gives the same stated error bound in terms of and .
Rounds. Fix and . By Lemma 4.2, different calls of Algorithm 4 run their first rounds in parallel. Number its calls to Algorithm 4 in the edge-replacement order. The center returned by the th call is available by round . In the corresponding saved record, contains at most private edge factors. By Lemma 4.3, the correction needs at most further rounds and hence finishes by round
Since the iterations over and run in parallel and the final public computations require no additional reporting rounds, Algorithm 2 uses at most rounds.
Runtime. There are at most calls, where depends only on . By Lemmas 4.2 and 4.3 and the choices and , their total running time is . The sums in Equations (6) and (8) can each be evaluated by enumerating at most maps . Since is fixed, these computations also take polynomial time, which proves the stated running time.
4.2 Center and Correction Procedures
We now implement the local correction computation and the public-center construction described in Section 1.2.3.
4.2.1 Estimating a Correction
Fix a replacement record saved by PC, as specified in Lemma 4.3. The correction is the weighted count with factor on . The complete procedure is given in Algorithm 3, and we describe its steps below.
The computation tree. Choose a spanning tree of rooted at , attach through , and root the full tree at . The vertex is the only tree child of . Direct tree edges from parents to children. Direct non-tree edges incident to away from , and the others arbitrarily. Evaluate each edge at its initial endpoint.
Here are pattern vertices and are input vertices. For each , let and be the sets of non-tree edges directed out of and into , respectively, and let be its children in the chosen spanning tree.
Hashes, signs, and child reports. The algorithm performs repetitions. Each repetition uses fresh public randomness: independent uniform hash functions for and independent uniform signs for every non-tree edge and input vertex . Before computing the reports, the server performs the public hash check; if the check fails, the procedure returns zero.
For , let denote the report computed with fixed. Reports are computed in postorder, so the child reports are already public when needed. For a tree edge from to , the local computation at uses for each candidate image of . For a non-tree edge directed from to , it uses instead, while the computation at includes . Equivalently, each incoming non-tree edge contributes the factor at .
At , retain a candidate image of an outgoing neighbor only when ; the root sums over all buckets. Each party uses only its own factor rows and public inputs. If all outgoing factors are public, the server computes the report.
Local queries. Each local query multiplies the vertex weight and incoming signs by one normalized sum for each outgoing edge. The threshold , specified in Algorithm 3, bounds each factor row's bucket sum with high probability.
For one repetition, suppress its index. For any , and , compute
At the root , we use on . For any and , compute
Normalization and aggregation. In each repetition, for , evaluate and clip it to . If has a private outgoing edge, party adds independent Laplace noise of scale and divides the result by to obtain . Otherwise, the server uses the clipped value directly as .
Let be the number of vertices in with at least one private outgoing edge. Set to account for the normalizations in the edge sums and private reports. At the root , each party clips to and sums these values over all buckets and independent repetitions. Then it multiplies this sum by and releases the result with the final Laplace noise specified in Algorithm 3. The server sums these final reports to obtain .
Now we give the formal proof of Lemma 4.3.
Proof of Lemma 4.3. We prove the privacy, accuracy, rounds, and runtime guarantees separately.
Privacy. The hash check depends only on public randomness, so returning zero when it fails incurs no privacy loss. If it passes, fix the public hashes, signs, and preceding reports. Clipping and the hash check give the following sensitivity bounds on all graphs. At a private reporting vertex , party computes and clips it to for each repetition . These
Input: Graph , represented by adjacency row vectors , a saved replacement record with connected and marked private, a target integer degree parameter , privacy parameter and failure probability .
Output: An estimate of the count before replacement minus the count after replacement.
/* Public setup
1 [s] Let , and ;
2 [s] Choose a spanning tree of rooted at , attach through , and root the full tree at ;
3 [s] Direct tree edges from parents to children, non-tree edges incident to away from , and the remaining edges arbitrarily;
4 [s] Let count the vertices of with at least one private outgoing edge;
5 [s] Let , , , and ;
6 [s] For all ), draw independent uniform hash functions ;
7 [s] For all , non-tree edge of , and , draw independent uniform signs ;
8 [s] if for some and then
9 | return 0;
/* Remaining-pattern reports: process children before parents
10 foreach in postorder do
11 | if has at least one private outgoing edge then
12 | for to do
13 | [] For all , let using Equation (9);
14 | [] Upload to the server;
15 | else
16 | [s] For all , let using Equation (9);
/* One final round: apply the same product at
17 for to do
18 | [] Let using Equation (10);
19 | [] Upload to the server;
20 [s] return ;
Algorithm 3: PC's correction subroutine for one saved edge replacement.
clipped values form the vector . We bound the -sensitivity of this entire vector when one raw entry changes. For each outgoing private edge , this entry appears in the corresponding edge sum only when . The public hash check guarantees that this occurs in at most repetitions for each edge. Since there are at most outgoing private edges, at most coordinates of the vector can change. Clipping it to bounds the change in that coordinate by two. Before the division, each clipped query changes by at most two, so the vector sensitivity is at most . By Lemma 2.9, this release is -DP.
At , party computes for every and clips each value to . For each outgoing edge , a change to can affect its edge sum only in the bucket . Since there are at most outgoing edges, at most clipped values can change per repetition, each by at most four. Summing over the repetitions and multiplying by , the sensitivity of is therefore at most . By Lemma 2.9, the final scalar release is -DP.
At either changed endpoint, there are private internal releases and one final scalar release. By Lemma 2.7, the total privacy loss is at most , so the entire algorithm is -LEDP.
Accuracy. Fix and the center transcript, and assume that the saved center satisfies the bound in Lemma 4.2.
Delete all clips and ignore the hash-check return, using the same hashes, signs and internal Laplace noises. Let be the resulting internal reports, and let be the queries obtained by substituting these reports into Equations (9) and (10). Define
where are the independent final noises used by the algorithm. These variables are defined even when the algorithm returns early. We first show that removing the checks and clips leaves the reports and output unchanged with high probability, then bound the expectation and variance of without conditioning on this agreement.
Lemma 4.4. With probability at least , the hash check passes and no clip changes its input. That is, on this event, we have and for all .
Proof. We can define this event by the following conditions. First, the public hash check passes. Second, for every , and directed from to other than , require the bucket bound . For the residual edge , require the corresponding bucket bounds and . Finally, every Laplace noise added to an internal report , with , must have a magnitude of at most . This condition does not concern the noises added to the final scalar reports . On this event, the bucket and noise bounds, together with Equations (9) and (10), the report formulas in Algorithm 3, and the fact that all vertex weights and signs have absolute value at most one, imply by induction from the leaves towards the root that and for all , and . At the root , the separate bucket bounds for and give for all and . Hence no clipping operation changes its input.
We first bound the probability that a hash or bucket condition fails. For a fixed edge and fixed , the hash-check quantity is a sum of independent indicators, each with expectation , so its expectation is one. Similarly, each bucket sum consists of independent random variables in . Its expectation is at most one because each index enters the bucket with probability and the nonnegative entries of the factor row sum to at most . This applies to every saved edge factor and separately to and .
For any such sum , the Chernoff bound for independent -valued random variables with total expectation at most one gives . There are at most hash-check quantities. For the bucket conditions, there are ordinary edge factors and two matrices, and , for the residual edge. Each contributes sums, indexed by the input row, repetition, and bucket. Since , the total number of hash and bucket conditions is at most . By the union bound and the choice of , the probability that any of these conditions fails is at most .
There are internal Laplace noises. For each , we have . Since , the probability that at least one internal Laplace noise has magnitude greater than is at most .
Consequently, the probability that the desired event does not occur is at most .
Lemma 4.5. .
Proof. Consider one repetition and suppress its index. Let and fix the hashes and signs . The non-tree edge sums and their signs are fixed under this conditioning. Repeatedly substitute the report formulas into . Choosing the noise summand at removes all child reports below ; choosing its query summand multiplies reports from distinct child subtrees. Thus each expanded product contains each internal noise at most once. Since each internal noise appears at most once in a term and the noises are independent with mean zero, only the terms with no internal noise remain in . These terms contain one divisor per edge of and one divisor per private reporting vertex, which together cancel the factor exactly.
Let record the images selected by the root and tree-edge sums. The root edge requires , and each tree edge from to its child requires . Since the tree spans , these conditions give
Expanding the root and tree-edge sums therefore yields
For each non-tree edge directed from x to y, we have
The sign families for distinct edges are independent. Since ), the condition for all ) already implies , so the extra indicator can be omitted.
Taking conditional expectations gives
For each fixed , the variables are independent and uniform on . Hence
By the tower property of conditional expectation again and the definition of the correction , it follows that
Finally, the independent final Laplace noises have mean zero, so
□
Lemma 4.6. .
Proof. We first bound the variance of for one repetition, with its index suppressed. We then use and independence to combine the repetitions and final noises. Let , and , and let be the number of private factors on the edges incident to other than . For each , by the symmetry of and the definition of in Equation (7), define
By the assumed guarantee of P in Lemma 4.2, we have
We express Y as a sum with coefficients , so that the preceding squared-norm bound can be applied. Since u is the only tree child of v, Equation (10) gives
Put . There are divisions by in this expression, so their combination with gives . Expanding the product of sums amounts to choosing an input vertex for each . All these choices must lie in bucket . Hence
For a fixed , the last sum equals one if all the displayed hash values are equal, and zero otherwise. Indeed, when they agree, the unique admissible bucket is . Consequently, for each boundary map , let
Then we have . Note that does not depend on the hashes or signs drawn for this correction, then
The key step is to establish the following bound on the covariance row sums.
Claim 4.7. .
Then we can bound . By the inequality and Claim 4.7,
Each of the private reporting vertices accounts for a distinct private edge, so . Since , and , we have . Then by , , and Inequality (11), we have
Consequently,
Now we only need to prove Claim 4.7.
Proof of Claim 4.7. Fix . Write each internal Laplace noise as , where the are independent samples from Lap(1). At a private reporting vertex , the corresponding unclipped report has the form
Let be the family of all subsets of the private reporting vertices in such that no vertex in is an ancestor of another in the chosen tree. Repeated substitution of Equation (12) and the product formula for gives
Here specifies the image indexing each noise term in the product, and is its coefficient. For , there is a single coefficient, denoted by .
Since and , independence gives
Thus Equation (13) yields the exact identities
Thus, we can write , where
Then we can bound by bounding . In bounding the absolute value of , we may replace its normalization factors by one, since , , and . This does not worsen the worst-case powers of and in the total variance bound, since the final Laplace noises already attain these powers.
Each contribution to pairs an expanded term from with one from . To bound , we represent each such pair by an auxiliary graph .
For a term from , start with a copy of the chosen spanning tree of rooted at , and delete the proper descendants of vertices in . Write for the image assigned to the retained vertex , with ; a retained tree edge represents .
For each non-tree edge directed as with retained and , the edge sum introduces a separate candidate image , which need not equal the image assigned to even if is retained. We represent by a new leaf and connect it to with factor . This leaf is associated with pattern vertex and uses the same hash variable . Also add an isolated vertex carrying for each . These vertices and the root give designated vertices with images fixed by .
Add the vertices and edges for the term from in the same way, using its own candidate images and the prescribed images . To obtain , merge all auxiliary vertices associated with the same pattern vertex and image, equivalently the same variable .
We show that every connected component of with a nonzero contribution to contains a designated vertex with image for some . This allows us to choose a spanning forest rooted at these designated vertices and sum over each remaining image at a cost of at most , without an extra factor of from an unfixed root image. Avoiding this extra factor of is necessary to obtain the desired bound .
We prove the property by contradiction. Every auxiliary vertex introduced for the term from lies in a connected component containing a designated vertex with image for some . Hence a component without one contains only vertices from the graph for .
If this component contains no vertex of the auxiliary tree for , it contains an originally isolated vertex carrying . The isolated vertex carrying has no matching occurrence: every other occurrence for this edge lies in one of the two trees or at the designated vertex carrying , and an equal index would merge that vertex into the component. Thus the corresponding sign occurs only once, giving zero product expectation and hence zero contribution for . For , by Equation (14); at least one individual expectation of the paired terms is also zero, so their contribution vanishes.
Otherwise, the component contains the auxiliary tree for . If , by Equation (14), any remains in both trees with the same image indexing the noise, so merging these vertices joins the two trees, a contradiction. Therefore . For each , let be the image assigned to the retained vertex in the tree for . No auxiliary vertex introduced for can have the same pattern vertex and image , since it would then be merged with the retained vertex in the auxiliary tree for . For the contribution to be nonzero, the corresponding sign must match , forcing and merging the isolated vertex carrying with the retained vertex . All the originally isolated vertices for therefore merge into its tree. The entire graph for is disjoint from the graph for after merging, so the two terms use disjoint sets of independent hashes and signs. Their covariance is zero, so their contribution to in Equation (14) is zero, a contradiction. This proves the required component property.
For fixed , group assignments according to which occurrences of the same pattern vertex have equal images. There are possible identifications, since is fixed and the auxiliary graphs have vertices. Fix one such identification contributing a nonzero term, and let be the number of vertices after merging, or equivalently the number of distinct hash variables. The hash constraints in the two terms require these independent uniform variables on to have the same value, with probability . Each absolute contribution is bounded by times its vertex-weight and matrix factors.
Choose a spanning forest rooted at the designated vertices, with exactly one root in each tree; the component property ensures that such a forest exists. These roots remain distinct because they are associated with different pattern vertices. The forest has edges. Discard all vertex-weight factors and all matrix factors on edges outside the forest; they lie in , so this only increases the nonnegative sum. Summing over and the other images now leaves images not fixed by . Drop the restrictions requiring images to be distinct. By symmetry and the row-sum bound of each , summing over the image of a leaf contributes at most . Repeating from the leaves towards the roots bounds the sum over these images by . Thus each identification contributes at most . There are identifications and sets , and . Consequently, we have
uniformly over .
□
By Lemma 4.5 and Chebyshev's inequality, we have . Combining this with Lemma 4.4 and the union bound yields
which proves the stated accuracy guarantee by Lemma 4.6.
Rounds and runtime. Only vertices with a private outgoing edge require an internal reporting round, followed by the final scalar round. Each such vertex accounts for a distinct private edge, proving the stated round bound. The public hash check, evaluation of the local queries, and normalization and aggregation of the reports run in poly time.
4.2.2 Constructing a Public Center
We extend the two-query construction in Section 1.2.2 to products of incident edge factors. The matrix from Section 4.1.2 records products of the incident factors; it is used to state the error guarantee, not formed by the algorithm. The complete procedure is given in Algorithm 4, and we describe its steps below.
Use the incident factors and weights from Section 4.1.2; the first factors are private and equal to , and the others belong to and are public. For each factor, use an independent sign matrix and write for its noisy private sketch or exact public sketch. We form the combined sketch by multiplying these sketches coordinate-wise and scaling row by . The noise scales correspond to the two reporting rounds. Before the second query, a public check requires every row of to have norm at most . The parties then release noisy rows of , forming , and a second public check bounds its row norms by . These checks bound sensitivity and optimization inputs on every transcript; a failed check returns . After both checks pass, the server fits the center by choosing whose squared residual is within an additive 1 of the minimum over . Now we give the formal proof of Lemma 4.2.
Proof of Lemma 4.2. We prove the privacy, accuracy, rounds, and runtime guarantees separately.
Input: Graph , represented by adjacency row vectors , a target integer degree parameter , public vertex weights and incident edge factors , each marked private or public, privacy parameters and failure probability .
Output: A public matrix .
/* Public parameters and sign matrices */
1 [s] Let be the number of private edge factors and number them first;
2 [s] Let ;
3 [s] Let , and ;
4 [s] Let , ;
5 [s] Let and ;
6 [s] For all , sample with independent uniform entries in ;
/* First round: private incident factors */
7 for to do
8 | for to do
9 | | Let and upload to the server;
10 [s] For all , let ;
11 [s] Let be the matrix with entries for all and ;
12 [s] if then
13 | return ;
/* Second round: private estimates of AB */
14 [s] Let ;
15 for to do
16 | Let and upload to the server;
17 [s] if then
18 | return ;
/* Fit the public center */
19 [s] Compute such that ;
20 return .
Algorithm 4: PC's center subroutine with Gaussian reports.
Privacy. Every row of has Euclidean norm 1. Given the preceding transcript, changing one coordinate of a private row changes its first query by a signed row of . Before the second query, the first check bounds the -norm of every row of by . Thus the two -sensitivities are 1 and , respectively. By Lemma 2.10, each release of or is -DP. Each changed endpoint participates in calls, so Lemma 2.7 gives -LEDP. The checks and fitting are postprocessing.
Accuracy. For accuracy, fix and condition on the preceding centers that determine this call's weights and public edge factors. Write the Gaussian releases as for and , where the noise entries are independent mean-zero Gaussian variables with variances and , respectively, and are independent of the sign matrices . For analysis, we may generate the Gaussian noises even when an earlier public check returns , leaving those samples unobserved. This does not change the algorithm's output. Let . We first compare and uniformly over all feasible centers . The optimization step then controls , and bounds on the row norms of and and on ensure that both public checks pass and give the required error bound.
Lemma 4.8. With probability at least , whenever , we have, simultaneously for every ,
Proof. We first establish a comparison for a finite set of coefficient row vectors and then extend it to every with . Each row of satisfies this bound, so summing the resulting inequalities gives the required comparison. Since the bound holds simultaneously for every , it also holds for the center selected by the algorithm.
Bounding the second and fourth moments. For a fixed coefficient row vector , let be its rescaled th sketch coordinate. Condition on the sign matrices . Recall that the edges incident to other than are . Since the Gaussian noises are independent across factors and have mean zero, expanding the matrix products and following Equation (7) gives
The independent uniform signs satisfy . Thus, conditional Jensen's inequality and independence across the sign matrices give
Also, is linear in each of independent blocks of signs and standard Gaussian variables. To bound its fourth moment, write using the variables in the last block. Here the are independent uniform signs in or standard Gaussian variables, with their original scales absorbed into the coefficients . Both types are centered and have variance one, and their fourth moments are one and three, respectively. The coefficients are linear in each of the other blocks and independent of the .
We prove the fourth-moment bound by induction on the number of independent blocks. For , the empty product gives deterministically, so , establishing the base case. Now let and assume that every expression linear in each of independent blocks of these variables satisfies . In particular, each coefficient satisfies . Expanding and using the independence and centering of the , followed by their fourth-moment bounds, Cauchy–Schwarz, and the induction hypothesis, gives
A comparison on a finite set. Put . If , the Paley-Zygmund inequality gives
The columns are independent and identically distributed, so a Chernoff bound shows that at least columns satisfy this inequality, except with probability . On this event,
When , the last inequality holds deterministically.
Let be the th coordinate row vector, and let be the set of all sums of vectors from . There are at most such sums. By the choice of , a union bound gives
Hence, with probability at least , for every , we have
Returning to the residual rows. Suppose Inequality (15) holds and . For any with , draw independent row vectors , each taking the value with probability for each , and the zero vector with probability . Their sum belongs to and has mean . In the following calculations, expectations are over these auxiliary vectors, with fixed. For each , we have and
where the last two inequalities use for every and . Expanding the squared norm and using independence for the cross terms gives
Jensen's inequality and Inequality (15) now imply
These auxiliary vectors are used only in the proof after is fixed, so this comparison holds on the same event for every with .
For every and , we have
Applying the rowwise comparison with and summing over gives
Lemma 4.9. Whenever the algorithm reaches the optimization step, its output satisfies
Proof. Since , it is an admissible competitor in the optimization step. The optimization guarantee and give
Using and the triangle inequality, we obtain
Lemma 4.10. With probability at least , both public norm checks (on the row norms of and ) pass, and .
Proof. We first bound the row norms of to verify the first public check. We then bound for accuracy and use the same bound to verify the check on the row norms of .
The first-round check. We first bound each factor in the product defining to obtain a bound on . Put . Every incident-factor row has squared -norm at most . Hoeffding's inequality and Gaussian tail bounds, followed by a union bound, give
simultaneously for all , and in the first inequality and in the second, except with probability at most . Whenever both displayed bounds hold, the product defining and imply, for every ,
To compare this row bound with , we now bound and in terms of and . For , recall that and , so , , and . The choice of therefore gives
Substituting this bound into the definition of and using gives
For the factor , use and together with the preceding bound on to obtain
Since and , substituting these two bounds into the row bound yields
The second inequality uses and , and the last inequality is exactly the second lower bound in the definition of . Thus the first norm check passes.
The second-round noise and final check. The scale is fixed by the public parameters, and has independent entries and is independent of . Viewing its entries as one vector, whose Euclidean norm equals , we apply Lemma 2.3 with and . This gives
where the last inequality follows from . On the event and whenever the first norm check passes, for every we have
so the second norm check also passes. A union bound gives total failure probability at most .
On the intersection of the events in Lemmas 4.8 and 4.10, the algorithm reaches the optimization step, so Lemma 4.9 applies. Substituting into the inequality in Lemma 4.8 and then using the bounds on and , we obtain
The third inequality uses , , and . The last inequality follows from the definitions of , and , with . A union bound gives success probability at least .
Rounds. The parties report in the first round, if , and in the second. We can show that the first-round reports of all calls to Algorithm 4 can be collected in a single round without changing the joint distribution of the reports and outputs. Fix the block roots, edge orders and endpoint choices in Algorithm 2 in advance. The first-round reports depend only on , the fresh sign matrices and the public parameters; they do not depend on the vertex weights or preceding centers. Hence these reports from all calls can be collected in one initial round, using independent randomness across calls. Once a call's vertex weights and public edge factors are available, the server forms and the parties need at most one further reporting round for . Each call uses only its own reports and preceding centers, so this schedule preserves the joint distribution used in the accuracy analysis.
Runtime. For fixed and , the sketch dimension satisfies so generating the random matrices and computing the reports take polynomial time. It remains to bound the running time of the optimization step.
Use the entries with as independent coordinates, setting and . When , fitting is a univariate convex quadratic minimization over , solvable directly in arithmetic operations. Henceforth assume . The objective is convex and differentiable, and both its value and gradient can be computed in polynomial time. The feasible set is closed and convex, described by the linear inequalities. Checking these inequalities either certifies feasibility or supplies a violated inequality separating the candidate from . Both and its gradient can be evaluated in polynomial time, so the two required oracles have polynomial arithmetic cost.
In these coordinates, is contained in the ball of radius centered at the origin. It contains the ball of radius centered at the vector whose coordinates all equal : every off-diagonal entry in this ball lies in , and every row sum is at most . Throughout the enclosing ball, . Together with and , this gives
where the second and third inequalities follow from the triangle inequality and submultiplicativity of the Frobenius norm, respectively. Thus the difference between the maximum and minimum of f on the enclosing ball is at most U. Applying Lemma 2.5 with gives a feasible center with additive objective error at most 1 after
iterations, each with polynomial arithmetic cost in poly . Therefore, the total runtime has the claimed worst-case bound.
4.3 Pure Privacy
We formalize the pure version of PC described in Section 1.2.4 and prove Theorem 1.2.
4.3.1 The Mechanism and the Counting Algorithm
We first give a pure-private mechanism for releasing a linear query , where is a private binary row and is public. The following lemma bounds its distance from the corresponding Gaussian release.
Lemma 4.11. For any public matrix , public bound , , and , the mechanism defined by Algorithm 5 is -DP with respect to a one-bit change in . For every , its output satisfies
where , denotes the distribution of a random vector, and denotes total variation distance. The algorithm runs in time .
The proof of Lemma 4.11 is given in Section 4.3.2. We now use this mechanism to replace the Gaussian releases in Algorithm 4 and prove Theorem 1.2.
Input: A private row , a public matrix , a public bound , a privacy parameter , and a comparison parameter .
Output: A private estimate of .
1 if then 2 | return 0; /* Normalize the query and bound the log-density changes / 3 Let and ; 4 Let and ; 5 Let for every ; 6 Define ; / Sample on a public cube with a prescribed multiplicative error */ 7 Let and ; 8 Sample with density within a factor , pointwise, of the normalized density proportional to , using Lemma 4.13; 9 return ;
Algorithm 5: A pure-DP mechanism approximating a Gaussian linear release.
Proof of Theorem 1.2. We obtain the pure version of PC by modifying its Gaussian protocol (Algorithm 2) as follows. If or , use the exact returns of Algorithm 2. For the remaining inputs, construct as in that algorithm, let , and set . Run Algorithm 2 with and retain its original round schedule. In each call to Algorithm 4, replace the Gaussian mechanism in both reporting rounds with Algorithm 5, using fresh independent randomness to generate each report. The public norm checks, the optimization step, and the correction procedures remain unchanged. Using the parameters in Algorithm 4, set . In the first round, release for every and ; in the second round, release for every . All other steps remain unchanged.
The branches of exact returns satisfy all claims, so assume and . We prove the privacy, accuracy, rounds, and runtime guarantees separately.
Privacy. We only need to verify the condition required by Lemma 4.11.
Since , and , the choice of gives
Here the second inequality uses and , which hold for , and the last uses .
The allocations and therefore give
where we used and . Thus each replacement report is -DP by Lemma 4.11, and the same composition and postprocessing arguments used in the privacy proofs for Algorithms 2 and 4 show that the modified algorithm is -LEDP.
Accuracy. For the releases of and , the choice of makes the Gaussian standard deviations in Equation (16) equal to and , respectively. Since Inequality (17) and , the total variation distance for each release is at most
There are at most center calls, each making at most such releases. Using and , their total number is at most
Conditioned on agreeing preceding transcripts, couple corresponding reports using the total variation bound above, and use the same randomness for all unchanged steps. By a union bound, the probability that the pure and Gaussian versions of PC produce different outputs under this coupling is at most
The proof of Theorem 4.1 guarantees the stated Gaussian accuracy with probability at least 11/12. Since
for fixed , the pure version of PC satisfies the claimed error bound with probability at least .
Rounds and Runtime. The pure version of PC preserves the reporting schedule and therefore still uses at most rounds. By Lemma 4.11, the runtime of a replacement report is polynomial in . Then we have
Together with by Inequality (17), these bounds imply that each call to Algorithm 5 takes time. There are at most such calls, and the remaining computations are unchanged, so the pure version of PC also runs in worst-case time.
The following corollary gives variants of PC with fewer reporting rounds.
Corollary 4.12. For any fixed connected pattern with vertices and edges, any , and any public integer , variants of PC are -LEDP. On every -vertex graph with maximum degree at most , their estimates satisfy
with probability at least 2/3. The algorithms have polynomial arithmetic cost for fixed .
(i) If distinct vertices satisfy that is a connected star centered at , put . At most rounds suffice.
(ii) If is adjacent to every other vertex and , at most rounds suffice.
The algorithms runs in time poly.
Proof. We follow the pure version of Algorithm 2 described in the proof of Theorem 1.2. Since is connected, each is connected; fix and set .
Edge replacements. The two structural conditions are preserved by these quotients. In case (i), is adjacent to every vertex except possibly . If and lie in the same part, the quotient is a star; otherwise, forms a part by itself, and deleting the part containing leaves a star centered at the part . In case (ii), also forms a part by itself, which is adjacent to every other part in the quotient. Write for the vertex of corresponding to the part containing , choosing the star center instead when itself is a star. Thus .
Keep the factors incident to private and replace only those on , in a fixed public order. Do not eliminate blocks, so and all weights and the multiplier remain one. For each replacement, use the endpoint notation of Section 4.1.2. In case (i), select as the vertex of corresponding to the part containing , so is the star centered at ; every replaced edge is incident to . In case (ii), fix either endpoint as in advance; the edges incident to keep connected. Hence each saved replacement satisfies the conditions of Lemmas 4.2 and 4.3.
The final local reports. After these replacements, all factors on are public. Restrict the sum in Equation (6) to maps with . Every private factor in this sum comes from , so party can evaluate it using its own adjacency vector and the public factors . Replace the final exact evaluation of in Algorithm 2 by the sum of the following private reports.
To estimate , each party releases its restricted sum with Laplace noise, using the row modification and noise scale specified below. The server sums these reports in place of the final exact evaluation in Algorithm 2. To control the sensitivity of the final local reports on all input graphs, party first limits its adjacency row to at most ones, retaining the first ones in a fixed public coordinate order, and uses the resulting row in every private factor. This leaves the computation unchanged on graphs of maximum degree at most . A one-bit change in changes the retained row in at most two coordinates. For fixed public factors, the restricted sum consequently has sensitivity at most . To see this, expand the difference over the factors incident to . Each changed coordinate fixes the images of and one neighbor. Extend the private star to a spanning tree of and delete that edge. Summing the other images along the resulting two rooted trees costs at most , since the retained row has at most ones and every public factor belongs to . The other factors lie in and can be omitted for this bound. Sum over the private factors and at most two changed coordinates.
Each party adds independent Laplace noise of scale . An edge change affects two parties, so this release is -LEDP by the Laplace mechanism. The sum of these noises has variance and contributes additive error with probability at least .
Privacy and accuracy. Each quotient uses center calls, the same number of correction calls, and one final local release. Since has positive degree, , so the allocation , covers all calls. The same privacy analysis gives -LEDP on all input graphs. On , the retained rows equal , so the sum of the final reports estimates with the error bound above. The remaining error analysis and quotient combination follow as in Section 4.1.4, giving the claimed accuracy with probability at least .
Rounds in case (i). For a replacement on , attach to the star through and root the resulting tree at , as in Algorithm 3. Since , the vertex is the only child of , and is the only child of . All previously replaced factors are incident to and, by the prescribed edge directions, occur only in the root query (10). Thus the internal queries (9) use no center. The server computes the leaf reports, after which the reports at and can be collected in rounds one and two, respectively. The center computations do not use correction reports, and the two procedures use independent randomness, so collecting these internal reports early preserves the joint distribution of the centers and correction estimates. As in Section 4.2.2, all first-round center reports are collected in round one, and center is available by round . The corresponding correction reports at the root are released in round , and the final reports for are released in round . All quotient computations run in parallel, so the same round bounds hold for the complete algorithm.
Rounds in case (ii). For a replacement on , choose the star centered at as the spanning tree of , attach through , and root the resulting tree at . The internal reports are computed first at the children of , then at , and then at . By (9)–(10), these reports use preceding centers but not the new center. For replacement , the preceding centers are available by round , so these three groups of internal reports can be collected by rounds , and , respectively. The final correction reports at the root are then released by round .
For the last replacement, every edge of not incident to is already public. Its leaf reports are therefore computed by the server, leaving only the reports at , at , and at . This correction finishes by round ; every earlier correction satisfies . The final reports for finish by round . If , case (i) applies; if it is zero, only the final local release is needed. Hence at most rounds suffice. The same analysis therefore applies to the complete algorithm.
Runtime. The local sums can be evaluated by enumerating at most maps. Together with the bounds for the pure center and correction procedures, and the fact that the number of calls depends only on , this gives a total arithmetic cost of poly for fixed .
4.3.2 Proof of the Linear Query Guarantee
We prove Lemma 4.11 using the Gaussian isoperimetric inequality (Lemma 2.4) and the following sampling lemma, which provides a pointwise multiplicative guarantee.
Lemma 4.13 (Sampling with Approximate Evaluations [LL25, Theorem 3.9 and Lemma 3.8]). For any , , and , let be a convex and -Lipschitz function (with respect to the Euclidean norm), i.e.,
for all . Suppose a deterministic procedure returns with for every . Then an algorithm using these approximate values returns a point in with density satisfying
for every , where . Both the number of evaluations of and the number of additional arithmetic operations are bounded by in the worst case.
Proof. We specialize the grid-walk analysis of [LL25, Lemma 3.8] to the cube and use the conversion from grid points to continuous samples in [BST14, Lemma 6.1]. We give the parameter choices and error bounds explicitly.
First construct the grid. If , then is constant, and uniform sampling from the cube is exact. Otherwise, set
Since , the function is -Lipschitz with respect to . Also, . Dividing each coordinate interval into equal intervals partitions into smaller cubes, which we call cells. Each cell has side length
We use the center of each cell as a grid point of the walk and denote the set of these points by . For , let be the center of the cell containing . If a point lies on a boundary shared by several cells, assign it to one of them by a fixed rule so that is uniquely defined. Since , the variation of the true potential within a cell satisfies
Assign each grid point the weight . Since the evaluation procedure is deterministic, revisiting the same point gives the same weight. We use the grid walk described in [LL25, Section B.3.1], with these approximate weights. Start at any fixed grid point in . At each step, the walk stays at its current point with probability . Otherwise, it selects one of the coordinate directions uniformly and proposes moving a distance in that direction. A proposal outside is rejected; a proposal from to is accepted with probability . The walk has stationary distribution
Thus, if the current point has distribution , one step preserves that distribution.
To bound the number of steps, apply [LL25, Lemma 3.8] with cube side length , target error , and evaluation error . The true potential is convex and -Lipschitz with respect to , with , and the grid spacing is . The evaluations have deterministic error at most ; the cited guarantee does not require itself to be convex. Write for the probability that the walk is at after steps. The result gives a predetermined number of steps such that, regardless of the starting point, every grid point satisfies
After the walk selects a grid point, sample uniformly from the cell centered at that point, as in [BST14, Lemma 6.1]. All cells have volume , so the resulting density is
We compare this density with by accounting for the function evaluation error and the variation within a cell. The two bounds give
Write the two normalizing constants as
Exponentiating the preceding error bound and integrating over the cube yields
Using the definitions of , , and , we can therefore factor their density ratio as
The three factors lie in , , and , respectively. Multiplying these bounds gives
Finally, the current grid point is represented by the coordinate indices of its cell, so the walk never enumerates all grid points. Each step requires at most two evaluations of and additional arithmetic operations. The grid parameters satisfy
Thus , , and are polynomial in . Sampling uniformly in the cell centered at the final grid point takes further operations. We stop the walk after the predetermined steps and return the point sampled from that cell, with no restart or additional acceptance test. This proves the claimed worst-case bounds on function evaluations and additional arithmetic operations.
Proof of Lemma 4.11. If , then , so both the mechanism and the Gaussian comparison return zero. Suppose . Use the parameters of Algorithm 5, including for the input . Since , every input satisfies
Thus the public cube , with , contains every normalized query value with the same noise margin. We prove privacy, total variation distance, and runtime separately.
Privacy. Let differ only in coordinate , and write . Their normalized query values differ by . The constraints defining give
Consequently, for every ,
The same argument with gives . Let on , and let be its normalizing constant. Define and analogously using . The preceding bound implies
Integrating over the common cube gives . Thus the normalized densities satisfy
The sampler returns a density within a factor of . Therefore,
where the last inequality uses and . Scaling the output by the public value preserves privacy by postprocessing. Then the whole algorithm is -DP.
Distributional comparison. Let and . Let and be the normalizing constants of the density proportional to and the Gaussian distribution , respectively:
Let be the density proportional to on , and let be the Gaussian density with mean and covariance :
Recall that is conditioned on , and is the density returned by the sampler before multiplying by . We extend both densities by zero outside the cube. We bound the distances between and , between and , and between and in the following three lemmas, then combine them by the triangle inequality.
Lemma 4.14. .
Proof. Without the constraint , the maximum defining is attained at and equals . Hence agrees with the unnormalized Gaussian density whenever . We first bound the Gaussian probability that this condition fails. For the Gaussian sample , the condition becomes . Since and , Gaussian tail bounds and a union bound give
(18)
We next bound how far lies from , since this distance determines how much exceeds the Gaussian density factor and allows us to bound the increase in the normalizing constant. Define for every , and let . Since , we have
and hence . Since is nonempty and closed and by Inequality (18), Lemma 2.4 gives, for every ,
(19)
where the last inequality uses and the last equation uses .
We next compare the normalizing constants Z and . By the definition of h, we have
Changing variables , with , gives
where the third equality uses Equation (20), and the last uses the density of .
To bound this expectation, write the integral with random upper limit using an indicator. Since its integrand is nonnegative, we may interchange expectation and integration:
where the first inequality uses Equation (19) and the last uses .
Equation (20) also gives . Therefore,
Consequently,
Lemma 4.15. .
Proof. We first bound the probability that a sample from lies outside , using the corresponding Gaussian probability and Lemma 4.14. We then show directly that conditioning on the cube changes the distribution by exactly this probability in total variation distance.
Since , if , then . Gaussian tail bounds and a union bound therefore give
To transfer this bound to , recall that the positive and negative parts of the difference of two probability densities have equal integrals. Thus either part integrates to their total variation distance. Writing , we obtain
where the last inequality uses Lemma 4.14.
It remains to compute the effect of conditioning on the cube. Recall from the privacy proof that
By the definition of , its probability mass inside the cube is . In particular, . On the cube, the conditional density satisfies ; outside the cube, . Splitting the integral in the definition of total variation distance over these two regions gives
□
Lemma 4.16. .
Proof. We convert the sampler's pointwise density guarantee into a bound on total variation distance. By Lemma 4.13, for every ,
The upper bound implies . Since both densities vanish outside the cube and each integrates to one, integrating the positive part of their difference gives
Finally, , and convexity of the exponential function gives . Hence , as required.
Combining Lemmas 4.14 to 4.16 by the triangle inequality,
where follows from . Scaling both outputs by gives Equation (16).
Runtime. The function is convex and -Lipschitz. By Lemma 4.13, both the number of approximate function evaluations and the number of additional sampling operations are bounded by . It remains to implement each evaluation deterministically with error at most .
Fix , set , and write
The objective is a convex quadratic whose value and gradient each take arithmetic operations to evaluate. When , we have , so the minimizer is and can be evaluated exactly. Henceforth assume .
The feasible set is closed and convex, described by linear inequalities. Checking these inequalities in a fixed order either certifies feasibility or supplies a separating hyperplane in operations. Since , the set contains the ball of radius centered at the origin and is contained in . Moreover, gives . Thus the difference between the maximum and minimum of on is at most
Applying Lemma 2.5 with objective tolerance gives a feasible point with additive objective error at most after at most
iterations, each using arithmetic operations. With a fixed deterministic implementation, is therefore a deterministic approximation satisfying for every , as required.
Finally, and . Together with the bound on , these identities show that both the cost of each evaluation and the number of evaluations and additional sampling operations are polynomial in . Combining these costs with the operations needed to form and proves the claimed worst-case runtime.
5 The Degree-Dependent Lower Bound
We now prove a lower bound matching PC's polynomial dependence on and and, when , LNC's dependence on . We use a reduction from a gap-testing variant of the LDP summation problem.
Definition 5.1 (Summation function). Let be the following function. For all , .
We use the following lemma as the lower bound for testing the summation problem, which follows from the lower bound for simple hypothesis testing in [JMNR19].
Lemma 5.2. There exist constants such that the following holds for every , , and
If an -LDP algorithm distinguishes from with probability at least 2/3, then .
Proof. We first recall the simple hypothesis-testing lower bound that we use. By Theorem 5.3 in [JMNR19], let and be two distributions with . For any arbitrary, potentially fully interactive, -LDP protocol that distinguishes from with probability at least 2/3 using i.i.d. samples, if for sufficiently small constants and , then for some constant .
Suppose, towards a contradiction, that there exists an algorithm satisfying the assumptions for , where is a constant. We now use to construct such a hypothesis-testing protocol. By a constant number of independent repetitions of followed by majority vote, we may assume that its success probability on every input satisfying the promise is at least 11/12. Let and . By Lemma 2.7, the resulting protocol is -LDP.
Taking gives . Consider the two distributions and , where . Clearly, . Let and . Then we can verify the condition on by
We can use to distinguish whether i.i.d. samples are drawn from or with probability at least 2/3. If are drawn from , then with probability 1. Therefore, outputs the null hypothesis with probability at least 11/12. If are drawn independently from , then and . By the Chernoff bound and ,
Hence, . Conditioned on , outputs the alternative hypothesis with probability at least 11/12. Therefore, under , the hypothesis-testing protocol succeeds with probability at least .
Taking sufficiently small such that , then we have
which yields a contradiction.
We extend the reduction of [ELRS25] from triangle counting on to H-counting on for any pattern graph H and parameter d.
Theorem 5.3. For any pattern graph with connected components, vertices and edges (), there exist constants such that for every with and , , and , every (potentially interactive) -LEDP algorithm on for -counting with additive error at most with probability at least must have .
Proof. We argue by contradiction to Lemma 5.2. Assume that an -LEDP algorithm counts on with additive error at most with probability at least , where and
Set . We reduce LDP testing of versus to LEDP subgraph counting on -vertex graphs, with and specified below. If , then is a single edge: set , take vertex sets and , and make the remaining vertices publicly isolated.
For , set
Then , and . Since is a multiple of 3, the assumption also gives , hence . Take disjoint sets of sizes and , respectively, and make the remaining vertices publicly isolated. In both cases, , and all vertices outside contain only public information and can be simulated by any local party. We identify the vertices in with , and each party simulates the two vertices and in .
We first add the edges that encode the private input. For each , we add the edge if and only if . All edges added in the remainder of the construction are public and hence known to every party.
When , no public edges are needed, and is a matching together with isolated vertices, so its maximum degree is at most . When , partition into disjoint groups of size , and partition into the same number of disjoint groups of size , keeping each pair in one group. Pair each group with one group. For each paired group, add all edges within its group and all edges between its and groups. Every vertex in has degree , and every vertex in has degree at most . Thus, in both cases.
Let denote the full -vertex graph obtained from the above construction when for all , including the publicly isolated vertices. Since contains only public edges, can be computed without accessing the private input. We observe the following property.
Claim 5.4. For every , we have
Proof. For , we have , , and , so the claim holds with equality. Assume henceforth that .
Fix an edge of , and consider a private edge corresponding to an index with . We count only copies of in which is mapped to and every other vertex of is mapped to . Let be the connected components of , where .
The remaining vertices of are mapped to the group paired with the group containing . For each of the other connected components, we may independently choose any of the groups in and map all of its vertices into that group.
Fixing these group choices, suppose that vertices of are mapped into the -th group. Since and , the number of injective choices is at least
Accounting for the two orientations of and for automorphisms of H, the number of such copies containing is therefore at least
where we used , , and .
Every copy counted above contains exactly one private edge, since all other vertices are mapped to . Hence the copies counted for different private edges are disjoint. All these copies lie in and are absent from . If has isolated vertices, the publicly isolated vertices may contribute additional copies, but adding private edges cannot destroy any copy. Thus, summing over all present private edges proves the claim for the full -vertex graphs.
Let . To distinguish from , an LDP protocol simulates on the graph above. Let be the output of . Protocol outputs 0 if , and 1 otherwise. If two inputs to differ only in the -th coordinate, then the corresponding graphs differ only in the edge . Hence, is -LDP by the LEDP guarantee of and Lemma 2.8.
Now we prove the correctness of . If , then , so is correct with probability at least . If , then by Claim 5.4, . Thus, whenever has error at most , we have , so is again correct with probability at least .
It remains to verify the hypotheses of Lemma 5.2. Choose such that . The assumed upper bound on and the inequality give
In particular, . We may assume in Lemma 5.2 by decreasing it if necessary. Set , and , so . Then
The logarithms are positive because , and ; the last inequality follows from and . Thus, Lemma 5.2 applies and yields , contradicting the upper bound on since .
AI methodology
The algorithmic ideas, lower-bound constructions, and proofs in Sections 3 to 5 were developed through extensive, iterative interactions between the authors and the AI models ChatGPT 5.6 Sol and ChatGPT 6 Astra. These interactions contributed to both the development of the arguments and the refinement of their presentation. The authors independently verified, developed, and simplified the proposed arguments and take full responsibility for the correctness, exposition, and attribution of the work.
References
[Ach03] Dimitris Achlioptas. Database-friendly random projections: Johnson-lindenstrauss with binary coins. Journal of computer and System Sciences, 66(4):671–687, 2003.
[ACST22] Jayadev Acharya, Clément L. Canonne, Ziteng Sun, and Himanshu Tyagi. The role of interactivity in structured estimation. In Proceedings of Thirty Fifth Conference on Learning Theory, volume 178 of Proceedings of Machine Learning Research, pages 1328–1355, 2022.
[BBCG08] Luca Becchetti, Paolo Boldi, Carlos Castillo, and Aristides Gionis. Efficient semi-streaming algorithms for local triangle counting in massive graphs. In Proceedings of the 14th ACM SIGKDD international conference on Knowledge discovery and data mining, pages 16–24, 2008.
[BBDS13] Jeremiah Blocki, Avrim Blum, Anupam Datta, and Or Sheffet. Differentially private data analysis of social networks via restricted sensitivity. In Proceedings of the 4th Conference on Innovations in Theoretical Computer Science (ITCS), pages 87–96. ACM, 2013.
[BNS19] Mark Bun, Jelani Nelson, and Uri Stemmer. Heavy hitters and the structure of local privacy. ACM Transactions on Algorithms (TALG), 15(4):1–40, 2019.
[Bor75] Christer Borell. The brunn-minkowski inequality in gauss space. Inventiones mathematicae, 30(2):207–216, 1975.
[BST14] Raef Bassily, Adam Smith, and Abhradeep Thakurta. Differentially private empirical risk minimization: Efficient algorithms and tight error bounds. arXiv preprint arXiv:1405.7085, 2014.
[BTN21] Aharon Ben-Tal and Arkadi Nemirovski. Lectures on modern convex optimization 2020. 2021.
[CBP26] Xian Chen, Ruobing Bai, and Pan Peng. Differentially private range subgraph counting. In Proceedings of the 43rd International Conference on Machine Learning (ICML), volume 306 of Proceedings of Machine Learning Research, pages 13453–13489. PMLR, 2026.
[CNM04] Aaron Clauset, Mark EJ Newman, and Cristopher Moore. Finding community structure in very large networks. Physical Review E—Statistical, Nonlinear, and Soft Matter Physics, 70(6):066111, 2004.
[CZ13] Shixi Chen and Shuigeng Zhou. Recursive mechanism: Towards node differential privacy and unrestricted joins. In Proceedings of the 2013 ACM SIGMOD International Conference on Management of Data, pages 653–664. ACM, 2013.
[DF20] Yuval Dagan and Vitaly Feldman. Interaction is necessary for distributed learning with privacy or communication constraints. In Proceedings of the 52nd Annual ACM SIGACT Symposium on Theory of Computing, pages 450–462, 2020.
[DKM 06] 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, 2006.
[DLR 22] Laxman Dhulipala, Quanquan C Liu, Sofya Raskhodnikova, Jessica Shi, Julian Shun, and Shangdi Yu. Differential privacy from locally adjustable graph algorithms: k-core decomposition, low out-degree ordering, and densest subgraphs. In 2022 IEEE 63rd Annual Symposium on Foundations of Computer Science (FOCS), pages 754–765. IEEE, 2022.
[DMNS06] Cynthia Dwork, Frank McSherry, Kobbi Nissim, and Adam Smith. Calibrating noise to sensitivity in private data analysis. In Theory of cryptography conference, pages 265–284. Springer, 2006.
[ELRS25] Talya Eden, Quanquan C Liu, Sofya Raskhodnikova, and Adam Smith. Triangle counting with local edge differential privacy. Random Structures & Algorithms, 66(4):e70002, 2025.
[FLSZ21] Tianlong Fan, Linyuan Lü, Dinghua Shi, and Tao Zhou. Characterizing cycle structure in complex networks. Communications Physics, 4(1):272, 2021.
[FY25] Juanru Fang and Ke Yi. Counting subgraphs under shuffle differential privacy. In Proceedings of the 2025 ACM SIGSAC Conference on Computer and Communications Security (CCS). ACM, 2025.
[GRS11] Mira Gonen, Dana Ron, and Yuval Shavitt. Counting stars and other small subgraphs in sublinear-time. SIAM Journal on Discrete Mathematics, 25(3):1365–1411, 2011.
[GS09] Mira Gonen and Yuval Shavitt. Approximating the number of network motifs. Internet Mathematics, 6(3):349–372, 2009.
[GZL 26] Jintao Guo, Ying Zhou, Guixun Luo, Chao Li, and Yan Hu. Locally private subgraph counting via noisy adjacency matrix and differential privacy on randomized data, 2026. Version 2, revised August 26, 2026.
[HLMJ09] Michael Hay, Chao Li, Gerome Miklau, and David D. Jensen. Accurate estimation of the degree distribution of private networks. In Wei Wang, Hillol Kargupta, Sanjay Ranka, Philip S. Yu, and Xindong Wu, editors, ICDM 2009, The Ninth IEEE International Conference on Data Mining, Miami, Florida, USA, 6-9 December 2009, pages 169–178. IEEE Computer Society, 2009.
[HSS25a] Quentin Hillebrand, Vorapong Suppakitpaisarn, and Tetsuo Shibuya. Communication cost reduction for subgraph counting under local differential privacy via hash functions. Transactions on Machine Learning Research, 2025.
[HSS25b] Quentin Hillebrand, Vorapong Suppakitpaisarn, and Tetsuo Shibuya. Cycle counting under local differential privacy for degeneracy-bounded graphs. In 42nd International Symposium on Theoretical Aspects of Computer Science (STACS 2025), volume 327 of Leibniz International Proceedings in Informatics, pages 49:1–49:22. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2025.
[HWD26] Yihua Hu, Kuncan Wang, and Wei Dong. Acyclic graph pattern counting under local differential privacy. Proceedings of the ACM on Management of Data, 4(3):129:1–129:26, 2026.
[HWZ 24] Yizhang He, Kai Wang, Wenjie Zhang, Xuemin Lin, and Ying Zhang. Common neighborhood estimation over bipartite graphs under local differential privacy. Proceedings of the ACM on Management of Data, 2(6):1–26, 2024.
[HWZ 25] Yizhang He, Kai Wang, Wenjie Zhang, Xuemin Lin, Ying Zhang, and Wei Ni. Robust privacy-preserving triangle counting under edge local differential privacy. Proceedings of the ACM on Management of Data, 3(3):211:1–211:26, 2025.
[IMC21] Jacob Imola, Takao Murakami, and Kamalika Chaudhuri. Locally differentially private analysis of graph statistics. In 30th USENIX security symposium (USENIX Security 21), pages 983–1000, 2021.
[IMC22a] Jacob Imola, Takao Murakami, and Kamalika Chaudhuri. Communication-efficient triangle counting under local differential privacy. In 31st USENIX security symposium (USENIX Security 22), pages 537–554, 2022.
[IMC22b] Jacob Imola, Takao Murakami, and Kamalika Chaudhuri. Differentially private triangle and 4-cycle counting in the shuffle model. In Proceedings of the 2022 ACM SIGSAC Conference on Computer and Communications Security (CCS), pages 1505–1519. ACM, 2022.
[JMNR19] Matthew Joseph, Jieming Mao, Seth Neel, and Aaron Roth. The role of interactivity in local differential privacy. In 2019 IEEE 60th Annual Symposium on Foundations of Computer Science (FOCS), pages 94–105. IEEE, 2019.
[JMR20] Matthew Joseph, Jieming Mao, and Aaron Roth. Exponential separations in local differential privacy. In Proceedings of the 2020 ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 515–527, 2020.
[KLN 11] Shiva Prasad Kasiviswanathan, Homin K Lee, Kobbi Nissim, Sofya Raskhodnikova, and Adam Smith. What can we learn privately? SIAM Journal on Computing, 40(3):793–826, 2011.
[KNRS13] Shiva Prasad Kasiviswanathan, Kobbi Nissim, Sofya Raskhodnikova, and Adam Smith. Analyzing graphs with node differential privacy. In Theory of Cryptography (TCC), volume 7785 of Lecture Notes in Computer Science, pages 457–476. Springer, 2013.
[KRSY14] Vishesh Karwa, Sofya Raskhodnikova, Adam Smith, and Grigory Yaroslavtsev. Private analysis of graph structure. ACM Transactions on Database Systems, 39(3):22:1–22:33, 2014.
[LL25] Andrew Lowy and Daogao Liu. Differentially private bilevel optimization: Efficient algorithms with near-optimal rates. Advances in Neural Information Processing Systems, 38:27168–27209, 2025.
[Lov12] László Lovász. Large networks and graph limits, volume 60. American Mathematical Soc., 2012.
[LWMW26] Yingyu Lin, Erchi Wang, Yian Ma, and Yu-Xiang Wang. Purifying approximate differential privacy with randomized post-processing. Advances in Neural Information Processing Systems, 38:144259–144316, 2026.
[MPSL25] Pranay Mundra, Charalampos Papamanthou, Julian Shun, and Quanquan C. Liu. Practical and accurate local edge differentially private graph algorithms. Proceedings of the VLDB Endowment, 18(11):4199–4213, 2025.
[MSOI 02] Ron Milo, Shai Shen-Orr, Shalev Itzkovitz, Nadav Kashtan, Dmitri Chklovskii, and Uri Alon. Network motifs: simple building blocks of complex networks. Science, 298(5594):824–827, 2002.
[NRS07] Kobbi Nissim, Sofya Raskhodnikova, and Adam Smith. Smooth sensitivity and sampling in private data analysis. In Proceedings of the 39th Annual ACM Symposium on Theory of Computing (STOC), pages 75–84. ACM, 2007.
[PDFV05] Gergely Palla, Imre Derényi, Illés Farkas, and Tamás Vicsek. Uncovering the overlapping community structure of complex networks in nature and society. Nature, 435(7043):814–818, 2005.
[Prž07] Nataša Pržulj. Biological network comparison using graphlet degree distribution. Bioinformatics, 23(2):e177–e183, 2007.
[QYY+17] Zhan Qin, Ting Yu, Yin Yang, Issa Khalil, Xiaokui Xiao, and Kui Ren. Generating synthetic decentralized social graphs with local differential privacy. In Proceedings of the 2017 ACM SIGSAC Conference on Computer and Communications Security (CCS), pages 425–438. ACM, 2017.
[RSWZ26a] Sofya Raskhodnikova, Adam Smith, Connor Wagaman, and Anatoly Zavyalov. Local node differential privacy, 2026. To appear in FOCS 2026.
[RSWZ26b] Sofya Raskhodnikova, Adam Smith, Connor Wagaman, and Anatoly Zavyalov. Sub-graph counting with local node differential privacy, 2026. To appear in SODA 2027.
[SPHH25] Vorapong Suppakitpaisarn, Donlapark Ponnoprat, Nicha Hirankarn, and Quentin Hillebrand. Counting graphlets of size k under local differential privacy. In Proceedings of the 28th International Conference on Artificial Intelligence and Statistics, volume 258 of Proceedings of Machine Learning Research, pages 5005–5013. PMLR, 2025.
[SXK+19] Haipei Sun, Xiaokui Xiao, Issa Khalil, Yin Yang, Zhan Qin, Hui Wang, and Ting Yu. Analyzing subgraph statistics from extended local views with decentralized differential privacy. In Proceedings of the 2019 ACM SIGSAC Conference on Computer and Communications Security (CCS), pages 703–717. ACM, 2019.
[Tar72] Robert Tarjan. Depth-first search and linear graph algorithms. SIAM journal on computing, 1(2):146–160, 1972.
[Wai19] Martin J Wainwright. High-dimensional statistics: A non-asymptotic viewpoint, volume 48. Cambridge university press, 2019.
[War65] Stanley L Warner. Randomized response: A survey technique for eliminating evasive answer bias. Journal of the American statistical association, 60(309):63–69, 1965.
[WZK23] Lingxiao Wang, Boxin Zhao, and Mladen Kolar. Differentially private matrix completion through low-rank matrix factorization. In Francisco Ruiz, Jennifer Dy, and Jan-Willem van de Meent, editors, Proceedings of The 26th International Conference on Artificial Intelligence and Statistics, volume 206 of Proceedings of Machine Learning Research, pages 5731–5748. PMLR, 25–27 Apr 2023.