potentialpaper

KV-Pipe: On the Relation Between KV Sharing and Pipeline Parallel Efficiency in LLMs

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 20:08 UTC · c6062c315a9d ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,19 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "ICXkdooQi9"
- }
- ],
- "title": "KV-Pipe: On the Relation Between KV Sharing and Pipeline Parallel Efficiency in LLMs",
- "authors": [],
- "abstract": "Pipeline parallelism (PP) is bounded by its slowest stage. In LLMs, however,\nthe stages are not identical: the last stage also carries the LM head, so an\nevenly split decoder already leaves every other device idle for part of each\nstep. Moving whole layers between stages cannot fix this, because a single\nlayer is coarser than the imbalance itself. We observe that cross-layer KV\nsharing, which has so far been studied as an inference-time memory\noptimization, is exactly the fine-grained knob this problem needs. Each shared\nlayer removes a small, predictable amount of compute from its stage. We\npresent \\method{}, which places shared-KV layers on the bottleneck stage and\nchooses how many to share by minimizing a FLOPs Imbalance Ratio (FIR) computed\noffline from per-layer FLOP counts. For LLaMA2-7B with PP$=$8 on Ascend 910B\nNPUs, sharing KV in only four layers removes 1.5\\% of model FLOPs but cuts\niteration time by 9.8\\% and raises MFU from 56.3\\% to 61.5\\%. Across the sweep,\nFIR orders measured MFU almost perfectly (Spearman $\\rho=-1.0$ at PP$=$8).\nSharing more layers makes both FIR and MFU worse again, even though total\nFLOPs keep falling. When we vary the LM-head cost, the budget predicted from\nFIR matches the measured optimum in all five settings. The gains grow with\npipeline depth, also in a controlled sweep that fixes everything but the\nnumber of stages. On LLaMA2-7B and LLaMA3-8B, validation perplexity and\ndownstream accuracy stay within the run-to-run variation of full attention.\nThe gains are additive to\nthe Seq1F1B schedule, carry over to LLaMA2-13B, LLaMA3-8B and Qwen2.5-14B on\nGPUs, and the same kind of late-layer sharing speeds up GQA decoding by 7--8\\%.",
- "year": 2027,
- "venue": "ICLR 2027 (under review)",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "2056450e-348b-49cf-a270-e7ec15ce6193"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,9 @@
+{
+ "title": "KV-Pipe: On the Relation Between KV Sharing and Pipeline Parallel Efficiency in LLMs",
+ "authors": [],
+ "abstract": "Pipeline parallelism (PP) is bounded by its slowest stage. In LLMs, however,\nthe stages are not identical: the last stage also carries the LM head, so an\nevenly split decoder already leaves every other device idle for part of each\nstep. Moving whole layers between stages cannot fix this, because a single\nlayer is coarser than the imbalance itself. We observe that cross-layer KV\nsharing, which has so far been studied as an inference-time memory\noptimization, is exactly the fine-grained knob this problem needs. Each shared\nlayer removes a small, predictable amount of compute from its stage. We\npresent \\method{}, which places shared-KV layers on the bottleneck stage and\nchooses how many to share by minimizing a FLOPs Imbalance Ratio (FIR) computed\noffline from per-layer FLOP counts. For LLaMA2-7B with PP$=$8 on Ascend 910B\nNPUs, sharing KV in only four layers removes 1.5\\% of model FLOPs but cuts\niteration time by 9.8\\% and raises MFU from 56.3\\% to 61.5\\%. Across the sweep,\nFIR orders measured MFU almost perfectly (Spearman $\\rho=-1.0$ at PP$=$8).\nSharing more layers makes both FIR and MFU worse again, even though total\nFLOPs keep falling. When we vary the LM-head cost, the budget predicted from\nFIR matches the measured optimum in all five settings. The gains grow with\npipeline depth, also in a controlled sweep that fixes everything but the\nnumber of stages. On LLaMA2-7B and LLaMA3-8B, validation perplexity and\ndownstream accuracy stay within the run-to-run variation of full attention.\nThe gains are additive to\nthe Seq1F1B schedule, carry over to LLaMA2-13B, LLaMA3-8B and Qwen2.5-14B on\nGPUs, and the same kind of late-layer sharing speeds up GQA decoding by 7--8\\%.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}