메뉴
HN
Hacker News 20일 전

SWE-1.7, GPT-5.5급 성능 달성하다

IMP
8/10
핵심 요약

Cognition이 Devin에 탑재된 새로운 코딩 AI 모델 SWE-1.7을 공개했습니다. 이 모델은 훨씬 낮은 비용으로 GPT-5.5 및 클로드 3.5 오퍼스(Claude 3.5 Opus)에 필적하는 최고 수준의 지능을 달성했습니다. 특히 '사후 학습의 한계(Post-training ceiling)'를 뛰어넘어 장기적인 소프트웨어 엔지니어링 작업에 탁월한 성능을 발휘하는 것이 특징입니다.

번역된 본문

오늘 우리는 지금까지 학습한 모델 중 가장 뛰어난 성능을 자랑하는 SWE-1.7을 출시합니다. 이 모델은 훨씬 낮은 비용으로 최고 수준(frontier-level)의 지능에 도달하며, 비용 대비 성능 파레토 곡선(Pareto curve)을 한 단계 더 발전시켰습니다. SWE-1.7은 당사의 강화학습(RL) 파이프라인 전반에 걸친 광범위한 개선 결과입니다. 더 나아진 인프라, 안정적인 학습, 고품질 데이터, 그리고 장기적 작업(long-horizon tasks)을 위한 새로운 기법들이 적용되었습니다.

SWE-1.7은 이미 광범위한 강화학습 사후 학습(RL post-training)을 거친 Kimi K2.7 베이스 모델을 기반으로 학습되었습니다. 따라서 당사의 자체 학습을 통해 얻은 추가적인 성능 향상은 '사후 학습의 한계(post-training ceiling)'라는 통념에 반하며, 강화학습이 이전에 생각했던 것보다 모델의 능력을 훨씬 더 끌어올릴 수 있음을 시사합니다. Cognition(코그니션)은 FrontierCode 1, 2를 통한 평가 단계와 SWE-1.7을 통한 학습 단계에서 훌륭한 에이전트 기반 소프트웨어 엔지니어링(agentic software engineering)을 위한 원칙을 정립하고 다듬어 왔습니다. 당사의 모델은 고품질 소프트웨어 엔지니어링의 핵심 요소인 더 긴 호라이즌의 비동기식 작업에 특화되어 최적화되었습니다.

SWE-1.7은 오늘부터 Cerebras를 통해 1000 TPS(초당 토큰) 속도로 Devin(웹, 데스크톱, CLI)에서 사용할 수 있습니다. 직접 사용해 보시기를 권장합니다! 이 글의 나머지 부분에서는 SWE-1.7을 학습시킨 방법, 즉 모델 개발 과정의 인프라, 알고리즘 및 데이터 작업을 다룹니다. 두드러지는 4가지 핵심 구성 요소를 설명해 드릴 것입니다.

엔트로피 보존 및 학습 안정화(Preserving entropy and stabilizing training): 긴 강화학습(RL) 실행은 두 가지 어려운 문제에 직면합니다. 바로 엔트로피 붕괴(entropy collapse)와 학습 및 추론 간의 수치적 드리프트(drift)로 인한 불안정성입니다. 우리는 이러한 문제의 원인을 추적하여 해결함으로써, 과거의 실행이 정체되었던 지점을 훨씬 넘어서도록 학습을 지속적으로 개선했습니다.

멀티 클러스터 학습 및 내결함성(Multi-cluster training and fault tolerance): 강화학습에는 모든 추론 컴퓨팅이 하나의 클러스터에 있을 필요가 없습니다. 우리는 3개 대륙에 걸친 클러스터에서 학습을 진행하고, 객체 스토리지를 통해 가중치 업데이트를 전송하며, 하드웨어 오류가 학습 실행을 중단시키지 않도록 내결함성을 구축했습니다.

고품질 데이터 큐레이션(Curating high-quality data): 각 작업을 자동화된 실행 테스트를 거치게 하고, 학습 신호가 낮은 작업은 필터링하며, 보너스 해킹(reward-hacking)을 방지하기 위해 작업을 더욱 견고하게 만드는 광범위한 데이터 품질 파이프라인을 구축했습니다.

장기적 작업을 위한 자기 압축(Self-compaction for long-horizon tasks): 모델이 자신의 작업 상태를 요약하고 해당 요약본부터 다시 시작하도록 학습함으로써, 원래의 컨텍스트 창(context window) 한계를 넘어 작업 범위를 확장했습니다. 우리는 정확도를 희생하지 않으면서도 간결한 출력을 장려하기 위해 교차 길이 페널티(alternating length penalty)를 사용합니다.

마지막으로, 당사의 학습 설정 결과 모델이 습득한 신중한 탐색과 간결한 추론과 같은 흥미로운 행동 경향에 대한 관찰 결과를 공유하며 글을 맺겠습니다.

