TDPP: 2-D Permutation-Based Protection of Memristive Deep Neural Networks

Minhui Zou, Zhenhua Zhu, Tzofnat Greenberg-Toledo, Orian Leitersdorf, Jiang Li, Junlong Zhou, Yu Wang, Nan Du, Shahar Kvatinsky

TL;DR

This paper introduces TDPP, a novel two-dimensional permutation-based method to protect DNN weights stored in memristive computing systems from theft attacks. By permuting both rows and columns of weight matrices, TDPP significantly increases the difficulty for adversaries to extract functional DNN models, offering enhanced security with minimal overhead.

What Problem Does This Paper Address?

Modern computer architectures separate processing and memory units, leading to significant energy consumption for data-intensive Deep Neural Networks (DNNs). Memristive computing systems offer a promising solution by performing computations in-situ within memory, drastically reducing data movement and energy usage. However, the non-volatility of memristive devices, while beneficial for data retention, also makes DNN weights stored in these systems vulnerable to physical theft attacks. If an adversary gains access to a memristive computing system, they could potentially extract the DNN weights and reverse-engineer the trained models, leading to intellectual property theft, copyright infringement, and leakage of sensitive information. Existing protection methods often involve frequent data writes, which degrade memristive device endurance, or focus on single-dimensional permutations, which can be circumvented.

Methods

The core of the proposed solution is the Two-Dimensional Permutation-Based Protection (TDPP) method. Unlike previous approaches that permuted either rows or columns of weight matrices, TDPP permutes both dimensions. This is achieved by applying permutation patterns (keys) to both the rows and columns of the DNN weight matrices. To maintain the integrity of DNN computations, the input vectors are permuted according to the row permutation, and the output vectors are reverse-permuted according to the column permutation.

The TDPP hardware module consists of:

  • Permutation Module (PM): Implemented using Benes Networks (BNs), which are non-blocking and efficient for permutation tasks. This module handles the permutation of layer inputs and reverse-permutation of layer outputs.
  • Key Storage: Volatile memory (eDRAM or SRAM) to store the permutation keys, ensuring they are inaccessible when the system is powered off.
  • Key Generator: A Physical Unclonable Function (PUF) is suggested to generate keys, making them difficult for adversaries to steal. The PUF can leverage the random startup values of eDRAM/SRAM cells due to process variations.

TDPP is designed to be embedded into two types of memristive computing architectures:

  • Config-1 (Layer-by-Layer): A global AU processes data sequentially. TDPP is integrated into the global AU.
  • Config-2 (Layer-Parallel): Each tile has its own AU, allowing for parallel processing. TDPP is integrated into the AU of each tile.

Datasets

The paper uses the CIFAR10 dataset for training and evaluating the DNN models. The models used for evaluation include AlexNet, VGG16, ResNet18, and GoogleNet, all modified and trained on CIFAR10 with 8-bit quantized weights.

Key Insights and Ideas

  • Two-Dimensional Permutation is Key: Permuting both rows and columns simultaneously creates a significantly more complex and harder-to-reverse obfuscation compared to single-dimensional permutations. This makes it much more difficult for an adversary to recover the original weight matrix structure.
  • Hardware Efficiency: The use of Benes Networks for the permutation module and the integration of the key generator with existing hardware (like tile buffers) help minimize area and power overheads.
  • Scalability and Flexibility: TDPP can be adapted to different memristive computing architectures (layer-by-layer and layer-parallel) and can handle large weight matrices by permuting them in parts.
  • Security Beyond Brute-Force: While brute-force attacks are considered, the paper also analyzes divide-and-conquer attacks, demonstrating TDPP's resilience by showing that partial key guesses lead to significantly degraded model accuracy.
  • PUF for Key Generation: Leveraging PUFs for key generation adds a crucial layer of security, making the keys inherently tied to the hardware and difficult to extract.

Key Results

  • Protection Effectiveness: TDPP achieves high protection effectiveness, rendering extracted DNN models nearly useless (inference accuracy close to random guessing, ~10%) for both config-1 and config-2 architectures, even with small permutation module sizes (B).
  • Area and Power Savings: TDPP offers substantial reductions in area and power overheads compared to prior methods. For config-1, it achieves up to 1218× (area) and 2815× (power) lower overheads. For config-2, it achieves up to 178× (area) and 203× (power) lower overheads.
  • Security Robustness: The security analysis shows that TDPP is highly secure, especially for config-2 where each layer has a unique key. For config-1, security can be significantly enhanced by using a stronger PUF for key generation. The minimal effort for divide-and-conquer attacks to succeed is significantly high, requiring a large number of key guesses.
  • Minimal Impact on Throughput: The proposed TDPP hardware does not significantly affect system throughput, as the permutation operations can be performed in parallel with other computations or within existing processing pipelines.

Limitations and Future Work

  • Device Imperfections: The paper acknowledges that it did not consider the impact of memristor device imperfections (e.g., non-idealities, resistance variations) or interconnect wire resistance on the protection effectiveness and security. The authors suggest that these factors might even increase the security of TDPP.
  • Side-Channel Attacks: While the paper mentions that intermediate results are stored in on-chip buffers, making direct access difficult, it notes that indirect access via side-channel analysis might be possible. Countermeasures like inserting fake cycles or adding noise are suggested.
  • Known-Plaintext Attacks: The paper briefly discusses known-plaintext attacks and suggests using a predefined user key to encrypt the generated permutation keys as an additional layer of security.
  • Future Work: The authors intend to extend the proposed method to support spiking neural networks and graph neural networks. They also plan to investigate and quantify the effects of device imperfections and interconnect wire resistance in future research.

Summary updated

BibTeX
@article{zou2024tdpp,
  author = {Minhui Zou and Zhenhua Zhu and Tzofnat Greenberg-Toledo and Orian Leitersdorf and Jiang Li and Junlong Zhou and Yu Wang and Nan Du and Shahar Kvatinsky},
  title = {{TDPP: 2-D Permutation-Based Protection of Memristive Deep Neural Networks}},
  journal = {IEEE Trans. Comput. Aided Des. Integr. Circuits Syst.},
  year = {2024},
  doi = {10.1109/tcad.2023.3322351},
}
Figure