DeepNVM++: Cross-Layer Modeling and Optimization Framework of Nonvolatile Memories for Deep Learning

Ahmet Inci, Mehmet Meric Isgenc, Diana Marculescu · DOI

Abstract

As deep learning (DL) models continue to scale in complexity and parameter count, traditional GPU memory hierarchies are encountering a "memory wall." Static Random Access Memory (SRAM), the standard for last-level caches (LLC), faces significant challenges regarding leakage power and physical density. This paper presents DeepNVM++, a comprehensive cross-layer framework designed to model and optimize emerging Non-Volatile Memory (NVM) technologies—specifically STT-MRAM and SOT-MRAM—as alternatives to SRAM in GPU architectures. By integrating circuit-level physics with architectural simulation, DeepNVM++ demonstrates that NVMs can achieve up to a 4.7x reduction in energy-delay product (EDP) for modern convolutional neural network (CNN) workloads.

1. Introduction: The GPU Memory Wall

The rapid advancement of deep learning is increasingly bottlenecked by the memory subsystem. Modern GPUs rely on large L2 caches to mitigate the latency of external DRAM; however, these caches are traditionally built using SRAM. As manufacturing processes scale down to 16nm and below, SRAM faces two critical limitations: high leakage power and low cell density. Leakage power now constitutes a substantial portion of the total energy budget, while the large physical footprint of SRAM cells limits the total cache capacity that can be integrated on-chip without prohibitive costs.

DeepNVM++ addresses these challenges by providing a specialized toolset to evaluate Non-Volatile Memories (NVMs) within the specific context of deep learning. Unlike generic memory studies, this framework bridges the gap between low-level device characteristics and the high-level memory access patterns inherent in CNN training and inference.

2. The DeepNVM++ Framework

The DeepNVM++ framework employs a three-layer approach to ensure accuracy from the bitcell to the system level:

2.1 Circuit-Level Modeling

The foundation of the framework utilizes SPICE modeling based on a commercial 16nm FinFET process. This layer characterizes the physical properties of STT-MRAM (Spin-Transfer Torque) and SOT-MRAM (Spin-Orbit Torque) bitcells, including read/write latency, energy consumption per operation, and physical area.

2.2 Microarchitecture-Level Optimization

These circuit models are integrated into an enhanced version of NVSim. The framework introduces a novel Energy-Delay-Area Product (EDAP) optimization algorithm. This algorithm explores the design space to identify cache configurations that balance the inherent trade-offs between speed, power efficiency, and silicon real estate.

2.3 Architecture-Level Simulation

To evaluate real-world performance, the framework utilizes two primary analysis modes:

  • Iso-capacity Analysis: This mode profiles DL workloads on an NVIDIA GTX 1080 Ti (using Caffe and nvprof) to determine the impact of replacing the existing 3MB SRAM cache with an equal capacity of MRAM.
  • Iso-area Analysis: Using GPGPU-Sim, the framework simulates a scenario where the physical area of the 3MB SRAM cache is instead populated with high-density MRAM, allowing for significantly larger cache capacities (up to 10MB) within the same footprint.

3. Experimental Methodology

The framework was evaluated using the ImageNet dataset across five representative CNN architectures: AlexNet, GoogLeNet, VGG-16, ResNet-18, and SqueezeNet. The evaluation encompasses both the inference and training phases, capturing the distinct memory behaviors of each stage.

4. Key Insights and Comparative Analysis

4.1 Elimination of Leakage Power

The primary advantage of NVMs in this context is the near-total elimination of static leakage power. Because MRAM is non-volatile, it does not require constant power to maintain its state. In large-scale GPU caches, where leakage often dominates the energy profile, this transition results in orders-of-magnitude improvements in energy efficiency.

4.2 Density and Scalability

MRAM cells are approximately 3x smaller than their SRAM counterparts. This density advantage allows architects to either reduce the chip size to lower costs or increase the cache capacity to reduce the frequency of expensive DRAM accesses. The study found that for "mega-cache" designs (e.g., 32MB), SRAM becomes effectively unscalable due to power constraints, whereas MRAM variants continue to scale efficiently.

4.3 STT vs. SOT Performance

The analysis identifies SOT-MRAM as the superior candidate for DL workloads. By separating the read and write paths, SOT-MRAM achieves faster and more energy-efficient read operations. Since inference tasks are heavily read-dominated, SOT-MRAM provides the most significant performance gains.

5. Key Results

  • Iso-capacity Results: Replacing the 3MB SRAM cache with MRAM resulted in a 3.8x EDP reduction for STT-MRAM and a 4.7x reduction for SOT-MRAM. Furthermore, the physical area required for the cache was reduced by 2.4x and 2.8x, respectively.
  • Iso-area Results: Utilizing the same physical footprint as a 3MB SRAM cache allowed for a 7MB STT-MRAM or a 10MB SOT-MRAM cache. This increased capacity led to a 19.8% reduction in DRAM transactions and a 2.3x overall EDP reduction.
  • Batch Size Scaling: The benefits of NVM-based caches were found to scale positively with batch size. As training workloads increase in intensity, the EDP advantages of MRAM over SRAM become even more pronounced.

6. Limitations and Future Work

While DeepNVM++ demonstrates the clear potential of NVMs, certain challenges remain. MRAM still exhibits higher write latency and energy compared to SRAM, which can be a bottleneck for write-intensive training phases. Additionally, while MRAM has high endurance, the long-term effects of the high-frequency write cycles required by DL training warrant further investigation. Future work may also explore how the silicon area saved by MRAM's density could be repurposed for additional compute cores or larger register files to further enhance GPU throughput.

7. Conclusion

DeepNVM++ provides a vital bridge between device physics and architectural design for the next generation of deep learning hardware. By demonstrating that STT and SOT-MRAM can effectively break the "memory wall," this framework paves the way for more energy-efficient and higher-capacity GPU cache hierarchies, essential for the continued growth of AI model complexity.

Summary updated

BibTeX
@article{inci2022deepnvm,
  author = {Ahmet Inci and Mehmet Meric Isgenc and Diana Marculescu},
  title = {{DeepNVM++: Cross-Layer Modeling and Optimization Framework of Nonvolatile Memories for Deep Learning}},
  journal = {IEEE Trans. Comput. Aided Des. Integr. Circuits Syst.},
  year = {2022},
  doi = {10.1109/tcad.2021.3127148},
}
Figure