엔트로피 보존 및 학습 안정화 우리는 학습의 안정성이 대규모 환경에서 예측 가능한 성능 향상을 이끄는 핵심 요소임을 발견했습니다. 비동기식 강화학습(Asynchronous RL)으로 학습할 때 직면한 가장 심각한 문제 중 하나는 학습 정책과 샘플링 정책이 보통 다르기 때문에 발생하는 추론과 학습 간의 KL 발산(KL divergence) 불일치 문제였습니다. 과거에는 (소규모에서나) 이를 수정하기 위해 중요도 샘플링(importance-sampling) 기법과 NVFP4 전문가 라우팅 재생(experts routing replay)을 위한 저정밀 롤아웃(low-precision rollouts) 대상 양자화 인식 학습(quantization-aware training)을 사용했습니다. 여기서는 규모가 커짐에 따라 더욱 중요해지는 추가적인 개입 조치를 소개합니다.

우리는 Top-p 샘플링이 엔트로피 붕괴(강력한 모델이 탐색을 멈추고 수백 단계 내에서 보상이 정체되는 현상)를 막는 데 크게 기여한다는 사실을 발견했습니다. 확률이 매우 낮은 토큰들은 종종 궤도를 이탈하거나 분포를 벗어난 궤적(trajectories)의 일부입니다. 이러한 궤적은 낮은 보상을 생성할 가능성이 높으며, 소프트맥스(softmax) 함수의 특성상 이 토큰들이 토큰 확률 분포를 날카롭게(sharpening) 만듭니다. 실제로, 확률이 가장 높은 토큰 x1과 차선인 x2가 있고, 낮은 보상을 초래하는 낮은 확률의 토큰3(x3)이 있다고 가정해 봅시다. 만약 토큰 3을 샘플링하게 되면, 소프트맥스 확률 수식의 특성상 해당 토큰의 로그 확률(logprob)에 대한 그래디언트가.

