IncShrink: Architecting Efficient Outsourced Databases using Incremental MPC and Differential Privacy

Chenghong Wang, Johes Bater, Kartik Nayak, Ashwin Machanavajjhala · DOI

Introduction

As organizations increasingly migrate their data to cloud environments, ensuring the security and privacy of that data remains a paramount concern. While encryption protects data at rest, untrusted cloud servers can still infer sensitive information by observing access and update patterns. A particularly critical vulnerability is the update pattern: the timing and volume of new records added to a database. For instance, a sudden influx of records in a retail database could signal a successful marketing campaign or a peak sales period to a cloud provider, even if the content of those records is encrypted.

Traditional Secure Outsourced Databases (SOGDBs) mitigate this by re-evaluating queries from scratch over the entire dataset for every update, which prevents leakage but incurs massive computational overhead. IncShrink addresses this challenge by introducing a framework that maintains materialized views incrementally using a combination of Multi-Party Computation (MPC) and Differential Privacy (DP).

System Architecture

The IncShrink framework operates within a "Transform-and-Shrink" paradigm designed to securely update materialized join tables. The architecture involves three primary entities: Data Owners, non-colluding Servers, and Analysts.

IncShrink High-Level Architecture

As shown in the architecture above, the process follows three main steps:

  1. Transform: When owners update their secret-shared data ($D^0, D^1$), the servers compute new join entries ($\\pi$) using incremental MPC. To prevent unbounded privacy loss, IncShrink enforces exhaustive padding and truncation, ensuring each input record contributes a fixed maximum number of rows to the view.
  2. Secure Cache: These new entries are written to a secure cache, which acts as a temporary buffer.
  3. Shrink: Periodically, the system synchronizes the cache with the main materialized join table. This step is crucial for hiding the exact number of real updates.

The Shrink Protocol

The core innovation for hiding update cardinalities lies in the Shrink Protocol. If the servers simply moved data from the cache to the main table, an observer could count the new rows and infer the update volume. IncShrink prevents this by applying Differential Privacy to the synchronization process.

The Shrink Protocol using Oblivious Sort and DP

As illustrated in the protocol diagram, the secure cache contains both "True" records and "Dummy" padding. The servers perform an Oblivious Sort to group all real records together without revealing their positions. Subsequently, the servers determine a read size ($sz$) by adding Laplace noise to the actual count of true records. By fetching exactly $sz$ records—which may include some dummy tuples or truncate some real ones depending on the noise—the servers ensure that an external observer cannot distinguish the true cardinality of the update from the noise.

Evaluation and Key Results

IncShrink was evaluated using industry-standard benchmarks (TPC-ds) and real-world datasets (Chicago Police Database). The results demonstrate that materialized view-based querying provides a massive performance advantage over traditional secure query methods:

  • Efficiency: IncShrink achieved speedups ranging from 7,800× to 150,000× compared to non-materialized secure databases. For a dataset of 8.8 million records, query times were reduced from days to under 10 minutes.
  • Accuracy: Despite the introduction of DP noise and truncation, the relative query error remained low, typically staying below 4.3%.
  • Privacy-Utility Trade-off: The system allows users to tune the balance between privacy (noise level), accuracy (truncation bounds), and efficiency (dummy overhead).

Conclusion

IncShrink demonstrates that incremental maintenance of materialized views is a viable path toward high-performance, secure outsourced databases. By combining the cryptographic strength of MPC with the statistical guarantees of Differential Privacy, the framework effectively hides sensitive update patterns while maintaining the speed necessary for real-world applications. Future work includes extending the "Transform-and-Shrink" logic to support more complex, nested SQL queries and optimizing privacy budget allocation across multi-query plans.

Summary updated

BibTeX
@inproceedings{wang2022incshrink,
  author = {Chenghong Wang and Johes Bater and Kartik Nayak and Ashwin Machanavajjhala},
  title = {{IncShrink: Architecting Efficient Outsourced Databases using Incremental MPC and Differential Privacy}},
  booktitle = {SIGMOD},
  year = {2022},
  doi = {10.1145/3514221.3526151},
}
Figure