potentialpaper

KVBuffer: IO-aware Serving for Linear Attention

Longwei Zou, Lin Zhong

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. Linear attention has recently gained significant attention for long-context inference due to its constant decoding cost with respect to context length. However, existing serving systems typically serve linear attention by recurrently computing and updating a large linear attention state in every decoding step. Since the state is much larger than the per-token key and value, recurrent decoding incurs substantial memory access and becomes inefficient for serving linear attention. In this paper, we propose KVBuffer, an IO-aware serving mechanism for linear attention. By buffering recent keys and values, KVBuffer enables serving systems to compute linear attention outputs in more flexible and memory-efficient ways. For decoding, KVBuffer enables chunkwise computation, which reduces average memory access and decoding latency by deferring state updates and applying them in batch. For speculative decoding, KVBuffer verifies draft tokens in parallel and avoids storing temporary states. For short contexts, KVBuffer computes attention outputs directly from buffered keys and values, without creating or updating the linear attention state. We implement KVBuffer in SGLang for Qwen3.5 and Nemotron-3 series models. Our evaluations show that KVBuffer can speedup batch decoding by up to 1.47×1.47 \times and increase the maximum number of serving requests by 5×5 \times for speculative decoding when verifying four draft tokens.

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 paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
4 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:43 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

The idea is simple but timely and apparently first to bring chunkwise linear-attention decoding into serving systems. All flagged weaknesses including second model, end-to-end metrics, numerical parity, memory overhead are addressable in the response window. I encourage the authors to address that.

Final justification

The authors addressed the concerns from the reviewers well. I recommend accept.

Area Chair jVyH · Meta-reviewOpenReview ↗
Final justification
The authors addressed the concerns from the reviewers well. I recommend accept.
Read meta-review
Meta-review

The idea is simple but timely and apparently first to bring chunkwise linear-attention decoding into serving systems. All flagged weaknesses including second model, end-to-end metrics, numerical parity, memory overhead are addressable in the response window. I encourage the authors to address that.

Reviewer tofROpenReview ↗
Rating
5/6
Confidence
4/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 a new serving strategy for hybrid models that use linear attention mechanisms like Gated Delta Net. Frameworks like vLLM and SGLang typically leverage the recurrent form of these models which requires reading a large state tensor at each step, updating it, and writing it back. Decode is memory-bound and the recurrent state is often stored in high precision (FP32) and so reading and writing the state contributes significantly to the inter-token latency.

The authors propose a "chunkwise" approach that involves buffering the inputs to the linear attention (e.g., the keys and values) for a number of steps and recomputing the attention output within this buffer window. This strategy effectively trades off additional computation for the benefit of deferring the state update and thus writing the state back to memory less often. They also argue that this approach helps implement speculative decoding because introducing this buffer means that we don't need to store one recurrent state for every possible outcome. They also argue that for short sequences it can be beneficial to store no recurrent state at all and do full recomputation ("KV-only decoding").

The paper contains evaluation for the Qwen3-Next-80B-A3B model where they show the proposed technique can achieve ~45% kernel latency reduction for large batch sizes, and even bigger improvements when speculative decoding is used. They show kernel latency improvement for short sequences using KV-only decoding, and they also show end-to-end throughput improvement for the chunkwise approach.

Strengths and weaknesses

Strengths:

  • The paper is well-written, presents the majority of its ideas clearly and accurately, and was generally enjoyable to read.
  • While the chunkwise representation of the decoding step is known and fairly straightforward, it has not been leveraged inside serving systems like vLLM and SGLang, to the best of my knowledge.
  • While fairly simple, I think it is a novel* idea and may find significant impact in production.
  • Experimental results are impressive, especially the improvements in throughput. Models like Qwen3.5 are used very heavily at the moment and so a 50% improvement is huge.

Weaknesses:

  • The experimental section is too limited. It would make the claims of the paper much stronger if more than one model were used.
  • It would also be good to include standard end-to-end inference servings metrics like time-to-first-token, inter-token-latency, in addition to the end-to-end throughput.
  • While I understand how the approach helps with speculative decoding at a high-level, I find the explanation of this part a little too short with some details missing (see questions below).

*While this paper was under review there was a blog published called "ReplaySSM" which proposes a similar idea: https://dao-lab.ai/blog/2026/replayssm/ This blog was published on June 15, so after the paper under review was submitted to NeurIPS, so it cannot be considered prior work.

Questions
  1. The main weakness of the paper is the use of a single model in the experimental section. Please add additional results using additional models. For instance, I would suggest using one of the Nemotron3 models which are also pretty popular but use Mamba2 instead of GDN.
  2. Section 3.3 is not easy to understand. What is the "carefully constructed causal mask M"? What are K_acc and V_acc in Equation (8)? How do you handle not knowing the number of accepted tokens at the boundary of the buffer size?
  3. In Section 4.1 you list the different block sizes used for the different experiments. Why were these block sizes selected? Why did it need to be different in all 3 cases?
  4. How is "kernel latency" measured? For the batch size 1 results you say that CUDA graphs could help to reduce the launch overhead, which implies you aren't just measuring the GPU kernel time, so what are you measuring exactly?
  5. It is a bit of a shame that the optimal buffer size in the experimental results doesn't match your theory. You state that it is due to GQA affecting things. Would it be possible to also include the theoretical analysis for GQA, since it is pretty widely used these days.
