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:
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.
|
||||
Reference in New Issue
Block a user