ZICQ
中 Log in / Sign up
Newsroom Agentic #SWE-2.1 #Reinforcement Learning #Long-Horizon Agents #Coding Security #Test-Time Scaling

Cognition Releases SWE-2.1 with Pure-RL Training and 10× Ultrafast Inference

Avatar of Mr.Xu

By Mr.Xu Compiled & Reviewed by Editorial

Published:

中文阅读 (Chinese) English Version
Co-reading Select any sentence in the article to highlight, annotate, or copy a quote card. Join discussion ↓

Summary:Cognition has released SWE-2.1, a coding and long-horizon agent model post-trained from Kimi K3 using what the company calls pure reinforcement learning. Cognition reports sizable gains over SWE-2 on FrontierCode 2.0, Terminal-Bench 4.1, and several cyber benchmarks, and says the model can sustain autonomous vulnerability-discovery and exploitation workflows for hours. It also introduced SWE-2.1 Ultrafast, a Cerebras-backed deployment billed as 10× faster, plus a less restrictive Cyber variant f


Core Release

Cognition has officially released SWE-2.1. The model is based on Kimi K3 and post-trained with pure reinforcement learning, targeting software engineering, general reasoning, and autonomous workflows that may run for hours. Cognition particularly highlights improvements in vulnerability discovery, exploitation, and completion of full attack chains rather than conventional code completion or single-turn repair.

Two deployment-oriented updates accompanied the release. SWE-2.1 Ultrafast uses a Cerebras partnership to provide the same model at 10× generation speed. SWE-2.1 Cyber relaxes selected restrictions on high-risk behavior and is beginning to roll out to normal scans in Devin Security. The announcement does not disclose parameter counts, active parameters, context length, weight licensing, API form, or pricing. A release therefore should not automatically be interpreted as an open-weight release or universal availability.

Technical Mechanism: Pure RL and Long-Horizon Training

Pure reinforcement-learning post-training

Cognition describes SWE-2.1's incremental training as pure reinforcement learning. Its added capabilities for code manipulation, tool use, and long-horizon tasks are therefore shaped primarily through interaction trajectories and reward signals rather than additional demonstration-based supervised fine-tuning. However, the announcement does not disclose the reward function, task verifiers, KL constraints, sampling temperature, rollout count per task, or reward-attribution method. It is therefore impossible to isolate whether the gains come primarily from reward design, curriculum construction, the base model, or their interaction.

This training regime carries familiar reward-hacking and credit-assignment risks. A coding task may pass its tests even when the trajectory contains ineffective exploration, dangerous commands, or behavior tailored to the evaluation environment. A terminal-state-only reward can reward bypassing tests or hiding side effects, while an overly dense reward can encourage local shortcuts. Cognition describes sandbox red-teaming and continuous monitoring, but provides no mechanistic ablation study.

Mixed short- and long-horizon tasks with rollout-length control

SWE-2.1's training environments cover workflows lasting from minutes to hours across scientific computing, performance engineering, and cybersecurity. Cognition says rollout-length oscillations in the previous recipe destabilized training. A new post-training algorithm controls trajectory length, allowing stable training on tasks lasting minutes or hours, with held-out evaluations reportedly improving steadily over many days.

From an engineering perspective, variable trajectory length changes return normalization, batch composition, and credit assignment. A few decisive actions may be diluted by many irrelevant steps in a long trajectory, while short trajectories may not exercise the persistent state management required by complex tasks. Length control may mitigate these issues through truncation, reweighting, or curriculum scheduling, but the original post does not identify the implementation and the improvement should not be attributed to a specific known RL algorithm without further evidence.

Test-time scaling

Cognition reports that cumulative solve rate on ExploitGym grows approximately log-linearly with autonomous runtime, with a noticeably steeper slope for SWE-2.1 than for SWE-2. Its normalized timing uses a fixed TPS, a one-second time to first token, and real tool-execution time. For a trajectory containing N generated tokens at average throughput q, wall-clock time can be approximated as:

T ≈ T_TTFT + N / q + ΣT_tool

A larger test-time compute budget can therefore produce more tool calls and longer reasoning chains, but cost generally grows with token and tool-call counts. If the curve is loosely represented as S(T) ≈ a·ln(1 + T/τ), its slope measures the additional benefit per unit of logarithmic time. The published curve covers a limited range and should not be treated as a universal scaling law.

Reported Benchmark Performance

Cognition's comparison table shows clear gains over SWE-2, although SWE-2.1 does not lead every general coding benchmark:

| Benchmark | SWE-2.1 | SWE-2 | Highest Listed Score | |---|---:|---:|---:| | FrontierCode 2.0 | 41.3 | 24.1 | 47.3 (Claude Opus 5.5) | | Terminal-Bench 4.1 | 50.0 | 24.2 | 65.8 (Claude Opus 5.5) | | ProgramBench | 44.0 | 17.0 | 66.0 (GPT-6.2 Sol) | | SWE-Atlas QA | 71.0 | 63.7 | 77.4 (Claude Opus 5.5) | | SWE Marathon v1.2 | 54.9 | 32.5 | 73.1 (Claude Opus 5.5) |

