Add benchmark filesystem 1.3.0 with validated definitions and diagrams
Browse filesAdd immutable item-bank, protocol, model-panel, calibration and release artifacts; strict measurements, script-aware comparisons, response-matrix export, coverage auditing and complete artifact transfer. Include before/after diagrams, candidate foundation source pins, schemas and a separate synthetic end-to-end example. All 190 automated tests and extracted-package workflow checks pass. Real experiment collection and IRT fitting remain external; no real benchmark results are claimed.
- ARTIFACTS.md +270 -0
- BENCHMARK_RUN_TEMPLATE.json +26 -0
- BENCHMARK_WORKFLOW.md +202 -0
- FILESYSTEM_DIAGRAMS.md +99 -0
- FORMAT.md +25 -2
- LEGACY_REPHRASING_SOURCES.json +79 -0
- README.md +115 -140
- SOURCES.json +39 -70
- VERIFICATION.md +93 -0
- babel-tower-filesystem.zip +2 -2
- filesystem-after.png +3 -0
- filesystem-after.svg +80 -0
- filesystem-before.png +3 -0
- filesystem-before.svg +44 -0
ARTIFACTS.md
ADDED
|
@@ -0,0 +1,270 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Benchmark artifact storage contract
|
| 2 |
+
|
| 3 |
+
The archive now stores five kinds of benchmark artifacts alongside evaluation
|
| 4 |
+
runs. This is a storage and validation contract. It does not download or audit
|
| 5 |
+
the complete foundation automatically, run models, fit IRT models, verify a
|
| 6 |
+
third-party fitting algorithm, or establish that a benchmark is scientifically
|
| 7 |
+
valid.
|
| 8 |
+
|
| 9 |
+
```text
|
| 10 |
+
babel-data/
|
| 11 |
+
store.json
|
| 12 |
+
item-banks/<version-id>/
|
| 13 |
+
artifact.json
|
| 14 |
+
manifest.json
|
| 15 |
+
protocols/<version-id>/
|
| 16 |
+
artifact.json
|
| 17 |
+
manifest.json
|
| 18 |
+
model-panels/<version-id>/
|
| 19 |
+
artifact.json
|
| 20 |
+
manifest.json
|
| 21 |
+
runs/<run-id>/
|
| 22 |
+
manifest.json
|
| 23 |
+
raw/
|
| 24 |
+
records/
|
| 25 |
+
attachments/
|
| 26 |
+
calibrations/<version-id>/
|
| 27 |
+
artifact.json
|
| 28 |
+
manifest.json
|
| 29 |
+
releases/<version-id>/
|
| 30 |
+
artifact.json
|
| 31 |
+
manifest.json
|
| 32 |
+
derived/
|
| 33 |
+
.locks/
|
| 34 |
+
.staging/
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
Registry directories are optional in existing archives. Registering an artifact
|
| 38 |
+
creates its directory. An artifact folder contains exactly `artifact.json` and
|
| 39 |
+
`manifest.json`; extra files and symbolic links are rejected. Keep supporting
|
| 40 |
+
files as registered run attachments or describe their separately managed
|
| 41 |
+
provenance explicitly in the artifact.
|
| 42 |
+
|
| 43 |
+
## Identity and immutability
|
| 44 |
+
|
| 45 |
+
Every input artifact is one UTF-8 JSON object with:
|
| 46 |
+
|
| 47 |
+
```json
|
| 48 |
+
{"schema_version": 1, "kind": "item-bank", "id": "foundation-v1"}
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
+
The five permitted `kind` values are `item-bank`, `protocol`, `model-panel`,
|
| 52 |
+
`calibration`, and `release`. IDs must be safe portable directory names. The
|
| 53 |
+
fields below are additional required fields for each kind. Unknown JSON fields
|
| 54 |
+
are preserved for task-specific metadata; they do not acquire validation rules
|
| 55 |
+
merely by being present. Non-finite numbers and duplicate object keys are
|
| 56 |
+
rejected throughout the document.
|
| 57 |
+
|
| 58 |
+
Registration validates the artifact and dependencies, writes canonical JSON,
|
| 59 |
+
and computes a SHA-256 checksum. The reference returned by registration is:
|
| 60 |
+
|
| 61 |
+
```json
|
| 62 |
+
{"kind": "item-bank", "id": "foundation-v1", "sha256": "64 lowercase hexadecimal characters"}
|
| 63 |
+
```
|
| 64 |
+
|
| 65 |
+
This example is schematic; real references contain an actual 64-character
|
| 66 |
+
checksum. References require exactly these three fields. Loading verifies both
|
| 67 |
+
the declared checksum and the schema. A registered ID cannot be overwritten;
|
| 68 |
+
changes require a new version ID and a new checksum. Writes use the same archive
|
| 69 |
+
lock as evaluation runs and publish an entire staged folder atomically.
|
| 70 |
+
|
| 71 |
+
Checksums detect changes relative to a saved reference. They are not digital
|
| 72 |
+
signatures or an operating-system prohibition against editing files. Keep the
|
| 73 |
+
Hugging Face commit ID when sharing an archive snapshot.
|
| 74 |
+
|
| 75 |
+
## Item bank
|
| 76 |
+
|
| 77 |
+
Required top-level fields: `sources` and `items`, both nonempty arrays.
|
| 78 |
+
|
| 79 |
+
Each source has:
|
| 80 |
+
|
| 81 |
+
| Field | Meaning |
|
| 82 |
+
| --- | --- |
|
| 83 |
+
| `id` | Unique source identifier within the bank |
|
| 84 |
+
| `repo_id` | Upstream repository identifier |
|
| 85 |
+
| `revision` | Exact intended source version; floating `main`, `master`, `HEAD`, and `latest` are rejected |
|
| 86 |
+
| `split` | Upstream split used, such as `test` |
|
| 87 |
+
|
| 88 |
+
Use upstream immutable commit SHAs for `revision`. The filesystem records the
|
| 89 |
+
identifier and rejects common floating aliases, but cannot establish that an
|
| 90 |
+
arbitrary supplied version string actually identifies immutable upstream data.
|
| 91 |
+
|
| 92 |
+
Each item represents **one question in one language and script**:
|
| 93 |
+
|
| 94 |
+
| Field | Meaning |
|
| 95 |
+
| --- | --- |
|
| 96 |
+
| `item_id` | Unique identifier for this translated item |
|
| 97 |
+
| `global_item_id` | Shared question identity across its translations, scoped by `task` |
|
| 98 |
+
| `task` | Task identifier, such as `belebele` |
|
| 99 |
+
| `language` | Explicit language identifier used by this bank |
|
| 100 |
+
| `script` | Four-letter ISO 15924 form, such as `Latn`; syntax is checked |
|
| 101 |
+
| `source_id` | An entry in `sources` |
|
| 102 |
+
| `source_item_id` | Question identifier in the source |
|
| 103 |
+
| `source_revision` | Must equal the referenced source's revision |
|
| 104 |
+
| `passage_id` | Shared passage/group identifier, or explicit `null` |
|
| 105 |
+
| `overlap_group_ids` | Array of known shared-material group IDs, possibly empty |
|
| 106 |
+
| `choices` | At least two nonempty answer strings, in scoring order |
|
| 107 |
+
| `answer_index` | Zero-based index of the correct choice |
|
| 108 |
+
| `excluded` | Boolean exclusion decision |
|
| 109 |
+
| `exclusion_reason` | Nonempty reason when excluded; otherwise `null` |
|
| 110 |
+
| `input` | Question/passage/task fields as a JSON object |
|
| 111 |
+
|
| 112 |
+
Duplicate `item_id` values and duplicate `(task, global_item_id, language,
|
| 113 |
+
script)` identities are rejected. Translations may have different wording and
|
| 114 |
+
answer order, with their own answer keys. Reusing a global ID across tasks does
|
| 115 |
+
not make those questions equivalent.
|
| 116 |
+
|
| 117 |
+
An optional `audit` object can retain audit findings and decisions. This system
|
| 118 |
+
does not infer translation equivalence, detect FLORES overlap, populate passage
|
| 119 |
+
groups, audit language intersections, or guarantee source counts. The researcher
|
| 120 |
+
must supply those findings. An empty overlap list means no group was recorded;
|
| 121 |
+
it is not evidence that overlap was investigated or ruled out.
|
| 122 |
+
|
| 123 |
+
## Evaluation protocol
|
| 124 |
+
|
| 125 |
+
Required fields:
|
| 126 |
+
|
| 127 |
+
```json
|
| 128 |
+
{
|
| 129 |
+
"task": "globalpiqa",
|
| 130 |
+
"scoring": {
|
| 131 |
+
"candidate_mode": "answer_text",
|
| 132 |
+
"normalization": "byte",
|
| 133 |
+
"tie_break": "first",
|
| 134 |
+
"candidate_prefix": " ",
|
| 135 |
+
"candidate_suffix": ""
|
| 136 |
+
},
|
| 137 |
+
"prompt_template": "{question}",
|
| 138 |
+
"demonstrations": [],
|
| 139 |
+
"harness": {"version": "PIN_THE_VERSION_USED", "task_config": {}},
|
| 140 |
+
"frozen": true
|
| 141 |
+
}
|
| 142 |
+
```
|
| 143 |
+
|
| 144 |
+
`candidate_mode` is `answer_text` or `answer_label`. Answer-label scoring requires
|
| 145 |
+
`scoring.candidate_labels`, an ordered list of unique nonempty labels. Labels
|
| 146 |
+
are forbidden in answer-text mode. Optional prefix/suffix strings default to
|
| 147 |
+
empty and represent the exact scored continuation text, including spaces.
|
| 148 |
+
`normalization` is `none`, `byte`, or `token`; the supported deterministic tie
|
| 149 |
+
rule selects the first maximum. Exact UTF-8 byte lengths include the prefix and
|
| 150 |
+
suffix.
|
| 151 |
+
|
| 152 |
+
Development protocols may use `frozen: false`. Strict benchmark runs,
|
| 153 |
+
calibrations, and releases require frozen protocols. A calibration or release
|
| 154 |
+
contains exactly one frozen protocol for every included bank task. Label counts
|
| 155 |
+
must match each included question for their task.
|
| 156 |
+
|
| 157 |
+
The artifact stores the prompt template, demonstrations, and harness settings.
|
| 158 |
+
It does not execute an lm-eval task or prove that an upstream logger used those
|
| 159 |
+
settings. Strict records must separately retain exact prompts, candidate text,
|
| 160 |
+
likelihoods, and lengths.
|
| 161 |
+
|
| 162 |
+
## Model panel
|
| 163 |
+
|
| 164 |
+
`checkpoints` is a nonempty array. Each entry contains `id`, `model`, `revision`,
|
| 165 |
+
`family`, `split`, and `is_base: true`. `split` is `calibration`, `development`,
|
| 166 |
+
or `validation`. Checkpoint IDs and `(model, revision)` pairs must be unique.
|
| 167 |
+
Every checkpoint in the same declared family must use the same split.
|
| 168 |
+
|
| 169 |
+
This detects inconsistent declared splits. The archive does not independently
|
| 170 |
+
classify model families or establish whether a checkpoint is a base model; those
|
| 171 |
+
are explicit research metadata.
|
| 172 |
+
|
| 173 |
+
## Calibration result
|
| 174 |
+
|
| 175 |
+
A calibration stores externally produced fit results. Required fields:
|
| 176 |
+
|
| 177 |
+
- `item_bank`: exact item-bank reference.
|
| 178 |
+
- `protocols`: exact frozen protocol references, one per included task.
|
| 179 |
+
- `model_panel`: exact panel reference.
|
| 180 |
+
- `method`: `hierarchical-1pl` or `regularized-2pl`.
|
| 181 |
+
- `synthetic`: explicit boolean.
|
| 182 |
+
- `reference_scale`: nonempty object describing the scale definition and its
|
| 183 |
+
anchoring/identification choices.
|
| 184 |
+
- `item_parameters`: one entry per included translated item, with `item_id` and
|
| 185 |
+
finite `difficulty`. A 2PL result also requires positive `discrimination`.
|
| 186 |
+
A supplied 1PL discrimination must equal 1. Shared/global effects and other
|
| 187 |
+
fitter output may be retained as additional fields.
|
| 188 |
+
- `abilities`: entries with `checkpoint_id`, `task`, `language`, `script`, and
|
| 189 |
+
finite `ability`; identities must be known and unique.
|
| 190 |
+
- `diagnostics` and `validation`: nonempty objects containing the externally
|
| 191 |
+
produced findings and their interpretation.
|
| 192 |
+
- `run_refs`: exact evaluation evidence references described below.
|
| 193 |
+
|
| 194 |
+
Parameters and abilities may include nonnegative `standard_error`, ordered
|
| 195 |
+
`interval: [lower, upper]`, and `interval_level` strictly between 0 and 1 when an
|
| 196 |
+
interval is supplied. These values are checked for type and range, not statistical
|
| 197 |
+
coverage. Store fitter settings, regularization, posterior samples or covariance,
|
| 198 |
+
linking checks, and family-level validation metrics explicitly when available.
|
| 199 |
+
|
| 200 |
+
Each `run_refs` entry is:
|
| 201 |
+
|
| 202 |
+
```json
|
| 203 |
+
{
|
| 204 |
+
"run_id": "checkpoint-a-pilot",
|
| 205 |
+
"sha256": "SHA-256 of the exact sealed run manifest bytes",
|
| 206 |
+
"role": "calibration"
|
| 207 |
+
}
|
| 208 |
+
```
|
| 209 |
+
|
| 210 |
+
`role` is `calibration`, `development`, or `validation` and must equal the
|
| 211 |
+
checkpoint's family split in the panel. References must identify nonempty,
|
| 212 |
+
sealed, checksum-valid strict runs using the same bank, panel, and compatible
|
| 213 |
+
protocols. At least one calibration-role run is required. Only calibration-role
|
| 214 |
+
runs are declared fitting data; other roles preserve development and validation
|
| 215 |
+
evidence separately. `validation.run_ids`, when present, may name only referenced
|
| 216 |
+
validation-role runs. Unpinned top-level `run_ids` are rejected.
|
| 217 |
+
|
| 218 |
+
This validates the recorded data split and provenance. It cannot inspect a
|
| 219 |
+
separate statistical program to prove which responses that program actually
|
| 220 |
+
used to fit parameters or tune choices.
|
| 221 |
+
|
| 222 |
+
If any referenced bank, protocol, panel, or run is explicitly synthetic, the
|
| 223 |
+
calibration must be `synthetic: true`. A schema-valid artifact does not constitute
|
| 224 |
+
an endorsement of a fit or its reported diagnostics.
|
| 225 |
+
|
| 226 |
+
## Frozen benchmark release
|
| 227 |
+
|
| 228 |
+
Required fields are `item_bank`, `protocols`, `model_panel`, `calibration`,
|
| 229 |
+
`frozen: true`, an explicit `synthetic` boolean matching the calibration,
|
| 230 |
+
`limitations` (a nonempty string array), and `aggregation`.
|
| 231 |
+
|
| 232 |
+
Release bank, protocol, and panel references must exactly match the calibration.
|
| 233 |
+
The calibration must name held-out evaluation evidence in
|
| 234 |
+
`validation.run_ids`. This is an evidence requirement, not a statistical
|
| 235 |
+
acceptance threshold or an automatic claim of good generalization.
|
| 236 |
+
|
| 237 |
+
The default aggregation policy is:
|
| 238 |
+
|
| 239 |
+
```json
|
| 240 |
+
{"primary": "task-language", "overall": null}
|
| 241 |
+
```
|
| 242 |
+
|
| 243 |
+
To declare an overall score, set `overall` to an object with `task_weights` and
|
| 244 |
+
`language_weights`. Each is a mapping from every included task or language to a
|
| 245 |
+
nonnegative numeric weight, and each mapping must sum to one. This prevents an
|
| 246 |
+
undeclared question-count-weighted overall policy in the release definition.
|
| 247 |
+
The registry records the policy; it does not calculate calibrated scores,
|
| 248 |
+
uncertainty, passage-aware resampling, or shortened-test comparisons.
|
| 249 |
+
|
| 250 |
+
## Python API
|
| 251 |
+
|
| 252 |
+
```python
|
| 253 |
+
from babel_fs.artifacts import (
|
| 254 |
+
register_artifact, artifact_ref, load_artifact, list_artifacts,
|
| 255 |
+
validate_artifacts, archive_paths,
|
| 256 |
+
)
|
| 257 |
+
|
| 258 |
+
reference = register_artifact(root, "bank-v1.json")
|
| 259 |
+
reference = artifact_ref(root, "item-bank", "foundation-v1")
|
| 260 |
+
payload = load_artifact(root, reference)
|
| 261 |
+
references = list_artifacts(root)
|
| 262 |
+
report = validate_artifacts(root)
|
| 263 |
+
paths = archive_paths(root)
|
| 264 |
+
```
|
| 265 |
+
|
| 266 |
+
`load_artifact` returns the original payload, without inserting inferred findings.
|
| 267 |
+
`validate_artifacts` returns `ok`, `errors`, and the number of discovered
|
| 268 |
+
`artifacts`. `archive_paths` returns only validated artifact and manifest files
|
| 269 |
+
for the Hub transfer allowlist. A failed dependency blocks the artifact and
|
| 270 |
+
release rather than silently substituting another version.
|
BENCHMARK_RUN_TEMPLATE.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "REPLACE_WITH_MODEL_ID",
|
| 3 |
+
"model_revision": "REPLACE_WITH_EXACT_CHECKPOINT_REVISION",
|
| 4 |
+
"synthetic": false,
|
| 5 |
+
"description": "Template for a real strict benchmark run. Replace every placeholder with registered definitions and actual evaluation settings.",
|
| 6 |
+
"benchmark_contract": {
|
| 7 |
+
"item_bank": {
|
| 8 |
+
"kind": "item-bank",
|
| 9 |
+
"id": "REPLACE_WITH_BANK_ID",
|
| 10 |
+
"sha256": "REPLACE_WITH_REGISTERED_SHA256"
|
| 11 |
+
},
|
| 12 |
+
"protocols": [
|
| 13 |
+
{
|
| 14 |
+
"kind": "protocol",
|
| 15 |
+
"id": "REPLACE_WITH_TASK_PROTOCOL_ID",
|
| 16 |
+
"sha256": "REPLACE_WITH_REGISTERED_SHA256"
|
| 17 |
+
}
|
| 18 |
+
],
|
| 19 |
+
"model_panel": {
|
| 20 |
+
"kind": "model-panel",
|
| 21 |
+
"id": "REPLACE_WITH_PANEL_ID",
|
| 22 |
+
"sha256": "REPLACE_WITH_REGISTERED_SHA256"
|
| 23 |
+
},
|
| 24 |
+
"checkpoint_id": "REPLACE_WITH_CHECKPOINT_ID_FROM_PANEL"
|
| 25 |
+
}
|
| 26 |
+
}
|
BENCHMARK_WORKFLOW.md
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Using the calibrated-benchmark archive
|
| 2 |
+
|
| 3 |
+
Version 1.3.0 provides the storage and validation layer for the proposed benchmark.
|
| 4 |
+
It does not execute language models, fit IRT models, or certify a benchmark's
|
| 5 |
+
measurement quality. The real archive has no collected responses, assembled
|
| 6 |
+
foundation bank, or estimated parameters yet.
|
| 7 |
+
|
| 8 |
+
## Try the complete storage workflow
|
| 9 |
+
|
| 10 |
+
From the extracted toolkit:
|
| 11 |
+
|
| 12 |
+
```sh
|
| 13 |
+
./babel --root my-synthetic-example benchmark-demo
|
| 14 |
+
./babel --root my-synthetic-example artifacts
|
| 15 |
+
./babel --root my-synthetic-example bank-audit demo-bank-v1
|
| 16 |
+
./babel --root my-synthetic-example validate
|
| 17 |
+
./babel --root my-synthetic-example compare demo-calibration \
|
| 18 |
+
--other-run demo-validation --baseline foundation --variant foundation \
|
| 19 |
+
--items my-synthetic-comparison.html
|
| 20 |
+
./babel --root my-synthetic-example hub-plan
|
| 21 |
+
```
|
| 22 |
+
|
| 23 |
+
The example contains two handwritten question identities in English and French,
|
| 24 |
+
three fictional base checkpoints from different fictional families, twelve
|
| 25 |
+
handwritten responses, and illustrative calibration/release artifacts. No model
|
| 26 |
+
was evaluated. No IRT fit or scientific validation was performed. Do not upload
|
| 27 |
+
this example as real project results. The bundled `benchmark-demo-store/` is an
|
| 28 |
+
already-built version of the same demonstration.
|
| 29 |
+
|
| 30 |
+
## 1. Register the questions, protocols and model panel
|
| 31 |
+
|
| 32 |
+
Prepare JSON definitions following [ARTIFACTS.md](ARTIFACTS.md). Register each:
|
| 33 |
+
|
| 34 |
+
```sh
|
| 35 |
+
./babel register /path/to/item-bank-v1.json
|
| 36 |
+
./babel register /path/to/belebele-protocol-v1.json
|
| 37 |
+
./babel register /path/to/globalpiqa-protocol-v1.json
|
| 38 |
+
./babel register /path/to/sib200-protocol-v1.json
|
| 39 |
+
./babel register /path/to/pilot-panel-v1.json
|
| 40 |
+
./babel artifacts
|
| 41 |
+
```
|
| 42 |
+
|
| 43 |
+
Registration returns a reference containing `kind`, `id`, and `sha256`. Preserve
|
| 44 |
+
that complete reference in dependent definitions and run settings. Reusing an ID
|
| 45 |
+
with different content is rejected. Use a new ID for a changed version.
|
| 46 |
+
|
| 47 |
+
An item is one particular language/script version of a question. `item_id` names
|
| 48 |
+
that version; `global_item_id` links corresponding questions across translations,
|
| 49 |
+
within a task. `language` and `script` are separate fields. Each item has choices,
|
| 50 |
+
a zero-based answer index, source revision, passage/overlap groups, and explicit
|
| 51 |
+
inclusion/exclusion status. Excluded rows remain available for audit.
|
| 52 |
+
|
| 53 |
+
`bank-audit BANK-ID` reports counts by task/language/script, exclusions, missing
|
| 54 |
+
translations relative to each task's observed item union, exact-content duplicate
|
| 55 |
+
groups, and declared passage/overlap groups. It does not decide whether a
|
| 56 |
+
translation is correct or discover every semantic overlap. FLORES relationships
|
| 57 |
+
must be established from source provenance and entered explicitly. Expected
|
| 58 |
+
counts in `examples/foundation-sources.json` are planning figures from the
|
| 59 |
+
proposal, not the result of a completed coverage audit.
|
| 60 |
+
|
| 61 |
+
Each task protocol declares answer-text or answer-label candidates, score
|
| 62 |
+
normalization (`none`, `byte`, or `token`), a first-maximum tie rule, prompt
|
| 63 |
+
template, demonstrations, and harness version/configuration. Strict runs require
|
| 64 |
+
a frozen protocol, with one protocol per task. Development alternatives get
|
| 65 |
+
separate IDs and runs. Freezing records the selected configuration; choosing
|
| 66 |
+
which protocol is scientifically preferable still requires development analysis.
|
| 67 |
+
|
| 68 |
+
Each model-panel entry names an exact checkpoint revision, its family, whether
|
| 69 |
+
it is a base model, and its split: `calibration`, `development`, or `validation`.
|
| 70 |
+
All entries in a family must use the same split. This checks declared family
|
| 71 |
+
membership; the program cannot independently determine a model's ancestry.
|
| 72 |
+
|
| 73 |
+
## 2. Collect evaluation output and create a strict run
|
| 74 |
+
|
| 75 |
+
lm-evaluation-harness is the program that sends task prompts and candidate
|
| 76 |
+
continuations to a language model and computes their likelihoods. This archive
|
| 77 |
+
is the program that preserves and checks those measurements. Hugging Face hosts
|
| 78 |
+
versioned copies of the archive and the toolkit.
|
| 79 |
+
|
| 80 |
+
The ordinary harness sample importer remains supported. For the strict new
|
| 81 |
+
benchmark contract, the evaluation producer must also supply the stable item
|
| 82 |
+
mapping, exact candidate continuations, exact prompt, per-candidate scores, and
|
| 83 |
+
byte/token lengths. Generic harness logs do not always include all of these.
|
| 84 |
+
Use a task-specific logger or a verified conversion step to make canonical
|
| 85 |
+
JSONL; the archive does not guess missing candidate order, lengths or prompts.
|
| 86 |
+
Attach the original harness sample file/configuration alongside the canonical
|
| 87 |
+
file so the conversion remains auditable.
|
| 88 |
+
|
| 89 |
+
A strict run's metadata contains:
|
| 90 |
+
|
| 91 |
+
```json
|
| 92 |
+
{
|
| 93 |
+
"model": "organization/checkpoint-name",
|
| 94 |
+
"model_revision": "EXACT-CHECKPOINT-REVISION",
|
| 95 |
+
"benchmark_contract": {
|
| 96 |
+
"item_bank": {"kind": "item-bank", "id": "bank-v1", "sha256": "REGISTERED-HASH"},
|
| 97 |
+
"protocols": [{"kind": "protocol", "id": "protocol-v1", "sha256": "REGISTERED-HASH"}],
|
| 98 |
+
"model_panel": {"kind": "model-panel", "id": "pilot-v1", "sha256": "REGISTERED-HASH"},
|
| 99 |
+
"checkpoint_id": "CHECKPOINT-ID-FROM-PANEL"
|
| 100 |
+
}
|
| 101 |
+
}
|
| 102 |
+
```
|
| 103 |
+
|
| 104 |
+
Replace the placeholders with references returned by registration. The bundled
|
| 105 |
+
`benchmark-demo-store/runs/demo-calibration/manifest.json` contains a complete
|
| 106 |
+
working synthetic example. A measurement row additionally supplies:
|
| 107 |
+
|
| 108 |
+
- `item_id`, `global_item_id`, `question_id` equal to `global_item_id`, `benchmark`
|
| 109 |
+
equal to the item's task, `language`, `script`, `variant_id` (normally `foundation`),
|
| 110 |
+
and `protocol_id`.
|
| 111 |
+
- `exact_prompt`, the ordered `candidates`, and `scores.logprobs`,
|
| 112 |
+
`scores.byte_lengths`, and `scores.token_lengths` with one value per candidate.
|
| 113 |
+
- `target` as the bank's zero-based answer index, integer `prediction`, and
|
| 114 |
+
boolean `correct`.
|
| 115 |
+
|
| 116 |
+
`scores.logprobs` must contain finite, nonpositive numbers. Both length arrays
|
| 117 |
+
are required even when their corresponding normalization is not selected, and
|
| 118 |
+
every length must be a positive integer. Optional `scores.normalized_scores`
|
| 119 |
+
values are checked against the declared normalization.
|
| 120 |
+
|
| 121 |
+
Candidate strings must match the item choices or the protocol's ordered labels,
|
| 122 |
+
including declared candidate prefix/suffix text. Byte lengths are checked against
|
| 123 |
+
the exact UTF-8 continuations. Token lengths must be measured with the model's
|
| 124 |
+
actual tokenizer; the archive checks their shape and positivity, not tokenization.
|
| 125 |
+
It recomputes the winning option under the declared length normalization and
|
| 126 |
+
checks correctness against the bank's key. It preserves the submitted prompt but
|
| 127 |
+
does not prove that an external model actually received it or that a likelihood
|
| 128 |
+
was computed correctly.
|
| 129 |
+
|
| 130 |
+
```sh
|
| 131 |
+
./babel new-run --run-id checkpoint-a-pilot \
|
| 132 |
+
--model organization/checkpoint-name --metadata /path/to/run-settings.json
|
| 133 |
+
./babel import checkpoint-a-pilot /path/to/canonical-responses.jsonl --format canonical
|
| 134 |
+
./babel attach checkpoint-a-pilot /path/to/original-harness-samples.jsonl \
|
| 135 |
+
/path/to/task-config.yaml /path/to/results.json
|
| 136 |
+
./babel validate --run checkpoint-a-pilot
|
| 137 |
+
./babel seal checkpoint-a-pilot
|
| 138 |
+
```
|
| 139 |
+
|
| 140 |
+
Old runs without `benchmark_contract` retain their general-purpose validation.
|
| 141 |
+
They do not become calibrated-benchmark measurements merely because they are
|
| 142 |
+
sealed. A missing response is absent from the matrix, not automatically wrong.
|
| 143 |
+
|
| 144 |
+
## 3. Export observations for statistical fitting
|
| 145 |
+
|
| 146 |
+
```sh
|
| 147 |
+
./babel response-matrix responses.jsonl \
|
| 148 |
+
--run checkpoint-a-pilot --run checkpoint-b-pilot
|
| 149 |
+
```
|
| 150 |
+
|
| 151 |
+
This produces one row per observed checkpoint/item/protocol/filter/repeat, with
|
| 152 |
+
shared question IDs, language/script, family and split, correctness, passage and
|
| 153 |
+
overlap groups, and exact artifact/run references. Runs must be sealed and use
|
| 154 |
+
the same bank/panel, with a compatible protocol per task. Repeated observations
|
| 155 |
+
with the same identity are rejected. It is a long-format table, not an already
|
| 156 |
+
estimated ability/difficulty matrix.
|
| 157 |
+
|
| 158 |
+
An external fitting program reads those rows, selects calibration families for
|
| 159 |
+
fitting, uses development families for model choices, and evaluates final
|
| 160 |
+
validation families separately. That program must implement the proposed
|
| 161 |
+
hierarchical 1PL/2PL models, reference-scale identification, linking checks,
|
| 162 |
+
parameter recovery, predictive validation and passage-aware uncertainty. These
|
| 163 |
+
analyses are not supplied by the filesystem.
|
| 164 |
+
|
| 165 |
+
## 4. Register fitting outputs and a release
|
| 166 |
+
|
| 167 |
+
After running those analyses, register a calibration artifact containing the
|
| 168 |
+
actual parameters, scale, diagnostics, validation evidence, and hashes of sealed
|
| 169 |
+
input run manifests. Every input run declares its role; it must agree with its
|
| 170 |
+
model-panel split. A release pins a compatible bank, complete task protocols,
|
| 171 |
+
panel and calibration, plus limitations and aggregation settings.
|
| 172 |
+
|
| 173 |
+
```sh
|
| 174 |
+
./babel register /path/to/calibration-v1.json
|
| 175 |
+
./babel register /path/to/release-v1.json
|
| 176 |
+
./babel validate
|
| 177 |
+
./babel hub-plan
|
| 178 |
+
./babel hub-push
|
| 179 |
+
```
|
| 180 |
+
|
| 181 |
+
Task/language results are primary. Set `aggregation.overall` to `null` unless an
|
| 182 |
+
overall score is intended; otherwise declare task and language weights. These
|
| 183 |
+
weights are stored and validated, not applied by a calibrated scoring engine.
|
| 184 |
+
Likewise, parameter uncertainty and diagnostics are recorded, not independently
|
| 185 |
+
recalculated. Structural acceptance of a release is not scientific endorsement.
|
| 186 |
+
|
| 187 |
+
`hub-plan` includes registered artifact dependencies and the sealed runs needed
|
| 188 |
+
by calibration artifacts. Derived reports are not uploaded automatically. Upload
|
| 189 |
+
refuses to overwrite a different existing artifact or sealed run. A pinned
|
| 190 |
+
`hub-pull` restores all registered definitions and responses and validates them
|
| 191 |
+
before exposing the new local archive.
|
| 192 |
+
|
| 193 |
+
Artifact JSON files, including an entire registered item bank, are loaded into
|
| 194 |
+
memory for validation; response rows are streamed. Plan memory for the full bank
|
| 195 |
+
and disk space for preserved raw files, normalized records, temporary indexes
|
| 196 |
+
and transfer snapshots.
|
| 197 |
+
|
| 198 |
+
The release folders support future evaluation tooling, but that tooling still
|
| 199 |
+
needs to estimate new models' abilities and uncertainty on the frozen scale.
|
| 200 |
+
The filesystem alone does not deliver calibrated scoring or a validated short
|
| 201 |
+
form. It also does not establish that the provisional 20/100-checkpoint budgets
|
| 202 |
+
or any language count provide sufficient calibration data.
|
FILESYSTEM_DIAGRAMS.md
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Babel Tower filesystem: before and after
|
| 2 |
+
|
| 3 |
+
The filesystem is the project’s archive format: named folders, JSON definitions,
|
| 4 |
+
original evaluation files, normalized item responses, and checks that keep these
|
| 5 |
+
files consistent. Hugging Face hosts a copy of the archive and the downloadable
|
| 6 |
+
toolkit. It does not run model evaluations or fit calibration models merely
|
| 7 |
+
because these files are uploaded.
|
| 8 |
+
|
| 9 |
+
The diagrams show the **supported folder layout**, including the contents of a
|
| 10 |
+
future run or registered artifact. The production archive currently contains no
|
| 11 |
+
real model results or fitted calibration. Synthetic examples are separate from
|
| 12 |
+
production data.
|
| 13 |
+
|
| 14 |
+
## Before: v1.2, organized around experiment runs
|
| 15 |
+
|
| 16 |
+

