Skip to content

Continuous publication of data streams under central and local differential privacyContinuous Release of Data Streams under both Centralized and Local Differential Privacy

arXiv· arXiv:2005.11753· CCS 2021· Tianhao Wang, Joann Qiongna Chen, Zhikun Zhang, Dong Su, Yueqiang Cheng, Zhou Li, Ninghui Li, Somesh JhaCarnegie Mellon University; University of Virginia; University of California, Irvine; CISPA; Alibaba Inc.; NIO Security Research; Purdue University; University of Wisconsin, MadisonIndexed by this site · 27 days ago· Originally published

Quick read

Other

Based on the paper PDF (AI-generated); refer to the original

The authors propose the DP stream publication framework ToPS and its LDP version ToPL, and the authors state that on 4 real datasets the MSE is 6–10 orders of magnitude lower than PAK.

Questions
When continuously publishing a real-valued data stream under differential privacy, the upper bound on the maximum value in the stream is very large, leading to excessive DP noise and high range query error; the existing PAK method uses a fixed 99.5th percentile as the truncation threshold, which the authors consider unreliable under different ε and data distributions.
Methods
Proposes the three-component framework ToPS: the threshold optimizer uses Noisy Max to select the truncation threshold θ by minimizing the total error of bias and noise; the perturber adds noise via an online hierarchy structure with fan-out 16 and first performs noise consistency; the smoother replaces low-level nodes with Recent predictions. An LDP version ToPL is also given, which uses SW to estimate the distribution and the Hybrid mechanism to perturb.
Experiments and results
On the four datasets DNS, Fare, Kosarak, POS, using the MSE of 200 random range queries as the metric and repeating 100 times, the authors state that ToPS is 6–10 orders of magnitude lower than PAK, of which the threshold technique contributes 4–8 orders of magnitude; under LDP, ToPL's SW-W is about 3 orders of magnitude lower than SW on Kosarak and POS.
Limitations and future work
Future directions discussed by the authors: shortening the retention of the first m observations used to estimate the threshold, running the threshold optimizer multiple times to update θ when the distribution changes, and exploiting the temporal patterns of the data to improve performance (all from Section 7). Experimental coverage: 4 real datasets, ε from 0.01–0.1 under DP and ε from 0.2–2 under LDP, with query range upper bound r=2^20.
Experimental setupDNS、Fare et al. · MSE、MAE et al.
Benchmarks
DNSFareKosarakPOS
Metrics
MSEMAEMMAEMMSE
AI summaryResearchers propose a framework for continuous publication of data streams satisfying differential privacy, which privately estimates the truncation threshold with the Exponential Mechanism, then applies calibrated noise via a perturber and post-processing via a smoother. The authors state that the algorithm they design is the first streaming data publication algorithm satisfying local differential privacy (LDP). On 4 real datasets, measured by the mean squared error in answering random range queries, utility improves by 6-10 orders of magnitude over the previous best method.

