Abstract
In this paper, we initiate the study of adaptive composition in differential privacy (DP) where the length of the composition and the privacy parameters themselves can be chosen adaptively as a function of the outcomes of previous analyses. This scenario is significantly more complex than the settings covered by existing composition theorems, where algorithms can be chosen adaptively but privacy parameters must be fixed upfront. We define two new primitives to address this: the privacy filter, a stopping rule that halts computation before a pre-specified budget is exceeded, and the privacy odometer, which tracks realized privacy loss in real-time without a pre-specified budget. We demonstrate that in the adaptive parameter setting, these two use cases are fundamentally distinct. We provide privacy filters with bounds comparable to existing non-adaptive theorems and privacy odometers that nearly match them, while proving that odometers must inherently lose a small asymptotic factor, establishing a formal separation between the two tools.
Introduction: The Gap in Classical Composition
Differential Privacy (DP) has become the gold standard for privacy-preserving data analysis, largely due to its robust composition properties. Composition theorems allow analysts to understand the cumulative privacy loss when multiple queries are run on the same dataset. However, standard composition theorems—including the well-known "Advanced Composition" theorem—rely on a critical assumption: the privacy parameters ($\epsilon, \delta$) and the total number of queries ($k$) must be fixed before the data is ever accessed.
In practice, data science is rarely this static. It is an iterative process where an analyst’s next move often depends on the results of the previous one. An analyst might see a promising signal and decide to spend more of their privacy budget to refine a result, or they might stop early if the initial queries return only noise. This "adaptive parameter" setting, where the choice of $\epsilon_i$ is a random variable dependent on prior outputs, falls outside the scope of traditional DP theory. This paper formalizes this "pay-as-you-go" approach, providing the mathematical foundations for dynamic privacy budgeting.
Defining the Adaptive Primitives
To bridge the gap between theory and practice, the authors introduce two primary tools designed for the adaptive parameter composition game:
1. Privacy Filters
A privacy filter acts as a "safety switch." The analyst sets a global privacy budget $(\epsilon_g, \delta_g)$ at the start. As queries are made, the filter monitors the cumulative loss. If a proposed query would cause the total privacy loss to exceed the global budget, the filter outputs a HALT signal, and no further queries are allowed. This is ideal for organizations that have a strict, non-negotiable privacy ceiling.
2. Privacy Odometers
A privacy odometer is more flexible; it does not require a pre-set global budget. Instead, it acts like a speedometer for privacy, providing a running estimate of the total privacy loss $(\epsilon_{total})$ incurred so far. This estimate is guaranteed to be an upper bound on the true privacy loss with high probability. This tool is essential for exploratory data analysis where the final "cost" of the research is not known at the outset.
Methodology: From DP to Martingales
Proving the validity of these tools required a departure from standard DP analysis techniques. The authors utilize the language of martingales and concentration inequalities for self-normalized processes. By modeling the privacy loss as a martingale, they can apply probabilistic bounds that remain valid even when the stopping time (the moment the analyst decides to stop querying) is chosen adaptively based on the data.
This framework allows the authors to move beyond the "tempting heuristic"—the idea that one can simply plug adaptive $\epsilon_i$ values into non-adaptive formulas. They demonstrate that while this heuristic is often used in practice, it requires rigorous justification to ensure that the privacy guarantees do not collapse under the weight of adaptivity.
Key Insights and the "Odometer Tax"
A central contribution of this work is the discovery of a fundamental separation between filters and odometers in the adaptive setting. In the standard, fixed-parameter setting, these two concepts are essentially interchangeable. However, when parameters are adaptive:
- The Filter Efficiency: The authors provide an "Advanced Filter" that nearly matches the efficiency of the standard Advanced Composition theorem. This means there is almost no "penalty" for being adaptive, provided you have a fixed budget in mind.
- The Odometer Tax: The authors prove that any valid privacy odometer must lose a small asymptotic factor—roughly $\sqrt{\log \log n}$ (where $n$ is the dataset size)—compared to a filter. This is a formal mathematical separation; tracking privacy loss "on the fly" is inherently more difficult than simply checking if a limit has been reached.
Conclusion and Future Directions
This research provides the first rigorous treatment of adaptive privacy parameters, offering a theoretical foundation for the way data science is actually performed. While the asymptotic bounds are tight, the authors note that the constant factors in these adaptive theorems are currently larger than their non-adaptive counterparts.
Future work remains to refine these constants for better utility in small-scale datasets and to integrate these filters and odometers into practical DP software libraries. Additionally, while the current work focuses largely on the Laplace mechanism, extending these bounds to the Gaussian mechanism via Rényi DP or f-DP frameworks would further expand the applicability of pay-as-you-go composition in modern machine learning pipelines.
Summary updated