Oblivious RAM Simulation with Efficient Worst-Case Access Overhead

Michael T. Goodrich, Michael Mitzenmacher, Olga Ohrimenko, Roberto Tamassia

Abstract

Oblivious RAM (ORAM) is a critical primitive for protecting data access patterns in cloud storage. However, traditional ORAM constructions often suffer from high amortized costs, leading to significant "performance spikes" during periodic data reshuffling. This paper presents two novel de-amortized ORAM simulations that transform these massive rebuild phases into incremental background tasks. By applying these techniques to square-root and hierarchical ORAM models, the authors achieve consistent, efficient worst-case access overheads, most notably a worst-case overhead of $O(\log n)$.

Introduction

In the context of cloud storage, encryption alone is insufficient to guarantee privacy. An adversary observing a user's access patterns—even to encrypted data—can infer sensitive information about the data's content and the user's activities. Oblivious RAM (ORAM) addresses this by shuffling and re-encrypting data such that every access appears as a random sequence to the server.

Despite their theoretical elegance, most classic ORAM designs rely on amortized efficiency. They perform well for a sequence of requests but occasionally require a massive "rebuild" phase to reshuffle the data, resulting in a worst-case delay of $O(n)$, where $n$ is the number of items. Such delays are unacceptable for real-time systems or shared environments where a single user's rebuild could stall the entire system.

De-amortization Methods

The core contribution of this work is the "de-amortization" of ORAM rebuilds. Instead of executing a massive shuffle all at once, the process is broken into small, incremental steps performed alongside regular data requests.

The Square-Root Solution

Building on the Goldreich-Ostrovsky model, the authors introduce a "ping-pong" buffer system and a background workspace. As shown in the figure below, the standard square-root ORAM (a) uses a single buffer $B$ and a table $T$. The de-amortized version (b) utilizes two buffers ($B_{cur}$ and $B_{prev}$) and a workspace ($W$) to incrementally build a new permuted table ($T_{next}$) over $\sqrt{n}$ requests.

Comparison of standard (a) and de-amortized (b) square-root ORAM architectures.

The Hierarchical Solution

The authors also apply de-amortization to the more complex hierarchical ORAM, which uses Cuckoo Hash Tables across multiple levels. To eliminate performance spikes, they manage parallel, concurrent rebuilds of different levels using a "double-buffering" approach ($T_i$ and $T'_i$). This ensures that a valid, searchable table is always available while a new one is being constructed in the background.

Key Insights and Theoretical Analysis

The primary innovation lies in Incremental Rebuilding: ensuring the background shuffle finishes exactly when the foreground table is exhausted. This requires careful management of "stale" data. In the de-amortized square-root version, the system must check both $B_{cur}$ and $B_{prev}$ to ensure it retrieves the most recent version of a data item, as the background rebuild might be working with an older snapshot.

As a theoretical study, the paper evaluates these algorithms based on mathematical bounds for time (access overhead) and space (server/client memory) rather than empirical datasets. A notable trade-off is the Client Memory Requirement: to achieve $O(\log n)$ worst-case overhead, the client needs a small private workspace ($O(n^\tau)$ for a constant $\tau > 0$). While this departs from "stateless" ORAM, it is a practical assumption for modern devices.

Results

The paper proves that ORAM can be made "smooth" without sacrificing asymptotic efficiency:

  • De-amortized Square Root: Achieves $O(\sqrt{n} \log^2 n)$ worst-case access overhead with $O(1)$ client memory.
  • De-amortized Hierarchical: Achieves $O(\log n)$ worst-case access overhead, matching the best-known amortized bounds while applying to every single request.
  • Storage Efficiency: Both methods maintain $O(n)$ storage overhead on the server.

Discussion and Limitations

While the $O(\log n)$ solution is highly efficient, it requires the client to maintain state, preventing the system from being truly "stateless." Additionally, the security proofs operate under the Honest-but-Curious Model, where the server follows the protocol but attempts to learn from observations. Future work could address "active" adversaries who might maliciously modify data. Finally, while the asymptotic complexity is excellent, the constant factors involved in cuckoo hashing and incremental rebuilding remain a focus for practical implementation optimization.

Summary updated

BibTeX
@inproceedings{goodrich2011oblivious,
  author = {Michael T. Goodrich and Michael Mitzenmacher and Olga Ohrimenko and Roberto Tamassia},
  title = {{Oblivious RAM Simulation with Efficient Worst-Case Access Overhead}},
  booktitle = {CCSW},
  year = {2011},
  doi = {10.1145/2046660.2046680},
}
Figure