Delphi

Delphi: A Cryptographic Inference Service for Neural Networks

Pratyush Mishra, Ryan Lehmkuhl, Akshayaram Srinivasan, Wenting Zheng, Raluca Ada Popa

Venue
USENIX Security 2020
Date
2020-08-12
Affiliation
UC Berkeley
Hardware
AWS c5.2xlarge, Intel Xeon 3.0 GHz, 16 GB RAM, 4 threads, client and server in us-west-1 and us-west-2 (a cross-region WAN). BANDWIDTH AND LATENCY ARE NEVER STATED -- only the AWS regions. For a paper whose whole cost model is communication, that is a real hole.
Numbers from
primary
Open source
yes
Paper
https://eprint.iacr.org/2020/050
PDF
https://www.usenix.org/system/files/sec20-mishra_0.pdf
Quantization
not stated

Reported benchmarks

modelproving time scommunication mbnote
ResNet-32 (CIFAR-100)3.860Online phase. Against GAZELLE's ~82 s and >560 MB: 22x and 9x. Preprocessing is a further cost and on ReLU-heavy networks Delphi's preprocessing is WORSE than GAZELLE's, which the paper says outright.

Approach

2PC -- offline/online split, HE preprocessing for linear layers, GC + quadratic approximations for ReLU

Notes

THE LARGEST BIBLIOGRAPHY HOLE THIS SOK HAD: cited by NINE of the thirty PDFs we hold, and absent from papers.yml entirely until 2026-07-13. Two ideas, both of which the whole section still runs on. First, the OFFLINE/ONLINE SPLIT: the server's weights are known before the client's input arrives, so all the homomorphic encryption can be pushed into preprocessing and the online linear layer becomes plain secret-shared arithmetic. Every offline/online accounting table in this section descends from this paper. Second, the RELU BUDGET: use neural architecture search to decide WHICH ReLUs to replace with quadratic approximations, because a quadratic costs 192x less online communication and 10000x less online compute than a garbled circuit. AND NOW THE REASON THIS PAPER MATTERS TO THE NUMERICS SECTION, WHICH IS NOT WHY IT IS FAMOUS. Delphi is the ONE privacy-column paper that cites a verifiability-column paper. It cites SafetyNets -- twice, in the body -- and NOT for verifiability. It cites it as prior evidence about whether QUADRATIC ACTIVATIONS TRAIN WELL. Delphi's body contains ZERO occurrences of "verifiable", "integrity", "zero-knowledge", "proof of correctness" or "malicious server". It does not know it is citing a verifiability paper. And its answer to the question is the one the SafetyNets-vs-Bionetta debate on the numerics page needs: quadratic activations DO NOT TRAIN. "the quadratic activations cause the underlying gradient descent algorithm to diverge, resulting in poor accuracy." Delphi had to invent gradient clipping, ReLU6 and a "gradual activation exchange" annealing schedule just to make them converge at all -- and even then it uses NAS to keep MOST activations as ReLUs. SafetyNets' famous ~5% overhead comes from an all-quadratic network. Delphi is the paper that tried to scale that idea and reported what happened.

Threat model

2PC, SEMI-HONEST, dishonest majority. Client learns the architecture and the result. The paper is unusually candid about a SECOND leak: because the NAS planner uses training data to decide where quadratics go, "revealing the network architecture reveals some information about the data ... at most l bits" (l = 32 for ResNet-32).

Quantization, in full

bits
None
scheme
Fixed-point; online phase in a 32-bit prime field (chosen to fit a GPU).
accuracy_retention
NOT TABULATED -- reported only as curves (Figs. 7-9). Qualitatively: planner-produced networks are "comparable to" the all-ReLU baselines (CIFAR-10 ~85-86%, CIFAR-100 ResNet-32 ~65-68% vs a ~68% baseline). Do not invent a delta from the figures.

Our reading

Delphi was the largest bibliography hole this SoK had: cited by nine of the thirty PDFs we hold, and absent from papers.yml entirely until July 2026.

It is famous for two ideas. It is important to us for a third one, which is not why anyone cites it.

What it is famous for

The offline/online split. The server's weights are known before the client's input arrives, so push all the homomorphic encryption into preprocessing, and the online linear layer becomes plain secret-shared arithmetic. Every offline/online accounting table in the private inference section descends from this paper, including the ones that make Sigma and Mosformer look faster than they are.

The ReLU budget. Use neural architecture search to decide which ReLUs to replace with quadratic approximations, because a quadratic costs 192× less online communication and 10,000× less online compute than a garbled circuit. That is the founding move of the "co-design the network for the protocol" school, which runs through MPCFormer, Nimbus and Encryption-Friendly LLM Architecture.

What it is important to us for

Delphi is the one paper in the privacy column that cites a paper in the verifiability column.

It cites SafetyNets. Twice. In the body.

And not for verifiability. It cites SafetyNets as prior evidence about whether quadratic activations train well. Delphi's body contains zero occurrences of "verifiable", "integrity", "zero-knowledge", "proof of correctness", or "malicious server".

It does not know it is citing a verifiability paper. It is citing an ML result about activation functions, and the fact that the ML result happens to live inside a zkML paper is invisible to it.

That single edge is the best evidence in this corpus for the bridge page's thesis. The two columns do not read each other as cryptography. Where they touch, and they do touch they touch at the numerics, and they touch without noticing.

And it answers an open question we posted last week

The numerics page has an open problem: does a polynomial network escape the rescale seam, or only postpone it? SafetyNets's celebrated ~5% prover overhead comes from an all-quadratic network, and Bionetta argues that polynomial activations merely relocate the seam into a precision blow-up.

Delphi tried to scale the idea in 2020 and reported what happened:

Prior work [Moh+17; Gil+16; Gho+17; Cho+18] and our own experiments indicate that networks that use quadratic approximations are challenging to train and deploy: the quadratic activations cause the underlying gradient descent algorithm to diverge, resulting in poor accuracy.

Delphi · §5.1, Adapting NAS for DELPHI's planner

[Gho+17] is SafetyNets.

Delphi needed gradient clipping, ReLU6, and a "gradual activation exchange" annealing schedule just to make quadratic networks converge at all, and even then, it uses NAS to keep most activations as ReLUs, because it cannot afford to replace them.

So the answer to our open question has been sitting in an MPC paper since 2020, cited by nine of our own PDFs: the all-quadratic network does not train. SafetyNets' 5% is a number that exists at a depth and a width nobody would deploy. The price of rounding is not optional; it is what you pay the moment the network is big enough to be worth anything.

What to distrust

The bandwidth is never stated. For a paper whose entire cost model is communication, Delphi reports only the AWS regions its two instances sat in (us-west-1 and us-west-2) and never a Mbps or a millisecond figure. Every latency number in it is therefore unreproducible in the dimension that matters most.

The accuracy delta is not tabulated, only drawn, as curves, in Figures 7–9. Do not extract a number from them.

The planner leaks training data. Delphi is unusually candid: because the NAS planner uses the training set to decide where quadratics go, "revealing the network architecture reveals some information about the data ... at most $\ell$ bits" ($\ell = 32$ for ResNet-32). A privacy system whose architecture is a side channel on its training data is a nice reminder that the threat model always has one more clause.

Citation neighbourhood

Builds on
Cited by, in this corpus

Edges are a proxy: paper A's text mentions B anywhere (body or bibliography). See the full graph.

Discussed in

Other recorded fields
objectives:
- inference