Skip to content

Five Papers, One Wall: Where LLM Memory Traffic Actually Gets Cut

#kv-cache #llm-inference #quantization #sparse-attention #activation-checkpointing #gpu-kernels

Five Papers, One Wall: Where LLM Memory Traffic Actually Gets Cut ​

Five papers landed this month with different titles, different benchmarks, and one shared diagnosis: LLM serving is limited by how many bytes you move, and the obvious fixes have stopped paying off. Packing the KV cache to 2 bits saves bytes, then the dequantization eats the savings. Sparse attention skips work, then the selection pass costs as much as the attention it skipped. Entropy coding shrinks the model, then the decoder becomes the bottleneck.

Here is the shape of the problem all five are circling.

Every one of these papers is fighting the same wall ​

Decode is a memory problem. Each generated token requires streaming every weight and the whole KV cache out of HBM, and the arithmetic performed per byte is tiny. At batch size 1 on an H100, a decode step sits at a few FLOPs per byte, nowhere near the roughly 295 FLOP/byte point where the tensor cores saturate. The GPU spends most of each token waiting on DRAM.

That imbalance is why KV compression looks so attractive and so often disappoints. Halving the bytes does nothing if you spend the saved time converting integers back into floats. The K and V tensors have to be dequantized before they hit the tensor cores, and on modern GPUs the scarce resource during that conversion is instruction issue, not bandwidth. Each element needs a scale multiply and an offset add, and you have millions of elements per attention call.

FOSCAR, Transformer-FSQ, HASA, MINE, and Atik each pick a different link in that chain.

FOSCAR: apply the scale once, not eight million times ​

The framing number: existing fused 2-bit kernels hit under 31% of peak HBM throughput on H100 and under 15% on B200. You paid for the compression, you got none of the latency.

FOSCAR's move is affine folding. Instead of converting every KV value and applying its scale and offset inline, it pushes the scale and offset onto the other operand or onto the output of the matrix product. Which one depends on the quantization scheme. With token-wise quantization, the per-token scale can be absorbed into the query or into the attention probabilities, and the offset becomes a correction on the product rather than a per-element add. With channel-wise quantization, the per-feature scale lands on the output side. The dequantized attention output stays exact in arithmetic. Only the number of scale-and-offset operations changes, and it drops by up to two orders of magnitude.

The second half of the paper is bit manipulation to get packed integers into tensor cores without a conversion loop: 1 ALU instruction per INT2 element on H100, and 0.19 on B200 thanks to tcgen05. The kernels are warp-specialized for Hopper using wgmma and for Blackwell using tcgen05.

What you get on H100, geo-mean over the benchmark set:

Against TensorRT-LLM FP8 the margins are smaller but still real: 2.03x and 1.71x on H100, 1.48x and 1.28x on B200. Against TensorRT-LLM NVFP4 on B200, FOSCAR INT4 is at 1.00x, which is parity, and INT2 is at 1.16x. Read that carefully before you quote a number in a design doc. On Blackwell, 4-bit folded-KV attention and NVIDIA's own NVFP4 path are the same speed.

The SGLang integration is the part that matters for production. On long-context serving, peak aggregate throughput goes up 170% over a 2-bit baseline and 341% over a 16-bit baseline. Both numbers are real, and they answer different questions: the first is what better kernels buy you at a fixed bitrate, the second is what the whole stack buys you over not compressing.

Quick take: kernel-level dequant overhead, not compression ratio, decides whether a quantized KV cache makes your server faster, and folding the affine is how you get the two to agree.

Transformer-FSQ: when the cache outgrows the model ​

Qwen3-1.7B-Base with 200,000 retained entries needs 21 GiB of KV cache. The model itself is about 3.2 GiB. You are carrying 6.6 times the weights in rented memory, and on a 24 GB consumer card there is almost nothing left over.

Transformer-FSQ attacks this by changing what the cache is. Standard key and value projections are replaced with a finite scalar quantization bottleneck, so the cache holds a packed vector of discrete integer codes per token with zero per-token quantization metadata. You convert a pretrained transformer by training only those projections, at a budget of 0.25 tokens per original parameter. That's the catch: this is not post-hoc cache quantization on a frozen checkpoint. The weights change.

The accuracy numbers are the reason to care. On RULER long-context retrieval, across models from 0.6B to 8B, Transformer-FSQ is the most accurate method evaluated at every compression ratio from 12x to 97.5x. Beating five baseline families across four model sizes at four compression levels is not a fluke of one benchmark.

