Skip to content

feat(metadata): add dataset and license vocabularies - #178

Merged
KartikP merged 1 commit into
mainfrom
kp/metadata-vocabularies
Oct 8, 2026
Merged

KartikP merged 1 commit into
mainfrom
kp/metadata-vocabularies

Conversation

@KartikP

@KartikP KartikP commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Adds canonical vocabularies for datasets and licenses to the schema 2.0 metadata contract (human decision, 2026-10-08). The web form will read them from core.

What changes

  • New module: brainscore_core.metadata.vocabularies.
    • DATASETS: 15 canonical dataset IDs, each with a display name and the aliases already present in published metadata.
    • LICENSES: 9 SPDX IDs. These are the SPDX licenses that appear in current metadata, plus the web app's existing display list (licenses.py), so the two agree.
    • OTHER = "other" is the escape value. A dataset uses identifier: other with free text in name. A license uses other or other: <text>.
  • Warnings, not errors: vocabulary_warnings(document) lists unlisted values and suggests the canonical ID when the value is a known alias. validate and load are unchanged, so every existing plugin file still loads.
  • Where warnings appear:
    • In the PR check, as vocabulary_warnings findings (review.py).
    • In the scoring metadata handler, as WARNING: lines on stderr.
  • No data changes. Rewriting stored values to canonical IDs is a separate metadata PR, once this table is approved.

Effect on current data

The lists are seeded from v2 metadata only, because v1 training_dataset is empty for all 298 vision rows. On vision master plus the back-fill branch (135 v2 files), the warnings are:

  • 229 dataset warnings and 58 license warnings.
  • 170 of the 287 warnings come with a suggested canonical ID.

Nothing is rejected.

Dataset variants to canonical IDs (for review)

  • Split: a stored entry that names several datasets ("ImageNet-21k (pretrain) -> ImageNet-1k (fine-tune)") maps to one entry per dataset. Such entries are not registered as aliases.
  • other: entries that are notes rather than datasets ("not explicit in metadata", "Same as ReAlnet01_cornet") map to other.
  • Judgement calls to check:
    • ImageNet-21k and ImageNet-22k are treated as one dataset (imagenet-21k).
    • ILSVRC-2010 is kept separate from imagenet-1k (ILSVRC-2012).
    • An inferred "likely ImageNet" MoCLR entry maps to other.
