DroidSpeak: KV Cache Sharing Across Fine-tuned Model Variants

Yuhan Liu (PhD student · University of Chicago), Yuyang Huang (University of Chicago), Jiayi Yao (University of Chicago), Shaoting Feng (University of Chicago), Zhuohan Gu (University of Chicago), Kuntai Du (University of Chicago), Hanchen Li (University of Chicago), Yihua Cheng (University of Chicago), Junchen Jiang (University of Chicago), Shan Lu (Microsoft), Madan Musuvathi (Microsoft), Esha Choukse (Microsoft)

23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 1 · Overfitting the Internet

Overview

Modern AI systems increasingly rely on multi-agent architectures and collaborative pipelines where different language models must process identical long-context inputs. In application domains such as automated coding assistants, a user prompt is frequently prepended with megabytes of relevant source code before being routed through distinct specialized agents—such as a code-generation agent, a testing agent, and a documentation agent. While standard KV cache (Key-Value cache) mechanisms eliminate redundant prefill computations when multiple requests hit the exact same model, they fail completely when different agents operate on fine-tuned variants of a base model or completely separate model versions. Transmitting raw text forces every downstream model to repeat the expensive prefill phase from scratch, wasting vast amounts of compute and introducing tens of seconds of latency.

Watch on YouTube · Slides

Visual summary for DroidSpeak: KV Cache Sharing Across Fine-tuned Model Variants by Yuhan Liu, Yuyang Huang, Jiayi Yao, Shaoting Feng, Zhuohan Gu, Kuntai Du, Hanchen Li, Yihua Cheng, Junchen Jiang, Shan Lu, Madan Musuvathi, Esha Choukse
Visual summary for DroidSpeak: KV Cache Sharing Across Fine-tuned Model Variants by Yuhan Liu, Yuyang Huang, Jiayi Yao, Shaoting Feng, Zhuohan Gu, Kuntai Du, Hanchen Li, Yihua Cheng, Junchen Jiang, Shan Lu, Madan Musuvathi, Esha Choukse

Key moments

  1. 0:00 Introduction and multi-agent long context challenge
  2. 2:05 Using KV cache for sharing context across same models
  3. 4:00 The problem: sharing KV cache across different fine-tuned models
  4. 7:00 Empirical study on critical layers and layer sensitivity
  5. 10:00 JoeySpeak's partial recomputation and hidden state transmission
  6. 12:00 Pipelining recomputation and offline profiler design
  7. 14:00 Evaluation setup and latency-quality trade-offs
  8. 15:42 Throughput improvements and conclusion

DroidSpeak: KV Cache Sharing Across Fine-tuned Model Variants

Speakers: Yuhan Liu (PhD student, University of Chicago); Yuyang Huang (University of Chicago); Jiayi Yao (University of Chicago); Shaoting Feng (University of Chicago); Zhuohan Gu (University of Chicago); Kuntai Du (University of Chicago); Hanchen Li (University of Chicago); Yihua Cheng (University of Chicago); Junchen Jiang (University of Chicago); Shan Lu (Microsoft); Madan Musuvathi (Microsoft); Esha Choukse (Microsoft)

Conference: USENIX NSDI

YouTube: https://www.youtube.com/watch?v=x2n4sXtolUM

Overview

Modern AI systems increasingly rely on multi-agent architectures and collaborative pipelines where different language models must process identical long-context inputs. In application domains such as automated coding assistants, a user prompt is frequently prepended with megabytes of relevant source code before being routed through distinct specialized agents—such as a code-generation agent, a testing agent, and a documentation agent. While standard KV cache (Key-Value cache) mechanisms eliminate redundant prefill computations when multiple requests hit the exact same model, they fail completely when different agents operate on fine-tuned variants of a base model or completely separate model versions. Transmitting raw text forces every downstream model to repeat the expensive prefill phase from scratch, wasting vast amounts of compute and introducing tens of seconds of latency.

This talk introduces DroidSpeak (referred to phonetically in the talk as "Joy Speak"), a novel serving system designed to enable efficient KV cache sharing across fine-tuned model variants. Developed as a collaboration between researchers at the University of Chicago and Microsoft, DroidSpeak addresses the core challenge of model heterogeneity in cache reuse: while fine-tuned models within the same architecture family share identical tensor shapes, directly injecting one model's KV cache into another causes catastrophic generation quality collapse, degrading output fidelity by up to 60%.

DroidSpeak solves this challenge through a hybrid translation mechanism that identifies and selectively recomputes only the layers sensitive to model variance—termed critical layers—while directly reusing the remaining cached layers. By strategically combining reused KV states with selectively recomputed states and pipelining network transfers with execution, DroidSpeak achieves up to a 4x improvement in inference throughput and drastic reductions in prefill latency without sacrificing generation quality.

Background

▶ Watch: Introduction and multi-agent long context challenge (0:00)

The standard paradigm for serving large language models relies heavily on the KV cache to store intermediate key and value tensor states generated during the prefill stage (the initial computationally heavy pass over input tokens). When multiple downstream user queries or application agents query the same long-context input (such as enterprise documents, codebases, or legal repositories), modern inference engines bypass redundant prefill computation by fetching the pre-computed KV cache from system memory.

However, production LLM systems have outgrown single-model deployments. Real-world platforms typically maintain multiple coexisting model variants: personalized user assistants fine-tuned on private datasets, specialized downstream task agents, and periodically updated model checkpoints that adapt to evolving data streams. When Model A processes a long context and generates a KV cache, transmitting that cache to Model B (a fine-tuned variant of the same architecture) seems structurally trivial because both models share identical layer counts, sequence lengths, and feature dimensions.

Despite matching tensor shapes, models fine-tuned on different objectives or data distributions develop internal representations that diverge significantly. Direct cross-model KV cache injection causes severe semantic misalignment, resulting in up to a 60% drop in task evaluation metrics (such as F1 score). Building a deep neural network to translate tensor states across models is computationally prohibitive, as the translation overhead frequently exceeds the latency of simply recomputing the prefill phase from scratch. DroidSpeak bridges this gap by investigating the internal layer-wise sensitivity of fine-tuned model variants to design a lightweight, highly efficient translation framework.

Key Findings

▶ Watch: The problem: sharing KV cache across different fine-tuned models (4:00)

The central discovery underpinning DroidSpeak is that model divergence in KV caches is highly localized. Through extensive empirical analysis across eight model pairs and six diverse datasets, the researchers discovered that only a small fraction of transformer layers are sensitive to cross-model KV cache substitution.

  • Localization of Divergence: When performing layer-by-layer KV cache replacement experiments—swapping individual layers of Model B's cache with Model A's cache—only a minority of layers exhibit sharp drops in generation quality (F1 score). The authors term these sensitive layers critical layers.
  • Sparsity of Critical Layers: Across all evaluated model pairs and datasets, critical layers constitute an average of only 11% of the total network depth. The remaining 89% of layers can accept KV states from another fine-tuned variant with negligible impact on output quality.
  • Input-Invariant Critical Layers: Although the absolute magnitude of KV cache differences varies across distinct inputs, the specific indices of the critical layers remain remarkably consistent regardless of the input text. This stability enables offline profiling of model pairs to pre-determine critical layer sets.
  • Throughput and Latency Gains: By exploiting this sparsity, DroidSpeak achieves up to a 4x improvement in inference throughput (measured in queries per second) while drastically cutting prefill delays on long-context benchmarks compared to full recomputation baselines.

Technical Deep Dive

▶ Watch: JoeySpeak's partial recomputation and hidden state transmission (10:00)

DroidSpeak implements a hybrid KV cache translation and execution pipeline that reconciles the efficiency of cache reuse with the necessity of model adaptation.

Critical Layer Identification and Offline Profiling

Because online layer-sensitivity profiling is computationally prohibitive during live serving, DroidSpeak employs an offline profiler. Given a pair of fine-tuned variants ($Model_A$ and $Model_B$), the system runs multiple representative context inputs through both models, extracts their layer-wise KV caches, and calculates normalized per-layer differences. Because these difference distributions cluster reliably around specific layer indices across diverse inputs, the system identifies a static set of critical layer indices for that specific model pair and stores them for online inference lookup.

Hybrid Cache Construction and Hidden State Transmission

Transformer architectures are strictly sequential; feeding a modified KV cache into a downstream model requires valid hidden states flowing into any recomputed layers. If DroidSpeak directly reuses Model A's KV cache for the first several layers, Model B loses the intermediate hidden states required to compute subsequent layers from scratch.

To resolve this, DroidSpeak's translation mechanism does two things:

  1. It fetches the reused KV cache for all non-critical layers directly from Model A.
  2. It transmits the hidden states flowing into the first critical layer from Model A to Model B.

