KAIST MemLLM Runs LLM Attention Inside the SSD, Averaging a 4.06x Speedup for On-Device RAG Researchers in Professor Myoungsoo Jung's Computer Architecture and Memory Systems Laboratory at KAIST have designed MemLLM, an SSD architecture that runs a language model's attention calculations inside the drive, reporting an average end-to-end speedup of 4.06x over a GPU baseline across eight retrieval-augmented generation (RAG) datasets and six on-device models. MemLLM executes the full attention pipeline on precomputed key-value caches inside the SSD, with accelerators on each NAND channel, and only the reduced result crosses PCIe, which the authors say holds transfer to a constant size regardless of context length. The results come from an RTL implementation on a 16nm FPGA, kernel timing on an NVIDIA Jetson Orin NX board, and a cycle-accurate SSD simulator; the work will be published at IEEE/ACM MICRO 2026. Researchers at KAIST have designed MemLLM, an SSD architecture that runs a language model’s attention calculations inside the drive, so a laptop or edge device can answer questions over private documents without first moving gigabytes of cached data to the GPU. Across eight retrieval-augmented generation RAG datasets and six on-device models, the team reports an average end-to-end speedup of 4.06x over a GPU baseline. The work comes from Professor Myoungsoo Jung’s Computer Architecture and Memory Systems Laboratory and will be published at IEEE/ACM MICRO 2026. Where On-Device RAG Stalls RAG lets a model answer from a user’s files, and running it on the device keeps those documents private. The expense is the prefill phase, because the model has to process long retrieved documents before it writes a short answer. Servers typically avoid that work by computing each document’s key-value KV cache ahead of time and loading it at query time. On a client device those caches run to multiple gigabytes, and the paper describes pulling them across the narrow storage interconnect as an I/O wall. Attention Next to the NAND MemLLM executes the full attention pipeline on precomputed KV caches inside the SSD. Accelerators sit on each NAND channel to use the drive’s combined channel bandwidth, and only the reduced result crosses PCIe, which the authors say holds the transfer to a constant size regardless of context length. A combined recomputation and query step with hardware filtering halves the volume of NAND reads and avoids writing updated caches back to flash, and an SRAM-based reduction engine lets the data path work without DRAM. On the host, a software stack receives results from the drive asynchronously without extra copies and runs inside existing machine learning frameworks, so applications do not need to be rewritten around the drive. The approach sits alongside other work that pushes RAG onto flash, such as KIOXIA’s AiSAQ https://www.storagereview.com/news/kioxia-updates-aisaq-software-enhancing-ssd-based-vector-search-for-rag-and-ai-workloads , which keeps vector search indexes on SSDs. Evaluated on an FPGA Prototype and an SSD Simulator The 4.06x average comes from a research prototype in which the team implemented the accelerator in RTL on a 16nm FPGA, measured kernel timing on that prototype and on an NVIDIA Jetson Orin NX board, and combined the measurements with a cycle-accurate SSD simulator. These are the researchers’ results, and we did not run or audit them. Putting the design into a shipping drive would take an SSD controller built with accelerators on every NAND channel.