AI Pulse
📄 论文解读

扩散模型也能写代码了

大模型写代码,通常是「从左到右一个字一个字往外蹦」;这篇把代码生成换成了「扩散」——像洗照片一样,先糊一团噪声,再一轮轮去噪,一次能并行改一整块。难点在于:并行改一块,前后文就接不上了。他们的解法是给模型装一条「记忆通道」,把已经写过的内容压成循环记忆,和当前这一块的双向注意力放进同一个 softmax 里竞争,再补一条零初始化的右侧上下文卷积,让块与块之间能对齐。结果是在 7 项 agent 指标上全部领先,SWE-bench Verified 73.6、Terminal-Bench 2.1 51.7;单张 GB300、BF16、batch size 1 的情况下报出 680 tokens/s。还有一个变体:把一组相关问题一次性去噪出答案,500 组内部测试里单题准确率从 90.37% 升到 93.88%,整组全对从 65.4% 升到 77.0%。它不是你明天能装上的东西——模型没开源,速度是内部口径。

📄 原文摘要(英文)

We introduce Clover-35B-A3B-Preview (Clover), a mixture-of-experts diffusion language model with 35 billion total parameters and 3 billion activated parameters, supporting thinking-mode generation. Clover adapts Gated Delta Networks to block diffusion by combining recurrent memory of previously generated context with bidirectional softmax attention inside the current block. Historical memory readout competes with current-block tokens in a shared softmax, with learnable block-size calibration and a separate, zero-initialized right-context convolution branch. Clover leads the seven evaluated agent metrics, including 73.6 on SWE-bench Verified and 51.7 on Terminal-Bench 2.1. On internal agent workloads, it reaches a reported generation speed of 680 tokens/s using one NVIDIA GB300 GPU at BF16 precision and batch size one. We organize the evaluation around model quality, drafting and verification costs, and deployment under constrained memory. We also describe a decision-model variant that generates answers to related questions in one denoising pass. On an internal set of 500 groups, joint prediction raises question accuracy from 90.37% to 93.88% and all-correct group accuracy from 65.4% to 77.0%.

arXiv 原文

订阅 AI Pulse

每天 08:00 · 12:30 · 18:30 · 23:50 更新