Model B then initiates its partial prefill recomputation starting precisely from the hidden states of the transitioning critical layer. The resulting memory structure is a hybrid cache composed of reused non-critical KV states and newly computed critical KV states.

Pipelined Network Transfer and Execution

To maximize system efficiency over constrained interconnects, DroidSpeak overlaps communication and computation. Instead of waiting for Model A's entire KV cache to complete network transmission before Model B begins any work, DroidSpeak pipelines the transfer. Reused KV states for non-critical layers stream across the network, and as soon as the hidden state of the transitioning layer arrives at Model B's node, Model B initiates its partial recomputation. This pipelining amortizes network transfer latency, proving especially vital in clusters with restricted node-to-node bandwidth.

Experimental Setup & Results

▶ Watch: Pipelining recomputation and offline profiler design (12:00)

The evaluation of DroidSpeak is conducted on a distributed cluster simulating multi-agent LLM serving environments.

  • Hardware Infrastructure: Experiments utilize dedicated A100 Azure nodes, with each model replicated across eight A100 GPUs spanning eight nodes.
  • Network Topology: Compute nodes are interconnected via network links operating at 17 GB per second.
  • Workloads and Datasets: Evaluations focus on multi-hop question answering using Hotpot QA, a widely adopted long-context QA benchmark well-suited for stressing multi-agent pipelines with extensive contextual text.
  • Baselines: DroidSpeak is compared against two primary baselines: (1) a Full Recomputation Baseline, where Model A transmits raw text to Model B and Model B executes a complete prefill phase from scratch, and (2) a Direct KV Cache Reuse Baseline, which injects Model A's unadapted cache directly into Model B.
  • Headline Results:
  • Direct KV cache reuse results in up to a 60% reduction in output quality (F1 score).
  • DroidSpeak successfully preserves generation quality (matching full recomputation baselines) while slashing prefill latency.
  • In throughput evaluations, DroidSpeak delivers up to a 4x increase in queries per second (QPS) compared to the full recomputation baseline.

Practical Implications

▶ Watch: Throughput improvements and conclusion (15:42)

For infrastructure teams, model builders, and LLM serving platform engineers, DroidSpeak offers a compelling blueprint for scaling multi-agent and multi-variant deployments without linear scaling of compute costs.

  • Multi-Agent Efficiency: Enterprises deploying swarms of specialized coding, reasoning, or formatting agents can share underlying document context memories across distinct task-specific fine-tunes without forcing redundant prefill passes.
  • Model Evolution & Versioning: Serving infrastructure can seamlessly transition user traffic across periodically updated fine-tuned checkpoints by translating cached context rather than invalidating system caches.
  • Bandwidth Tradeoffs: The system's pipelining design demonstrates that network transfer bottlenecks can be effectively masked by starting recomputation early from intermediate hidden states. However, deployers must account for the network overhead of transmitting both partial KV caches and transition hidden states across nodes.
  • Limitations: DroidSpeak currently targets fine-tuned variants sharing the same base model architecture and tensor dimensions. Extending this technique to radically heterogeneous model architectures (e.g., translating caches between different model families or scale tiers) remains an open challenge due to fundamental incompatibilities in hidden state dimensions and attention mechanisms.

Key Takeaways

  • The Cross-Model Cache Problem: Reusing KV caches across different fine-tuned LLM variants directly causes up to a 60% degradation in output generation quality due to internal representation divergence.
  • Sparsity of Divergence: Empirical analysis reveals that only a tiny fraction of transformer layers—an average of 11%—are critical layers sensitive to cross-model KV cache differences.
  • Input Invariance: Critical layer indices remain consistent across varying input contexts, enabling efficient offline profiling per model pair rather than expensive online evaluation.
  • Hybrid Execution: DroidSpeak constructs hybrid caches by reusing non-critical KV states while transmitting intermediate hidden states to selectively recompute only the critical layers.
  • Throughput Gains: Pipelining network transfers with partial recomputation yields up to a 4x improvement in inference throughput and dramatically lowers prefill latency on long-context multi-agent workloads.

About the Speaker(s)

Yuhan Liu is a PhD student in Computer Science at the University of Chicago, specializing in systems and machine learning infrastructure. This work was conducted primarily during an internship at Microsoft, in collaboration with researchers from both institutions spanning distributed systems, systems architecture, and machine learning.

Reviews

→ Top-rated talks at 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)

All talks from 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)