What is In-memory computing?
Performing computations such as multiply-accumulate inside the memory array to cut data movement between memory and processor. Research is under way on using resistive elements and the like for AI inference.
Field: Emerging memories
Japanese name: インメモリコンピューティング
Background
An ordinary computer carries data from memory to the processor, computes, and returns the result to memory. AI computation reads a huge number of weights again and again and repeats multiplications and additions. More time and power therefore go into moving data than into the computation itself. If the computation is done inside the memory where the data resides, this movement is reduced.
Analog multiply-accumulate
An array with resistive elements at the crossings of lines is used. The conductance of each element serves as a weight, and input voltages are applied to the row lines. By Ohm’s law, the current through an element is the product of its conductance and the voltage. On a column line the currents of the connected elements add together. The current in one column line therefore directly represents a sum of products. For example, applying 0.2 V and 0.1 V to elements with conductances of 10 µS and 20 µS gives 2 µA each, for a total of 4 µA. Many multiplications and additions are completed in a single read.
Challenges and types
Since the computation is analog, its precision is limited. Element-to-element variation, change of resistance over time and line resistance all become errors. The circuits that convert current into digital values also take up much of the area and power. Inference, whose precision requirements are comparatively relaxed, is therefore the main target. There are also digital approaches, which perform logic operations inside memories such as SRAM. Placing computing circuits right next to the memory is distinguished as near-memory computing.
Try it: questions about In-memory computing
- AAs light-emitting elements for displays
- BAs battery electrodes
- CPerforming multiply-accumulate operations inside the memory array to reduce data movement and power in AI processing
Show answer and explanation
Answer: C. Performing multiply-accumulate operations inside the memory array to reduce data movement and power in AI processing
AI workloads need enormous numbers of multiply-accumulate operations, and moving data between memory and compute often accounts for a large share of the power. Storing weights as conductances in a resistive array and applying inputs as voltages performs multiplication by Ohm's law (I = GV) and summation by Kirchhoff's current law, all at once on the wires. Because it is analog computation, device variability and ADC precision are the challenges.
FAQ
How does it differ from near-memory computing?
Near-memory computing places ordinary computing circuits very close to the memory to shorten the distance data travels. In-memory computing uses the array of memory cells itself for computation.
Can it be used for training?
Research is under way, but it is harder than inference. Training requires weights to be changed precisely in small steps, and unevenness in how element values change is an obstacle.
Books on Emerging memories Ad
As an Amazon Associate I earn from qualifying purchases.
This page was drafted with AI and fact-checked by a separate AI review before publication. Our Editorial policy explains how we write and check content. If you spot an error, please tell us on our Contact page.
Back to the glossary