|
| 17 |
+
|
| 18 |
+
This version preserved raw evaluation output, normalized individual responses,
|
| 19 |
+
and compared corresponding items. Experiment descriptions lived in each run’s
|
| 20 |
+
metadata or attachments. There were no dedicated, validated collections defining
|
| 21 |
+
the common question bank, scoring protocols, model-family splits, calibrated
|
| 22 |
+
parameters, or released benchmark.
|
| 23 |
+
|
| 24 |
+
```mermaid
|
| 25 |
+
flowchart TD
|
| 26 |
+
A["babel-data/"] --> S["store.json<br/>Archive identity and HF destination"]
|
| 27 |
+
A --> R["runs/<run-id>/<br/>One evaluated model per run"]
|
| 28 |
+
R --> M["manifest.json<br/>Metadata, hashes, status"]
|
| 29 |
+
R --> W["raw/<br/>Original evaluation files"]
|
| 30 |
+
R --> N["records/<br/>Normalized item responses"]
|
| 31 |
+
R --> T["attachments/<br/>Explicitly attached files"]
|
| 32 |
+
A --> D["derived/<br/>Local summaries, exports and comparisons"]
|
| 33 |
+
```
|
| 34 |
+
|
| 35 |
+
## After: definitions, measurements, calibration and release
|
| 36 |
+
|
| 37 |
+

