DarkneTZ: Towards Model Privacy at the Edge using Trusted Execution Environments
About
We present DarkneTZ, a framework that uses an edge device's Trusted Execution Environment (TEE) in conjunction with model partitioning to limit the attack surface against Deep Neural Networks (DNNs). Increasingly, edge devices (smartphones and consumer IoT devices) are equipped with pre-trained DNNs for a variety of applications. This trend comes with privacy risks as models can leak information about their training data through effective membership inference attacks (MIAs). We evaluate the performance of DarkneTZ, including CPU execution time, memory usage, and accurate power consumption, using two small and six large image classification models. Due to the limited memory of the edge device's TEE, we partition model layers into more sensitive layers (to be executed inside the device TEE), and a set of layers to be executed in the untrusted part of the operating system. Our results show that even if a single layer is hidden, we can provide reliable model privacy and defend against state of the art MIAs, with only 3% performance overhead. When fully utilizing the TEE, DarkneTZ provides model protections with up to 10% overhead.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Mathematical Reasoning | GSM8K | Attack Accuracy54.91 | 40 | |
| Reading Comprehension | SQuAD | Attack Accuracy73.81 | 40 | |
| Biomedical Question Answering | PubMedQA | Attack Accuracy72.5 | 40 | |
| Text-to-SQL | Spider | Attack Accuracy38.14 | 40 | |
| Image Classification | CIFAR-10 | Accuracy (Surrogate Model)97.56 | 26 | |
| Image Classification | TinyImageNet-200 | Surrogate Model Accuracy79.08 | 26 | |
| Image Classification | CIFAR-100 | Accuracy (Surrogate)76.6 | 26 |