Skip to main content
QUICK REVIEW

[Paper Review] Towards Practical Differential Privacy for SQL Queries

Noah M. Johnson, Joseph P. Near|arXiv (Cornell University)|Jun 28, 2017
Privacy-Preserving Technologies in DataComputer Science31 references26 citations
TL;DR

This paper introduces elastic sensitivity, a novel, efficient approximation of local sensitivity that enables practical differential privacy for complex SQL queries with general equijoins. The authors implement Flex, an end-to-end system that enforces differential privacy on real-world SQL workloads with negligible (0.03%) performance overhead, demonstrating high utility across 9,862 real queries from a large empirical dataset.

ABSTRACT

Differential privacy promises to enable general data analytics while protecting individual privacy, but existing differential privacy mechanisms do not support the wide variety of features and databases used in real-world SQL-based analytics systems. This paper presents the first practical approach for differential privacy of SQL queries. Using 8.1 million real-world queries, we conduct an empirical study to determine the requirements for practical differential privacy, and discuss limitations of previous approaches in light of these requirements. To meet these requirements we propose elastic sensitivity, a novel method for approximating the local sensitivity of queries with general equijoins. We prove that elastic sensitivity is an upper bound on local sensitivity and can therefore be used to enforce differential privacy using any local sensitivity-based mechanism. We build FLEX, a practical end-to-end system to enforce differential privacy for SQL queries using elastic sensitivity. We demonstrate that FLEX is compatible with any existing database, can enforce differential privacy for real-world SQL queries, and incurs negligible (0.03%) performance overhead.

Motivation & Objective

  • To address the gap in practical differential privacy for general-purpose SQL analytics in real-world databases.
  • To identify key requirements for differential privacy systems based on empirical analysis of 8.1 million real-world SQL queries.
  • To design a scalable, efficient method for approximating local sensitivity that supports complex equi-joins in SQL.
  • To build and evaluate an end-to-end system, Flex, that enforces differential privacy on standard SQL queries without modifying the underlying database.
  • To empirically evaluate the utility and performance impact of differential privacy on diverse, real-world statistical queries.

Proposed method

  • Elastic sensitivity is proposed as a sound upper bound on local sensitivity, enabling use with any local sensitivity-based differential privacy mechanism.
  • The method computes sensitivity using only the query structure and precomputed database metrics, avoiding expensive recomputation per query.
  • Elastic sensitivity supports general equijoins by modeling the maximum change in query output under single-tuple perturbations.
  • Flex integrates elastic sensitivity into a middleware layer that intercepts SQL queries, injects noise based on the sensitivity bound, and returns differentially private results.
  • The system is designed to be compatible with any existing SQL database, requiring no changes to the underlying DBMS.
  • The approach uses the Laplace mechanism with noise scaled to the elastic sensitivity value to ensure differential privacy.

Experimental results

Research questions

  • RQ1What are the key characteristics of real-world SQL queries that affect the design of practical differential privacy systems?
  • RQ2Can an efficient approximation of local sensitivity be computed for complex SQL queries with equi-joins?
  • RQ3How does differential privacy impact query utility and performance on real-world workloads?
  • RQ4Can a system enforce differential privacy for standard SQL queries without modifying the underlying database?
  • RQ5What is the performance overhead of enforcing differential privacy at scale on real-world workloads?

Key findings

  • The empirical study of 8.1 million real-world queries revealed that prior evaluation work used non-representative queries, necessitating new design requirements for practical systems.
  • Elastic sensitivity is proven to be a valid upper bound on local sensitivity, ensuring formal differential privacy guarantees when used with any local sensitivity-based mechanism.
  • Flex successfully enforces differential privacy on 9862 real-world statistical queries with negligible performance overhead (0.03%).
  • The system achieves high utility for the majority of queries, particularly those with large population sizes, as shown in the first large-scale evaluation of differential privacy on real workloads.
  • Elastic sensitivity enables efficient sensitivity computation without requiring per-query database scans or complex pre-processing.
  • The approach has been adopted by Uber for internal data analytics, validating its practicality in production environments.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.