跳到主内容
@wquguru
精选88MarkTechPost(RSS)模型发布/更新

Cognition发布SWE-2:基于Kimi K3微调的编程模型

Cognition Releases SWE-2: A Kimi K3 Post-Trained Coding Model That Matches Fable 5.1 on FrontierCode at 64% Lower Cost

原文
发到 X
推荐理由

基于国产开源大模型Kimi K3进行深度强化学习微调并实现显著性能提升,展示了前沿编程模型的最新进展,值得开发者关注。

Cognition, the company behind the Devin coding agent, has released SWE-2, its most capable coding model to date. SWE-2 is post-trained with reinforcement learning from Kimi K3, Moonshot AI’s 2.8T-parameter open model. Cognition reports a score of 50.0% on FrontierCode 1.1 Main, within 1 point of Fable 5.1 at 64% lower cost. It is also Cognition’s first model with selectable reasoning-effort levels, all trained in a single RL run.

Devin 编码代理背后的公司 Cognition 发布了 SWE-2,这是其迄今为止最强大的编码模型。SWE-2 使用 Moonshot AI 的 2.8T 参数开源模型 Kimi K3 进行了强化学习后训练。Cognition 报告称,SWE-2 在 FrontierCode 1.1 Main 基准测试中得分为 50.0%,成本比 Fable 5.1 低 64%,仅相差 1 分。它也是 Cognition 首个具有可选推理努力级别的模型,所有级别均在一次 RL 运行中完成训练。

Is it deployable? Not on your own infrastructure. SWE-2 has no open weights and no standalone API. It runs only inside Devin: Desktop and CLI today, with Devin Web and Fusion rolling out.

它可以部署吗?不能在你的自有基础设施上部署。SWE-2 没有开放权重,也没有独立的 API。它仅在 Devin 内部运行:目前支持桌面版和 CLI,Devin Web 和 Fusion 正在陆续推出。

What is SWE-2

什么是 SWE-2

SWE-2 builds on the infrastructure and recipe behind SWE-1.7, which was post-trained from Kimi K2.7. This time Cognition scaled RL to the multi-trillion-parameter regime, using a base model with almost 3x the parameters. Cognition says its RL still finds substantial headroom on top of K3, adding 5 to 6 points on many benchmarks.

SWE-2 建立在 SWE-1.7 的基础设施和配方之上,后者是从 Kimi K2.7 进行后训练的。此次 Cognition 将 RL 扩展到了万亿参数级别,使用的基座模型参数量几乎增加了 3 倍。Cognition 表示,其在 K3 基础上进行的 RL 仍有 substantial headroom(显著提升空间),在许多基准测试中增加了 5 到 6 分。

The main change is an RL algorithm that trains all 3 effort levels in one run. Each level carries its own cost penalty, so the whole cost-and-performance frontier moves at once.

主要变化是一种 RL 算法,能够在一次运行中训练所有 3 个努力级别。每个级别都有其自身的成本惩罚,因此整个成本与性能前沿同时移动。

Benchmark Results

基准测试结果

Cognition published the following table. Public results are used where available; otherwise each model runs in its native harness at best effort.

Cognition 发布了下表。在有公开结果的地方使用公开结果;否则,每个模型都在其原生环境中以最佳努力运行。

BenchmarkSWE-2Kimi K3Grok 4.6Fable 5.1GPT-5.6 SolGPT-6 AstraSWE-1.7
FrontierCode 1.1 Main50.0%44.2%48.0%50.9%47.5%53.3%42.0%
DeepSWE 1.173.0%68.5%67.5%67.4%72.7%74.1%37.7%
Terminal-Bench 2.192.8%88.3%88.4%91.4%88.8%89.9%81.5%
Terminal-Bench 427.3%21.5%20.3%55.8%37.3%57.9%7.6%
基准SWE-2Kimi K3Grok 4.6Fable 5.1GPT-5.6 SolGPT-6 AstraSWE-1.7
FrontierCode 1.1 Main50.0%44.2%48.0%50.9%47.5%53.3%42.0%
DeepSWE 1.173.0%68.5%67.5%67.4%72.7%74.1%37.7%
Terminal-Bench 2.192.8%88.3%88.4%91.4%88.8%89.9%81.5%
Terminal-Bench 427.3%21.5%20.3%55.8%37.3%57.9%7.6%

