Explore the research collection
4 entries · Follow this search
- Paper
DualKV: Shared-Prompt Flash Attention for Efficient RL Training with Large Rollouts and Long Contexts
Standard FA2 packs N same-prompt rollouts as N(P+R) tokens, recomputing the prompt N times. DualKV repacks to P+NR and splits attention into one prompt self-attention plus a fused kernel that reads shared KV once and accumulates N-way dK/dV with fp32 atomics; mathematically equivalent, no approximation. On Qwen3-8B GRPO (8xH100, N=32, 8K-context) policy-update is 1.63–2.09x faster, MFU 36%→76%; DAPO 2.47x / 77% MFU. At 30B MoE on 16xH100, 3.82x policy-update and 3.38x step vs FA2 that needs 4-way Ulysses SP. Also supports Gemma-4 hybrid d=512 / sliding-window at 64K. Code https://github.com/amazon-science/dualkv-flash-attn-for-rl.
- Paper
WeDLM: Reconciling Diffusion Language Models with Standard Causal Attention for Fast Inference
arXiv 2512.22737. Proposes WeDLM: Topological Reordering places observed tokens in the physical prefix while preserving RoPE logical positions so masked recovery works under a strict causal mask; Dual-Stream Masking reduces train–inference gap; Streaming Parallel Decoding commits confident left-to-right prefixes with a dynamic sliding window. Instantiated on Qwen2.5-7B and Qwen3-8B (100B continued pretrain + SFT). Reports ~3× speedups on reasoning vs vLLM-served AR and up to ~10× in low-entropy regimes while matching/improving quality. Code/models: github.com/Tencent/WeDLM; HF tencent/WeDLM collection; project wedlm.github.io.
- Paper
Full-Pipeline Inference Optimization for MiMo-V2.5 Series: Pushing Hybrid SWA Efficiency to the Limit
Engineering report for MiMo-V2.5 / V2.5-Pro Hybrid Sliding Window Attention (example: 70 layers, 10 full + 60 SWA, W=128; ~7× less attention FLOPs and KV vs full attention) plus sparse MoE and vision/audio/video encoders. Dual-pool KV with strict O(W) SWA storage, layerwise prefetch, SWA-aware prefix cache trees, GCache L3 (RDMA, co-deployed on GPU nodes), KVCache-affinity router (~+25% L2 hit, ~+30% input throughput), length bucketing, halved EP after SWA storage (~40% e2e), MTP in prefill (2.3× on first 128 decode tokens), GPU image preprocess and parallel video decode (1-hour video 156s→23s). Reports ~93% production KV hit rate. Positions as the first large-scale serving system covering Hybrid SWA+MoE+multimodal. Not a dataset.
- Paper
ReToken: One Token to Improve Vision–Language Models for Visual Retrieval
Diagnoses query–key attention as a weak visual retriever in VLMs and scores frames in value space instead. ReToken is one learnable token plus a final-layer projection, trained with class-balanced BCE on MIRAGE multi-image QA while the VLM is frozen by default. On Visual Haystacks it lifts Qwen3VL-8B by 13.4 points and InternVL3.5-8B by 12.4 points at C=50 (>20% relative); trained only on images it transfers zero-shot to hour-scale video (+8.0 on LVBench with Qwen3VL-8B). Training and long-video inference fit on one H100. Code https://github.com/avaxiao/ReToken.