SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2502.16782 · ICLR · 2025

CipherPrune: Efficient and Scalable Private Transformer Inference

Qian Lou, Jiaqi Xue, Mengxin Zheng, Yancheng Zhang, Mimi Xie, Mingzhe Zhang, Lei Jiang

arXiv · PDF · Open in the Atlas

Code that ran

3 of 9 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 3 failures of our instrument; 6 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2502.16782.json · badge: /api/ran/2502.16782.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
UCF-Lou-Lab-PET/cipher-prune-inference canonical (classifier label)
classifier basis not recorded on the link
3 ran · 6 no recorded run
FunctionStatusWhere it lives
conv2d Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
UCF-Lou-Lab-PET/cipher-prune-inference/Athos/Networks/Lenet/lenetLarge_mnist_inference.py
pointer only (licence: MIT) · get_code("78cc8dfd6a006c84")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, UCF-Lou-Lab-PET/cipher-prune-inference, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

max_pool_2x2 Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
UCF-Lou-Lab-PET/cipher-prune-inference/Athos/Networks/Lenet/lenetLarge_mnist_inference.py
pointer only (licence: MIT) · get_code("83509cf58b926d1e")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, UCF-Lou-Lab-PET/cipher-prune-inference, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

torch_ffnn_to_network_args Ran
ran; our contract draft was wrong, not the code
UCF-Lou-Lab-PET/cipher-prune-inference/Beacon/beacon_frontend.py
pointer only (licence: MIT); the stored copy get_code serves, from mpc-msri/EzPC, is pointer only (licence: MIT) · get_code("dbefa26ddce8d09e")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, UCF-Lou-Lab-PET/cipher-prune-inference, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

deepnn Not yet run
unverified (harvested, no recorded run)
UCF-Lou-Lab-PET/cipher-prune-inference/Athos/Networks/Lenet/lenetLarge_mnist_inference.py
pointer only (licence: MIT) · get_code("a31a60675efe2376")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, UCF-Lou-Lab-PET/cipher-prune-inference, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_pytorch_stuff_conv Not yet run
unverified (harvested, no recorded run)
UCF-Lou-Lab-PET/cipher-prune-inference/Beacon/compile_networks.py
pointer only (licence: MIT); the stored copy get_code serves, from mpc-msri/EzPC, is pointer only (licence: MIT) · get_code("fac138bab1cb526b")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, UCF-Lou-Lab-PET/cipher-prune-inference, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_pytorch_stuff_ffnn Not yet run
unverified (harvested, no recorded run)
UCF-Lou-Lab-PET/cipher-prune-inference/Beacon/compile_networks.py
pointer only (licence: MIT); the stored copy get_code serves, from mpc-msri/EzPC, is pointer only (licence: MIT) · get_code("e8aa913f7ede634f")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, UCF-Lou-Lab-PET/cipher-prune-inference, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_translator Not yet run
unverified (harvested, no recorded run)
UCF-Lou-Lab-PET/cipher-prune-inference/Beacon/beacon_frontend.py
pointer only (licence: MIT); the stored copy get_code serves, from mpc-msri/EzPC, is pointer only (licence: MIT) · get_code("ffc5f69535a64ea5")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, UCF-Lou-Lab-PET/cipher-prune-inference, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_translator Not yet run
unverified (harvested, no recorded run)
UCF-Lou-Lab-PET/cipher-prune-inference/Beacon/beacon_frontend_conv.py
pointer only (licence: MIT) · get_code("f682bf69658efe6e")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, UCF-Lou-Lab-PET/cipher-prune-inference, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

torch_ffnn_to_network_args Not yet run
unverified (harvested, no recorded run)
UCF-Lou-Lab-PET/cipher-prune-inference/Beacon/beacon_frontend_conv.py
pointer only (licence: MIT) · get_code("fde609ad958063b4")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, UCF-Lou-Lab-PET/cipher-prune-inference, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 0 later) and 3 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
max_pool_2x2 5 other papers
5 dated earlier
1412.3128 (2014-12)
Real-Time Grasp Detection Using Convolutional Neural Networks
1505.04597 (2015-05)
U-Net: Convolutional Networks for Biomedical Image Segmentation
1709.09603 (2017-09)
Riemannian approach to batch normalization
and 2 more not named here
conv2d 2 other papers
2 dated earlier
1804.05271 (2018-04)
Adaptive Federated Learning in Resource Constrained Edge Computing Systems
1805.04980 (2018-05)
Unifying and Merging Well-trained Deep Neural Networks for Inference Stage
get_pytorch_stuff_conv 1 other paper
1 dated earlier
2105.04236 (2021-05)
SIRNN: A Math Library for Secure RNN Inference
get_pytorch_stuff_ffnn 1 other paper
1 dated earlier
2105.04236 (2021-05)
SIRNN: A Math Library for Secure RNN Inference
get_translator 1 other paper
1 dated earlier
2105.04236 (2021-05)
SIRNN: A Math Library for Secure RNN Inference
torch_ffnn_to_network_args 1 other paper
1 dated earlier
2105.04236 (2021-05)
SIRNN: A Math Library for Secure RNN Inference

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Private Transformer inference using cryptographic protocols offers promising solutions for privacy-preserving machine learning; however, it still faces significant runtime overhead (efficiency issues) and challenges in handling long-token inputs (scalability issues). We observe that the Transformer's operational complexity scales quadratically with the number of input tokens, making it essential to reduce the input token length. Notably, each token varies in importance, and many inputs contain redundant tokens. Additionally, prior private inference methods that rely on high-degree polynomial approximations for non-linear activations are computationally expensive. Therefore, reducing the polynomial degree for less important tokens can significantly accelerate private inference. Building on these observations, we propose CipherPrune, an efficient and scalable private inference framework that includes a secure encrypted token pruning protocol, a polynomial reduction protocol, and corresponding Transformer network optimizations. At the protocol level, encrypted token pruning adaptively removes unimportant tokens from encrypted inputs in a progressive, layer-wise manner. Additionally, encrypted polynomial reduction assigns lower-degree polynomials to less important tokens after pruning, enhancing efficiency without decryption. At the network level, we introduce protocol-aware network optimization via a gradient-based search to maximize pruning thresholds and polynomial reduction conditions while maintaining the desired accuracy. Our experiments demonstrate that CipherPrune reduces the execution overhead of private Transformer inference by approximately 6.1× for 128-token inputs and 10.6× for 512-token inputs, compared to previous methods, with only a marginal drop in accuracy. The code is publicly available at https://github.com/UCF-Lou-Lab-PET/cipher-prune-inference.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2502.16782")
get_code_for_paper("2502.16782")
have("2502.16782")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2502.16782.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2502.16782.svg)](https://syntology.ai/paper/2502.16782)

Connect an agent — have() is free.