Limitations

The paper assumes that linear attention state is managed used a separate pool of memory. While I am not super familiar with the internals of SGLang, I am certain that this is not how vLLM is managing it. Instead, memory management for linear attention and full attention layers are managed using a unified approach [1]. It would strengthen the paper to discuss how this idea might be implemented with that in mind.

[1] https://pytorch.org/blog/hybrid-models-as-first-class-citizens-in-vllm/

Final justification

My questions and concerns were adequately addressed by the authors during the rebuttal. I will recommend that the paper be accepted,

Formatting concerns

None

4 comments
Authors · CommentOpenReview ↗

Response to Reviewer tofR (Part II)

(6) Q5: “theoretical analysis for GQA”

Our analysis is formulated per value head and assumes independent memory accesses across heads. In the grouped-head design, multiple value heads share the same query and key: our implementation writes each shared key to KVBuffer only once, directly reducing write traffic. However, our current Triton kernel launches several program instances for a value head, so the shared queries and keys are logically read multiple times, while some reads may be served through implicit L2-cache reuse. Therefore, accurately analyzing GQA behavior is difficult because it depends on kernel design, scheduling, tensor layout, and hardware cache behavior. We will extend the analysis of GQA in the revised paper.

(7) Limitation: “unified memory management in vLLM”

We thank the reviewer for correcting our understanding of vLLM’s memory-management design. SGLang currently uses a separate state pool to manage linear-attention states, whereas vLLM V1 manages attention KV caches and Mamba states through a unified allocator. In our implementation, each request is assigned a single KVBuffer block for both standard and speculative decoding. In vLLM V1, KVBuffer could be represented as an additional cache component within the Mamba cache group, allowing its allocation, reuse, preemption, and release to follow the same request lifecycle as the Mamba state. The main additional consideration would be incorporating KVBuffer memory into vLLM’s page-size alignment and capacity calculations. We will include the discussion about vLLM V1 in the revised paper and plan to integrate KVBuffer with vLLM V1 in the future.

Authors · CommentOpenReview ↗

Response to Reviewer tofR (Part I)

We thank the reviewer for recognizing the clarity, novelty, and practical impact of KVBuffer, and for the constructive feedback. Our detailed responses to the points raised are as follows.

(1) W1: “The experimental section is too limited” && Q1

In Common Response (3), we provide additional end-to-end results on Nemotron-3-Nano-4B and Nemotron-3-Super-120B-A12B-NVFP4, both of which use Mamba-2, as well as additional Qwen3.5 models. Please refer to Common Response (3) for the detailed results.

(2) W2: “standard end-to-end inference servings metrics”

In Common Response (3), we report end-to-end inference and serving results, including throughput, end-to-end latency, TTFT, and TPOT. Please refer to Common Response (3) for the detailed results.

(3) W3: “speculative decoding details” && Q2

In speculative decoding, draft tokens may form a branching dependency structure rather than a single sequence. For example, suppose four draft tokens have dependencies 0→1, 0→2 and 1→3. The causal mask must prevent token 3 from attending to token 2 because token 2 is not its ancestor. Assuming rows correspond to queries and columns to keys, the mask is

[1000110010101101]\begin{bmatrix} 1 & 0 & 0 & 0 \\\\ 1 & 1 & 0 & 0 \\\\ 1 & 0 & 1 & 0 \\\\ 1 & 1 & 0 & 1 \end{bmatrix}

K_acc and V_acc in Eq. (8) denote the stacked keys and values of the accepted draft tokens, respectively. We will clarify the construction of M and the definitions of K_acc and V_acc in the revised paper.

For speculative decoding, we set the KVBuffer size to the maximum number of draft tokens and flush the buffer after the accepted tokens have been determined in each verification iteration. Because keys and values are not accumulated across verification iterations, the buffer cannot overflow at an iteration boundary. We will clarify this distinction between buffer management in standard and speculative decoding.

This design simplifies memory management and enables fixed-shape parallel verification. In particular, it avoids dynamically allocating additional blocks when the remaining buffer capacity is insufficient and provides a fixed verification workflow that is compatible with CUDA Graphs. Our current design already eliminates the dominant temporary-state memory overhead of recurrent verification. Allowing buffered keys and values to persist across verification iterations may provide additional memory-access savings, but would require more complex buffer management and a separate analysis of the optimal buffer size for multi-token verification; we leave this extension to future work.

(4) Q3: “different block sizes used for the different experiments”

For standard chunkwise decoding, we set the block size equal to the per-request buffer size to simplify KVBuffer management and kernel implementation. This allows us to assign each request a single KVBuffer block, rather than managing multiple pages and passing a variable-length list of block IDs as in KV-cache management. Because the per-request buffer is typically small, e.g., around 16 tokens, the memory waste from unused entries in a partially filled block is limited, while using smaller blocks would introduce additional management complexity.

