Rethinking Memory For AI Inference

Processing data closer to memory could reduce power and boost performance, but software, thermal, and architectural challenges remain.
The shift from AI training in data centers to AI inferencing at the edge will require a fundamental rethinking of where and how data is processed and stored, how it is prioritized, and what needs to be traded off in terms of power and performance to stay within a limited power budget.
At the center of these efforts is a recognition that the explosion of data — especially in physical AI where data is being live-streamed from sensors — requires much of that data to be processed as close to memory as possible.
This has been a topic of discussion since the inception of the Internet of Things, but it really began gaining traction with AI due to the flood of data and concerns about the amount of power required to move and process it.
In battery-electric vehicles and drones, for example, the less energy spent on processing data, the greater the range per charge and the more energy that can be allocated to critical and not-so-critical functions.
The challenge is understanding what data needs to be kept, what can be discarded, and what needs to be acted upon. Those are very different priorities. Making those choices requires advanced processing, and the quickest path to results using the least amount of energy is to minimize the distance data needs to travel between processing and memory.
“The realities of these LLMs getting into physical devices are causing everyone to rethink how they architect their memory,” said Frank Ferro, group director for product management at Cadence. “Even with conventional memory — without even talking about processing in memory — how do I partition these models to maximize the performance both of the overall processor and memory subsystem?”
Solving those issues will require several new approaches, such as processing near memory (PNM) and processing in memory (PIM), as well as improvements across multiple technologies and approaches. Compilers and operating systems will need to catch up, and standards will need to be established.
“AI in the data center and all these large language models have been the focus of everyone’s attention for the last couple of years, and now these models have been trained and pushed out into the field, into the edge of the network and physical AI,” Ferro said. “The reality is you have limited compute power and limited memory.”
AI inferencing at the edge presents different challenges than training AI models in AI data centers.
“Training almost always involves highly variable memory access patterns, and mostly involves the use of interpreted code — for example, Python to PyTorch — which necessitates the complexities of coherence across layers of memory,” said Steve Roddy, chief marketing officer at Quadric.
“Once inference begins, the use model changes dramatically.Whether you are looking at big LLMs running in a data center, or models running locally, such as smaller LLMs or VLAs (vision-language-action) in cars, the model is known before you run it.
That means the data access patterns are known ahead of time.This is where ahead-of-time compilation can start to take great advantage of the various at-memory, processing-in-memory, or in-memory-compute (IMC) options.
The system knows exactly where, when, and how the compute is going to occur.There is no need for one element of a compute solution to guess if something manipulated the data while it was in another memory subsystem, because the entire system orchestration was planned out hours, days, or weeks before, when the AI inference model was compiled.”
Certain stages of the AI inference pipeline benefit from near-memory solutions more than others.
“Pushing the compute into the DRAM or near the DRAM has interesting implications,” said Sharad Chole, chief scientist and co-founder of Expedera.“You’re moving your communication pattern — my activation goes to memory, rather than my memory goes to activation — and that changes how much communication you need to do.
These sort of solutions are okay for low-batch decode.For example, if you have batch one and you are trying to do decode and you are not reading all the weights, as soon as we move to large-batch decode, which is cost-optimized, or prefill, which is large-batch execution, the activation communication becomes the challenging part.
These are the two ways to think about it.In the end, you have to break your execution into parts that are either storage-sensitive, in terms of how much data you need to store, or bandwidth-sensitive, or batching-sensitive.”
Either way, bringing compute closer to data can reduce the time and the energy spent moving it, and processing in the same memory package (custom HBM), or on the same memory die (LPDDR6-PIM), provides two fundamental advantages. “One of them is performance,” said Kos Gitchev, product marketing director at Cadence. “If we’re looking at a CPU or a core sitting inside the SoC