Cognition launches new SWE-2 model, Rivaling Fable 5.1 and GPT-Astra
Article URL: https://cognition.com/blog/swe-2 Comments URL: https://news.ycombinator.com/item?id=49645443 Points: 290 # Comments: 120
In this appendix, we prove the claim from the main text: if the RL objective only depends on average cost and solve rate, the reward must be affine in cost and success. For simplicity, we allow . The result also holds for binary success , but we omit the more involved proof for this blog.
Let denote the cost and success of a rollout and let be its reward. Recall the assumptions we made in the section above. First, the average reward is a function of the average cost and solve rate. Equivalently, there is a fixed function such that
Second, this identity holds for every distribution of supported on at most two points (in the main section above, we stated for simplicity the assumption that it holds for all distributions, but this is in fact stronger than is really needed!).
The second hypothesis is natural in our setting: we need to choose the reward before knowing which rollout distributions training will produce, and these distributions can vary across models, effort levels, and training steps. Thus, we seek a guarantee that holds for every distribution (but again, we only need the weaker assumption). We need the following simple fact.
Jensen’s functional equation. A function on a convex set satisfies
if and only if for some and .
For deterministic , the hypothesis says that , so . Now taking with probability and with probability gives
Thus satisfies Jensen’s functional equation and is affine: . Dropping the additive constant and rescaling to set leaves as desired.
Originally published on Hacker News (Best)