potentialpaper

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

Import the versions from OpenReview: the same title at other venues

@openreview[bot] · 2026-11-22 19:32 UTC · f7144de8bf37

.gitattributes added

+++ b/.gitattributes
@@ -0,0 +1,10 @@
+# PDFs and pictures are kept with Git LFS (https://git-lfs.com). With it installed (`git lfs install`),
+# a clone has the files, and `git add` of one stores a pointer. This file is the same on every page.
+/.potentialpaper/*.pdf filter=lfs diff=lfs merge=lfs -text
+/versions/*.pdf filter=lfs diff=lfs merge=lfs -text
+/thumbnail.png filter=lfs diff=lfs merge=lfs -text
+/thumbnail.jpg filter=lfs diff=lfs merge=lfs -text
+/thumbnail.jpeg filter=lfs diff=lfs merge=lfs -text
+/thumbnail.gif filter=lfs diff=lfs merge=lfs -text
+/thumbnail.webp filter=lfs diff=lfs merge=lfs -text
+/thumbnail.avif filter=lfs diff=lfs merge=lfs -text

.potentialpaper/metadata.json added

+++ b/.potentialpaper/metadata.json
@@ -0,0 +1,19 @@
+{
+ "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"
+ }
+}

community/10-tl-dr.md added

+++ b/community/10-tl-dr.md

community/20-summary.md added

+++ b/community/20-summary.md

community/30-why-it-matters.md added

+++ b/community/30-why-it-matters.md

community/40-critique.md added

+++ b/community/40-critique.md

community/50-errata.md added

+++ b/community/50-errata.md

community/60-reproductions.md added

+++ b/community/60-reproductions.md

community/70-follow-ups.md added

+++ b/community/70-follow-ups.md

owners/10-tl-dr.md added

+++ b/owners/10-tl-dr.md

owners/20-overview.md added

+++ b/owners/20-overview.md

owners/30-results.md added

+++ b/owners/30-results.md

owners/40-demos.md added

+++ b/owners/40-demos.md

owners/50-code-and-data.md added

+++ b/owners/50-code-and-data.md

owners/60-talks.md added

+++ b/owners/60-talks.md

prek.toml added

+++ b/prek.toml
@@ -0,0 +1,36 @@
+# Checks run before each commit, with prek (https://prek.j178.dev): `prek install` once in this clone.
+# The site checks every push again; these catch mistakes before you commit. The same on every page.
+
+[[repos]]
+repo = "builtin"
+hooks = [
+ { id = "check-json" },
+ { id = "pretty-format-json", args = ["--autofix", "--no-sort-keys", "--no-ensure-ascii"], exclude = '^demos/' },
+ { id = "end-of-file-fixer", exclude = '^demos/' },
+ { id = "trailing-whitespace", args = ["--markdown-linebreak-ext=md"], exclude = '^demos/' },
+ { id = "check-case-conflict" },
+ { id = "check-illegal-windows-names" },
+ { id = "check-added-large-files", args = ["--maxkb=256"], exclude = '^demos/' },
+]
+
+# Each JSON file against its schema (https://papers.potentialhedge.com/schemas/).
+[[repos]]
+repo = "https://github.com/python-jsonschema/check-jsonschema"
+rev = "0.39.0"
+hooks = [
+ { id = "check-jsonschema", name = "author section plugins files", files = '^owners/plugins\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/authorPlugins.json"] },
+ { id = "check-jsonschema", name = "venue files", files = '^venue\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/venue.json"] },
+ { id = "check-jsonschema", name = "topic files", files = '^topic\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/topic.json"] },
+ { id = "check-jsonschema", name = "organisation files", files = '^org\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/org.json"] },
+ { id = "check-jsonschema", name = "link files", files = '^links/[^/]+\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/link.json"] },
+ { id = "check-jsonschema", name = "version files", files = '^versions/[^/]+\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/version.json"] },
+ { id = "check-jsonschema", name = "picture files", files = '^thumbnail\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/thumbnail.json"] },
+]
+
+# Sections formatted the way the web editor formats them.
+[[repos]]
+repo = "https://github.com/rbubley/mirrors-prettier"
+rev = "v3.9.9"
+hooks = [
+ { id = "prettier", files = '^(owners|community)/.*\.md$' },
+]

versions/v_iphkw753.json added

+++ b/versions/v_iphkw753.json
@@ -0,0 +1,19 @@
+{
+ "date": "2026-08-21",
+ "kind": "submitted",
+ "label": "SLM-Agents @ NeurIPS 2026",
+ "submissions": [
+ {
+ "venue": "SLM-Agents @ NeurIPS 2026",
+ "status": "accepted",
+ "decision": "Poster",
+ "url": "https://openreview.net/forum?id=vjlRtWDtBi"
+ }
+ ],
+ "title": "KV-Pipe: On the Relation Between KV Sharing and Pipeline Parallel Efficiency in LLMs",
+ "url": "https://openreview.net/forum?id=vjlRtWDtBi",
+ "evidence": [
+ "https://openreview.net/forum?id=vjlRtWDtBi"
+ ],
+ "abstract": "Pipeline parallelism (PP) is widely used to scale large language model (LLM)\ntraining, but its efficiency is often limited by stage imbalance and pipeline\nbubbles. Cross-layer KV sharing has primarily been studied for reducing KV-cache\ncosts during inference, without examining how KV reuse reshapes pipeline workloads.\nWe present \\textbf{KV-Pipe}, a stage-aware KV-sharing mechanism that turns KV\nreuse into a pipeline-balancing control knob. KV-Pipe starts from the tail stage,\nconverts selected attention layers to cross-layer KV sharing, and iteratively\nretargets the current bottleneck to drive the FLOPs Imbalance Ratio (FIR) toward\n$1$. The procedure runs offline using only the pipeline partition and per-layer\nFLOP estimates, requiring no online tuning. Across multiple pipeline-parallel\nconfigurations, KV-Pipe achieves up to \\textbf{9.2\\%} relative MFU improvement\nand a \\textbf{9.8\\%} reduction in iteration time over the 1F1B baseline, with\nlarger gains at higher PP degrees. An inference case study further shows that\nthe same KV-sharing mechanism reduces KV-cache growth and redundant KV projection\nwork, improving long-context decoding throughput. These results identify KV\nsharing as a system--architecture degree of freedom for jointly improving\npipeline-parallel training efficiency and long-context inference."
+}

versions/v_yq4mu492.json added

+++ b/versions/v_yq4mu492.json
@@ -0,0 +1,18 @@
+{
+ "date": "2026-09-18",
+ "kind": "submitted",
+ "label": "ICLR 2027",
+ "submissions": [
+ {
+ "venue": "ICLR 2027",
+ "status": "under_review",
+ "url": "https://openreview.net/forum?id=ICXkdooQi9"
+ }
+ ],
+ "title": "KV-Pipe: On the Relation Between KV Sharing and Pipeline Parallel Efficiency in LLMs",
+ "url": "https://openreview.net/forum?id=ICXkdooQi9",
+ "evidence": [
+ "https://openreview.net/forum?id=ICXkdooQi9"
+ ],
+ "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\\%."
+}