[Paper Review] MgX: Near-Zero Overhead Memory Protection with an Application to Secure DNN Acceleration
MgX is a near-zero overhead memory protection scheme for hardware accelerators that leverages application-specific data movement patterns to eliminate the need for storing version numbers in memory and customizes protection granularity to match accelerator data objects. It achieves less than 1% performance overhead for both DNN inference and training on state-of-the-art architectures.
In this paper, we propose MgX, a near-zero overhead memory protection scheme for hardware accelerators. MgX minimizes the performance overhead of off-chip memory encryption and integrity verification by exploiting the application-specific aspect of accelerators. Accelerators tend to explicitly manage data movement between on-chip and off-chip memory, typically at an object granularity that is much larger than cache lines. Exploiting these accelerator-specific characteristics, MgX generates version numbers used in memory encryption and integrity verification only using on-chip state without storing them in memory, and also customizes the granularity of the memory protection to match the granularity used by the accelerator. To demonstrate the applicability of MgX, we present an in-depth study of MgX for deep neural network (DNN) and also describe implementations for H.264 video decoding and genome alignment. Experimental results show that applying MgX has less than 1% performance overhead for both DNN inference and training on state-of-the-art DNN architectures.
Motivation & Objective
- Address the high performance overhead of off-chip memory encryption and integrity verification in hardware accelerators.
- Reduce memory protection costs by exploiting accelerator-specific data movement patterns at object-level granularity.
- Minimize reliance on off-chip storage for version numbers used in encryption and integrity verification.
- Customize memory protection granularity to match accelerator data movement units to avoid unnecessary overhead.
- Demonstrate practical applicability and performance efficiency in real-world accelerator workloads such as DNNs, H.264 decoding, and genome alignment.
Proposed method
- Generate version numbers for memory encryption and integrity verification exclusively from on-chip state, eliminating the need to store them in off-chip memory.
- Leverage the fact that accelerators manage data movement at object-level granularity, which is coarser than cache lines, to align memory protection boundaries with these units.
- Use accelerator-specific control logic to track and update version numbers internally, avoiding external memory access for version state.
- Customize the granularity of memory protection to match the accelerator’s data movement objects, reducing the number of protection operations.
- Integrate the scheme into the accelerator’s data path to enable efficient, on-the-fly encryption and integrity verification during memory transactions.
- Design the protection mechanism to be transparent to the application and compatible with existing accelerator pipelines.
Experimental results
Research questions
- RQ1Can memory protection overhead be reduced to near-zero in accelerators by exploiting application-specific data movement patterns?
- RQ2To what extent can version numbers for encryption and integrity verification be generated and managed using only on-chip state?
- RQ3How does aligning memory protection granularity with accelerator data movement objects affect performance overhead?
- RQ4What is the performance impact of MgX on real-world accelerator workloads such as DNN inference and training?
- RQ5Can MgX be effectively applied to diverse accelerator workloads beyond DNNs, such as video decoding and genome alignment?
Key findings
- MgX achieves less than 1% performance overhead for DNN inference on state-of-the-art DNN architectures.
- MgX achieves less than 1% performance overhead for DNN training on state-of-the-art DNN architectures.
- The scheme eliminates the need to store version numbers in off-chip memory by generating them solely from on-chip state.
- By aligning protection granularity with accelerator data movement objects, MgX reduces the number of encryption and integrity checks required.
- The approach is applicable to diverse accelerators, including those for H.264 video decoding and genome alignment, demonstrating broad compatibility.
- The performance efficiency of MgX is achieved without compromising security, maintaining strong memory confidentiality and integrity guarantees.
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.