paper-with-me

Papers

KV Cache Recycling to Expand Usable Context Capacity in Low Parameter LLMs

2025-12-04 · Prashant Pandey arxiv

Whether attention key value (KV) states computed for one prompt for a small LLM can be reused to accelerate inference on a new similar prompt, giving an increase to the space to its context memory using an approach called token recycling. Using a standard Hugging Face setup with DialoGPT-medium (a 345M parameter GPT-2 style decoder trained on 147M Reddit exchanges, 2005 to 2017) as the testbed, we build a cache of past activations and get entries by sentence embeddings, then reuse cached past key values when the cached prompt is an exact prefix of the new input. We compare recycled vs. baseline runs on latency and output fidelity, and log reuse depth in tokens. Reproducibility requires no model modifications, cached KVs are serialized to the CPU, reloaded, and supplied to the generate function to continue decoding from the cached prefix. In tests, we observe consistent speedups when prefix overlap exists, with no material degradation in output semantics, and when overlap is absent, behavior matches baseline.

📄 PDF Abstract BibTeX arXiv:2512.11851

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

TaskPress: Query-Agnostic KV Cache Compression via Task-Guided Pruning

2026-08-04 · Wonpyo Park, Seung-won Hwang arxiv

Long-context inference with large language models is constrained by the linear growth of the key-value cache to sequence length. While pruning offers mitigation, prevailing methods determine query-specific token importan…

Embedding Recycling for Language Models

2022-07-11 · Jon Saad-Falcon, Amanpreet Singh, Luca Soldaini, Mike D'Arcy 외

Real-world applications of neural language models often involve running many different models over the same corpus. The high computational cost of these runs has led to interest in techniques that can reuse the contextua…

Question AnsweringText Classification

RocketKV: Accelerating Long-Context LLM Inference via Two-Stage KV Cache Compression

2025-02-19 · Payman Behnam, Yaosheng Fu, Ritchie Zhao, Po-An Tsai 외

Transformer-based Large Language Models rely critically on KV cache to efficiently handle extended contexts during the decode phase. Yet, the size of the KV cache grows proportionally with the input length, burdening bot…

GPU

KVzip: Query-Agnostic KV Cache Compression with Context Reconstruction

2025-05-29 · Jang-Hyun Kim, Jinuk Kim, Sangwoo Kwon, Jae W. Lee 외

Transformer-based large language models (LLMs) cache context as key-value (KV) pairs during inference. As context length grows, KV cache sizes expand, leading to substantial memory overhead and increased attention latenc…

Question Answering

CrossPool: Efficient Multi-LLM Serving for Cold MoE Models through KV-Cache and Weight Disaggregation

2026-06-23 · Zhuoren Ye, Tianyu Wo, Dinghao Xue, Mingming Zhang 외 arxiv

Emerging LLM services increasingly host many sparse MoE models, yet most models receive sparse requests and remain cold. This creates a GPU memory problem: model weights are stable and model-determined, while KV-cache is…