Manuscript Offprint

arXiv:2608.23962

More GPUs or a Smaller Cache? Tensor Parallelism versus KV Compression for Memory-Bound LLM Serving

Srikanta Datta Tumkur, Mehar Simhadri, Anshu Bansal, Jay Iyer, Sai Pavan Kumar, Sai Kapil Kumar, Ramesh Nampelly, Raj Dandekar

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Srikanta Datta Tumkur, Mehar Simhadri, Anshu Bansal, Jay Iyer, Sai Pavan Kumar, Sai Kapil Kumar, Ramesh Nampelly, Raj Dandekar MIT and Vizuara

Abstract: When an LLM serving deployment runs out of KV-cache room, there are two well-established ways out, and they come from communities that rarely talk to each other. The systems community adds GPUs. Tensor parallelism shards the weights and the KV cache across two, four, or eight devices, buying memory headroom at the price of an all-reduce on every layer and a hardware bill that grows with the device count. The algorithms community shrinks the cache in place, with KV quantisation and eviction keeping a single GPU and spending a little quality instead. Compression papers report memory ratios, parallel-scaling papers report throughput curves, and almost nobody puts the two on the same cost axis, so a practitioner facing a fixed model, quality floor, and latency target cannot tell which escape is cheaper. This paper builds that comparison. We place tensor-parallel configurations (degree 1 to 8) and KV-compressed configurations (16/8/4-bit, keep-ratios down to 0.25) on one cost-normalised axis, cost per million tokens against latency, using a profiled simulator calibrated on real A100, A40, and H100 hardware, and we go looking for the cost-equivalence crossover. We do not find one. Across two models (Llama-2 at 7B and 70B), three GPU types, and every matched level of memory relief we could construct, compression is cheaper by 1.20×1.20\times to 2.00×2.00\times, and the gap widens as relief deepens. The deeper finding is that the question's premise fails at the scale it is usually asked. A 7B model on an 80GB device cannot exhaust its KV budget within its own context window, and the boundary that decides between the strategies is model size relative to device memory, at roughly 36B parameters for an 80GB card. Below that wall, compression dominates and extra GPUs are largely wasted spend; above it, tensor parallelism stops being a choice and becomes an entry ticket: Llama-2-70B is infeasible on one A100 at any KV setting, because the binding resource is weights, which KV compression does not touch. The two strategies also turn out to buy different things. Tensor parallelism is the only lever that improves latency (compression makes per-token latency worse, by 8 to 93%, through batching contention), while compression is the only lever that multiplies capacity per dollar ( 16.5×16.5\times, against 1.21×1.21\times for an eightfold spend on GPUs). We close with the decision rule this evidence supports, which is simpler and more useful than the crossover we set out to draw.

Index Terms: LLM inference, tensor parallelism, KV-cache compression, KV quantisation, cost-normalised latency, memory-bound serving, capacity planning.

I. INTRODUCTION

When an LLM serving deployment becomes memory-bound, whether because the context is long, the batch is large, or both, the KV cache stops fitting in one GPU and something has to give. There are two established escapes, and they come from two different communities. On the systems side, tensor parallelism [4] shards the weights and the KV cache across several GPUs, and context-parallel and long-context serving stacks [3], [5] push that further, so the memory per device falls roughly with the number of devices. On the algorithms side, low-bit KV quantisation [8], [9] and KV eviction [10], [11] keep a single GPU and trade a little quality and a little dequantisation overhead for a smaller footprint (Fig. 1).

The problem is that these two escapes are almost never priced against each other. Tensor-parallelism papers report a throughput or scaling curve as the device count grows [4], [7]; KV-compression papers report a memory-reduction ratio at an accuracy target [8], [9], [12]; recent surveys catalogue compression methods but stop short of a direct normalised comparison against parallel scaling [13]. Adding GPUs and compressing the cache both buy KV headroom, but one multiplies the dollar cost by the device count while the other costs almost nothing in hardware, so the only fair comparison is on a cost-normalised axis. That comparison is rarely made, and it is the comparison an infrastructure owner needs.

This makes a concrete decision hard. An engineer facing a fixed model, a fixed quality floor, and a fixed latency target, who must serve a longer context or a bigger batch than one GPU holds, cannot read the two literatures and tell whether it is cheaper to rent more GPUs or to compress the cache. The central question, stated plainly, is: at a fixed model, quality floor, and latency target, is it cheaper per million tokens to add GPUs (tensor parallelism) or to compress the KV cache, and where does the answer flip?

We set out to build the curve that answers it. We held the model, the quality floor, and the latency target fixed, swept tensor-parallel degree (1, 2, 4, 8) on one side and KV-compression setting (bit-width and keep-ratio) on the other, and plotted both as cost per million tokens against latency, expecting to read the crossover directly off the figure.

What we found instead is the subject of this paper. The crossover does not exist at 7B, at 70B, or on any of the three GPU types we tested, and the premise behind the question does not survive the scale at which practitioners ask it. We report those findings rather than tuning the experiments until the expected curve appears, because a negative result that survives three hardware platforms and two model scales is more useful to a practitioner than a manufactured crossover would have been.

  1. Memory-bound

  2. Two escapes

  3. One cost frontier

Figure

Fig. 1: Study overview. (1) A memory-bound serving deployment can add GPUs (tensor parallelism, which splits weight and KV memory but adds all-reduce communication and multiplies cost) or compress the KV cache (quantisation and eviction, which keep one GPU but spend quality and dequantisation overhead). (2) The two are reported in separate literatures, on different axes, so a practitioner cannot tell which is cheaper. (3) We place both on one cost-normalised frontier (cost per million tokens against latency) at a fixed model, quality floor, and latency target, and search for the cost-equivalence crossover.

References (25)