From 9f72902a3a36bb185ced14c129eb703a601e424f Mon Sep 17 00:00:00 2001 From: Niels Rogge Date: Mon, 23 Nov 2026 11:16:44 +0000 Subject: [PATCH] Keep auto-matched leaderboard model names stable across runs The matcher named an effort-suffixed entry after its base model when only the base resolved, and after the full upstream name once an alias for the full name existed. Rows are keyed by model name, so the flip created a second row for the same upstream entry on CritPt, CritPt v2 and Terminal-Bench-Science. The matcher now always returns the catalog name without the effort setting. The three Artificial Analysis boards, whose reviewed names keep the setting, use the upstream name instead. The engine renames a managed row in place when its entry label resolves to a new model name, so any future rename reuses the row instead of duplicating it. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/scripts/README.md | 6 +- backend/services/carbon_board_syncs.py | 3 + .../leaderboard_model_matching_service.py | 15 ++++- backend/services/live_leaderboard_sync.py | 30 ++++++++- .../evaluation/test_carbon_board_syncs.py | 66 +++++++++++++++++++ 5 files changed, 114 insertions(+), 6 deletions(-) diff --git a/.github/workflows/scripts/README.md b/.github/workflows/scripts/README.md index a5ba520d5..6f1991cf0 100644 --- a/.github/workflows/scripts/README.md +++ b/.github/workflows/scripts/README.md @@ -506,7 +506,11 @@ implausible row count) and hands the rows to the shared single-metric engine in identities in `backend/services/carbon_board_identities.py`; other names are auto-matched or handed to the release radar, and a board's `excluded` names (partial runs, non-standard setups) are skipped. The engine keeps one row per -catalog model and harness (the best upstream setting), adopts hand-imported +catalog model and harness (the best upstream setting); the three Artificial +Analysis boards set `effort_in_model_name` and keep one row per upstream name +with its effort setting, as their reviewed names do. A managed row whose model +name changes is renamed in place, found by the entry label in its methodology. +The engine adopts hand-imported rows for the same model, never creates papers, and reports managed rows that leave the leaderboard instead of deleting them. diff --git a/backend/services/carbon_board_syncs.py b/backend/services/carbon_board_syncs.py index a43cb5011..9840b8002 100644 --- a/backend/services/carbon_board_syncs.py +++ b/backend/services/carbon_board_syncs.py @@ -744,6 +744,7 @@ def _fetching( url=CRITPT_URL, task_slug="scientific-reasoning", dataset_slug="critpt", + effort_in_model_name=True, metric="Accuracy", identities=IDENTITIES["critpt"], min_selected=10, @@ -759,6 +760,7 @@ def _fetching( url=CRITPT_V2_URL, task_slug="scientific-reasoning", dataset_slug="critpt-v2", + effort_in_model_name=True, metric="Accuracy", identities=IDENTITIES["critpt-v2"], min_selected=10, @@ -773,6 +775,7 @@ def _fetching( url=TERMINAL_BENCH_SCIENCE_URL, task_slug="scientific-reasoning", dataset_slug="terminal-bench-science-0-1", + effort_in_model_name=True, metric="Accuracy", identities=IDENTITIES["terminal-bench-science-0-1"], min_selected=10, diff --git a/backend/services/leaderboard_model_matching_service.py b/backend/services/leaderboard_model_matching_service.py index 34fc3bb27..0e54f910d 100644 --- a/backend/services/leaderboard_model_matching_service.py +++ b/backend/services/leaderboard_model_matching_service.py @@ -54,6 +54,15 @@ class MatchedModel: ) +def catalog_name(name: str) -> str: + """The catalog model a leaderboard name denotes, without its effort setting. + + A matched model gets this name whether the full leaderboard name or only + its base resolved, so an alias recorded later never renames it. + """ + return _EFFORT_SUFFIX.sub("", name) + + _FAMILY_LABS = ( (re.compile(r"(?:claude|opus|sonnet|haiku)\b", re.I), "Anthropic"), (re.compile(r"(?:gpt|chatgpt|codex)\b|o\d+(?:\b|-)", re.I), "OpenAI"), @@ -161,19 +170,19 @@ def match(self, models: list[LeaderboardModel]) -> dict[str, MatchedModel]: self._alias_matches([name for name in names if name not in releases]) ) matched = { - name: MatchedModel(release.paper_id, name, release.is_open) + name: MatchedModel(release.paper_id, catalog_name(name), release.is_open) for name, release in releases.items() } for name in names: if name not in matched and (paper_id := announcing_paper_id(self.db, name)): hf_model_url = self._weights_url(paper_id, name) matched[name] = MatchedModel( - paper_id, name, hf_model_url is not None, hf_model_url + paper_id, catalog_name(name), hf_model_url is not None, hf_model_url ) bases = { name: base for name in names - if name not in matched and (base := _EFFORT_SUFFIX.sub("", name)) != name + if name not in matched and (base := catalog_name(name)) != name } if bases: base_matches = self.match( diff --git a/backend/services/live_leaderboard_sync.py b/backend/services/live_leaderboard_sync.py index bd3289110..19619a8db 100644 --- a/backend/services/live_leaderboard_sync.py +++ b/backend/services/live_leaderboard_sync.py @@ -65,6 +65,10 @@ class LiveLeaderboard: Several boards may share a benchmark when each publishes its own metric (Physics-IQ Verified's I2V and V2V tracks): a board only reads and writes rows that carry its metric. + + An auto-matched entry is named after its catalog model, so the settings of + one model share a row; ``effort_in_model_name`` keeps the upstream name + with its effort setting instead, for boards whose reviewed names do. """ source: str @@ -79,6 +83,7 @@ class LiveLeaderboard: model_name_suffix: str = "" excluded: dict[str, str] = field(default_factory=dict) adopt_unmanaged: bool = True + effort_in_model_name: bool = False @property def managed_prefix(self) -> str: @@ -94,6 +99,13 @@ def managed_head(self) -> re.Pattern[str]: re.DOTALL, ) + @property + def managed_label(self) -> re.Pattern[str]: + """Match a managed methodology, capturing the upstream entry label.""" + return re.compile( + f'{re.escape(self.managed_prefix)} Official leaderboard entry "(?P