For speculative decoding, we set the block size equal to the maximum number of draft tokens. Since this number is typically small, e.g., four tokens, this design simplifies allocation and fixed-shape verification without introducing meaningful memory fragmentation. For KV-only decoding, the memory-access pattern is similar to that of a conventional KV cache, so we reuse SGLang’s standard KV-cache block size. We will clarify the rationale for these choices in the revised paper.

(5) Q4: “How is ‘kernel latency’ measured”

We measure GPU-side kernel latency using CUDA events. After 10 warm-up runs, each operation is bracketed by start/end CUDA events; synchronization occurs only after all repeats, and we report the median of 10 measurements. Cache flushing, state reset, and a dummy matmul are outside the timed region. CUDA graphs do not improve latency under this kernel-level measurement. Our intended point was that, at small batch sizes, CUDA graphs can reduce the CPU launch overhead introduced by the additional flush kernel. We will correct and clarify this distinction in the revised paper.

Reviewer tofR · CommentOpenReview ↗

Thank you for the detailed and comprehensive response. I am happy to increase my score and recommend that the paper be accepted.

Authors · CommentOpenReview ↗

Thank you very much for your thoughtful consideration and recommendation. We sincerely appreciate your support.

Reviewer qqTLOpenReview ↗
Rating
5/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
4/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes KVBuffer, an IO-aware serving mechanism that buffers recent keys and values to improve the efficiency of linear attention during decoding. KVBuffer defers state updates and apply them in batch, which provides performance improvement.

Strengths and weaknesses

Strengths

  • The idea of buffering KVs to amortize state updates is simple, practical, and compatible with existing serving infrastructure.
  • The paper provides a clear theoretical analysis of memory access and uses it to derive optimal buffer sizes and approximate speedups.
  • The evaluation covers three distinct decoding scenarios (chunkwise, speculative, short‑context).

Weaknesses

  • The design part is too thin. The design focuses more on memory-access analysis than on system trade-off. The description of the paged memory management, block allocation policies, and interactions with other SGLang features (prefix caching, continuous batching) is too sketchy for a systems contribution. Memory overhead and fragmentation behavior are not quantified.
  • The paper does not verify that chunkwise or parallel‑form decoding produces numerically equivalent results to the standard form. Even small discrepancies could accumulate and affect generation quality, yet this critical aspect is unaddressed.
  • The evaluation provides limited end-to-end evidence. For ordinary decoding, the paper mainly reports linear-attention kernel latency, making it unclear how much the improvements translate into overall serving performance.
  • The hardware setup is limited to 4× NVIDIA L40S. No experiments on other GPU families or memory configurations.
  • Accuracy. Have you measured the output quality with KVBuffer? Can floating‑point differences cause noticeable accuracy degradation? Are the output and intermediate tensors bit-wise identical?
Questions
  • Could the authors further clarify how KVBuffer differs from prior work on chunkwise linear-attention computation and speculative decoding methods for recurrent or hybrid models? This would help better situate the contribution.
  • Could the authors provide more details on how KVBuffer is managed inside the serving runtime, particularly its runtime behavior and system-level design?
  • Figure 2 reports kernel-level latency for chunkwise decoding and shows limited speedup in some settings, especially at small batch sizes. In contrast, Figure 4 reports strong end-to-end throughput improvements for speculative decoding. Could the authors further explain how the kernel-level improvements translate into end-to-end serving performance? Additional end-to-end experiments and performance breakdowns would be helpful.
  • Could the authors report whether KVBuffer produces outputs that match recurrent decoding within numerical tolerance? It would also be useful to understand whether it affects generation quality or speculative decoding acceptance rates.
  • Could the authors provide empirical or profiling evidence to support the memory-access-based speedup analysis?
Limitations

The design part is too sketchy for a systems contribution.

Final justification

These additional comments address my concerns. So I increase my score.

Formatting concerns

N/A

3 comments
Authors · CommentOpenReview ↗

Response to Reviewer qqTL

We thank the reviewer for recognizing the practical value, theoretical analysis, and broad serving relevance of KVBuffer, and for the constructive feedback. Our detailed responses to the points raised are as follows.

(1) W1: “The design part is too thin” && Q2

KVBuffer uses a statically allocated block pool whose number of blocks matches the number of slots in the recurrent-state pool. During initialization, SGLang determines this capacity based on the available GPU memory and its configured memory-fraction parameter. During both standard and speculative decoding, each request is assigned a recurrent-state slot together with a KVBuffer block, and a separate request-to-block mapping table records block ownership. Blocks are reused after flushing and returned to the pool when requests finish or are preempted.

KVBuffer is compatible with continuous batching because each request independently owns a recurrent-state slot and a mapped KVBuffer block. Requests can therefore join or leave a batch and release their resources dynamically without synchronizing the entire batch or modifying SGLang’s scheduling logic. Our implementation already operates with SGLang’s continuous-batching mechanism.