The decode numbers are more interesting than they look. A fused Triton kernel reads directly from integer codes, and on uncompressed Qwen3-8B-Base with native SDPA as the reference, throughput is 1.01x at 32x compression (95% interval 0.98 to 1.05) and 1.54x at 97.5x. At 32x you break even. At 97.5x you actually get faster than not compressing at all, because the byte savings finally outrun the decode cost. If you evaluated this at 8x and concluded it was flat, you tested the wrong point on the curve.

HASA: heads don't share a resolution ​

Most training-free sparse attention picks which tokens to attend to using runtime heuristics: fixed top-k, fixed block size, fixed feature dimension for the relevance estimate. HASA's observation is that each pretrained head already tells you what resolution it needs, if you look at the singular spectrum of its query-key operator.

The effective rank of that spectrum gives a compact, head-specific response space along the feature dimension. Then along the sequence dimension, neighboring regions get merged when their token responses point in the same direction inside that space, and stay separate when they don't. Attention is then computed exactly, in full dimensionality, over the selected regions. No approximation inside the chosen window.

The result: 88.1% of dense-attention mass captured. Against UNIQUE, a strong recent baseline, HASA gains up to 3.47 points on RULER and 2.57 on LongBench-Pro. Self-attention speedup over UNIQUE is up to 1.32x, and up to 14.07x over dense attention.

That gap between 1.32x and 14.07x deserves a note. The 14.07x is HASA against full dense attention at long context, where sparsity is doing the heavy lifting. The 1.32x is HASA against another sparse method, where the only thing left to win is selection quality. Both are honest, but they measure different things, and only one of them is a reason to switch.

MINE: entropy coding that pays for itself ​

Weights are not uniformly distributed, and quantizing them doesn't make them uniform. MINE builds on that: dtANS-LLM is a GPU entropy-coding scheme adapted from dtANS for the specific constraints of LLM inference, with hyperparameters that trade compression ratio against decode cost. Those hyperparameters get auto-tuned per tensor and per GPU, producing a Pareto front of model size versus decoding latency. At serve time the engine picks the kernel configuration that fits your memory budget. It plugs into vLLM.

The measurements on Llama 3.1 8B Instruct with a 2.1-bit EntQuant checkpoint:

Key numbers from the MINE evaluation Checkpoint bitrate: 2.1 bits per weight, EntQuant, Llama 3.1 8B Instruct RTX 4060 Ti: 2.52x over the fastest baseline at an effective 2.24 bits per weight RTX 5090: 1.48x over the fastest baseline at an effective 3.43 bits per weight

The divergence between those two rows is the whole point. On the 4060 Ti, memory bandwidth is so scarce that the tuner drives the bitrate down to 2.24 and accepts a more expensive decoder. On the 5090, there is bandwidth to spare, so it spends bits to make decoding cheap and lands at 3.43. Same model, same checkpoint, different Pareto point. If you hardcode one configuration across your fleet, you are leaving speed on the table at one end and memory at the other.

Activation checkpointing: recompute two-thirds instead of all of it ​

Everything above is inference. Training has the same memory wall and a different escape hatch.

Activation checkpointing drops selected activations during the forward pass and recomputes them during backprop. It works, and the recompute bill for Transformer linear layers is brutal. The usual approximate shortcuts either inject errors that compound across the backward pass or throw away information the forward pass already computed.

This paper keeps that information. Using statistics collected during the initial forward pass, it selectively recomputes only the most important layer components, chosen either greedily or by randomized sketching, and the resulting gradient estimate stays unbiased. On Llama-488M, recomputing two-thirds of layer components costs 1.7% perplexity when applied to feed-forward layers, 1.2% for attention layers, and 2.5% when applied to both. The ablation shows gradients tracking the exact ones closely.

The practical read: apply it to one layer type, not both. Attention-only gets you a third of the recompute back for 1.2% perplexity, which is close to free. Turning it on everywhere costs you 2.5%, and that is a number you will have to defend.

Atik: the RISC-V end of the spectrum ​

Atik is a different kind of answer. It's an open-source RoCC accelerator for RocketChip that runs both dense matmul and dense attention through one shared fixed-point MAC mesh. BF16 tensors in and out, a streaming online-softmax schedule that never materializes the full score matrix, and a small descriptor-based ABI to invoke it.

