Repository navigation
Add MMLU chain-of-thought tasks (post-training regime) - #339
Conversation
Registers mmlu_{subject}:cot for all 57 subjects plus an mmlu:cot suite,
mirroring oe-eval's mmlu_{sub}:cot::hamish_zs_reasoning_deepseek: 0-shot
chat, per-subject description asking for concise reasoning then
"Therefore, the answer is: X", temp 0.6 / top-p 0.95, and answer
extraction through the shared OLMO 3 regex-template cascade.
The base mmlu_{subject} tasks score by continuation log-probability,
which measures multiple-choice ranking rather than reasoning, so the CoT
regime needs its own doc processing and lives in a separate module.
Prompts and gold letters verified byte-identical to oe-eval's own code on
3,207 real docs across 7 subjects (abstract_algebra, anatomy,
high_school_mathematics, professional_law, world_religions,
moral_scenarios, college_physics); scorer verdicts identical on 56
synthetic responses run through oe-eval's ExactMatch metric.
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01B9VUctQuzfAtrdpk4wDjEx
Follows the answer-extraction module's move to evals/extract in the base branch. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LMFjgUqHjQA3aCeB4QmEHZ
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
|
||
| _ANSWER_REGEXES = (r"\(?([A-D])\)?",) | ||
|
|
||
| _COT_SAMPLING = SamplingParams( |
There was a problem hiding this comment.
I believe in oe-eval all post-training evals were actually run with an override of 32768 max_tokens – Saumya would know for sure (not blocking, we can always run with an override)
There was a problem hiding this comment.
Claude Code · https://claude.ai/code/session_01LMFjgUqHjQA3aCeB4QmEHZ
You're right about the number: the Olmo 3 release scripts pass --oe_eval_max_length 32768 (open-instruct scripts/train/olmo3/7b_instruct_rl.sh, olmo-hybrid/7b_release_evals.sh), and oe-eval.sh feeds that one value to both the model max_length and max_gen_toks with truncate_context: false — so the effective budget was "until the context is full". max_tokens=None is olmo-eval's expression of exactly that (vLLM natively; OlmoCoreProvider._resolve_max_tokens), so serving with max_model_len=32768 reproduces the published budget with no per-task override. Same convention as gpqa:cot, popqa, omega_500.
| ) | ||
|
|
||
|
|
||
| def _mcq_query(question: str, choices: list[str]) -> str: |
There was a problem hiding this comment.
I think MCQAChatFormatter from the formatters has the same functionality if we want to stay centralized
There was a problem hiding this comment.
Claude Code · https://claude.ai/code/session_01LMFjgUqHjQA3aCeB4QmEHZ
Close but not byte-identical: MCQAChatFormatter renders (A) text blocks separated by blank lines, while oe-eval's hamish_zs_reasoning MMLU CoT (make_mcq_prompt) renders Question: …\n A. text\n B. text\n under the per-subject description — which is what this task reproduces; prompts were verified byte-identical to oe-eval on 3,207 docs across 7 subjects. Switching would break that, so kept the task-local builder. A centralized option for oe-eval's letter style would be a reasonable follow-up.
There was a problem hiding this comment.
Makes sense! We probably should discuss unified task formatting as a follow up at some point
|
I left a few comments but this overall looks good to me! I think running a couple of full parity tests is definitely worth it – we could make it cheaper by running some of the baselines (both for reasoning and non-reasoning models) from the Olmo3 paper and just comparing against those numbers – I can help find exact beaker jobs and their metrics if useful! |
Set the task's answer_extractor to the shared cascade and score with MultipleChoiceScorer, replacing the task-specific scorer and extract_answer override (review: mgmorgan23). Convert the tests to plain pytest functions to match the rest of the suite (review: gregorybchris). Cross-reference extract/mcq.py and extract/answer_format.py so it is clear which extractor is oe-eval-compatible. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LMFjgUqHjQA3aCeB4QmEHZ
Thanks for the review. I found the paper's oe-eval mmlu:cot runs in ai2/tulu-3-results (…-PAPER-run{1,2,3}-on-mmlu-cot-hamish_zs_reasoning_deepseek): Olmo-3-7B-Think (fixed-systemprompt runs), Olmo-3-32B-Instruct, and Olmo-3.1-32B-Think, 3 seeds each. For Olmo-3-7B-Instruct I only see the SFT and DPO stage runs — was the final RL model's mmlu:cot run under a different name, or should I use the DPO ones? If the Think and 32B jobs look right to you, I'll run the paired check against those. |
oe-eval's reasoning-model runs apply a model-level r1_style processor that removes everything through </think> before scoring; without the same step, letters mentioned while thinking reach the fallback regexes. Verified against the paper's Olmo-3-7B-Think mmlu:cot generations: 14,042/14,042 verdicts agree with stripping, 13,910 without. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LMFjgUqHjQA3aCeB4QmEHZ
|
Claude Code · https://claude.ai/code/session_01LMFjgUqHjQA3aCeB4QmEHZ Paired parity against the paper's oe-eval run — Olmo-3-7B-Think,
One real gap surfaced: the paper runs use oe-eval's model-level Also: the PAPER runs' model config has |
|
Those parity checks look right to me! LGTM to merge |
Registers
mmlu_{subject}:cotfor all 57 subjects plus anmmlu:cotsuite, mirroring oe-eval'smmlu_{sub}:cot::hamish_zs_reasoning_deepseek(the OLMO_3 suite entry): 0-shot chat, per-subject description requesting concise reasoning thenTherefore, the answer is: X, temp 0.6 / top-p 0.95, extraction via the shared OLMO 3 regex-template cascade.Why a separate module rather than a variant: the base
mmlu_{subject}tasks score by continuation log-probability, which measures MCQ ranking rather than reasoning, so the CoT regime needs different doc processing entirely — same split asgpqa:cot.Verification (CPU, against oe-eval's own code):
evals/extract/ExactMatchmetricParity: scored the paper's Olmo-3-7B-Think oe-eval generations (14,042 instances, 57 subjects) through this task: prompts identical to the logged requests, 14,042/14,042 verdicts agree, macro suite score 0.764283 reproduced. Reasoning inside
<think>is stripped before extraction, matching oe-eval's model-levelr1_styleprocessing (#348).Replaces #321, which GitHub closed automatically when its base branch (
task/add-gpqa-cot, #309) was deleted on merge. Same commits, rebased ontomain.🤖 Generated with Claude Code
https://claude.ai/code/session_01LMFjgUqHjQA3aCeB4QmEHZ