AI models are increasingly being deployed at the edge. Since these models often require significant research and development to produce, are often deployed in potentially hostile environments, and downstream systems often rely on accurate data; protecting them from theft or manipulation is worthy of serious consideration. Trusted Execution Environments (TEEs), which provide hardware-enforced separation of software execution, can protect model weights but impose strict resource constraints, making full-model execution impractical for large neural networks. We present Onnx2TEE, an automated, model-independent pipeline that partitions ONNX models across rich, trusted execution environments for non-sequential feed-forward networks using graph-aware segmentation to preserve computational dependencies while minimizing boundary communication and reducing TEE-induced inference latency. Evaluation on an NVIDIA Jetson AGX Orin using an Arm TrustZone TEE demonstrates that model parameters can be highly concentrated in individual segments, supporting selective protection of parameter-dense model components. The evaluation further shows that the generated trusted app's memory requirements depend on both computation and intermediate tensor sizes.
Figures & tables
Fig. 1 : Segmentation of MNIST Image Classifier Computational Graph to Preserve Dependencies & Minimize REE/TEE Communications. Because the model is sequential, having no branches or skip connections, every node depends only on the output of the preceding node. The algorithm in III-B therefore splits the model after each node, resulting in segments S1,⋯,S10 that each have the same number of nodes. Each colored region in the figure represents one model segment and its corresponding operations. Each segment can be independently assigned to the REE or TEE while preserving the model’s dependencies.
Fig. 2 : Distribution of Learned Parameters Across Model Segments for (a) MNIST and (b) YOLO26n. The y-axis uses a logarithmic scale to show parameter counts spanning multiple orders of magnitude. MNIST contains learned parameters in Segments {S1,S4,S7,S8,S10} of 10 segments, with 97.06% concentrated in Segment S8 . YOLO26n contains learned parameters in Segments {S1,S3,S5,S7,S8,S10,S12,S14,S15,S17,S19} of 19 segments, with 96.96% of the learned parameters concentrated in Segment S17 . The differing distributions illustrate that parameter concentration is model-specific, making segment placement important for protecting model weights.
Fig. 3 : Trusted Application Average Heap Usage Across TEE Partition Configurations for (a) MNIST and (b) YOLO26n. Rows and columns denote the TEE start and end partition points, respectively. Consecutive partition points delimit model segments S1,⋯,Sn , such that a configuration (Pi,Pj) places the model segments between Pi and Pj in the TEE. Cell values report the trusted application heap requirement. For MNIST, P1 and P11 correspond to the model input and output, respectively, and values are reported in KiB. For YOLO26n, P1 and P20 correspond to the model input and output, respectively, values are reported in MiB, and gray cells in indicate valid partition configurations that were not deployable under the available TEE memory budget. TEE heap usage increases as the TEE encompasses more of the model. YOLO26n exhibits a clear region of memory-infeasible configurations.
Fig. 4 : Inference Latency Breakdown for Representative TEE-Executed Parameter-Bearing Model Segments for (a) MNIST and (b) YOLO26n. Each bar shows the average total inference latency in milliseconds across the corresponding dataset, decomposed into Rich Execution Environment (REE) and Trusted Execution Environment (TEE) execution. TEE execution includes world-switching. REE-ONLY represents the baseline with no TEE execution. Values inside the bars indicate total average latency. For MNIST, segments 8, 10, and 7 correspond to the maximum (97.06%), median (0.62%), and minimum ( < 0.01%) deployable TEE parameter counts, respectively. For YOLO26n, segments 10, 12, and 19 correspond to the maximum (1.51%), median (0.17%), and minimum ( < 0.01%) deployable TEE parameter counts, respectively. These results illustrate the latency cost of TEE execution and show that cost depends on both the model and selected segment.
Edge inference runs trained AI models on nearby devices such as phones, cameras, robots, and embedded computers under tight resource and latency limits.
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.
Kurt M Wilson, Mohaiminul Al Nahian, Abeer Matar A. Almalky +5
North Carolina State University · Binghamton University (SUNY) · Florida International University +1
On-device deployment of large language models (LLMs) is increasingly adopted due to latency and privacy requirements, but exposes proprietary models to reverse engineering and intellectual property theft. Trusted Execution Environments (TEEs) provide hardware-enforced isolation for on-device inference, yet most TEE-based parameter obfuscation relies on unilateral matrix transformations that obfuscate only the output side. We identify a vulnerability in this design, termed the Solution Determinacy Property (SDP): the obfuscation secret is uniquely determined, exposing the structure of the true key and enabling attackers to break the protection. Under our attacks, representative methods GroupCover and ArrowCloak are reduced to negligible protection, with attack accuracy reaching over 2.4 times the full-shielding black-box baseline and recovering near-complete model functionality. To address this vulnerability, we propose BiShield-TEE, a bilateral framework that induces Ambiguous Solutions through joint obfuscation of input and output dimensions, hiding the true key among many equally valid candidates. Experiments across diverse models and datasets show that BiShield-TEE confines attack accuracy to the full-shielding black-box baseline, while achieving higher inference efficiency than prior methods on real hardware. Our code is available at https://github.com/laduiw/BiShield-TEE.
Zhiyuan Wang, Yuezhi Zhou, Ziqi Zhang +3
Department of Computer Science and Technology, Beijing National Research Center for Information Science and Technology, Tsinghua University, Beijing, China · Zhongguancun Laboratory, Beijing, China · University of Illinois Urbana-Champaign, IL, USA
Cloud-edge AI must jointly satisfy model compression and security under tight device budgets. While Tensor-Train Decomposition (TTD) shrinks on-device models, prior selective-encryption studies largely assume dense weights, leaving its practicality under TTD compression unclear. We present TT-SEAL, a selective-encryption framework for TT-decomposed networks. TT-SEAL ranks TT cores with a sensitivity-based importance metric, calibrates a one-time robustness threshold, and uses a value-DP optimizer to encrypt the minimum set of critical cores with AES. Under TTD-aware, transfer-based threat models (and on an FPGA-prototyped edge processor) TT-SEAL matches the robustness of full (black-box) encryption while encrypting as little as 4.89-15.92% of parameters across ResNet-18, MobileNetV2, and VGG-16, and drives the share of AES decryption in end-to-end latency to low single digits (e.g., 58% -> 2.76% on ResNet-18), enabling secure, low-latency edge AI.
Kyeongpil Min, Sangmin Jeon, Jae-Jin Lee +1
†Department of Intelligent Semiconductor Engineering, Chung-Ang University, Seoul, Korea