Putting AI Calculations Inside an SSD Made Responses Four Times Faster in KAIST Tests
Moving AI calculations closer to stored data could change how future computers handle demanding AI workloads. KAIST's MemLLM architecture achieved a fourfold speedup in testing, raising the possibility of SSDs taking on a more active role in local AI processing.
Overview of the proposed MemLLM technology. Credit: KAIST
Precomputing data is supposed to make AI processing faster, but engineers at the Korea Advanced Institute of Science and Technology (KAIST) found that this isn't always the case. In fact, their tests showed that retrieving previously calculated data from an SSD could be slower than simply performing the calculations again. The problem was the time spent transferring the data to the GPU, rather than the calculations themselves.
Now, KAIST has developed an SSD architecture called MemLLM that moves part of the AI processing into the storage device. Instead of repeatedly transferring large amounts of cached information over PCIe, the SSD performs the calculations locally and returns the results to the GPU. According to the team, the design improved AI response-processing speed by an average of 4.06 times in its evaluations.
The research, led by PhD student Seungkwan Kang and Professor Myoungsoo Jung, was presented at MICRO 2026 in Athens, Greece. The team is particularly interested in on-device AI systems that can search through stored documents, such as medical records, financial information and company files, without relying on an external server.
One of the problems with these systems is the sheer amount of information that needs to be processed before an answer can be generated. A relatively simple question might require an AI model to search several documents containing thousands of tokens, even if the answer itself is only a few sentences.
To reduce this processing time, some systems calculate key-value (KV) caches for documents in advance, allowing the results to be reused when those documents are retrieved again. However, these caches can occupy several gigabytes, and smaller devices don't necessarily have enough memory to keep them alongside the AI model.
In KAIST's tests, a GPU-based system using precomputed KV caches was actually 2.86% slower on average than one calculating the information from scratch. While precomputing reduced the work performed by the GPU, the benefit was lost when the system had to retrieve the data from storage.
Moving AI Processing Into the SSD
MemLLM takes a different approach by positioning small processing units alongside the NAND flash channels inside an SSD. These units handle the attention calculations associated with the stored KV caches, while the GPU continues running the remaining parts of the language model.
The idea isn't entirely new, as in-storage processing has been investigated for years. However, existing approaches generally concentrate on particular operations, such as attention during token generation, rather than handling the complete attention workload associated with precomputed document caches.
The problem is that reusing precomputed caches isn't as simple as loading them into memory. When multiple documents are retrieved together, some of the cached information needs to be recalculated to account for the relationships between them. Previous work has shown that recalculating approximately 15% of the tokens can help preserve the quality of the generated answer.
With a conventional implementation, this can mean transferring the cached data to the GPU for recalculation, followed by another read for the attention operations. It's not difficult to see how this would become a problem when dealing with several gigabytes of information over a relatively limited PCIe connection.
KAIST's solution combines these operations so that they can be completed during a single pass through the stored data. The team claims this halves NAND read volume and removes the need to write recalculated results back to flash before using them.
The processing hardware itself is also rather different from a conventional SSD controller. Instead of using one central accelerator, MemLLM distributes its processing units across the NAND channels, allowing them to work in parallel and make use of the combined internal flash bandwidth.
These accelerators use a design called Elastic-SIMD, which can change its configuration depending on the type of calculation being performed. The researchers developed this arrangement to handle both matrix-vector and matrix-matrix operations without requiring separate processing hardware for each.
However, this introduced another issue. With multiple accelerators producing results simultaneously, the SSD controller's DRAM became a bottleneck, potentially cancelling out some of the gains from moving processing closer to the NAND flash.
To get around this, KAIST added a reduction engine with 1 MB of SRAM that combines the intermediate results without repeatedly accessing the controller's DRAM. The design also uses pipelining to overlap NAND reads with processing, allowing the researchers to make greater use of the available flash bandwidth.
The paper reports that this increased effective NAND throughput from approximately 11 GB/s to 19 GB/s in the evaluated configuration. Instead of moving large KV caches backwards and forwards between the SSD and GPU, MemLLM keeps most of the data within the storage device.
How Much Faster Is MemLLM?
To test the architecture, KAIST developed an FPGA implementation of the accelerator and combined its measurements with GPU profiling and a cycle-accurate SSD simulator.
The team used an NVIDIA Jetson Orin NX as its reference edge computing platform, testing six language models across eight question-answering datasets covering medical, financial, legal and general knowledge.
The overall result was an average 4.06-fold improvement in end-to-end processing speed compared with the conventional GPU baseline. Against a GPU implementation already using precomputed KV caches, MemLLM achieved a slightly higher improvement of 4.18 times.
The researchers also compared their design with two existing in-storage processing architectures. InstAttention, which moves attention calculations into storage during token generation, achieved an average speedup of 1.61 times. Another architecture called AiF, which moves model-weight processing into flash, achieved 1.17 times in the same evaluation.
One notable difference is that MemLLM can handle longer document contexts without needing to keep the complete KV cache in GPU memory. AiF, on the other hand, encountered out-of-memory errors with some of the larger datasets.
Power consumption is another concern when adding processing hardware to an SSD, especially in laptops and other devices where power and cooling are limited.
According to measurements from the FPGA prototype, MemLLM's accelerator consumed an average of 2.12 W, with a peak of 2.55 W. This kept the design within the 3 W power budget used by the researchers, although the figures don't represent the power consumption of a complete commercial SSD.
There are some important qualifications to these results. KAIST hasn't produced a finished SSD with MemLLM built into its controller and NAND channels. Instead, the performance figures come from a combination of FPGA measurements, GPU testing and simulation.
The fourfold improvement also depends on the type of AI workload being used. MemLLM was designed for applications that retrieve large amounts of document information before generating relatively short answers. Systems working with smaller documents, or those with sufficient memory to hold their KV caches, may see less benefit.
Interestingly, the paper also found that increasing the available host memory from 8 GB to 16 GB reduced MemLLM's advantage over the GPU baseline to 1.83 times. That's still a substantial improvement, but it shows how much of the design's performance depends on avoiding data transfers that would otherwise be necessary.
Could SSDs Become Part of the AI Processing Hardware?
Most AI hardware development has concentrated on providing more computing power, whether through larger GPUs, dedicated neural processors or greater memory bandwidth. MemLLM suggests that some workloads could benefit just as much from changing where the calculations are performed.
This could be particularly useful for personal AI assistants that need to work with large amounts of locally stored information. For example, an AI system searching years of medical records or comparing financial documents could potentially process the information without continuously transferring large caches between storage and the GPU.
Of course, keeping an AI model and its data on the same device is already possible. The difficulty comes when the amount of information exceeds the memory available, forcing the system to rely more heavily on storage.
An SSD capable of handling some of those calculations could reduce the demands placed on the GPU and its memory, while allowing the system to work with larger document collections. This doesn't mean that SSDs would replace dedicated AI accelerators, but they could become another processing resource within the system.
There are also practical questions about bringing such a design to market. MemLLM requires processing hardware distributed across the NAND channels, additional SRAM and changes to the way software communicates with the SSD. The research uses vendor-specific NVMe commands to support its processing operations, meaning that conventional storage hardware and software would need adapting.
Whether SSD manufacturers would consider the additional complexity worthwhile remains to be seen. The benefits would likely depend on how frequently devices need to perform these particular AI workloads, especially as memory capacities increase and other techniques reduce the size of KV caches.
Still, the KAIST results are worth paying attention to. Even with more host memory available, the team found that moving calculations into storage could offer a performance advantage. If the architecture can be successfully integrated into commercial SSD hardware, it could provide another way to improve local AI performance without simply relying on more powerful processors.
Related news
Keep up with the components and technology shaping electronics.
Join the club for member features, engineering discussion and easier access to the latest Component Club content.