Enabling Privacy-Preserving, Compute- and Data-Intensive Computing using Heterogeneous Trusted Execution Environment

Jianping Zhu, Rui Hou, XiaoFeng Wang, Wenhao Wang, Jiangfeng Cao, Lutan Zhao, Fengkai Yuan, Peinan Li, Zhongpu Wang, Boyan Zhao, Lixin Zhang, Dan MengarXiv 2019

Introduction

Modern compute- and data-intensive (CDI) tasks, particularly deep learning, rely heavily on hardware accelerators like GPUs. However, as data privacy regulations like GDPR become more stringent, the need for secure processing environments has grown. While Trusted Execution Environments (TEEs) such as Intel SGX provide hardware-isolated enclaves, they are traditionally CPU-centric and do not extend security guarantees to external PCIe devices. HETEE (Heterogeneous Trusted Execution Environment) addresses this gap by providing a TEE for unmodified, off-the-shelf accelerators.

The HETEE Architecture

HETEE shifts the security boundary from the accelerator silicon to the system interconnect. It utilizes a trusted Security Controller—a standalone hardware unit that manages drivers and encryption—and a Software-Defined PCIe Switch.

Dynamic PCIe routing between secure and insecure worlds

As shown in the architecture above, the PCIe ExpressFabric allows the system to dynamically route accelerators. When a secure task is initiated, the switch physically re-routes the accelerator's connection from the untrusted host OS to the Security Controller, effectively pulling the device into a "Secure World." This approach allows for elastic security, where expensive hardware can be time-shared between standard and sensitive workloads.

Ensuring Security through Context Cleanup

A primary challenge in heterogeneous TEEs is preventing side-channel leaks when an accelerator transitions between secure and insecure states. Standard vendor APIs for resetting devices are optimized for performance rather than security, often leaving sensitive data in memory or registers.

Comparison of context cleanup methods for GPU state sanitization

HETEE implements a rigorous context cleanup protocol. As detailed in the table above, while API-based resets are fast (53-71ms), they only clear resources for the current process or context. To ensure complete sanitization, HETEE combines software reboots with manual code-based overwriting of registers, caches, and global memory (GlM), ensuring no residual data remains before the device is returned to the host.

Performance and Scalability

Evaluation using the ImageNet dataset across various neural network architectures (AlexNet, ResNet, etc.) demonstrates that HETEE maintains high efficiency. The system incurs a modest throughput overhead of approximately 12.34% for AI inference and 9.87% for AI training. Furthermore, HETEE scales effectively; increasing the number of GPUs from one to four resulted in a 2.16x acceleration ratio, closely matching the scaling performance of unprotected baseline systems. From a cost perspective, the hardware overhead for an 8-GPU server is estimated at roughly $2,779, a fraction of the cost of a single high-end accelerator.

Conclusion

HETEE provides a pragmatic and cost-effective solution for secure CDI computing. By leveraging PCIe-level isolation, it enables the use of standard accelerators in secure environments without requiring hardware modifications. While future work is needed to reduce the Trusted Computing Base (TCB) size and adapt the model for System-on-Chip (SoC) architectures, HETEE represents a significant step toward practical, high-performance privacy-preserving computing.

Summary updated

BibTeX
@misc{zhu2019enabling,
  author = {Jianping Zhu and Rui Hou and XiaoFeng Wang and Wenhao Wang and Jiangfeng Cao and Lutan Zhao and Fengkai Yuan and Peinan Li and Zhongpu Wang and Boyan Zhao and Lixin Zhang and Dan Meng},
  title = {{Enabling Privacy-Preserving, Compute- and Data-Intensive Computing using Heterogeneous Trusted Execution Environment}},
  year = {2019},
  eprint = {1904.04782},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1904.04782},
}
Figure