TEE-X: TEE-aware Acceleration Framework for Large Vision Models at the Edge

Kurt M Wilson, Mohaiminul Al Nahian, Abeer Matar A. Almalky, Sadat Shahriyar, Souvik Kundu, Zhishan Guo, Abdullah Al Arafat, Adnan Siraj RakinarXiv 2026

TL;DR

TEE-X is a new framework that enables large vision models, like Vision Transformers (ViTs), to run entirely within secure hardware enclaves at the edge without sacrificing performance. By combining sensitivity-aware model modularization with optimized SIMD vectorization, it achieves GPU-level inference speeds while providing robust protection against white-box security attacks.

What Problem Does This Paper Address?

Machine learning models deployed at the edge are vulnerable to a variety of security threats, ranging from adversarial examples to memory fault injections. These attacks are most potent in "white-box" scenarios, where an adversary has full access to the model's architecture and weights.

Trusted Execution Environments (TEEs), such as Arm TrustZone, offer a solution by creating a secure "black box" for computation. However, TEEs face two major hurdles for modern vision models:

  1. Memory Constraints: TEEs typically have very limited secure memory carve-outs.
  2. Computational Latency: TEEs usually run on the CPU rather than the GPU, leading to massive slowdowns—often 4x to 5x slower than native execution.

Prior attempts to solve this often "partition" the model, keeping only some layers in the TEE. This leaves the remaining layers exposed to attackers. TEE-X aims to host the entire model securely while matching the speed of a dedicated GPU.

Figure 1: Overview of attack types categorized accord- ing to different threat model settings.

Methods

The authors propose two primary innovations to bridge the gap between security and performance:

  1. Sensitivity-aware Modularization: Not all layers in a neural network are equally important. TEE-X ranks layers based on their sensitivity to perturbations. It then groups these layers into modules and assigns a "computational budget" to each. Sensitive layers receive a higher budget (less compression), while less sensitive layers are aggressively compressed using a learned weight transformation ($w_i \approx A_i \times B_i$). This ensures the total model fits within the TEE's memory and meets latency targets.
  2. TEE-aware Vectorization: Since TEEs lack GPU access, TEE-X implements custom kernels using Arm Neon SIMD (Single Instruction, Multiple Data) instructions. By using 128-bit wide registers to process four 32-bit floats simultaneously and unrolling loops to maximize the instruction pipeline, they achieve "GPU-like" parallelism on a standard edge CPU.
Overview of TEE-X’ modularization steps.

Datasets

The framework was evaluated using two standard image classification benchmarks:

  • CIFAR-10: A dataset of 60,000 32x32 color images in 10 classes.
  • ImageNet: A large-scale dataset containing over 1 million images across 1,000 classes.

The researchers tested these datasets on DeiT-Small and DeiT-Base (Data-efficient Image Transformers) models, which are known for their high computational demands.

Key Insights and Ideas

  • The "Black-Box" Shift: By moving the entire execution into a TEE, TEE-X effectively shifts the threat landscape from "Easy to attack" (white-box) to "Hard to attack" (black-box) without the security leaks inherent in model partitioning.
  • Intelligent Budgeting: The core "aha moment" is that you don't need to compress every layer equally. By mathematically linking the TEE's hardware constraints to a layer-wise sensitivity metric, they can maintain high accuracy even with massive overall compression.
  • Software-Hardware Co-design: The paper demonstrates that model compression alone isn't enough for edge TEEs; you must also optimize the low-level execution (vectorization) to overcome the lack of GPU acceleration.

Key Results

The authors validated TEE-X on an NVIDIA Jetson AGX Xavier board using OP-TEE.

  • Latency: For a DeiT-Small model, TEE-X achieved an inference latency of 1.08s, nearly matching the host GPU's 1.02s. In comparison, a naive TEE implementation took 4.43s.
  • Accuracy vs. Compression: On CIFAR-10, TEE-X reduced the model size by 23x (from 82.66 MB to 3.48 MB) with an accuracy drop of less than 1% (97.29% to 96.48%).
  • Security: In white-box settings, adversarial attacks had a 99.4% success rate. Under TEE-X's black-box protection, this dropped to 60%. More impressively, bit-flip attacks were rendered completely ineffective (0% success rate).
Figure 2: Comparison of DeiT-small inference in: GPU, TEE, and accelerated using TEE-X.

Limitations and Future Work

  • Batch Processing: The current vectorization approach is optimized for single-input inference (batch size = 1). The authors note that for larger batches, a GPU would still significantly outperform their CPU-based TEE approach due to its superior parallel processing capabilities.
  • Side-Channel Attacks: While TEE-X protects model weights and integrity, the authors explicitly state that side-channel attacks (like timing or power analysis) are outside the current scope and remain a potential area for future hardening.
  • Hardware Portability: While demonstrated on Arm TrustZone, the framework's modularization logic is generalizable, but the vectorization component would need to be rewritten for other architectures like Intel SGX.

Summary updated

BibTeX
@misc{wilson2026tee,
  author = {Kurt M Wilson and Mohaiminul Al Nahian and Abeer Matar A. Almalky and Sadat Shahriyar and Souvik Kundu and Zhishan Guo and Abdullah Al Arafat and Adnan Siraj Rakin},
  title = {{TEE-X: TEE-aware Acceleration Framework for Large Vision Models at the Edge}},
  year = {2026},
  eprint = {2608.22716},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.22716},
}
Figure