The 8x8 configuration hits 31.5x peak matmul speedup and 225.8x peak attention speedup against a scalar Rocket BF16 reference. The attention number is enormous because the scalar reference has no matrix engine at all and computes softmax one element at a time. Hybrid projections using directly measured accelerator-kernel cycles give 44.2x on ViT, 77.1x on TinyBERT, and 32.3x on GPT-2 prefill. The authors are explicit that these are workload-derived C models with measured kernel cycles, not full-model hardware replays, and 137 FireSim test records pass with zero output mismatches.

Fixed-point has a ceiling, and the mesh width sets it. If you are targeting a datacenter GPU, this paper is not for you. If you are targeting an edge SoC where an FPU cluster costs more area than you have, 31.5x matmul on a Sky130 budget is a serious data point.

Five techniques side by side ​

PaperWhat it actually cutsReported winWhere it fits
FOSCARScale/offset ops per KV element, down ~100x3.36x INT2 attention over FlashInfer BF16 on H100; +170% serving throughput over 2-bit baselineServing, long context, existing quantized checkpoints
Transformer-FSQCache bytes per token, 12x to 97.5xBest RULER accuracy across 0.6B to 8B; 1.54x decode throughput at 97.5xLocal and edge deployment with very long retained context
HASANumber of KV regions attended88.1% attention mass, +3.47 RULER over UNIQUE, 14.07x over denseLong-context serving where you can't retrain
MINEWeight bytes, losslessly2.52x on RTX 4060 Ti, 1.48x on RTX 5090Single-stream, memory-bound, low-batch inference
Adaptive rematActivation memory during training33% less recompute for +1.2% perplexity on attention layersPretraining and fine-tuning under a memory cap

What trips people up ​

  1. Buying 2-bit kernels without measuring the dequant path. If your kernel converts each element and applies scale and offset inline, you land near 31% of peak HBM throughput on H100, which is the problem the compression was supposed to solve. Measure achieved bandwidth, not bytes saved.

  2. Treating a compression ratio as a latency number. Transformer-FSQ is at 1.01x of uncompressed SDPA throughput at 32x and 1.54x at 97.5x. Sweep the ratio before you decide the technique is a wash.

  3. Quoting the wrong baseline. FOSCAR INT4 against TensorRT-LLM NVFP4 on B200 is 1.00x. The 1.16x everyone cites is INT2. If your cluster runs Blackwell and your comparison target is NVFP4, the honest summary is parity.

  4. Getting token-wise versus channel-wise wrong. The choice decides whether the scale folds into the query, into the probabilities, or onto the output. FOSCAR preserves exact arithmetic; a hand-rolled version that picks the wrong fold silently changes your logits rather than your speed.

  5. Turning approximate rematerialization on globally. The 2.5% perplexity hit applies when you approximate both FFN and attention. Pick one layer type and you are at 1.2% to 1.7%.

  6. Copying a MINE config between GPUs. The hyperparameters are tuned per tensor and per card, and the 4060 Ti and 5090 solutions sit at different points on the Pareto front. Ship the auto-tuner, not the output.

One thing to remember ​

None of these papers beats the others, because they are cutting different links in the same chain. FOSCAR makes a quantized cache usable, Transformer-FSQ makes it unnecessary to store floats, HASA makes it unnecessary to read every region, MINE shrinks what never changes, and the checkpointing work shrinks training state. The mistake is picking one and expecting it to solve a bandwidth problem that lives somewhere else in your stack.

Which of these five you should actually reach for ​

If you run long-context serving on H100s with a fixed quantized checkpoint, adopt FOSCAR. It's a kernel library in SGLang, the 3.36x INT2 number is against a strong baseline, and the 341% aggregate throughput gain over the 16-bit path is the number your capacity planning cares about.

If you're deploying to a single consumer GPU or an edge device and need long retained context, skip KV quantization hacks and use Transformer-FSQ. You'll pay for the projection retraining, but a 6.6x-larger-than-model cache on a 24 GB card is a hard wall that no kernel tuning fixes.

If you can't retrain anything but can't afford dense attention either, HASA is the training-free option, and 88.1% of attention mass is a useful sanity check on whether sparsity is even plausible for your model. Watch the 14.07x claim though: it's against dense, not against other sparse methods, and the 1.32x over UNIQUE is the number that tells you it's better than what you'd otherwise use.

And if you're on Blackwell, watch the NVFP4 comparison closely over the next two quarters. FOSCAR INT4 already sits at parity with NVIDIA's native path, which means the hardware vendor is closing the gap on folded-KV kernels, and the next generation of tcgen05 scheduling could erase the remaining margin.