Privacy by design
The client encrypts its input. The server evaluates the model without seeing plaintext activations; only prescribed outputs are revealed.
Follow encrypted GPU computation, secure nonlinear protocols, and the bridges between them. A schematic BERT encoder flow; this browser does not run cryptographic inference.
EncFormer repeats encrypted GPU kernels and secure MPC protocols across its Transformer layers.
When a service processes private text, it usually sees it. Encryption can protect the input—but naïve encrypted Transformer computation is expensive. EncFormer changes how the cryptographic pieces fit together.
The client encrypts its input. The server evaluates the model without seeing plaintext activations; only prescribed outputs are revealed.
GPU-accelerated FHE handles projections and attention kernels while layouts are chosen to compose without expensive remapping.
Two-party MPC evaluates nonlinear blocks. Complex-slot conversion and a cost model reduce or justify the work crossing FHE–MPC boundaries.
Click each stage to see where computation happens, what representation moves across the boundary, and why the layout matters.
The client holds the input and secret key, encrypting its representation before transferring ciphertexts to the server. The server holds the model and evaluation keys, not the decryption key.
A representative encoder path, not an exact scheduling diagram. The actual model has additional normalization, residual and feed-forward stages, and bidirectional secure conversion protocols. Paper §I–V ↗
Three hands-on demonstrations of the paper's key system ideas. These are educational visualizations, not executions of the cryptographic code.
Explore the three canonical layouts that let neighboring FHE kernels speak the same packing language.
Each segment stores one token-column slice, keeping projected features organized for subsequent attention operations.
SCP aligns producer and consumer layouts directly: no FHE-side repacking between adjacent kernels.
A CKKS ciphertext has complex slots. EncFormer uses both real and imaginary channels at FHE–MPC boundaries to carry two real vectors.
Count reduction, not an end-to-end speedup prediction. The paper separately measures conversion latency and modulus trimming.
The expensive nonlinear functions move to two-party MPC, with protocol-specific optimizations.
A fifth-power softmax surrogate with a public shift and offline-distilled normalization constant. The short secure multiplication chain takes three rounds.
When is converting more data actually faster? Experiment with the paper's cost model under different network conditions.
These sliders use illustrative cost inputs, not recorded experimental measurements. The network presets match the paper; the decision criterion follows its Equations 4–6.
Explore the results reported in the paper. Every value below comes from the published manuscript's evaluation tables, with model sizes and network profiles preserved.
average speedup over compared hybrid systems
average reduction over compared hybrid systems
faster on BERT-base under a matched backend
Compare the public model, the distilled surrogate teacher and the encrypted execution on selected GLUE tasks.
MRPC is accuracy, not F1. Differences partly reflect surrogate nonlinearities and distillation; not all the reduction comes from encrypted execution.
Read the peer-reviewed paper, inspect the official implementation, and reproduce experiments using the public artifact.
Read the published paper and its technical evaluation.
OPEN PAPER ↗OFFICIAL IMPLEMENTATIONGPU CKKS, EzPC/SCI, model scripts and evaluation code.
VIEW REPOSITORY ↗ARCHIVED REPRODUCIBILITYPreserved research software associated with the release.
VIEW ARTIFACT ↗OPEN ACCESS MANUSCRIPTTechnical descriptions, algorithms and full result tables.
READ ON ARXIV ↗If EncFormer is useful to your work, cite the published IEEE TDSC article.
@article{zhu2026encformer,
title={EncFormer: Secure and Efficient Transformer Inference over Encrypted Data},
author={Zhu, Yufan and Jin, Chao and Aung, Khin Mi Mi and Xiao, Xiaokui},
journal={IEEE Transactions on Dependable and Secure Computing},
year={2026},
doi={10.1109/TDSC.2026.3714715}
}