Ektelo: A Framework for Defining Differentially-Private Computations

Dan Zhang, Ryan McKenna, Ios Kotsogiannis, George Bissias, Michael Hay, Ashwin Machanavajjhala, Gerome MiklauarXiv 2018 · DOI

TL;DR

$\epsilon$ktelo is a modular programming framework that simplifies the creation of accurate and efficient differentially-private (DP) algorithms. By decomposing complex privacy mechanisms into a small set of reusable operators, it allows researchers to build state-of-the-art algorithms that scale to massive domains while providing "privacy for free" through a protected execution kernel.

What Problem Does This Paper Address?

Differential privacy provides a rigorous mathematical guarantee for data privacy, but implementing it in practice is notoriously difficult. Developers face a "triple threat" of challenges:

  1. The Utility Gap: General-purpose DP mechanisms (like the Laplace mechanism) often yield poor accuracy. Achieving state-of-the-art utility requires complex, hand-tuned algorithms.
  2. The Scalability Wall: Many advanced DP algorithms rely on large matrix operations that become computationally infeasible as the number of data dimensions increases.
  3. The Verification Burden: Proving that a new, complex algorithm actually satisfies differential privacy is error-prone. Even small implementation bugs can lead to catastrophic privacy leaks.

Existing frameworks like PINQ focus on ensuring privacy but offer little support for optimizing accuracy or performance. $\epsilon$ktelo aims to bridge this gap by providing a "white-box" framework where privacy, accuracy, and efficiency are all first-class citizens.

Methods

The core of $\epsilon$ktelo is the observation that most DP algorithms for linear counting queries are composed of a few fundamental building blocks. The authors define five operator classes:

  • Transformations: Modify the data (e.g., vectorization, grouping).
  • Query Selection: Decide which queries to ask (e.g., identity, wavelets, adaptive grids).
  • Partition Selection: Group data cells to reduce noise (e.g., DAWA, AHP).
  • Query: The privacy-critical step of adding noise to measurements.
  • Inference: Reconstruct the original data from noisy measurements (e.g., Least Squares, Multiplicative Weights).
The library of operators implemented in $\epsilon$ktelo, categorized by class and color-coded by privacy type (Private, Private→Public, or Public).

To solve the scalability problem, $\epsilon$ktelo introduces implicit matrix representations. Instead of materializing massive dense matrices (which could take gigabytes for high-dimensional data), $\epsilon$ktelo uses metadata and specialized algorithms (like Kronecker products and Prefix sums) to perform matrix-vector products in linear time and constant space.

Finally, the framework uses a Protected Kernel that tracks the "stability" of data transformations and manages the privacy budget automatically. This ensures that any "plan" (a sequence of operators) authored in the framework is guaranteed to be differentially private.

Datasets

The authors evaluated $\epsilon$ktelo using:

  • DPBench: A diverse collection of 10 datasets used to benchmark low-dimensional DP algorithms.
  • US Census Data: A subset of the March 2000 Current Population Survey (49,436 records, ~1.4 million cells) used for high-dimensional scaling tests.
  • Credit Default Dataset: Used to evaluate the framework's utility in a Naive Bayes classification case study.

Key Insights and Ideas

  • Modularity Breeds Innovation: By breaking algorithms into operators, the authors discovered they could create a new variant of the MWEM algorithm simply by swapping its inference engine. This "recombination" improved accuracy by nearly 3x.
  • Logical vs. Physical Separation: Much like a database separates a logical query from its physical execution, $\epsilon$ktelo separates the intent of a privacy algorithm from its implementation. This allows the system to use efficient implicit matrices under the hood without the algorithm designer needing to be a linear algebra expert.
  • Lossless Domain Reduction: The authors introduced a "workload-based partition" operator. If a set of queries doesn't distinguish between certain data bins, those bins can be merged. This is a "lossless" reduction that simultaneously speeds up the algorithm and reduces the noise added to the final result.

Key Results

  • Scalability: $\epsilon$ktelo's implicit matrix techniques allowed algorithms to scale to domains 1000x larger than previous implementations. For example, a Census workload that would require 56GB of memory in dense form was represented in less than 100 bytes.
  • Accuracy: New plans designed in $\epsilon$ktelo for Census data (like Dawa-Striped) outperformed the previous state-of-the-art, PrivBayes, by over 10x in terms of error.
  • Verification Effort: The framework significantly reduces the amount of code that needs to be audited for privacy. Vetting 12 state-of-the-art algorithms in $\epsilon$ktelo required checking only 517 lines of code, compared to 1,837 lines in the original DPBench implementations.

Limitations and Future Work

  • Centralized Setting: The current implementation is designed for a single machine where data vectors fit in memory. While implicit matrices help, the authors suggest future work could involve distributed processing (e.g., Spark or Hive).
  • Relational Constraints: The framework currently handles single-relation schemas and linear counting queries. Support for JOIN operations and more complex SQL-like queries is a planned extension.
  • Automated Optimization: While $\epsilon$ktelo makes it easier to manually design plans, it lacks a cost-based optimizer that can automatically select the best operators for a given workload and privacy budget.

Summary updated

BibTeX
@misc{zhang2018ektelo,
  author = {Dan Zhang and Ryan McKenna and Ios Kotsogiannis and George Bissias and Michael Hay and Ashwin Machanavajjhala and Gerome Miklau},
  title = {{Ektelo: A Framework for Defining Differentially-Private Computations}},
  year = {2018},
  eprint = {1808.03555},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1808.03555},
}
Figure