Abstract
Non-volatile memory (NVM) technologies such as spin-transfer torque magnetic random access memory (STT-MRAM) and spin-orbit torque magnetic random access memory (SOT-MRAM) have significant advantages compared to conventional SRAM due to their non-volatility, higher cell density, and scalability features. While previous work has investigated several architectural implications of NVM for generic applications, in this work we present DeepNVM++, a framework to characterize, model, and analyze NVM-based caches in GPU architectures for deep learning (DL) applications by combining technology-specific circuit-level models and the actual memory behavior of various DL workloads. We present both iso-capacity and iso-area performance and energy analysis for systems whose last-level caches rely on conventional SRAM and emerging STT-MRAM and SOT-MRAM technologies. In the iso-capacity case, STT-MRAM and SOT-MRAM provide up to 3.8x and 4.7x energy-delay product (EDP) reduction and 2.4x and 2.8x area reduction compared to conventional SRAM, respectively. Under iso-area assumptions, STT-MRAM and SOT-MRAM provide up to 2x and 2.3x EDP reduction and accommodate 2.3x and 3.3x cache capacity when compared to SRAM, respectively. We also perform a scalability analysis and show that STT-MRAM and SOT-MRAM achieve orders of magnitude EDP reduction when compared to SRAM for large cache capacities. Our comprehensive cross-layer framework is demonstrated on STT-/SOT-MRAM technologies and can be used for the characterization, modeling, and analysis of any NVM technology for last-level caches in GPUs for DL applications.
Introduction
As deep learning (DL) models grow in complexity, hardware designers are increasing GPU cache capacities to mitigate the "memory bottleneck." However, traditional Static Random-Access Memory (SRAM) is hitting a physical wall. It suffers from high leakage power and low cell density, meaning larger caches lead to massive power consumption and chip area requirements. Emerging Non-Volatile Memories (NVMs) like Spin-Transfer Torque MRAM (STT-MRAM) and Spin-Orbit Torque MRAM (SOT-MRAM) offer high density and near-zero leakage power, but they introduce new trade-offs, such as higher write latencies and energies. DeepNVM++ addresses the lack of a comprehensive framework to evaluate these NVM technologies across different layers—from circuit-level physics to architectural-level deep learning performance.
Methods
The authors introduce DeepNVM++, a cross-layer analysis flow that connects three distinct levels of hardware design:
- Circuit-Level: Detailed bitcell characterization using 16nm CMOS technology and prominent Magnetic Tunnel Junction (MTJ) models.
- Microarchitecture-Level: Exploration of cache configurations using an enhanced version of NVSim. A novel EDAP-Optimal Cache Tuning Algorithm is implemented to find the optimal balance between Energy, Delay, and Area for a given capacity.
- Architecture-Level:
- Iso-capacity analysis: Profiling DL workloads (AlexNet, GoogLeNet, VGG-16, ResNet-18, SqueezeNet) using the Caffe framework to evaluate NVMs as direct SRAM replacements.
- Iso-area analysis: Utilizing GPGPU-Sim to simulate the impact of the higher density of NVM, which allows for larger cache capacities within the same physical footprint, thereby reducing off-chip DRAM traffic.
Key Results and Insights
The framework demonstrates that NVMs are particularly suited for DL workloads, where data often resides in the cache for many cycles, making SRAM's leakage power a significant liability. SOT-MRAM emerged as a superior candidate because its separate read and write paths allow for smaller access devices and lower write energy compared to STT-MRAM.
Performance and Energy Efficiency
In the iso-capacity case, STT-MRAM and SOT-MRAM provide up to 3.8x and 4.7x reduction in Energy-Delay Product (EDP), respectively. They also reduce the physical area by 2.4x and 2.8x. Under iso-area assumptions, the higher density of NVMs allows for 2.3x to 3.3x larger L2 caches, which keeps more data on-chip and reduces expensive DRAM accesses by up to 19.8%.
Scalability
As GPU trends move toward even larger L2 caches (e.g., 32MB and beyond), the performance and energy gap between SRAM and NVM grows exponentially. The benefits are especially pronounced in training workloads, which are more read-dominant, playing to NVM's strengths of low-cost reads and near-zero leakage.
Conclusion
DeepNVM++ provides a robust framework for modeling and optimizing NVM-based caches in GPUs. While commercial availability and long-term write endurance remain factors for future study, this work shows that STT-MRAM and SOT-MRAM offer a scalable path forward for data-hungry deep learning applications, significantly outperforming traditional SRAM in both energy efficiency and area density.
Summary updated