Summarize P6 benchmark, package it, write results, review proofs
- Benchmark summary: scripts/36_bench_verdicts.py applies the locked protocol_bench statements as worded (9/11 pass; S2-H1 fails for rock physics and wavelet phase), outside the lock hash. - S7 packaging: scripts/37_bench_package.py, benchmark/ (manifest, reference tables, README, draft Zenodo metadata). Deposit not done. - Paper: Experiment 3 (Sec. 6.5), T2 mechanism (Sec. 6.4), benchmark figures (scripts/38_bench_figures.py), dataset citations. - Proof review of Sec. 4 and App. A (14 of 15 findings fixed, 1 partly; no verdict or reported number changed); docs/theory.md synced. - Reproduction package: scripts/39_repro_package.py and repro/ (manifest, README, clean-room verify report: 12/12 stages pass). - Related work: preliminary novelty scan; full texts of AWSM, BootNet, Li et al. 2024, Guillon et al. 2020, Rizzuti et al. 2024/2025 and Castagna et al. 2026 checked; abstract-only markers updated and the Castagna sentence corrected. Paper compiles cleanly (68 pages). - Docs synced (AGENTS.md, plan.md, report.html, READMEs). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1296
benchmark/MANIFEST.json
Normal file
1296
benchmark/MANIFEST.json
Normal file
File diff suppressed because it is too large
Load Diff
192
benchmark/README.md
Normal file
192
benchmark/README.md
Normal file
@@ -0,0 +1,192 @@
|
||||
# A registration-aware benchmark for sparse-well seismic porosity learning
|
||||
|
||||
Version 1 (protocol_bench, locked 29/10/2026 14:39 UTC, sha256 `aa763f0a…`). This directory documents the benchmark
|
||||
package: synthetic seismic-to-porosity tasks in which the time–depth tie of every training well is uncertain and the
|
||||
truth is known. The data package itself (about 630 tasks) is generated by one command and is deposited on Zenodo
|
||||
(DOI: TODO).
|
||||
|
||||
## 1. The problem
|
||||
|
||||
A network learns porosity on seismic time from a few wells. Its labels come from logs recorded in depth (here: on
|
||||
the sonic time τ of the log), so each label trace depends on a well tie t(τ) that is itself estimated from the
|
||||
seismic and from a few marker picks. A tie error shifts the labels relative to the seismic. The benchmark asks how
|
||||
much a learning method loses to this registration error, and whether a method that uses the uncertainty of the tie
|
||||
does better than one that trains on a single point tie.
|
||||
|
||||
Each task is one synthetic realization of an earth model built on the geometry of seven interpreted horizons of the
|
||||
F3 block (Dutch North Sea), with 16 training wells and 8 blind test wells. The true tie of each training well is a
|
||||
drift b + ∫ exp(g) dτ drawn from a Matérn-3/2 prior fitted to the F3 wells, scaled by a drift factor c (c = 0: no
|
||||
drift). A method receives what an analyst would have:
|
||||
|
||||
- for every well: a 3 × 3 patch of noisy post-stack traces around the well;
|
||||
- for training wells only: the porosity log and the acoustic impedance log on τ, and unit-boundary anchors
|
||||
(τ_k exact, t_k = true time + N(0, σ_a²), σ_a = 7 ms);
|
||||
- the analyst's nominal knowledge (`inputs/analyst.json`): wavelet, warp prior, anchor noise, rock physics.
|
||||
|
||||
It must predict the porosity (and optionally its standard deviation) of the centre trace of each test well on
|
||||
600–1100 ms (126 samples at 4 ms). The test labels are the true porosity on true time, so a perfect tie is not
|
||||
required to score well, but a wrong tie corrupts the training labels.
|
||||
|
||||
## 2. Settings
|
||||
|
||||
| family | settings | drift factors c | registered N |
|
||||
|---|---|---|---|
|
||||
| nominal (S1) | R10 (SNR 10 dB, all anchors), R0 (0 dB), Rm5 (−5 dB), R0h (0 dB, every second anchor), R10tb (10 dB, top and bottom anchors only) | 0, 0.5, 1, 1.5, 2 | 2, 4, 8, 16 |
|
||||
| misspecified (S2) | `{R10,Rm5}__{rp_L1, rp_L2}` rock physics (per-unit DT intercept error), `__{wv_L1, wv_L2}` wavelet (mixed/minimum phase), `__wv_Q` (constant Q 80), `__{dr_L1, dr_L2}` drift (hyperparameters ×, step + jitter) | 1 | 4, 16 |
|
||||
| two-mode (S8) | `{R10,Rm5}__s8d{8,16,32}`: the analyst knows that each tie is one of two warps, t_true or t_true + s·Δ | 1 | 4, 16 |
|
||||
|
||||
In S2 the truth is generated with the stated error but `inputs/analyst.json` still describes the nominal model:
|
||||
methods must not be told about the preset. S2 levels were chosen on the dev split (realizations 902–905). Preset
|
||||
parameters: `inputs/d2_synth_bench.yaml` (`misspec_presets`). In S8 the task file carries both candidate warps
|
||||
(`two_mode_t_of_tau_ms`); which one is true is hidden (`truth/…/two_mode_side`).
|
||||
|
||||
A task with N training wells uses the first N of the 16 training wells of the file (`train_*[:N]`, and the anchors
|
||||
with `anchor_well < N`). c = 2 cells are flagged "unstable posterior" in the reference runs and are never primary
|
||||
evidence.
|
||||
|
||||
## 3. Splits
|
||||
|
||||
- **test**: realizations 8–15 (5 network seeds 0–4 in the reference runs). Scores on this split are the benchmark
|
||||
result. Test truth is in the package because the generator is public anyway; do not choose anything (shift,
|
||||
checkpoint, hyperparameter, training length) from it.
|
||||
- **dev**: realizations 900–905, same settings. Use them for every design choice. The reference methods chose their
|
||||
training budgets on dev realizations; the S2 levels were chosen on 902–905.
|
||||
|
||||
## 4. Files
|
||||
|
||||
```
|
||||
MANIFEST.json content hashes of every task, truth and input file
|
||||
README.md this file
|
||||
inputs/analyst.json units, windows, patch layout, nominal wavelet / rock physics / warp prior / σ_a, metric
|
||||
inputs/{wavelets.npz, warp_prior_f3.json, horizon_grid.npz, d2_synth_bench.yaml, protocol_bench.yaml}
|
||||
tasks/index.csv one row per task: split, setting, regime, preset, delta_ms, c, rid, SNR, anchors, paths
|
||||
tasks/<split>/<setting>/r<rid>_c<c>.npz
|
||||
truth/<split>/<setting>/r<rid>_c<c>.npz
|
||||
reference/runs.csv.gz one row per reference run (setting, c, N, rid, seed, method) with every metric
|
||||
reference/cells.csv, main_table.md cell means and σ_post (copies of benchmark/reference/ in the repository)
|
||||
```
|
||||
|
||||
Task file (`np.load`), times in ms TWT, porosity logs as fractions, labels in porosity units (p.u. = 100 × fraction):
|
||||
|
||||
| key | shape | content |
|
||||
|---|---|---|
|
||||
| `rid`, `c`, `snr_db`, `anchor_density`, `sigma_a_ms` | scalars | realization, drift factor, regime |
|
||||
| `t_seis_ms` | (226,) | seismic time axis, 400–1300 ms at 4 ms |
|
||||
| `t_label_ms` | (126,) | label axis, 600–1100 ms |
|
||||
| `tau_ms` | (3101,) | log axis τ, 100–1650 ms at 0.5 ms |
|
||||
| `train_names`, `train_ilxl`, `train_xy` | (16,), (16, 2), (16, 2) | training wells |
|
||||
| `train_seis` | (16, 9, 226) float32 | 3 × 3 patch: inline offset −1..1 (outer) × crossline −1..1 (inner); centre = index 4 |
|
||||
| `train_phi_log`, `train_ai_log` | (16, 3101) | porosity (fraction) and AI on τ; `train_ai_log` = AI(`train_phi_log`) with the nominal rock physics |
|
||||
| `anchor_well`, `anchor_tau_ms`, `anchor_t_ms` | (K,) | anchors of all training wells (well index, τ_k, noisy t_k) |
|
||||
| `test_names`, `test_ilxl`, `test_xy` | (8,), (8, 2), (8, 2) | test wells, in scoring order |
|
||||
| `test_seis` | (8, 9, 226) float32 | test patches (same SNR as the training wells) |
|
||||
| `delta_ms`, `two_mode_t_of_tau_ms` | scalar, (16, 2, 3101) | S8 only: the two candidate warps t(τ) of each training well |
|
||||
|
||||
Truth file: `y_test` (8, 126) p.u.; `train_t_of_tau_ms` (16, 3101), `train_b_ms`, `train_g` (true ties, for
|
||||
diagnostics of a registration step); S8: `two_mode_side`.
|
||||
|
||||
## 5. Commands
|
||||
|
||||
From the repository root, with the environment of `requirements*.txt` and the inputs listed in `MANIFEST.json`:
|
||||
|
||||
```bash
|
||||
# generate the package (checks the protocol lock, then compares every content hash with benchmark/MANIFEST.json)
|
||||
CUDA_VISIBLE_DEVICES= .venv/bin/python scripts/37_bench_package.py generate
|
||||
# or verify a downloaded package
|
||||
CUDA_VISIBLE_DEVICES= .venv/bin/python scripts/37_bench_package.py check --out /path/to/package
|
||||
# reference tables from the saved reference runs (needs outputs/p2r and outputs/bench)
|
||||
CUDA_VISIBLE_DEVICES= .venv/bin/python scripts/37_bench_package.py tables
|
||||
# score a method
|
||||
CUDA_VISIBLE_DEVICES= .venv/bin/python scripts/37_bench_package.py score --pred /path/to/predictions --name MyMethod
|
||||
# end-to-end check of the scorer (copies of saved reference predictions must reproduce the reference rules)
|
||||
CUDA_VISIBLE_DEVICES= .venv/bin/python scripts/37_bench_package.py selftest
|
||||
```
|
||||
|
||||
All commands take `--out DIR` (default `outputs/bench/package`). `generate` takes `--split test dev`.
|
||||
|
||||
### Submission format
|
||||
|
||||
```
|
||||
<pred>/<split>/<setting>/r<rid>_c<c>_n<N>_s<seed>.npz mu (8, 126) p.u., optional sigma (8, 126) > 0
|
||||
```
|
||||
|
||||
`c` as in the task name (`1`, `1.5`, `0.5`), test wells in the order of `test_names`. Submit any subset; a cell
|
||||
(setting, c, N) counts as complete with 8 realizations × 5 seeds. Without `sigma`, the Gaussian scores (NLL, CRPS,
|
||||
coverage) are left empty.
|
||||
|
||||
### Scores
|
||||
|
||||
Per test well (scripts/11 `evaluate`): RMSE and PCC, the **band RMSE** and band PCC after a 4th-order zero-phase
|
||||
Butterworth high-pass at 6 Hz (primary: the seismic band, where registration error acts), the low-band RMSE, NLL,
|
||||
CRPS and coverage of the 50/80/90/95% intervals. A run is the mean over the 8 test wells; a cell averages runs over
|
||||
realization × seed.
|
||||
|
||||
On the test split `score` applies the registered rules of protocol_bench (`ml_porosity/benchmark/summary.py`):
|
||||
|
||||
- **H2a cell rule** against the best point tie of the cell (lowest mean band RMSE among B3b, B3c, B3c-R):
|
||||
a method *improves* if its band RMSE ≤ 0.90 × that of the best point tie, or its band PCC ≥ +0.05 higher; the
|
||||
cell passes if it improves in ≥ 4/5 seeds (seed means over realizations) and in more than half of the
|
||||
realizations (realization means over seeds).
|
||||
- **better** against B3d-Sa, M2-Sa and Oracle (PM2, BK2 and Oracle in S8): lower band RMSE in ≥ 4/5 seeds and in
|
||||
more than half of the realizations, with the ratio of means and a 95% bootstrap CI over realizations.
|
||||
|
||||
Reference rows are restricted to the realizations and seeds submitted. Output: `<pred>/score/` (`score.md`,
|
||||
`rule_point_ties.csv`, `pairs.csv`, `cells.csv`, `runs.csv`, `per_well.csv`).
|
||||
|
||||
## 6. Reference methods
|
||||
|
||||
All reference methods use the CNN–GRU heteroscedastic network of the repository (d 64, Adam 5e-3, full batch,
|
||||
64-sample windows, per-well z-score) at budgets chosen on dev; S4 repeats the main cells with a TCN (suffix `-TCN`).
|
||||
|
||||
| method | labels |
|
||||
|---|---|
|
||||
| Oracle | true tie (ceiling) |
|
||||
| B3b | marker-calibrated sonic through the anchors |
|
||||
| B3c | B3b + local NCC shifts against a synthetic |
|
||||
| B3c-R | B3c with the wavelet at the re-estimated phase |
|
||||
| B3d | weighted mean warp of an anchor-conditioned bank |
|
||||
| B3d-Sa | labels at the posterior-mean warp of 1024 SMC particles (registration posterior) |
|
||||
| M2-Sa | regression with misregistered labels (RML): soft-min loss over a bank of 64 SMC particles |
|
||||
| B4a–d | anchor-free alignment baselines on B3b labels: hard-min / RML over ±8-sample shifts, soft-DTW, DILATE |
|
||||
| Ctl-GP | control bank: 64 Gaussian warps with the posterior's mean and covariance |
|
||||
| PM2, BK2, HM2 | S8: label at the two-mode mean warp; RML over the two-member bank; hard-min over it |
|
||||
|
||||
`reference/main_table.md` gives the nominal band RMSE at c = 1. `reference/cells.csv` gives every cell, with
|
||||
σ_post (the SMC posterior width over the training wells; "wide" at σ_post ≥ 1.5 ms).
|
||||
|
||||
Registered results of protocol_bench (11 verdicts, 9 pass): posterior-mean labels (B3d-Sa) beat the best point tie
|
||||
by ≥ 10% in band RMSE at R10 c = 1.5 (0.853 / 0.796 at N = 4 / 16); the bank gain over B3d-Sa grows with N in
|
||||
13/13 wide families; under misspecification the gain survives the drift axis (0.862 / 0.798) but not the rock
|
||||
physics axis (0.940 / 0.934) or the wavelet phase axis (1.023 / 1.042, where the posterior is overconfident); M2-Sa
|
||||
never hurts (14/14 ≤ 1.02); B4a–d are never the best competitor at c ≤ 1; the TCN backbone keeps the gain; the
|
||||
two-mode bank beats the two-mode mean at Δ = 16 and 32 ms (BK2/PM2 0.28–0.71). Full statements and both readings of the three verdicts
|
||||
whose locked extraction differs from the wording: `outputs/bench/summary/verdict_final.md` in the repository.
|
||||
|
||||
## 7. What this benchmark is not
|
||||
|
||||
- It is synthetic. It says nothing about field skill: on F3 and Volve no method had enough blind-well skill in the
|
||||
seismic band to test a registration effect.
|
||||
- It measures registration effects on labels. It makes no calibration claim (in the P2r study every 5-seed
|
||||
ensemble under-covered).
|
||||
- One earth-model family (F3 horizon geometry, φ–DT rock physics, a stationary 128 ms wavelet). The S2 settings
|
||||
probe three axes of misspecification at two levels each (plus one bandwidth setting); they do not cover
|
||||
misspecification in general.
|
||||
|
||||
## 8. Licence and citation
|
||||
|
||||
Derived from the F3 Netherlands dataset (dGB Earth Sciences, CC BY-SA 3.0): the horizon grid, the statistical
|
||||
wavelet and the warp prior are F3 derivatives, so the data package is released under CC BY-SA 3.0 (TODO: verify
|
||||
the F3 licence wording on the provider's page before deposit). Code: TODO (licence of the repository).
|
||||
|
||||
Citation: TODO (paper and Zenodo DOI).
|
||||
|
||||
## 9. Deposit (maintainers)
|
||||
|
||||
1. `generate` on a clean checkout of the tagged commit; it must report "content hashes equal to
|
||||
benchmark/MANIFEST.json (1260 files)". The input hashes in `MANIFEST.json` equal the sha256 registered in
|
||||
`configs/protocol_bench.yaml`.
|
||||
2. `tables`, then `selftest` (must print `selftest PASS`).
|
||||
3. `tar -C outputs/bench -cf bench_package_v1.tar package` (about 0.85 GB; the npz files are already compressed),
|
||||
and record its sha256.
|
||||
4. Upload with the metadata of `benchmark/zenodo_metadata.json` once the TODO fields (authors, licence check,
|
||||
related identifiers) are filled; put the DOI in this README and in the paper.
|
||||
1131
benchmark/reference/cells.csv
Normal file
1131
benchmark/reference/cells.csv
Normal file
File diff suppressed because it is too large
Load Diff
19
benchmark/reference/main_table.md
Normal file
19
benchmark/reference/main_table.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# Reference band RMSE (p.u.), nominal settings, c = 1
|
||||
|
||||
Mean over 8 test realizations × 5 network seeds at the registered budgets (CNN–GRU). σ_post (ms) is the SMC posterior width over the training wells; 'wide' means σ_post ≥ 1.5 ms. Full table: cells.csv.
|
||||
|
||||
| method | R10 N=4 | R10 N=16 | R0 N=4 | R0 N=16 | Rm5 N=4 | Rm5 N=16 | R0h N=4 | R0h N=16 | R10tb N=4 | R10tb N=16 |
|
||||
|---|---|---|---|---|---|---|---|---|---|---|
|
||||
| Oracle | 0.614 | 0.453 | 0.856 | 0.753 | 1.101 | 1.040 | 0.858 | 0.756 | 0.613 | 0.453 |
|
||||
| B3b | 0.941 | 0.828 | 1.115 | 1.048 | 1.270 | 1.253 | 1.123 | 1.063 | 1.293 | 1.180 |
|
||||
| B3c | 0.717 | 0.627 | 1.024 | 0.951 | 1.280 | 1.230 | 1.024 | 0.897 | 0.873 | 0.801 |
|
||||
| B3c-R | 0.724 | 0.582 | 1.021 | 0.914 | 1.276 | 1.207 | 0.992 | 0.860 | 0.826 | 0.744 |
|
||||
| B3d | 0.762 | 0.675 | 0.980 | 0.916 | 1.185 | 1.154 | 1.049 | 0.959 | 1.197 | 1.156 |
|
||||
| B4a | 1.355 | 1.205 | 1.445 | 1.339 | 1.511 | 1.487 | 1.442 | 1.321 | 1.305 | 1.016 |
|
||||
| B4b | 1.314 | 1.143 | 1.423 | 1.236 | 1.527 | 1.445 | 1.444 | 1.260 | 1.322 | 0.956 |
|
||||
| B4c | 0.973 | 0.815 | 1.186 | 1.052 | 1.344 | 1.285 | 1.190 | 1.058 | 1.160 | 1.036 |
|
||||
| B4d | 0.977 | 0.785 | 1.184 | 1.077 | 1.343 | 1.295 | 1.182 | 1.076 | 1.162 | 1.023 |
|
||||
| B3d-Sa | 0.614 | 0.455 | 0.907 | 0.812 | 1.162 | 1.114 | 0.917 | 0.823 | 0.813 | 0.598 |
|
||||
| M2-Sa | 0.611 | 0.457 | 0.885 | 0.786 | 1.155 | 1.094 | 0.904 | 0.798 | 0.756 | 0.532 |
|
||||
| Ctl-GP | 0.610 | 0.458 | 0.895 | 0.802 | 1.162 | 1.096 | 0.913 | 0.799 | 0.775 | 0.541 |
|
||||
| σ_post | 0.67 | 0.59 | 1.75 | 1.53 | 2.72 | 2.56 | 1.89 | 1.72 | 1.90 | 1.92 |
|
||||
20
benchmark/zenodo_metadata.json
Normal file
20
benchmark/zenodo_metadata.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"_status": "DRAFT, not deposited. Fill the TODO fields, verify the licence, then upload the archive of outputs/bench/package (see benchmark/README.md section 9). Deposit needs the authors' Zenodo account.",
|
||||
"metadata": {
|
||||
"upload_type": "dataset",
|
||||
"title": "A registration-aware synthetic benchmark for sparse-well seismic porosity learning (protocol_bench v1)",
|
||||
"version": "1.0.0",
|
||||
"creators": [
|
||||
{"name": "TODO, Family name, Given names", "affiliation": "TODO", "orcid": "TODO"}
|
||||
],
|
||||
"description": "<p>Synthetic seismic-to-porosity tasks in which the time-depth tie of every training well is uncertain and the truth is known. Each task is one realization of an earth model on the geometry of seven interpreted horizons of the F3 block (Dutch North Sea) with 16 training wells (3 x 3 trace patch, porosity and impedance logs on sonic time, noisy unit-boundary anchors) and 8 blind test wells. Settings: five noise and anchor regimes x five drift factors (nominal), seven misspecification presets (rock physics, wavelet, drift), and six two-mode registration settings. Test split: realizations 8-15; dev split: 900-905; 630 tasks. Includes the hidden truth, the analyst's nominal inputs, reference results of 21 method variants (45,200 runs) and content hashes. Generation and scoring code, and the locked protocol, are in the companion repository.</p>",
|
||||
"access_right": "open",
|
||||
"license": "cc-by-sa-3.0",
|
||||
"keywords": ["seismic inversion", "well tie", "porosity", "label noise", "registration uncertainty", "benchmark", "synthetic data", "F3 Netherlands"],
|
||||
"related_identifiers": [
|
||||
{"identifier": "TODO repository URL", "relation": "isSupplementTo", "resource_type": "software"},
|
||||
{"identifier": "TODO paper DOI or preprint", "relation": "isSupplementTo", "resource_type": "publication-article"}
|
||||
],
|
||||
"notes": "Derived from the F3 Netherlands dataset (dGB Earth Sciences; CC BY-SA 3.0): horizon grid, statistical wavelet and warp prior. Content hashes: MANIFEST.json (sha256 of array content). Protocol sha256 aa763f0a4f81125ea8441fdfba4361f68246c7a0be1c36d4bf8de2650a91a4c5 (configs/protocol_bench.yaml, locked 2026-10-29 14:39 UTC)."
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user