Towards practical differential privacy for SQL queries
Paper · 2018 · Noah Johnson, Joseph P. Near and Dawn Xiaodong Song
Summary
An organization can restrict access to a database and still expose the people whose information it holds. An authorized analyst may ask questions that reveal a particular person’s activity, while apparently anonymous records may become identifiable when combined with other information. Differential privacy offers a different protection: released statistics should behave similarly when a protected contribution changes. The difficulty addressed by Noah Johnson, Joseph P. Near, and Dawn Song is how to make that mathematical promise fit ordinary SQL analytics. Their paper, “Towards Practical Differential Privacy for SQL Queries,” concentrates on counting, including grouped counts, without requiring organizations to replace their database engines.
The authors derive their priorities from an operational workload containing 8.1 million queries. It spans several database backends and includes complicated expressions, repeated joins, and different relationships between matching records. Equality-based joins are particularly important. Such a join connects records whose selected column values agree, but it can also repeat a sensitive record across its output. Consequently, changing a protected tuple may affect far more than a single counted result. The paper introduces elastic sensitivity to bound this amplification. It follows the query’s relational structure and uses previously collected statistics describing the greatest repetition of join-key values. The resulting estimate may exceed the true sensitivity, but the authors prove that it does not underestimate the quantity required by their analysis.
Their system, Flex, converts this bound into a private answer. The existing database evaluates the SQL, while a separate analyzer determines how much noise the release requires. Crucially, Flex does not use the data-dependent elastic bound directly. It applies smooth sensitivity, which accounts for how the bound could change in nearby databases, and then perturbs the answer with Laplace noise. The construction supports general equijoins, including joins between repeated references to a table and joins where keys repeat on both sides. Its restrictions include the requirement that join keys originate in database columns rather than arbitrary computed results.
The main evaluation examines 9862 counting queries involving sensitive trip records. Flex obtains an elastic-sensitivity result for 76% of this workload, with an average reported execution overhead of 0.03%. Under the principal utility settings, most evaluated queries have median error below 10%, whether or not they contain joins. Recognizing public tables improves accuracy substantially because those tables need not receive the same protection as sensitive records. These findings demonstrate a feasible architecture for private SQL statistics, while leaving clear boundaries: the guarantee concerns tuples, several SQL constructions remain unsupported, small groups can require very inaccurate answers, and repeated releases still need privacy-budget accounting.
Interesting ideas
Start with the workload. The authors inspect actual queries before choosing the interface their mechanism should support. This exposes requirements that a convenient benchmark might hide, such as heterogeneous database infrastructure and repeated joins. The approach transfers to evaluation and benchmarks, static analyzers, and language tools: study the operations people combine, then decide which technical restrictions are acceptable.
Analyze alongside an established executor. Flex separates the calculation of a safety bound from the execution of the underlying query. Its analyzer does not need to reproduce the database’s full machinery, because its task is to establish a conservative property of that computation. This pattern is useful for code and programming languages whenever an external checker can justify a property without replacing a mature execution environment.
Summarize the mechanism of amplification. Maximum key frequency is useful because it captures precisely how an equijoin can repeat a contribution. The statistic is reusable across queries and much smaller than the relations it describes. More broadly, an efficient analysis often depends on finding the compact quantity that controls an expensive worst case, rather than retaining every detail of the underlying data.
Follow origins through transformations. Different aliases do not establish independence if both expressions ultimately depend on the same table. Ancestor tracking lets the analysis recognize when a protected change can enter both inputs of a join. The same principle helps with provenance, shared evidence, and knowledge representation and reasoning: apparently separate observations may inherit the same underlying source.
Make exemptions precise. Public data does not need protection against disclosure, but it can still amplify the influence of private data. Flex removes the former obligation while preserving the latter effect. This is a reusable way to design exceptions in security and analysis systems: specify exactly which assumption changes, then retain every consequence that still matters.
Diagnose conservative failures. Poor utility can arise because a question is intrinsically revealing or because an approximation is unnecessarily loose. The authors inspect difficult cases and distinguish these explanations. That separation is valuable in systems that abstain, reject, or return cautious estimates, because the appropriate improvement depends on whether the obstacle belongs to the task or the analysis.
Treat surrounding outputs as part of the result. A noisy histogram count does not protect a sensitive category if the category’s appearance already reveals something. The paper therefore considers labels as well as numeric values. The broader lesson is to examine the whole observable response, including its structure and omissions, rather than applying a guarantee only to its most obvious payload.
Deep dive: Towards practical differential privacy for SQL queries
How elastic sensitivity lets Flex protect SQL counts across joins, what its real-query evaluation shows, and where its privacy guarantees stop. · about 42 minutes to read
How Mova uses it
Mova is a transparent language system written in Rust. Its documented components already distinguish parsing, interpretation, bounded execution, and retained evidence. The connections below concern those mechanisms and possible extensions. They do not establish that Mova implements differential privacy, elastic sensitivity, or Flex. Each status is a proposal assessed against the available implementation evidence; the privacy-specific transfers remain unverified until implemented and measured.
Idea: Derive supported scope from observed requests. Where: Requirements for Practical Differential Privacy, Study Results. Area: evaluation and interface design. Mova: частково є (configured capability resolution in tools/octopus; retained worker outcomes). Mova could classify real requests by the operations they require before expanding its native planner. The paper shows why isolated examples can miss combinations that determine practical coverage. Existing bounded execution provides a place to collect such evidence, but an equivalent workload study is not established.
Idea: Keep analysis separate from execution. Where: FLEX: Practical Differential Privacy for SQL Queries, architecture discussion. Area: operational architecture. Mova: частково є (the linguistic, combinatorial, and operational boundaries in docs/hybrid-system.md). An explicit query analyzer could produce an admission record while a database adapter performs execution. This fits the existing separation of responsibilities, although a privacy-enforcing SQL interface is unknown. The proposed benefit is a smaller, reviewable analysis component with a clear execution contract.
Idea: Use compact summaries of amplification. Where: Elastic Sensitivity, Motivation and Definition of Elastic Sensitivity. Area: data analysis. Mova: нове. A possible statistics component could retain maximum join-key frequencies rather than inspecting complete relations for every request. The digest does not establish this specific summary or its consumer. Why Mova: it offers a concrete route to inexpensive rule-based analysis when the relevant worst case depends on repeated relational keys.
Idea: Track shared origins explicitly. Where: Definition of Elastic Sensitivity, Ancestors of a relation. Area: provenance and reasoning. Mova: частково є (source-bound groupants, typed observations, and dictionary occurrence provenance). Mova could propagate source sets through intermediate computations and refuse to treat overlapping evidence as independent. Existing provenance records identify sources, but the exact ancestor-intersection analysis proposed here is not demonstrated. Its value would be preventing aliases or transformed observations from disguising a common origin.
Idea: Limit exemptions to their stated effect. Where: Optimization for Public Tables. Area: privacy and policy semantics. Mova: частково є (dictionary source credits and licensing distinctions in tools/dictindex). A public-source designation could remove a confidentiality obligation without removing provenance, attribution, or contribution-amplification checks. The existing system already keeps different source properties apart. The proposed extension is an explicit rule showing which obligations a designation changes and which remain applicable.
Idea: Classify the causes of poor outcomes. Where: Effect of Privacy Budget, High-error queries. Area: evaluation and diagnosis. Mova: частково є (miss categories in world/src/knowledge/retention/fastread.rs). Mova already distinguishes representation, inference, parameter, and parsing failures in its fast-reading analysis. The paper suggests adding a distinction between unavoidable task difficulty and conservative analysis. That distinction could direct effort toward better representations or tighter bounds instead of assuming that every failure requires changing the reader.
Idea: Inspect output structure as evidence. Where: Histogram bin enumeration. Area: information release. Mova: нове. A future private reporting interface should analyze labels, missing categories, and response shape alongside numerical values. No corresponding privacy rule is established by the digest. Why Mova: a logical explanation of a protected count would be incomplete if the surrounding response disclosed the same sensitive fact through a category name or its presence.
Idea: Name the protected contribution. Where: Background, Differential privacy for multi-table databases. Area: formal contracts. Mova: нове. Any future privacy capability should declare whether its neighboring-input relation concerns a tuple, an event, or a person’s complete contribution. Elastic sensitivity’s tuple-level result cannot establish the broader alternatives automatically. Why Mova: explicit units would prevent a technically correct calculation from becoming an overstated natural-language assurance.
Idea: Preserve a distinction between interpretation and admission. Where: Definition of Elastic Sensitivity, Core relational algebra; Unsupported Queries. Area: semantic parsing. Mova: вже є (successful parsing is separated from task establishment in docs/hybrid-system.md; unsupported requests retain failure outcomes). A syntactically valid SQL request could still fall outside a privacy analyzer’s admitted algebra. This paper reinforces the existing boundary: understanding the expression’s structure does not establish that every requested operation has a justified implementation.
Idea: Represent the supported language as an explicit algebra. Where: Definition of Elastic Sensitivity, Core relational algebra. Area: syntax and semantics. Mova: частково є (typed frames, layers interfaces, and exact mathematical expressions). A statistics capability could translate admitted requests into a small relational representation with declared rules for selection, projection, joins, and counts. The proposed benefit is that support becomes inspectable through operators and their semantics instead of a collection of successful examples.
Idea: Propagate conservative properties through syntax. Location: the definition of Elastic Sensitivity; local sensitivity is bounded above by Elastic Sensitivity. Area: static analysis. Mova: частково є (typed obernants, invariants, and source-bound checks in groupants). Mova could attach an abstract property to each intermediate expression and derive the final property compositionally. The paper provides a privacy instance of this pattern. Whether Mova’s current combinatorial interfaces support these particular relational transfer rules is unknown.
Idea: Separate soundness from tightness. Where: Local Sensitivity is bounded above by Elastic Sensitivity; queries with high error. Area: mathematics and evaluation. Mova: частково є (declared conformance profiles and approximation evidence in groupants). A conservative estimate should carry a proof obligation that it is safe and a separate measurement of how useful it is. Existing approximation boundaries support this distinction conceptually; a privacy-specific tightness study has not been established.
Idea: Follow correlation through repeated use. Where: Elastic stability proof, self-join subcase. Area: reasoning over dependencies. Mova: частково є (recursive calls retain their own source and configuration identities). Reusing a capability or observation does not necessarily create independent evidence. Mova could record when separate processing paths depend on the same input and later converge. The self-join analysis motivates this dependency check, but does not itself prove a general rule for combining Mova observations.
Idea: Bound each route by which a change propagates. Where: Elastic stability proof, self-join subcase. Area: compositional reasoning. Mova: нове. A proposed analysis could enumerate changes entering through either input and changes meeting across both inputs before deriving a combined bound. No corresponding quantitative propagation calculus is established. Why Mova: explicit paths of influence would make conservative reasoning easier to inspect than an unexplained final safety estimate.
Idea: Reuse valid summaries across tasks. Where: FLEX, Collecting max frequency metrics. Area: data processing. Mova: частково є (versioned sources, immutable index parts, and configuration fingerprints in tools/dictindex). Reusable statistics could be bound to the exact source version from which they were computed. Mova already rejects concealed changes to indexed sources. Applying that discipline to analytical summaries would prevent reuse after their assumptions cease to hold.
Idea: Treat freshness as a correctness condition. Where: Collecting max frequency metrics. Area: storage and invalidation. Mova: частково є (mova-enrich check-source and dictionary-index epoch checks). The paper makes metric refresh necessary for the guarantee, rather than an optional performance refinement. Mova could similarly record which derived properties become invalid after an upstream change. Existing fingerprints provide part of this mechanism, but the proposed privacy-summary dependency chain is unknown.
Idea: Avoid extra source reads during repeated analysis. Where: Elastic Sensitivity, Motivation; FLEX architecture. Area: efficiency. Mova: частково є (dictionary queries operate over prepared indexes; mice share a document graph). A prepared analytical representation can support repeated bounded checks without reparsing or rescanning the original source. Mova already uses this principle in other contexts. The transfer would require measuring whether the retained summaries preserve the properties needed by the new consumer.
Idea: Handle additional constraints conservatively. Where: Definition of Elastic Sensitivity, Join conditions. Area: logic and static analysis. Mova: нове. An analyzer could use an admitted equality predicate to derive a safe upper bound while treating further conjuncts as restrictions that cannot add matches. Why Mova: this offers a precise way to support richer expressions without claiming to understand every condition well enough to tighten the result.
Idea: Refuse computed attributes without a justified summary. Where: Unsupported Queries, join keys produced by counts. Area: data semantics. Mova: частково є (unknown evidence abstains in French repair rules; unsupported configured tasks fail explicitly). A derived value should not inherit properties established only for original columns. Mova already has conservative abstention patterns. The proposed relational version would require explicit transfer rules before accepting computed join keys.
Idea: Keep a data-dependent estimate inside its justified release mechanism. Where: Smoothing functions; Proof of Correctness. Area: privacy mathematics. Mova: нове. If Mova eventually computes private-data-dependent safety estimates, those estimates should not automatically become public explanations or direct noise scales. Why Mova: the paper demonstrates that a useful internal bound and a safe observable release are distinct objects requiring a connecting argument.
Idea: Examine neighborhoods beyond the immediate input. Where: Background, local sensitivity at distance k. Area: robustness analysis. Mova: нове. A proposed checker could study how a property changes across admitted nearby inputs instead of testing only the current case. This is an analogy to the paper’s distance-dependent analysis, not a privacy guarantee for language processing. Why Mova: it could expose brittle rules whose apparent reliability depends on a narrowly favorable input.
Idea: Use mathematical form to shorten a search. Where: Efficiently Calculating S. Area: algorithms and mathematics. Mova: частково є (exact mathematical operations and deterministic algorithms). The polynomial-growth argument shows how a proved monotonic region can terminate an otherwise large maximization. Mova could look for similarly justified cutoffs in bounded searches. Existing exact computation is relevant, but this search theorem and its application are not established.
Idea: Keep probabilistic guarantees distinct from deterministic analysis. Where: Proof of Correctness. Area: execution contracts. Mova: нове. A privacy component could use deterministic parsing and bound calculation while declaring randomness as part of the release mechanism. Why Mova: Mova’s deterministic native inference should not lead it to substitute repeatable noise for the randomized process required by a privacy proof.
Idea: Make histogram domains explicit. Where: Histogram bin enumeration. Area: data representation. Mova: нове. A private grouped-count interface could require an admitted category domain and distinguish public enumerable labels from protected labels. Why Mova: an explicit domain makes output completeness and disclosure assumptions inspectable before execution, rather than inferring them from whichever categories happen to appear.
Idea: Include absent public categories in output planning. Where: Histogram bin enumeration. Area: reporting. Mova: нове. When the supported domain is public, the reporting plan could include categories absent from the current private records before perturbing counts. Why Mova: this prevents response structure from becoming an unintended existence test and gives a precise semantics to missing bins.
Idea: Account for cumulative releases. Where: Privacy Budget & Multiple Queries. Area: operational state. Mova: нове. A privacy-capable worker would need persistent accounting across answers, including an explicit refusal state when its admitted budget is exhausted. Existing worker persistence does not establish such an accountant. Why Mova: individually justified answers do not automatically justify an unlimited conversation over the same sensitive records.
Idea: Separate a low-level mechanism from workload planning. Where: Budget-efficient approaches. Area: system composition. Mova: частково є (capability interfaces and bounded recursive self-use). Flex’s counting interface can sit beneath methods that coordinate several questions. Mova could similarly expose a narrowly specified analytical operation to a higher-level planner. Any composition would still require its own argument; the interface alone would not establish a combined guarantee.
Idea: Measure successful coverage separately from answer quality. Where: Success Rate and Performance of Flex; Utility of Flex on Real-World Queries. Area: evaluation. Mova: частково є (configured unsupported outcomes and separate native-reader assessments). Mova could report how many requests are admitted before reporting accuracy on admitted requests. This would prevent an apparently strong score from hiding broad rejection. The paper’s separate analysis-success result makes this distinction concrete.
Idea: Separate grammar gaps from mathematical gaps. Where: Success Rate and Performance of Flex. Area: parser evaluation. Mova: частково є (parser diagnostics and bounded planner failures). A rejected request could indicate an unrecognized dialect or an operation lacking a justified analysis. The remedies differ. Mova could retain these as separate failure classes so that extending syntax is not mistaken for extending the guarantees of the underlying capability.
Idea: Report costs at their actual boundary. Where: Performance of Flex; Collecting max frequency metrics. Area: performance evaluation. Mova: частково є (dictionary-index measurements distinguish startup and cache scope). Query-time analysis, output processing, and source-summary maintenance should be measured separately. The existing measurement discipline supports this approach. A privacy implementation would need its own cost record before borrowing Flex’s low-overhead conclusion.
Idea: Evaluate utility against the relevant population. Where: Utility of Flex on Real-World Queries, Query population size. Area: statistics. Mova: нове. A future aggregate-answer evaluation could stratify results by the number of distinct contributing records, rather than judging only total output size. Why Mova: the paper shows that numerical usefulness depends strongly on how narrowly a question isolates its contributors.
Idea: Explain what an aggregate metric hides. Where: Utility of Flex-based differential privacy, cell errors and query medians. Area: evaluation design. Mova: частково є (per-question traces and reasons in school reports). Mova could retain detailed errors alongside query-level summaries so that weak bins or subcases remain visible. Existing traces support inspectability, but a median-over-cells statistics report is not established.
Idea: Use component removal to test a claimed benefit. Where: Impact of Public Table Optimization. Area: controlled evaluation. Mova: вже є (regression gates, negative controls, and recorded experiments in training and assessment). The enabled-versus-disabled comparison is a direct example of measuring a component’s contribution under a common procedure. Mova can reuse the design when evaluating provenance checks, routing rules, or proposed analytical optimizations, while keeping each claim tied to its own experiment.
Idea: Compare alternatives on shared inputs and exemptions. Where: Comparison with wPINQ, Experiment Setup. Area: experimental fairness. Mova: частково є (CPU reference behavior and measured GPU agreement). A comparison should align input records, privacy settings, and treatment of public information before attributing utility differences to a mechanism. Mova’s existing reference comparisons share the methodological concern; equivalent controls would be needed for any new statistics baseline.
Idea: Enforce assumptions used by extensions. Where: Supporting Other Aggregation Functions, Value range metric. Area: formal data contracts. Mova: частково є (declared constraints and invariants in groupants). A permitted numeric range used in a proof must be maintained by the data interface, not merely observed in a sample. Mova could make this an executable admission condition. The digest does not establish the specific range-enforced aggregation extension.
Idea: Keep proposed extensions separate from measured capabilities. Where: Discussion of Limitations and Extensions. Area: scientific reporting. Mova: вже є (implemented boundaries and direction are separated in docs/hybrid-system.md and docs/architecture.md). The paper discusses additional aggregations without evaluating them as completed Flex capabilities. Mova should preserve the same distinction when recording a paper-inspired idea, a working implementation, and a measured application.
The problem and its context
Authorized access leaves an inference problem
The paper’s starting point is organizational analytics. Sensitive information is collected for practical purposes, and employees need to investigate it. Questions about service quality, suspicious activity, or business trends rarely fit a fixed menu. SQL gives analysts the flexibility to select records, combine tables, and construct statistics appropriate to the question at hand.
That flexibility creates a difficult protection problem. Restricting database access reduces the set of people who can ask questions, but it does not determine what an admitted analyst can learn. The authors discuss insider breaches to illustrate this gap. A system can correctly enforce its access rules while still allowing a person with legitimate credentials to obtain information that should remain private.
Anonymization addresses a different surface. It attempts to make released data less directly identifying, but the paper cites attacks showing that this can fail when records contain distinctive patterns or can be combined with other information. Its references include How To Break Anonymity of the Netflix Prize Dataset. The role of these examples is to motivate a guarantee about information released by an analysis, rather than confidence based only on the appearance of the records.
Differential privacy formalizes that alternative. The mechanism may be randomized, but its output probabilities must remain sufficiently similar between neighboring databases. The neighboring relation specifies the contribution being protected. This permits useful information about a population while limiting how strongly the released answer can distinguish a protected change.
The paper does not present differential privacy as equivalent to secrecy of the complete database. Its target is statistical release under a precise neighboring-input definition. That precision matters throughout the method: the same query can be harmless at one aggregation level and revealing when filters isolate a tiny group.
Why operational SQL is a demanding target
The authors argue that earlier practical deployments and evaluations frequently concentrated on particular tasks. They discuss statistics about browsing activity and keyboard use as examples of narrower settings. They also describe evaluations centered on histograms or range queries. Such work establishes useful results within those tasks, but it does not automatically answer what happens when analysts submit diverse SQL.
Their empirical study examines 8. Between March 2013 and August 2016, 1 million queries were executed. The data queried includes rider information, driver information, trips, and customer support records. The workload therefore reflects several operational purposes instead of a single carefully selected analytical task.
Database diversity becomes an immediate constraint. The study finds more than 6 backends, with examples including Vertica, Hive, Postgres, and Presto. Requiring a replacement runtime would interfere with an environment where different engines already serve different performance needs. The authors therefore make compatibility with existing databases a central requirement.
Join use is equally consequential. The study reports SQL joins in 62.1% of queries. Equality conditions account for 76% of the observed joins, while 65.9% of queries containing joins use equality-based joins exclusively. These findings support concentrating on equijoins, but they also show why supporting only a highly restricted version would be insufficient.
The join relationships vary. The paper reports 64% as one-to-many, 26% as one-to-one, and 10% as many-to-many. Repeated references to the same table also matter: 28% of queries contain a self join. A mechanism that handles only unique keys or disjoint inputs would therefore exclude important portions of the workload.
Complexity cannot be dismissed as an unusual corner case. Some queries contain 95 joins, and some expressions extend to thousands of clauses. Result sizes also vary widely. This motivates a structural analysis that can follow nested operations, instead of a collection of fixed query templates.
The statistical boundary
The authors report aggregation in 34% of the workload. Their main mechanism targets this statistical portion, particularly counts and histograms. Counts are described as the most frequent aggregation in the study, which also aligns their focus with several earlier mechanisms.
This boundary excludes unrestricted raw-record retrieval. Returning an individual’s underlying records and releasing a noisy population count are different privacy problems. The paper does not claim that adding noise to counts solves the former.
The statistical boundary is also narrower than complete SQL aggregation support. Sums, averages, extrema, and categorical outputs each raise additional issues. The authors discuss several extensions, but the implemented evaluation centers on counting. Understanding this scope prevents the phrase “SQL queries” from being read as a promise about every expression accepted by a database.
Earlier mechanisms and the remaining gap
PINQ offers private counting through a modified query interface. Its join behavior groups matching keys, which preserves ordinary behavior in a one-to-one relationship but differs when repeated keys would produce multiple matching rows. A count of keys is not generally the same statistic as a count of SQL join results.
wPINQ retains broader equijoin support by assigning weights to records and adjusting those weights during joins. This controls sensitivity, but the computation must carry weights throughout execution. The implementation described by the authors uses a special runtime; ordinary database execution would need additional machinery to propagate them.
Restricted sensitivity instead relies on restrictions that hold across permitted databases. A uniqueness constraint can provide a useful global frequency bound. Without such restrictions, many-to-many relationships remain difficult because repeated keys on both inputs can amplify a contribution without a fixed global limit.
DJoin addresses databases held by different parties. Its intersection-based treatment supports one-to-one joins, and its execution requires cryptographic operations. These choices fit its distributed setting, but they do not meet the paper’s combined objective of ordinary database compatibility and broad equijoin semantics.
Elastic sensitivity is intended to occupy the remaining space. It keeps ordinary query answers, avoids changing database execution, and derives a conservative bound from the actual database’s join-key statistics. Its novelty lies in making local-sensitivity reasoning tractable for this query class, rather than introducing a new definition of privacy.
The method, step by step
The method begins with an explicit relational query and ends with a randomized release. Between those points, it separates several obligations: identifying the protected change, bounding propagation through the query, smoothing a data-dependent estimate, and controlling what becomes observable.
Flex analysis and private release
The steps in order.
Define the protected change
The paper represents the database using entries drawn from a tuple domain. The distance between databases counts positions with different contents.
d(x,y) = |{i : xᵢ ≠ yᵢ}|
The symbols x and y denote database instances. The index i identifies an entry, and xᵢ and yᵢ are its contents in the respective instances. The vertical bars denote the number of positions satisfying the condition. Databases are neighbors when this distance is 1.
The authors use bounded differential privacy: neighboring inputs have the same size and differ through a tuple replacement. For several tables, they regard those tables as disjoint portions of an overall database. A neighboring change selects a tuple within a table and changes that tuple.
This arrangement protects a tuple-level contribution. It does not automatically protect every record associated with a person. The distinction is explicit in the paper and should be settled before interpreting any numerical privacy parameter.
The privacy condition concerns all possible output events.
Pr[K(x) ∈ S] ≤ e^ε Pr[K(y) ∈ S] + δ
K is the randomized mechanism, and S is a set of possible outputs. Pr denotes probability over the mechanism’s random choices. The databases x and y are neighbors. The parameter ε supplies the multiplicative allowance, and δ supplies an additive allowance.
The condition constrains distinguishability between neighboring inputs. It does not promise that a particular released count is accurate. Accuracy depends on the query, its sensitivity, the privacy parameters, and the sampled noise.
Separate final-answer sensitivity from relational stability
Global sensitivity asks how much a query’s output can change across the entire permitted database space.
GS_f = max_{x,y : d(x,y)=1} ‖f(x) − f(y)‖
The function f is the query. GS_f denotes its global sensitivity, and the norm measures the magnitude of the output difference. Both x and y vary over neighboring instances.
General joins make this quantity problematic. A row may match an arbitrarily large collection of rows carrying the same key. Without additional restrictions, the largest possible amplification is not bounded usefully.
Local sensitivity fixes the actual database.
LS_f(x) = max_{y : d(x,y)=1} ‖f(x) − f(y)‖
LS_f(x) denotes local sensitivity at x. Only y varies, ranging over neighbors of the actual instance. This quantity can be finite even where global sensitivity offers no practical bound.
Directly finding it is still expensive. The authors estimate that exhaustive neighbor evaluation in their environment would entail more than 1 billion query executions per submitted query. Elastic sensitivity substitutes a structural upper bound for that exhaustive calculation.
For intermediate relational expressions, the paper uses stability. Stability concerns how many relational entries may change before the final numerical aggregation. This lets the analysis follow selections, projections, and joins, then convert the resulting propagation bound into sensitivity for a count.
The distance-dependent extension is essential for smoothing.
A_f⁽ᵏ⁾(x) = max_{y : d(x,y)≤k} LS_f(y)
A_f⁽ᵏ⁾(x) is the largest local sensitivity encountered within distance k of x. The non-negative distance k permits several entries to differ. The elastic analysis must bound this whole neighborhood quantity, rather than only the sensitivity at the actual input.
Obtain the frequency summaries
An equijoin repeats a record according to the number of matching keys on the other input. The relevant summary is therefore the frequency of the most repeated value in a join column.
The paper writes this statistic as mf(a,r,x), where a is an attribute, r is a relation, and x is the database instance. For original tables, the statistic can be collected with SQL grouping and counting, followed by selection of the largest frequency.
This preparation is separate from enforcement for an individual query. The same metric can serve many queries using the column. That reuse is a major source of efficiency: the analyzer needs the query and its stored summaries, rather than additional database inspections for each sensitivity calculation.
Nearby databases may have larger frequencies, so the analysis expands the base-table summary with distance.
mf_k(a,t,x) = mf(a,t,x) + k
The symbol t denotes a table. The term mf(a,t,x) is its actual maximum frequency for attribute a, and mf_k(a,t,x) bounds the corresponding frequency at distance k. The added distance permits changed entries to increase repetition of a key.
For a derived relation, frequency information is propagated through the expression. If a join repeats rows from one side, attributes carried by those rows may also become more frequent. The recurrence therefore combines the input attribute frequency with the matching-key frequency on the opposite input.
Selections receive cautious treatment. Filtering may reduce multiplicities, but the analysis can remain sound by assuming that the records relevant to its worst case survive. This is useful for efficiency and generality, although it can sacrifice tightness.
Read the query as a relational computation
Flex uses the Presto parser as its starting point, adds alias resolution, and performs abstract-interpretation-based dataflow analysis. In parsing terms, recognizing the SQL expression is only the beginning. The analyzer must determine which base attributes and relations each intermediate expression depends on.
Its formal language contains selection, projection, equality joins, scalar counts, and grouped counts. Aggregated subqueries can occur under the stated restrictions. Arbitrary arithmetic changes to aggregation results are outside the simplifying treatment described by the authors.
The analysis carries ancestor sets. An ancestor is an original table that may contribute to an intermediate relation. Two differently named expressions can share an ancestor even when their aliases are distinct.
This is the operational definition needed for self joins. If the ancestor sets overlap, a protected change can affect both inputs. If they do not overlap, a protected tuple change enters through one side or the other.
Propagate elastic stability through joins
Use E_R⁽ᵏ⁾ for elastic stability of a relational expression at distance k. This is a readable name for the paper’s recursively defined bound, not a different quantity.
For a join whose ancestors are disjoint, the recurrence chooses the larger of the possible directional effects.
E_R⁽ᵏ⁾(r₁ ⋈_{a=b} r₂,x) = max(mf_k(a,r₁,x) E_R⁽ᵏ⁾(r₂,x), mf_k(b,r₂,x) E_R⁽ᵏ⁾(r₁,x))
The relations r₁ and r₂ are joined by equality between attributes a and b. The symbol ⋈ denotes the join. Each product multiplies the possible changed rows entering through one input by the greatest matching multiplicity on the other.
Taking the maximum reflects the protected-change definition. With disjoint ancestors, changing a tuple in the underlying database does not simultaneously change both input relations. The analysis nevertheless considers either direction and retains the more damaging one.
Shared ancestors require a different expression.
E_R⁽ᵏ⁾(r₁ ⋈_{a=b} r₂,x) = mf_k(a,r₁,x) E_R⁽ᵏ⁾(r₂,x) + mf_k(b,r₂,x) E_R⁽ᵏ⁾(r₁,x) + E_R⁽ᵏ⁾(r₁,x) E_R⁽ᵏ⁾(r₂,x)
The notation has the same meanings. Here the effects add because changed rows can appear on both inputs. The final product accounts for changed rows matching other changed rows.
The proof explains this recurrence by dividing affected outputs according to their origins. Existing rows from either input can match changed rows from the other. Furthermore, changes on both sides can meet. Accounting for every route produces a conservative bound.
For a scalar count, elastic sensitivity follows the stability of the counted relation. Grouping requires additional care because a changed contribution can move between bins.
E⁽ᵏ⁾(Count_G(r),x) = 2 E_R⁽ᵏ⁾(r,x)
E⁽ᵏ⁾ denotes final-query elastic sensitivity. Count_G is a grouped count over grouping attributes G, and r is the input relation. The factor 2 represents the histogram effect used in the paper’s bounded-change argument.
There is also a distinction between counting as a final numeric operation and counting as an intermediate relation. An ungrouped count produces a relation containing a single row, even though the number stored in that row may change. The relational and numeric analyses must therefore remain separate.
Admit extra predicates without relying on them
A join condition may combine an equality with further restrictions. The paper gives an example that matches identifiers while also comparing sizes.
The equality term supplies the multiplicity bound. Additional conjuncts cannot create matches beyond those allowed by equality, so ignoring their filtering benefit remains conservative.
This does not establish support for arbitrary join conditions. A pure greater-than comparison lacks the equality structure needed by the frequency analysis. Similarly, a join over counts computed inside subqueries lacks the required original-column summaries.
The acceptance rule is semantic rather than merely syntactic. The analyzer needs a justified source for the frequency information used in its recurrence.
Tighten the analysis for public relations
The basic definition treats database records as protected. In practice, some relations may contain information already public in the application.
For a public joined table, the analysis need not consider protected changes to that table. It still must consider how the table duplicates private rows. Its repeated keys remain relevant even though its contents do not require confidentiality.
The paper’s cities example makes the distinction concrete. Public city information can participate in an analytical query without receiving the same protection as trip records. Nonetheless, matching against several public rows can amplify a private contribution.
The resulting optimization multiplies the private input’s stability by the public input’s maximum key frequency. It removes an unnecessary protected-change case while retaining the actual multiplicity effect.
Work through triangle counting
The paper demonstrates the recurrence using directed-graph triangles. The query repeatedly refers to an edges table, matching source and destination attributes and imposing ordering restrictions.
Because every alias refers back to edges, both joins require the self-join treatment. The example uses the ca-HepTh dataset, a maximum-frequency metric of 65, and ε equal to 0.7.
The initial join yields the reported stability expression.
E_R⁽ᵏ⁾(e₁ ⋈ e₂,x) = (65+k) + (65+k) + 1 = 131 + 2k
The aliases e₁ and e₂ refer to edges. The distance is k. The frequency terms bound the directional matches, while the remaining contribution accounts for changed rows meeting across the shared source.
The subsequent join propagates that earlier bound.
E⁽ᵏ⁾(q,x) = (65+k)(131+2k) + (65+k) + (131+2k) = 2k² + 199k + 8711
Here q is the complete triangle-counting query. The resulting polynomial describes the elastic bound at different distances. It is an analytical expression, not an observed error curve.
The example illustrates the main reason for carrying a distance-dependent function. The release mechanism needs to account for how the bound grows beyond the immediate database neighborhood.
Smooth before choosing noise
A local bound depends on private data. If the release mechanism changes its noise directly according to an unstable private quantity, that behavior can itself reveal information. Flex therefore applies the smooth-sensitivity construction.
Its decay parameter is determined by the privacy settings.
β = ε / (2 ln(2/δ))
The parameter β controls decay with distance. The symbols ε and δ are the privacy parameters, and ln denotes the natural logarithm.
The smoothed quantity balances possible growth in sensitivity against exponential decay.
S = max_{k=0,1,…,n} e^(−βk) E⁽ᵏ⁾(q,x)
S is the smoothed upper bound, n is the database size, and E⁽ᵏ⁾(q,x) is elastic sensitivity at distance k. The maximization ranges across the allowed distances.
The final release adds Laplace noise.
Release = q_ℓ(x) + Lap(2S/ε)
The query answer q_ℓ(x) uses the specified histogram labels ℓ where applicable. Lap denotes a Laplace-distributed random quantity with the displayed scale. The scale depends on S and ε.
In the triangle calculation, the paper sets δ to 10⁻⁸. It reports a smoothed bound of 8896.95 at distance 19, leading to the stated noise scale 17793.9 divided by 0.7. Those values complete the example; they do not establish a general utility guarantee for graph statistics.
Understand the proof’s chain of obligations
The correctness argument proceeds structurally. First, the authors show that propagated maximum frequencies bound the corresponding frequencies in nearby databases. Next, they prove the stability recurrence by induction over relational expressions.
The join proof is central because it must cover both disjoint and overlapping ancestors. Projection and selection preserve the conservative argument, while grouped counting introduces the histogram factor.
The resulting theorem relates the computable bound to the actual neighborhood sensitivity.
A_q⁽ᵏ⁾(x) ≤ E⁽ᵏ⁾(q,x)
The left side is the true local-sensitivity envelope for q within distance k. The right side is elastic sensitivity. This inequality establishes safety of the approximation, not equality.
The authors then invoke the cited smooth-sensitivity results. Those results connect the exponentially smoothed upper bound and the selected Laplace scale to the stated differential privacy guarantee.
The separation is useful: elastic sensitivity supplies a tractable bound, while the release theorem explains how that bound may be used. The first result alone would not justify publishing an answer with arbitrary noise.
Reduce the smoothing search
A literal search over every distance up to database size would undermine efficiency. The authors instead exploit the mathematical form of the recurrence.
Elastic stability is polynomial in k, with non-negative coefficients. Its degree has a bound determined by join count.
degree(E_R⁽ᵏ⁾(r,x)) ≤ j(r)²
The function j(r) counts joins in expression r. The degree is the largest power of k appearing in the polynomial.
Exponential decay eventually dominates that polynomial growth. The authors show that the weighted quantity stops increasing beyond the corresponding query-dependent region.
k > j(r)² / β ⇒ S(k) is non-increasing
S(k) denotes the weighted elastic bound at a particular distance. The terms j(r) and β retain their earlier meanings.
This argument changes the search from a database-size problem into a query-structure problem. It is a proved cutoff, rather than a heuristic decision to stop after a convenient number of evaluations.
Protect labels and manage repeated answers
A histogram’s labels are observable information. Returning only categories present in private records can reveal their existence, even if the accompanying counts are perturbed.
The mechanism therefore works with specified labels. Flex can construct them automatically when the domain is finite, enumerable, and public. It includes categories with no matching records, starting their counts at 0 before adding noise.
Protected or non-enumerable labels require the analyst to supply the desired set under the supported arrangement. This is an important limitation on unrestricted grouped queries.
The paper also explains an alternative use of elastic sensitivity within propose-test-release. An analyst proposes a sensitivity b. The analysis finds the nearest distance where its bound reaches that proposal.
k* = argmin_k {E⁽ᵏ⁾(q,x) ≥ b}
The symbol k* is that distance, and b is the proposed sensitivity. The mechanism perturbs the distance test using Laplace noise and checks it against a threshold involving ln² n. A passing test permits an answer with noise scaled by b.
Finally, multiple releases require accounting. Flex does not choose a particular accountant. The authors discuss composition and workload-level techniques that can use a private counting interface, but none removes the need to control cumulative disclosure.
Experiments and results
Distinguish the design study from the implementation evaluation
The 8.1 million-query collection motivates requirements. The experimental dataset is a separate selection of 9862 queries submitted during October 2016.
The authors identify counting queries that access sensitive trip data, including histograms, and retain their original results. This makes it possible to measure both whether Flex can analyze a request and how far its randomized answers depart from the database answers.
The implementation uses Java 8 on Mac OSX. The reported machine has a 2.2 GHz Intel Core i7 processor and 8GB of memory. These details define the setting for the runtime measurements; the paper does not establish identical costs on arbitrary hardware or database deployments.
Coverage and execution cost
Flex successfully derives elastic sensitivity for 76% of the evaluation workload. Unsupported features account for 14.14% of queries. Parser failures account for 6.58%, while other failures account for 3.21%.
These categories are technically different. A missing SQL-dialect production can potentially be repaired by extending the grammar. A query outside the sensitivity method’s supported semantics requires a new analysis, not merely better parsing.
The average parsing-and-analysis time is 7.03 milliseconds. Perturbing the output adds 4.86 milliseconds on average. The database itself takes an average of 42.4 seconds per query, producing the reported overhead of 0.03%.
Flex query-processing stages, average runtime
Output perturbation and sensitivity analysis both have small measured costs.
The numbers
| System or setting | milliseconds |
|---|---|
| Parsing and sensitivity analysis | 7.03 |
| Output perturbation (this paper) | 4.86 |
The significance is architectural. The expensive relational computation remains in the established database, while Flex performs comparatively small surrounding tasks.
Metric preparation is a separate obligation. The runtime measurements do not eliminate the need to collect frequency summaries or refresh them after relevant changes. Query-time overhead and total deployment cost should therefore be distinguished.
How utility is measured
The paper defines population size using the number of distinct trips contributing to an answer. This is intended to indicate how narrowly the query targets the underlying records.
Output size is not a substitute for this quantity. A histogram can contain many cells while some cells depend on very few trips. Conversely, a scalar count may summarize a large population.
For every output cell, the authors measure relative percentage error against the original answer. They summarize each query using the median across those cell errors. This yields a query-level utility measure, but it does not describe the worst-performing bin.
The primary experiment uses ε equal to 0.1 and the following δ setting.
δ = n^(−ε ln n)
The symbol n is database size, ε is the privacy parameter, and ln denotes the natural logarithm.
The authors examine queries with joins separately from those without joins. In both groups, error generally decreases as population size grows. They report median error below 10% for a majority in each group.
A distinct higher-error cluster appears among join queries. Its members use many-to-many joins over private relations and cannot exploit the public-table optimization. Even there, the paper reports median error below 10% when population size exceeds 5 million.
The authors connect these trends to scale-ε exchangeability, terminology from earlier work. Their practical observation is that larger populations can support better utility under the evaluated mechanism. It should not be interpreted as proof that every conceivable query will become accurate in any available database.
Evidence from TPC-H
A second utility experiment uses TPC-H, whose synthetic business workload contains 22 queries over 8 tables. The database is generated with the default scale factor of 1.
The authors select five counting queries, including three containing joins. Other benchmark queries return raw records or use aggregations outside this experiment’s target. The selection contains grouping, filtering, ordering, and subquery features.
Tables containing customer or supplier information receive private status. The region, nation, and part tables are public. Privacy settings and error calculations follow the earlier utility experiment.
The qualitative result agrees with the operational workload: larger populations tend to yield lower error, and queries with more joins tend to be harder. This provides evidence in another data setting, although it is not an evaluation of every TPC-H operation.
The paper identifies released experiment code and data for this benchmark study. It also identifies an open-source implementation of the elastic-sensitivity analysis. Those releases are distinct from making the sensitive operational trip data public.
Changing the privacy parameter
For the remaining utility analyses, the authors exclude queries with population size below 100. They explain that very small groups pose an intrinsic challenge for accurate private statistics.
The privacy-budget experiment considers ε values of 0.1, 1, and 10. Larger values yield lower median errors. At ε equal to 0.1, the reported proportion below 1% median error is 49.8% among the retained, less-sensitive queries.
This result is conditional on the filtering rule and the evaluation setup. It is not a percentage describing every submitted query, every histogram bin, or every unsupported expression.
The parameter description also needs care. The text describes δ as fixed while writing a formula that contains ε. The utility trend is reported clearly, but the wording does not fully resolve how δ was held across that sweep.
Public-table optimization
The enabled-versus-disabled experiment directly tests the value of public-table information. It uses ε equal to 0.1, the stated δ expression, and the exclusion of populations below 100.
Real-query utility with public-table analysis enabled or disabled
Correct public-table treatment increases the share of highly accurate answers.
The numbers
| System or setting | queries with error below 1.0%, % |
|---|---|
| Optimization disabled | 28.5 |
| Flex optimization enabled (this paper) | 49.8 |
The optimization applies to 23.4% of queries. The paper reports that much of the gain comes from moving queries out of the error-above-100% group, rather than from small changes across intermediate groups.
This is an important result because the optimization does not change the SQL answer being requested. It changes the protection assumptions used by the analyzer, removing unnecessary cases while retaining amplification through the public relation.
Comparison with weighted execution
The authors choose wPINQ because it supports the relevant range of join relationships. Directly running its C# programs over the SQL workload is not possible in their setup, so they manually translate selected representative queries.
They choose common join patterns separately for grouped and ungrouped counts. The resulting six queries represent 8.6% of join patterns in the workload.
The comparison includes the public cities table and random samples containing 1.5 million records from each private table. The complete private tables exceed 2 billion records, making full download infeasible for this experiment.
Each wPINQ program is executed 100 times. Both mechanisms use ε equal to 0.1. Reference SQL answers and Flex’s frequency metrics are obtained from the sampled data. Public-table treatment is aligned so that the comparison does not unnecessarily protect public records on one side.
Flex has lower median error for programs 1, 2, 3, and 6. The paper describes the reductions for programs 2 and 3 as more than 90%, and those for programs 1 and 6 as nearly 50%. wPINQ performs better for programs 4 and 5.
For program 5, both methods exceed 900% error, and the median population size is 1. That case illustrates the difficulty of a highly selective statistic, although it does not prove that their sensitivity estimates are equally tight.
The comparison excludes wPINQ’s additional synthetic-data procedure because it is not automated in the evaluated setup. The result therefore concerns the mechanisms as tested, not every possible workflow using weighted private computation.
What the ablations show
Public-table knowledge has a directly measured contribution
The public-table comparison is the paper’s clearest component ablation. The evaluation procedure is repeated with the optimization removed, allowing the authors to examine what changes when all relevant tables receive the more conservative treatment.
The result supports a specific explanation for improved utility. Some joined information does not belong inside the protected neighboring-change relation. Treating it as protected introduces possibilities that the application does not require the mechanism to conceal.
Removing those possibilities can sharply reduce the bound. At the same time, the public relation’s repeated keys still affect private-row duplication. The optimization succeeds because it changes the right part of the reasoning, instead of ignoring the table altogether.
This is not evidence that public status can be assigned casually. The experiment assumes the designation is justified. Incorrectly marking sensitive information public would change the guarantee rather than provide a harmless accuracy improvement.
Join and no-join groups are informative but not matched
The utility plots compare classes of different queries. They do not add a join to an otherwise identical request while holding every other property constant.
Consequently, their similar population-error trends cannot isolate the causal cost of a join. Filters, grouping, participating tables, and population composition may differ across the groups.
What they do show is practically useful: the evaluated join queries do not universally become unusable. Many retain low median error, and their behavior follows the same broad relationship with population size.
The higher-error many-to-many cluster qualifies that conclusion. Join support is feasible, but amplification through private repeated keys can still be expensive.
Difficult cases separate intrinsic disclosure from loose bounds
The authors inspect a random sample of 50 high-error queries. Their categorization is a diagnostic analysis, instead of a proof of the exact sensitivity of each case.
They assign 8% to requests using person-specific information in filtering or grouping. A driver identifier can make a request directly about a particular individual’s records.
Another 72% concern small groups created by restrictions or bins. The analyst need not name a person: combining several ordinary conditions can still leave very few contributing records.
The remaining 20% involve many-to-many joins with large maximum-frequency metrics and no applicable public-table optimization. The authors identify loose elastic bounds as a possible explanation for these cases.
The distinction matters for interpreting future improvements. Tighter analysis might improve the last category without changing the privacy target. It cannot make every intentionally person-specific question safely accurate.
The study does not calculate exact local sensitivity across these difficult queries. It therefore identifies plausible causes without measuring the complete approximation gap.
Parameter variation tests behavior, not a new component
The ε sweep confirms the expected direction of the privacy-utility tradeoff. Allowing a larger privacy parameter reduces error in the evaluated workload.
This is not an ablation of elastic sensitivity, nor does it demonstrate that a larger ε is the right operational choice. It changes the privacy condition, so the utility gain must be considered alongside that altered protection.
Likewise, the wPINQ comparison tests an alternative mechanism instead of removing a Flex component. Its mixed results establish that no universal accuracy ordering follows from the selected examples.
There is no workload-wide experiment substituting exact local sensitivity for elastic sensitivity. The mathematical proof establishes that the approximation is conservative; the experiments establish practical utility for many supported queries. Neither result measures how close the estimate is everywhere.
Limitations
Stated limits of the supported query language
The authors explicitly exclude general non-equijoins. Maximum equality-key frequency does not bound all matches created by a greater-than comparison. Supporting those conditions would require different information about the underlying columns.
They suggest that further database interactions could obtain suitable bounds. That would alter an important feature of the present architecture, which reuses prepared metrics instead of inspecting additional data for every original query.
Computed join keys create another stated restriction. If subqueries produce aggregate values and those values become join keys, the original-column frequency summaries do not describe their distribution.
The workload study finds that 98.5% of joins satisfy the original-column requirement. That observation supports the restriction’s practicality in the studied environment, but does not make the unsupported cases safe.
The distinction between grammar support and analytical support also remains important. Expanding the SQL parser can resolve dialect recognition failures. It cannot supply a missing sensitivity theorem.
Proposed aggregations are not established results
The paper discusses extensions beyond counts, but their utility claims are analytical expectations instead of a comparable completed evaluation.
For sums and averages, the authors introduce a permitted value range for an attribute. It can come from constraints or domain knowledge, but must be enforced once chosen.
E⁽ᵏ⁾(Aggregate_a(r),x) = Range(a,r) E_R⁽ᵏ⁾(r,x)
Aggregate_a denotes the proposed sum or average over attribute a. Range(a,r) is the permitted maximum-minus-minimum range for that attribute in r. The relational term bounds propagation.
For sums without join amplification, the authors describe a favorable sensitivity case. With amplified relations, the bound assumes worst-case values for repeated contributions and can become loose.
For averages, the proposed expression misses the reduction in an individual contribution’s influence as the number of averaged records grows. The authors suggest a separate lower bound on that number, requiring additional query analysis and metrics.
Extrema have a different stated problem. Maximum and minimum can change strongly because of outliers. The authors discuss more robust statistical alternatives from earlier work, while noting that those alternatives do not fit their standard-SQL objective.
A careful reading therefore treats these discussions as a research agenda, not as evidence that Flex already answers all common aggregations well.
Summary maintenance belongs to the guarantee
The authors warn that maximum-frequency metrics must be updated when the relevant frequencies change. An obsolete underestimate can break the privacy argument.
This makes the architecture especially attractive when queries are much more frequent than updates. Triggers are suggested as a possible maintenance mechanism in environments with frequent changes.
The paper does not measure a complete update-heavy deployment. A careful-reader limitation is therefore that low enforcement overhead does not establish low total maintenance cost.
The surrounding implementation must also ensure that the correct summaries correspond to the database instance being queried. The mathematical analysis presupposes valid inputs; it does not make stale or mismatched metadata harmless.
Tuple-level protection has a narrower meaning than person-level privacy
The authors state that protecting individual tuples may be insufficient when a person contributes several records. This caveat applies whether the database has a single table or several.
The evaluation’s population measure counts distinct trips. It does not establish a bound on the number of trips associated with each person or demonstrate protection for all of that person’s records together.
The bounded neighboring relation is equally consequential. The proof analyzes replacement of a tuple while retaining database size. Broader informal descriptions of participation should not obscure that formal choice.
A careful deployment would therefore state the protected contribution explicitly. The paper does not justify replacing its tuple-level statement with an unrestricted promise about everything known about an individual.
Small groups remain difficult even inside large queries
The authors regard low-population requests as intrinsically problematic for accurate private release. Their later experiments exclude populations below 100 for that reason.
Nonetheless, a query with a larger total population can contain small histogram bins or restrictive conditions. The high-error inspection demonstrates why an overall population cutoff does not remove every sensitive subcase.
A further careful-reader limit concerns the utility metric. Median cell error can be low while some cells are inaccurate. The reported percentages should not be interpreted as guarantees for every category in a histogram.
This does not invalidate the evaluation. It defines what the chosen summary measures and what additional inspection would be needed for an application that depends on rare bins.
Conservatism can cost more than privacy requires
Elastic sensitivity is an upper bound. Its proof does not establish that the bound is close to exact local sensitivity.
The analysis may combine worst-case frequency effects without exploiting every relationship among them. It also forgoes some benefits of filtering. Those choices preserve tractability but can increase noise.
The authors explicitly identify many-to-many joins with large frequencies as cases where this looseness may matter. Their diagnostics distinguish this possibility from questions that are inherently revealing.
A careful reader should retain both findings: the bound is justified, and some supported queries may still receive substantially more noise than a tighter tractable method would require. The paper does not quantify that recoverable utility throughout the workload.
Experimental breadth has boundaries
The operational collection is large and varied, and the authors argue that it reflects broader SQL practice. Nonetheless, it comes from one organization.
TPC-H adds a separate setting, but the evaluation selects counting queries rather than the complete benchmark. The evidence therefore supports transfer across the tested counting workloads, not unrestricted coverage of business analytics.
The wPINQ comparison is narrower still. It uses selected patterns, sampled inputs, manual translation, and a particular execution arrangement. The mixed results cannot establish a universal ranking between mechanisms.
The paper also does not present numeric details for every plotted result in its narrative. Its qualitative conclusions about trends should remain qualitative where exact values are not stated.
Privacy accounting and schema assumptions remain external obligations
Flex deliberately leaves privacy-budget management open. Composition can combine releases, and workload-oriented methods can use a private counting interface, but a deployed service must choose and enforce its policy.
Repeated questions therefore remain part of the system design. A per-query guarantee is not permission for an unlimited sequence of answers under unchanged parameters.
The related-work discussion also raises database constraints, including key uniqueness. The authors describe prior concerns about constraints affecting privacy and identify tractable handling as future work.
This is a stated unresolved issue, separate from maintaining frequency summaries. Database semantics can restrict the possible neighboring inputs, and accounting for those restrictions correctly may require further analysis.
What came after
The available later-work record contains no follow-up studies to discuss. There is consequently no supported basis for naming a subsequent result, assigning it an improvement over Flex, or attributing a later research direction to this paper.
The paper itself reports adoption at Uber for internal analytics. That is evidence of practical use described by the authors, rather than evidence about research published afterward.
Its proposed next steps are concrete. Additional summaries could broaden join support, tighter analysis could reduce unnecessary noise, and enforced range information could support further aggregation functions. The discussion of averages identifies a particularly specific missing ingredient: a useful lower bound on how many records contribute.
Another proposed direction places Flex beneath methods that coordinate several questions. Composition, private workload processing, and reusable private approximations can build on a suitable counting interface. The paper describes these connections as compatible possibilities; it does not evaluate all of them as an integrated system.
The contribution established here is the connection between an operational workload and a formally justified analysis boundary. Ordinary database execution remains intact, repeated keys explain amplification, and smoothing connects the resulting data-dependent bound to a private release. The unresolved work concerns extending that boundary, tightening its estimates, and maintaining its assumptions in a complete service.
Cite
Cite as Noah Johnson, Joseph P. Near and Dawn Xiaodong Song. 2018. Towards practical differential privacy for SQL queries. Proceedings of the VLDB Endowment.
@inproceedings{johnson2018practical,
title = {{Towards practical differential privacy for SQL queries}},
author = {Noah Johnson, Joseph P. Near and Dawn Xiaodong Song},
booktitle = {Proceedings of the VLDB Endowment},
year = {2018},
doi = {10.1145/3187009.3177733},
eprint = {1706.09479},
archivePrefix = {arXiv},
url = {https://doi.org/10.1145/3187009.3177733}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/johnson-2018-practical-differential-privacy-sql-queries/
References
- Apple previews iOS 10, the biggest iOS release ever. http://www.apple.com/newsroom/2016/06/apple-previews-ios-10-biggest-ios-release-ever.html. OpenAlex ↗ · Scholar ↗
- Check Constraint. https://msdn.microsoft.com/en-us/library/ms190377.aspx. OpenAlex ↗ · Scholar ↗
- Database Triggers. https://docs.oracle.com/cd/A57673_01/DOC/server/doc/SCN73/ch15.htm. OpenAlex ↗ · Scholar ↗
- Dataflow analysis & differential privacy for SQL queries. http://www.github.com/uber/sql-differential-privacy. OpenAlex ↗ · Scholar ↗
- Elastic Sensitivity experiments using TPC-H. http://www.github.com/sunblaze-ucb/elastic-sensitivity-experiments. OpenAlex ↗ · Scholar ↗
- High Energy Physics - Theory collaboration network. https://snap.stanford.edu/data/ca-HepTh.html. OpenAlex ↗ · Scholar ↗
- Morgan Stanley Breach a Reminder of Insider Risks. https://securityintelligence.com/news/morgan-stanley-breach-reminder-insider-risks/. OpenAlex ↗ · Scholar ↗
- Nearly 5,000 patients affected by UC Irvine medical data breach. http://www.latimes.com/business/la-fi-uc-irvine-data-breach-20150618-story.html. OpenAlex ↗ · Scholar ↗
- Presto: Distributed SQL Query Engine for Big Data. https://prestodb.io/. OpenAlex ↗ · Scholar ↗
- Sutter Health California Pacific Medical Center audit uncovers data breach. http://www.csoonline.com/article/2876324/data-breach/sutter-health-california-pacific-medical-center-audit-uncovers-data-breach.html. OpenAlex ↗ · Scholar ↗
- Swiss spy agency warns U.S., Britain about huge data leak. http://www.reuters.com/article/us-usa-switzerland-datatheft-idUSBRE8B30ID20121204. OpenAlex ↗ · Scholar ↗
- Uber Releases Open Source Project for Differential Privacy. https://medium.com/uber-security-privacy/differential-privacy-open-source-7892c82c42b6. OpenAlex ↗ · Scholar ↗
- Weighted Privacy Integrated Queries. http://cs-people.bu.edu/dproserp/wPINQ.html. OpenAlex ↗ · Scholar ↗
- J. Blocki, A. Blum, A. Datta, and O. Sheffet. Differentially private data analysis of social networks via restricted sensitivity. In Proceedings of the 4th Conference on Innovations in Theoretical Computer Science, ITCS '13, pages 87–96, New York, NY, USA, 2013. ACM. OpenAlex ↗ · Scholar ↗
- J. Blocki, A. Datta, and J. Bonneau. Differentially private password frequency lists. In 23nd Annual Network and Distributed System Security Symposium, NDSS 2016, San Diego, California, USA, February 21-24, 2016. The Internet Society, 2016. OpenAlex ↗ · Scholar ↗
- S. Chen and S. Zhou. Recursive mechanism: Towards node differential privacy and unrestricted joins. In Proceedings of the 2013 ACM SIGMOD International Conference on Management of Data, SIGMOD '13, pages 653–664, New York, NY, USA, 2013. ACM. OpenAlex ↗ · Scholar ↗
- T. P. P. Council. Tpc-h benchmark specification. Published at http://www.tpc.org/tpc_documents_current_versions/pdf/tpc-h_v2.17.2.pdf, 21:592–603, 2008. OpenAlex ↗ · Scholar ↗
- Y.-A. de Montjoye, C. A. Hidalgo, M. Verleysen, and V. D. Blondel. Unique in the crowd: The privacy bounds of human mobility. Scientific reports, 3, 2013. OpenAlex ↗ · Scholar ↗
- B. Ding, M. Winslett, J. Han, and Z. Li. Differentially private data cubes: optimizing noise sources and consistency. In Proceedings of the 2011 ACM SIGMOD International Conference on Management of data, pages 217–228. ACM, 2011. OpenAlex ↗ · Scholar ↗
- C. Dwork. Differential privacy. In M. Bugliesi, B. Preneel, V. Sassone, and I. Wegener, editors, Automata, Languages and Programming, volume 4052 of Lecture Notes in Computer Science, pages 1–12. Springer Berlin Heidelberg, 2006. OpenAlex ↗ · Scholar ↗
- C. Dwork. Differential privacy: A survey of results. In Theory and applications of models of computation, pages 1–19. Springer, 2008. OpenAlex ↗ · Scholar ↗
- C. Dwork and J. Lei. Differential privacy and robust statistics. In Proceedings of the forty-first annual ACM symposium on Theory of computing, pages 371–380. ACM, 2009. OpenAlex ↗ · Scholar ↗
- C. Dwork, F. McSherry, K. Nissim, and A. Smith. Calibrating noise to sensitivity in private data analysis. In Theory of Cryptography Conference, pages 265–284. Springer, 2006. OpenAlex ↗ · Scholar ↗
- C. Dwork, M. Naor, O. Reingold, G. N. Rothblum, and S. Vadhan. On the complexity of differentially private data release: efficient algorithms and hardness results. In Proceedings of the forty-first annual ACM symposium on Theory of computing, pages 381–390. ACM, 2009. OpenAlex ↗ · Scholar ↗
- C. Dwork, A. Roth, et al. The algorithmic foundations of differential privacy. Foundations and Trends in Theoretical Computer Science, 9(3-4):211–407, 2014. OpenAlex ↗ · Scholar ↗
- C. Dwork, G. N. Rothblum, and S. Vadhan. Boosting and differential privacy. In Foundations of Computer Science (FOCS), 2010 51st Annual IEEE Symposium on, pages 51–60. IEEE, 2010. OpenAlex ↗ · Scholar ↗
- Ú. Erlingsson, V. Pihur, and A. Korolova. Rappor: Randomized aggregatable privacy-preserving ordinal response. In Proceedings of the 2014 ACM SIGSAC conference on computer and communications security, pages 1054–1067. ACM, 2014. OpenAlex ↗ · Scholar ↗
- M. Gaboardi, A. Haeberlen, J. Hsu, A. Narayan, and B. C. Pierce. Linear dependent types for differential privacy. In ACM SIGPLAN Notices, volume 48, pages 357–370. ACM, 2013. OpenAlex ↗ · Scholar ↗
- A. Haeberlen, B. C. Pierce, and A. Narayan. Differential privacy under fire. In USENIX Security Symposium, 2011. OpenAlex ↗ · Scholar ↗
- M. Hardt, K. Ligett, and F. McSherry. A simple and practical algorithm for differentially private data release. In Advances in Neural Information Processing Systems, pages 2339–2347, 2012. OpenAlex ↗ · Scholar ↗
- M. Hay, C. Li, G. Miklau, and D. Jensen. Accurate estimation of the degree distribution of private networks. In Data Mining, 2009. ICDM'09. Ninth IEEE International Conference on, pages 169–178. IEEE, 2009. OpenAlex ↗ · Scholar ↗
- M. Hay, A. Machanavajjhala, G. Miklau, Y. Chen, and D. Zhang. Principled evaluation of differentially private algorithms using dpbench. In F. Özcan, G. Koutrika, and S. Madden, editors, Proceedings of the 2016 International Conference on Management of Data, SIGMOD Conference 2016, San Francisco, CA, USA, June 26 - July 01, 2016, pages 139–154. ACM, 2016. OpenAlex ↗ · Scholar ↗
- X. Hu, M. Yuan, J. Yao, Y. Deng, L. Chen, Q. Yang, H. Guan, and J. Zeng. Differential privacy in telco big data platform. PVLDB, 8(12):1692–1703, 2015. OpenAlex ↗ · Scholar ↗
- V. Karwa, S. Raskhodnikova, A. Smith, and G. Yaroslavtsev. Private analysis of graph structure. PVLDB, 4(11):1146–1157, 2011. OpenAlex ↗ · Scholar ↗
- S. P. Kasiviswanathan, K. Nissim, S. Raskhodnikova, and A. Smith. Analyzing graphs with node differential privacy. In Theory of Cryptography, pages 457–476. Springer, 2013. OpenAlex ↗ · Scholar ↗
- D. Kifer and A. Machanavajjhala. No free lunch in data privacy. In Proceedings of the 2011 ACM SIGMOD International Conference on Management of data, pages 193–204. ACM, 2011. OpenAlex ↗ · Scholar ↗
- C. Li, M. Hay, V. Rastogi, G. Miklau, and A. McGregor. Optimizing linear counting queries under differential privacy. In Proceedings of the twenty-ninth ACM SIGMOD-SIGACT-SIGART symposium on Principles of database systems, pages 123–134. ACM, 2010. OpenAlex ↗ · Scholar ↗
- W. Lu, G. Miklau, and V. Gupta. Generating private synthetic databases for untrusted system evaluation. In Data Engineering (ICDE), 2014 IEEE 30th International Conference on, pages 652–663. IEEE, 2014. OpenAlex ↗ · Scholar ↗
- F. McSherry and K. Talwar. Mechanism design via differential privacy. In Foundations of Computer Science, 2007. FOCS'07. 48th Annual IEEE Symposium on, pages 94–103. IEEE, 2007. OpenAlex ↗ · Scholar ↗
- F. D. McSherry. Privacy integrated queries: an extensible platform for privacy-preserving data analysis. In Proceedings of the 2009 ACM SIGMOD International Conference on Management of data, pages 19–30. ACM, 2009. OpenAlex ↗ · Scholar ↗
- P. Mohan, A. Thakurta, E. Shi, D. Song, and D. Culler. Gupt: privacy preserving data analysis made easy. In Proceedings of the 2012 ACM SIGMOD International Conference on Management of Data, pages 349–360. ACM, 2012. OpenAlex ↗ · Scholar ↗
- A. Narayan and A. Haeberlen. Djoin: differentially private join queries over distributed databases. In Presented as part of the 10th USENIX Symposium on Operating Systems Design and Implementation (OSDI 12), pages 149–162, 2012. OpenAlex ↗ · Scholar ↗
- A. Narayanan and V. Shmatikov. How to break anonymity of the Netflix prize dataset. CoRR, abs/cs/0610105, 2006. our card
- K. Nissim, S. Raskhodnikova, and A. Smith. Smooth sensitivity and sampling in private data analysis. In Proceedings of the thirty-ninth annual ACM symposium on Theory of computing, pages 75–84. ACM, 2007. OpenAlex ↗ · Scholar ↗
- K. Nissim, S. Raskhodnikova, and A. Smith. Smooth sensitivity and sampling in private data analysis. 2011. Draft Full Version, v1.0. http://www.cse.psu.edu/~ads22/pubs/NRS07/NRS07-full-draft-v1.pdf. OpenAlex ↗ · Scholar ↗
- V. Pandurangan. On taxis and rainbows: Lessons from NYC's improperly anonymized taxi logs. https://medium.com/@vijayp/of-taxis-and-rainbows-f6bc289679a1. OpenAlex ↗ · Scholar ↗
- D. Proserpio, S. Goldberg, and F. McSherry. Calibrating data to sensitivity in private data analysis: A platform for differentially-private analysis of weighted datasets. PVLDB, 7(8):637–648, 2014. OpenAlex ↗ · Scholar ↗
- I. Roy, S. T. Setty, A. Kilzer, V. Shmatikov, and E. Witchel. Airavat: Security and privacy for mapreduce. In NSDI, volume 10, pages 297–312, 2010. OpenAlex ↗ · Scholar ↗
- A. Sala, X. Zhao, C. Wilson, H. Zheng, and B. Y. Zhao. Sharing graphs using differentially private graph models. In Proceedings of the 2011 ACM SIGCOMM conference on Internet measurement conference, pages 81–98. ACM, 2011. OpenAlex ↗ · Scholar ↗
- A. Smith. Privacy-preserving statistical estimation with optimal convergence rates. In Proceedings of the forty-third annual ACM symposium on Theory of computing, pages 813–822. ACM, 2011. OpenAlex ↗ · Scholar ↗
- L. Sweeney. Weaving technology and policy together to maintain confidentiality. The Journal of Law, Medicine & Ethics, 25(2-3):98–110, 1997. OpenAlex ↗ · Scholar ↗