Multi-Party Private Function Evaluation for RAM

Keyu Ji, Bingsheng Zhang, Tianpei Lu, Kui Ren

TL;DR

This paper introduces a high-performance Multi-party Computation (MPC) framework for Private Function Evaluation (PFE) that natively supports Random Access Machine (RAM) programs. By combining a novel 4-server distributed ORAM scheme with a simulated RISC processor, the authors enable the secure execution of private algorithms (like binary search or quicksort) while hiding the instructions, memory access patterns, and internal machine state from the computing parties.

What Problem Does This Paper Address?

In standard Multi-party Computation (MPC), players collaboratively compute a public function $f(x)$ while keeping the input $x$ private. Private Function Evaluation (PFE) takes this a step further: it keeps the function $f$ itself secret. This is vital for "Algorithm-as-a-Service" scenarios where a provider wants to run a proprietary diagnostic or medical tool on a client's data without revealing the intellectual property behind the code.

Historically, PFE has been limited by the "circuit bottleneck." To hide a function, researchers typically converted it into a Universal Circuit—a massive, inefficient circuit capable of simulating any other circuit. For programs that rely on random memory access (like searching or sorting), the overhead of converting them into circuits is poly-logarithmic or even polynomial, making them practically unusable for large datasets. This paper asks: Can we build a PFE platform that supports RAM programs directly, avoiding the circuit overhead?

Methods

The authors achieve RAM-based PFE by simulating a virtual CPU (a simplified version of TinyRAM) over a 4-party MPC platform. Their approach rests on two main pillars:

  1. Efficient 4-Server Distributed ORAM (DORAM): To hide memory access patterns, they designed a DORAM scheme where the database is replicated across four servers. Using Distributed Point Functions (DPF), they can read or write to memory with only $O(\log n)$ communication and a single online round. Crucially, their scheme features a very "cheap" initialization phase compared to prior work like Floram.
  2. Oblivious Instruction Cycles: The system simulates a RISC machine through a four-phase cycle:
  3. Instruction Fetching: Uses DORAM to grab the next instruction based on a secret-shared Program Counter (PC).
  4. Instruction Decoding: Uses DPFs to identify the operator and load operands from registers without revealing which instruction is being prepared.
  5. Operation Evaluation: To hide which instruction is actually running, the MPC players evaluate all 25 possible instructions in the RISC set (add, sub, jump, etc.) in parallel.
  6. Result Writing: The players obliviously select the correct result based on the secret operator and write it back to the destination register or memory.

The entire cycle is designed to run in just 5 online rounds, regardless of the specific instruction being executed.

Datasets

As a cryptography and systems paper, the evaluation focuses on algorithmic benchmarks rather than specific data science datasets. The authors prototyped their system in C++ and benchmarked it using:

  • Set Intersection: Comparing two arrays to find common elements.
  • Binary Search: Searching for a value in a sorted array of size up to $2^{10}$.
  • Quicksort: Sorting arrays of various sizes.
  • Network Environments: Evaluations were performed in both LAN (1Gbps) and WAN (100Mbps) settings to measure the impact of latency.

Key Insights and Ideas

  • Hiding the PC is the Key: Unlike standard RAM-MPC where the program is public, PFE must hide the Program Counter and the instruction type. The authors use DPFs to convert a secret-shared opcode into a "one-hot" vector, allowing them to pick the right result without knowing which operation was performed.
  • Parallelism as a Privacy Feature: Evaluating all 25 instructions in parallel sounds wasteful, but in the world of MPC, it is often more efficient than the complex logic required to "branch" obliviously.
  • Initialization Efficiency: One of the biggest hurdles for ORAM in MPC is the setup time. This 4-server model allows for a simple replicated secret sharing setup, making it orders of magnitude faster to initialize than "Circuit ORAM" or "Square-root ORAM."

Key Results

  • Performance: Executing a private binary search on a $2^{10}$ array takes 5.81 seconds. While this sounds slow compared to a local CPU, it is a significant milestone for PFE with full function privacy.
  • Round Complexity: The system achieves a constant 5 online rounds per instruction cycle, providing a predictable and low-latency execution flow.
  • Comparison: The authors show that for large datasets, their DORAM-based approach provides a 6-fold performance advantage in WAN environments compared to existing state-of-the-art distributed ORAMs like Floram.
  • Scalability: The paper provides a theoretical framework to scale the 4-party model to a $t$-collusion-resistant model using $(t+1)^2$ parties.

Limitations and Future Work

  • Semi-Honest Security: The current protocol is secure against "semi-honest" adversaries (who follow the rules but try to learn extra info). It does not yet protect against "malicious" players who might actively deviate from the protocol to corrupt the computation.
  • Information Leakage: The system does not hide the total number of cycles executed. If an algorithm terminates early, an observer might learn something about the input or the function. The authors suggest using differential privacy (padding with random cycles) as a potential fix.
  • Instruction Set: The current RISC set is a simplified version of TinyRAM. Expanding this to a more robust architecture (like a full x86 or ARM subset) would increase the overhead of the "parallel evaluation" phase.

Summary updated

BibTeX
@article{ji2023multi,
  author = {Keyu Ji and Bingsheng Zhang and Tianpei Lu and Kui Ren},
  title = {{Multi-Party Private Function Evaluation for RAM}},
  journal = {IEEE Trans. Inf. Forensics Secur.},
  year = {2023},
  url = {https://openreview.net/forum?id=vhLsrs5T-k9},
}
Figure