Abstract
Modern computing faces a significant performance bottleneck known as the "memory wall," where data movement between the processor and memory dominates energy and time consumption. This paper introduces an innovative in-memory multiplication engine that leverages the inherent stochastic switching behavior of Spin-Orbit-Torque Magnetic Random Access Memory (SOT-MRAM). By integrating Stochastic Computing (SC) principles directly into the memory array, the proposed system performs complex multiplications without the need for bulky external random number generators. Experimental evaluations demonstrate an 18x speedup over traditional in-memory logic and a 58% reduction in energy consumption.
Introduction
The von Neumann architecture, which separates processing units from memory, is increasingly ill-suited for data-intensive applications like artificial intelligence and signal processing. Processing-in-Memory (PIM) has emerged as a promising alternative, aiming to perform computations directly within the storage medium. While PIM excels at simple bitwise operations, implementing efficient multiplication remains a challenge. Conventional approaches often require numerous clock cycles or high-voltage analog components that compromise hardware durability.
Methodology: Stochastic Computing in SOT-MRAM
The authors address the multiplication challenge by combining Stochastic Computing (SC) with the unique physical properties of SOT-MRAM.
Stochastic Computing Principles
In SC, numerical values are represented as bitstreams where the value corresponds to the probability of a bit being '1'. This representation simplifies multiplication to a single bitwise AND operation between two independent bitstreams. However, traditional SC is hindered by the area and power overhead of Stochastic Number Generators (SNGs), which can account for up to 95% of the total circuit area in conventional designs.
Harnessing MRAM Stochasticity
Instead of using external SNGs, this design utilizes the probabilistic switching of SOT-MRAM cells. When a specific voltage pulse is applied to an SOT-MRAM bit, it has a predictable probability of flipping its state. This "bug" in traditional memory design—uncertainty in switching—is repurposed here as a computational resource.
The Multiplication Workflow
The process begins by converting binary operands into logarithmic timing signals via a lookup table. These signals control the duration of write pulses sent to the memory array.
Multiplication is achieved in-situ by applying two sequential voltage pulses (VtX and VtY) to the same memory cell. The probability that a cell remains in its initial unswitched state after both pulses is mathematically equivalent to the product of the probabilities associated with each pulse. This sequential logic effectively performs the AND operation required for stochastic multiplication.
The final result is stored directly in the memory state across the array. A "pop-count" operation (counting the number of '1's) is then used to convert the stochastic result back into a binary format.
Key Results and Insights
The proposed engine offers several advantages over existing architectures:
- Performance: It achieves an 18x speedup compared to implementing multiplication using bitwise Boolean logic in-memory (such as the DRISA architecture) and 4x better performance than state-of-the-art SC approaches.
- Energy Efficiency: By eliminating heavy data buffering and external SNGs, it reduces energy consumption by 58% compared to conventional SC methods.
- Robustness: The system is inherently fault-tolerant. Because the result is a probability distribution across many bits, it remains accurate despite individual hardware defects or thermal noise. Simulations show stable accuracy even with 10% fluctuations in critical current (Ic).
Limitations and Future Work
Despite its advantages, the engine faces scaling challenges. Stochastic computing requires exponentially longer bitstreams to increase precision (e.g., moving from 8-bit to 16-bit), which may limit its use in high-precision scientific tasks. Additionally, converting results back to binary via pop-counting remains a hardware bottleneck. Future research will also need to address IR drop in large memory arrays, which can cause undesired variations in switching probabilities across the chip.
Conclusion
By turning the probabilistic nature of SOT-MRAM into a feature, the authors have developed a highly efficient in-memory multiplication engine. This approach significantly mitigates the memory wall bottleneck, offering a scalable and energy-efficient path forward for next-generation AI hardware.
Summary updated