Securing Transformer-based AI Execution via Unified TEEs and Crypto-protected Accelerators
Not on the map. Why?
Abstract (arXiv)
Recent advances in Transformer models, e.g., large language models (LLMs), have brought tremendous breakthroughs in various artificial intelligence (AI) tasks, leading to their wide applications in many security-critical domains. Due to their unprecedented scale and prohibitively high development cost, these models have become highly valuable intellectual property for AI stakeholders and are increasingly deployed via machine learning as a service (MLaaS). However, MLaaS often runs on untrusted cloud infrastructure, exposing data and models to potential breaches. Mainstream protection mechanisms leverage trusted execution environments (TEEs) where confidentiality and integrity for secretive data are shielded using hardware-based encryption and integrity checking. Unfortunately, running model inference entirely within TEEs is subject to non-trivial slowdown, which is further exacerbated in LLMs due to the substantial computation and memory footprint involved. Recent studies reveal that the hybrid TEE-based scheme offloading partial model inference operations to the untrusted accelerators (e.g., GPU) is a promising solution. However, prior offloading schemes fail to ensure dual protection of data and model in Transformer inference, as they cannot securely offload critical operations, i.e., Attention and SoftMax, forcing these computations to remain confined within TEEs. To address these challenges, we propose TwinShield, a framework enabling secure Transformer inference in heterogeneous TEE and accelerator systems with dual protection for both model and data. TwinShield offloads ~87% of computation to GPUs and delivers 4.0x - 6.1x speedups over previous approaches across various Transformer models.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 25 of its 57 references that are in the map. First posted on arXiv 4 Jul 2025.
Builds on
25 of 57 references.
References · 25
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2023GPT-4 Technical Reportcited by 18,396
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2016Pointer Sentinel Mixture Modelscited by 3,096
- 2016Learning to Communicate with Deep Multi-Agent Reinforcement Learningcited by 575
- 2021Post-Training Quantization for Vision Transformercited by 278
- 2021I-BERT: Integer-only BERT Quantizationcited by 255
- 2018Slalom: Fast, Verifiable and Private Execution of Neural Networks in Trusted Hardwarecited by 102
- 2019SHE: A Fast and Accurate Deep Neural Network for Encrypted Datacited by 36
13 more
- 2018MLCapsule: Guarded Offline Deployment of Machine Learning as a Servicecited by 31
- 2023No Privacy Left Outside: On the (In-)Security of TEE-Shielded DNN Partition for On-Device MLcited by 21
- 2023Primer: Fast Private Transformer Inference on Encrypted Datacited by 20
- 2023NNSplitter: An Active Defense Solution for DNN Model via Automated Weight Obfuscationcited by 16
- 2022DarKnight: An Accelerated Framework for Privacy and Integrity Preserving Deep Learning Using Trusted Hardwarecited by 14
- 2025CipherPrune: Efficient and Scalable Private Transformer Inferencecited by 10
- 2023MirrorNet: A TEE-Friendly Framework for Secure On-device DNN Inferencecited by 9
- 2019TensorSCONE: A Secure TensorFlow Framework using Intel SGXcited by 8
- 2021A Survey of Microarchitectural Side-channel Vulnerabilities, Attacks and Defenses in Cryptographycited by 5
- 2024BoostCom: Towards Efficient Universal Fully Homomorphic Encryption by Boosting the Word-wise Comparisonscited by 4
- 2024Trinity: A General Purpose FHE Acceleratorcited by 4
- 2017DR.SGX: Hardening SGX Enclaves against Cache Attacks with Data Location Randomizationcited by 3
- 2024Tempo: Confidentiality Preservation in Cloud-Based Neural Network Trainingcited by 2
Built on by
Citing papers per year: 2026: 2.
2 papers.