TEE-X: TEE-aware Acceleration Framework for Large Vision Models at the Edge
Organizations: North Carolina State University · Binghamton University (SUNY) · Florida International University · Intel
Abstract
Despite their remarkable success, machine learning models, particularly in vision applications, are alarmingly vulnerable to a range of security threats. One key factor in the attack landscape is the distinction between white-box and black-box threat models, as the latter poses challenges that limit attack effectiveness when access to model information is limited. As a result, using Trusted Execution Environments (TEEs) enhances security for machine learning applications by protecting model confidentiality and execution integrity, effectively shifting the execution environment from the white-box to the black-box side of the threat model spectrum. While adopting TEEs for large vision models, e.g., Vision Transformers (ViTs), is crucial for enhancing security and privacy, significant challenges related to memory constraints and increased computational latency must be addressed, especially in time-sensitive edge applications where safety and privacy are paramount. The objective of this work is to enable large vision models to be fully hosted within TEEs, achieving GPU-level inference latency for time-sensitive edge vision applications while maintaining performance. To this end, we propose TEE-X, a TEE-aware acceleration framework that introduces a sensitivity-aware modularization technique and enables vectorization in TEE inference. This design is validated on OP-TEE for Arm TrustZone, configured to optimize performance on the NVIDIA Jetson AGX Xavier for efficient edge vision applications using ViT models. The findings reveal that TEE-X delivers an effective TEE-aware acceleration framework that achieves minimal accuracy-latency trade-offs while ensuring fast and secure edge inference for vision models.
Figures & tables
| Method | Model Size (MB) | Accuracy | Avg Layer Time (ms) | Avg Time (ms) | Peak Mem. (MB) |
| Baseline Host (GPU) | 82.66 | 97.29 | 82.62 | 1022.35 | 154.78 |
| TEE-X | 3.48 (23 ) | 96.48 | 58.24 (1.42 ) | 1082.67 | 21.91 |
| TEE-X | 2.93 (28 ) | 96.40 | 51.76 (1.60 ) | 1006.74 | 18.14 |
| TEE-X | 1.75 (47 ) | 94.64 | 48.02 (1.72 ) | 957.13 | 10.13 |
| Method | Latency (ms) |
| Naive full model in TEE | 1792.42 |
| Model Partitioning 33 ; 46 ; 23 ; 49 | 1463.80 |
| Operation-aware Execution 14 ; 35 | 3127.73 |
| TEE-X | 1082.67 |
| Model | Acc.(%) | TEE Ope. Support |
| Baseline (84.1 MB) | 79.72 | – |
| Pruning 57 (33 MB) | 60.51 | |
| 2-bit Quantization 24 (6.18 MB) | 71.90 | |
| TEE-X (4.63 MB) | 76.44 | ✓ |
| Type | Setting | ASR (%) |
| Adversarial Attacks | WB 32 | 99.40 |
| BB 64 | 60.00 | |
| Bit-Flip Attack | WB 40 | 100.0 |
| BB | 0.0 |
| Model | Original | |||||
| Model Size (MB) | Acc. | Model Size (MB) | Acc. | Model Size (MB) | Acc. | |
| DeiT-Small | 84.11 | 79.72 | 4.63 | 76.44 | 3.81 | 75.79 |
| Model | Original | |||||||
| Model Size (MB) | Acc. | Model Size (MB) | Acc. | Model Size (MB) | Acc. | Model Size (MB) | Acc. | |
| DeiT-Base | 327.33 | 97.55 | 12.83 | 97.22 | 10.47 | 97.04 | 5.80 | 95.57 |
| Method | Acc.(%) | Inference Time (s) |
| Baseline (Naive full model TEE) | 97.29 | 4.43 |
| TEE-X (w/o modularization) | 97.29 | 1.80 |
| TEE-X (w/o vectorization) | 96.48 | 1.77 |
| TEE-X | 96.48 | 1.08 |
| Host (GPU) | 97.29 | 1.02 |
| Method | ||
| Uniform Budget | 91.27 | 93.55 |
| TEE-X (Ours) | 94.64 | 96.40 |
Efficient Neural Network Inference
Efficient neural network inference reduces the time, memory, and energy needed to run trained models across hardware and deployment settings.
See all 468 papers