SWE-2 leads on Terminal-Bench 2.1 and beats its K3 base on every row. Cognition says it comes within a few points of GPT-6 Astra at a quarter of the cost. The clear weak spot is Terminal-Bench 4, where SWE-2 trails Fable 5.1 and GPT-6 Astra by roughly 30 points. FrontierCode is Cognition’s own benchmark, and all rival numbers come from Cognition’s evaluation.

SWE-2 在 Terminal-Bench 2.1 上领先,并在每一行都击败了其基础模型 K3。Cognition 表示,其得分与 GPT-6 Astra 仅相差几分,但成本仅为后者的四分之一。明显的弱点是 Terminal-Bench 4,SWE-2 落后于 Fable 5.1 和 GPT-6 Astra 约 30 分。FrontierCode 是 Cognition 自有的基准测试,所有竞争对手的数据均来自 Cognition 的评估。

Model Behavior: Fewer Detours

模型行为:更少的迂回

SWE-1.7 tended to over-explore on simple tasks. SWE-2 addresses this through what Cognition calls focused exploration. On FrontierCode 1.1 Main, SWE-2 medium scores higher than SWE-1.7 while taking 58% fewer turns and costing 81% less. Mean steps per run drop from 127 (SWE-1.7) to 53 (medium), 80 (high), and 98 (max). SWE-2 medium makes its first real edit after a median of 18 steps, versus 48 for SWE-1.7.

SWE-1.7 倾向于在简单任务上过度探索。SWE-2 通过 Cognition 所称的“聚焦探索”解决了这一问题。在 FrontierCode 1.1 Main 上,SWE-2 medium 的得分高于 SWE-1.7,同时步数减少了 58%,成本降低了 81%。每次运行的平均步数从 SWE-1.7 的 127 步下降到 medium 的 53 步、high 的 80 步和 max 的 98 步。SWE-2 medium 的中位第 18 步就进行了第一次实质性编辑,而 SWE-1.7 则需要 48 步。

Cognition team also reports 3 behavioral patterns: stronger end-to-end test coverage, resourcefulness when a tool is blocked, and verification discipline. When challenged, the model re-derives conclusions instead of re-asserting them.

Cognition 团队还报告了三种行为模式:更强的端到端测试覆盖率、工具受阻时的资源利用能力,以及验证纪律。在面临挑战时,模型会重新推导结论,而不是重新断言它们。

How It Was Trained

训练方式

Pareto-informed cost penalties: The reward is R = S minus lambda times C, where S is binary success and C mixes inference cost in USD with rollout time. Cognition proves that only a linear penalty makes the RL objective depend purely on average cost and solve rate. Each effort level’s lambda is set to the local slope of the base model’s Pareto curve. That makes the iso-reward line tangent to the frontier, so reward can only rise by pushing the frontier up.

基于帕累托的成本惩罚:奖励公式为 R = S - lambda * C,其中 S 是二元成功指标,C 混合了以美元计量的推理成本和 rollout 时间。Cognition 证明,只有线性惩罚才能使强化学习目标仅依赖于平均成本和解决率。每个努力级别的 lambda 设置为基础模型帕累托曲线的局部斜率。这使得等奖励线与前沿相切,因此奖励只能通过推动前沿向上提升。

Length-weighted reward baseline: Cognition shares a baseline used since SWE-1.6. Gradient magnitude correlates strongly with rollout length, so the group baseline is weighted by tokens: sum(R x L) divided by sum(L). In ablations this kept inference-to-training KL divergence lower and stabilized training at no extra compute.

长度加权奖励基线:Cognition 分享了自 SWE-1.6 以来使用的基线。梯度幅度与 rollout 长度高度相关,因此群体基线按 token 加权:sum(R x L) 除以 sum(L)。在消融实验中,这保持了推理到训练的 KL 散度较低,并在不增加额外计算的情况下稳定了训练。

Rollout serving and numerics: A prefill delayer batches nearby requests, raising TPM per GPU and TPS per request by 10 to 20%. DSpark speculative decoding accelerates rollouts, with a draft model retrained via SpecForge for 15% longer accept lengths and then trained online alongside the policy. NVFP4 and FP8 kernels with quantization-aware training keep memory usage down and train-inference mismatch below SWE-1.7 levels.

