Add opt-in targeted adaptive judging and size-aware stopping#53
Merged
Conversation
Owner
Author
|
Addressed the review in
Added regressions for retired/subset and all-sentinel history preservation, checkpoint preservation, fail-closed Hub reads, and missing-CI behavior. Validation: 594 tests, Ruff, ty, and CI all green. |
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
The current adaptive loop checks for convergence every five pages, but keeps judging the full all-pairs grid until every adjacent CI separates. On a 14-model run that means up to 91 pairs per page batch, so persistent near-ties can turn “adaptive” mode into almost the full benchmark.
This PR adds an opt-in targeted strategy while preserving the historical balanced default:
Targeted allocation
adaptive_strategyin results metadatabalancedas the default while the sparse strategy is validatedSize-aware practical stopping
--size-tie-ratio RATIOtreats an overlapping adjacent pair as a practical smaller-model preference when one model has at least that parameter advantagebalanced, whiletargetedalso stops topping up the pair--size-tie-min-samples Nrequires direct pair evidence first (default: 10)Resume, history, and compatibility hardening
benchforwards the new options.Validation
pytest tests/ -q— 594 passedruff check src/ tests/ty check src/Closes #35.