[Paper Review] SESAME: Software defined Enclaves to Secure Inference Accelerators with Multi-tenant Execution
SESAME introduces software-defined enclaves (SDEs) for multi-tenant inference accelerators, enabling threat-model-specific security with performance overheads ranging from 3.96% to 34.87% by using compiler-tuned private queues and traffic shapers. The framework achieves computational non-interference and prevents side-channel leaks in DAE-based accelerators for models like VGG, ResNet, and AlexNet.
Hardware-enclaves that target complex CPU designs compromise both security and performance. Programs have little control over micro-architecture, which leads to side-channel leaks, and then have to be transformed to have worst-case control- and data-flow behaviors and thus incur considerable slowdown. We propose to address these security and performance problems by bringing enclaves into the realm of accelerator-rich architectures. The key idea is to construct software-defined enclaves (SDEs) where the protections and slowdown are tied to an application-defined threat model and tuned by a compiler for the accelerator's specific domain. This vertically integrated approach requires new hardware data-structures to partition, clear, and shape the utilization of hardware resources; and a compiler that instantiates and schedules these data-structures to create multi-tenant enclaves on accelerators. We demonstrate our ideas with a comprehensive prototype -- Sesame -- that includes modifications to compiler, ISA, and microarchitecture to a decoupled access execute (DAE) accelerator framework for deep learning models. Our security evaluation shows that classifiers that could distinguish different layers in VGG, ResNet, and AlexNet, fail to do so when run using Sesame. Our synthesizable hardware prototype (on a Xilinx Pynq board) demonstrates how the compiler and micro-architecture enables threat-model-specific trade-offs in code size increase ranging from 3-7 $\%$ and run-time performance overhead for specific defenses ranging from 3.96$\%$ to 34.87$\%$ (across confidential inputs and models and single vs. multi-tenant systems).
Motivation & Objective
- Address the performance and security trade-offs in existing hardware enclaves for accelerators, which suffer from side-channel leaks and high overheads due to worst-case assumptions.
- Close the gap between general-purpose CPU-based confidential computing and accelerator-rich architectures by enabling secure, efficient inference on domain-specific accelerators.
- Enable application-specific threat modeling in enclaves, allowing performance and security to scale gracefully with the actual threat model instead of enforcing one-size-fits-all protections.
- Design and integrate new hardware data-structures—private queues and traffic shapers—at the RTL level to prevent side-channel leaks via contention and observation channels.
- Demonstrate that SDEs can be automatically generated via a compiler stack that schedules and annotates code for security while optimizing for performance and resource utilization.
Proposed method
- Introduce a vertically integrated stack combining a compiler, ISA extensions, and microarchitectural modifications to a decoupled access-execute (DAE) accelerator framework.
- Design two new RTL data-structures: private queues to partition shared hardware resources and prevent contention-channel leaks, and traffic shapers to decouple observation channels from secret data.
- Enable compiler auto-tuning to generate tiling schedules that maximize performance while ensuring secret information is not leaked through execution variability or memory access patterns.
- Support software-configurable traffic shapers that are simpler than hardware-only obfuscation mechanisms, relying on program-phase-aware traffic distribution learned at compile time.
- Integrate threat-model-specific defenses such as private queues and traffic shaping via ISA extensions and driver-level configuration, enabling dynamic tuning based on deployment context.
- Use synthesizable RTL prototypes (on Xilinx Pynq) to evaluate performance and security across multi-tenant scenarios (temporal and spatial sharing) with real-world models like VGG, ResNet, and AlexNet.
Experimental results
Research questions
- RQ1Can software-defined enclaves be effectively applied to domain-specific accelerators to reduce performance overhead while maintaining strong security guarantees?
- RQ2How can private queues and traffic shapers be co-designed at the RTL and compiler levels to prevent side-channel leaks in multi-tenant accelerator execution?
- RQ3To what extent can threat-model-specific security tuning reduce performance overhead compared to monolithic, worst-case security assumptions in general-purpose TEEs?
- RQ4How do performance overheads scale across different threat models (e.g., on-chip vs. off-chip visibility) and sharing modes (temporal vs. spatial) in multi-tenant inference?
- RQ5Can the proposed framework prevent classifiers from distinguishing between different layers of deep learning models, thereby demonstrating resistance to side-channel analysis?
Key findings
- Sesame successfully prevents side-channel classifiers from distinguishing between layers in VGG, ResNet, and AlexNet, demonstrating effective protection against on-chip and off-chip signal leakage.
- In temporal sharing mode, performance overhead ranges from 3.77% to 25.81% with QARMA128 and 4.92% to 34.87% with AES128 encryption, depending on the threat model and model complexity.
- In spatial sharing mode, where resources are equally partitioned among four tenants, overhead is lower (3.31% to 12.78% with QARMA128 and 4.86% to 16.73% with AES128), especially for large models like AlexNet and VGG where memory bandwidth is already a bottleneck.
- Code size increases by 3–7% due to compiler annotations and hardware instantiation, which is minimal compared to the performance cost of worst-case security in general-purpose TEEs.
- The traffic shaper unit is simpler than prior hardware-only shapers because it relies on software-learned traffic patterns, reducing RTL complexity while maintaining strong security.
- The framework is composable with other TEE primitives like encryption, integrity checks, and ORAM, and can be extended to support graph workloads and general-purpose CPUs in future work.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.