Repository navigation
Add Arena-Hard v2.0 with pairwise judging and style control - #474
Merged
Merged
Conversation
gregorybchris
marked this pull request as draft
October 14, 2026 23:39
gregorybchris
force-pushed
the
chrisg/arena-hard-v2
branch
from
October 16, 2026 20:42
b719c9c to
b33a0dc
Compare
This was referenced Oct 16, 2026
gregorybchris
force-pushed
the
chrisg/arena-hard-v2
branch
from
October 17, 2026 03:20
b33a0dc to
8720cd5
Compare
gregorybchris
marked this pull request as ready for review
October 17, 2026 03:21
Adds arena_hard_v2:hard_prompt (500 prompts against o3-mini, style-controlled win rate) and arena_hard_v2:creative_writing (250 prompts against Gemini 2.0 Flash, plain win rate), plus the arena_hard_v2 suite. Questions and baseline answers load from a pinned revision of lmarena-ai/arena-hard-auto. The judge is gpt-4.1-2025-04-14 with upstream's prompts. The tasks build on the shared JudgedTask base. Style control freezes the style coefficients from upstream's joint GPT-4.1 fit and fits only the evaluated model's strength. scripts/internal/fit_arena_hard_style_model.py reproduces the constants. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
gregorybchris
force-pushed
the
chrisg/arena-hard-v2
branch
from
October 17, 2026 03:28
8720cd5 to
323b86a
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.
Description
Adds Arena-Hard-Auto v2.0, an open-ended chat-quality eval scored as a win rate against a fixed baseline model.
arena_hard_v2:hard_prompt: 500 hard prompts (253 coding, 247 math) againsto3-mini-2025-01-31. The primary metric is the style-controlled win rate, which is upstream's recommended configuration.arena_hard_v2:creative_writing: 250 creative-writing prompts againstgemini-2.0-flash-001. The primary metric is the plain win rate, which is what upstream reports for this category.arena_hard_v2suite, display-only, because the two categories use different baselines.Questions and baseline answers load from
lmarena-ai/arena-hard-autoat a pinned revision. The judge isgpt-4.1-2025-04-14, the snapshot behind upstream's GPT-4.1 leaderboard. It runs at temperature 0 with upstream's prompts, verbatim. Each response is judged twice, once in each answer position. Decisive verdicts count three times, as upstream weights them. A judge failure is recorded as an incomplete score and left out of the metrics, following HLE.Style control without a reference pool
Upstream fits one Bradley-Terry model over every leaderboard model at once, so a model's style-controlled score depends on the pool it was fit with. This task freezes the style coefficients and feature scaling from that joint fit on upstream's published GPT-4.1 judgments, then fits only the evaluated model's strength.
scripts/internal/fit_arena_hard_style_model.pyreproduces the constants and checks the approximation.o200k_base).Passing upstream's own Qwen3-4B answers and verdicts through this task's metric code gives 12.2 style-controlled and 14.9 raw on hard prompts, matching the fit.
Built on the shared judge base
The tasks subclass
JudgedTask(evals/tasks/common/judge.py), like HLE and MultiChallenge. The base supplies the judge configuration andOLMO_EVAL_JUDGEoverride, the run-wide judge limiter, retries for unparseable replies, incomplete-score handling, andtruncation_rate. Arena-Hard adds only what is specific to it:judge_result. Both games settle before a failure is raised.ArenaHardWinRateMetric, aJudgedScoreMetricthat pools weighted battles across prompts, as upstream does, and optionally applies the style model. The style constants are serialized into the task hash, so refitting them gives a new hash.judge_result, so saved predictions are enough to recompute every metric.tiktokenbecomes a core dependency, as upstream measures length witho200k_base. It was already inuv.lockthrough litellm. The fit script has tests intests/scripts/.Benchmark Results / Sanity Check
Full runs of both tasks (750 prompts), one sample per prompt, judged by
gpt-4.1-2025-04-14. Win rates are percentages against each category's baseline. No judge call failed and every verdict parsed, across all 750 outputs per model.Qwen3-4B matches upstream. Upstream publishes 12.6 style-controlled on hard prompts under the GPT-4.1 judge. Upstream's own Qwen3-4B answers, scored by this task's metric code, give 12.2 controlled and 14.9 raw. This run gives 13.3 and 15.2. The difference is within what fresh samples at temperature 0.6 should produce.
Olmo-3-7B-Instruct loses most under style control. Its hard-prompt answers are much longer than o3-mini's: the mean length contrast is 0.30, against a leaderboard average of 0.03. Style control credits that length to style, which takes the raw 11.0 down to 3.6.
Olmo-3-7B-Think leads on creative writing. It scores 25.4 raw, ahead of Qwen3-4B (15.5) and Olmo-3-7B-Instruct (14.0). On hard prompts its answers are slightly shorter than o3-mini's, so style control moves it less: 9.5 raw to 7.9.
The runs used commit
b33a0dc3. Since then the branch was rebased onto #476 (MT-Bench), and it now uses that PR's shared_judge_togetherhelper and judge test stubs. #476 also made the judge limiter count each judge call, soscoring_concurrencynow bounds both of an output's games together. That changes how calls are scheduled, not what the judge is asked or how verdicts are scored.Two scoring rules were tightened after the runs, and the table is recomputed from the saved judgments under them. A prompt the model gives no output for now counts as decisive losses; before, the pooled metrics skipped it. A response with no visible answer, such as one whose reasoning block never closed, now gets neutral style features, so style control no longer excuses its losses as those of a short answer. None of the runs had an unanswered prompt. Qwen3-4B had 9 unclosed reasoning blocks on hard prompts, which moves its style-controlled score from 13.7 to 13.3. No other number changes.
Runs used Holmes (B300) with
-H default -o provider.kwargs.attention_backend=TRITON_ATTN -e VLLM_USE_FLASHINFER_SAMPLER=0 --uv-cache-dir /tmp/uv-cache. The last flag works around slow reads from the Weka package cache on Holmes. These flags only affect where the job runs. They don't change the task.Example Run Command
The judge needs
OPENAI_API_KEY, which the launcher mounts from the Beaker secret<user>_OPENAI_API_KEY.Type of Change
Testing
pytest tests/ --ignore=tests/integration/)Checklist
🤖 Generated with Claude Code