Training modern deep neural networks (DNNs) is an energy-intensive process, primarily due to the massive data movement between memory and processing units. For instance, training a ResNet-50 model requires approximately $10^{18}$ floating-point operations. Conventional architectures struggle with the "memory wall," where moving weights and gradients consumes significantly more energy than the computations themselves. This paper introduces a novel digital Process In-Memory (PIM) accelerator based on Spin-Orbit Torque Magnetic Random Access Memory (SOT-MRAM) to address these bottlenecks.
Architectural Innovations
The proposed architecture leverages the unique properties of SOT-MRAM to perform high-precision floating-point arithmetic directly within the memory array. Unlike analog PIM, which suffers from low precision, or previous digital PIM designs that require complex multi-step logic, this approach focuses on three core innovations:
1. The 1T-1R Memory Cell
The researchers developed a "one-transistor, one-resistor" (1T-1R) cell design. This architecture strikes an optimal balance between the high density of single-MTJ (Magnetic Tunnel Junction) cells and the computational flexibility of 2T-1R cells. Crucially, it enables row-parallel writing, which is essential for high-speed parallel arithmetic operations.
2. Native Logic and Streamlined Arithmetic
SOT-MRAM is not merely a storage medium; it can function as a natural logic gate. By controlling current direction and thresholds, it can perform AND, OR, and XOR operations in a single step.
By leveraging these native capabilities, the authors redesigned the standard Full Adder (FA). While previous digital PIM designs required 13 steps and 12 memory cells for a 1-bit addition, this streamlined design reduces the overhead to just 4 steps and 4 cells.
3. Floating-Point Optimization
To support the high-precision requirements of DNN training (FP32), the accelerator implements a search-based method for exponent alignment and a shift-and-add strategy for mantissa multiplication. The design allows for flexible cell reuse, treating parts of the memory array as a cache to prevent the overwriting of operands during intermediate steps.
Evaluation and Results
The architecture was evaluated using the LeNet-5 model on the MNIST dataset, with circuit-level estimations performed via NVSim based on 28nm technology parameters. The study compared the SOT-MRAM accelerator against FloatPIM, a state-of-the-art ReRAM-based digital PIM accelerator.
Key performance metrics include:
- 3.3× Energy Reduction: Attributed to fewer computing steps and the lower write current inherent to SOT-MRAM compared to ReRAM.
- 1.8× Speedup: The reduction in logic steps for full addition significantly shortens training cycles.
- 2.5× Area Efficiency: Streamlined logic requires fewer auxiliary cells for intermediate values, maximizing computational density.
Conclusion and Future Outlook
This work demonstrates that SOT-MRAM is a highly viable candidate for high-precision digital PIM. By moving computation into the memory and simplifying the logic primitives, the accelerator achieves substantial gains in efficiency. Future research will focus on scaling this architecture to modern, large-scale models like Transformers and addressing the hardware realization challenges of manufacturing MTJs at scale alongside CMOS logic. Additionally, incorporating ultra-fast SOT-MRAM variants could potentially reduce latency by an additional 56.7%.
Summary updated