Validate targeted adaptive stopping with stored comparisons#54
Merged
Conversation
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
Read-only, pinned counterfactual validation of the targeted adaptive strategy introduced in #53. No judge calls are made by the replay and no production behavior changes.
The evidence package now includes:
Two independent 14-model boards
On both boards, adaptive strategies exhaust all ten sample batches. Savings come from allocating fewer pairs, not meeting the stopping criteria early. No targeted-v2 variant passes the original fidelity/savings gate.
Page-clustered finding
The full MOH board itself has:
At a fixed 40% budget, pair-balanced/mixed-random allocation preserves 98.4%/98.3% of robust pair directions, but top-3 membership agreement is only 47.4%/37.2%. The leaders are not stably ordered across page samples even when every comparison is used. This is not a stopping-threshold problem.
Across the smaller boards, fixed 40% subsampling preserves robust decisions when the full reference board is already stable and fails when the full board is itself under-resolved. Pair-balanced and mixed-random allocation do not consistently dominate one another.
Recommendation
Keep
targetedopt-in andbalancedas default. Do not proceed to a live targeted trial or implement the tested variants. Keep the 3× rule post-hoc only.The evidence is sufficient to stop allocation tuning. A separate future design issue can consider page-clustered uncertainty, rank tiers, or robust pairwise relations instead of presenting exact ordering among unstable leaders. This experiment PR should not change production behavior directly.
No production bug was found.
Artifacts
experiments/adaptive-stopping/README.mdexperiments/adaptive-stopping/replay.pyexperiments/adaptive-stopping/multi_board.pyexperiments/adaptive-stopping/moh/README.mdtests/test_adaptive_replay_experiment.pyPublished MOH reference: https://huggingface.co/datasets/davanstrien/ocr-bench-moh-results
Validation
uv run pytest tests/ -q— 605 passeduv run ruff check src/ tests/ experiments/adaptive-stopping/*.pyuv run ruff format --check experiments/adaptive-stopping/*.py tests/test_adaptive_replay_experiment.pyuv run ty check src/ experiments/adaptive-stopping/*.py