|
| 38 |
+
|
| 39 |
+
The five added collections make the benchmark’s definitions and outputs
|
| 40 |
+
addressable parts of the archive. Each registered version has its own `<id>`
|
| 41 |
+
folder, a `manifest.json` describing its identity and integrity, and an
|
| 42 |
+
`artifact.json` containing its data. A new version gets a new identity; later
|
| 43 |
+
experiments can still refer to an earlier version.
|
| 44 |
+
|
| 45 |
+
```mermaid
|
| 46 |
+
flowchart TD
|
| 47 |
+
A["babel-data/"] --> S["store.json<br/>Archive identity and HF destination"]
|
| 48 |
+
A --> B["item-banks/<id>/<br/>Question identities, translations, scripts,<br/>keys, sources, groups and exclusions"]
|
| 49 |
+
B --> BF["manifest.json + artifact.json"]
|
| 50 |
+
A --> P["protocols/<id>/<br/>Task prompts, demonstrations<br/>and candidate-scoring rules"]
|
| 51 |
+
P --> PF["manifest.json + artifact.json"]
|
| 52 |
+
A --> F["model-panels/<id>/<br/>Checkpoint revisions, families<br/>and family-level split assignments"]
|
| 53 |
+
F --> FF["manifest.json + artifact.json"]
|
| 54 |
+
A --> R["runs/<run-id>/<br/>Strict runs link to bank, protocol and panel"]
|
| 55 |
+
R --> RM["manifest.json<br/>Context, references, hashes and status"]
|
| 56 |
+
R --> RW["raw/<br/>Original evaluation output"]
|
| 57 |
+
R --> RN["records/<br/>Exact prompts, option measurements,<br/>predictions and correctness"]
|
| 58 |
+
R --> RT["attachments/<br/>Supporting files"]
|
| 59 |
+
A --> C["calibrations/<id>/<br/>Imported fitted parameters, scale,<br/>diagnostics and input-run references"]
|
| 60 |
+
C --> CF["manifest.json + artifact.json"]
|
| 61 |
+
A --> L["releases/<id>/<br/>Fixed bank, protocols and calibration,<br/>weighting and documented limits"]
|
| 62 |
+
L --> LF["manifest.json + artifact.json"]
|
| 63 |
+
A --> D["derived/<br/>Local reports and response-matrix exports"]
|
| 64 |
+
classDef added fill:#edf6f2,stroke:#719b8a,color:#183c30;
|
| 65 |
+
class B,P,F,C,L added;
|
| 66 |
+
```
|
| 67 |
+
|
| 68 |
+
The lines in both diagrams mean “contains.” References between definitions are
|
| 69 |
+
stored inside their JSON files; they are not duplicated folders. For example, a
|
| 70 |
+
strict run refers to a particular bank and protocol, a calibration refers to its input
|
| 71 |
+
runs, and a release identifies the definitions and fitted calibration that make
|
| 72 |
+
up that benchmark version.
|
| 73 |
+
|
| 74 |
+
## What the new folders mean for this project
|
| 75 |
+
|
| 76 |
+
| Folder | What belongs here |
|
| 77 |
+
|---|---|
|
| 78 |
+
| `item-banks/` | The selected Belebele, GlobalPIQA Parallel and SIB-200 questions and translated versions, stable identities, language/script identifiers, answer keys, pinned source versions, passage/overlap group information and documented exclusions. This is where the actual coverage audit is represented; “100+ languages” is not assumed merely from folder names. |
|
| 79 |
+
| `protocols/` | The task’s declared prompt, demonstration settings, candidate text or label scoring, and normalization rules. Development definitions may be unfrozen; strict runs require a frozen version. |
|
| 80 |
+
| `model-panels/` | Evaluated checkpoints and their exact revisions, model-family identities and calibration/development/final-validation assignments. Assigning the whole family to one group prevents putting different checkpoints of that family on both sides of a holdout. |
|
| 81 |
+
| `runs/` | Actual model measurements: which item was evaluated, which settings and model were used, the exact recorded prompt, each option’s scores and lengths, the selected answer and correctness. Original output remains in `raw/`. |
|
| 82 |
+
| `calibrations/` | Results produced by an external fitting program: item parameters, the chosen reference scale, diagnostics, validation evidence, and the archived responses used. Recording an IRT model name does not perform that fit. |
|
| 83 |
+
| `releases/` | A fixed combination of bank, protocols and calibration, together with declared weighting and measurement limits. Task-specific results remain identifiable; any overall weighting must be declared. |
|
| 84 |
+
| `derived/` | Reproducible local analysis products such as comparison reports and response matrices. These are outputs, rather than the authoritative original evaluation data. |
|
| 85 |
+
|
| 86 |
+
An exact prompt can only be preserved if the evaluation producer supplies it.
|
| 87 |
+
The archive does not reconstruct prompts, token/byte lengths, or scores that
|
| 88 |
+
were never recorded. Likewise, storing passage groups enables later analyses to
|
| 89 |
+
account for shared passages; it does not itself calculate clustered uncertainty.
|
| 90 |
+
|
| 91 |
+
Validation checks data structure, supported relationships and file integrity.
|
| 92 |
+
It cannot establish that a translation is correct, a likelihood was computed
|
| 93 |
+
properly, an IRT assumption holds, or a benchmark measures every aspect of
|
| 94 |
+
language capability. Those remain empirical evaluation and statistical tasks.
|
| 95 |
+
|
| 96 |
+
The hidden `.locks/` and `.staging/` folders support safe writes and are omitted
|
| 97 |
+
from the diagrams. The Python toolkit, documentation, example definitions and
|
| 98 |
+
synthetic demonstration stores sit outside `babel-data/`. Local derived reports
|
| 99 |
+
are not automatically part of a Hugging Face archive upload.
|
FORMAT.md
CHANGED
|
@@ -1,4 +1,10 @@
|
|
| 1 |
-
# Data contract, version 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
Raw files are immutable through the application and authoritative. The normalized
|
| 4 |
records are an analysis representation. They do not replace the source data or
|
|
@@ -16,6 +22,7 @@ within a run. A paired input line produces two records.
|
|
| 16 |
| `question_id` | Persistent identity of the underlying question; shared by its variants. |
|
| 17 |
| `variant_id` | E.g. `original`, `rephrased`, or a distinct rephrasing identifier. |
|
| 18 |
| `benchmark` | Benchmark/task name, supplied by the record or run metadata. |
|
|
|
|
| 19 |
| `language` | Language identifier or null. No language is guessed from a path. |
|
| 20 |
| `model` | Evaluated model; must match run metadata. |
|
| 21 |
| `rephrasing_model` | Model that generated the variant, when known. |
|
|
@@ -124,7 +131,7 @@ comparison summary. `.html`, `.csv`, and `.jsonl` select the format; an explicit
|
|
| 124 |
Known conflicting dataset revisions in a cross-run comparison are rejected.
|
| 125 |
|
| 126 |
One report item represents the union of stable identities on the two selected
|
| 127 |
-
sides. Its identity is `(benchmark, language, question_id, filter, repeat_id)`.
|
| 128 |
Matched items contain both records; unmatched items retain the available side.
|
| 129 |
Run-local identities are excluded, with counts for each side in the summary.
|
| 130 |
Duplicate stable identities are an error, not an arbitrary choice of one record.
|
|
@@ -165,3 +172,19 @@ After downloading a Hub repository, run `python3 -m babel_fs --root DOWNLOADED_F
|
|
| 165 |
init` to recreate empty local operational directories that remote repositories
|
| 166 |
cannot preserve. Then run `validate`. Missing registered data remains an error;
|
| 167 |
initialization does not fabricate or recover lost results.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Data contract, archive schema version 1
|
| 2 |
+
|
| 3 |
+
Toolkit 1.3.0 retains the legacy archive/record version for compatibility and adds
|
| 4 |
+
version-1 registered benchmark artifacts. See [ARTIFACTS.md](ARTIFACTS.md) and
|
| 5 |
+
[BENCHMARK_WORKFLOW.md](BENCHMARK_WORKFLOW.md) for the strict benchmark contract.
|
| 6 |
+
Runs without `benchmark_contract` remain legacy/general-purpose runs.
|
| 7 |
+
|
| 8 |
|
| 9 |
Raw files are immutable through the application and authoritative. The normalized
|
| 10 |
records are an analysis representation. They do not replace the source data or
|
|
|
|
| 22 |
| `question_id` | Persistent identity of the underlying question; shared by its variants. |
|
| 23 |
| `variant_id` | E.g. `original`, `rephrased`, or a distinct rephrasing identifier. |
|
| 24 |
| `benchmark` | Benchmark/task name, supplied by the record or run metadata. |
|
| 25 |
+
| `script` (optional in legacy records) | Script identifier; separate scripts never share an item identity. Required for strict benchmark records. |
|
| 26 |
| `language` | Language identifier or null. No language is guessed from a path. |
|
| 27 |
| `model` | Evaluated model; must match run metadata. |
|
| 28 |
| `rephrasing_model` | Model that generated the variant, when known. |
|
|
|
|
| 131 |
Known conflicting dataset revisions in a cross-run comparison are rejected.
|
| 132 |
|
| 133 |
One report item represents the union of stable identities on the two selected
|
| 134 |
+
sides. Its identity is `(benchmark, language, script, question_id, filter, repeat_id)`.
|
| 135 |
Matched items contain both records; unmatched items retain the available side.
|
| 136 |
Run-local identities are excluded, with counts for each side in the summary.
|
| 137 |
Duplicate stable identities are an error, not an arbitrary choice of one record.
|
|
|
|
| 172 |
init` to recreate empty local operational directories that remote repositories
|
| 173 |
cannot preserve. Then run `validate`. Missing registered data remains an error;
|
| 174 |
initialization does not fabricate or recover lost results.
|
| 175 |
+
|
| 176 |
+
## Registered benchmark extensions
|
| 177 |
+
|
| 178 |
+
The five artifact registries are `item-banks/`, `protocols/`, `model-panels/`,
|
| 179 |
+
`calibrations/`, and `releases/`. Each immutable ID stores `manifest.json` and
|
| 180 |
+
`artifact.json`; references pin the payload SHA-256. `validate` checks all
|
| 181 |
+
registered artifacts and their dependencies as well as runs. `hub-plan` includes
|
| 182 |
+
all registered artifacts and adds calibration input runs even when a narrower
|
| 183 |
+
run selection was requested. `hub-pull` restores and validates that dependency
|
| 184 |
+
set from one pinned commit.
|
| 185 |
+
|
| 186 |
+
For strict runs, identity also includes the explicit script; comparisons require
|
| 187 |
+
the same bank and protocol references. Different checkpoints are intentionally
|
| 188 |
+
comparable. A response matrix preserves shared global IDs across languages while
|
| 189 |
+
keeping their separate observations and all family/split/grouping identifiers.
|
| 190 |
+
It does not pool correctness across languages or estimate any IRT parameters.
|
LEGACY_REPHRASING_SOURCES.json
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": 1,
|
| 3 |
+
"purpose": "Pinned benchmark inputs; these files are not model evaluation results.",
|
| 4 |
+
"results_repository": "base-model-evals/off-the-shelf-model-evals",
|
| 5 |
+
"verified_at": "2026-09-21",
|
| 6 |
+
"datasets": [
|
| 7 |
+
{
|
| 8 |
+
"repo_id": "base-model-evals/global-mmlu-rephrased",
|
| 9 |
+
"revision": "cd6952c6df3e52034886603e36c5ce4796f0777f",
|
| 10 |
+
"benchmark": "global-mmlu",
|
| 11 |
+
"row_counts": {
|
| 12 |
+
"all": 156,
|
| 13 |
+
"high_quality": 138,
|
| 14 |
+
"low_quality": 18
|
| 15 |
+
},
|
| 16 |
+
"license_from_dataset_card": "cc-by-nc-4.0",
|
| 17 |
+
"configs": [
|
| 18 |
+
"all",
|
| 19 |
+
"high_quality",
|
| 20 |
+
"low_quality"
|
| 21 |
+
],
|
| 22 |
+
"split": "train",
|
| 23 |
+
"files": [
|
| 24 |
+
"high_quality/train-00000-of-00001.parquet",
|
| 25 |
+
"low_quality/train-00000-of-00001.parquet"
|
| 26 |
+
],
|
| 27 |
+
"url": "https://huggingface.co/datasets/base-model-evals/global-mmlu-rephrased",
|
| 28 |
+
"card_url": "https://huggingface.co/datasets/base-model-evals/global-mmlu-rephrased/blob/cd6952c6df3e52034886603e36c5ce4796f0777f/README.md"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"repo_id": "base-model-evals/belebele-rephrased",
|
| 32 |
+
"revision": "e926d6cc0c50196e0d8bb0d018d9fbf1283dd2e8",
|
| 33 |
+
"benchmark": "belebele",
|
| 34 |
+
"row_counts": {
|
| 35 |
+
"all": 157,
|
| 36 |
+
"high_quality": 125,
|
| 37 |
+
"low_quality": 32
|
| 38 |
+
},
|
| 39 |
+
"license_from_dataset_card": "cc-by-nc-sa-4.0",
|
| 40 |
+
"configs": [
|
| 41 |
+
"all",
|
| 42 |
+
"high_quality",
|
| 43 |
+
"low_quality"
|
| 44 |
+
],
|
| 45 |
+
"split": "train",
|
| 46 |
+
"files": [
|
| 47 |
+
"high_quality/train-00000-of-00001.parquet",
|
| 48 |
+
"low_quality/train-00000-of-00001.parquet"
|
| 49 |
+
],
|
| 50 |
+
"url": "https://huggingface.co/datasets/base-model-evals/belebele-rephrased",
|
| 51 |
+
"card_url": "https://huggingface.co/datasets/base-model-evals/belebele-rephrased/blob/e926d6cc0c50196e0d8bb0d018d9fbf1283dd2e8/README.md"
|
| 52 |
+
}
|
| 53 |
+
],
|
| 54 |
+
"input_fields": [
|
| 55 |
+
"id",
|
| 56 |
+
"language",
|
| 57 |
+
"original_question",
|
| 58 |
+
"original_choices",
|
| 59 |
+
"correct_index",
|
| 60 |
+
"context",
|
| 61 |
+
"rephrased_prefix",
|
| 62 |
+
"rephrased_choices",
|
| 63 |
+
"rephrasing_model",
|
| 64 |
+
"judge_overall_score"
|
| 65 |
+
],
|
| 66 |
+
"interpretation": {
|
| 67 |
+
"stable_question_id": "id",
|
| 68 |
+
"correct_index": "Zero-based position in rephrased_choices, as documented in the source cards. Validate original-choice answer keys separately.",
|
| 69 |
+
"judge_overall_score": "Rewrite quality, not evaluated-model accuracy.",
|
| 70 |
+
"all_configuration": "Combines high_quality and low_quality; do not double-count them.",
|
| 71 |
+
"rephrasing_model": "CohereForAI/aya-expanse-8b",
|
| 72 |
+
"languages": [
|
| 73 |
+
"en",
|
| 74 |
+
"fr",
|
| 75 |
+
"ko",
|
| 76 |
+
"tr"
|
| 77 |
+
]
|
| 78 |
+
}
|
| 79 |
+
}
|
README.md
CHANGED
|
@@ -1,171 +1,146 @@
|
|
| 1 |
---
|
| 2 |
-
pretty_name: Babel Tower
|
| 3 |
-
viewer: false
|
| 4 |
tags:
|
| 5 |
- evaluation
|
| 6 |
- multilingual
|
| 7 |
- babel-tower
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
- fr
|
| 11 |
-
- ko
|
| 12 |
-
- tr
|
| 13 |
---
|
|
|
|
| 14 |
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
original/rephrased variants, and the settings needed to interpret each run.
|
| 20 |
-
|
| 21 |
-
The archive is initialized and ready for runs. **No measured model results have
|
| 22 |
-
been added yet.** The downloadable toolkit includes a separately labeled synthetic
|
| 23 |
-
demo; those demonstration records are not published as evaluation runs here.
|
| 24 |
-
|
| 25 |
-
**See an item-level comparison:** [Download the interactive demo report](https://huggingface.co/datasets/base-model-evals/off-the-shelf-model-evals/resolve/main/item-comparison-demo.html?download=true)
|
| 26 |
-
and open it in your browser. It shows original and rephrased questions, model
|
| 27 |
-
answers, correctness, and available scores side by side, with search and filters.
|
| 28 |
-
The demo uses synthetic results and works offline after downloading.
|
| 29 |
-
|
| 30 |
-
## Start here
|
| 31 |
-
|
| 32 |
-
1. [Download the filesystem toolkit](https://huggingface.co/datasets/base-model-evals/off-the-shelf-model-evals/resolve/main/babel-tower-filesystem.zip?download=true) and extract it.
|
| 33 |
-
2. Open `START_HERE.md`, or run `./babel` from the extracted folder to check local setup.
|
| 34 |
-
3. Follow the workflow below to import real JSONL outputs, verify them, and add a sealed run.
|
| 35 |
-
|
| 36 |
-
The toolkit requires Python 3.10+ on macOS/Linux. Local import, validation,
|
| 37 |
-
comparison, and CSV/JSONL export work without additional Python packages.
|
| 38 |
-
Hugging Face transfer support is an optional dependency.
|
| 39 |
-
|
| 40 |
-
## What lives here
|
| 41 |
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
| [FORMAT.md](FORMAT.md) | Normalized record schema, provenance, validation, and recovery rules. |
|
| 47 |
-
| [RUN_TEMPLATE.json](RUN_TEMPLATE.json) | Example run metadata; replace placeholders with actual evaluation settings. |
|
| 48 |
-
| `babel-tower-filesystem.zip` | Runnable tools, tests, documentation, and a separate synthetic example. |
|
| 49 |
-
| `item-comparison-demo.html` | Downloadable, self-contained item comparison using synthetic results. |
|
| 50 |
-
| `runs/<run-id>/manifest.json` | Created for each real run: settings, file hashes, counts, and status. |
|
| 51 |
-
| `runs/<run-id>/raw/` | Original JSONL outputs, preserved byte for byte. |
|
| 52 |
-
| `runs/<run-id>/records/` | Normalized records for comparisons and summaries. |
|
| 53 |
-
| `runs/<run-id>/attachments/` | Original configs, aggregate harness output, and input snapshots. |
|
| 54 |
|
| 55 |
-
|
| 56 |
-
|
|
|
|
|
|
|
|
|
|
| 57 |
|
| 58 |
-
##
|
| 59 |
|
| 60 |
-
|
| 61 |
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
| [Global MMLU rephrased](https://huggingface.co/datasets/base-model-evals/global-mmlu-rephrased) | `cd6952c6df3e52034886603e36c5ce4796f0777f` | `all`, `high_quality`, or `low_quality`; split `train` |
|
| 65 |
-
| [Belebele rephrased](https://huggingface.co/datasets/base-model-evals/belebele-rephrased) | `e926d6cc0c50196e0d8bb0d018d9fbf1283dd2e8` | `all`, `high_quality`, or `low_quality`; split `train` |
|
| 66 |
|
| 67 |
-
|
| 68 |
-
The `all` configuration already combines high- and low-quality rows. In these
|
| 69 |
-
source cards, `correct_index` refers to the **rephrased choices**: check the original
|
| 70 |
-
answer key before comparing correctness. `judge_overall_score` measures rewrite
|
| 71 |
-
quality and must not be treated as an evaluated model's accuracy.
|
| 72 |
|
| 73 |
-
|
| 74 |
-
archive does not replace the sources' licenses or assign one blanket license to
|
| 75 |
-
future model outputs.
|
| 76 |
|
| 77 |
-
|
|
|
|
|
|
|
| 78 |
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
|
| 83 |
```sh
|
| 84 |
-
./babel
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
./babel import experiment-001 /path/to/original-samples.jsonl \
|
| 89 |
-
--format harness --variant original
|
| 90 |
-
./babel import experiment-001 /path/to/rephrased-samples.jsonl \
|
| 91 |
-
--format harness --variant rephrased
|
| 92 |
-
|
| 93 |
-
./babel attach experiment-001 /path/to/evaluation-config.yaml /path/to/results.json
|
| 94 |
-
./babel validate --run experiment-001
|
| 95 |
-
./babel compare experiment-001 --items comparison.html
|
| 96 |
-
./babel seal experiment-001
|
| 97 |
-
./babel hub-plan --run experiment-001
|
| 98 |
```
|
| 99 |
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
evaluation did not calculate.
|
| 105 |
|
| 106 |
-
|
|
|
|
|
|
|
| 107 |
|
| 108 |
-
|
| 109 |
-
python3 -m pip install '.[hub]'
|
| 110 |
-
hf auth login
|
| 111 |
-
./babel hub-push --run experiment-001
|
| 112 |
-
```
|
| 113 |
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
exact
|
| 117 |
-
|
|
|
|
|
|
|
|
|
|
| 118 |
|
| 119 |
-
|
|
|
|
|
|
|
| 120 |
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
```
|
| 126 |
|
| 127 |
-
|
| 128 |
-
folders, and refuses to overwrite an existing destination. Add `--revision` to
|
| 129 |
-
select a specific commit or tag. Documentation and the toolkit remain available
|
| 130 |
-
from this repository's Files tab.
|
| 131 |
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
|
| 137 |
```sh
|
| 138 |
-
./babel
|
| 139 |
-
./babel
|
| 140 |
-
./babel
|
|
|
|
| 141 |
```
|
| 142 |
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
format, or supply `--format html`, `--format csv`, or `--format jsonl` with
|
| 148 |
-
`--items`. Existing report files are never overwritten.
|
| 149 |
-
|
| 150 |
-
The command still prints the summary and report metadata. Use `--baseline` and
|
| 151 |
-
`--variant` to select other variants, or add `--other-run RUN-ID` to compare runs.
|
| 152 |
-
Reports are local derived files and are not automatically sent by `hub-push`.
|
| 153 |
-
|
| 154 |
-
## Analysis and integrity
|
| 155 |
-
|
| 156 |
-
Summaries report total and scored counts separately. Comparisons join stable
|
| 157 |
-
question identities, language, benchmark, filter, and repeat identifier. They
|
| 158 |
-
report improvements, regressions, unscored pairs, and missing matches. Item-level
|
| 159 |
-
reports include unmatched stable items; run-local identities are excluded and
|
| 160 |
-
counted because their pairing cannot be established reliably. Known conflicting
|
| 161 |
-
dataset revisions are rejected for cross-run comparisons.
|
| 162 |
-
|
| 163 |
-
Correctness uses each version's own answer key. Missing correctness stays
|
| 164 |
-
unscored. The reports display recorded log probabilities without inventing score
|
| 165 |
-
differences; choice indices alone are not treated as semantic answer agreement.
|
| 166 |
-
|
| 167 |
-
Raw files are retained alongside normalized files. SHA-256 hashes, duplicate
|
| 168 |
-
checks, transactional imports, sealed runs, and explicit version metadata protect
|
| 169 |
-
the archive from accidental corruption. CSV and optional Parquet are derived
|
| 170 |
-
analysis exports. The automatic Dataset Viewer is disabled because this repository
|
| 171 |
-
is a heterogeneous experiment archive; metadata files are not benchmark rows.
|
|
|
|
| 1 |
---
|
| 2 |
+
pretty_name: Babel Tower benchmark archive
|
|
|
|
| 3 |
tags:
|
| 4 |
- evaluation
|
| 5 |
- multilingual
|
| 6 |
- babel-tower
|
| 7 |
+
- item-response-theory
|
| 8 |
+
viewer: false
|
|
|
|
|
|
|
|
|
|
| 9 |
---
|
| 10 |
+
# Babel Tower benchmark archive
|
| 11 |
|
| 12 |
+
**Filesystem toolkit 1.3.0** provides versioned storage and validation for the
|
| 13 |
+
proposed multilingual difficulty-calibrated benchmark. It connects a question
|
| 14 |
+
bank, evaluation protocols, model-family panels, item-level responses, external
|
| 15 |
+
calibration results, and frozen benchmark releases.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
+
**Current data status:** no real evaluation runs, complete foundation item bank,
|
| 18 |
+
or fitted calibration parameters have been published here. The toolkit includes
|
| 19 |
+
separate synthetic examples. Uploading the filesystem does not run experiments,
|
| 20 |
+
fit IRT models, or establish that the proposed benchmark works.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
+
[Download the updated toolkit](https://huggingface.co/datasets/base-model-evals/off-the-shelf-model-evals/resolve/main/babel-tower-filesystem.zip?download=true)
|
| 23 |
+
and extract it. Open `START_HERE.md`, then follow
|
| 24 |
+
[the benchmark workflow](BENCHMARK_WORKFLOW.md).
|
| 25 |
+
Python 3.10+ on macOS/Linux supports local operations without extra packages.
|
| 26 |
+
Hugging Face transfer and Parquet export are optional dependencies.
|
| 27 |
|
| 28 |
+
## Before: results organized by experiment run
|
| 29 |
|
| 30 |
+

|
| 31 |
|
| 32 |
+
The earlier structure preserved raw results and normalized item responses. Bank,
|
| 33 |
+
protocol, model-panel and calibration definitions had no first-class validation.
|
|
|
|
|
|
|
| 34 |
|
| 35 |
+
## After: a versioned benchmark archive
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
+

|
|
|
|
|
|
|
| 38 |
|
| 39 |
+
The diagram shows the supported layout. Empty folders are created locally by
|
| 40 |
+
`init`; actual artifact and run directories appear on the Hub when registered
|
| 41 |
+
content is uploaded. See [the full diagram explanation](FILESYSTEM_DIAGRAMS.md).
|
| 42 |
|
| 43 |
+
| Collection | Purpose |
|
| 44 |
+
|---|---|
|
| 45 |
+
| `item-banks/<id>/` | Shared question identities, translated items, language/script, choices and keys, source revisions, passages/overlap groups and exclusions. |
|
| 46 |
+
| `protocols/<id>/` | Task prompts, demonstrations, candidate text/label scoring, normalization and harness configuration. |
|
| 47 |
+
| `model-panels/<id>/` | Checkpoint revisions, base-model declarations, family identities and calibration/development/validation splits. |
|
| 48 |
+
| `runs/<id>/` | Original evaluation files and checked item responses tied to exact bank, protocol and checkpoint references. |
|
| 49 |
+
| `calibrations/<id>/` | Imported IRT parameters, scale, uncertainty fields, diagnostics, validation evidence and hash-pinned input runs. |
|
| 50 |
+
| `releases/<id>/` | A frozen compatible bank/protocol/calibration combination with declared weights and limitations. |
|
| 51 |
+
|
| 52 |
+
Every new registered artifact contains an `artifact.json` payload and
|
| 53 |
+
`manifest.json` integrity record. Existing IDs cannot be overwritten through the
|
| 54 |
+
toolkit. New versions use new IDs. Existing legacy runs remain supported.
|
| 55 |
+
|
| 56 |
+
## What changed
|
| 57 |
+
|
| 58 |
+
- Strict benchmark runs validate question/script identity, answer keys, exact
|
| 59 |
+
checkpoint revisions and frozen per-task protocol references.
|
| 60 |
+
- Candidate scores and lengths must align. UTF-8 byte lengths are checked, and
|
| 61 |
+
declared normalization determines the prediction and correctness checks.
|
| 62 |
+
- Entire declared model families stay in one split. Calibration input roles must
|
| 63 |
+
match those assignments, and releases reference held-out validation runs.
|
| 64 |
+
- A bank audit reports counts, exclusions, missing translation rows, exact-content
|
| 65 |
+
duplicates and declared grouping. It does not judge translation quality.
|
| 66 |
+
- Response-matrix export retains global IDs, languages/scripts, family splits,
|
| 67 |
+
passage/overlap groups and exact provenance for an external statistical program.
|
| 68 |
+
- Hugging Face transfer includes the new definitions and their dependencies,
|
| 69 |
+
verifies integrity, and refuses conflicting existing artifacts or sealed runs.
|
| 70 |
+
|
| 71 |
+
These checks establish file/schema consistency, not scientific validity.
|
| 72 |
+
Exact prompts are preserved when supplied; token counts and model execution
|
| 73 |
+
cannot be independently verified without the actual evaluation environment.
|
| 74 |
+
|
| 75 |
+
## Foundation sources
|
| 76 |
+
|
| 77 |
+
The proposed first version uses
|
| 78 |
+
[Belebele](https://huggingface.co/datasets/facebook/belebele),
|
| 79 |
+
[GlobalPIQA Parallel](https://huggingface.co/datasets/mrlbenchmarks/global-piqa-parallel),
|
| 80 |
+
and the [SIB-200 test set](https://huggingface.co/datasets/Davlan/sib200).
|
| 81 |
+
[SOURCES.json](SOURCES.json) records candidate upstream commit pins. The actual
|
| 82 |
+
language/script intersection, counts, exclusions and FLORES overlap still need
|
| 83 |
+
an audit. No new translation or non-parallel component is included in this plan.
|
| 84 |
+
|
| 85 |
+
The earlier Belebele/Global MMLU rephrasing sources remain recorded in
|
| 86 |
+
[LEGACY_REPHRASING_SOURCES.json](LEGACY_REPHRASING_SOURCES.json) for earlier work.
|
| 87 |
+
Source datasets retain their own licenses and usage terms; this archive does not
|
| 88 |
+
assign a blanket license to future model outputs.
|
| 89 |
+
|
| 90 |
+
## Try the complete synthetic storage example
|
| 91 |
+
|
| 92 |
+
From the extracted toolkit:
|
| 93 |
|
| 94 |
```sh
|
| 95 |
+
./babel --root new-example benchmark-demo
|
| 96 |
+
./babel --root new-example validate
|
| 97 |
+
./babel --root new-example bank-audit demo-bank-v1
|
| 98 |
+
./babel --root new-example artifacts
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 99 |
```
|
| 100 |
|
| 101 |
+
This creates two handwritten question identities in two languages, three
|
| 102 |
+
fictional checkpoints, twelve handwritten responses, and illustrative
|
| 103 |
+
calibration/release artifacts. **No model or IRT fitting program is run.**
|
| 104 |
+
The ZIP also contains an already-built `benchmark-demo-store/`.
|
|
|
|
| 105 |
|
| 106 |
+
The previous [item comparison demonstration](https://huggingface.co/datasets/base-model-evals/off-the-shelf-model-evals/resolve/main/item-comparison-demo.html?download=true)
|
| 107 |
+
remains available for download. It uses synthetic original/rephrased responses.
|
| 108 |
+
Real strict runs can also be compared item by item under compatible definitions.
|
| 109 |
|
| 110 |
+
## Real workflow
|
|
|
|
|
|
|
|
|
|
|
|
|
| 111 |
|
| 112 |
+
1. Assemble and audit the bank; register its definition, task protocols and model panel.
|
| 113 |
+
2. Run evaluations using lm-evaluation-harness or another producer, recording the
|
| 114 |
+
exact prompts, candidates, likelihoods and lengths required by the contract.
|
| 115 |
+
3. Import canonical responses, attach original logs/configurations, validate and seal.
|
| 116 |
+
4. Export a response matrix. Use a separate program for hierarchical Rasch/2PL
|
| 117 |
+
fitting, uncertainty, linking checks and held-out-family validation.
|
| 118 |
+
5. Register the actual fitting outputs and release definitions, then upload them.
|
| 119 |
|
| 120 |
+
Read [BENCHMARK_WORKFLOW.md](BENCHMARK_WORKFLOW.md), [ARTIFACTS.md](ARTIFACTS.md),
|
| 121 |
+
and [FORMAT.md](FORMAT.md) for commands, schemas and limits.
|
| 122 |
+
[VERIFICATION.md](VERIFICATION.md) records software validation.
|
| 123 |
|
| 124 |
+
The toolkit does not yet run IRT fitting, score future models on a calibrated
|
| 125 |
+
scale, compute clustered confidence intervals, apply overall release weights,
|
| 126 |
+
or select/validate short forms. Ordinary accuracy summaries remain ordinary
|
| 127 |
+
accuracy. The filesystem now preserves the data these analyses need.
|
|
|
|
| 128 |
|
| 129 |
+
## Transfer and restore
|
|
|
|
|
|
|
|
|
|
| 130 |
|
| 131 |
+
`hub-plan` previews registered artifacts, selected sealed runs and calibration
|
| 132 |
+
run dependencies. `hub-push` uses the configured public project repository.
|
| 133 |
+
Command-line uploads use the Hugging Face client's authentication; browser sign-in
|
| 134 |
+
is separate. Reports in `derived/` are not uploaded automatically.
|
| 135 |
|
| 136 |
```sh
|
| 137 |
+
./babel hub-plan
|
| 138 |
+
./babel hub-push
|
| 139 |
+
./babel hub-pull --repo base-model-evals/off-the-shelf-model-evals \
|
| 140 |
+
--destination /path/to/new-local-archive
|
| 141 |
```
|
| 142 |
|
| 143 |
+
A pull resolves one commit, validates the registered files and references, and
|
| 144 |
+
refuses to overwrite an existing local destination. The Dataset Viewer is disabled
|
| 145 |
+
because this repository contains heterogeneous archive files rather than one
|
| 146 |
+
uniform data table.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SOURCES.json
CHANGED
|
@@ -1,79 +1,48 @@
|
|
| 1 |
{
|
| 2 |
"schema_version": 1,
|
| 3 |
-
"purpose": "
|
| 4 |
-
"
|
| 5 |
-
"
|
|
|
|
|
|
|
| 6 |
"datasets": [
|
| 7 |
{
|
| 8 |
-
"
|
| 9 |
-
"
|
| 10 |
-
"
|
| 11 |
-
"
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
},
|
| 16 |
-
"license_from_dataset_card": "cc-by-nc-4.0",
|
| 17 |
-
"configs": [
|
| 18 |
-
"all",
|
| 19 |
-
"high_quality",
|
| 20 |
-
"low_quality"
|
| 21 |
-
],
|
| 22 |
-
"split": "train",
|
| 23 |
-
"files": [
|
| 24 |
-
"high_quality/train-00000-of-00001.parquet",
|
| 25 |
-
"low_quality/train-00000-of-00001.parquet"
|
| 26 |
-
],
|
| 27 |
-
"url": "https://huggingface.co/datasets/base-model-evals/global-mmlu-rephrased",
|
| 28 |
-
"card_url": "https://huggingface.co/datasets/base-model-evals/global-mmlu-rephrased/blob/cd6952c6df3e52034886603e36c5ce4796f0777f/README.md"
|
| 29 |
},
|
| 30 |
{
|
| 31 |
-
"
|
| 32 |
-
"
|
| 33 |
-
"
|
| 34 |
-
"
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
"
|
| 46 |
-
"
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
"
|
| 51 |
-
"card_url": "https://huggingface.co/datasets/base-model-evals/belebele-rephrased/blob/e926d6cc0c50196e0d8bb0d018d9fbf1283dd2e8/README.md"
|
| 52 |
}
|
| 53 |
],
|
| 54 |
-
"
|
| 55 |
-
"
|
| 56 |
-
"
|
| 57 |
-
"
|
| 58 |
-
"
|
| 59 |
-
"
|
| 60 |
-
|
| 61 |
-
"rephrased_prefix",
|
| 62 |
-
"rephrased_choices",
|
| 63 |
-
"rephrasing_model",
|
| 64 |
-
"judge_overall_score"
|
| 65 |
-
],
|
| 66 |
-
"interpretation": {
|
| 67 |
-
"stable_question_id": "id",
|
| 68 |
-
"correct_index": "Zero-based position in rephrased_choices, as documented in the source cards. Validate original-choice answer keys separately.",
|
| 69 |
-
"judge_overall_score": "Rewrite quality, not evaluated-model accuracy.",
|
| 70 |
-
"all_configuration": "Combines high_quality and low_quality; do not double-count them.",
|
| 71 |
-
"rephrasing_model": "CohereForAI/aya-expanse-8b",
|
| 72 |
-
"languages": [
|
| 73 |
-
"en",
|
| 74 |
-
"fr",
|
| 75 |
-
"ko",
|
| 76 |
-
"tr"
|
| 77 |
-
]
|
| 78 |
-
}
|
| 79 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"schema_version": 1,
|
| 3 |
+
"purpose": "Candidate upstream pins for the proposed existing-parallel-resource foundation; not an assembled item bank or completed audit.",
|
| 4 |
+
"observed_at": "2026-09-24",
|
| 5 |
+
"status": "coverage-and-overlap-audit-pending",
|
| 6 |
+
"new_machine_translation": false,
|
| 7 |
+
"nonparallel_component": false,
|
| 8 |
"datasets": [
|
| 9 |
{
|
| 10 |
+
"task": "belebele",
|
| 11 |
+
"repo_id": "facebook/belebele",
|
| 12 |
+
"revision": "7899cdfa4e1e0d733fd77c848e2c273cb1d32be2",
|
| 13 |
+
"split": "test",
|
| 14 |
+
"url": "https://huggingface.co/datasets/facebook/belebele",
|
| 15 |
+
"expected_items_per_language_from_proposal": 900,
|
| 16 |
+
"audit_complete": false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
},
|
| 18 |
{
|
| 19 |
+
"task": "globalpiqa-parallel",
|
| 20 |
+
"repo_id": "mrlbenchmarks/global-piqa-parallel",
|
| 21 |
+
"revision": "b0b18516a8bc2cb1106bce3dd4db32848ca715ea",
|
| 22 |
+
"split": "test",
|
| 23 |
+
"url": "https://huggingface.co/datasets/mrlbenchmarks/global-piqa-parallel",
|
| 24 |
+
"expected_items_per_language_from_proposal": 103,
|
| 25 |
+
"audit_complete": false,
|
| 26 |
+
"proposal_exception": {
|
| 27 |
+
"language": "Ekpeye",
|
| 28 |
+
"expected_items": 101
|
| 29 |
+
}
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"task": "sib200",
|
| 33 |
+
"repo_id": "Davlan/sib200",
|
| 34 |
+
"revision": "38977a667f6fc264d5c26ec57a01e16db040b358",
|
| 35 |
+
"split": "test",
|
| 36 |
+
"url": "https://huggingface.co/datasets/Davlan/sib200",
|
| 37 |
+
"expected_items_per_language_from_proposal": 204,
|
| 38 |
+
"audit_complete": false
|
|
|
|
| 39 |
}
|
| 40 |
],
|
| 41 |
+
"audit_requirements": [
|
| 42 |
+
"Audit exact language/script/item intersection before claiming 100+ language coverage.",
|
| 43 |
+
"Preserve source IDs and shared question IDs; do not infer equivalence from row order alone.",
|
| 44 |
+
"Map shared passages and FLORES source overlap, especially Belebele versus SIB-200.",
|
| 45 |
+
"Record exclusions and license/provenance requirements when assembling the bank.",
|
| 46 |
+
"Upstream commit pins do not freeze a protocol or supply calibrated parameters."
|
| 47 |
+
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
}
|
VERIFICATION.md
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Verification record
|
| 2 |
+
|
| 3 |
+
## Toolkit 1.3.0 — 2026-09-24
|
| 4 |
+
|
| 5 |
+
- **190 automated tests passed** on macOS with Python 3.13, including all earlier
|
| 6 |
+
archive/adapter/report tests and the new benchmark registry/measurement tests.
|
| 7 |
+
- Immutable artifact registration rejects damaged hashes, invalid dependencies,
|
| 8 |
+
duplicate identities, split-family leakage, inconsistent keys, non-finite
|
| 9 |
+
parameters, invalid weighting, and synthetic evidence labeled as real.
|
| 10 |
+
- Strict response validation checks bank/protocol/checkpoint links, script identity,
|
| 11 |
+
candidate order, score/length alignment, exact UTF-8 byte counts, normalization,
|
| 12 |
+
prediction and correctness. Optional prefixes/suffixes are included exactly.
|
| 13 |
+
- Matrix export shares parsed bank definitions across checkpoints and streams
|
| 14 |
+
observations. It checks input integrity, missing/duplicate observations,
|
| 15 |
+
compatibility, provenance and safe output publication.
|
| 16 |
+
- Fake-provider Hub tests exercise artifact-only transfer, mixed strict archives,
|
| 17 |
+
pinned restores, calibration-run dependency closure, conflicting remote bytes,
|
| 18 |
+
missing dependencies and changed-byte upload planning.
|
| 19 |
+
- Independent review added regressions for artifact-read and run-manifest races,
|
| 20 |
+
synthetic-label propagation and shared definition caching.
|
| 21 |
+
- The delivered benchmark demonstration validates with **5 registered artifacts,
|
| 22 |
+
3 sealed runs and 12 synthetic records**. Its matrix contains 12 observations;
|
| 23 |
+
comparing two checkpoints pairs the expected 4 translated items.
|
| 24 |
+
- Both filesystem diagrams were rendered and visually inspected.
|
| 25 |
+
|
| 26 |
+
The real `babel-data/` archive has **0 runs and 0 registered benchmark artifacts**.
|
| 27 |
+
The new folders are an implemented storage contract, not a claim that the
|
| 28 |
+
foundation was assembled or calibrated. No real model execution, IRT estimation,
|
| 29 |
+
parameter-recovery study, held-out generalization analysis, clustered uncertainty,
|
| 30 |
+
calibrated future-model scoring or short-form validation was performed.
|
| 31 |
+
|
| 32 |
+
The software's tests establish implementation behavior on the cases tested; they
|
| 33 |
+
do not establish the scientific validity of a future registered benchmark.
|
| 34 |
+
|
| 35 |
+
## Earlier version 1.1.0
|
| 36 |
+
|
| 37 |
+
Version 1.1.0 verified locally on macOS on 2026-09-21.
|
| 38 |
+
|
| 39 |
+
- **116 automated tests passed** across adapters, storage, analytics, readiness, and the CLI/Hub integration.
|
| 40 |
+
- A generated input of **10,000 synthetic questions / 20,000 normalized results**
|
| 41 |
+
imported, sealed, validated, and compared successfully using streaming reads
|
| 42 |
+
and temporary disk indexes.
|
| 43 |
+
- A built Python wheel installed in a fresh virtual environment without runtime
|
| 44 |
+
dependencies. Its installed command successfully created a demo, validated it,
|
| 45 |
+
compared variants, generated an offline upload plan, and exported CSV from
|
| 46 |
+
outside the source directory.
|
| 47 |
+
- The delivered example archive validates with **8 records**. Its four question
|
| 48 |
+
pairs produce the expected one regression and two improvements.
|
| 49 |
+
- Tests exercise raw-byte preservation, malformed-input rollback, duplicate IDs
|
| 50 |
+
and duplicate raw content, checksum damage, invalid paths, concurrent writer
|
| 51 |
+
rejection, crash recovery, sealing, score/ID semantics, missing observations,
|
| 52 |
+
export overwrite protection, and optional Parquet roundtrips.
|
| 53 |
+
- Hugging Face behavior was verified with a simulated provider: private/public
|
| 54 |
+
selection, exact upload allowlists, immutable verified snapshots, conflicting
|
| 55 |
+
remote files, repeated uploads, concurrent source edits, and download/restore.
|
| 56 |
+
- The ready-to-run launcher was exercised from another working directory using
|
| 57 |
+
relative archive and input paths, including a conflicting local module name.
|
| 58 |
+
- Download-and-restore tests verify pinned revisions, checksum failures, missing
|
| 59 |
+
registered files, unsafe paths/symlinks, network interruption cleanup, and
|
| 60 |
+
preservation of existing or concurrently created destination folders.
|
| 61 |
+
- Canonical input validation now rejects mismatched choice/score counts and
|
| 62 |
+
out-of-range answer indexes, while preserving request-order likelihoods that
|
| 63 |
+
legitimately include extra scoring requests.
|
| 64 |
+
- The local readiness check reports that the real archive is valid and empty;
|
| 65 |
+
Hugging Face support is installed in the current source-run environment, but
|
| 66 |
+
no local Hugging Face credential was detected. The check never returns tokens
|
| 67 |
+
or claims that a detected credential has been verified online.
|
| 68 |
+
|
| 69 |
+
## Project connection
|
| 70 |
+
|
| 71 |
+
The user's signed-in browser identifies the organization as `base-model-evals`.
|
| 72 |
+
The existing public `off-the-shelf-model-evals` repository initially contained only
|
| 73 |
+
`.gitattributes`; the two rephrasing repositories contain input questions and
|
| 74 |
+
rewrites, with no evaluated-model predictions or log-probability results.
|
| 75 |
+
Their pinned revisions and interpretation notes are recorded in
|
| 76 |
+
`examples/project-sources.json`. The local real archive is bound to the existing
|
| 77 |
+
results repository. Browser authentication and command-line SDK authentication
|
| 78 |
+
are separate.
|
| 79 |
+
|
| 80 |
+
## Not exercised
|
| 81 |
+
|
| 82 |
+
The command-line authenticated upload path has been tested with a simulated
|
| 83 |
+
provider, rather than a persistent API token. The browser session is used for
|
| 84 |
+
the project bootstrap. Large-file uploads and provider storage quotas have not
|
| 85 |
+
been load-tested. Remote integration unit tests use a simulated provider and real
|
| 86 |
+
local filesystem operations.
|
| 87 |
+
|
| 88 |
+
Babel Tower's real evaluation scripts and output JSONL files are not present in
|
| 89 |
+
the project repositories inspected. The
|
| 90 |
+
adapters were tested against synthetic examples of the noted paired format and
|
| 91 |
+
the documented harness sample structure. Metric definitions and question identity
|
| 92 |
+
semantics must be confirmed against the actual producer before using results in
|
| 93 |
+
research. All included demo results are explicitly synthetic.
|
babel-tower-filesystem.zip
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:327a5cacc9b5bfff92cd5d8ece14c7bcd51642f111bcbd606c2ee02f8b5ff495
|
| 3 |
+
size 496976
|
filesystem-after.png
ADDED
|
Git LFS Details
|
filesystem-after.svg
ADDED
|
|
filesystem-before.png
ADDED
|
Git LFS Details
|
filesystem-before.svg
ADDED
|
|