Where the Speech Tax Lands: Hardware-Dependent Sequence Compression for Speech-LLMs

Speech is long and text is short. One second of audio becomes about fifty frames from a Whisper-style encoder, while the sentence spoken in that second might be three text tokens. When those frames are fed into a large language model (a "Speech-LLM"), the model has to store a key and a value vector for every frame at every layer (the "KV cache"). It then re-reads that whole cache from memory for every word it generates. Moving data between memory and compute, not the arithmetic itself, is what dominates energy on conventional chips (the "von Neumann bottleneck"). So the length gap between speech and text can become a direct energy cost. Yet the most careful adapter comparison to date, How to Connect Speech Foundation Models and Large Language Models?, found that feeding uncompressed frames into the LLM matches or beats every compression scheme on translation quality. It never measured what that choice costs in memory traffic.

This note argues that the question "should speech be compressed before the LLM?" has no hardware-free answer. Whether the extra frames matter depends on which memory term dominates. On a GPU serving one request at a time, streaming the model's weights overwhelms the speech KV cache, and compression buys almost nothing. In batched serving, or on in-memory computing hardware where weights never move, the speech KV cache and the analog-to-digital conversions per frame become the dominant data-movement terms. There compression is essential. The proposal also claims that the right place to compress depends on the regime. On batched GPUs it is best to keep full-resolution speech for the forward pass over the audio and shrink only the stored KV cache afterward. On analog in-memory hardware it is best to compress before the frames ever touch the crossbar. We will build the accounting model, test these predictions, and evaluate one targeted intervention: post-prefill KV compression of speech frames guided by CTC alignment.

Core Claim

The per-output-token decode energy of a Speech-LLM can be written roughly as

$$E_{\text{out}} \approx e_{\text{mem}}\left(\frac{W}{B} + \kappa\left(\frac{T_s}{r} + t\right)\right) + E_{\text{compute}},$$

where $e_{\text{mem}}$ is energy per byte moved from main memory, $W$ is weight bytes, $B$ is batch size, $\kappa$ is KV-cache bytes per stored position, $T_s$ is the number of speech frames, $r$ is the compression ratio applied to them, and $t$ is the number of text tokens so far. This form is the decomposition used by From Tokens to Watt-hours, which splits energy into compute and memory traffic, specialized to a speech prefix.

A back-of-envelope estimate shows the regimes. It uses only architecture facts: Llama-3.1-8B stores about 128 KB of 16-bit KV per position and has about 16 GB of weights. A 30-second utterance at 1,500 frames contributes roughly 200 MB of KV. The speech term therefore matches the weight term only around batch 80 on a GPU. In a weight-stationary in-memory design like Toward Software-Equivalent Accuracy on Transformer-Based DNNs With Analog Memory Devices, the $W/B$ term is essentially absent, so the speech term dominates immediately. That paper maps projection matrices to phase-change memory crossbars and keeps attention digital, and it already found the digital attention blocks became the energy bottleneck on fixed-length text.

The new claim is testable. The accuracy-versus-energy ranking of speech adapters reorders across these regimes. Uncompressed input combined with compressed KV storage recovers most of the uncompressed adapter's quality at close to the compressed adapter's decode traffic, except on analog hardware, where the per-frame conversion cost of the forward pass reverses the conclusion.

Research Program

The first component is an energy accounting model for Speech-LLMs. We extend the semi-analytical model of From Tokens to Watt-hours in two ways. We add a speech encoder, an adapter, and variable-length speech prefixes. We also add three memory regimes. The first is a GPU with weights in high-bandwidth memory at batch 1 and at batch 32 to 128. The second is a near-memory design in which KV lives in memory modules with attached vector units, following PNM-KV from Scalable Processing-Near-Memory for 1M-Token LLM Inference. The third is a mixed-signal design with analog crossbar projections and digital INT6 attention, following Toward Software-Equivalent Accuracy. In the analog regime, every frame passing through a projection incurs converter operations. Per the FeFET compute-in-memory design study, the converters at crossbar edges often dominate area and power, so input length enters linearly through them as well as through the KV cache. The GPU regime is calibrated against measured H100 power. For the non-GPU regimes we do not have measured speech-workload energies, so per-byte and per-conversion costs are treated as swept parameters rather than asserted constants. Conclusions are reported only where they hold across the sweep.

The second component is an adapter study run through that model. We reuse the exact setup of How to Connect Speech Foundation Models and Large Language Models?: Whisper large-v3 or SeamlessM4T v2-large, frozen, paired with Llama-3.1-8B. We compare the uncompressed Base adapter, 4x convolutional down-sampling, and the CTC-based adapter. We add progressive down-sampling from Bridging the Granularity Gap for Acoustic Modeling, which interleaves down-sampling with encoder layers to reach up to 32x compression. We also add CTC blank removal from CJST, which drops frames whose blank probability exceeds 0.95. The dynamic adapters produce variable lengths. The hardware survey Hardware for machine learning warns that irregular access patterns erode data reuse, so we measure padding and batching overhead on real GPU runs rather than assuming ideal savings.

The third component is the intervention, CTC-guided post-prefill KV compression. The LLM processes the full uncompressed speech prefix, so every text token can still attend at full resolution during the forward pass, preserving what makes Base strong. Before decoding starts, the stored speech KV entries at each layer are merged within CTC-defined segments. Frames that CTC marks as blank are dropped. Frames between consecutive non-blank peaks are averaged in key and value space, with a length-bias correction on attention logits so that merged positions are not under-weighted. The segmentation comes from the same CTC head that AlignFormer and CJST use for input-side compression. The difference is where it acts: those papers shorten the input, while we shorten only what must be re-read during decoding. Under heavy noise, we fall back to fixed-stride pooling whenever a segment would be empty, mirroring the empty-segment fallback CJST needed.

