arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2607.02805cs.LGcs.AIcs.CL
收藏

使用部分双向性训练混合块扩散语言模型

Training Hybrid Block Diffusion Language Models with Partial Bidirectionality

Stanford University(斯坦福大学)

Pranshu Chaturvedi, Parth Shroff, Tarun Suresh, Hangoo Kang, Kaiyue Wen

AI总结:

针对大语言模型高吞吐量长上下文生成挑战,提出BDLM Mamba-attention混合模型,通过限制反向Mamba扫描到活动去噪块解决缓存问题,在长上下文推理中吞吐量有显著提升。

摘要:

高吞吐量长上下文生成是大语言模型的核心挑战之一。生成通常受内存带宽限制而非计算限制。出现了两种并行方法,结合这两种想法存在技术挑战。早期混合扩散模型有问题,我们提出BDLM Mamba-attention混合模型解决挑战,在参数对比和长上下文推理中有优势,表明Mamba混合模型是潜在的长上下文扩散架构。

英文摘要:

High-throughput long-context generation is one of the central challenges for large language models. Generation is typically memory-bandwidth-bound rather than compute-bound: each decoding step must stream the accumulated key/value (KV) cache from memory, so bandwidth demand grows with context length while only one token is emitted. Two parallel approaches have therefore emerged: reducing memory access with efficient attention variants and linear-time mixers such as Mamba, or increasing parallel computation by generating blocks of tokens at once. However, technical challenges arise when combining these two ideas. Earlier hybrid diffusion models such as DiffuMamba use bidirectional Mamba mixing, including a reverse-direction scan relative to causal generation. This reverse scan needs to scan the entire sequence, so its states are not prefix-only and cannot be precisely reused as a cache even when diffusion is performed block by block. We propose a BDLM Mamba--attention hybrid that addresses this challenge by restricting the reverse Mamba scan to the active denoising block, which enables exact caching across blocks. In an 87M-parameter DCLM sweep, BDLM Mamba-H achieves the best C4-en validation perplexity compared to BDLM attention and full-sequence baselines. At 350M parameters, it remains competitive with BDLM attention. For long-context inference, BDLM Mamba-H reaches 19.7x the throughput of full-sequence DiffuMamba-H at 65K tokens and 3.7x the throughput of BDLM attention at 262K, showing that Mamba hybrids are a potential long-context diffusion architecture.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