An Algorithmic Framework For Differentially Private Data Analysis on Trusted Processors.

Joshua Allen, Bolin Ding, Janardhan Kulkarni, Harsha Nori, Olga Ohrimenko, Sergey Yekhanin

Abstract

Differential privacy has emerged as the main definition for private data analysis and machine learning. The global model of differential privacy, which assumes that users trust the data collector, provides strong privacy guarantees and introduces small errors in the output. In contrast, applications of differential privacy in commercial systems by Apple, Google, and Microsoft, use the local model. Here, users do not trust the data collector, and hence randomize their data before sending it to the data collector. Unfortunately, local model is too strong for several important applications and hence is limited in its applicability. In this work, we propose a framework based on trusted processors and a new definition of differential privacy called Oblivious Differential Privacy, which combines the best of both local and global models. The algorithms we design in this framework show interesting interplay of ideas from the streaming algorithms, oblivious algorithms, and differential privacy.

Introduction

Differential Privacy (DP) usually falls into two paradigms: Global DP (GDP) and Local DP (LDP). In the global model, users send raw data to a central collector who adds noise to the final result. This is highly accurate but requires users to trust the collector with their raw data. In the local model, users add noise to their own data before sending it. While this requires zero trust, the cumulative noise makes results significantly less accurate—for example, errors in histograms scale with $\sqrt{n}$ instead of being constant.

This paper introduces Oblivious Differential Privacy (ODP), a framework that bridges this gap. By running DP algorithms inside Trusted Execution Environments (TEEs) like Intel SGX, the authors achieve near-optimal accuracy without requiring users to trust the data collector.

The Side-Channel Challenge

TEEs provide secure "enclaves" where data is decrypted only inside the CPU. However, they suffer from a "side-channel" problem: an adversary (such as the server owner) can observe memory access patterns. Even if the data is encrypted, seeing which memory addresses are accessed can reveal sensitive information. For instance, observing which counter in a histogram is updated reveals information about the record being processed.

Figure 2: Memory access patterns to encrypted counters can reveal sensitive information about the underlying database records.

Methods: Oblivious Differential Privacy

The core contribution is the formal definition of ODP: an algorithm is ODP if the combination of its output and its memory access patterns satisfies standard $(\epsilon, \delta)$-DP requirements. This approach recognizes that full "data-obliviousness" is computationally expensive; instead, we only need the access patterns themselves to be differentially private.

The framework combines three distinct fields:

  • Differential Privacy: To provide mathematical privacy guarantees.
  • Oblivious Algorithms: Techniques (like oblivious sorting) that ensure memory access patterns are independent of input data.
  • Streaming Algorithms: Using memory-efficient sketches (e.g., HyperLogLog) that fit entirely within the TEE's internal registers, effectively hiding access patterns from the external memory bus.
Figure 1: The ODP system architecture, showing data flow from users into a Trusted Execution Environment (TEE) for private analysis.

A notable technical detail is that the sensitivity for histograms in this framework is 2. Because the framework assumes neighboring databases differ by one record (changing from type A to type B), a single update affects two potential bins, requiring slightly more noise than standard DP models where sensitivity is often 1.

Key Results

The ODP framework allows for massive accuracy gains over the Local DP model:

  • Distinct Elements: Achieves an additive error of $O(1/\epsilon)$, matching the Global DP model. Local DP is mathematically incapable of providing useful estimates for this problem (error is $\Omega(n)$).
  • Histograms: Achieves an error of $O(\log(k/\theta)/\epsilon)$. For large datasets, this is orders of magnitude more accurate than the $\Omega(\sqrt{n})$ error seen in Local DP.
  • Efficiency: The proposed ODP histogram algorithm runs in $O(\tilde{n} \log \tilde{n})$ time, making it computationally feasible for production systems.

Limitations and Conclusion

While ODP offers a powerful compromise, it has limitations. It focuses on memory access patterns and does not explicitly account for timing or power analysis side-channels. Additionally, users must trust hardware manufacturers (e.g., Intel) to have implemented the TEE without backdoors. Finally, the current definition requires a fixed database size; if the number of users $n$ is secret, the length of the access pattern could leak this information.

Despite these challenges, ODP provides a robust middle ground for private data analysis. By treating memory access patterns as a private output, the framework achieves high utility without the "trust tax" of global models, opening new avenues for efficient, private machine learning.

Summary updated

BibTeX
@inproceedings{allen2019algorithmic,
  author = {Joshua Allen and Bolin Ding and Janardhan Kulkarni and Harsha Nori and Olga Ohrimenko and Sergey Yekhanin},
  title = {{An Algorithmic Framework For Differentially Private Data Analysis on Trusted Processors.}},
  booktitle = {NeurIPS},
  year = {2019},
  url = {https://openreview.net/forum?id=mKhqjAyl7diT},
}
Figure