AI 热点

Cognition 发布 SWE-2.1,提升编码与网络安全能力

Cognition 模型 / Devin 博客更新于 11月25日 03:11

Introducing SWE-2.1 | Cognition

AI 导读

Cognition 发布 SWE-2.1,该模型基于 Kimi K3 以纯强化学习训练,在多项编码及长时工作流基准上较 SWE-2 提升。SWE-2.1 在 ExploitBench 达到 80%,在 ExploitGym 通过预期漏洞捕获 27.3% 的 flags,并配有危险行为防护。同步发布的 SWE-2.1 Lightning 通过与 Cerebras 合作提供相同模型,速度提升至 10×。

推荐理由

精选AI 评分 83

文章同时披露多项编码与网络安全基准、长时自主任务表现及训练防护措施,便于比较性能提升与安全取舍。

主题

标签

正文

We’re releasing SWE-2.1, a major upgrade over SWE-2. Like its predecessor, it is trained with pure reinforcement learning on Kimi K3. It delivers large gains across a wide range of benchmarks including FrontierCode 2.0 and Terminal-Bench 4.1. We achieve much of our gains in coding performance by targeting general intelligence and long-horizon workflows. This also leads to improvements across a variety of other domains, especially cybersecurity.FrontierCode 2.0FrontierCode 2.0Terminal-Bench 4.1Terminal-Bench 4.1ExploitGymExploitGym

SWE-2.1SWE-2Kimi K3.1Grok 4.7Muse WonderGemini 4 NeonGPT-6.2 SolClaude Opus 5.5

Terminal-Bench 4.150.024.259.738.847.065.261.565.8

FrontierCode 2.041.324.119.928.925.346.243.847.3

ProgramBench44.017.031.521.550.045.066.065.0

SWE-Atlas QA71.063.770.273.473.471.861.377.4

SWE Marathon v1.254.932.538.87.930.058.168.873.1

See the Benchmark Methodology Notes at the end of this post for how these benchmarks are run.

Cybersecurity#

One notable improvement through our training is significantly increased capability on cybersecurity, vulnerability finding and exploitation tasks. SWE-2.1 achieves 80% on ExploitBench and 27.3% flags captured via intended exploits on ExploitGym. The model thus shows strong performance not only in finding vulnerabilities, but also carrying them out through the full exploitation chain, often over several hours of autonomous work.

SWE-2.1SWE-2Kimi K3.1GLM 5.3DeepSeek V4.1 Flash 1017Gemini 4 NeonMuse WonderClaude Opus 5.5GPT-6.2 Sol

ExploitBench80.036.174.754.431.1—58.9*91100

ExploitGymSuccess27.312.120.715.015.947.92.3*34.5—

ExploitGymFlag capture44.818.129.3—30.4—10.6*——

CWE-Bench v2 Public65.854.063.544.057.074.864.867.366.5

See the Benchmark Methodology Notes at the end of this post for how ExploitBench and ExploitGym are scored. * These scores are for Muse Wonder Full.

Securing training infrastructure#

Training a model with advanced capabilities in cybersecurity requires additional safeguards. Therefore, we built several security measures into training:

We red-teamed our training setup, particularly around sandboxes.

We implemented continuous safety monitoring. We created a canary eval where the model tries to escape the sandbox. Upon success, our infrastructure alerts the researchers.

The canary eval has been a successful intervention. Even after extensive red-teaming, the model discovered new vulnerabilities in our sandbox four times during training. Researchers were alerted and responded immediately each time.

Safeguards and access for defenders#

Because advanced capabilities, particularly in cybersecurity, carry a risk of misuse, we deployed SWE-2.1 with safeguards that detect and prevent the most dangerous kinds of behavior. These safeguards target a narrow set of high-harm activities, and are calibrated to leave most legitimate work, including work in cyber defense, unaffected.

At the same time, some advanced defensive work requires capabilities these safeguards restrict. AI is raising the floor for attackers: exploits that once required rare expertise are now within reach of anyone with a capable model. We want to give defenders the same leverage, so we are rolling out SWE-2.1 Cyber, a version of SWE-2.1 with more permissive safeguards, to Devin Security.

Devin Security already offers deep scans powered by frontier cyber models like Mythos. With SWE-2.1 Cyber powering normal scans, we hope to bring increased cyber capabilities for defense to all.

Test-Time Scaling#

As models become more capable, the ability to operate autonomously over long time horizons, for hours or even days, becomes increasingly important.

