How Would Oblivious Memory Boost Graph Analytics on Trusted Processors?

Jiping Yu, Xiaowei Zhu, Kun Chen, Guanyu Feng, Yunyi Chen, Xiaoyu Fan, Wenguang ChenarXiv 2025 · DOI

Abstract

Secure multi-party graph analytics often rely on Trusted Execution Environments (TEEs) to protect sensitive data. However, TEEs remain vulnerable to side-channel attacks that exploit memory access patterns. Existing "data-oblivious" solutions mitigate this by using expensive sorting operations, leading to massive performance overheads. This paper presents ObliGE (Oblivious Graph Engine), a system that utilizes a small amount of on-chip "Oblivious Memory" (OM) to enable hardware-assisted scanning. ObliGE achieves a geometric mean speedup of 186× over traditional sort-scan baselines, making secure large-scale graph processing practical.

Introduction

Trusted Execution Environments, such as Intel SGX, provide a secure enclave for processing sensitive data from multiple parties. While TEEs encrypt data, they do not hide memory access patterns. In graph processing, these patterns can reveal the underlying graph structure—for instance, an observer can infer an edge between two vertices by watching the sequence of memory addresses accessed.

To prevent such leakage, algorithms must be data-oblivious, meaning their memory access patterns are independent of the input data. Historically, this has required sort-based primitives with $O(n \log^2 n)$ complexity, which are significantly slower than standard graph algorithms. ObliGE addresses this by co-designing a 2D storage structure with hardware-assisted cache management.

Methods: Hiding through Hardware-Assisted Scanning

ObliGE shifts the paradigm from "hiding through sorting" to "hiding through scanning." It employs two primary innovations: a 2D grid storage format and the use of on-chip Oblivious Memory (OM).

1. 2D Grid Structure

To ensure deterministic access patterns, ObliGE organizes the graph into a 2D grid of $b^2$ edge blocks. Each block contains a fixed-size list of edges, padded with "null" edges to ensure all blocks appear identical to an external observer.

The 2D grid structure used by ObliGE to organize graph data into uniform blocks.

2. Leveraging Oblivious Memory (OM)

The core of ObliGE is the use of a small, secure "safe zone" within the processor's cache, termed Oblivious Memory. By configuring the L2 cache so that internal accesses are invisible to external memory controllers, ObliGE can perform sensitive updates without leaking information.

The system loads a chunk of destination vertices into the OM and then scans through source vertices. Because all updates occur within the OM, an adversary cannot distinguish which specific vertex is being modified. The paper explores implementing this using existing CPU features like Cache Allocation Technology (CAT) to "pin" data or "Cache As RAM" (CAR) modes.

Key Results

The researchers evaluated ObliGE using large-scale real-world graphs (e.g., eu-2015-host with 11.2M vertices) and synthetic Kronecker graphs.

Massive Performance Gains

ObliGE demonstrates a geometric mean speedup of 186× over sort-scan baselines for common algorithms like PageRank (PR), Breadth-First Search (BFS), and Weakly Connected Components (WCC). For PageRank, ObliGE is only 3.24× slower than insecure frameworks like Ligra, a significant improvement over previous oblivious methods that were orders of magnitude slower.

Robustness to OM Size

A critical finding is that ObliGE does not require a large amount of oblivious memory to be effective. As shown in the evaluation, the performance advantage remains stable even when the OM size is varied significantly relative to a standard L2 cache size.

Performance comparison of ObliGE vs. sort-scan baseline across varying oblivious memory (OM) sizes.

Conclusion

ObliGE demonstrates that by integrating a small amount of oblivious memory into the processor's cache and utilizing a 2D grid storage format, the overhead of secure graph analytics can be drastically reduced. While future work is needed to address traffic timing attacks and malicious adversary models, ObliGE represents a major step toward making private, large-scale graph processing a practical reality.

Summary updated

BibTeX
@misc{yu2025how,
  author = {Jiping Yu and Xiaowei Zhu and Kun Chen and Guanyu Feng and Yunyi Chen and Xiaoyu Fan and Wenguang Chen},
  title = {{How Would Oblivious Memory Boost Graph Analytics on Trusted Processors?}},
  year = {2025},
  eprint = {2512.24255},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.24255},
}
Figure