Split-KV: Efficient Context Parallelism for Training Diffusion Drafters
Organizations: National University of Singapore · Stanford University · ByteDance Seed
Abstract
Diffusion drafters accelerate speculative decoding by denoising multiple draft tokens in parallel. Their training uses anchor sampling to construct compact draft queries and performs cross-attention with a block-sparse mask over a much longer context. We empirically show that acceptance length remains stable as context scales with a fixed query budget, while increasing the query budget yields diminishing quality gains, jointly establishing a practical regime with queries far shorter than the context. No existing context parallelism (CP) method jointly exploits this query--context asymmetry and meets the nonlinear, sample-dependent load-balancing requirement created by anchor sampling. We present Split-KV, an exact CP method that keeps key/value shards local and limits per-layer attention communication to query-sized tensors, making this communication independent of context length. Its global query view further enables a cost-aware longest-processing-time-first (LPT) strategy that balances context key/value chunks by their realized attention cost. At a CP size of 64, Split-KV retains 85--91% weak-scaling efficiency and achieves up to speedup over the fastest available CP baseline. LPT achieves 1% imbalance and plans three orders of magnitude faster than the best load-balancing baseline. Code is available at https://github.com/zxgx/verl.
Figures & tables
| communication | peak memory | load balancing | |
|---|---|---|---|
| no CP ( ) | — | N/A | |
| Ulysses | \frac{P-1}{P}\cdot\frac{4H(\hbox{\pagecolor{baselineRed}\displaystyle S}+2Q)}{P} | Head sharding | |
| Ring Attention | \frac{2(3P-2)}{P}\cdot(\hbox{\pagecolor{baselineRed}\displaystyle S}{+}Q)H | Zigzag | |
| RingX | \frac{P-1}{P}\cdot 2H(2\hbox{\pagecolor{baselineRed}\displaystyle S}{+}3Q) | None | |
| LV-XAttn | None | ||
| Split-KV | Cost-aware LPT |
| Target | Layers | |||||
|---|---|---|---|---|---|---|
| Qwen3.5-35B-A3B | 8 | 2048 | 6144 | 32 | 4 | 128 |
| Qwen3.5-27B | 5 | 5120 | 17408 | 32 | 8 | 128 |
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| Target model | GSM8K | MATH-500 | HumanEval | MBPP | MT-Bench | Avg. | ||
|---|---|---|---|---|---|---|---|---|
| Fix –Scale | ||||||||
| Qwen3.5-35B-A3B | 5.98 | 6.99 | 7.00 | 5.96 | 4.48 | 6.08 | ||
| 6.09 | 7.05 | 7.03 | 5.98 | 4.52 | 6.13 | |||
| 6.09 | 6.95 | 7.05 | 5.97 | 4.54 | 6.12 | |||
| Qwen3.5-9B | 5.71 | 6.59 | 6.30 | 5.50 | 4.40 | 5.70 | ||
| 5.70 | 6.51 | 6.44 | 5.56 | 4.47 | 5.74 | |||