Real-world engineering and security problems rarely finish in a few minutes. To see how SWE-2.1 performs over sustained autonomous runs, we plot its cumulative solve rate on ExploitGym against normalized rollout time (computed at a fixed TPS, 1s TTFT, plus real tool execution time).

ExploitGymFlags capturedvsTime

As the model works for longer, it is able to solve more complex tasks. On our evals, we see that performance improves log-linearly as the time horizon extends, meaning that the model continues to find exploits as it works for more hours. Furthermore, the slope of the test-time scaling curve has increased significantly compared to the base model, demonstrating a significantly increased capability to autonomously manage and complete complex tasks.

Data and Recipe#

To train SWE-2.1, we expanded our tasks and environments across both short- and long-horizon workflows, spanning areas from science and performance engineering to cybersecurity. That breadth made the model more versatile while pushing its software engineering performance even further.

FrontierCode 2.0ScorevsCost ($)Devin CLIClaude CodeCodexAntigravity CLIGrok BuildMuse Code

We also improved our post-training algorithms to control rollout length during training. Previously, length oscillations often destabilized training dynamics. Reducing those oscillations let us train reliably on tasks ranging from a few minutes to many hours.

Together, our data and recipe improvements allowed us to train stably for much longer, with performance on held-out eval tasks improving steadily throughout many days of training. This new recipe also contributed to SWE-2.1’s improved test-time scaling, helping SWE-2.1 make better use of additional compute on difficult tasks.

SWE-2.1 Lightning#

We are also releasing SWE-2.1 Lightning. Through a partnership with Cerebras, we are able to provide the same model at 10× the speed. Because SWE-2.1 continues to improve with more test-time compute, inference speed determines how much work it can finish under a tight deadline. During an active incident or urgent fix, 10× throughput turns hours of investigation and iteration into just minutes.

Token generation speed0.0s3.0sSWE-2.1 Lightninglorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore magna aliqua ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur excepteur sint occaecat cupidatat non proident sunt in culpa qui officia deserunt mollit anim id est laborum lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore magna aliquaSWE-2.1 Lightning0 tokens600 tok/s1,800 tokens600 tok/sSWE-2 Flashlorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore magna aliqua ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur excepteur sint occaecat cupidatat non proident sunt in culpa qui officia deserunt mollit anim id est laborum lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore magna aliquaSWE-2 Flash0 tokens200 tok/s600 tokens200 tok/sSWE-2.1lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore magna aliqua ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur excepteur sint occaecat cupidatat non proident sunt in culpa qui officia deserunt mollit anim id est laborum lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore magna aliquaSWE-2.10 tokens60 tok/s180 tokens60 tok/sFree through 12/8Available in Devin Desktop, Cloud, and CLI at a discounted priceGet SWE-2.1 →

Benchmark Methodology Notes#

Harness: We report upstream or self-reported scores if they're available. Otherwise, we evaluate models on our internal evaluation framework. For closed models, we use the model developer's preferred harness. For open and SWE models, we use the Devin CLI harness.

Time budgets: To keep benchmark scores independent of inference speed, we enforce time limits on a simulated clock that charges each model call 1 s of time-to-first-token plus a constant c seconds per output token (a fixed TPS), matching our production serving speeds: time in seconds=turns+c×tokens+tools\text{time in seconds} = \text{turns} + c \times \text{tokens} + \text{tools}time in seconds=turns+c×tokens+tools.

ProgramBench: We report the percentage of tasks where the model passes at least 95% of tests. SWE-2.1 and SWE-2 are run in our harness with a 250k-token context with up to 3 compactions (1M tokens total). Other models are reported in mini-swe-agent with each model's native context window (up to ~1M tokens).

ExploitBench: We ran each task five times with a 3-hour simulated clock and took the union of the flags captured for each task. Taking the union of flags is standard practice for this benchmark (see e.g. the GPT-5.6 System Card).

ExploitGym: We report pass@1 over the set of 869 tasks within a 6-hour timeout. We evaluate with mitigations disabled, following Opus 5.5 and Gemini 4 Neon. We report two metrics - flags captured and success, following the ExploitGym paper. “Flags captured” includes successful, real exploits unrelated to the intended vulnerability specified in the initial prompt. To compute “success”, we adopted the upstream agent-as-a-judge implementation.

来源

Cognition 模型 / Devin 博客