arXiv:2611.05602cs.DSNov 2026

Manuscript Offprint

arXiv:2611.05602

Private Online Release of Adaptive Linear Queries

Aleksandar Nikolov, Haohua Tang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

In this paper we study answering counting and other linear queries online under differential privacy constraints. Recent work by Nikolov, Tang, and Ullman [STOC 2026] gave the first online algorithm that answers obliviously chosen online linear queries privately, and achieves poly-logarithmic competitiveness against an optimal offline factorization mechanism. This also implied poly-logarithmic competitiveness against arbitrary private offline mechanisms when the private dataset is large enough. The error guarantees of their algorithm, however, can fail when the queries are adaptive. We give a new algorithm that also achieves poly-logarithmic competitiveness, while being able to handle adaptively chosen queries. This implies that there is no large separation between the optimal error bounds for privately answering, respectively, offline linear queries, obliviously chosen online linear queries, and adaptively chosen online linear queries. Our algorithm combines the online factorization approach from prior work with a novel layered Euclidean iterative database construction, presenting a new way to use factorization in private algorithms.

We also give a lower bound that shows that some poly-logarithmic factor in the competitive ratio is unavoidable. Our lower bound first shows that any interactive private mechanism implies a deterministic online factorization algorithm, and then gives a new lower bound for the competitive ratio of any deterministic online factorization algorithm.

*Department of Computer Science, University of Toronto. Supported in part by an NSERC Discovery Grant (RGPIN-2021-03206), and the Canada Research Chairs program (CRC-2020-00004). †Department of Computer Science, University of Toronto. Supported in part by an NSERC Discovery Grant (RGPIN-2021-03206), and the Canada Research Chairs program (CRC-2020-00004).

1 Introduction

In the 20 years since it was introduced, differential privacy [DMNS06] has become the golden standard for analyzing data with rigorous individual privacy guarantees. Roughly, differential privacy requires that the output of the data analysis mechanism on a pair of neighboring datasets be similar. In this paper, as is standard, we assume that a dataset is a sequence of data points from some finite universe U\mathcal{U}, and say XX and X′X' are neighboring if one can obtain X′X' from XX by adding or removing one data point. This is the add/remove, or unbounded notion of neighborhood. The formal definition of differential privacy is as follows.

Definition 1.1 (Differential privacy [DMNS06]). A randomized mechanism M\mathcal{M} is (ε,δ)(\varepsilon, \delta)-differentially private if, for any pair of neighboring datasets X,X′X, X', and every measurable set SS of outputs,

Pr⁡[M(X)∈S]≤eεPr⁡[M(X′)∈S]+δ.\Pr[\mathcal{M}(X) \in S] \leq e^{\varepsilon} \Pr[\mathcal{M}(X') \in S] + \delta.

Absent privacy constraints, data analysts often interact repeatedly with their data, by first doing exploratory analysis, before settling on a final collection of statistical analyses. Differential privacy doesn't allow direct data access, and, instead, the analyst must interact with the data via the private mechanism. To offer an interactive workflow similar to the non-private setting, the mechanism should itself be interactive, and be able to answer the analyst's queries immediately, before new queries are specified based on the answers to the initial ones. This motivates the online/interactive private query release problem: design mechanisms that receive a new query at each time step, output a reasonably accurate answer to it, and ensure that the entire interaction transcript is differentially private.

In the interactive query release problem, the queries could be obliviously chosen, i.e., unknown to the mechanism but fixed ahead of time, or adaptive, where new queries depend on the transcript so far. Understanding the adaptive queries case is of particular practical importance. For example, suppose we have a dataset of demographic statistics. A data analyst may first want to understand correlations between ethnicity and a certain income level, and only after seeing a high correlation with one of the ethnicities, they ask more queries that may reveal confounding factors. These queries are adaptively chosen, so the data releasing mechanism must have both privacy and accuracy guarantees against adaptively chosen queries. Another advantage of interactive mechanisms that can accurately answer adaptively chosen queries is that other algorithms can use them as subroutines. As a toy example, suppose we have a dataset of ages of a group of people, and the type of query allowed is to count the number of people inside an age range. We can then use binary search to find an approximate median age for the group using adaptively chosen range queries. Adaptivity is important since binary search chooses its next query based on answers to the previous ones.

Overall, these examples show the importance of adaptiveness of queries for private interactive data release.

Alongside the motivation from private data analysis, asking adaptive queries poses statistical validity questions even when privacy is not a concern. In particular, adaptively analyzing a fixed dataset may lead to results that overfit to the data and do not generalize to the underlying population [GL14]. Prior work [DFH+15, BNS+16] has shown that differential privacy can be used as a tool to ensure validity of adaptive data analysis: an analyst that interacts with the data via a differentially private mechanism, even adaptively, cannot overfit to the dataset. Slightly more precisely, if an interactive mechanism answers adaptively chosen queries privately, and accurately with respect to the dataset, then its answers are also accurate with respect to the population. This provides further motivation for the interactive private query release problem in the adaptive setting.

Despite the substantial motivation for developing interactive private mechanisms that can accurately answer queries posed by an adaptive analyst, optimal mechanisms for this problem are poorly understood, even for the fundamental example of counting queries, i.e., queries of the type, "How many data points satisfy a given property?" By contrast, there is a substantial body of work in differential privacy that has identified approximately optimal mechanisms for answering offline counting queries, and, more generally, linear queries (see the definition below) [HT10, BDKT12, NTZ16, BBNS19, ENU20]. These mechanisms need all queries to be specified ahead of time, run in time polynomial in the dataset size, universe size, and number of queries, and achieve error within poly-logarithmic factors of the optimal error achievable by any differentially private mechanism. Our goal in this paper is to achieve similar guarantees in the interactive setting with adaptive queries.

References (32)