CommunityKV: Efficient Long-Context Decoding via Graph Partitioning
Joe McKenna, Anastasios Alexandridis, Nathan Susanj, Jing Liu
NeurIPS 2026
TL;DR. CommunityKV accelerates long-context generation without retraining by grouping cached tokens into attention-derived communities and retrieving only relevant groups, achieving up to $1.71\times$ end-to-end throughput with comparable accuracy.
Abstract. Scaling Transformers to long contexts is constrained by the quadratic cost of self-attention and the linear growth of key-value cache memory transfer. Sparse attention mitigates this by retrieving only relevant tokens, but current approaches either require large-scale training or, within the training-free regime, rely on semantically coarse heuristics or expensive clustering that is difficult to update efficiently during decoding. We introduce CommunityKV, a framework that formulates sparse attention as a community detection problem. CommunityKV constructs a token graph from the scores already computed during standard prefill, and partitions the graph into communities to enable retrieval of semantically coherent token groups. A local update rule assigns newly generated tokens to communities in constant time, enabling sparse retrieval throughout streaming decoding without global re-partitioning. We evaluate CommunityKV on three Qwen3 model scales across three long-context benchmarks. With one graph per query head, CommunityKV delivers up to the end-to-end generation throughput of dense attention, while query-group graph aggregation yields up to with comparable accuracy.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:43 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
The reviewers agree that the paper addresses an important practical bottleneck in long-context inference through a clear, intuitive, and technically coherent training-free framework. They particularly appreciate its dynamic retrieval without permanent KV eviction, complete pipeline from graph construction to incremental updates, thorough implementation and ablation details, released code, and encouraging accuracy and latency results. However, the practical efficiency and the specific value of community partitioning require clearer evidence.
-
End-to-end efficiency (TCaq, vDmm). Clarify whether the speedup includes the full generation stack. Report full tokens/s or wall-clock latency and peak memory, including the KV cache, graphs, and centroids.
-
Baselines and Leiden’s contribution (all reviewers). Compare against a strong training-free KV-retrieval baseline and a simpler graph-grouping or direct-neighborhood method. Explain CommunityKV’s weaker results at small token budgets.
-
Streaming stability (TCaq, vDmm). The main evaluation generates only 128 tokens. Clarify whether output quality and runtime remain stable during long generation despite approximate retrieval and greedy community updates.
-
Robustness and scope (NDge, vDmm). Address sensitivity to and , and failure modes when attention graphs lack clear communities. Keep generalization claims limited to the tested Qwen3 models and benchmarks.
Final justification
I have read the authors' rebuttal and discussion. The additional end-to-end efficiency and memory results, stronger baselines, Leiden ablations, long-generation tests, and broader evaluation substantially address the initial concerns. All reviewers now recommend Borderline Accept, with the previously negative reviewer raising their score. The remaining limitations do not outweigh the paper’s technical and practical contributions. I therefore maintain the recommendation to accept as a poster.
Read meta-review
Meta-review
The reviewers agree that the paper addresses an important practical bottleneck in long-context inference through a clear, intuitive, and technically coherent training-free framework. They particularly appreciate its dynamic retrieval without permanent KV eviction, complete pipeline from graph construction to incremental updates, thorough implementation and ablation details, released code, and encouraging accuracy and latency results. However, the practical efficiency and the specific value of community partitioning require clearer evidence.
-
End-to-end efficiency (TCaq, vDmm). Clarify whether the speedup includes the full generation stack. Report full tokens/s or wall-clock latency and peak memory, including the KV cache, graphs, and centroids.
-
Baselines and Leiden’s contribution (all reviewers). Compare against a strong training-free KV-retrieval baseline and a simpler graph-grouping or direct-neighborhood method. Explain CommunityKV’s weaker results at small token budgets.
-
Streaming stability (TCaq, vDmm). The main evaluation generates only 128 tokens. Clarify whether output quality and runtime remain stable during long generation despite approximate retrieval and greedy community updates.
-
Robustness and scope (NDge, vDmm). Address sensitivity to and , and failure modes when attention graphs lack clear communities. Keep generalization claims limited to the tested Qwen3 models and benchmarks.
Final justification
I have read the authors' rebuttal and discussion. The additional end-to-end efficiency and memory results, stronger baselines, Leiden ablations, long-generation tests, and broader evaluation substantially address the initial concerns. All reviewers now recommend Borderline Accept, with the previously negative reviewer raising their score. The remaining limitations do not outweigh the paper’s technical and practical contributions. I therefore maintain the recommendation to accept as a poster.
3 comments
Dear Authors,
Thank you for your thorough and timely rebuttal. I appreciate the significant effort you put into addressing the consolidated concerns. I have forwarded your rebuttal to the original reviewers (TCaq, vDmm, and NDge) and asked them to re-evaluate whether their concerns have been fully satisfied. The final decision will depend on their updated assessments and scores.
Best, AC
Summary of Rebuttal Evidence and Final-Version Commitments
Dear Area Chair and Reviewers,
Thank you for the thoughtful feedback, which improved this work. We also thank the Area Chair for facilitating reassessment. TCaq confirmed their concerns were addressed and raised their rating. The rebuttal adds strong evidence on full-request efficiency, broader baselines, and robustness; ratings are now unanimous at 4 (Borderline accept).
To make our final-version commitments concrete:
1. Full-stack efficiency and memory. We will move decode-step Table 5 to the appendix and replace it with:
| Dense | Per-query head | Query group | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Ctx. | Model | tok/s | Peak | tok/s | Aux. | Peak | tok/s | Aux. | Peak |
| 64k | 4B | 88.95 | 32.80 | 99.73 (1.12x) | 9.07 (67.2% KV) | 39.69 (+21.0%) | 133.86 (1.50x) | 2.03 (15.0% KV) | 33.83 (+3.1%) |
| 64k | 8B | 75.86 | 40.81 | 83.97 (1.10x) | 8.57 (63.5% KV) | 48.14 (+18.0%) | 107.33 (1.41x) | 1.98 (14.7% KV) | 42.72 (+4.7%) |
| 64k | 14B | 56.54 | 58.69 | 60.94 (1.08x) | 12.32 (82.1% KV) | 69.52 (+18.5%) | 78.95 (1.39x) | 2.30 (15.3% KV) | 58.97 (+0.5%) |
| 128k | 4B | 73.13 | 47.19 | 90.77 (1.24x) | 12.36 (54.9% KV) | 60.65 (+28.5%) | 125.37 (1.71x) | 2.69 (12.0% KV) | 51.22 (+8.5%) |
| 128k | 8B | 63.49 | 61.95 | 79.08 (1.25x) | 11.63 (51.7% KV) | 72.74 (+17.4%) | 103.02 (1.62x) | 2.63 (11.7% KV) | 63.86 (+3.1%) |
| 128k | 14B | 48.60 | 79.95 | 56.90 (1.17x) | 16.95 (67.8% KV) | 97.16 (+21.5%) | 75.50 (1.55x) | 3.15 (12.6% KV) | 84.49 (+5.7%) |
Caption: Full-request throughput and peak GPU memory. Batch-1, 32,768-token generation on one H200, timed from prefill through final decode including all model/CommunityKV operations. Memory is GiB; auxiliary is graph plus centroid storage (% KV cache); peak percentages are versus dense.
The Abstract (12-14) will report up to 1.25x full-request throughput for per-query head and 1.71x for query group with comparable accuracy. The Introduction (47-51), efficiency discussion (244-252), and Conclusion (282-285) will report the ranges and identify query group as the practical tradeoff: per-query head, 1.08-1.25x, +17-29% peak memory; query group, 1.39-1.71x, +0.5-8.5%; 31.8% versus 32.0% accuracy and 12-15% versus 52-82% auxiliary/KV.
2. Baselines and scope. Experimental Setup (201-208) will add Llama-3.1-8B-Instruct and RULER. Baselines will add TokenSelect, FreeKV, and SparQ (retrieval) and H2O, SnapKV, and StreamingLLM (eviction/compression), retaining Quest and Multipole. BABILong Table 4 will become:
| Method | Qwen3-8B: QA1/2/3/4/5/Avg. | Llama-3.1-8B: QA1/2/3/4/5/Avg. |
|---|---|---|
| Dense | 63/32/30/55/63/48.6 | 62/26/23/43/58/42.4 |
| CommunityKV | 48/31/30/53/65/45.4 | 63/24/21/44/59/42.2 |
| TokenSelect | 58/28/28/48/56/43.6 | 57/21/16/44/52/38.0 |
| FreeKV | 52/28/23/48/58/41.8 | 58/23/22/47/57/41.4 |
| SparQ | 49/32/17/51/57/41.2 | 59/15/15/44/54/37.4 |
| SnapKV | 57/37/35/57/60/49.2 | 65/24/21/44/56/42.0 |
| H2O | 20/18/22/45/68/34.6 | 15/10/19/50/55/29.8 |
| StreamingLLM | 7/12/35/47/72/34.6 | 10/14/28/50/64/33.2 |
Caption: BABILong QA1-QA5 accuracy (%). 64k contexts and matched 4,096-token sparse budget; bold marks the strongest sparse average per model.
The discussion (241-243) will state that CommunityKV has the strongest retrieval average for both models, exceeds SnapKV on Llama (42.2 vs. 42.0), trails it on Qwen (45.4 vs. 49.2), and exceeds H2O/StreamingLLM on average. The appendix will give complete LongBench-v2 results for all methods, three Qwen3 sizes, and budgets 128-4096, plus three-task retrieval and 13-task eviction/compression RULER tables:
| Method | Qwen3-8B: MK2/MQ/VT/Avg. | Llama-3.1-8B: MK2/MQ/VT/Avg. |
|---|---|---|
| CommunityKV | 78.0/92.5/22.0/64.2 | 95.0/97.8/96.8/96.5 |
| TokenSelect | 81.0/91.8/17.4/63.4 | 92.0/90.0/93.2/91.7 |
| FreeKV | 64.0/93.5/46.4/68.0 | 91.0/97.0/98.4/95.5 |
| SparQ | 69.0/88.5/26.8/61.4 | 47.0/85.5/92.0/74.8 |
Caption: RULER direct-retrieval accuracy. Matched 4,096-token budget; Qwen uses 64k, while Llama uses 64k for NIAH and 32k for VT.
| Model | Dense | StreamingLLM | H2O | SnapKV | CommunityKV |
|---|---|---|---|---|---|
| Qwen3-8B | 76 | 17 | 17 | 52 | 53 |
| Llama-3.1-8B | 86 | 20 | 21 | 76 | 73 |
Caption: Mean RULER accuracy across 13 tasks. Results use a matched 4,096-token active-token budget.
3. Leiden ablations. The appendix will report connected-components and top-k-neighborhood controls using the same weighted graph and matched retrieval granularity. CommunityKV outperforms both controls in all 18 model-budget settings.
4. Long-generation stability. The appendix will report 8k sampled and 16k fixed continuations on PG19/Python, including repartitioning every 512 tokens, KL, NLL, top-1 agreement, and runtime. Repartitioning reduces 16k KL by 67%/72%; sampled 8k KL is below 0.017 with over 99% top-1 agreement.
5. Robustness and corrections. We will replace Table 6's incomplete kappa=4 result with the complete 503-sample result (31.1%).
We respectfully ask the Area Chair to consider the unanimous borderline-accept ratings together with the additional rebuttal evidence.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes CommunityKV, a training-free sparse attention framework that constructs a token graph from score matrix and partitions this graph using the Leiden algorithm for retrieving unit during decoding. Evaluations on LongBench v2 and BABILong across Qwen3 models achieve up to 1.86x decoding speedup over FlashAttention2 and maintain dense accuracy.
Strengths and weaknesses
Strengths:
-
This study reduces the KV-cache bandwidth and the cost of decode for the long-context LLM inference without retraining.
-
The proposed CommunityKV is intuitive and easy to understand. It builds token graphs from score matrix during prefill and retrieves semantically coherent token groups during decoding.
-
The paper provides useful system and empirical evidence, including implementation details, latency breakdowns, and ablations, showing that the proposed method can preserve accuracy while improving decoding throughput.
Weaknesses:
-
The reported speedup is not fully characterized at the end-to-end generation level. The paper should report full tokens/s including MLPs, layer normalization, sampling, scheduling, and KV-cache management, rather than focusing mainly on attention-related latency.
-
All experiments use Qwen3 family and only two long-context benchmarks. It would be stronger to evaluate additional models and more tasks.
-
The comparison to existing training-free KV-cache and sparse-attention methods is incomplete. Additional baselines such as H2O, SnapKV, StreamingLLM, and other approaches would make the empirical claims more convincing.
-
The sub-linear retrieval claim depends on empirical community scaling and the choice of the resolution parameter . The paper should better explain how the parameter is selected and how sensitive the method is to this choice across models, sequence lengths, and datasets.
-
The incremental update rule may accumulate errors during long generation. Since new tokens are assigned greedily based on an approximate retrieved set, missed important tokens may gradually degrade the community structure. Longer generation experiments would help validate stability.
6.The paper preserves the dense KV cache and adds routing graphs and centroids. The appendix suggests that per-head graphs can add nontrivial memory overhead, especially for many-layer, many-head models. Since memory is one of the main bottlenecks in long-context inference, it is better to report memory usage and compare it with the selected baselines.
Questions
1.What is the end-to-end decoding speedup? Can you report full tokens/s including all model components?
2.How does CommunityKV perform on additional models? Are the learned community structures robust across architectures with different attention patterns?
3.How sensitive is the method to the resolution parameter ?
4.How does the method compare against H2O, SnapKV, StreamingLLM?
5.What is the peak memory overhead of CommunityKV, including KV cache, graph storage, centroids, and intermediate buffers?
6.GraphKV used 7 datasets for evaluation, why did you only select two?
Limitations
Please see weaknesses and questions.
Final justification
Thank you for the detailed response and additional experiments. I will maintain my score.
Formatting concerns
The font style in Figure 1 could be corrected.
2 comments
Rebuttal
We thank the reviewer for the constructive review. All requested experiments have been run; results below.
W1/Q1 (end-to-end throughput): We measured full end-to-end throughput including all model components: MLPs, layer normalization, logits and token selection, KV-cache updates, plus all CommunityKV overheads (top-k extraction, graph construction, retrieval and graph memory access, incremental graph/centroid updates). Setup: batch-1 generation of 32,768 tokens at 65,536- and 131,072-token input contexts on a single H200; throughput = (generated tokens) / (wall time from immediately before prefill through the final decode step). End-to-end tok/s over the full generation (speedup versus dense):
| Context | Model | Dense | No Agg | Query Group | Layer-Wise |
|---|---|---|---|---|---|
| 64k | 4B | 88.95 | 99.73 [1.12×] | 133.86 [1.50×] | 135.63 [1.52×] |
| 64k | 8B | 75.86 | 83.97 [1.10×] | 107.33 [1.41×] | 108.18 [1.42×] |
| 64k | 14B | 56.54 | 60.94 [1.08×] | 78.95 [1.39×] | 79.65 [1.41×] |
| 128k | 4B | 73.13 | 90.77 [1.24×] | 125.37 [1.71×] | 125.77 [1.71×] |
| 128k | 8B | 63.49 | 79.08 [1.25×] | 103.02 [1.62×] | 104.01 [1.64×] |
| 128k | 14B | 48.60 | 56.90 [1.17×] | 75.50 [1.55×] | 76.32 [1.57×] |
CommunityKV delivers up to 1.52× end-to-end speedup at 64k and 1.71× at 128k; concretely, at 128k/14B, wall-clock for a full 32,768-token generation drops from 674.6s to 429.9s. Speedups grow with context length because attention’s share of total time increases. We will add end-to-end throughput tables to the revised results section.
W2/Q2 (additional models): We extended evaluation to Llama-3.1-8B-Instruct, applying the same procedure as for Qwen3: all graph-construction and partitioning hyperparameters unchanged, with only the layer-wise resolution recalibrated on held-out prompts (the standard calibration step described in W4/Q3, not model-specific tuning). CommunityKV transfers well: best average among training-free retrieval baselines (TokenSelect, FreeKV, SparQ) on BABILong-64k for both families (45.4 on Qwen3-8B, 42.2 on Llama-3.1-8B-Instruct) and best average on the RULER tasks evaluated on Llama (96.5) (see rebuttal to reviewer TCaq, Q1). That the same recipe is strong on a second architecture indicates the community structures reflect genuine attention locality rather than Qwen3-specific patterns.
W4/Q3 (resolution): For comparisons with methods requiring a fixed cluster count, we tune resolution independently per layer on held-out prompts to match that count and freeze the values for evaluation. More generally, the desired community count defines a quality-efficiency operating point: we calibrate layer-wise resolutions on held-out prompts, select among candidate operating points via validation accuracy, throughput, and memory, and evaluate several frozen operating points across models, sequence lengths, and datasets.
To quantify resolution sensitivity, we scaled every selected by (64× range), all else at the published protocol (Qwen3-8B, budget 4,096), paired on identical prompts. LongBench-v2 short (): 0.345, 0.414, 0.379, 0.414, 0.379, 0.414, 0.414. Five of six perturbed arms change at most 1 of 30 prompts; the coarsest () changes 2, flat within sampling noise.
W5 (incremental drift): We measured divergence from dense over long continuations (PG19, Python) for pure incremental updates versus periodic refresh every 512 tokens:
| Domain | Method | ΔNLL 4k/16k | KL 4k/16k | Top-1 agreement 4k/16k |
|---|---|---|---|---|
| PG19 | Incremental | 0.160/0.354 | 0.195/0.425 | 80.0%/69.3% |
| PG19 | Refresh-512 | 0.078/0.137 | 0.094/0.141 | 86.7%/82.9% |
| Python | Incremental | 0.051/0.107 | 0.068/0.185 | 96.3%/91.5% |
| Python | Refresh-512 | 0.023/0.022 | 0.029/0.040 | 97.3%/97.8% |
Incremental drift does accumulate, as the reviewer anticipates; periodic refresh bounds it (ΔNLL ≤0.14/≤0.03 at 16k, top-1 agreement 83–98%) at amortized cost. We will add this stability analysis to the appendix.
W3/Q4 (H2O, SnapKV, StreamingLLM): Thank you for identifying this gap. We evaluated all three baselines on BABILong-64k and RULER at the same token budget, (4096), and on LongBench-v2 across budgets from 128 to 4,096. Hyperparameters were matched in granularity to CommunityKV’s average community size of 16: H2O uses recent_fraction=0.5 with prefill chunks of 256; SnapKV uses window=32, kernel=5; and StreamingLLM uses four sinks plus the (B-4) most recent tokens.
BABILong-64k, accuracy %
| model | method | Avg. | qa1 | qa2 | qa3 | qa4 | qa5 |
|---|---|---|---|---|---|---|---|
| Qwen3-8B | Dense | 49 | 63 | 32 | 30 | 55 | 63 |
| StreamingLLM | 34 | 7 | 12 | 35 | 47 | 72 | |
| H2O | 35 | 20 | 18 | 22 | 45 | 68 | |
| SnapKV | 49 | 57 | 37 | 35 | 57 | 60 | |
| CommunityKV | 46 | 48 | 32 | 30 | 53 | 65 | |
| Llama-3.1-8B | Dense | 42 | 62 | 26 | 23 | 43 | 58 |
| StreamingLLM | 33 | 10 | 14 | 28 | 50 | 64 | |
| H2O | 30 | 15 | 10 | 19 | 50 | 55 | |
| SnapKV | 42 | 65 | 24 | 21 | 44 | 56 | |
| CommunityKV | 42 | 63 | 24 | 21 | 44 | 59 |
RULER, averaged over 13 tasks, accuracy %
| model | Dense | StreamingLLM | H2O | SnapKV | CommunityKV |
|---|---|---|---|---|---|
| Qwen3-8B | 76 | 17 | 17 | 52 | 53 |
| Llama-3.1-8B | 86 | 20 | 21 | 76 | 73 |
LongBench-v2 accuracy %, token budget 128-4096
| model | method | 128 | 256 | 512 | 1024 | 2048 | 4096 |
|---|---|---|---|---|---|---|---|
| Qwen3-4B | StreamingLLM | 25.0 | 25.0 | 25.6 | 25.6 | 26.2 | 26.2 |
| H2O | 24.8 | 24.8 | 25.2 | 25.8 | 26.2 | 27.0 | |
| SnapKV | 25.2 | 25.2 | 25.4 | 25.6 | 25.8 | 27.4 | |
| CommunityKV | 25.4 | 26.1 | 25.8 | 26.6 | 26.2 | 27.4 | |
| Qwen3-8B | StreamingLLM | 24.6 | 26.2 | 28.0 | 28.0 | 27.4 | 28.0 |
| H2O | 26.2 | 26.6 | 27.8 | 28.0 | 28.2 | 29.2 | |
| SnapKV | 26.2 | 27.8 | 28.2 | 28.2 | 28.4 | 30.0 | |
| CommunityKV | 28.5 | 28.8 | 29.5 | 30.1 | 29.9 | 31.1 | |
| Qwen3-14B | StreamingLLM | 27.0 | 29.4 | 30.8 | 31.2 | 31.2 | 31.4 |
| H2O | 28.6 | 30.4 | 31.2 | 31.4 | 31.8 | 31.2 | |
| SnapKV | 27.8 | 30.2 | 30.6 | 31.4 | 31.8 | 32.0 | |
| CommunityKV | 30.2 | 30.0 | 30.5 | 30.7 | 29.7 | 32.0 |
CommunityKV is best or tied in 14/18 LongBench-v2 settings, averaging 28.8% versus 28.2% for SnapKV, 28.0% for H2O, and 27.6% for StreamingLLM. On Qwen3-8B, it leads at every budget by 1.0–2.3 points. On Qwen3-14B, H2O or SnapKV is stronger at several intermediate budgets, while CommunityKV leads at (B=128) and ties at (B=4{,}096).
RULER also reveals distinct failure modes. StreamingLLM and H2O evict information needed by later queries, while SnapKV’s prefill-fixed selection can miss targets that are not initially salient. SnapKV scores 0.01/0.00 on Qwen multikey_2/3 and 0.00 on Llama multikey_3; CommunityKV dynamically reroutes each decoded query and obtains 0.78/0.95 on the corresponding Qwen tasks and 0.47 on Llama multikey_3.
Overall, CommunityKV is competitive on BABILong and aggregate RULER, achieves the strongest overall LongBench-v2 budget–accuracy tradeoff, and is more robust when token relevance becomes apparent only after query generation. We will add these results and implementation details to the revision.
W6/Q5 (peak memory): We measured peak GPU memory during the full end-to-end runs of Q1, decomposed into KV cache, graph storage, and centroids, for all three CommunityKV variants. All figures include the 32,768 generated tokens (i.e., 96k/160k total KV at the 64k/128k input contexts); peak model memory additionally includes weights, activations, and intermediate buffers.
| Context | Model | Method | KV cache (GiB) | Graphs (GiB) | Centroids (GiB) | Peak (GiB) |
|---|---|---|---|---|---|---|
| 64k | 4B | Dense | 13.50 | — | — | 32.80 |
| No Agg | 13.50 | 1.64 | 7.43 | 39.69 | ||
| Query Group | 13.50 | 0.39 | 1.64 | 33.83 | ||
| Layer-Wise | 13.50 | 0.13 | 1.41 | 33.85 | ||
| 64k | 8B | Dense | 13.50 | — | — | 40.81 |
| No Agg | 13.50 | 1.58 | 6.99 | 48.14 | ||
| Query Group | 13.50 | 0.38 | 1.60 | 42.72 | ||
| Layer-Wise | 13.50 | 0.12 | 1.38 | 42.73 | ||
| 64k | 14B | Dense | 15.00 | — | — | 58.69 |
| No Agg | 15.00 | 2.24 | 10.08 | 69.52 | ||
| Query Group | 15.00 | 0.43 | 1.87 | 58.97 | ||
| Layer-Wise | 15.00 | 0.14 | 1.54 | 61.11 | ||
| 128k | 4B | Dense | 22.50 | — | — | 47.19 |
| No Agg | 22.50 | 2.50 | 9.86 | 60.65 | ||
| Query Group | 22.50 | 0.58 | 2.11 | 51.22 | ||
| Layer-Wise | 22.50 | 0.16 | 1.65 | 51.26 | ||
| 128k | 8B | Dense | 22.50 | — | — | 61.95 |
| No Agg | 22.50 | 2.42 | 9.21 | 72.74 | ||
| Query Group | 22.50 | 0.58 | 2.05 | 63.86 | ||
| Layer-Wise | 22.50 | 0.16 | 1.62 | 62.85 | ||
| 128k | 14B | Dense | 25.00 | — | — | 79.95 |
| No Agg | 25.00 | 3.45 | 13.50 | 97.16 | ||
| Query Group | 25.00 | 0.67 | 2.48 | 84.49 | ||
| Layer-Wise | 25.00 | 0.18 | 1.85 | 84.53 |
For the graph-aggregated variants, graph and centroid storage together add 8–15% of KV-cache size, and the relative overhead shrinks with context length (11–15% at 64k versus 8–13% at 128k), since graph size scales sublinearly while the KV cache scales linearly. Peak model memory increases by 0.28–4.58 GiB over dense (0.5–8.6%), inclusive of all intermediate buffers.
The reviewer is correct that per-head graphs are expensive: without aggregation, graph and centroid storage reaches 52–82% of KV-cache size (up to 16.95 GiB combined at 128k/14B) and peak memory rises 17–29% over dense. This is precisely why the aggregation variants were proposed: they reduce graph-plus-centroid memory by 5-7× while also being faster (1.55–1.71× versus 1.17-1.25× end-to-end speedup at 128k), so the memory-efficient configuration is also the recommended one rather than a trade-off. Relative to eviction-based baselines, which reduce memory below dense by permanently truncating the cache, CommunityKV instead trades a modest overhead for retaining all entries. We will add the full memory table to the revised efficiency section.
Q6 (GraphKV datasets): This conflates two similarly named papers: our citation is GraphKV (Li et al., arXiv:2509.00388), which evaluates LongBench (16 English datasets) and NIAH; the seven-RAG-dataset evaluation belongs to the distinct Graph-KV (Wang et al., arXiv:2506.07334). We will clarify the citation. With RULER added in this response, the revision spans three benchmarks, three model sizes, and two model families.
We hope these additions: end-to-end throughput, a second model family, three eviction baselines, drift stability, and full memory accounting, address the concerns, and would appreciate the reviewer considering a score increase if so.
Reply to authors
Thank you for the detailed response and additional experiments. I will maintain my score.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 2/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes CommunityKV, a training-free sparse attention framework for efficient long-context decoding. CommunityKV builds a sparse token graph from the QK attention scores computed during prefill, partitions the graph into communities with the Leiden algorithm, and retrieves relevant communities during decoding. The method keeps the full KV cache and uses the graph only as a routing structure, with a local update rule to assign newly generated tokens to communities. Experiments on LongBench v2 and BABILong show that CommunityKV can approach dense attention accuracy while improving attention-side decoding latency.
Strengths and weaknesses
Strengths
-
The paper studies an important practical problem in long-context LLM inference. Using an attention-derived graph for dynamic KV routing is a sensible alternative to permanently evicting or compressing tokens.
-
The proposed method is technically coherent. The paper provides a complete pipeline, including graph construction, community partitioning, community retrieval, incremental update, complexity analysis, implementation details, and ablations.
-
The comparison with GraphKV is useful, since it highlights the difference between using graph structure for static cache eviction and using it for dynamic retrieval. The ablation studies also provide useful evidence that graph sparsity, direct/co-attention mixing, and sink-token handling are important.
Weaknesses
-
The baseline coverage is not sufficient for the paper’s main positioning. Since the paper is framed as a training-free dynamic KV retrieval method, the authors should compare with or at least discuss more direct KV retrieval baselines, such as attention-aware vector retrieval or fine-grained KV retrieval methods.
-
The experiments do not fully test the streaming-decoding setting. The main benchmark evaluation uses short greedy decoding, while the local community update rule is most relevant when many tokens are generated. Longer open-ended generation, sampled decoding, long code continuation, or long dialogue continuation would make the streaming claim more convincing.
-
The latency evaluation is not fully end-to-end. The paper reports attention-related kernel timing, but practical deployment depends on full generation throughput, including MLP, layer normalization, retrieval overhead, synchronization, and graph-related memory access.
-
It is not clear how essential the Leiden partitioning step is. A simpler graph grouping baseline, such as connected components over thresholded attention graphs or direct retrieval from top-k attention neighborhoods, would help isolate the contribution of community detection itself.
Questions
-
Could the authors compare against, or at least discuss in detail, more direct training-free KV retrieval baselines such as attention-aware vector retrieval or fine-grained KV retrieval methods? A small-scale comparison on one model and one benchmark would already be useful. If CommunityKV remains competitive against these methods, I would increase my assessment of significance and originality.
-
Could the authors provide an end-to-end latency or throughput measurement, rather than only attention-related kernel timing? For example, tokens/s or full wall-clock decoding latency at 64k/128k context would help determine how much of the reported attention-side speedup translates into practical inference speedup. Strong end-to-end gains would improve my assessment of significance.
Limitations
yes
Final justification
The authors have clearly addressed my main concerns, and I will therefore increase my score.
Formatting concerns
None.
2 comments
Rebuttal
W1: We agree that direct training-free KV retrieval baselines are needed for the paper’s positioning. We ran full comparisons against TokenSelect, FreeKV, and SparQ across three benchmarks and two model families; results and analysis are in Q1 below. In brief, CommunityKV is competitive with or better than all three, with the best average on BABILong-64k for both models and the best average on the RULER tasks shown for Llama-3.1-8B-Instruct. All baselines will be added to the revised main comparison.
W2: We added two long-generation experiments with Qwen3-8B and 64k-token prompts from PG19 and Python repositories. The fixed-continuation experiment teacher-forces the same held-out continuation through every method for up to 16k tokens, isolating accumulated approximation error (5 prompts/domain). The sampled-generation experiment generates 8k tokens at temperature 0.7, top- 0.95, directly testing free-running streaming decoding (10 prompts/domain, 2 seeds). Entries report KL divergence to dense (lower better) and dense top-1 agreement (higher better) over the final 512 tokens.
| Domain | 16k fixed: Incr. | 16k fixed: Refresh-512 | 8k sampled: Incr. | 8k sampled: Refresh-512 |
|---|---|---|---|---|
| PG19 | 0.440 / 0.680 | 0.145 / 0.828 | 0.0045 / 0.997 | 0.0097 / 0.991 |
| Python | 0.251 / 0.875 | 0.070 / 0.943 | 0.0163 / 0.990 | 0.0053 / 0.996 |
Approximation error accumulates gradually over very long sequences; repartitioning every 512 tokens cuts 16k KL by 67% (PG19) and 72% (Python) while improving top-1 agreement. In free-running sampled generation both variants remain close to dense after 8k tokens (KL < 0.017, top-1 > 99%). Therefore, incremental updates are stable over the tested 8k sampled horizon, and periodic repartitioning limits drift on longer 16k continuations.
W3: We agree the original 1.86× figure was decode-side only. We now measure full end-to-end generation throughput: MLPs, layer norms, sampling, KV-cache updates, and all CommunityKV overheads (graph construction, retrieval, incremental updates), at 64k/128k contexts across three model sizes: up to 1.52× end-to-end speedup at 64k and up to 1.71× at 128k. Full results in Q2 below.
W4: We ran both proposed ablations. To isolate community detection itself, both baselines operate on the same weighted attention graph as CommunityKV (direct + co-attention edges) and are calibrated to match its retrieval granularity (average cluster size 16, hence equal cluster count at each budget), so any accuracy difference is attributable to how the graph is partitioned. (1) Connected components over thresholded graphs: edges below a weight threshold are removed and surviving components are the retrieval groups; thresholds were calibrated per model on held-out PG-19 prompts at 2k/8k/32k/128k contexts to hit mean component size 16 (achieved 15.9–16.1 at all settings, e.g., 127/512/2,043/8,220 components for Qwen3-8B). (2) Top-k attention neighborhoods: retrieval seeded at the highest-scoring tokens, expanded one hop to fill the budget, with (token budget)/16 so unit count and mean size match CommunityKV.
Results. LongBench-v2 accuracy (%, Qwen3-4B/8B/14B):
| Method | 128 | 256 | 512 | 1,024 | 2,048 | 4,096 |
|---|---|---|---|---|---|---|
| Conn. components | 1.1 / 3.2 / 0.3 | 2.7 / 5.5 / 1.8 | 3.5 / 6.7 / 3.5 | 7.3 / 11.6 / 9.7 | 12.1 / 15.8 / 19.2 | 20.3 / 21.8 / 27.0 |
| Top-k neighborhoods | 23.5 / 27.6 / 28.0 | 23.3 / 28.4 / 28.2 | 23.3 / 27.6 / 29.4 | 21.9 / 26.4 / 28.6 | 19.0 / 28.8 / 28.6 | 18.2 / 26.2 / 29.6 |
| CommunityKV | 25.4 / 28.5 / 30.2 | 26.1 / 28.8 / 30.0 | 25.8 / 29.5 / 30.5 | 26.6 / 30.1 / 30.7 | 26.2 / 29.9 / 29.7 | 27.4 / 31.1 / 32.0 |
CommunityKV outperforms both baselines at every budget and scale: a grouping heuristic on the identical graph, matched for cluster count and size, recovers neither its small-budget accuracy (versus connected components) nor its budget scaling (versus top-k). Both ablations will be added to the appendix.
Q1: We ran the requested comparison against three training-free KV retrieval baselines covering both families named: TokenSelect (fine-grained token-level), FreeKV (page-level), SparQ(attention-aware low-rank retrieval), on three benchmarks and two model families* at matched token budgets, beyond the one-model/one-benchmark scale suggested.
Summary: CommunityKV is competitive with or better than all three. It has the best average on BABILong-64k for both models and the best average on the RULER tasks shown for Llama-3.1-8B-Instruct; on LongBench-v2 all four methods are statistically indistinguishable across three model sizes and six budgets. The one setting where a baseline leads is RULER on Qwen3-8B, driven by a single task (variable tracking), analyzed below.
BABILong-64k. Dispersed multi-fact retrieval; most sensitive to retrieval quality:
| Model | Method | qa1 | qa2 | qa3 | qa4 | qa5 | Avg. |
|---|---|---|---|---|---|---|---|
| Qwen3-8B | CommunityKV | 48 | 31 | 30 | 53 | 65 | 45.4 |
| TokenSelect | 58 | 28 | 28 | 48 | 56 | 43.6 | |
| FreeKV | 52 | 28 | 23 | 48 | 58 | 41.8 | |
| SparQ | 49 | 32 | 17 | 51 | 57 | 41.2 | |
| Llama-3.1-8B-Instruct | CommunityKV | 63 | 24 | 21 | 44 | 59 | 42.2 |
| TokenSelect | 57 | 21 | 16 | 44 | 52 | 38.0 | |
| FreeKV | 58 | 23 | 22 | 47 | 57 | 41.4 | |
| SparQ | 59 | 15 | 15 | 44 | 54 | 37.4 |
RULER. On Llama-3.1-8B-Instruct, CommunityKV has the best average over the three tasks shown (96.5); SparQ degrades sharply on niah_multikey_2 (47.0), showing the sensitivity of low-rank approximation to distractor keys, which community-level structure avoids. On Qwen3-8B, CommunityKV trails FreeKV on this average (64.2 versus 68.0), attributable entirely to variable tracking (22.0 versus 46.4), on which all methods except FreeKV degrade.
| Model | Method | mk_2 | mq | vt | Avg. (3 tasks shown) |
|---|---|---|---|---|---|
| Qwen3-8B | CommunityKV | 78.0 | 92.5 | 22.0 | 64.2 |
| TokenSelect | 81.0 | 91.8 | 17.4 | 63.4 | |
| FreeKV | 64.0 | 93.5 | 46.4 | 68.0 | |
| SparQ | 69.0 | 88.5 | 26.8 | 61.4 | |
| Llama-3.1-8B-Instruct | CommunityKV | 95.0 | 97.8 | 96.8 | 96.5 |
| TokenSelect | 92.0 | 90.0 | 93.2 | 91.7 | |
| FreeKV | 91.0 | 97.0 | 98.4 | 95.5 | |
| SparQ | 47.0 | 85.5 | 92.0 | 74.8 |
LongBench-v2. Across Qwen3-4B/8B/14B and six budgets (128–4096), all four methods fall within ~1 point at every configuration. Full tables will be added to the main text and appendix.
Configurations. Matched token budgets. TokenSelect: num_sink=10, local_k=0, sim. threshold=1.0. FreeKV: page size=16, . SparQ: rank = head_dim/community_size = 128/16 = 8, num_sink=10, local_k=0. All baselines, tables, and discussion will be incorporated into the revision.
Q2: We agree the prior 1.86× figure was decode-side (H100, 128 decode steps, prefill excluded). We now measure full end-to-end throughput: up to 1.52× speedup at 64k context and 1.71× at 128k over the complete request.
Setup. Batch-1 generation of 32,768 tokens at 65,536-/131,072-token contexts on a single H200. Throughput = (generated tokens) / (wall time from immediately before prefill through the final decode step), including all non-attention components the reviewer identifies (MLPs, layer norm, logits and token selection, KV-cache updates) plus all CommunityKV overheads (top-k extraction, graph construction, retrieval and graph memory access, incremental graph/centroid updates). Below: end-to-end tok/s over the full 32,768-token generation (speedup versus dense). "No Agg" is CommunityKV without community aggregation; "Query Group" and "Layer-Wise" are its two aggregation variants.
| Context | Model | Dense | No Agg | Query Group | Layer-Wise |
|---|---|---|---|---|---|
| 64k | 4B | 88.95 | 99.73 [1.12×] | 133.86 [1.50×] | 135.63 [1.52×] |
| 64k | 8B | 75.86 | 83.97 [1.10×] | 107.33 [1.41×] | 108.18 [1.42×] |
| 64k | 14B | 56.54 | 60.94 [1.08×] | 78.95 [1.39×] | 79.65 [1.41×] |
| 128k | 4B | 73.13 | 90.77 [1.24×] | 125.37 [1.71×] | 125.77 [1.71×] |
| 128k | 8B | 63.49 | 79.08 [1.25×] | 103.02 [1.62×] | 104.01 [1.64×] |
| 128k | 14B | 48.60 | 56.90 [1.17×] | 75.50 [1.55×] | 76.32 [1.57×] |
Cumulative throughput rises with generation length as the fixed prefill and graph-construction cost amortizes (e.g., 128k/14B Layer-Wise: 27.43 tok/s at 1,024 generated tokens → 76.32 at 32,768); tables will appear in the revised appendix.
Reconciliation. End-to-end speedups are lower than the 1.86× decode-side result because they amortize prefill and graph construction, which CommunityKV does not accelerate; the gap is entirely attributable to these fixed components. Speedups grow with context (1.71× at 128k versus 1.52× at 64k, 4B) because attention’s share of total time increases, the end-to-end benefit improves precisely in the regime CommunityKV targets. End-to-end throughput tables will be added to the revised efficiency section and appendix.
Closing. The reviewer noted that competitiveness against direct training-free KV retrieval baselines would increase their assessment of significance and originality, and that strong end-to-end gains would further improve significance. We believe both conditions are now met: CommunityKV is competitive with or better than TokenSelect, FreeKV, and SparQ across three benchmarks (Q1/W1), and delivers up to 1.71× end-to-end speedup at 128k (Q2/W3). We respectfully ask the reviewer to reconsider their rating in light of these results, and thank them for concrete suggestions that have materially strengthened the paper.
Thank you for the detailed rebuttal. The authors have clearly addressed my main concerns, and I will therefore increase my score.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
In this paper, the authors proposed CommunityKV, a training-free sparse attention framework that improves long-context efficiency by formulating token selection as a community detection problem. It builds a token graph from scores during prefill and partitions it into semantically coherent communities for retrieval. A local update rule assigns new tokens to communities in constant time, enabling efficient sparse decoding without global re-clustering while reducing attention and KV cache costs.
Strengths and weaknesses
Strengths:
-
The motivation is clear and meaningful. This paper addresses an important problem in long-context decoding by reducing inference cost without permanently discarding potentially useful KV information.
-
The experimental results demonstrate the effectiveness of the proposed method.
-
The code is provided, improving reproducibility.
Weaknesses:
-
The method relies heavily on the quality of Leiden partitioning. If the attention-induced graph does not form clear communities, the proposed community-level retrieval may miss important tokens.
-
Experiments are mainly conducted on Qwen3 models and two benchmarks, leaving the generality to other models and tasks unclear.
-
The baseline comparison is not sufficiently comprehensive. Several related sparse-attention and KV-cache methods discussed in the related work are not empirically compared.
-
In Table 3, CommunityKV is sometimes suboptimal at 128 and 256 tokens, encouraging the authors to provide more in-depth analysis and discussion.
Questions
-
The additional graph memory overhead may be non-negligible, since CommunityKV keeps the full KV cache while introducing extra graph and centroid storage, especially under the default per-head graph setting.
-
I am curious why the performance drops when graph sparsity in Table 6, compared with both and .
Limitations
Yes.
Final justification
Thanks for the authors' response. My concerns have been addressed, and I have decided to maintain my score.
Formatting concerns
None.
1 comment
Rebuttal
W1: We agree that a completely unstructured attention graph would limit any graph-based retriever. However, this is not what we observe. Under our calibrated setting, Leiden produces non-degenerate partitions with both mean and median community size near 16. In contrast, thresholded connected components calibrated to the same mean size have median size 1, showing that Leiden avoids the highly fragmented partitions produced by simpler grouping.
Performance is also relatively insensitive to the precise partition granularity. At a 4,096-token budget, varying the Leiden resolution over a 64× range changed mean community size by 2.5× but changed predictions on at most 2 of 29 paired prompts; the retrieved footprint remained 4,022 tokens per head. On LongBench-v2, increasing the budget from 128 to 4,096 improves CommunityKV by 2.0/2.6/1.8 points for Qwen3-4B/8B/14B, reaching 27.4/31.1/32.0 versus dense attention’s 27.4/31.4/32.0. On BABILong with Qwen3-8B, CommunityKV obtains 46.8 versus 47.6 for dense attention.
Thus, the results do not suggest that Leiden is producing arbitrary groups that systematically hide important tokens. Community retrieval is query-dependent: communities are ranked by their key centroids and expanded under the token budget. Partition quality therefore affects retrieval granularity, particularly at very small budgets, but the method does not require perfectly separated communities. The balanced observed partitions, robustness to substantial resolution changes, and near-dense high-budget accuracy together indicate that this failure mode is not dominant in the evaluated settings. We will add these analyses and explicitly identify unstructured graphs as a limitation outside the evaluated distributions.
W2: We expanded the evaluation to two model families (Qwen3 and Llama-3.1), three model sizes, three long-context benchmarks (LongBench-v2, BABILong-64k, and RULER), and two long-generation domains (PG19 and Python). For Llama-3.1-8B-Instruct, all graph-construction and partitioning hyperparameters were unchanged; only the layer-wise Leiden resolution was recalibrated on held-out prompts using the same label-free procedure as for Qwen3.
RULER results for the retrieval baselines are summarized below (average accuracy over the three tasks evaluated, %):
| Model | CommunityKV | TokenSelect | FreeKV | SparQ |
|---|---|---|---|---|
| Qwen3-8B | 64.2 | 63.4 | 68.0 | 61.4 |
| Llama-3.1-8B-Instruct | 96.5 | 91.7 | 95.5 | 74.8 |
CommunityKV transfers strongly to Llama and has the best BABILong-64k average among these retrieval baselines for both model families. On Qwen RULER, FreeKV’s aggregate lead is attributable to variable tracking (46.4 versus 22.0); CommunityKV remains competitive on the two retrieval tasks (78.0/92.5). We will add the complete cross-model, cross-task tables and the PG19/Python generation results to the revision.
W3: We added six matched-budget baselines spanning retrieval-based sparse attention (TokenSelect, FreeKV, SparQ) and eviction-based KV compression (H2O, SnapKV, StreamingLLM). The RULER comparison against eviction baselines is summarized below (average over all 13 tasks, %):
| Model | CommunityKV | SnapKV | H2O | StreamingLLM |
|---|---|---|---|---|
| Qwen3-8B | 53 | 52 | 17 | 17 |
| Llama-3.1-8B-Instruct | 73 | 76 | 21 | 20 |
On BABILong-64k, CommunityKV is best among the retrieval baselines for both families and is comparable to the strongest eviction baseline; H2O and StreamingLLM degrade substantially on dispersed retrieval. On LongBench-v2, the retrieval methods remain within approximately one point across Qwen3-4B/8B/14B and six budgets.
To isolate Leiden’s contribution, we also compared connected components and top-k attention neighborhoods on the identical weighted graph, calibrated to the same mean group size and group count. CommunityKV outperforms both at every budget and model scale; top-k neighborhoods in particular fail to reproduce its improvement as the budget grows. Thus, the gain is attributable to community partitioning rather than graph construction alone. Full configurations and tables will be included in the revision.
W4: We agree that these cells merit explanation. Two effects are involved.
First, the observed gaps are small relative to the resolution of LongBench-v2. Across the five cells in question, CommunityKV trails the best baseline by only 0.1–1.2 accuracy points, corresponding to 1–6 of 503 questions. Given the measured ~15% discordance between sparse methods, an exact paired McNemar test requires a net difference of roughly 17 questions (about 3.4 points) to reach two-sided . All five gaps fall well within this range. The low-budget column is also weakly diagnostic of retrieval quality: at budget 128, question-and-options-only and no-retrieval recency controls match or exceed dense attention on several model sizes. We will therefore add Wilson intervals, paired significance tests, and no-document/no-retrieval controls to Table 3 rather than over-interpreting small rank changes.
Second, there is a real small-budget granularity cost. CommunityKV retrieves whole communities rather than individual tokens. With mean community size 16 and 10 sink tokens, budgets of 128 and 256 admit only about 7 and 15 communities. At these budgets, tokens with low query relevance inside a highly ranked community consume a substantial fraction of the budget; this fraction decreases as the budget grows. Consistent with this mechanism, CommunityKV gains 2.0/2.6/1.8 points from 128 to 4,096 tokens for Qwen3-4B/8B/14B and approaches dense performance, while the strongest competing rows are flat or decline. At 4,096 tokens, changing resolution over 64× alters predictions on at most 2 of 29 prompts, confirming that granularity matters primarily when very few communities fit.
This trade-off is also task-dependent. CommunityKV is strongest when evidence is distributed across related positions: on BABILong QA2–QA5 it scores 38/26/55/69 versus dense attention’s 36/23/52/67. It is weaker when one isolated span determines the answer: on QA1 it scores 46 versus 60 for dense, and a similar limitation appears on RULER single-needle tasks. We will state this limitation explicitly and evaluate a budget-coupled resolution target at 128 and 256 tokens so that smaller budgets use smaller communities and admit more independently ranked units.
Q1: We measured peak GPU memory during complete end-to-end runs, decomposed into the KV cache, graph storage, and centroids for all three CommunityKV variants. All figures include 32,768 generated tokens (96k/160k total KV for 64k/128k input contexts); peak memory additionally includes model weights, activations, and intermediate buffers.
| Context | Model | Method | KV cache (GiB) | Graphs (GiB) | Centroids (GiB) | Peak (GiB) |
|---|---|---|---|---|---|---|
| 64k | 4B | Dense | 13.50 | — | — | 32.80 |
| No Agg | 13.50 | 1.64 | 7.43 | 39.69 | ||
| Query Group | 13.50 | 0.39 | 1.64 | 33.83 | ||
| Layer-Wise | 13.50 | 0.13 | 1.41 | 33.85 | ||
| 64k | 8B | Dense | 13.50 | — | — | 40.81 |
| No Agg | 13.50 | 1.58 | 6.99 | 48.14 | ||
| Query Group | 13.50 | 0.38 | 1.60 | 42.72 | ||
| Layer-Wise | 13.50 | 0.12 | 1.38 | 42.73 | ||
| 64k | 14B | Dense | 15.00 | — | — | 58.69 |
| No Agg | 15.00 | 2.24 | 10.08 | 69.52 | ||
| Query Group | 15.00 | 0.43 | 1.87 | 58.97 | ||
| Layer-Wise | 15.00 | 0.14 | 1.54 | 61.11 | ||
| 128k | 4B | Dense | 22.50 | — | — | 47.19 |
| No Agg | 22.50 | 2.50 | 9.86 | 60.65 | ||
| Query Group | 22.50 | 0.58 | 2.11 | 51.22 | ||
| Layer-Wise | 22.50 | 0.16 | 1.65 | 51.26 | ||
| 128k | 8B | Dense | 22.50 | — | — | 61.95 |
| No Agg | 22.50 | 2.42 | 9.21 | 72.74 | ||
| Query Group | 22.50 | 0.58 | 2.05 | 63.86 | ||
| Layer-Wise | 22.50 | 0.16 | 1.62 | 62.85 | ||
| 128k | 14B | Dense | 25.00 | — | — | 79.95 |
| No Agg | 25.00 | 3.45 | 13.50 | 97.16 | ||
| Query Group | 25.00 | 0.67 | 2.48 | 84.49 | ||
| Layer-Wise | 25.00 | 0.18 | 1.85 | 84.53 |
For the recommended query-grouped and layer-wise variants, graph and centroid storage adds 8–15% of KV-cache size, while peak memory increases by 0.28–4.58 GiB (0.5–8.6%) over dense. The relative storage overhead decreases from 11–15% at 64k to 8–13% at 128k because graph size grows sublinearly while the KV cache grows linearly.
The reviewer is correct that per-head graphs are expensive: without aggregation, graph and centroid storage reaches 52–82% of KV-cache size and peak memory rises 17–29%. This motivates the aggregated variants, which reduce graph-plus-centroid memory by 5–7× and are also faster (1.55–1.71× versus 1.17–1.25× end-to-end speedup at 128k). Unlike eviction methods, CommunityKV retains all cache entries, trading a modest aggregated overhead for full recoverability. We will add this table and identify the aggregated variants as the recommended default.
Q2: Thank you for identifying this issue. The reported value came from an incomplete run containing 155 of 503 samples. Re-running the full evaluation gives 31.1% on 503/503 samples, so there is no evidence of a special degradation at . Although changing can alter Leiden partitions discretely, the inversion in Table 6 was an artifact of the incomplete run. We verified that all other reported values correspond to complete evaluations and will correct the table.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Summary for Area Chairs and Senior Area Chairs
We thank the reviewers and chairs for their constructive feedback. We summarize the initial consensus and new rebuttal evidence below.
1. Initial Review Consensus
Two of three reviewers (NDge and vDmm) rated the paper borderline accept (4), while TCaq rated it borderline reject (3). Across the reviews, the paper was recognized for:
The concerns centered on evaluation completeness: baselines, full end-to-end efficiency and memory, long-generation stability, and robustness. The Chair Meta Reviewer consolidated these into four points.
2. Key Rebuttal Updates
End-to-end efficiency and memory (P1; TCaq, vDmm, and NDge). We clarified that the original 1.86x result was decode-side only (128 steps; prefill excluded). New H200 measurements include prefill, all model components, KV updates, and all CommunityKV overheads. Across 64k/128k contexts and Qwen3-4B/8B/14B, CommunityKV reaches up to 1.52x/1.71x end-to-end speedup. At 128k/14B, wall-clock time for 32,768 generated tokens decreases from 674.6 s to 429.9 s. Peak memory is decomposed into KV cache, graphs, and centroids. For the graph-aggregation variants, graph and centroid storage is 8%-15% of KV-cache size and peak memory is 0.28-4.58 GiB (0.5%-8.6%) above dense.
Baselines, Leiden's contribution, and small budgets (P2; all reviewers). We added six matched-budget baselines: direct retrieval (TokenSelect, FreeKV, SparQ) and eviction/compression (H2O, SnapKV, StreamingLLM). CommunityKV is competitive across LongBench-v2, BABILong-64k, and RULER, with some settings where FreeKV or SnapKV is stronger. To measure the necessity of partitioning, we conducted connected-components and top-k-neighborhood ablations using the identical weighted graph and matched retrieval granularity; CommunityKV outperforms both at every tested budget and Qwen3 scale.
Long-generation stability (P3; TCaq and vDmm). We added 8k-token sampled generation and 16k-token fixed-continuation experiments on PG19 and Python. After 8k sampled tokens, both incremental and periodically reparitioned variants remain close to dense (KL < 0.017; top-1 agreement > 99%). Over 16k fixed continuations, repartitioning every 512 tokens reduces final-window KL by 67% on PG19 and 72% on Python. Cumulative throughput increases with generation length as fixed prefill and graph-construction costs amortize, and periodic repartition cost amortizes.
Robustness and evaluated scope (P4; NDge and vDmm). Scaling the selected Leiden resolution gamma over a 64x range changes at most 1 of 30 paired predictions in five of six perturbed settings and 2 of 30 at the coarsest setting. We also found that an anomalous published kappa=4 result came from an incomplete 155/503-sample run; the complete rerun yields 31.1% on 503/503 samples, removing evidence of a special kappa=4 degradation. Observed Leiden partitions are non-degenerate, while matched-size connected components have median component size 1. We restrict generalization claims to the tested Qwen3-4B/8B/14B and Llama-3.1-8B-Instruct models, LongBench-v2/BABILong/RULER benchmarks, and PG19/Python long-generation domains.
3. Response to the Borderline-Reject Assessment
TCaq stated that competitiveness against direct training-free KV retrieval baselines would increase their assessment of significance and originality, and that strong end-to-end gains would improve significance. The rebuttal provides both: comparisons with TokenSelect, FreeKV, and SparQ across multiple benchmarks and models, and full-request gains up to 1.71x with wall-clock and memory accounting. It also adds the requested Leiden ablations and long-generation tests.
We respectfully ask the Area Chairs and Senior Area Chairs to consider this new evidence, together with the outcomes reported above.