Private Computations on Streaming Data

Vladimir Braverman, Kevin Garbe, Eli Jaffe, Rafail OstrovskyIACR ePrint 2024

Abstract

Modern data analytics faces a critical trilemma between scale, memory efficiency, and user privacy. While Secure Multi-Party Computation (MPC) allows for private data aggregation, existing state-of-the-art systems for identifying "heavy hitters"—the most frequent items in a dataset—often require memory that scales linearly with the number of unique items. This paper introduces a novel framework for privacy-preserving streaming algorithms that operate in polylogarithmic space. By combining a hierarchical "halving" strategy with efficient batch validation of doubly-authenticated bits (daBits), the proposed system maintains a near-constant memory footprint. Experimental evaluations demonstrate that this framework can process millions of inputs with high stability, successfully handling workloads where previous linear-space systems fail due to memory exhaustion.

1. Introduction

As telemetry and user data streams grow to encompass millions of devices, the ability to extract meaningful insights without compromising individual privacy has become paramount. The "heavy hitters" problem—identifying the most frequent elements in a data stream—is a foundational task in network monitoring and product analytics. However, implementing this privately at scale introduces three competing requirements:

  1. Scale: The ability to process millions of distinct inputs.
  2. Efficiency: Utilizing streaming algorithms that require minimal (polylogarithmic) memory.
  3. Privacy: Ensuring that individual inputs remain hidden, with only aggregate results revealed.

Existing solutions, such as the Poplar framework, provide privacy but suffer from linear memory growth relative to the number of unique items. In high-cardinality environments, these systems eventually exhaust available RAM. This paper addresses this gap by introducing a framework that bridges the divide between MPC and space-efficient streaming sketches.

2. Methodology

2.1 Two-Server MPC Model

The system utilizes a standard two-server MPC architecture. Users split their data into two secret shares, distributing one to Server A and one to Server B. Provided the servers do not collude, individual user inputs remain mathematically hidden. The servers perform computations on these shares to produce an aggregate result that is only decrypted at the conclusion of the protocol.

2.2 Polylogarithmic Heavy Hitters Algorithm

To avoid the linear memory overhead of tracking every unique key, the authors implement a hierarchical "halving" strategy. The algorithm processes data across multiple layers, progressively filtering out infrequent items. By randomly subsampling or "halving" items in successive layers, the system reduces background noise, allowing heavy hitters to emerge more clearly in deeper layers. This allows the system to maintain a fixed-size accumulator, ensuring memory usage remains constant regardless of the total number of inputs.

2.3 Batch Validation and daBits

Transitioning between Boolean and Arithmetic mathematical domains is a common bottleneck in MPC. The researchers employ daBits (doubly-authenticated bits) to facilitate this transition. To prevent malicious clients from submitting malformed data, the authors developed a novel validation technique using polynomial identity testing. This allows for the efficient verification of client inputs in large batches, ensuring system integrity without the high overhead of traditional zero-knowledge proofs.

2.4 Sketching Integration

The framework integrates standard streaming tools, specifically Count-Min Sketches, into the private multi-party context. This allows the servers to provide frequency estimates for candidate heavy hitters while maintaining the privacy guarantees of the underlying MPC protocol.

3. Experimental Evaluation

3.1 Setup

The system was benchmarked using Amazon EC2 c4.2xlarge instances located in different geographic regions (US-East and US-West) to simulate real-world network latency. Data was modeled using a ZipF distribution (parameter 1.03) to simulate the power-law characteristics of real-world network traffic and word frequencies. Tests ranged from 10,000 to 5,000,000 total inputs.

3.2 Results

  • Memory Stability: While the baseline system (Poplar) exhibited linear memory growth, the proposed framework maintained a constant memory footprint for its accumulators, typically between 100kB and 1MB.
  • Scalability: In head-to-head comparisons, Poplar crashed when attempting to process 5 million inputs due to memory exhaustion. The polylogarithmic framework handled the same volume without performance degradation.
  • Computational Throughput: Despite the complexity of the streaming layers, end-to-end processing times were comparable to existing systems for small datasets and significantly faster for large datasets. This is primarily because the final evaluation phase in this framework is constant-time, whereas linear-space systems require time proportional to the number of unique elements encountered.

4. Discussion and Limitations

While the framework offers significant improvements in scalability, it relies on an approximation model. There remains a small, tunable probability (δ) that a heavy hitter may be missed by the sketching layers. Furthermore, the privacy guarantee is contingent upon the non-collusion of the two processing servers.

Future work will focus on extending this polylogarithmic framework to other streaming primitives, such as estimating the number of unique elements (cardinality estimation) or calculating the entropy of a data stream. These building blocks will eventually enable a comprehensive suite of private, high-scale streaming analytics.

Summary updated

BibTeX
@article{braverman2024private,
  author = {Vladimir Braverman and Kevin Garbe and Eli Jaffe and Rafail Ostrovsky},
  title = {{Private Computations on Streaming Data}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2024},
}
Figure