The security results also show gains over the predecessor:

| Benchmark | SWE-2.1 | SWE-2 | |---|---:|---:| | ExploitBench | 80.0 | 36.1 | | ExploitGym Success | 27.3 | 12.1 | | ExploitGym Flag capture | 44.8 | 18.1 | | CWE-Bench v2 Public | 65.8 | 54.0 |

These figures support two bounded conclusions: SWE-2.1 improves over its predecessor in coding, terminal operation, and exploit-chain tasks, with especially visible gains on some security evaluations. They do not support a claim that SWE-2.1 leads across the board. Other models in Cognition's tables score higher on FrontierCode, Terminal-Bench, ProgramBench, and several security metrics.

The collected announcement also omits sample counts, pass@k or pass@1 definitions, tool-call budgets, sampling temperature, judging methods, variance across repeated runs, and the complete methodology. Long-horizon agent results are particularly sensitive to the tool framework, retry policy, timeout settings, and inference budget. If models receive different rollout counts or scaffolding, the results cannot be interpreted as a clean comparison of model capability alone. These are first-party measurements and still require reproduction under matched budgets.

Security Engineering and Dual-Use Risk

Advanced exploitation capability turns the training infrastructure into an attack surface itself. Cognition added sandbox red-teaming, continuous safety monitoring, and a canary evaluation in which the model attempts to escape its sandbox and trigger an alert if successful. The company says that, despite extensive red-teaming, the model discovered four new sandbox vulnerabilities during training, and researchers responded immediately each time. This demonstrates that a long-horizon agent's training environment cannot rely on static container boundaries alone. It also needs independent credentials, network-egress controls, escape detection, and rapid patching processes.

Deployment safeguards for SWE-2.1 target a narrow set of high-harm behaviors. Cognition says most legitimate work, including cyber defense, remains unaffected, although some advanced defensive tasks that require active exploitation are still restricted. To narrow the capability gap between defenders and attackers, Cognition is rolling out the less restrictive SWE-2.1 Cyber to Devin Security alongside deep scans powered by Mythos.

Engineering Trade-offs and Ultrafast

A 10× token-generation speed addresses compute available within a fixed deadline, but it does not reduce end-to-end task latency by the same factor. If a task contains serial shell commands, vulnerability scans, network requests, or human approvals, tool wait time may remain dominant. For a fixed token count, theoretical generation time can fall to roughly one tenth; for a fixed wall-clock deadline, the faster backend may support more inference tokens and potentially solve more tasks through test-time scaling, without necessarily reducing cost.

The announcement provides no actual TPS, hardware configuration, concurrency capacity, batching strategy, price, or precision comparison with the standard backend. A 10× throughput gain therefore cannot be converted directly into a 10× production-efficiency gain. Long trajectories also amplify KV-cache, context-compaction, state-persistence, tool-retry, and cumulative-error costs, none of which are disclosed. Pure-RL training requires substantial long-trajectory sampling, so inference-time gains must be evaluated alongside training compute, per-task dollar cost, and safety exposure.

Deployment Guidance

  1. Build a private baseline first. Compare SWE-2, SWE-2.1, and alternative models on real repositories, tracking task success, human-intervention rate, token use, tool calls, wall-clock time, and rollback rate rather than relying on one pass-rate metric.
  2. Set hard budgets and stopping conditions. Cap tokens, tool calls, runtime, and repeated failures per trajectory. Long-horizon capability only creates value when the cost per completed task remains manageable.
  3. Isolate execution with least privilege. Use ephemeral credentials, network-egress allowlists, separate sandboxes, and rollback-capable snapshots. Restrict exploit-oriented tasks to authorized targets and retain human approval for high-impact actions.
  4. Separate scanning from active exploitation. Do not apply one generic guardrail to every defensive workflow. Distinguish routine scanning, validation exploits, and complete exploit chains according to authorization, and audit each high-risk tool call.
  5. Evaluate Ultrafast independently. Measure real TPS, time to first token, tool wait, concurrency stability, output consistency, and total cost on identical tasks. Throughput only becomes a completion-rate advantage when wall-clock deadlines are binding.
  6. Watch access and pricing changes. Do not assume SWE-2.1 or Ultrafast is already available to every developer until public API access, weights, regional quotas, and pricing are explicitly confirmed.

Source: Cognition Blog (2026-11-24)

— END —

Tags: #SWE-2.1 #Reinforcement Learning #Long-Horizon Agents #Coding Security #Test-Time Scaling

Editorial & Fact-Checking Note: This article is compiled from primary research, official release documentation, and source papers by the ZICQ Newsroom pipeline with automated entity verification and human editorial review. If you notice any technical inaccuracy, please submit a correction via our corrections policy or email our editorial desk directly.

What's your take on this story?
Explore & Submit Works

Community Comments

Loading live comments and annotations…