KVBuffer does not yet integrate with prefix caching. Supporting prefix caching requires either flushing the buffered tokens into the recurrent state before inserting a prefix into the cache or restricting cache insertion to buffer boundaries after a flush. We will discuss this current limitation and these possible integration strategies in the revised paper.

(2) W2: “numerically equivalent results” && W5: “Accuracy” && Q4

In Common Response (1), we evaluate the kernel-level numerical equivalence between chunkwise and recurrent decoding. We also report end-to-end GSM8K accuracy across different KVBuffer sizes and measure the speculative-decoding acceptance rate. Please refer to Common Response (1) for the detailed results.

(3) W3: “limited end-to-end evidence” && Q3

In Common Response (3), we provide end-to-end evaluations of standard chunkwise decoding, including offline batched inference and online serving on ShareGPT. In Common Response (4), we further provide a kernel-runtime breakdown showing how the kernel-level improvements translate into end-to-end decoding speedups. Please refer to these responses for details.

(4) W4: “other GPU families or memory configurations”

In Common Response (3), we additionally report results for Nemotron-3-Super-120B-A12B-NVFP4 on NVIDIA B300 GPUs, complementing our original evaluation on L40S GPUs. We will include these additional results in the revised paper.

(5) Q1: “how KVBuffer differs from prior works”

Prior work mainly studies chunkwise computation for pretraining, whereas KVBuffer brings chunkwise decoding into inference-serving systems and introduces a mechanism for jointly managing the state pool and KV buffer for IO-aware linear-attention decoding. Moreover, we provide a theoretical analysis of the optimal buffer size and the corresponding speedup, which facilitates the practical deployment of KVBuffer. Finally, we accelerate both standard and speculative decoding using the same KVBuffer mechanism, providing a unified view of linear-attention decoding.

(6) Q5: “profiling evidence to support the memory-access-based speedup analysis”

In Common Response (4), we provide a detailed kernel-runtime breakdown whose measured speedups closely align with our memory-access-based analysis. We are also conducting Nsight Compute profiling to directly quantify memory traffic and will include the results in the rebuttal and revised paper if available.

Reviewer qqTL · CommentOpenReview ↗

These additional comments address my concerns. I will increase my score.

Authors · CommentOpenReview ↗

We sincerely thank the reviewer for the constructive discussion and are pleased that our additional clarifications and results have addressed the concerns.

Reviewer DPScOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
3/4
Clarity
2/4
Significance
2/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper introduces KVBuffer: an IO-aware state management framework for Hybrid/SSM model serving that supports chunk-wise GDN state updates by keeping keys and values for SSM states around (up to a certain buffer size) instead of updating the state at every decoding step. KV Buffer introduces extra KV reads but amortizes the large GDN state writes over multiple decode steps, leading to a reduction in average memory accesses. The paper describes the regime where such amortization will lead to an overall speedup (KV buffer size m = 2 x root(d)) in general decoding. Further, the method improves speculative decoding performance for hybrid models by avoiding large temporary draft state read/writes. Using key/value buffers instead of full state read/write also seems to be beneficial in the short context regime. The authors integrate KV Buffer in SGLang and show improvements in linear attention decoding latencies and throughput improvements with speculative decoding.

Strengths and weaknesses

Strengths

  • The problem of state management for Hybrid models is increasingly relevant as more models adopt linear attention. As the authors find out, a single solution of updating the large SSM state at each decode step is not the ideal solution, and different regimes can warrant different state management solutions. This is a genuinely interesting insight.
  • KV Buffer seems flexible to support the key-value buffer size and state update frequency, making it easy to tune for different regimes.
  • The paper does a good job of articulating the expected speedups in the different serving regimes it targets. This makes it better theoretically backed.
  • Section 4.2.2 shows good realized speedups for speculative decoding on realistic serving workloads.

Weaknesses

  • Evaluation on a single Linear Attention variant and model: The scope of the work seems to be limited in applicability to GDN, which is but one of the several linear attention variants (Mamba-2/3, GDP), and it is unclear how generally applicable the method is. Due to this, the evaluations are also restricted to a smaller subset of models. However, even within the Qwen family, it would strengthen the paper to see results for different-sized models (different Qwen 3.5/3.6 series models that support GDN).
  • Confusing metrics in the latency evaluations: The experimental results interchangeably use “decoding latency” and “kernel latency”. These can mean different things. Decoding latency is the end-to-end latency of generating one token in the decode step. Kernel latency can refer to just running the GDN kernel with/without KVBuffer. It is important to distinguish the two. If the results presented are just kernel latencies, then the paper is missing the end-to-end impact of KVBuffer on a single decode step. Further, KVBuffer does pay state read/write costs at certain decode steps. When the KV Buffer is full, it is important to show end-to-end request latencies over at least 100-200 decode steps at least. Ideally, the evaluation should be done on ShareGPT for Section 4.2.1 as well (just like it’s done for 4.2.2).
  • (Minor) Lack of clarity at certain places: Apart from the evaluation terminology confusion mentioned above, Figure 2 introduces “BZ”, which I am assuming is batch size, but isn’t clarified anywhere. The setup says - “For chunkwise decoding, we set the block size to per-request buffer size, so each request uses one block”. There is no justification for this choice, and further, Figure 2 does show the latencies across multiple block sizes.
