Repository navigation
strip_thinking: keep the post-trace text verbatim, as oe-eval does - #363
Conversation
The runner's strip trimmed leading whitespace after </think>, which oe-eval's r1_style processor does not. IFEval's loose variants drop the response's first line, and paragraph checks index on blank-line splits, so trimming the leading newline changed verdicts: on the paper's Olmo-3-7B-Think ifeval run, agreement with oe-eval fell from 539/541 to 528/541, with 12 rows flipping a loose verdict to pass. Reuse extract_think_answer, which mirrors r1_style including <answer> tags. Co-Authored-By: Claude Fable 5.1 <[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. |
|
I realized maybe I should have run an agent review on your previous strip_thinking PR, so I did that after you merged and Claude had a pretty long writeup. The thing about BPB sounded plausible as something worth fixing. Same with the task hash. I think you could consider these out of PR scope or pull fixes into this PR or tell me that these are not real concerns.. but wanted to add them here in case helpful. |
Emit strip_thinking in TaskConfig.to_dict only when set, so task hashes of runs that never used the option are unchanged from before the field existed. Replace the greedy (?s).*</think> regex in extract_think_answer with rpartition: the regex backtracks quadratically on long answers (1.2 s at 50k chars, 3.9 s at 100k) and runs on the scoring event loop. Drop the dead metadata guard and document what the strip does and does not touch. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LMFjgUqHjQA3aCeB4QmEHZ
finalize_task only runs for errored trackers; the production path is score_and_store inside process_results, which had no strip coverage. 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 Thanks — went through all ten against the code. Verdicts and where each landed: Pulled into this PR
Split out
|
Follow-up to #361, toward #348. The runner's strip did
.lstrip()after removing the trace; oe-eval'sr1_styleprocessor keeps the post-</think>text byte-for-byte (and removes<answer>tags). The trim is not cosmetic for IFEval: the loose variants drop the response's first line — with the leading newline kept that line is empty, with it trimmed it's real content — andnth_paragraph_first_wordindexes paragraphs before dropping empty ones.Measured on the paper's Olmo-3-7B-Think
ifevalrun (Beaker results01KAD4RGRYERJZY4SHEPXYPBX4, 541 prompts), scoring the raw outputs through the runner transform thenIFEvalScorer:r1_style(this PR).lstrip())The 12 extra disagreements all flip a loose verdict to pass (
keywords:forbidden_words×4,nth_paragraph_first_word×3,repeat_prompt,two_responses,no_comma,number_words,keywords:frequency), so the merged behavior inflates Think-model IFEval loose scores by ~2 points relative to oe-eval. Instruct-model runs (no trace) are unaffected.Change:
strip_thinking_tracesnow reusesextract_think_answer, the existing regex-for-regex mirror ofr1_style. Tests adapted for the preserved whitespace; two added (verbatim text,<answer>tags).🤖 Generated with Claude Code
https://claude.ai/code/session_01LMFjgUqHjQA3aCeB4QmEHZ