Abstract
Memristive computing systems offer high energy efficiency for Deep Neural Network (DNN) inference but face significant security risks due to the non-volatile nature of memristors, which allows for physical weight extraction. This paper introduces TDPP (Two-Dimensional Permutation-Based Protection), a hardware-security mechanism that obfuscates DNN weights by permuting both rows and columns of weight matrices. TDPP achieves high security (brute-force resistance $>2^{256}$) with minimal hardware overhead, reducing area and power consumption by up to 1218× and 2815× compared to state-of-the-art 1D permutation methods.
Introduction
Memristive crossbars enable "In-Situ" processing, eliminating the "memory wall" by performing computations directly where data is stored. However, because memristive devices are non-volatile, they retain sensitive DNN weights even when powered down. An adversary with physical access can extract these weights, leading to intellectual property theft. Traditional encryption is unsuitable due to high overhead and device wear. Previous obfuscation techniques typically rely on 1D permutations, which are vulnerable to advanced attacks and scale poorly.
The TDPP Method
TDPP transforms weight matrices into a scrambled state that is functionally useless without the correct decryption key. The core innovation is the use of two-dimensional permutations.
- 2D Permutation Logic: By shuffling both rows ($p_r$) and columns ($p_c$), the search space for an attacker expands exponentially from $N!$ to $(N!)^2$. Even if an attacker reads the values, they don't know the original arrangement.
- Hardware Implementation: The system utilizes Benes Networks (BN), which are efficient, non-blocking switching fabrics. These networks allow for any input-to-output mapping with minimal logic overhead. To further optimize, large permutation modules are decomposed into smaller, parallel BNs to save space without significantly compromising security.
- Key Management: Permutation keys are generated using Physical Unclonable Functions (PUFs). By leveraging the unique physical characteristics of the hardware itself, keys are never stored in non-volatile memory, preventing their extraction.
Key Insights and Results
The researchers evaluated TDPP across several standard models (AlexNet, VGG16, ResNet18, GoogleNet) using the CIFAR-10 dataset.
- Security Robustness: With a Benes Network size $B \ge 8$, the effort required for a divide-and-conquer attack exceeds $2^{256}$ trials, the gold standard for modern cryptographic security. Extracted models without the correct key yield near-random inference accuracy (~10%), ensuring the stolen IP is worthless.
- Efficiency Gains: TDPP demonstrates massive efficiency improvements over prior 1D methods. In a layer-by-layer processing architecture (Config-1), it reduces area overhead by 1218× and power by 2815×. In layer-parallel architectures (Config-2), reductions are 178× and 203×, respectively.
- The Index Vector Trick: When a small weight matrix is mapped to a large hardware crossbar, many rows are left empty. An attacker could use these empty rows to guess the permutation pattern. TDPP solves this by mapping weights to contiguous rows and using a hidden "index vector" to keep the arrangement secret.
Conclusion
TDPP provides a highly secure and efficient solution for protecting DNN weights in memristive hardware. While highly resistant to brute-force attacks, future work will investigate the impact of memristor non-idealities (like conductance variation) on security and extend the protection to other architectures like Spiking Neural Networks (SNNs) and Graph Neural Networks (GNNs).
Summary updated