NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Eliminating Side Channels with Data Oblivious Execution

48 concepts39 papers

The Hidden Leakage of Memory Access Patterns

Modern privacy-preserving systems—such as Trusted Execution Environments (TEEs), Secure Multi-Party Computation (MPC), and Homomorphic Encryption—protect data values by keeping them encrypted during computation. However, encrypting the data values themselves is not enough to guarantee complete privacy.

As Bolin Ding et al. demonstrate in An Algorithmic Framework For Differentially Private Data Analysis on Trusted Processors, memory access patterns can leak sensitive information even when the underlying data remains encrypted inside a secure hardware enclave. For example, if an algorithm searches a standard binary tree, the sequence of memory addresses it visits directly reveals the path taken through the tree. An untrusted observer can exploit this sequence to infer both the nature of the search query and the structure of the underlying database.

This vulnerability extends beyond TEEs to any environment where an observer can monitor execution metadata, such as cache timing, page faults, or network traffic. To achieve true privacy, algorithms must be data-oblivious: their sequence of operations and memory accesses must be entirely decoupled from, and independent of, the input values.

The Core Mechanics: Making Traces Invariant

In conventional software design, efficiency is achieved through data-dependent branching—skipping unnecessary computations, short-circuiting loops, or chasing pointers based on intermediate results. In data-oblivious execution, this paradigm is completely inverted. Every execution trace must look identical from the outside, regardless of the secrets being processed.

As Jianqiao Mo et al. note in HAAC: A Hardware-Software Co-Design to Accelerate Garbled Circuits, this fixed, deterministic execution path renders standard hardware optimizations like reactive caching and branch prediction largely obsolete. Instead of optimizing for the average case by branching, data-oblivious algorithms must execute a rigid sequence of operations that covers all possibilities uniformly. If an observer looks at the memory bus, they should see the exact same sequence of reads and writes whether the algorithm is processing a minimum value, a maximum value, or random noise.

Building Blocks: From Linear Scans to Sorting Networks

How do we build functional algorithms without data-dependent branching? The simplest primitive is the linear scan. To read or write a single element from an array obliviously, the algorithm must touch every single element in that array.

In GTree: GPU-Friendly Privacy-preserving Decision Tree Training and Inference, Qifan Wang et al. utilize linear scans combined with secret-shared selection functions to modify or retrieve elements without revealing the specific target index to the hardware. Similarly, Jian Liu et al. propose a "carousel" design pattern in The Circle Game: Scalable Private Membership Test Using Trusted Hardware, where an entire database is continuously streamed through a secure enclave in a fixed cycle. Because the server's access pattern remains identical for every query, data-dependent leakage is completely eliminated.

For more complex operations like sorting or database joins, simple linear scans become prohibitively expensive. Instead, developers rely on sorting networks (such as bitonic sort). As Foteini Baldimtsi et al. show in Sorting and Searching Behind the Curtain: Private Outsourced Sort and Frequency-Based Ranking of Search Results Over Encrypted Data, sorting networks use a hardcoded, static sequence of comparisons and swaps. Because the data is compared in the exact same order regardless of its actual values, an observer learns nothing about the underlying distribution or the final sorted order. This primitive allows for efficient, oblivious database equi-joins without relying on heavy cryptographic machinery like Oblivious RAM (ORAM), as demonstrated by Simeon Krastnikov et al. in Efficient Oblivious Database Joins.

Structural Transformations: Flattening Control Flow

Many standard algorithms rely on pointer-chasing and hierarchical structures, such as decision trees or graphs. To make these structures data-oblivious, they must be mathematically transformed to eliminate conditional branching.

Consider a decision tree: evaluating an input requires traversing nodes from root to leaf based on conditional thresholds. To hide this path, Qifan Wang et al. introduce a flattening technique in EnclaveTree: Privacy-preserving Data Stream Training and Inference Using TEE. By converting tree-based logic into a series of matrix multiplications, the authors create a fixed, data-independent memory access path. Every node is evaluated mathematically, but the unwanted paths are multiplied by zero via secret masks, ensuring that the physical memory trace remains completely uniform.

Overcoming the Performance Tax

The primary challenge of data-oblivious execution is its performance overhead; replacing an $O(\log N)$ tree search with an $O(N)$ linear scan quickly becomes impractical for large datasets. However, full-scale ORAM can often be avoided by exploiting specific algorithmic properties.

One powerful approach is initial data permutation. In PermuteRam: Optimizing Oblivious Computation for Efficiency, Shruti Tople et al. demonstrate that randomly permuting a dataset at the start of a computation decouples all subsequent structured memory accesses from the sensitive input values. If the data placement itself is randomized, the algorithm can safely perform standard, structured lookups without leaking the identities of the underlying records.

Another strategy leverages parallelism and batching. As Dana Dachman-Soled et al. show in Oblivious Network RAM and Leveraging Parallelism to Achieve Obliviousness, grouping multiple concurrent program requests into a single transaction allows data redistribution algorithms to map requests across parallel hardware banks. When a sufficient number of requests are batched together, their collective distribution becomes statistically uniform, masking individual access patterns at a near-constant bandwidth cost.

Finally, the strict predictability of data-oblivious execution can actually be turned into a performance advantage for system-level management. In MAGE: Nearly Zero-Cost Virtual Memory for Secure Computation, Sam Kumar et al. demonstrate that because an oblivious program's memory access sequence is entirely deterministic and known in advance, a virtual memory system can proactively plan page allocations and fetches. Instead of reactively handling expensive page faults, the system pre-fetches data exactly when needed, eliminating the traditional virtual memory overhead for massive secure computations.

Key Foundational Work

Graph Drawing in the Cloud: Privately Visualizing Relational Data Using Small Working Storage (2012) — contributed 2 concept elements to this direction.
Privacy-Preserving Access of Outsourced Data via Oblivious RAM Simulation (2011) — contributed 1 concept elements to this direction.
Towards Practical Oblivious RAM (2012) — contributed 1 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_data_oblivious_execution_8926981b,
  title = {data-oblivious execution},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/data-oblivious-execution/rdr_8926981b403048be923c800fb2f6a236},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-28},
}

This exact version (version 1, frozen text):

@misc{lacuna_data_oblivious_execution_8926981b_v1,
  title = {data-oblivious execution},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/data-oblivious-execution/rdr_8926981b403048be923c800fb2f6a236/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-28},
}

See something wrong? Report a mistake