Researchers propose a framework for continuous publication of data streams satisfying differential privacy, which privately estimates the truncation threshold with the Exponential Mechanism, then applies calibrated noise via a perturber and post-processing via a smoother. The authors state that the algorithm they design is the first streaming data publication algorithm satisfying local differential privacy (LDP). On 4 real datasets, measured by the mean squared error in answering random range queries, utility improves by 6-10 orders of magnitude over the previous best method.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    How to continuously publish real-valued data streams under DP/LDP and answer range queries accurately; the core issue is reducing the noise caused by a large upper bound.

    Core problem: how to continuously publish a real-valued data stream under differential privacy (DP) so that sum queries (range queries) over arbitrary time ranges are as accurate as possible.

    • Application scenarios: scenarios such as security companies continuously analyzing network traffic and smart meter electricity usage data require continuous publication of statistics, but direct publication would leak individual information; DP is what the authors call the gold standard of privacy research.
    • Key challenge: the magnitude of DP noise is proportional to the data upper bound B, and B is usually large, leading to excessive noise and poor utility. PAK (Perrier et al.) observed that data are mostly concentrated below a threshold far smaller than B, and proposed truncation with a threshold θ to reduce noise.
    • Shortcomings of existing methods (three points the authors note about PAK): 1) θ is fixed at the 99.5th percentile, and the authors argue that no fixed percentile can be suitable under all ε and data distributions; 2) to ensure θ is no smaller than the true percentile, PAK adds a positive term and multiplies by a coefficient greater than 1, so θ is often too large and, when ε is small (e.g., ε ≤ 0.1), may even exceed the maximum value, defeating the purpose of truncation; 3) it outputs directly using the basic hierarchy method without fully exploiting post-processing optimization, and performs poorly on range queries with small selectivity.
    • Core observation of the paper: bias (introduced by truncation) and variance (DP noise) vary in opposite directions with θ, and there exists an optimal θ that minimizes total error; both should be minimized simultaneously rather than focusing only on bias.
    • What the paper proposes: a three-component framework ToPS (threshold optimizer, perturber, smoother) satisfying pure ε-DP; and an extension ToPL satisfying local differential privacy (LDP). The authors state that on 4 real datasets the MSE is 6–10 orders of magnitude lower than PAK.
  2. What related research exists?

    Related work falls into two lines: DP stream publication (event-level, user-level, w-event) and LDP stream processing, with PAK as the baseline.

    Event-level DP stream publishing

    • Dwork et al. [18] and Chan et al. [8]—concurrently proposed a hierarchical (binary tree) method for handling binary streams, satisfying event-level DP, with per-step error O(log^1.5 n / ε); Chan et al. also extended it to infinite streams and proposed an online consistency method. The paper notes that this consistency method handles only the binary setting and guarantees integer values, whereas this paper's method targets a more general non-binary setting and minimizes the overall noise error.
    • Dwork et al. [19]—assuming the number of 1s in the stream is small, proposed an online partitioning algorithm that improves on previous bounds.
    • Chen et al. [10] (Pegasus)—data-adaptively partitions the stream into stable intervals and publishes medians; the paper notes that it relies on a stability assumption and that the setting differs (each value consists of multiple users, with sensitivity 1), so no truncation threshold is needed.

    User-level and w-event-level DP

    • Fan et al. [24]—publish perturbed statistics at sampled time points and use Kalman filtering to predict unsampled points, exploiting the seasonal patterns of the data; Acs and Castelluccia [3] and Rastogi and Nath [39]—in the offline setting, publish stream models based on DFT and on sampling/clustering/smoothing, respectively.
    • Bolot et al. [6]—extend the binary tree mechanism over sliding windows and propose decayed privacy; Kellaris et al. [29]—propose w-event DP and two budget allocation schemes; Wang et al. [42] and Fioretto and Hentenryck [25]—adaptively allocate budget for spatiotemporal trajectories or sample representative points, add noise, and smooth-reconstruct.

    LDP stream processing

    • Frequency estimation over categorical domains [5, 23, 43, 47, 53] and its applications to heavy hitters, frequent itemsets, and multidimensional data; over numeric domains, Duchi et al. [15] and Wang et al. [41] mainly estimate the mean, and Li et al. [33] propose the Square Wave (SW) mechanism to estimate density.
    • Erlingsson et al. [22] and Joseph et al. [27]—handle stream data under user-level LDP, with a data model different from this paper's (integer values with a limited number of ±1 changes, Bernoulli bit sequences); Wang et al. [48]—parallel work on w-event metric LDP that assumes patterns exist in user streams and samples turning points to report.

    Baselines and benchmarks: the directly compared baseline is PAK [36] (including its threshold method S-PAK and the original smooth sensitivity version S-P), as well as the Base method that always outputs 0; evaluation uses four real datasets: DNS, Fare, Kosarak, POS.

    Positioning: the authors state that this paper follows the event-level model but handles a bounded real-valued domain (rather than a binary domain), publishes online, does not rely on data-pattern assumptions, and provides both DP and LDP schemes; the authors also state that ToPL is, to their knowledge, the first algorithm to handle this problem under LDP.

  3. How does the paper address this problem?

    ToPS has three components: Noisy Max selects the threshold, a fan-out 16 online consistent hierarchy adds noise, and Recent smoothing; ToPL uses SW+Hybrid to realize LDP.

    Overall approach: first privately estimate the truncation threshold θ from a short segment of the stream, then add noise to the truncated stream using an improved online hierarchy method and publish it, and finally apply smoothing post-processing. The framework is named ToPS (Threshold optimizer, Perturber, Smoother), and the LDP version is ToPL.

    Problem setting

    • Stream V = ⟨v1, v2, ...⟩, with each value in [0, B]; publish an equal-length private sequence Ṽ, using event-level ε-DP (δ = 0), protecting any single value in the stream.
    • The goal is low expected squared error of random range queries, i.e., minimizing E[(Ṽ(i,j) − V(i,j))2], where V(i,j) is the sum over the interval [i, j].

    Threshold optimizer (NM-E)

    • Run the Noisy Max (NM) mechanism on the first m values to select θ: for each candidate θ compute the query q_θ, add Lap(1/ε) noise, and take the θ of the maximum; the query is made monotone, with sensitivity 1.
    • The query design accounts for both bias and variance: qθ(V) = −(√(3mθ))/(c r ϵ)√(2(b−1)logb3(r)) − mθ, where m_θ is the number of the first m values that are no smaller than θ, and c is a constant (c = 60 in the experiments, fixed for all datasets and settings). The candidate set is all integers in [B].
    • Figure 1 shows that on the DNS dataset (ε = 0.1, m = 2^16, r = 2^20), the optimal point θ_q of the approximate query is close to the optimal point θ_t of the true error (the authors take this to mean the approximation is effective).

    Perturber (three improvements to the hierarchy structure)

    • Better fan-out: based on the variance analysis of Qardaji et al. [37], b = 16 is chosen (data-independent), replacing PAK's binary tree.
    • Support for infinite streams: set a query range upper limit r (r = 2^20 in the experiments), build one tree of height h = ⌈log_16 r⌉ for every r observations, with each tree handling a disjoint sub-stream, and parallel composition consumes no extra budget.
    • Online consistency: pre-generate all noise and apply the consistency processing of Hay et al. [26] to the noise, then add it online to the naturally consistent true values; Theorem 3.1 states that the online algorithm gives the same result as the offline consistency algorithm and satisfies DP (proof in Appendix C).

    Smoother

    • Replace the outputs of the lowest s levels of the hierarchy with predicted values; s is obtained by minimizing the approximate squared error (b−1)(logb3(r)−s)(2θ2)/(ϵ2) + (b2sθ2)/(4· 9) (Equation 7), where the smoothing bias is approximated as about θ/3 per value and about b^s/2 values per query.
    • There are five candidate smoothing methods: Recent, Mean, Median, Moving average, Exponential (Appendix D), with Recent chosen by default.

    ToPL (LDP version)

    • Threshold optimizer: no NM is available, so the SW mechanism is used instead to estimate the distribution (uniformly sampling 1024 candidate values from [B]), and θ is selected by minimizing the total error of Equation 8; two modifications are made to SW — removing its smoothing step and setting the density to 0 after 5 consecutive estimated densities below 0.01% (denoted SW-W).
    • Perturber: the server sends θ to the users, who truncate locally and report using the Hybrid mechanism (Appendix E.2, worst-case variance in Equation 14); range queries are summed directly, with no smoother.
    • Privacy argument: the threshold optimizer uses disjoint m observations, the perturber uses ε/h per level, and parallel and sequential composition give overall ε-DP; consistency and smoothing are post-processing.
  4. What experiments did the paper conduct?

    4 real datasets, 200 random range queries, repeated 100 times; the authors state that the MSE of ToPS is 6–10 orders of magnitude lower than PAK.

    Experimental setup

    • Datasets: 4 real datasets (Table 1) — DNS (n = 1,141,961, max 2000), Fare (n = 8,704,495, max 30000), Kosarak (n = 990,002, max 41270), POS (n = 515,597, max 1657).
    • Methods evaluated: ToPS, PAK, and two intermediate methods NM-E (replacing only PAK's threshold stage) and Ĥ16^c (replacing only the hierarchy + smoothing stage); the baseline is Base, which always outputs 0.
    • Metric: MSE (Equation 9, 200 random range queries); Appendix F additionally reports MAE, MMAE, MMSE.
    • Repetitions and parameters: each group of experiments is repeated 100 times, reporting mean and standard deviation (the authors state the standard deviation is very small and almost invisible in the figures); r = 2^20, default m = 65,536, c = 60, fan-out b = 16.
    • Implementation: Python 3.7.3 + NumPy 1.15.3, Linux server (Xeon E7-8867 v3, 576GB memory).
    • Privacy setting: PAK's threshold finding satisfies (ε, δ)-DP, while ToPS satisfies pure ε-DP throughout.

    Main results

    The main results in the body are the curves in Figure 3 (MSE versus ε), with no numerical table given; the numbers that can be checked are the statements the authors make in the body and abstract:

    ComparisonMSE gap reported by the authorsSource
    ToPS vs PAK6–10 orders of magnitude lower (abstract/introduction); the body writes 7–11 orders of magnitudeAbstract, introduction, Section 5.2
    NM-E alone (threshold technique) vs PAK4–8 orders of magnitude lowerIntroduction
    ToPS vs PAK under the same θ100× more accurate range queriesIntroduction
    • The authors state that NM-E contributes more to utility than Ĥ16^c; on Fare and Kosarak, ToPS and NM-E perform similarly, which the authors explain as truncation bias dominating there.
    • Figure 2 visualizes the DNS stream: the authors state that at ε = 0.01 the ToPS prediction is already close to the true values, whereas PAK still has more noise at ε = 0.1 and 0.5.

    Component comparison in the stream publication stage (Section 5.3, θ fixed at the 95th percentile)

    • Smoother (Figure 4, ε 0.01–0.1): on DNS, Recent is best (the authors state this is because the data are stable in the short term); on POS, Mean and Median are worse than the other three; on Fare and Kosarak the differences are very small (the authors state this is because the data have no obvious patterns). Recent is chosen by default.
    • Hierarchy method (Figure 5): the optimal fan-out (H16 vs H2) improves by 5×; the consistency algorithm (H16^c vs H16) improves by about another 2×; adding Recent smoothing (Ĥ16^c) improves by a further stable 10×, but on DNS at ε > 0.08, Ĥ16^c and H16^c are roughly on par, which the authors explain as bias dominating the noise when ε is large.
    • The authors state that when ε increases from 0.01 to 0.1, the accuracy of each method except Ĥ16^c improves by about 100×, consistent with the analysis that variance is proportional to 1/ε².

    Threshold stage comparison (Section 5.4)

    • Fixed percentile (Figure 6, DNS, published with Ĥ16^c): testing with the true p-th percentile (p ∈ {85, 90, 95, 99.5, 99.9}), the authors state that no single p is good under all ε and m; NM-E achieves performance close to the best p-th percentile with ε = 0.05.
    • Private θ finding (Figure 7, ε 0.01–0.1, publication fixed at ε = 0.05): NM-E has lower MSE than S-PAK and S-P on all 4 datasets, and varies little with ε (the authors state that the NM-E output is already stable at small ε); S-PAK and S-P are worse than Base, which always outputs 0, which the authors attribute to the θ they give being too large.

    Performance of ToPL under the LDP setting (Section 5.5)

    • θ finding (Figure 8, ε 0.2–2, publication fixed at ε = 1, m = 65,536): SW-W outperforms SW and Base on all 4 datasets; on Kosarak and POS the advantage reaches up to 3 orders of magnitude (MSE); on Fare and DNS the advantage is not obvious when ε ≥ 1.6. The authors state that SW-W's performance is not very stable and does not improve with ε.
    • End-to-end (Figure 9): on DNS, the visualization of the stream published by ToPL at ε = 1 is close to the true trajectory (the authors state the prediction is quite accurate).

    Other ablations and analyses

    • Appendix F (Figure 10): under the MAE metric, a better hierarchy method no longer brings an overall advantage (the authors state this is because the consistency step optimizes squared error, and note that the L1 optimization method of Lee et al. [31] could be used); on MMAE, the ToPS error can be as low as 1, versus 10^3–10^4 for PAK (depending on the dataset); the MMSE trend is similar to MSE.
    • Figure 1: on DNS, the distributions of the approximate query (Equation 6) and the measured error (Equation 4) are close, and the minimum point θ_q is close to θ_t.
  5. What are some points that can be further explored?

    In Section 7 the authors list three directions: shortening retention, updating θ, and exploiting data patterns; the experiments cover 4 datasets and a limited ε range.

    Limitations and future directions noted by the authors

    • Retention for shortened streams (Section 7): currently the PAK setting is followed, using the first m values to estimate θ without publishing them; the authors state that if output is to begin earlier, fewer observations could be used to first obtain a rough θ, then sequential composition could be used to fine-tune it during publication.
    • Updating θ (Section 7): currently the distribution is assumed unchanged; the authors state that if the distribution changes, the threshold optimizer could be run multiple times (using sequential composition to update while publishing, or parallel composition to set aside some values for updating θ).
    • Exploiting data patterns (Section 7): the authors state that if the data are known to change slowly or exhibit patterns such as diurnal regularity, this might be used to further improve method performance.
    • The paper has no dedicated Limitations section; the above are the extension directions explicitly written in Section 7, Conclusion and Discussion.

    Experimental coverage

    • The subjects are 4 real datasets (DNS, Fare, Kosarak, POS; sizes in Table 1); no end-to-end results on synthetic datasets are involved.
    • The ε range of the DP experiments is 0.01–0.1 (Sections 5.3, 5.4), and the end-to-end comparison (Figure 3) is in the same range; the ε range of the LDP experiments is 0.2–2 (Section 5.5).
    • Each group of experiments uses 200 random range queries, repeated 100 times, with query range upper limit r = 2^20 (Section 5.1).
    • Threshold estimation uses the first m = 65,536 observations by default; Figure 6 additionally tests two settings, m = 4096 and m = 65536.
    • The paper does not report the running time of each method or the computational overhead of the threshold stage (it only states that SW is time- and space-consuming on large domains, hence 1024 candidate values are sampled).
  6. Summarize the main content of the paper

    ToPS/ToPL publish DP/LDP streams using a data-driven threshold plus an online consistent hierarchy structure; the authors state that the MSE is 6–10 orders of magnitude lower than PAK.

    A paper on differentially private data stream publication: the goal is to continuously publish a real-valued stream under event-level ε-DP (and the stronger LDP) so that the mean squared error of random range sum queries is as low as possible.

    • Problem: DP noise is proportional to the data upper bound B, and a large B means poor utility; the existing PAK truncates at a fixed 99.5th percentile and inflates θ, which the authors consider unreliable under different ε and distributions, and it does no post-processing optimization.
    • Method: the framework ToPS has three components — the threshold optimizer uses Noisy Max to select θ by minimizing the total error of bias + noise (constant c = 60); the perturber uses a hierarchy structure with fan-out 16, chunks by the query upper limit r = 2^20 to support infinite streams, and first makes the pre-generated noise consistent before adding it online; the smoother (Recent by default) replaces the outputs of the lowest s levels, with s optimized by Equation 7. The LDP version ToPL uses a modified Square Wave (SW-W) to estimate the distribution and select θ, and the Hybrid mechanism for local perturbation.
    • Results (4 real datasets, 200 random queries, repeated 100 times): the authors state that the MSE of ToPS is 6–10 orders of magnitude lower than PAK (the body also writes 7–11), of which the threshold technique contributes 4–8 orders of magnitude, and range queries are 100× more accurate under the same θ; on components, fan-out 16 improves by 5×, consistency by about 2×, and smoothing by a further 10×; under LDP, SW-W is about 3 orders of magnitude lower than SW on Kosarak and POS.
    • The authors' conclusion: ToPS/ToPL can be used in continuous monitoring scenarios such as smart meters and taxi fare metering, the design is flexible and can be extended to shorten threshold retention, dynamically update θ, and exploit temporal patterns in the data; the code is open-sourced.
Read originalCCS 2021