Reproduce “Shared-Prefix KV Reuse Across Standard LoRA Adapters: Quality and Serving Tradeoffs” 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
Dushyant Rajput
The paper tests whether LoRA specialists can reuse a backbone’s key/value cache for a shared prompt without retraining. The method computes a prefix cache with adapters disabled; each specialist processes the last prompt token and generates. On 500 GSM8K examples, full-prefix reuse scored 49.8% versus 54.4% natively, while 8K QA warm-cache TTFT fell from 486 to 30 ms; physical sharing was 0%.
Key insights
- KV reuse is most valuable for long shared contexts: at roughly 8,000 tokens, QA warm-cache TTFT fell about 16×, from 486 ms to 30 ms, while the one-time 417 ms base prefill can be amortized across adapters.
- Direct reuse is not generally quality-preserving: GSM8K dropped from 54.4% to 49.8% exact match in one evaluation, and QA fell by 6.6 F1 points at roughly 2,000 tokens, though other settings showed little or no statistically clear difference.
- The tested implementation reduced working-set memory but did not physically share prefix KV tensors between branches; copying during cache extension limited the two-branch memory reduction to about 12% at 8,000 tokens.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.