Abstract
This paper presents a suite of deterministic, oblivious data structures—including Stacks, FIFOs, and Deques—alongside asymptotically optimal sorting algorithms. By utilizing a hierarchical subarray structure, the author achieves $O(\log n)$ amortized overhead while hiding data, operation sequences, and the number of stored elements.
Introduction
In the realm of privacy-preserving computation, such as Fully Homomorphic Encryption (FHE) or Secure Multi-Party Computation (SMC), encrypting data is only the first step. A significant vulnerability remains: the memory access pattern. If an observer can see which memory addresses are accessed, they can often infer sensitive information about the underlying data or the logic being executed.
While Oblivious RAM (ORAM) offers a general-purpose solution, its complexity and computational overhead are often prohibitive for specific data structures. This work introduces specialized, efficient oblivious data structures that not only hide access patterns but also support "operation hiding," allowing for the private execution of conditional logic without leaking which branch was taken.
Hierarchical Subarray Architecture
The core innovation of this work is the organization of memory into a hierarchy of subarrays (SAs) with exponentially growing sizes ($2^i$). This structure replaces the traditional flat array and enables two primary features:
- Amortized Shifting: Elements are moved between subarrays according to a deterministic pattern tied strictly to a global operation counter, rather than the current occupancy of the structure. Because shifts involving larger subarrays occur less frequently, the total overhead is amortized to $O(\log n)$ for LIFO (Stack) and FIFO queues.
- Operation Hiding: The structures support a "conditional" parameter. A
pushorpopcan be executed such that it appears identical to a standard operation from an external observer's perspective, even if it is a "no-op" (using a special empty element $\emptyset$). This allows developers to writeif-then-elsebranches where both paths perform queue operations, preventing side-channel leakage regarding which branch was executed.
Oblivious Sorting Algorithms
The paper extends these concepts to sorting, a fundamental bottleneck in many privacy-preserving applications.
- O-Mergesort: By utilizing specialized "PopperQueues" to manage the merging process, the author reduces the comparison count by a factor of 1000 compared to previous state-of-the-art oblivious sorting methods (e.g., STOC '14 results).
- O-Quicksort: The paper introduces the first asymptotically optimal oblivious quicksort, achieving $O(n \log n)$ complexity with high probability. It employs a random pivot strategy and LIFO queues to partition elements obliviously, making it highly practical for environments where comparisons are computationally expensive.
Empirical Results
The proposed structures were evaluated using synthetic benchmarks involving up to 1 million operations on queues with capacities exceeding 150,000 elements.
- Efficiency Gains: In Python-based tests, the LIFO and Fast-FIFO structures demonstrated a 100x speedup over the "Linear Oblivious Queue" (a naive baseline that scans all memory for every operation) at a capacity of 10,000 elements.
- Scalability: The O-Mergesort algorithm showed significant practical improvements for massive lists, demonstrating its viability for large-scale secure data processing.
Limitations and Future Considerations
While the $O(\log n)$ amortized cost is a major advancement, the "amortized" nature of the performance means individual operations can occasionally experience high latency when a large shift is triggered. This may limit the use of these structures in hard real-time systems. Additionally, for very small data sets (fewer than 60 elements), the overhead of managing the hierarchy makes linear scanning more efficient. Future research could involve low-level implementations in C++ or hardware to further reduce constant factors and explore the performance floor in production FHE/SMC environments.
Summary updated