Nvidia’s researchers have developed a new technique that allows for efficient transfer of Key-Value (KV) caches between AI models, addressing a significant bottleneck in multi-LLM workflows. The cross-model KV cache transfer technique enables seamless transition of tasks between smaller and larger models, potentially reducing compute costs and latency considerably.
When transitioning tasks from one model to another, AI systems typically incur high costs due to the need to recompute the entire conversation history. This process can lead to increased latency and significant expenses. Nvidia’s new method, however, allows for direct mapping of the prefilled KV cache from a source model to a target model, thus circumventing the need for expensive recomputation.
Experiments conducted by Nvidia demonstrate that this linear mapping approach can run between 2.7 and 25 times faster than traditional methods while retaining up to 98% of the target model’s standalone accuracy. This efficiency opens new avenues for real-world applications that require extensive context over multiple turns in conversations.
Understanding the challenges of multi-model workflows reveals why switching models mid-session is costly. The process typically involves two phases: the prefill stage, where the model computes keys and values for input tokens, and the decode phase, where it generates new tokens based on the KV cache. Switching models invalidates the KV cache, forcing the system to recompute the entire prefill stage, which is both time-consuming and costly.
Nvidia’s study focused on how developers can effectively transform the KV cache of one model to match the format expected by another model, thereby eliminating the need for a complete recompute. This cross-model KV cache transfer is beneficial in both directions: transitioning from a smaller model to a larger one enhances output quality, while moving from a larger model to a smaller one reduces computational costs.
The researchers tested the cross-model KV cache transfer across six matched KV model families, including Qwen3, Llama 3.1, and Ministral 3. They assessed the models on various accuracy benchmarks, revealing that the closed-form linear ridge mapper retained 73% to 98% of the target model’s prefill accuracy in four out of six tested pairs.
Nvidia’s findings indicate that the KV cache transfer can significantly enhance performance in multi-turn conversations, maintaining accuracy even over extended sessions. The linear approach, while effective, did present challenges for specific model configurations. In instances where it struggled, the researchers adapted by employing a nonlinear multi-layer perceptron to recover accuracy.
This advancement is part of a broader industry effort to address the KV cache bottleneck, a critical issue as enterprises scale their AI capabilities. Alongside Nvidia’s development, other strategies, such as dynamic memory sparsification and aggressive data compression techniques, are being explored to enhance efficiency in AI systems.
The introduction of cross-model KV cache transfer is a pivotal step in managing the computational demands of large-scale AI applications. As developers continue to refine these methodologies, the focus on optimizing memory infrastructure will be essential in supporting the growing complexity of AI systems.
Featured image credit


