- Rating
- 5
- Clarity
- 3
- Confidence
- 4
- Originality
- 3
- Quality
- 3
- Significance
- 4
Read review
Summary
This paper proposes DualKV, a system optimization that eliminates redundant prompt KV computation in RL training where multiple responses are sampled from the same prompt. DualKV develops a custom CUDA kernel extending FlashAttention2 that performs two-phase tile iteration over disjoint KV regions, and resolves the resulting N-way concurrent gradient write via fp32 atomic accumulation. The method is mathematically exact and demonstrates up to 3.38x end-to-end training speedup on 30B MoE model.
Strengths and weaknesses
Strengths:
- Important and timely topic. RL training efficiency is critical as GRPO/DAPO become standard in LLM post-training.
- Mathematical exactness. DualKV is provably bit-wise equivalent to the FA2 baseline.
- Solid evaluation. Both kernel-level and end-to-end results across multiple model sizes.
Weaknesses:
- Tight coupling to FA2. The kernel is implemented as an FA2 extension, but FA3 (targeting Hopper/H100) is increasingly the standard for large-scale training.
- Data pipeline constraints. DualKV requires all N same-prompt responses to be co-located on the same GPU within the same micro-batch, which necessitates disabling load-balancing and intra-epoch shuffle.
Questions
- Could the authors discuss the feasibility of extending DualKV to FA3?
Limitations
YES
Paper formatting concerns
NO
Final justification
The author's rebuttal addressed my main concerns. I think the paper is solid and meets publication standards.
We sincerely thank the reviewer for the thoughtful and constructive assessment and for recognizing the importance and timeliness of this problem, DualKV's mathematical exactness, and the breadth of our evaluation.
W1/Q1. FA2 coupling and feasibility of an FA3 extension
During the rebuttal period, we implemented and validated the kernel-level DualKV-FA3 forward/backward path required for model training. The original Table 1 in the paper submission was measured on A100, where FA3 is unavailable. We therefore reran FA2, DualKV-FA2, FA3, and DualKV-FA3 on the same H100 SXM 80GB. For focus, the table below reports the directly relevant FA3 versus DualKV-FA3 comparison; we will include the complete four-method H100 panel in the next revision. Across the Table 1 workload configurations, DualKV-FA3 provides 1.21–7.82× combined forward/backward speedup and 36--81% lower peak memory than FA3.
Measurement protocol: All methods ran on a single H100 SXM 80GB GPU using FP16, R=2,048, and Qwen3-8B GQA (32 query heads, 8 KV heads, head dimension 128). The table reports arithmetic means across four complete benchmark repetitions; within each repetition, latency is the median of 10 timed iterations after five warmups.
These results demonstrate that DualKV’s single-copy shared-prompt representation and exact shared-gradient accumulation generalize from FA2 to FA3.
The key DualKV-FA3 implementation and validation details are:
W2. Data-pipeline co-location, load balancing, and shuffling
We agree that this is a limitation of the current integration. Importantly, training prompts are still randomly shuffled before rollout. The restriction begins only after each prompt is expanded into N responses: those responses must remain contiguous and on the same data-parallel rank. All N responses need not fit in one microbatch. When N exceeds the microbatch size, the implementation processes consecutive same-prompt chunks, sharing the prompt within each chunk and recomputing it across chunks. The current integration skips VeRL's existing per-sequence load balancer to preserve this grouping.
The current DualKV execution requires same-prompt responses to remain co-located so they can reuse one prompt representation. Under standard FA2, VeRL balances the expanded sequences [Pi∥Ri0],…,[Pi∥Ri,N−1] independently using the workload estimate w(Sij)=24576Sij+Sij2, where Sij=Pi+Rij. This may scatter same-prompt responses across DP ranks. DualKV packs them as [Pi∥Ri0∥⋯∥Ri,N−1], requiring the complete prompt group to remain one scheduling unit. As future work, we plan to implement group-aware load balancing over these scheduling units. To evaluate feasibility, we simulated a greedy group-aware scheduler using the compact token count Ci=Pi+∑jRij as its load proxy. In each of 500 deterministic batches, it sorts 64 stored multi-response groups by this proxy and assigns each group to the least-loaded of 8 workers:
Worker-load excess is 100(maxjLj/Lˉ−1), where Lj is the sum of Ci over all groups assigned to worker j, and Lˉ is the mean load across the eight workers; 0% is perfect balance.
In summary, DualKV preserves prompt-level shuffling and only restricts post-rollout response-level reordering and redistribution; our reported DualKV end-to-end results already include this restriction. To further mitigate potential data-parallel imbalance, we propose group-aware placement of complete prompt groups. Our simulation shows P90 compact-layout token-load excess below 1.6% across all three datasets, while the SWE-Gym P99 tail motivates length bucketing or adaptive placement.
We greatly appreciate the reviewer's thoughtful questions and the opportunity to clarify these points. We will add the H100 FA3 results and clarify the group-level scheduling constraints in the revision. After completing end-to-end validation, we will open-source the DualKV-FA3 kernels in the same GitHub repository.