Stored identifier Stored name Uses Canonical
brain-score-neural-behavioral-benchmark Brain-Score neural/behavioral benchmark stimulus sets (confirmed via ModelCommitment/metadata registration) 18 brain-score-benchmarks
brain-score-neural-behavioral-benchmark Brain-Score neural/behavioral benchmark stimulus sets (confirmed via ModelCommitment registration and layer li 6 brain-score-benchmarks
brain-score-neural-behavioral-benchmark Brain-Score neural/behavioral benchmark stimulus sets (tutorial/example use, confirmed via code comments) 1 brain-score-benchmarks
brain-score-benchmark-stimuli-sets-free Brain-Score benchmark stimuli sets (FreemanZiemba2013 V1/V2, MajajHong2015 V4/IT, Sanghavi2020/SanghaviJozwik2 1 brain-score-benchmarks
imagenet-lsvrc-2010 ImageNet LSVRC-2010 1 ilsvrc-2010
imagenet-12k-11-821-classes ImageNet-12k (11,821 classes) 2 imagenet-12k
imagenet-12k ImageNet-12k 1 imagenet-12k
imagenet-12k-11-821-class-subset ImageNet-12k (11,821-class subset) 1 imagenet-12k
imagenet-12k-val-split-40-class-mid-tr ImageNet-12k val split (40/class) mid-training; ImageNet-1k val for final metric 2 imagenet-12k, imagenet-1k (split into one entry each)
imagenet-12k-then-imagenet-1k ImageNet-12k then ImageNet-1k 1 imagenet-12k, imagenet-1k (split into one entry each)
imagenet-1k-validation-set-imagenet-12k ImageNet-1k validation set; ImageNet-12k holdout used at intermediate stage 1 imagenet-12k, imagenet-1k (split into one entry each)
imagenet-12k-held-out-val-40-class-mid ImageNet-12k held-out val (40/class) mid-training; ImageNet-1k val for final metric 1 imagenet-12k, imagenet-1k (split into one entry each)
imagenet-1k-standard-validation-split ImageNet-1K standard validation split 26 imagenet-1k
imagenet-large-scale-visual-recognition ImageNet Large Scale Visual Recognition Challenge (ILSVRC) 16 imagenet-1k
imagenet-1k-validation-set ImageNet-1k validation set 16 imagenet-1k
(none) ImageNet-1k validation 14 imagenet-1k
imagenet-1k ImageNet-1k 12 imagenet-1k
imagenet-1k-validation-set-50k-images ImageNet-1k validation set (50K images) 8 imagenet-1k
(none) ImageNet-1k 7 imagenet-1k
imagenet-ilsvrc-2012 ImageNet ILSVRC-2012 5 imagenet-1k
imagenet-ilsvrc2012 ImageNet (ILSVRC2012) 3 imagenet-1k
imagenet-1k-validatioon-set ImageNet-1K validatioon set 3 imagenet-1k
imagenet-1k-via-torchvision-pretrained ImageNet-1k (via torchvision pretrained=True weights) 2 imagenet-1k
imagenet-ilsvrc-2012-validation-set ImageNet ILSVRC 2012 validation set 2 imagenet-1k
imagenet-1k-val ImageNet-1k val 2 imagenet-1k
imagenet-1k-full-per-scaling-law-study ImageNet-1k (full, per scaling-law study naming convention 2 imagenet-1k
imagenet-1k-ilsvrc2012-full-training ImageNet-1k (ILSVRC2012), full training set 2 imagenet-1k
imagenet-1k-madrylab-style-adversarial ImageNet-1k (MadryLab-style adversarial training 1 imagenet-1k
imagenet-ilsvrc-full-training-set ImageNet (ILSVRC), full training set 1 imagenet-1k
imagenet-1k-assumed-standard-classific ImageNet-1k (assumed, standard classification setting) 1 imagenet-1k
imagenet-1k-assumed-standard-classific ImageNet-1k (assumed, standard classification checkpoint) 1 imagenet-1k
imagenet-1k-via-torchvision-imagenet1k ImageNet-1k (via torchvision IMAGENET1K_V2 pretrained weights) 1 imagenet-1k
imagenet-1k-1001-class-tf-slim-style-tr ImageNet-1k, 1001-class TF-Slim-style training (background class included) 1 imagenet-1k
imagenet-1k-madrylab-robustness-library ImageNet-1k (MadryLab robustness-library adversarial training) 1 imagenet-1k
imagenet-1k-only-ilsvrc-2012-1000-clas ImageNet-1k only (ILSVRC-2012, 1000 classes) 1 imagenet-1k
imagenet-1k-validation-set-same-split-u ImageNet-1k validation set (same split used for val/test) 1 imagenet-1k
imagenet-1k-trained-directly ImageNet-1k (trained directly) 1 imagenet-1k
imagenet-validation-set-used-in-the-sou ImageNet validation set (used in the source paper's evaluation) 1 imagenet-1k
imagenet-ilsvrc-2012 ImageNet (ILSVRC 2012) 1 imagenet-1k
imagenet-1k-via-torchvision-imagenet1k ImageNet-1k (via torchvision IMAGENET1K_V1 pretrained weights) 1 imagenet-1k
imagenet-1k-via-torchvision-imagenet1k ImageNet-1k (via torchvision IMAGENET1K_V1 weights) 1 imagenet-1k
imagenet-1k-val-top-1-87-90-top-5-98 ImageNet-1k val - top-1 87.90%, top-5 98.41% (best LAION-based 224px variant per results-imagenet.csv) 1 imagenet-1k
imagenet-1k-val-top-1-87-29-top-5-98 ImageNet-1k val - top-1 87.29%, top-5 98.24% (lowest of the 6 CLIP-L variants per results-imagenet.csv) 1 imagenet-1k
imagenet-1k-val-top-1-88-16-top-5-98 ImageNet-1k val - top-1 88.16%, top-5 98.54% (best 224px OpenAI-CLIP variant per results-imagenet.csv) 1 imagenet-1k
imagenet-1k-val-top-1-87-86-top-5-98 ImageNet-1k val - top-1 87.86%, top-5 98.43% (results-imagenet.csv) 1 imagenet-1k
imagenet-1k-val-top-1-88-26-top-5-98 ImageNet-1k val - top-1 88.26%, top-5 98.52% (timm results-imagenet.csv) 1 imagenet-1k
imagenet-1k-only ImageNet-1k only 1 imagenet-1k
imagenet-1k-only-no-separate-pretrainin ImageNet-1k only (no separate pretraining stage) 1 imagenet-1k
imagenet-1k-validation-set-same-split ImageNet-1k validation set (same split) 1 imagenet-1k
imagenet-1k-original-tf-pnasnet-trainin ImageNet-1k (original TF PNASNet training) 1 imagenet-1k
imagenet-validation-set-used-for-robust ImageNet validation set (used for robustness/alignment evaluation in the source paper) 1 imagenet-1k
imagenet-1k-validation-set-presumed-st ImageNet-1k validation set (presumed, standard practice) 1 imagenet-1k
imagenet-validation-set ImageNet validation set 1 imagenet-1k
imagenet-1k-validation-set-presumed ImageNet-1k validation set (presumed) 1 imagenet-1k
imagenet-val-50k-brain-score-benchma ImageNet val (50K) + Brain-Score benchmark stimulus sets 3 imagenet-1k, brain-score-benchmarks (split into one entry each)
imagenet-validation-set-standard-object ImageNet validation set (standard object recognition evaluation) and Brain-Score benchmark suite (neural/behav 1 imagenet-1k, brain-score-benchmarks (split into one entry each)
imagenet-val-geirhos-cue-conflict-shap ImageNet val + Geirhos cue-conflict shape/texture stimuli 3 imagenet-1k, geirhos-cue-conflict (split into one entry each)
imagenet-val-geirhos-cue-conflict-shap ImageNet val + Geirhos cue-conflict shape/texture stimuli; also scored on Brain-Score benchmarks 1 imagenet-1k, geirhos-cue-conflict, brain-score-benchmarks (split into one entry each)
940m-instagram-images-w-1-5k-hashtags 940M Instagram images w/ 1.5K hashtags (weak supervision) -> ImageNet-1K (fine-tune) 4 imagenet-1k, instagram-940m (split into one entry each)
imagenet-1k-base-noisy-student-pretrain ImageNet-1k (base Noisy Student pretrain uses unlabeled JFT-300M too) + fine-tune with CutMix-patch/AugMix aug 1 imagenet-1k, jft-300m (split into one entry each)
imagenet-1k-base-noisy-student-pretrain ImageNet-1k (base Noisy Student pretrain uses unlabeled JFT-300M too) + fine-tune with CutMix-patch/SAM augmen 1 imagenet-1k, jft-300m (split into one entry each)
imagenet-1k-cornet-s-base-things-eeg ImageNet-1k (CORnet-S base) + THINGS EEG2 human EEG data (subject 1) 1 imagenet-1k, things-eeg2 (split into one entry each)
imagenet-1k-things-eeg2-human-eeg-data ImageNet-1k + THINGS EEG2 human EEG data (Lu et al. 2024) 1 imagenet-1k, things-eeg2 (split into one entry each)
imagenet-1k-cornet-s-base-pretraining ImageNet-1k (CORnet-S base pretraining) + THINGS EEG2 human EEG data (10 subjects) for alignment fine-tuning 1 imagenet-1k, things-eeg2 (split into one entry each)
same-as-realnet01-cornet-imagenet-1k Same as ReAlnet01_cornet - ImageNet-1k + THINGS EEG2 (subject 1) 1 imagenet-1k, things-eeg2 (split into one entry each)
(none) ImageNet-22k 3 imagenet-21k
imagenet-22k ImageNet-22k 2 imagenet-21k
imagenet-21k-pretrain-imagenet-1k ImageNet-21k (pretrain) -> ImageNet-1k (fine-tune) 1 imagenet-21k, imagenet-1k (split into one entry each)
imagenet-22k-pretrain-imagenet-1k ImageNet-22k (pretrain) -> ImageNet-1k (fine-tune) 1 imagenet-21k, imagenet-1k (split into one entry each)
laion-2b-en-2-3b-pairs LAION-2B-en (2.3B pairs) 2 laion-2b
laion-2b LAION-2B 1 laion-2b
laion-2b-english-subset-of-laion-5b-vi LAION-2B (English subset of LAION-5B) via OpenCLIP 1 laion-2b
laion-aesthetic LAION-Aesthetic 1 laion-aesthetic
stylized-imagenet Stylized-ImageNet 1 stylized-imagenet
stylized-imagenet-sin-only Stylized-ImageNet (SIN) only 1 stylized-imagenet
stylized-imagenet-sin-imagenet-in Stylized-ImageNet (SIN) + ImageNet (IN), then ImageNet fine-tune 2 stylized-imagenet, imagenet-1k (split into one entry each)
stylized-imagenet-sin-imagenet-in Stylized-ImageNet (SIN) + ImageNet (IN) combined 1 stylized-imagenet, imagenet-1k (split into one entry each)
imagenet-validation-set-stylized-imagen ImageNet validation set, stylized ImageNet validation set 1 stylized-imagenet, imagenet-1k (split into one entry each)
imagenet-validation-set-and-stylized-ima ImageNet validation set and stylized ImageNet validation set. Also evaluated on cue-conflict stimuli 1 stylized-imagenet, imagenet-1k, geirhos-cue-conflict (split into one entry each)
imagenet-1k-imagenet-c-imagenet-a-sty ImageNet-1K, ImageNet-C, ImageNet-A, Stylized-ImageNet 7 stylized-imagenet, imagenet-c, imagenet-a, imagenet-1k (split into one entry each)
things-eeg2-held-out-test-set THINGS EEG2 held-out test set 2 things-eeg2
things-eeg2-held-out-test-set-novel-obj THINGS EEG2 held-out test set (novel object categories) per Lu et al. 2024 1 things-eeg2
wit-400m-openai-s-private-webimagetext WIT-400M (OpenAI's private 'WebImageText', 400M image-text pairs) 1 wit-400m
wit-400m WIT-400M 1 wit-400m
wit-400m-openai WIT-400M (OpenAI) 1 wit-400m
wit-400m-openai-400m-image-text-pairs WIT-400M (OpenAI, ~400M image-text pairs, proprietary) 1 wit-400m
vito-self-supervised-pretraining-on-imag VITO self-supervised pretraining on image+video data (per arXiv:2210.06433) 2 other
confirmed-only-via-checkpoint-filename-c confirmed only via checkpoint filename convention, not stated in the submission code itself 2 other
not-explicit-in-metadata not explicit in metadata) 2 other
exact-variant-unconfirmed exact variant unconfirmed) 1 other
not-confirmed-if-pretrained-weights-actu not confirmed if pretrained weights actually loaded 1 other
training-dataset-not-stated-in-file training_dataset not stated in file 1 other
single-stage-training-no-separate-pretr single-stage training, no separate pretraining corpus 1 other
same-as-realnet01-cornet Same as ReAlnet01_cornet 1 other
self-supervised-moclr-pretraining-datase Self-supervised MoCLR pretraining dataset (likely ImageNet, per Tomasev et al. 2022 DeepMind paper - inferred, 1 other

License values to SPDX IDs (for review)

Rule: map to an SPDX ID only when the checkpoint (weights) license is stated. A value that names only the submission code license, or says the weights license is unconfirmed, maps to other. By that rule, 52 of 72 stored uses map to an SPDX ID.

Only the four exact renames are registered as aliases in LICENSE_ALIASES: Apache 2.0, CC-BY-NC 4.0, GNU GPL v3+ and GNU GPL 3.0+. Values with qualifiers keep their text until the data PR.

Stored value Uses Canonical Why
Apache-2.0 14 Apache-2.0 listed ID or alias
BSD-3-Clause (torchvision code + weights, "Copyright (c) Soumith Chintala 2016"). Distinct from the original 2012 research code (cuda-convne 8 BSD-3-Clause single license stated
Apache 2.0 6 Apache-2.0 listed ID or alias
Submission code: MIT (brain-score/vision repo license); torchvision weights: BSD-3-Clause 4 BSD-3-Clause weights license stated
CC-BY-NC 4.0 4 CC-BY-NC-4.0 listed ID or alias
GNU GPL v3+ 3 GPL-3.0-or-later listed ID or alias
Submission code: MIT; underlying weights license unconfirmed 3 other weights license not stated or unconfirmed
Submission code: MIT (assumed) 3 other weights license not stated or unconfirmed
Same as ReAlnet04 2 other weights license not stated or unconfirmed
Submission code: MIT (brain-score/vision repo license); underlying VITO weights license unconfirmed 2 other weights license not stated or unconfirmed
Submission code: MIT; underlying EfficientNet weights license unconfirmed 2 other weights license not stated or unconfirmed
Apache-2.0 (HF tag); LAION-2B metadata CC-BY 4.0 2 Apache-2.0 checkpoint license as distributed
Submission code: MIT; original HMAX/Serre-lab code license unconfirmed 1 other weights license not stated or unconfirmed
GNU GPL 3.0+ 1 GPL-3.0-or-later listed ID or alias
Submission code: MIT; original Res2Net repo: Apache 2.0 1 other weights license not stated or unconfirmed
Submission code: MIT; HF weights license per Matthijs repo, unconfirmed 1 other weights license not stated or unconfirmed
Submission code: MIT (brain-score/vision repo license); MadryLab robustness library: MIT 1 other weights license not stated or unconfirmed
BSD-3-Clause (torchvision repository license) 1 BSD-3-Clause single license stated
Submission code: MIT; underlying research license unconfirmed 1 other weights license not stated or unconfirmed
BSD-3-Clause (torchvision) 1 BSD-3-Clause single license stated
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0); code builds on BSD-licensed PyTorch/torchvision r 1 CC-BY-NC-SA-4.0 weights license stated; code note dropped
Submission code: MIT (brain-score/vision repo license); torchvision weights: BSD-3-Clause; SpikingJelly: per its own repo license (not confi 1 other weights license not stated or unconfirmed
Apache-2.0 (as distributed by timm on HF); original OpenAI CLIP GitHub repo code is MIT-licensed (distinct from this checkpoint's stated lic 1 Apache-2.0 checkpoint license as distributed
Apache-2.0 (HF tag), same OpenAI nuance 1 Apache-2.0 checkpoint license as distributed
Apache-2.0 (HF tag), same OpenAI MIT-code / research-intent nuance 1 Apache-2.0 checkpoint license as distributed
Apache-2.0 (HF tag); underlying OpenAI CLIP code MIT-licensed; ImageNet data has own non-commercial research terms 1 Apache-2.0 checkpoint license as distributed
Apache 2.0 (timm) / MIT (original Microsoft Swin-Transformer repo) 1 Apache-2.0 weights license stated
Submission code: MIT; timm weights: Apache 2.0 1 Apache-2.0 weights license stated
Same as ReAlnet01_cornet 1 other weights license not stated or unconfirmed
MIT License (Brain-Score repo) 1 other weights license not stated or unconfirmed
Submission code: MIT; timm weights: MIT (per HF model card) 1 MIT weights license stated

Tests

tests/test_metadata/test_vocabularies.py:

  • listed values and other produce no warning;
  • unlisted values warn and still validate, with alias hints.

Local runs: unittest discover -s tests/test_metadata OK; together with test_handle_metadata, 27 passed.

Canonical dataset IDs and SPDX license IDs, with an 'other' escape value.
Unlisted values produce warnings in the PR check and the scoring
handler, never validation errors, so existing plugin metadata loads.
@KartikP
KartikP merged commit a95e2a7 into main Oct 8, 2026
3 checks passed
KartikP added a commit that referenced this pull request Oct 9, 2026
Every qualifying merge to `main` is versioned and published
automatically. There is no bump PR, no approval step and no personal
access token.

**Release rule** (`.github/workflows/release.yml`, one decision per
squash merge)
1. **Path gate:** the merge must change a shipped file. For core that
means a file under `brainscore_core/` or the `[project] dependencies` in
`pyproject.toml`. Changes only to tests, docs, `.github`, `*.md`,
`sqlite3.db` and so on never release, whatever the title says.
2. **Title type:** `feat` gives a minor release; `fix` and `perf` give a
patch. Every other allowed type gives no release: `refactor`, `docs`,
`test`, `ci`, `chore`, `build`, `plugin`, `model`, `benchmark`, `data`,
`metric`.
3. **Major:** needs `!` in the title or a `BREAKING CHANGE` footer,
**and** the `major update` label on the PR. Without the label it is
downgraded to minor.

The workflow computes the level and passes it to python-semantic-release
as a forced bump (`force: patch|minor|major`). python-semantic-release
then:
- updates `version` in `pyproject.toml`;
- commits `chore(release): X.Y.Z` with the skip-ci marker;
- tags `vX.Y.Z` and pushes to `main` with a GitHub App token
(`actions/create-github-app-token`);
- builds the sdist and wheel, and creates a GitHub release.

A separate `publish` job in the `pypi` environment uploads with
`pypa/gh-action-pypi-publish` through trusted publishing (`id-token:
write`, no stored PyPI token).

The level is forced rather than left to python-semantic-release, because
it would otherwise read every commit since the last tag, and a skipped
`feat` (for example, a tests-only merge) would leak into the next
release.

- **Loop guard:** the skip-ci marker on the release commit, plus a job
condition that skips head commits starting with `chore(release):`.
- **`workflow_dispatch`** with a `level` choice is for the first release
and for missed ones. Merging this PR does not release by itself, because
it changes no shipped file. Cutting **2.4.0** (feat #172, #177 and #178
since v2.3.8) is one manual run with `minor`.

**PR title check** (`.github/workflows/pr-title.yml`,
`amannn/action-semantic-pull-request`)
- It runs on `pull_request_target` (opened, edited, synchronize,
reopened, labeled, unlabeled), so fork PRs get it too. It never checks
out PR code, and its only permission is `pull-requests: write`.
- On an invalid title it posts one sticky comment showing:
  - the failing title;
  - each type with the release it causes;
  - the major-label rule and the path rule;
  - the `type(scope): subject` format and three examples.
- The comment updates in place on each edit and is deleted once the
title passes.
- A second sticky comment warns when a breaking title or body has no
`major update` label.

**Reuse:** both workflows also declare `workflow_call`. Vision and
language call them from `main` (`secrets: inherit`), and their only
setting is the `release-paths` regex. For vision, for example:
`^brainscore_vision/(?!(models|benchmarks|data|metrics)/)`, so
plugin-only PRs never release.

**Local checks**
- Path and title gate on a scratch repo:

| Merge | Level |
|---|---|
| `feat` under `brainscore_core/` | minor |
| `feat` only under `tests/` | none |
| `fix` | patch |
| `docs` in the package | none |
| `build(deps)` | none |
| `fix(deps)` changing dependencies | patch |
| version-only `pyproject` edit | none |
| `feat!` without the label | minor |
| `feat!` with the label | major |
| `plugin` | none |

- python-semantic-release 10.7.0 `--noop` on current main: forced patch
gives 2.3.9, minor gives 2.4.0, major gives 3.0.0.
- The vision regex keeps `model_helpers/` and `__init__.py` as shipped,
and excludes `models/`, `benchmarks/` and `metrics/`.
- Neither new workflow runs on this PR (push-only and
`pull_request_target` read from `main`). Jenkins and
`metadata-contract.yml` are unchanged.

**Before merging**, complete the one-time setup in the hive note
`shared/core_auto_release.md`: the App, the secrets, a ruleset with the
App as bypass and the title check required, squash-only merging with the
PR title, and the PyPI trusted publisher.
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