Baselines

The naive reference point is the uncompressed Base adapter run on a GPU at batch 1 with no KV modification. It is also the strongest accuracy competitor. How to Connect Speech Foundation Models and Large Language Models? reports 28.7 BLEU on CoVoST 2 English-German for Whisper with the Base adapter and Llama, ahead of the 25.1 BLEU they report for Qwen-Audio. We retrain it with the same recipe and data, and consider the reproduction valid if it lands within about half a BLEU point of 28.7. Beating it means matching its BLEU and COMET within that margin while cutting modeled and measured decode memory traffic by a large factor, at least the average blank-removal ratio. No reported energy or memory-traffic figure exists for any speech adapter; no reported result found on Lacuna for adapter-level energy on CoVoST 2 or MuST-C.

The strongest compression competitor is the better of 4x convolutional down-sampling and progressive down-sampling, both applied at the input. Bridging the Granularity Gap reports up to 3.0 BLEU improvement on MuST-C English-German from scratch and 1.20x to 1.47x inference speedup, but gives no energy numbers. It will be trained on the same frozen encoder and LLM, with the same adapter training data and the same number of tuning runs for learning rate and compression ratio as our method. Beating it means lower BLEU loss at equal or lower decode traffic in the GPU-batched and near-memory regimes. We do not expect to beat it in the analog regime and will report that honestly.

The content-aware input-side competitor is the CTC-based adapter and CJST-style blank removal. It is run identically, and it isolates whether the placement of compression, before the LLM versus only on the stored cache, matters when the segmentation is held fixed.

The key ablation replaces the CTC segmentation with uniform-stride KV pooling at the same average ratio. This tests whether acoustic alignment carries information beyond the compression ratio itself. A second ablation drops blank frames only, without merging within segments.

Why not just…?

Why not just keep the uncompressed Base adapter, since it is the most accurate? At batch 1 on a GPU our own estimate says this is nearly right: weight traffic dwarfs a speech prefix of a few hundred megabytes. The proposal does not claim otherwise, and the batch-1 condition is included specifically to confirm this. The threat to Base appears when $W/B$ shrinks, through batching or weight-stationary hardware. From Tokens to Watt-hours shows KV read traffic growing with context until it dominates, and Scalable Processing-Near-Memory shows long KV caches saturating interconnects. The experiment settles it by locating the batch size at which Base's per-token energy exceeds the compressed variants'. If that crossover sits far beyond realistic serving batches, the case for compression on GPUs is weak, and we will say so.

Why not just use fixed 4x convolutional down-sampling on a standard accelerator? This is the most serious practical rival, because it is regular, cheap, and batch-friendly. The evidence against going further with it is that single-stage down-sampling degrades at 16x to 32x, as reported in Bridging the Granularity Gap. At 4x, Whisper still leaves several times more positions than text tokens. It is also possible that 4x conv captures most achievable savings with negligible BLEU loss. The adapter study measures exactly that. If conv-4x sits on the Pareto front in every regime, the intervention is unnecessary and the contribution reduces to the accounting model.

Why not just quantize or evict the KV cache generically, without speech-specific alignment? Generic KV quantization is complementary. We apply INT8 KV uniformly to every method so it does not confound the comparison. Generic score-based eviction is closer to our method. The uniform-stride pooling ablation, plus a variant that keeps the speech positions receiving the highest accumulated attention during prefill, tests whether CTC alignment adds anything. If attention-based selection matches CTC segmentation, the speech-specific ingredient is not needed and we would report the simpler method as the recommendation.

Why not just move KV to near-memory hardware and ignore the length gap? PNM-KV reports up to 21.9x throughput and 60x lower energy per token for million-token text contexts (Scalable Processing-Near-Memory), so hardware can absorb long caches. Near-memory attention, however, still scales with the number of stored positions, so shortening the cache multiplies with the hardware gain rather than competing with it. The near-memory regime in our model quantifies how much of the remaining energy the speech prefix still accounts for.

Proposed Experiments

Accuracy is measured on CoVoST 2 English-German, where the 28.7 BLEU reference exists, on MuST-C English-German with BLEU and COMET, and on LibriSpeech test-clean and test-other WER for ASR. CJST reports 4.94% WER on test-other with its CTC compressor, which serves as a sanity anchor for our blank-removal reimplementation. Energy is measured directly on H100 at batch sizes 1, 8, 32, and 128. We also use the calibrated analytical model, which From Tokens to Watt-hours reports matching measurements within 5% to 27%. The near-memory and analog regimes use the extended model with swept per-byte and per-conversion costs. We report bytes moved per output token, converter operations per utterance, joules per translated sentence, and the resulting accuracy-energy Pareto fronts per regime.

The decisive checks are three. First, the Pareto ordering must change between the batch-1 GPU and weight-stationary regimes; if it does not, the core claim fails. Second, CTC-guided KV compression must land within about half a BLEU point of the uncompressed Base adapter on CoVoST 2 while beating uniform pooling at equal ratio; otherwise alignment is not the operative ingredient. Third, in the analog regime, input-side progressive down-sampling must beat KV-only compression once converter energy is counted, across the whole parameter sweep. That result would show that the best compression point moves with the hardware, which neither the speech-adapter literature nor the in-memory computing literature has examined.