- Exploratory analyses, each declared and hashed before computing and kept outside every lock: sharpening transfer, permutation null of the decision rules and a truth-free warp check (script 42); BCa and t intervals and the comparison with the anchor-only mean (43); point ties with the same information as the SMC posterior, SMC-MAP and Anchor-LS (44); a powered independence test for the Berkson structure and sign, Wilcoxon and paired-t power for the number of blind wells (45). - Findings: the mode of the SMC posterior already gives most of the gain over deterministic ties and averaging adds at most 3%; no sharpening was seen and the tie error is not independent of the data; paired tests need 25-50% fewer blind wells than the sign test. - Paper: "hash-locked" replaces "pre-registered"; Berkson sharpening is a prediction that failed where testable; new Sec. 3.3 on the benchmark package; abstract, introduction, Secs. 5-7, App. C and conclusions revised; eight further verified references. - Benchmark package: two anchor-uncertainty settings (R10__sa3.5, R10__sa14); 658 tasks, 1316 content hashes (no earlier hash changed), 46,320 reference runs. - Reproduction package: post-review outputs archived, six new verify steps; the clean-room check passes 18/18 steps with no differing file. - Record the Fable (R4) and Opus (R5) referee reports. No verdict, threshold or locked protocol changed. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
209 lines
14 KiB
Markdown
209 lines
14 KiB
Markdown
# A benchmark with known timing for sparse-well seismic porosity learning
|
||
|
||
Companion manuscript: *Uncertain well ties in learned seismic property prediction: theory, a benchmark with known
|
||
timing, and requirements for blind-well tests* (Sec. 3.3 describes this package; Table `tab:codes` in App. C maps
|
||
the method names of the paper to the codes below).
|
||
|
||
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 (658 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 five 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.
|
||
Use the `sigma_a_ms` of the task file. It is the true σ_a = 7 ms in every task except the two anchor-uncertainty
|
||
settings `R10__sa3.5` and `R10__sa14`, whose data are those of R10 at c = 1 and whose task file states a wrong σ_a
|
||
(in the paper's Experiment 2 a wrong σ_a removed the gain of the posterior labels).
|
||
|
||
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 |
|
||
| anchor uncertainty (added 10/11/2026) | `R10__sa3.5`, `R10__sa14`: the data of R10 at c = 1; the task file states σ_a = 3.5 or 14 ms; the picks were generated with 7 ms | 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 stored in the truth files (`truth/…/two_mode_side`) and must not be used by a method.
|
||
|
||
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 | registration-marginalized learning (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, per study (the verdicts share realizations and SMC particles, so they are
|
||
not independent and should not be counted): 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 scaled warp prior (dr_L1, 0.862 / 0.798; mainly the benign direction,
|
||
since the registration's bulk-offset prior is wider than the truth) 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/B3d-Sa ≤ 1.02 for all 14
|
||
presets × regimes (the largest value equals 1.020); 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).
|
||
|
||
The `better` rule counts signs only: with 8 realizations it passes a cell with probability up to 93/256 = 0.36 when
|
||
the two methods are exchangeable (permutation within realizations). Read its outcome with the ratio and its
|
||
bootstrap CI, which `score` reports. 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).
|
||
- The anchor-uncertainty stress covers 10 dB at c = 1 only (reference results of Experiment 2); every other task states
|
||
the true σ_a. It does not test a registration warp prior much narrower than the truth.
|
||
- 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 (1316 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.
|