Lune

OSDI2021Top-tier venue

MAGE: Nearly Zero-Cost Virtual Memory for Secure Computation

Sam Kumar, David E. Culler, Raluca Ada Popa

Abstract

Secure Computation (SC) is a family of cryptographic primitives for computing on encrypted data in single-party and multi-party settings. SC is being increasingly adopted by in-dustry for a variety of applications. A significant obstacle to using SC for practical applications is the memory overhead of the underlying cryptography. We develop MAGE, an execution engine for SC that efficiently runs SC computations that do not fit in memory. We observe that, due to their intended security guarantees, SC schemes are inherently oblivious — their memory access patterns are independent of the input data. Using this property, MAGE calculates the memory access pattern ahead of time and uses it to produce a memory management plan. This formulation of memory management, which we call memory programming , is a generalization of paging that allows MAGE to provide a highly efficient virtual memory abstraction for SC. MAGE outperforms the OS virtual memory system by up to an order of magnitude, and in many cases, runs SC computations that do not fit in memory at nearly the same speed as if the underlying machines had unbounded physical memory to fit the entire computation. Abstract Our artifact consists of a MAGE prototype and scripts to use it to run our experiments from §8. The MAGE prototype can execute SC efficiently even when the computation does not fit in memory. It does so by using memory programming to provide a very efficient virtual memory abstraction. Our prototype supports distributing an SC computation across workers that communicate over the network, allowing for parallel and distributed SC execution. The MAGE prototype presently supports two SC protocols: garbled circuits and CKKS. It follows the layered architecture described in §4.3. artifact be used

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

6 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Osprey: Transparent and Efficient Virtual Memory for Secure Computation cites GAZELLE: A Low Latency Framework for Secure Neural Network Inference
  • Osprey: Transparent and Efficient Virtual Memory for Secure Computation cites SecureML: A System for Scalable Privacy-Preserving Machine Learning
  • Oblivious Neural Network Predictions via MiniONN Transformations cites SecureML: A System for Scalable Privacy-Preserving Machine Learning
  • Secure Outsourced Matrix Computation and Application to Neural Networks cites Oblivious Neural Network Predictions via MiniONN Transformations
  • Secure Outsourced Matrix Computation and Application to Neural Networks cites GAZELLE: A Low Latency Framework for Secure Neural Network Inference
  • Secure Outsourced Matrix Computation and Application to Neural Networks cites SecureML: A System for Scalable Privacy-Preserving Machine Learning
  • HAAC: A Hardware-Software Co-Design to Accelerate Garbled Circuits cites Oblivious Neural Network Predictions via MiniONN Transformations
  • HAAC: A Hardware-Software Co-Design to Accelerate Garbled Circuits cites GAZELLE: A Low Latency Framework for Secure Neural Network Inference
  • HAAC: A Hardware-Software Co-Design to Accelerate Garbled Circuits cites SecureML: A System for Scalable Privacy-Preserving Machine Learning
  • FLASH: Towards a High-performance Hardware Acceleration Architecture for Cross-silo Federated Learning cites SecureML: A System for Scalable Privacy-Preserving Machine Learning
  • GAZELLE: A Low Latency Framework for Secure Neural Network Inference cites Oblivious Neural Network Predictions via MiniONN Transformations
  • GAZELLE: A Low Latency Framework for Secure Neural Network Inference cites SecureML: A System for Scalable Privacy-Preserving Machine Learning
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. SECRECY: Secure collaborative analytics in untrusted cloudsJohn Liagouris, Vasiliki Kalavri, Muhammad Faisal, Mayank VariaNSDI 2023 · 53 citations
  2. FLASH: Towards a High-performance Hardware Acceleration Architecture for Cross-silo Federated LearningJunxue Zhang, Xiaodian Cheng, Wei Wang, Liu Yang et al.NSDI 2023 · 29 citations
  3. HAAC: A Hardware-Software Co-Design to Accelerate Garbled CircuitsJianqiao Mo, Jayanth Gopinath, Brandon ReagenISCA 2023 · 23 citations
  4. Osprey: Transparent and Efficient Virtual Memory for Secure ComputationYicheng Liu, Alice Yeh, Harry Xu, Raluca Ada Popa et al.OSDI 2026
  5. Cerium: A Multi-GPU Framework for Terabyte-Scale Encrypted InferenceSiddharth Jayashankar, Joshua Kim, Michael B. Sullivan, Wenting Zheng et al.SOSP 2026

Builds on22

  1. SecureML: A System for Scalable Privacy-Preserving Machine LearningPayman Mohassel, Yupeng ZhangS&P 2017 · 2,107 citations
  2. GAZELLE: A Low Latency Framework for Secure Neural Network InferenceChiraag Juvekar, Vinod Vaikuntanathan, Anantha P. ChandrakasanUSENIX Security 2018 · 1,075 citations
  3. Oblivious Neural Network Predictions via MiniONN TransformationsJian Liu, Mika Juuti, Yao Lu, N. AsokanCCS 2017 · 800 citations
  4. MASCOT: Faster Malicious Arithmetic Secure Computation with Oblivious TransferMarcel Keller, Emmanuela Orsini, Peter SchollCCS 2016 · 487 citations
  5. Secure Outsourced Matrix Computation and Application to Neural NetworksXiaoqian Jiang, Miran Kim, Kristin E. Lauter, Yongsoo SongCCS 2018 · 359 citations

Related papers

  1. SGX-BigMatrix: A Practical Encrypted Data Analytic Framework With Trusted ProcessorsFahad Shaon, Murat Kantarcioglu, Zhiqiang Lin, Latifur KhanCCS 2017 · 83 citations
  2. Global-Scale Secure Multiparty ComputationXiao Wang, Samuel Ranellucci, Jonathan KatzCCS 2017 · 220 citations
  3. Virtual Secure Platform: A Five-Stage Pipeline Processor over TFHEKotaro Matsuoka, Ryotaro Banno, Naoki Matsumoto, Takashi Sato et al.USENIX Security 2021 · 38 citations
  4. Enabling Low-Cost Secure Computing on Untrusted In-Memory ArchitecturesSahar Ghoflsaz Ghinani, Jingyao Zhang, Elaheh SadrediniUSENIX Security 2025
  5. Smaug: Modular Augmentation of LLVM for MPCRadhika Garg, Xiao WangS&P 2025
Dusk over the sea between two cliffs drawn in fine vertical lines