Questions
  • Does KVBuffer work with other Linear Attention variants like Mamba-2/3?
  • Have the authors evaluated the speedup on other Qwen models of different sizes that also use GDN?
  • Are the results in Figures 2, 3, and 5 showing GDN kernel latency or full decode step latency/TPOT?
  • Do the authors evaluate the speedup with chunkwise decode on ShareGPT (outside speculative decoding)?
  • For the decode steps, where the state gets computed when a buffer is full, have the authors quantified the impact on the decoding latency?
  • The paper says that storing the keys/values has an extra memory overhead, so it will be great to see how much of an increase it leads to at different buffer sizes in practice.
Limitations

Yes

Final justification

My main concern regarding the method's applicability to other linear attention variants has been adequately addressed by the authors. I have no other major concerns and will recommend acceptance of the paper.

Formatting concerns

N/A

3 comments
Authors · CommentOpenReview ↗

Response to Reviewer DPSc

We thank the reviewer for recognizing the relevance, flexibility, and practical impact of KVBuffer, and for the constructive feedback. Our detailed responses to the points raised are as follows.

(1) W1: “Evaluation on a single Linear Attention variant and model” && Q1, Q2

In Common Response (2), we demonstrate that KVBuffer is mathematically applicable to Mamba-2, one of the most widely used SSM variants. In Common Response (3), we further provide end-to-end evaluations on additional Qwen3.5 and Nemotron-3 models covering both GDN and Mamba-2 architectures. Please refer to these common responses for the detailed derivation and experimental results.

(2) W2: “Confusing metrics in the latency evaluations” && Q3, Q4

In Sections 4.2.1 and 4.2.3 and Figures 2, 3, and 5, the terms “latency,” “kernel latency,” and “decoding latency” all refer to the execution latency of the GDN kernel with or without KVBuffer, rather than the full decode-step latency. We will consistently use the term “kernel latency” throughout the revised paper to remove this ambiguity.

In Common Response #3, we additionally report end-to-end batched-inference results with 1,024 output tokens and online serving results on ShareGPT, including throughput, end-to-end latency, TTFT, and TPOT. Please refer to Common Response #3 for the detailed results.

(3) W3 “Lack of clarity at certain places”

Thank you for pointing the missing of clarification. We will clarify in the revised Figure 2 caption that “BZ” denotes batch size.

For the statement, “For chunkwise decoding, we set the block size to the per-request buffer size, so each request uses one block,” this design simplifies both KVBuffer management and kernel implementation. By matching the block size to the per-request buffer size, we avoid managing multiple pages per request, as required for KV-cache management. Consequently, the KVBuffer kernel receives a single block ID for each request rather than a variable-length list of block IDs.

Because the per-request buffer is typically small—for example, approximately 22 tokens—the memory waste caused by unused slots in the block is limited. Therefore, using a block size smaller than the per-request buffer size would introduce additional management and kernel complexity with limited memory savings. We will clarify this design choice and its trade-off in the revised paper.

(4) Q5: “Impact of periodic state flushing”

In Common Response (4), we quantify the per-step decoding latency over a complete KVBuffer cycle, including the latency spike when the buffer is full and the state is flushed. Please refer to Common Response (4) for the detailed breakdown.

(5) Q6: “Extra memory overhead”

In Common Response (5), we quantify the per-request KVBuffer memory overhead at different buffer sizes and analyze its impact on maximum serving capacity. Please refer to Common Response (5) for details.

Reviewer DPSc · CommentOpenReview ↗

I thank the authors for their detailed response. I appreciate them addressing the major concern I had regarding the applicability of the method to other linear attention variants. The results on the Nemotron 3 series of models and the accompanying math are convincing enough for me. For the online serving results, it seems that the end-to-end benefit of the technique is roughly between 3% and 20% in TPOT for smaller models on weaker GPUs (L40S). The gains are muted on more modern hardware like B200s and larger models. I would like to know what serving framework was used for the end-to-end testing, and whether the smaller speedup on the larger models stems from a lower fraction of time spent in the SSM layer for a full decode step. Based on this revised assessment of applicability and end-to-end results, I am happy to increase my score.

Authors · CommentOpenReview ↗

We thank the reviewer for the thoughtful follow-up. All end-to-end experiments were conducted using SGLang, into which we integrated KVBuffer. The smaller end-to-end improvement observed for larger models is primarily because linear-attention layers account for a smaller fraction of the total decoding time. For example, in our batched-inference experiments, Mamba-2 layers account for 72.7% of the runtime for Nemotron-3-Nano-4B on an L40S GPU, compared with 55.4% for Nemotron-3-Super-120B-A12B-NVFP4 on a B300 GPU. Recent studies have shown that increasing the size of linear-attention states can substantially improve retrieval capabilities and downstream-task performance [1–4]. We expect KVBuffer to provide greater end-to-end serving benefits for future models with scaled linear-attention states.

