Repository navigation
Make the counting and pointing benchmarks follow the checkpoint's prompt family too - #302
Conversation
…mpt family too
The previous commit fixed `dense_caption`. The same gap exists on every other benchmark that
builds its own question: mm_olmo's `DataFormatter` keys the `"<style>:"` prefix off the example's
*style*, not off whether the benchmark supplied a ready-made question
(`olmo/data/data_formatter.py`, styles `pointing` / `point_count` / ... under
`style_and_length`/`_v2`). So a `style_and_length_v2` checkpoint was trained on
`"point_count: how many cats?"` and `"pointing: the dog"`, and these tasks were sending the bare
question.
Only the `_mp` variants honoured the family, because they route through `build_pointing_prompt`.
The pre-built-question benchmarks did not, so `-o system_prompt_style=style_and_length_v2` was
silently inert on four of them:
pixmo_count point_count (style confirmed: PixMoCountConfig message style)
countbench_qa point_count (CountBenchQaConfig.format_example sets it explicitly)
pixmo_points_eval pointing (PixMoPointsEval config, pixmo_datasets.py:789)
sa_co_gold_subset pointing (SA-Co gold, academic_datasets.py:1766)
`system_prefix` now takes the style (defaulting to `pointing`, so existing callers are unchanged),
`apply_style_prefix` wraps a pre-built question, and `StylePrefixMixin` gives a task the same
`system_prompt_style` override the `_mp` tasks already had. Each task declares its mm_olmo style.
Backwards compatible: the default stays `demo_or_style_v2`, which adds no prefix, so every existing
run keeps its current prompts. Only an explicit `-o system_prompt_style=style_and_length*` changes
anything.
Verified: prefix resolution checked per task for the default and for `style_and_length_v2`
(`point_count: Q` / `pointing: Q`, bare by default), `dense_caption` from the previous commit still
resolves both ways, `make lint` clean (520 files), and `make type-check` back to its one
pre-existing diagnostic in `providers/olmo_core.py:219`.
Context: on a 4B Molmo2 stage-1 checkpoint the equivalent mismatch on `dense_caption` cost 7.1
recall points and turned 3.4% of caption answers into `<points .../>` markup, so this is worth
several points on the counting and pointing numbers for any pretrain checkpoint.
|
Measured the effect after merging, on the same 4B Molmo2 stage-1 checkpoint. Correcting an
Verified the prefix reaches the model: 100% of 400 sampled Plausible reason for the gap: a counting question states the task unambiguously even without the
|
Follow-up to #301, which fixed
dense_caption. The same gap exists on every other benchmark thatsupplies its own question.
mm_olmo's
DataFormatterkeys the"<style>:"prefix off the example's style, not off whetherthe benchmark supplied a ready-made question (
olmo/data/data_formatter.py: stylespointing,point_count, … understyle_and_length/_v2; nothing underdemo_or_style_v*). Only the_mpvariants honoured that, because they route through
build_pointing_prompt— so-o system_prompt_style=style_and_length_v2, the override a pretrain checkpoint is meant to pass,was silently inert on four tasks:
pixmo_countpoint_countcountbench_qapoint_countCountBenchQaConfig.format_examplesets it explicitlypixmo_points_evalpointingpixmo_datasets.py:789sa_co_gold_subsetpointingacademic_datasets.py:1766A
style_and_length_v2checkpoint was trained on"point_count: how many cats?"and"pointing: the dog"; these tasks were sending the bare question.Why it's worth fixing
On a 4B Molmo2 stage-1 checkpoint, the equivalent mismatch on
dense_caption(#301) cost 7.1recall points (38.18 → 45.28) and turned 3.4% of caption answers into
<points .../>markup,with some replies as short as three words. It presented as a model regression: two stage-1
checkpoints that looked 3–4 points apart were within 0.05 recall of each other once both were scored
correctly. The counting and pointing benchmarks have the same exposure for any pretrain checkpoint.
The change
system_prefix(system_prompt, style=POINTING_STYLE)— style-aware; the default keeps existingcallers unchanged.
apply_style_prefix(question, system_prompt, style)— prefixes a pre-built question.StylePrefixMixin— gives a task the samesystem_prompt_styleoverride the_mptasks alreadyhad; each task declares its mm_olmo
style.Backwards compatible. Defaults stay
demo_or_style_v2, which adds no prefix, so every existingrun keeps its current prompts. Only an explicit
-o system_prompt_style=style_and_length*changesbehaviour.
Verification
Prefix resolution checked per task for the default and for
style_and_length_v2(point_count: Q,pointing: Q, bare by default), and #301'sdense_captionbehaviour re-checked on top of this.make lintclean (520 files).make type-checkreports one diagnostic, pre-existing and inproviders/olmo_core.py:219— the one new diagnostic this introduced (the mixin referencingself.config) is resolved with aTYPE_CHECKINGannotation.