Rollout 服务和数值优化:Prefill 延迟器对邻近请求进行批处理,使每 GPU 的 TPM(每分钟 token 数)和每请求的 TPS(每秒 token 数)提高了 10% 到 20%。DSpark 推测解码加速了 rollout,草稿模型通过 SpecForge 重新训练以获得 15% 更长的接受长度,随后与策略模型一起在线训练。采用量化感知训练的 NVFP4 和 FP8 内核降低了内存使用量,并将训练与推理之间的不匹配控制在低于 SWE-1.7 的水平。

Data: Cognition tripled its RL environments, added instruction-following overlays, and built a flywheel that uses earlier SWE-2 checkpoints to patch false positives and negatives in verifiers.

数据:Cognition 将其 RL 环境数量增加了三倍,添加了指令跟随叠加层,并构建了一个飞轮机制,利用早期的 SWE-2 检查点来修补验证器中的假阳性和假阴性。

Trustworthiness Checks

可信度检查

Cognition reran 2 evaluations from its open-source trustworthiness study. On 145 politically sensitive questions about China, SWE-2 passed 98.0% overall: 99.8% in English, 95.2% in Simplified Chinese, and 99.1% in Traditional Chinese. On a context-dependent vulnerability test across customer framings, no framing produced a statistically significant change for any model.

Cognition 重跑了其开源可信度研究中的两项评估。在涉及中国的 145 个政治敏感问题上,SWE-2 总体通过率高达 98.0%:英文为 99.8%,简体中文为 95.2%,繁体中文为 99.1%。在跨客户框架的上下文依赖漏洞测试中,没有任何框架导致任何模型出现统计显著的变化。

Interactive Explainer

交互式解释器

Key Takeaways

关键要点

  • SWE-2 scores 50.0% on FrontierCode 1.1 Main, within 1 point of Fable 5.1 at 64% lower cost
  • Post-trained from 2.8T-parameter Kimi K3; RL adds 5 to 6 points on most benchmarks
  • First Cognition model with effort levels, all trained in 1 RL run via slope-matched cost penalties
  • SWE-2 medium cuts turns 58% and cost 81% versus SWE-1.7 on FrontierCode
  • No open weights, no API: Devin only, free for paid tiers through October 10, 2026
  • SWE-2 在 FrontierCode 1.1 Main 上得分 50.0%,比 Fable 5.1 低 1 个点,但成本降低了 64%
  • 基于 2.8T 参数的 Kimi K3 进行后训练;RL 在大多数基准测试中提升了 5 到 6 分
  • 首个具备努力级别(effort levels)的 Cognition 模型,所有模型均通过一次 RL 运行及斜率匹配的成本惩罚完成训练
  • 在 FrontierCode 上,SWE-2 medium 相比 SWE-1.7 减少了 58% 的回合数和 81% 的成本
  • 不开源,无 API:仅限 Devin,付费用户可免费使用至 2026 年 10 月 10 日

Check out the Technical details. Also, feel free to follow us on Twitter and don’t forget to join our 150k+ML SubReddit and Subscribe to our Newsletter. Wait! are you on telegram? now you can join us on telegram as well.

查看技术细节。此外,欢迎在 Twitter 上关注我们,别忘了加入我们拥有 15 万+成员的 ML SubReddit,并订阅我们的新闻通讯。等等!你在 Telegram 上吗?现在你也可以加入我们的 Telegram 群组了。

Need to partner with us for promoting your GitHub Repo OR Hugging Face Page OR Product Release OR Webinar etc.? Connect with us

需要与我们合作推广你的 GitHub 仓库、Hugging Face 页面、产品发布或网络研讨会等?请与我们联系

The post Cognition Releases SWE-2: A Kimi K3 Post-Trained Coding Model That Matches Fable 5.1 on FrontierCode at 64% Lower Cost appeared first on MarkTechPost.

本文《Cognition 发布 SWE-2:一款在 FrontierCode 上与 Fable 5.1 表现相当、成本降低 64% 的 Kimi K3 后训练编程模型》首发于 MarkTechPost。

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

相似阅读

关联信息,但可能不是同一事件