[1] Guo, Guo, et al. "Log-linear attention." International Conference on Learning Representations.

[2] Du, Jusen, et al. "Mom: Linear sequence modeling with mixture-of-memories." International Conference on Learning Representations.

[3] Pan, Yuqi, et al. "Scaling linear attention with sparse state expansion." arXiv preprint arXiv:2507.16577.

[4] Xiao, Kaicheng, et al. "RAM-Net: Expressive Linear Attention with Selectively Addressable Memory." arXiv preprint arXiv:2602.11958.

Comments on the paper

4 comments
Authors · CommentOpenReview ↗

Common Response (Part I)

We thank the area chair and all reviewers for the constructive feedback and suggestions. For clarity, we provide common responses below to address the questions and concerns raised by multiple reviewers.

(1) Numerical stability and accuracy

We thank the reviewer qqTL for raising the question of numerical equivalence between chunkwise and recurrent decoding.

We first evaluate the kernel-level numerical equivalence with gaussian random inputs. We run up to 1,024 decoding steps with the same initial state and token inputs for both methods. Table R1 demonstrates the mean element-wise absolute error, mean relative error, and cosine similarity between the outputs of chunkwise and recurrent decoding. The results show that chunkwise decoding remains numerically stable and produces outputs that are very close to those of recurrent decoding over long decoding steps.

Table R1: Kernel-level numerical differences between output vectors produced by chunkwise and recurrent decoding at different decode lengths for Qwen3-Next. The buffer size is set to 16.

Metric \ Decode Length 1 4 8 16 32 64 128 256 512 1024
Absolute Error 1.295e-09 4.892e-08 3.997e-08 4.000e-08 4.614e-08 4.220e-08 3.981e-08 3.511e-08 4.924e-08 3.682e-08
Relative Error 5.700e-07 4.801e-04 5.462e-04 8.494e-04 1.300e-03 8.206e-04 8.707e-04 7.215e-04 2.371e-03 5.063e-04
Cosine Similarity 0.9999999999 0.9999999788 0.9999999718 0.9999999765 0.9999999590 0.9999999753 0.9999999781 0.9999999753 0.9999999630 0.9999999759

Moreover, we also evaluate the numerical equivalence for the linear attention state tensor. Table R2 show that the state tensors also remain highly similar across long decoding steps.

Table R2: Numerical differences between the linear attention states produced by chunkwise and recurrent decoding. The settings are the same as in Table R1.

Metric \ Decode Length 16 32 64 128 256 512 1024
Absolute Error 9.446e-07 9.171e-07 9.396e-07 9.120e-07 9.252e-07 9.350e-07 9.162e-07
Relative Error 1.304e-03 1.371e-03 1.520e-03 1.239e-03 1.212e-03 1.295e-03 1.830e-03
Cosine Similarity 0.9999999564 0.9999999568 0.9999999587 0.9999999576 0.9999999562 0.9999999575 0.9999999568

In addition, we evaluate the downstream task accuracy on 1,000 GSM8K questions using the 5-shot setting for chunkwise decoding. GSM8K usually has tens of generated tokens per question and uses exact-match accuracy measurement. The results in Table R3 show that chunkwise decoding with various buffer sizes has close accuracy with recurrent decoding.

Table R3: GSM8K accuracy for Qwen3-Next serving with different buffer sizes. A buffer size of 0 denotes the recurrent decoding.

KVBuffer Size 0 4 8 16 22 32 64
Accuracy 0.945 0.949 0.943 0.941 0.943 0.941 0.945

Finally, we examine whether the small numerical differences affect speculative decoding. We compared the average number of accepted tokens for parallel verification and recurrent verification. The result in Table R4 indicates that KVBuffer does not noticeably affect the number of accepted tokens for speculative decoding.

Table R4: Average number of accepted tokens for Qwen3-Next.

Method Num of Accepted Tokens
Baseline 2.99
KVBuffer 2.99
Authors · CommentOpenReview ↗

Common Response (Part IV)

(4) Breakdown of decoding acceleration

We thank reviewers DPSc and qqTL for requesting a performance breakdown and for asking how periodic state flushes affect per-step decoding latency.

We profile end-to-end batched decoding for Nemotron-3-Nano-4B on an L40S GPU with a KVBuffer size of 16. Table R7 reports the GPU kernel time for each operation category, averaged over 64 decoding steps. The recurrent SSM update accounts for 63.9% of the baseline GPU runtime. KVBuffer replaces this operation with buffered decoding and periodic state flushing, reducing the average SSM-related runtime from 31.409 ms to 20.429 ms, corresponding to a 1.537x speedup for the core SSM computation. This reduction translates into a 1.314x end-to-end decoding speedup.