원문 보기
원문 보기 (영어)
Today, we’re launching SWE-1.7, the most capable model we’ve trained so far. It reaches frontier-level intelligence at a much lower cost, advancing the cost-performance Pareto curve. SWE-1.7 is the result of broad improvements across our RL pipeline: better infrastructure, more stable training, higher-quality data, and new techniques for long-horizon tasks. Since SWE-1.7 was trained from a Kimi K2.7 base, which had already undergone extensive RL post-training, the large additional gains from our own training challenge the idea of a ‘post-training ceiling’ and suggest that RL can push capabilities much further than previously believed. At Cognition, we have been formulating and refining principles for good agentic software engineering both in evaluation, with FrontierCode 1 , 2 , and now in training, with SWE-1.7. Our model is particularly optimized for longer-horizon asynchronous tasks, an important component of high-quality software engineering. SWE-1.7 is available today in Devin ( Web , Desktop , and CLI ) via Cerebras at 1000 TPS. We encourage you to try it for yourself! The rest of this post covers how we trained SWE-1.7: the infrastructure, algorithms, and data work behind our model. We cover four important components that stand out. Preserving entropy and stabilizing training: Long RL runs face two challenging problems: entropy collapse, and instability due to numerical drift between training and inference. We hunted down and addressed causes of each, which enabled training to keep improving well past where earlier runs stalled. Multi-cluster training and fault tolerance: RL doesn’t need all of its inference compute in one cluster. We trained on clusters across three continents, shipped weight updates through object storage, and built fault tolerance so that hardware failures never stalled the run. Curating high-quality data: We built an extensive data-quality pipeline that runs each task through automated execution tests, filters out tasks with low learning signal, and hardens tasks to prevent reward-hacking. Self-compaction for long-horizon tasks: The model learns to summarize its working state and resume from the summary, extending task horizons past the raw context window. We use an alternating length penalty to incentivize concise output without sacrificing correctness. Finally, we conclude by sharing some observations on interesting behavioral tendencies, such as careful exploration and concise reasoning, that the model acquired as a result of our training setup. Preserving Entropy and Stabilizing Training # We found training stability to be a key contributor to predictable improvement at scale. When training with asynchronous RL 3 , one of the most problematic issues we encountered was the KL divergence mismatch between inference and training 4 , since the trainer policy is usually different from the sampling policy. In the past, to correct for this (albeit at smaller scale), we used importance-sampling 5 and quantization-aware training for low-precision rollouts in NVFP4 + experts routing replay 6 , 7 . Here we present additional interventions that become more important at larger scale. We find that top-p sampling 8 contributes significantly to staving off entropy collapse 9 , 10 , where a strong model stops exploring and reward plateaus within a few hundred steps. Very low probability tokens are often part of trajectories that have gone off track or out of distribution. These trajectories are likely to produce low reward, and properties of the softmax function lead to these tokens sharpening the token probability distribution. Indeed, suppose we have three tokens with logits x 1 > x 2 ≫ x 3 x_1>x_2\gg x_3 x 1 ​ > x 2 ​ ≫ x 3 ​ and probabilities p i = e x i e x 1 + e x 2 + e x 3 p_i = \frac{e^{x_i}}{e^{x_1} + e^{x_2} + e^{x_3}} p i ​ = e x 1 ​ + e x 2 ​ + e x 3 ​ e x i ​ ​ , where token 3 is a low probability token that leads to low reward. If we sample token 3, the gradient of its logprob with respect to the logits x 1 , x 2 , x 3 x_1, x_2, x_3 x 1 ​ , x 2 ​ , x 3 ​ is: ∇ log ⁡ p 3 = ∇ log ⁡ [ e x 3 e x 1 + e x 2 + e x 3 ] = [ − p 1 − p 2 p 1 + p 2 ] \nabla \log p_3=\nabla\log \left[\frac{e^{x_3}}{e^{x_1}+e^{x_2}+e^{x_3}}\right]= \begin{bmatrix} -p_1 \\ -p_2 \\ p_1+p_2 \end{bmatrix} ∇ lo g p 3 ​ = ∇ lo g [ e x 1 ​ + e x 2 ​ + e x 3 ​ e x 3 ​ ​ ] = ​ − p 1 ​ − p 2 ​ p 1 ​ + p 2 ​ ​ ​ and the policy gradient update to the logits is Δ x i ∝ A ^ ∇ log ⁡ p 3 \Delta x_i \propto \hat{A}\ \nabla \log p_3 Δ x i ​ ∝ A ^ ∇ lo g p 3 ​ , where A ^ \hat{A} A ^ is the advantage of the sampled token. Since this trajectory earns low reward, A ^ < 0 \hat{A} < 0 A ^ < 0 and the updates are Δ x 1 ∝ ∣ A ^ ∣ p 1 , Δ x 2 ∝ ∣ A ^ ∣ p 2 , Δ x 3 ∝ − ∣ A ^ ∣ ( p 1 + p 2 ) . \Delta x_1 \propto |\hat{A}| \, p_1, \qquad \Delta x_2 \propto |\hat{A}| \, p_2, \qquad \Delta x_3 \propto -|\hat{A}| \, (p_1+p_2). Δ x 1 ​ ∝ ∣ A ^ ∣ p 1 ​ , Δ x 2 ​ ∝ ∣ A ^ ∣ p 2 ​ , Δ x 3 ​ ∝ − ∣ A ^ ∣ ( p 1 ​ + p 2 ​ ) . In these updates, x 3 x_3 x 3 ​ is penalized, and x 1 x_1 x 1 ​ grows more than x 2 x_2 x 2 ​ . Sampling x 3 x_3 x 3 ​ therefore widens the lead of the already-dominant token, sharpening the distribution and decreasing entropy. Top- p p p sampling prevents these low probability tokens from being sampled and used as optimization targets in the first place! This entropy-preservation effect makes top- p p p sampling desirable in our rollouts. But naively implementing top- p p p clearly increases the training-inference mismatch — the trainer computes probabilities as a selection from all tokens, while rollouts sample from the top- p p p subset, so the distributions have higher divergence, leading to collapse after a small number of steps. Thus, we implement sampling distribution replay 11 , where we record a kept-set of tokens available for sampling at rollout time, and renormalize probabilities with those masks in the trainer. With this fix, our run’s entropy stays roughly constant over the course of training and inference-training divergence stays bounded. Another interesting result of using top-p sampling replay is a targeting of only tokens with p < top_p_threshold p < \text{top\_p\_threshold} p < top_p_threshold . Tokens with probability above the threshold have a keepset of size 1, so their renormalized probability distribution is a constant 1, and gradients are zeroed out. We found empirically that a large fraction of the tokens sampled by the model are above standard top-p thresholds, so they are excluded from the overall gradient computation. This reduces gradient noise and lets the optimization algorithm focus on the high-learning signal tokens in the trajectory. We also find benefits from using the Muon optimizer 12 and eliminating non-deterministic operations in the trainer. Multi-cluster Training # Cognition is a fast-growing research lab entering an established landscape that is heavily compute-constrained. We aim to train trillion-parameter models, but today, large clusters with 10-100k chips on a single network fabric are a scarce resource. In contrast, smaller clusters around the world are abundant, if used together correctly. In this setting, the structure of RL works in our favor. RL decomposes naturally across multiple clusters. Only the trainer must live on a single high-bandwidth cluster. The inference engines that generate rollouts are self-contained. They can run anywhere and need nothing but the current weights. We invested in infrastructure that makes use of this property. Our RL training spans four datacenters across three continents, combining our own GPUs across multiple clusters with additional compute from inference providers like Fireworks. The result is that we can scale RL training far beyond what any single cluster would allow. The central challenge in this setup is keeping all inference engines up to date with the trainer weights after each optimizer step. We want these weight updates to be fast to reduce staleness of trajectories so we c