feat: reward-gated length shaping for correct rollouts#2169
Draft
feat: reward-gated length shaping for correct rollouts#2169
Conversation
Replace GR³ multiplicative length scaling (applied to all rollouts, gated on online difficulty filtering) with a simpler approach: attenuate correct rollout rewards by L_min/L_i, where L_min is the shortest correct completion per problem. Incorrect rollouts are untouched. - No hyperparameter needed (was `length_shaping_alpha`, now `length_shaping: bool`) - No dependency on online difficulty filtering - Shortest correct rollout keeps reward=1, longer ones get proportionally less Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
ba1aef7 to
fac1a2c
Compare
…", "gr3") Both length shaping strategies are now available via a single config field: - length_shaping = "off" (default): no length shaping - length_shaping = "brevity_bonus": reward-gated L_min/L_i (correct rollouts only) - length_shaping = "gr3": GR³ multiplicative (1 + alpha * L_i/L_mean)^-1 (all rollouts) length_shaping_alpha controls the GR³ coefficient (default 0.33, only used with "gr3"). Replaces the old length_shaping_alpha-only API and removes the ODF coupling. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
fac1a2c to
c8ebf0c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
L_min / L_i, whereL_minis the shortest correct completion per problemlength_shaping_alpha: floatin favor oflength_shaping: bool(no hyperparameter needed) and drop the online difficulty filtering requirementBreaking changes
orchestrator.advantage.length_shaping_alpha→orchestrator.advantage.length_shaping(float|None → bool)length_shapingno longer requiresonline_difficulty_filtering = true🤖 Generated with Claude Code