MPCViT: Searching for Accurate and Efficient MPC-Friendly Vision Transformer with Heterogeneous Attention
Not on the map. Why?
Abstract (arXiv)
Secure multi-party computation (MPC) enables computation directly on encrypted data and protects both data and model privacy in deep learning inference. However, existing neural network architectures, including Vision Transformers (ViTs), are not designed or optimized for MPC and incur significant latency overhead. We observe Softmax accounts for the major latency bottleneck due to a high communication complexity, but can be selectively replaced or linearized without compromising the model accuracy. Hence, in this paper, we propose an MPC-friendly ViT, dubbed MPCViT, to enable accurate yet efficient ViT inference in MPC. Based on a systematic latency and accuracy evaluation of the Softmax attention and other attention variants, we propose a heterogeneous attention optimization space. We also develop a simple yet effective MPC-aware neural architecture search algorithm for fast Pareto optimization. To further boost the inference efficiency, we propose MPCViT+, to jointly optimize the Softmax attention and other network components, including GeLU, matrix multiplication, etc. With extensive experiments, we demonstrate that MPCViT achieves 1.9%, 1.3% and 3.6% higher accuracy with 6.2x, 2.9x and 1.9x latency reduction compared with baseline ViT, MPCFormer and THE-X on the Tiny-ImageNet dataset, respectively. MPCViT+ further achieves a better Pareto front compared with MPCViT. The code and models for evaluation are available at https://github.com/PKU-SEC-Lab/mpcvit.
Key facts. Cited by 20 papers in the map (data through 14 Oct 2026). Builds on 43 of its 70 references that are in the map. First posted on arXiv 25 Nov 2022.
Builds on
43 of 70 references.
References · 43
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2015Distilling the Knowledge in a Neural Networkcited by 10,324
- 2016Gaussian Error Linear Units (GELUs)cited by 3,502
- 2017Non-local Neural Networkscited by 2,293
- 2020Reformer: The Efficient Transformercited by 1,668
- 2021ViViT: A Video Vision Transformercited by 1,620
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
- 2018MnasNet: Platform-Aware Neural Architecture Search for Mobilecited by 943
- 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 856
- 2019Are Sixteen Heads Really Better than One?cited by 816
- 2018FBNet: Hardware-Aware Efficient ConvNet Design via Differentiable Neural Architecture Searchcited by 485
31 more
- 2018HAQ: Hardware-Aware Automated Quantization with Mixed Precisioncited by 443
- 2016From Softmax to Sparsemax: A Sparse Model of Attention and Multi-Label Classificationcited by 341
- 2021Escaping the Big Data Paradigm with Compact Transformerscited by 264
- 2022cosFormer: Rethinking Softmax in Attentioncited by 213
- 2021Multi-Scale Vision Longformer: A New Vision Transformer for High-Resolution Image Encodingcited by 207
- 2022Structured Pruning Learns Compact and Accurate Modelscited by 170
- 2021CrypTen: Secure Multi-Party Computation Meets Machine Learningcited by 131
- 2021SOFT: Softmax-free Transformer with Linear Complexitycited by 128
- 2021Efficient Training of Visual Transformers with Small Datasetscited by 108
- 2021Multi-Scale High-Resolution Vision Transformer for Semantic Segmentationcited by 92
- 2020CrypTFlow2: Practical 2-Party Secure Inferencecited by 82
- 2018ChamNet: Towards Efficient Network Design through Platform-Aware Model Adaptationcited by 76
- 2022MPCFormer: fast, performant and private Transformer inference with MPCcited by 69
- 2022THE-X: Privacy-Preserving Transformer Inference with Homomorphic Encryptioncited by 57
- 2022Hydra Attention: Efficient Attention with Many Headscited by 55
- 2021Less is More: Pay Less Attention in Vision Transformerscited by 53
- 2019Hardware/Software Co-Exploration of Neural Architecturescited by 50
- 2021DeepReDuce: ReLU Reduction for Fast Private Inferencecited by 50
- 2020CryptoNAS: Private Inference on a ReLU Budgetcited by 40
- 2022Q-ViT: Fully Differentiable Quantization for Vision Transformercited by 37
- 2022How to Train Vision Transformer on Small-scale Datasets?cited by 35
- 2021ViTAS: Vision Transformer Architecture Searchcited by 31
- 2022Selective Network Linearization for Efficient Private Inferencecited by 31
- 2021SIRNN: A Math Library for Secure RNN Inferencecited by 28
- 2022Neural Architecture Search on Efficient Transformers and Beyondcited by 17
- 2021Sphynx: ReLU-Efficient Network Design for Private Inferencecited by 15
- 2022Vision Transformers in 2022: An Update on Tiny ImageNetcited by 13
- 2021UFO-ViT: High Performance Linear Vision Transformer without Softmaxcited by 11
- 2018IRLAS: Inverse Reinforcement Learning for Architecture Searchcited by 10
- 2022DARTFormer: Finding The Best Type Of Attentioncited by 3
- 2022PolyMPCNet: Towards ReLU-free Neural Architecture Search in Two-party Computation Based Private Inferencecited by 2
Built on by
Citing papers per year: 2023: 2; 2024: 6; 2025: 9; 2026: 3.
20 papers.
Sort:
By area:
- 2023BAT: Behavior-Aware Human-Like Trajectory Prediction for Autonomous Drivingcited by 28
- 2023Converting Transformers to Polynomial Form for Secure Inference Over Homomorphic Encryptioncited by 19
- 2024Nimbus: Secure and Efficient Two-Party Inference for Transformerscited by 16
- 2025CipherPrune: Efficient and Scalable Private Transformer Inferencecited by 10
- 2025TeleSparse: Practical Privacy-Preserving Verification of Deep Neural Networkscited by 9
- 2024Ditto: Quantization-aware Secure Inference of Transformers upon MPCcited by 8
- 2024PrivCirNet: Efficient Private Inference via Block Circulant Transformationcited by 7
- 2024MPC-Minimized Secure LLM Inferencecited by 6
- 2024CipherDM: Secure Three-Party Inference for Diffusion Model Samplingcited by 3
- 2024TruncFormer: Private LLM Inference Using Only Truncationscited by 2
- 2025Private Transformer Inference in MLaaS: A Surveycited by 2
- 2025An Efficient Private GPT Never Autoregressively Decodescited by 2
8 more
- 2026On the (In-)Security of the Shuffling Defense in the Transformer Secure Inferencecited by 2
- 2025A Framework for Double-Blind Federated Adaptation of Foundation Modelscited by 1
- 2025SecP-Tuning: Efficient Privacy-Preserving Prompt Tuning for Large Language Models via MPCcited by 1
- 2025CrypTorch: PyTorch-based Auto-tuning Compiler for Machine Learning with Multi-party Computationcited by 1
- 2025SecPE: Secure Prompt Ensembling for Private and Robust Large Language Modelscited by 0
- 2025ObCLIP: Oblivious CLoud-Device Hybrid Image Generation with Privacy Preservationcited by 0
- 2026UFO: Unlocking Ultra-Efficient Quantized Private Inference with Protocol and Algorithm Co-Optimizationcited by 0
- 2026A Graph-Based Analysis of Comparability, Scale, and Attribution in Private Transformer Inferencecited by 0
- 2026A Graph-Based Analysis of Comparability, Scale, and Attribution in Private Transformer Inference14 Oct 2026
- 2026On the (In-)Security of the Shuffling Defense in the Transformer Secure Inference6 May 2026
- 2026UFO: Unlocking Ultra-Efficient Quantized Private Inference with Protocol and Algorithm Co-Optimization21 Feb 2026
- 2025CrypTorch: PyTorch-based Auto-tuning Compiler for Machine Learning with Multi-party Computation24 Nov 2025
- 2025ObCLIP: Oblivious CLoud-Device Hybrid Image Generation with Privacy Preservation5 Oct 2025
- 2025SecP-Tuning: Efficient Privacy-Preserving Prompt Tuning for Large Language Models via MPC18 Jun 2025
- 2025An Efficient Private GPT Never Autoregressively Decodes21 May 2025
- 2025Private Transformer Inference in MLaaS: A Survey15 May 2025
- 2025TeleSparse: Practical Privacy-Preserving Verification of Deep Neural Networks27 Apr 2025
- 2025CipherPrune: Efficient and Scalable Private Transformer Inference24 Feb 2025
- 2025A Framework for Double-Blind Federated Adaptation of Foundation Models3 Feb 2025
- 2025SecPE: Secure Prompt Ensembling for Private and Robust Large Language Models2 Feb 2025
8 more
- 2024TruncFormer: Private LLM Inference Using Only Truncations2 Dec 2024
- 2024Nimbus: Secure and Efficient Two-Party Inference for Transformers24 Nov 2024
- 2024CipherDM: Secure Three-Party Inference for Diffusion Model Sampling9 Sep 2024
- 2024MPC-Minimized Secure LLM Inference7 Aug 2024
- 2024PrivCirNet: Efficient Private Inference via Block Circulant Transformation23 May 2024
- 2024Ditto: Quantization-aware Secure Inference of Transformers upon MPC9 May 2024
- 2023BAT: Behavior-Aware Human-Like Trajectory Prediction for Autonomous Driving11 Dec 2023
- 2023Converting Transformers to Polynomial Form for Secure Inference Over Homomorphic Encryption15 Nov 2023
- 2023BAT: Behavior-Aware Human-Like Trajectory Prediction for Autonomous Drivingcited by 28
- 2023Converting Transformers to Polynomial Form for Secure Inference Over Homomorphic Encryptioncited by 19
- 2024Nimbus: Secure and Efficient Two-Party Inference for Transformerscited by 16
- 2025CipherPrune: Efficient and Scalable Private Transformer Inferencecited by 10
- 2025TeleSparse: Practical Privacy-Preserving Verification of Deep Neural Networkscited by 9
- 2024Ditto: Quantization-aware Secure Inference of Transformers upon MPCcited by 8
- 2024PrivCirNet: Efficient Private Inference via Block Circulant Transformationcited by 7
- 2024MPC-Minimized Secure LLM Inferencecited by 6
- 2024TruncFormer: Private LLM Inference Using Only Truncationscited by 2
- 2025Private Transformer Inference in MLaaS: A Surveycited by 2
- 2025An Efficient Private GPT Never Autoregressively Decodescited by 2
- 2026On the (In-)Security of the Shuffling Defense in the Transformer Secure Inferencecited by 2
12 most cited of 18 All 18 (JSON)
- 2026A Graph-Based Analysis of Comparability, Scale, and Attribution in Private Transformer Inference14 Oct 2026
- 2026On the (In-)Security of the Shuffling Defense in the Transformer Secure Inference6 May 2026
- 2026UFO: Unlocking Ultra-Efficient Quantized Private Inference with Protocol and Algorithm Co-Optimization21 Feb 2026
- 2025CrypTorch: PyTorch-based Auto-tuning Compiler for Machine Learning with Multi-party Computation24 Nov 2025
- 2025SecP-Tuning: Efficient Privacy-Preserving Prompt Tuning for Large Language Models via MPC18 Jun 2025
- 2025An Efficient Private GPT Never Autoregressively Decodes21 May 2025
- 2025Private Transformer Inference in MLaaS: A Survey15 May 2025
- 2025TeleSparse: Practical Privacy-Preserving Verification of Deep Neural Networks27 Apr 2025
- 2025CipherPrune: Efficient and Scalable Private Transformer Inference24 Feb 2025
- 2025A Framework for Double-Blind Federated Adaptation of Foundation Models3 Feb 2025
- 2025SecPE: Secure Prompt Ensembling for Private and Robust Large Language Models2 Feb 2025
- 2024TruncFormer: Private LLM Inference Using Only Truncations2 Dec 2024
12 newest of 18 All 18 (JSON)