Skip to content

Add Arena-Hard v2.0 with pairwise judging and style control - #474

Merged
gregorybchris merged 1 commit into
mainfrom
chrisg/arena-hard-v2
Oct 17, 2026
Merged

gregorybchris merged 1 commit into
mainfrom
chrisg/arena-hard-v2

Conversation

@gregorybchris

@gregorybchris gregorybchris commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

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) against o3-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 against gemini-2.0-flash-001. The primary metric is the plain win rate, which is what upstream reports for this category.
  • arena_hard_v2 suite, display-only, because the two categories use different baselines.

Questions and baseline answers load from lmarena-ai/arena-hard-auto at a pinned revision. The judge is gpt-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.py reproduces the constants and checks the approximation.

  • Our style counts match upstream's stored metadata on all 750 baseline answers. The length uses the same tokenizer (o200k_base).
  • On hard prompts, the joint fit reproduces upstream's published GPT-4.1 style-controlled leaderboard within about 1 point. The gap comes from upstream reporting a bootstrap median from an LBFGS fit.
  • The single-model fit stays close to the joint fit when each model is held out of the constants: within 0.8 points on hard prompts (mean 0.24) and within 2.5 points on creative writing (mean 0.34).
model published (GPT-4.1, SC) joint fit single-model fit
o3-2025-04-16 87.0 88.1 88.1
gpt-4.1 58.3 58.7 58.4
deepseek-r1 48.0 48.3 48.9
Qwen3-32B 35.8 35.9 35.9
Qwen3-30B-A3B 28.7 28.5 28.6
Qwen3-4B 12.6 12.2 12.2
gemma-3-27b-it 9.7 9.1 9.0

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 and OLMO_EVAL_JUDGE override, the run-wide judge limiter, retries for unparseable replies, incomplete-score handling, and truncation_rate. Arena-Hard adds only what is specific to it:

  • Two games per output, each with its own raw reply in judge_result. Both games settle before a failure is raised.
  • ArenaHardWinRateMetric, a JudgedScoreMetric that 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.
  • Battle outcomes and style features stored in judge_result, so saved predictions are enough to recompute every metric.
  • Style is measured before the judge is called, so a tokenizer problem fails fast without spending judge calls.

tiktoken becomes a core dependency, as upstream measures length with o200k_base. It was already in uv.lock through litellm. The fit script has tests in tests/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.

model hard, style-controlled (primary) hard, raw coding math creative, raw (primary) creative, style-controlled truncated (hard / creative) run
Qwen3-4B 13.3 15.2 10.5 21.2 15.5 12.7 2.0% / 0.8% beaker
Olmo-3-7B-Instruct 3.6 11.0 7.2 15.1 14.0 14.7 0.2% / 0% beaker
Olmo-3-7B-Think 7.9 9.5 6.1 13.6 25.4 20.7 1.8% / 2.8% beaker

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_together helper and judge test stubs. #476 also made the judge limiter count each judge call, so scoring_concurrency now 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

uv run olmo-eval beaker launch \
  -n arena-hard-v2-qwen3-4b \
  -m Qwen/Qwen3-4B \
  -t arena_hard_v2 \
  -p urgent -c ai2/saturn \
  -w ai2/oe-olmo3p5-eval -B ai2/oe-other \
  --no-follow

The judge needs OPENAI_API_KEY, which the launcher mounts from the Beaker secret <user>_OPENAI_API_KEY.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes)

Testing

  • Unit tests pass locally (pytest tests/ --ignore=tests/integration/)
  • Integration tests pass (if applicable)
  • New tests added for new functionality

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have added/updated documentation as needed
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

🤖 Generated with Claude Code

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
gregorybchris merged commit 7915325 into main Oct 17, 2026
8 checks passed
@gregorybchris
gregorybchris deleted the chrisg/arena-hard-v2 branch October 17, 2026 03:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant