Sim-LLM: Optimizing LLM Inference at the Edge through Inter-Task KV Reuse

Rui-Kun Luo, C. Gu, Qiang He, Fei-Fei Chen, Song Wu +2 more
1/1/2025

No confident code implementation found for this paper.

Abstract

KV cache technology, by storing key-value pairs, helps reduce the computational overhead incurred by large language models (LLMs). It facilitates their deployment on resource-constrained edge computing nodes like edge servers.

Show full abstract

However, as the complexity and size of tasks increase, KV cache usage leads to substantial GPU memory consumption. Existing research has focused on mitigating KV cache memory usage through sequence length reduction, task-specific compression, and dynamic eviction policies. However, these methods are computationally expensive for resource-constrained edge computing nodes. To tackle this challenge, this paper presents Sim-LLM, a novel inference optimization mechanism that leverages task similarity to reduce KV cache memory consumption for LLMs. By caching KVs from processed tasks and reusing them for subsequent similar tasks during inference, Sim-LLM significantly reduces memory consumption while boosting system throughput and increasing maximum batch size, all with minimal accuracy degradation. Evaluated on both A40 and A100 GPUs, Sim-LLM achieves a system throughput improvement of up to 39.40% and a memory reduction of up to 34.65%, compared to state-of-the-art approaches. Our source code is available at https://github.com/CGCL-codes/SimLLM .

DOISemantic Scholar

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{luo2025simllm,
  title  = {Sim-LLM: Optimizing LLM Inference at the Edge through Inter-Task KV Reuse},
  author = {Rui-Kun Luo and C. Gu and Qiang He and Fei-Fei Chen and Song Wu and Hai Jin and Yun Yang},
  year   = {2025},
  doi    = {10.52202/085713-2984},
  url    = {https://doi.org/10.52202/085713-2984},
  journal = {Neural Information Processing Systems}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/e51dab8952aa3cf7ae2ce7331ed47d01e7f5612c.svg)](https://codeofpaper.com/paper/e51dab8952aa3cf7ae2ce7331ed47d01e7f5612c)

Discussion