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.
Methods
WnW addresses this mismatch by introducing a dynamic, two-part architecture:
- 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):
- Anchor Heads: Kept 100% on the GPU. They act as real-time observers, tracking where the model is currently "reading" in the audio timeline.
- Tidal Heads: Keep a small fraction of critical tokens on the GPU and offload the rest to the CPU.
- Fixed Heads: Keep a static subset on the GPU and permanently discard the rest, as their attention patterns change little.
- 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.
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%.
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