SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.16444 · 2024

CacheBlend: Fast Large Language Model Serving for RAG with Cached Knowledge Fusion

arXiv · PDF · Open in the Atlas

Code that ran

10 of 14 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 9 failures of our instrument; 4 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2405.16444.json · badge: /api/ran/2405.16444.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
YaoJiayi/CacheBlend canonical (classifier label)
classifier basis: census
10 ran · 4 no recorded run
FunctionStatusWhere it lives
async_request_deepspeed_mii Ran
ran on a synthesized input
YaoJiayi/CacheBlend/vllm_blend/benchmarks/backend_request_func.py
pointer only (licence: NONE); the stored copy get_code serves, from thu-keg/seakr, is pointer only (licence: GPL-3.0) · get_code("5109c385e92b727e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, YaoJiayi/CacheBlend when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

async_request_tgi Ran
ran; our contract draft was wrong, not the code
YaoJiayi/CacheBlend/vllm_blend/benchmarks/backend_request_func.py
pointer only (licence: NONE) · get_code("23a62a462a38f854")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, YaoJiayi/CacheBlend when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

async_request_trt_llm Ran
ran; our contract draft was wrong, not the code
YaoJiayi/CacheBlend/vllm_blend/benchmarks/backend_request_func.py
pointer only (licence: NONE); the stored copy get_code serves, from thu-keg/seakr, is pointer only (licence: GPL-3.0) · get_code("fa581ebc13cb414d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, YaoJiayi/CacheBlend when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

run Ran
ran; our contract draft was wrong, not the code
YaoJiayi/CacheBlend/vllm_blend/collect_env.py
pointer only (licence: NONE) · get_code("6b73fe0480a96ad9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, YaoJiayi/CacheBlend when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

run_and_parse_first_match Ran
ran; our contract draft was wrong, not the code
YaoJiayi/CacheBlend/vllm_blend/collect_env.py
pointer only (licence: NONE) · get_code("ce7a62e37fe78c0d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, YaoJiayi/CacheBlend when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

run_and_read_all Ran
ran; our contract draft was wrong, not the code
YaoJiayi/CacheBlend/vllm_blend/collect_env.py
pointer only (licence: NONE) · get_code("5ae630bfc3821b6e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, YaoJiayi/CacheBlend when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

run_vllm Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
YaoJiayi/CacheBlend/vllm_blend/benchmarks/benchmark_throughput.py
pointer only (licence: NONE) · get_code("fd6dc735c20e21a1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, YaoJiayi/CacheBlend when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

sample_requests Ran
ran; our contract draft was wrong, not the code
YaoJiayi/CacheBlend/vllm_blend/benchmarks/benchmark_throughput.py
pointer only (licence: NONE) · get_code("f55439b30be97107")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, YaoJiayi/CacheBlend when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

sample_sharegpt_requests Ran
ran; our contract draft was wrong, not the code
YaoJiayi/CacheBlend/vllm_blend/benchmarks/benchmark_serving.py
pointer only (licence: NONE) · get_code("755fbe4f15780723")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, YaoJiayi/CacheBlend when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

sample_sonnet_requests Ran
ran; our contract draft was wrong, not the code
YaoJiayi/CacheBlend/vllm_blend/benchmarks/benchmark_serving.py
pointer only (licence: NONE) · get_code("d87074ce933e7862")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, YaoJiayi/CacheBlend when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

awq_dequantize Not yet run
unverified (harvested, no recorded run)
YaoJiayi/CacheBlend/vllm_blend/vllm/_custom_ops.py
pointer only (licence: NONE) · get_code("c382c6353e8cccb0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, YaoJiayi/CacheBlend when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

awq_gemm Not yet run
unverified (harvested, no recorded run)
YaoJiayi/CacheBlend/vllm_blend/vllm/_custom_ops.py
pointer only (licence: NONE) · get_code("f3fcfeaca594c86f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, YaoJiayi/CacheBlend when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

gptq_gemm Not yet run
unverified (harvested, no recorded run)
YaoJiayi/CacheBlend/vllm_blend/vllm/_custom_ops.py
pointer only (licence: NONE) · get_code("4def2cf22c36f4e8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, YaoJiayi/CacheBlend when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

run_hf Not yet run
unverified (harvested, no recorded run)
YaoJiayi/CacheBlend/vllm_blend/benchmarks/benchmark_throughput.py
pointer only (licence: NONE) · get_code("0745e2813903bd8d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, YaoJiayi/CacheBlend when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 11 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 11 later) and 3 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
run_and_parse_first_match 14 other papers
5 dated earlier, 9 later
2109.04003 (2021-09)
Improving Deep Metric Learning by Divide and Conquer
2109.08267 (2021-09)
CompilerGym: Robust, Performant Compiler Optimization Environments for AI Research
2202.04053 (2022-02)
DALL-Eval: Probing the Reasoning Skills and Social Biases of Text-to-Image Generation Models
and 11 more not named here
run_and_read_all 14 other papers
5 dated earlier, 9 later
2109.04003 (2021-09)
Improving Deep Metric Learning by Divide and Conquer
2109.08267 (2021-09)
CompilerGym: Robust, Performant Compiler Optimization Environments for AI Research
2202.04053 (2022-02)
DALL-Eval: Probing the Reasoning Skills and Social Biases of Text-to-Image Generation Models
and 11 more not named here
run 6 other papers
6 later
2406.19215 (2024-06)
SeaKR: Self-aware Knowledge Retrieval for Adaptive Retrieval Augmented Generation
2410.00428 (2024-10)
LayerKV: Optimizing Large Language Model Serving with Layer-wise KV Cache Management
2411.04750 (2024-11)
SpectraFM: Tuning into Stellar Foundation Models
and 3 more not named here
run_hf 3 other papers
2 dated earlier, 1 later
2402.01799 (2024-02)
Faster and Lighter LLMs: A Survey on Current Challenges and Way Forward
2402.01869 (2024-02)
InferCept: Efficient Intercept Support for Augmented Large Language Model Inference
2410.00428 (2024-10)
LayerKV: Optimizing Large Language Model Serving with Layer-wise KV Cache Management
async_request_deepspeed_mii 2 other papers
2 later
2406.19215 (2024-06)
SeaKR: Self-aware Knowledge Retrieval for Adaptive Retrieval Augmented Generation
2410.00428 (2024-10)
LayerKV: Optimizing Large Language Model Serving with Layer-wise KV Cache Management
async_request_trt_llm 2 other papers
2 later
2406.19215 (2024-06)
SeaKR: Self-aware Knowledge Retrieval for Adaptive Retrieval Augmented Generation
2410.00428 (2024-10)
LayerKV: Optimizing Large Language Model Serving with Layer-wise KV Cache Management
awq_dequantize 2 other papers
2 later
2408.15792 (2024-08)
Efficient LLM Scheduling by Learning to Rank
2410.00428 (2024-10)
LayerKV: Optimizing Large Language Model Serving with Layer-wise KV Cache Management
awq_gemm 2 other papers
2 later
2408.15792 (2024-08)
Efficient LLM Scheduling by Learning to Rank
2410.00428 (2024-10)
LayerKV: Optimizing Large Language Model Serving with Layer-wise KV Cache Management
gptq_gemm 2 other papers
2 later
2408.15792 (2024-08)
Efficient LLM Scheduling by Learning to Rank
2410.00428 (2024-10)
LayerKV: Optimizing Large Language Model Serving with Layer-wise KV Cache Management
async_request_tgi 1 other paper
1 later
2410.00428 (2024-10)
LayerKV: Optimizing Large Language Model Serving with Layer-wise KV Cache Management
sample_requests 1 other paper
1 later
2410.00428 (2024-10)
LayerKV: Optimizing Large Language Model Serving with Layer-wise KV Cache Management

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Large language models (LLMs) often incorporate multiple text chunks in their inputs to provide the necessary contexts. To speed up the prefill of the long LLM inputs, one can pre-compute the KV cache of a text and re-use the KV cache when the context is reused as the prefix of another LLM input. However, the reused text chunks are not always the input prefix, which makes precomputed KV caches not directly usable since they ignore the text's cross-attention with the preceding texts. Thus, the benefits of reusing KV caches remain largely unrealized. This paper tackles just one challenge: when an LLM input contains multiple text chunks, how to quickly combine their precomputed KV caches in order to achieve the same generation quality as the expensive full prefill (i.e., without reusing KV cache)? This challenge naturally arises in retrieval-augmented generation (RAG) where the input is supplemented with multiple retrieved texts as the context. We present CacheBlend, a scheme that reuses the precomputed KV caches, regardless prefix or not, and selectively recomputes the KV values of a small subset of tokens to partially update each reused KV cache. In the meantime, the small extra delay for recomputing some tokens can be pipelined with the retrieval of KV caches within the same job, allowing CacheBlend to store KV caches in slower devices with more storage capacity while retrieving them without increasing the inference delay. By comparing CacheBlend with the state-of-the-art KV cache reusing schemes on three open-source LLMs of various sizes and four popular benchmark datasets of different tasks, we show that CacheBlend reduces time-to-first-token (TTFT) by 2.2-3.3x and increases the inference throughput by 2.8-5x from full KV recompute without compromising generation quality. The code is available at https://github.com/LMCache/LMCache.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2405.16444")
get_code_for_paper("2405.16444")
have("2405.16444")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2405.16444.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2405.16444.svg)](https://syntology.ai/paper/2405.16444)

Connect an agent — have() is free.