Table R7: Breakdown of GPU kernel time per decode step for end-to-end batched inference with Nemotron-3-Nano-4B on an L40S GPU. Times are averaged over 64 decoding steps. “SSM update” includes only the core SSM operations, while the associated projections are categorized as GEMMs.

Category Baseline Time (ms) Baseline Ratio KVBuffer Time (ms) KVBuffer Ratio Speedup
SSM Update 31.409 63.9% 0 0.0% -
KVBuffer Decode 0 0.0% 17.986 48.1% -
KVBuffer Flush 0 0.0% 2.443 6.5% -
Conv 0.328 0.7% 0.310 0.8% -
GEMM 13.477 27.4% 13.130 35.1% -
Normalization 1.099 2.2% 0.805 2.2% -
Other 2.820 5.7% 2.710 7.2% -
Overall SSM Operations 31.409 63.9% 20.429 54.6% 1.537
Overall 49.132 100% 37.384 100% 1.314

We further measure the end-to-end latency of 16 consecutive decoding steps, corresponding to one complete KVBuffer cycle. As the buffer fills, KVBuffer decoding latency gradually increases because each step reads and processes more buffered keys and values. When the buffer becomes full at step 15, the buffer is flushed, producing a periodic latency spike. We will include this kernel-level performance breakdown and the per-step latency analysis in the revised paper.

Table R8: End-to-end per-step decoding latency over one complete 16-step KVBuffer cycle.

Step Baseline Latency (ms) KVBuffer Latency (ms) Speedup
0 49.082 31.323 1.567
1 49.054 31.445 1.560
2 49.027 31.539 1.554
3 49.062 33.109 1.482
4 49.044 33.522 1.463
5 49.140 33.714 1.458
6 49.032 34.273 1.431
7 49.015 34.867 1.406
8 48.983 35.452 1.382
9 48.972 36.069 1.358
10 49.120 36.649 1.340
11 49.081 37.240 1.318
12 49.025 37.838 1.296
13 49.118 38.394 1.279
14 49.174 39.023 1.260
15 49.101 72.479 0.677

(5) Memory overhead

We thank the reviewers DPSc and qqTL for asking to quantify the memory overhead introduced by KVBuffer.

Table R9 reports the additional memory required to store the buffered keys and values. With a buffer size of 22, which we use for standard chunkwise decoding, KVBuffer requires 2.344 MB per request per GPU. This corresponds to approximately 12.7% of the original per-request linear-attention state memory. Because the maximum number of concurrent requests is determined by the capacity of the state-memory pool, adding a buffer of size 22 reduces the theoretical maximum request capacity by approximately 11.3%.

For speculative decoding with four draft tokens, KVBuffer introduces only 0.426 MB of additional memory per request per GPU, corresponding to a 2.3% memory overhead and an approximately 2.26% reduction in theoretical request capacity. Therefore, its memory impact is small in the typical speculative-decoding setting.

We will include these memory-overhead and request-capacity analyses in the revised paper.

Table R9: Per-request memory overhead of KVBuffer at different buffer sizes. The measurements are obtained when serving Qwen3-Next on four L40S GPUs. All values are reported per request and per GPU.

Buffer Size KVBuffer (MB) Linear Attention State (MB)
4 0.426 18.42
8 0.853 18.42
16 1.705 18.42
22 2.344 18.42
32 3.410 18.42
Authors · CommentOpenReview ↗

Common Response (Part III)

(3) End-to-end performance for standard decoding and evaluation on additional models

We thank the reviewers DPSc, qqTL, and tofR for requesting end-to-end standard-decoding results and evaluations on additional models.

We first evaluate end-to-end offline batched-inference performance with an input length of 256 tokens and an output length of 1,024 tokens. As shown in Table R5, KVBuffer improves standard-decoding throughput by 1.18x–1.47x across four models covering both GDN and Mamba-2 architectures and different model scales. Among the two architectures, Qwen3.5 achieves a smaller speedup than Nemotron-3 with similar scales. Qwen3.5 has smaller linear attention state compared with Nemotron-3. Consequently, linear attention operations account for a smaller fraction of overall runtime, reducing the end-to-end benefit from the KVBuffer optimization.

Table R5: End-to-end standard decoding throughput for different models. Throughput values are reported as “KVBuffer / baseline”.

Model GPU Configuration Batch Size Decode Throughput (tok/s) Speedup
Nemotron-3-Nano-4B L40S 128 3582.2/2527.5 1.42x
Qwen3.5-4B L40S 128 3819.6/2961.9 1.29x
Nemotron-3-Super-120B-A12B-NVFP4 B300 512 6973.5/4754.8 1.47x
Qwen3.5-122B-A10B-NVFP4 B300 512 12675.9/10720.2 1.18x

We further evaluate end-to-end online serving performance for standard decoding using requests sampled from the ShareGPT dataset. As shown in Table R6, KVBuffer provides increasingly clear benefits as the request rate and decode concurrency increase. At moderate to high request rates, it improves throughput by up to 10%, reduces mean end-to-end latency by up to 18%, and reduces mean time per output token by up to 20%.

