Abstract: We revisit one of the most basic and widely applicable techniques in the literature of differential privacy – the sparse vector technique [Dwork et al., STOC 2009]. This simple algorithm privately tests whether the value of a given query on a database is close to what we expect it to be. It allows to ask an unbounded number of queries as long as the answer is close to what we expect, and halts following the first query for which this is not the case. We suggest an alternative, equally simple, algorithm that can continue testing queries as long as any single individual does not contribute to the answer of too many queries whose answer deviates substantially form what we expect. Our analysis is subtle and some of its ingredients may be more widely applicable. In some cases our new algorithm allows to privately extract much more information from the database than the original. We demonstrate this by applying our algorithm to the shifting-heavy-hitters problem: On every time step, each of n users gets a new input, and the task is to privately identify all the current heavy-hitters. That is, on time step i, the goal is to identify all data elements x such that many of the users have x as their current input. We present an algorithm for this problem with improved error guarantees over what can be obtained using existing techniques. Specifically, the error of our algorithm depends on the maximal number of times that a single user holds a heavy-hitter as input, rather than the total number of times in which a heavy-hitter exists.
Introduction
The Sparse Vector Technique (SVT) is a foundational tool in differential privacy (DP). It allows researchers to ask a massive number of queries while only "paying" a privacy cost for queries that return a "meaningful" result—typically defined as an answer exceeding a specific threshold. However, the standard SVT is brittle: once it identifies a fixed number of signals, it must halt, or the researcher must reset the algorithm, which quickly inflates noise and degrades utility.
Presented at COLT 2021, this paper introduces ThresholdMonitor, an evolution of SVT designed for continuous monitoring. By rethinking how privacy budgets are consumed, the authors provide a more powerful algorithm that doesn't have to stop just because it found what it was looking for.
Rethinking Privacy Budgets: From Global to Local
The core limitation of standard SVT is that it treats the privacy budget as a global resource exhausted by the output. If an algorithm finds a signal, it assumes everyone's privacy is equally impacted.
ThresholdMonitor shifts this perspective, treating the privacy budget as a local resource exhausted by the input. The authors' key insight is that a meaningful query result doesn't necessarily leak information about every individual in the database. If a query is high because of User A, User B’s privacy budget shouldn't be penalized.
The Deletion Mechanism
In ThresholdMonitor, when a query is deemed "meaningful," the algorithm identifies which users contributed to that result and increments a local counter for them. Once a user has contributed to $k$ meaningful results, they are "retired" or deleted from the database for all future queries. This allows the algorithm to continue providing high-utility answers for the rest of the database, effectively bypassing the halting problem of traditional SVT.
The Two-Noise Trick
Analyzing this mechanism is mathematically challenging because the decision to delete a user depends on noisy query results, creating a circular dependency. To solve this, the authors use a "two-noise" approach. They add two independent Laplace noises ($w_i$ and $v_i$) to each query:
- One noise is used to partition the timeline into "safe" and "risky" steps.
- The other provides the actual privacy guarantee.
This sophisticated analysis proves that the privacy loss scales with $\sqrt{k}$ (the maximum contributions per user) rather than the total number of signals found across the entire population.
Key Results and Applications
The primary benchmark for ThresholdMonitor is the shifting heavy-hitters problem. In this scenario, $n$ users receive new inputs at each time step, and the goal is to privately identify popular items in a changing stream.
- Improved Error Bounds: The error of
ThresholdMonitordepends on the maximum number of times a single user holds a heavy hitter, rather than the total number of heavy hitters that exist over time. - Increased Information Extraction: In synthetic tests, the algorithm identified $O(n)$ heavy hitters in cases where standard SVT would fail after identifying only $O(n^{2/3})$.
- Privacy Guarantee: The algorithm is proven to be $(\epsilon, \delta)$-differentially private.
Conclusion and Future Directions
By turning SVT into a continuous monitoring tool, ThresholdMonitor offers a significant leap in utility for tracking trends in streaming data. The authors suggest that this "deletion-based" approach to privacy budgeting could be applied to other DP primitives, potentially leading to a more general framework for user-level privacy accounting in interactive settings. While the "two-noise" analysis is subtle and requires careful parameter tuning, it demonstrates that privacy doesn't always have to come at the cost of long-term monitoring capability.
Summary updated