Explore the research collection
1 entry · Follow this search
- Paper
Extending SWE-2's Reward Function to Steer the Pareto Frontier
Extension of Cognition's SWE-2 RL reward function R = S - lambda^(e) C. SWE-2's 'slope-matched penalty' sets lambda^(e) to the slope of the base model's Pareto curve, which pushes the frontier but is unopinionated about where on the frontier the model lands (all points on an iso-reward line earn equal reward). This work steers the direction of improvement with a tradeoff parameter alpha in [0,1]: maximizing tau subject to u_e(pi) >= alpha*tau and v_e(pi) >= (1-alpha)*tau, where u_e, v_e are relative success/cost improvements. Reformulating max_pi min_beta of a weighted Lagrangian gives the same SWE-2-form reward with lambda as a function of beta, yielding the per-RL-step update log lambda^(e) <- log lambda_prev^(e) + eta[(1-alpha) u_e_hat - alpha v_e_hat]: raise lambda when success gains exceed the alpha mix, lower it when cost savings do. On a constructed toy family of effort-adjustable RL tasks (100 problems, 5 trainable parameters, closed-form Pareto curve), each alpha's median improvement direction lands within 1 degree of its target; fixed lambda increases both success and cost.