Table R6: End-to-end standard decoding serving performance on ShareGPT. Each entry is reported as “KVBuffer / baseline”, followed by their ratio in parentheses.

Model GPU Configuration Request Rate (req/s) Throughput (tok/s) Mean E2E Latency (ms) Mean TTFT Latency (ms) Mean TPOT Latency (ms)
Nemotron-3-Nano-4B L40S 1 219.4/219.4 (1.00x) 2924.1/2979.2 (0.98x) 48.6/49.4 (0.98x) 12.91/13.16 (0.98x)
8 1066.2/997.0 (1.07x) 5117.9/6104.5 (0.84x) 63.7/69.3 (0.92x) 23.94/28.89 (0.83x)
16 1206.6/1099.4 (1.10x) 6980.9/8515.2 (0.82x) 98.0/112.6 (0.87x) 36.96/46.32 (0.80x)
Qwen3.5-4B L40S 1 219.4/219.5 (1.00x) 3553.4/3529.5 (1.01x) 60.5/63.3 (0.96x) 16.20/16.21 (1.00x)
8 1019.5/985.5 (1.03x) 5809.5/6345.3 (0.92x) 53.8/55.3 (0.97x) 28.56/31.29 (0.91x)
16 1141.0/1080.9 (1.06x) 7249.8/8256.8 (0.88x) 64.7/68.8 (0.94x) 41.76/48.05 (0.87x)
Nemotron-3-Super-120B-A12B-NVFP4 B300 1 217.8/218.2 (1.00x) 4183.8/4081.1 (1.03x) 114.9/112.3 (1.02x) 19.95/19.59 (1.02x)
8 818.0/788.7 (1.04x) 11335.7/12247.5 (0.93x) 211.4/222.7 (0.95x) 69.42/75.94 (0.91x)
16 941.9/901.4 (1.04x) 12122.7/13186.9 (0.92x) 251.3/260.6 (0.96x) 130.42/145.50 (0.90x)
Qwen3.5-122B-A10B-NVFP4 B300 1 223.2/223.3 (1.00x) 1744.5/1679.7 (1.04x) 99.7/99.7 (1.00x) 8.48/8.16 (1.04x)
8 1223.0/1228.6 (1.00x) 6144.6/6218.2 (0.99x) 129.1/123.6 (1.04x) 35.62/36.17 (0.98x)
16 1503.4/1521.0 (0.99x) 7844.4/7919.9 (0.99x) 134.2/130.4 (1.03x) 66.62/72.14 (0.92x)
Authors · CommentOpenReview ↗

Common Response (Part II)

(2) Applicability for other linear attention variants: Mamba-2 as an Example

We thank reviewers DPSc and tofR for asking whether KVBuffer can be applied to other linear-attention variants, particularly Mamba-2.

Here we use Mamba-2 as an example to demonstrate the applicability of KVBuffer on other linear attention variants.

For simplicity, we consider one Mamba-2 head and omit the head index. In Mamba-2, the state-transition matrix has the scalar-times-identity form At=atIA_t=a_tI. Therefore, we use the scalar ata_t in place of AtA_t for simplicity.

Let xtx_t denote the token representation, BtB_t the state-expansion vector, CtC_t the state-contraction vector, ata_t the discrete state-decay factor, and StS_t the Mamba-2 state. Mamba-2 recurrently updates its state and computes its output oto_t as:

St=atSt−1+BtxtTS_t = a_t S_{t-1} + B_t x_t^T
ot=CtTSto_t = C_t^T S_t

Define the cumulative decay from position ss to position uu as λt←s=∏r=s+1tar\lambda_{t \leftarrow s} = \prod_{r=s+1}^{t}{a_r}. Note that λs←s=1\lambda_{s \leftarrow s}=1.

By unrolling the recurrence, we can derive the chunkwise computation form as:

oj=λj←t−mCjTSt−m+∑i=t−m+1jλj←i(CjTBi)xi,forj=t−m+1,...,to_j = \lambda_{j \leftarrow t-m} C_j^T S_{t-m} + \sum_{i=t-m+1}^{j}{\lambda_{j \leftarrow i} (C_j^T B_i) x_i}, \text{for} j=t-m+1,...,t
St=λt←t−mSt−m+∑i=t−m+1tλt←iBixiTS_t = \lambda_{t \leftarrow t-m} S_{t-m} + \sum_{i=t-m+1}^{t}{\lambda_{t \leftarrow i} B_i x_i^T}

Define the lower-triangular decay matrix:

Γij=λi←j,i≥j,otherwise 0\Gamma_{ij} = \lambda_{i \leftarrow j}, i \geq j, \text{otherwise } 0

and stack the token vectors row-wise into X,B,CX, B, C, we can derive the parallel form as:

O=(CBT⊙Γ)XO = (CB^T \odot \Gamma) X

Therefore, Mamba-2 can support KVBuffer for the three scenarios we discussed in the paper.

We will include the Mamba-2 derivation in the appendix of the revised paper, together with memory and speedup analyses.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…