WnW: Waxing-and-Waning KV Cache for Long-Form Speech LLMs

Yiming Yao, Chenyang Lyu, Xuanfan Ni, Longyue Wang, Weihua Luo, Yazheng Yang, Jinsong SuarXiv 2026

TL;DR

Long-form audio processing pushes the memory limits of speech LLMs due to massive Key-Value (KV) caches. This paper introduces WnW (Waxing-and-Waning), a dynamic KV cache management strategy that selectively offloads and recalls audio tokens between GPU and CPU during decoding. By classifying attention heads into specialized functional roles, WnW retains near-perfect accuracy while keeping only 20% of audio tokens on the GPU, drastically outperforming static compression baselines.

What Problem Does This Paper Address?

When speech LLMs process long audio inputs—such as a 10-minute meeting or lecture—the KV cache quickly explodes, accounting for 70–80% of the total inference memory cost. To mitigate this, existing text-based KV compression methods score tokens during the initial "prefill" stage and permanently discard low-scoring ones.

The authors demonstrate that this static approach fails catastrophically for speech. In long-form audio, prefill attention suffers from an "attention-sink" effect, heavily concentrating on the very beginning of the audio clip. However, during the actual decoding phase, the model's attention distributes broadly across the entire timeline as it transcribes or translates. Because static methods permanently delete these later segments during prefill, the model gets stuck in infinite loops, fails to terminate generation, or hallucinates wildly.

Prefill vs. Decode Attention Mismatch

Methods

WnW addresses this mismatch by introducing a dynamic, two-part architecture:

  1. Offline Head Triage: Before deployment, KV-heads are calibrated on a small validation set and partitioned into three functional roles based on their Voice Score (how well attention aligns with word timestamps) and Head Sensitivity (how much losing their data hurts model loss):
  2. Anchor Heads: Kept 100% on the GPU. They act as real-time observers, tracking where the model is currently "reading" in the audio timeline.
  3. Tidal Heads: Keep a small fraction of critical tokens on the GPU and offload the rest to the CPU.
  4. Fixed Heads: Keep a static subset on the GPU and permanently discard the rest, as their attention patterns change little.
  5. Online Recallable Chunk Swap: During decoding, the anchor heads generate a per-step attention score across the audio. WnW uses this signal to dynamically fetch ("wax") relevant audio chunks from the CPU into the tidal heads on the GPU, and drop ("wane") them after a few steps of inactivity.
Figure 2: Overview of WnW. Left (Prefill): KV-heads are partitioned into three roles via offline VS×HS calibration. Anchor heads retain all audio KV on GPU; tidal heads offload their unselected complement to CPU; fixed heads discard the unselected portion permanently. Right (Decode): anchor-head attention identifies the top-𝑘audio chunks at each step; tidal heads recall the complement of those chunks from CPU on demand and release it again after 𝛿consecutive unselected steps (the CPU copy persists). The dashed frame marks one selected chunk, i.e. two segments.

Datasets

  • LibriSpeech-Long: The primary English Automatic Speech Recognition (ASR) benchmark, constructed by merging adjacent utterances into recordings up to 4 minutes long.
  • LongSpeech: Used to evaluate cross-lingual (French ASR) and cross-task (English-to-French speech translation) generalization.
  • PriMock57: A dataset of simulated primary-care medical consultations used as an out-of-domain ASR benchmark.
  • Calibration Set: A small, disjoint set of 50 LibriSpeech-Long dev-clean samples used exclusively for the offline head triage.

Key Insights and Ideas

  • The Prefill-Decode Mismatch: Prefill attention is a poor proxy for decode attention in speech. Prefill puts nearly 48% of its attention mass on the first 10% of the audio, whereas decode attention spreads uniformly across the entire timeline.
  • Asymmetry of Attention Heads: Not all attention heads are created equal. Some track audio time perfectly (anchors), while others are highly insensitive to audio loss (fixed). Exploiting this asymmetry allows for highly efficient tiering.
  • Temporal Advantage of Speech: Speech has a strict, time-ordered structure. As decoding progresses, attention sweeps predictably through the audio, making chunk-based prefetching and swapping highly effective compared to text LLMs, which lack strict temporal alignment.

Key Results

  • Maintains Accuracy at 20% Budget: At a tight budget of 20% GPU retention, WnW maintains a Word Error Rate (ASR WER) within ~1.6 points of the uncompressed Full Cache baseline across both Voxtral-mini-3b and Qwen2.5-Omni-3B backbones.
  • Baseline Collapse: Under the same 20% budget, prefill-only baselines (like Ada-KV and AudioKV) completely collapse, yielding WERs over 100% due to non-termination.
  • Scales to Larger Models: The performance advantage holds true when scaling up to a 24B parameter model (Voxtral-Small-24B), where WnW significantly outperforms other recall-based baselines like ArkVale.
  • Low Overhead: The dynamic CPU-GPU transfer introduces minimal latency, varying the median decode time by less than 5%.
Figure 3: Truncated WER vs. audio KV retention 𝑟GPU on LibriSpeech-Long test-clean. Top: Voxtral-mini- 3b; bottom: Qwen2.5-Omni-3B. Upward arrows mark points exceeding 30% WER (numbers in Table 5, Ap- pendix). WnW stays close to Full Cache (dashed) at every 𝑟GPU; prefill-only baselines degrade sharply below 𝑟GPU=0.6.

Limitations and Future Work

  • Naive Traffic Scheduling: The current chunk-swap CPU-GPU traffic is scheduled synchronously. Overlapping data transfers with attention computation via CUDA streams is an obvious next optimization step.
  • Dormant High-GPU Regime: The recall pathway is tied directly to the compression scale; it becomes dormant when GPU memory is plentiful, meaning the system doesn't automatically exploit extra headroom unless explicitly tuned.
  • Offline Focus: The evaluation targets offline decoding. Extending WnW to streaming setups (where audio arrives monotonically over time) remains an open area for future work.

Summary updated

BibTeX
@misc{yao2026wnw,
  author = {Yiming Yao and Chenyang Lyu and Xuanfan Ni and Longyue Wang and Weihua Luo and Yazheng Yang and Jinsong Su},
  title = {{WnW: Waxing-and-Waning KV Cache for Long-Form Speech LLMs}},
  year = {2026},
  eprint = {2608.22704},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.22704},
}
Figure