Reproduce “Swarm: Co-Activation Aware KVCache Offloading Across Multiple SSDs” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Tuowei Wang, Liyun Chu, Ruwen Fan, Ju Ren

A system called SWARM optimizes KVCache offloading for large language models by leveraging co-activation patterns to parallelize I/O across multiple SSDs. It achieves an average throughput improvement of 3.99x and 3.95x higher I/O bandwidth utilization compared to a non-clustered baseline, while preserving model accuracy.

Key insights

  • KVCache entries in LLMs exhibit consistent co-activation, where accessing one entry strongly correlates with the access of a stable set of other entries.
  • Aggregating bandwidth by leveraging these co-activation patterns allows for transforming single-device, bandwidth-bound SSD access into parallel I/O across multiple SSDs.
  • Optimizing both offline placement and online retrieval—through correlation-aware clustering, controlled replication, and load balancing—is crucial for maximizing multi-SSD throughput.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.