atlas

Research map / Architectures and efficiency / Attention and transformers

DualKV: Shared-Prompt Flash Attention for Efficient RL Training with Large Rollouts and Long Contexts

NeurIPS 2026 · Architectures and efficiency › Attention and transformers · approach: Sparse attention for long-context LLMs · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes DualKV, a FlashAttention variant plus veRL data-pipeline change that processes the shared RL prompt once across N GRPO/DAPO rollouts, giving exact attention with 1.6-3.8x policy-update speedups.

Problem

Standard FlashAttention in RL post-training (GRPO, DAPO) replicates a shared P-token prompt across N response sequences in both forward and backward passes, wasting compute and memory at large rollout factors and long contexts.

Approach

Pack the micro-batch as one shared prompt plus N per-sequence responses, and use a fused FlashAttention forward/backward kernel that iterates over two disjoint KV regions (shared context and per-sequence response) with fp32 atomic accumulation of shared-prompt gradients, yielding exact attention.

Key results

Surprising findings

Limitations

Experimental setup

Datasets: LongReason GSM8K

Benchmarks: LongReason GSM8K

Metrics: policy-update time end-to-end step time MFU peak memory validation accuracy kernel fwd/bwd wall-clock time

Baselines: FlashAttention-2 FlashAttention-3 Prefix Grouper Ulysses sequence parallelism

Builds on: FlashAttention-2 veRL GRPO DAPO Prefix Grouper

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy