Beyond K/V Caches: Cross-Model State Handoff in Hybrid Linear-Attention LLMs
Abstract
Production deployments often use different models to balance cost and quality through cascading, routing, and switching models during long conversations. Context accumulates across turns. Each switch requires the target to repeat prefill over this context. Existing methods transfer full-attention (FA) K/V caches across models. Hybrid linear-attention models also retain recurrent states (REC) and convolution histories (Conv). The interaction between Conv and REC complicates cross-model state transfer. Conv perturbations can change keys and values in recurrent layers and alter REC updates. Conv histories are overwritten, but changes in REC can still affect later outputs. More accurate REC reconstruction need not improve continuation. Building on this, we propose Hybrid State Transfer (HST) for all three state types. It uses structured REC maps and preserves history order during Conv alignment. We calibrate the adapters using the frozen target's outputs during continuation. FA cache map updates are merged offline. Across five benchmarks, Qwen3.5 4B27B and 9B27B achieve mean task retentions of 89.88% and 94.11%, respectively. With source caches already available, separate timing on synthetic 16K inputs yields handoff body speedups of and .
Create a lesson
Metadata
- Comments
- 12 pages, 4 figures, 9 tables
Related papers
SPARE: Fast Linear Attention Decoding with Compact Recurrent States
Shared title terminologycs.CLKe Wan, Zaiyi Zheng, Chen Chen
Ontology-Compiled 2D Clinical State Fields with Bidirectional Diffusion Encoders for Zero-Training Cross-Ontology Medical Coding
Shared title terminologycs.CLZeqiang Wang
Lost in Rounding: bf16 Recurrent State Makes Hybrid Reasoning Models Think Longer
Shared title terminologycs.CLYuchuan Weng, Xin Chen, Chi Liu
Beyond the Prompt: Leveraging Pre-Decoding States for Jailbreak Detection in dLLMs
Shared title terminologycs.CLAdam Hazimeh, Amel Abdelraheem, Ke Wang et al.
Beyond Truncation: When Can LLMs Safely Omit Generated Text?
Shared title terminologycs.CLMahmoud Alyosify, Mirna Imbabi, Eman Elkhamisi et al.
On the Opportunities and Challenges of Prefill-to-Autoregressive Cross-Model Transfer
Shared title terminologycs.CLZhenyi Shen, Junru Lu, Wei Liu et al.