14 Commits

Author SHA1 Message Date
1985fcfa02 Complete GP manuscript checks and verify revision artifacts
Move the comparator definitions and core evidence into the main text and
lead with effect sizes and intervals. Preserve the locked verdicts and
record the independent GP-D referee report.

Archive the saved GP results and regenerate 43 outputs in the clean
room. Add a source-backed numerical guard for the submission and
record the correction to anchor warp RMSE and the scope of the pooled
blind-well power estimates.

Co-Authored-By: Codex <noreply@openai.com>
2026-11-18 04:08:10 +00:00
eff975cc96 Address simulated GP referee reports: E1-E6 and A1-A9 (exploratory), theory scope, per-well field and anchor-error tables, scorer v1.1, paper_gp and response letter
Experiments declared and hashed before computing (docs/research/gp-review-*.md). The SMC-mean gain holds against a practitioner tie, all budgets and a same-target point tie, but is lost at anchor errors of 2 ms or less and reverses with per-well bulk error. No locked protocol, verdict or threshold changed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 11:20:54 +00:00
883dccfe21 Report the bank-size ablation (exploratory)
Nested SMC banks of 16, 64, 256 and 1024 members (same particles, same
lambda = 1/tau_c) in the 11 T2 cells at N = 16, 250 iterations; declared
and hashed before computing (05f822b). Retraining reproduced 7,040/7,040
hash-locked rows exactly. Over the 8 wide cells: S256/S64 0.961-1.005
("no gain"), S1024/S64 0.936-0.998 ("mixed", CI below 1 in 4/8, above
in none), S16/S64 1.003-1.059 (CI above 1 in 3/8). S = 64 may have
slightly understated the bank gain (up to about 2% at c = 1). S_eff grows
in proportion to S.

Paper: one sentence in Sec. 4, App. C paragraph "Bank size", Limitations
"Tempering and bank size". No verdict, threshold or locked protocol changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 04:25:31 +00:00
05f822bcb8 Add condensed C&G version, venue survey, loss rationale; declare bank-size ablation
- paper_cg/: self-contained condensed article in the Elsevier CAS template
  (17 pages) and a supplement that inputs paper/sections/ (S-prefixed numbers);
  Elsevier CAS bundle v2.4 vendored for the build; make_submission.sh.
- paper/sections: American spelling, "Why a Gaussian likelihood" paragraph
  (Sec. 4) and a "Loss family" limitation; nix1994meanvariance added.
- docs: venue survey (submission venue Geophysical Prospecting, fallback
  Mathematical Geosciences), loss-ablation plan (dropped, kept as a record),
  lecture rewritten to 12/11, plan/AGENTS/report synced (plan items 47-54).
- Bank-size ablation (exploratory): declaration docs/research/bank-size.md
  hashed before any computation (1a192127...), scripts/49_bank_size.py.
  The run is in progress; no results are included in this commit.

No verdict, threshold or locked protocol changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 03:35:08 +00:00
d0d2cd3c82 Replicate Experiment 2 on new realizations; test sigma_a at -5 dB
Exploratory analyses declared and hashed before computing
(docs/research/r6-replication.md, sha256 13b8b943...), outside every lock:
- Replication on realizations 16-23: the SMC-mean gain over the best
  deterministic tie is 7-19% (8-22% before); the per-regime verdicts are
  unchanged; the SMC mode beats the best tie in 10/10 cells; the bank passes
  2/3 wide cells; a Gaussian bank is within 2%.
- Misspecified anchor uncertainty at -5 dB: 0/2 cells at both 3.5 and 14 ms.
- Mechanism at sigma_a = 3.5 ms: the refitted drift prior becomes rougher
  (length scale 10-15 vs 80-90 ms); with fixed hyperparameters the
  posterior does not narrow.
- Calibrated sign test, F-11 T2 under four references, coverage at equal
  training length.

Paper: Sec. 6.3 and tab:sigmaa, abstract, introduction, conclusions,
Sec. 3.3, 4.1, tab:lessons, limitations, App. B and C. Docs synced; the
user dropped all date deadlines on 11/11/2026. No verdict, threshold or
protocol changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 04:49:53 +00:00
760dbfea4f Address simulated referee reports: same-information point ties, wording, benchmark sigma_a stress
- 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>
2026-11-10 14:47:07 +00:00
894fbdfc59 Fix contributions, rename the paper, add the lambda-to-zero arm
- Run the exploratory lambda -> 0 arm of the SMC bank (declared and hashed
  in docs/research/lambda-limit.md before computing; script 41, outside
  every lock). Results in docs/research/lambda-limit-results.md; reported
  only in Limitations and Appendix C, as declared.
- Fix four contributions (theory; controlled test of training on a tie
  posterior; benchmark with known timing; requirements for a field test)
  and rename the paper to "Uncertain well ties in learned seismic property
  prediction: theory, a benchmark with known timing, and requirements for
  blind-well tests". Abstract, highlights, introduction, related work,
  section openings, discussion and conclusions follow them.
- Add six verified references (benchmarks; comparison design).
- Add the simulated referee reports of 04/11 and the contribution review
  of 10/11 (major revision), and sync plan, AGENTS.md and report.html.

No verdict, threshold or locked protocol changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 08:34:11 +00:00
df5cb937e8 Regenerate figures with descriptive names; add band-content table
Regenerate p2_phase, p2r_grid, p2r_h2b, bench_s1 and bench_s8 from the
existing summaries so they use the paper's descriptive names, and remove
the \figcodes notes and macro. Display fixes only: mathtext for the
-5 dB label and a shorter anchor-mean cell label.

Add a post hoc, descriptive table of the band content of the F3 labels,
the synthetic labels and the Oracle predictions (scripts/40_band_spectra.py,
Table tab:bandspectra in App. C) and rewrite the "Band of the benchmark"
limitation. No number, verdict, threshold, locked protocol or abstract
changed. Clean-room check rerun: 12/12 stages pass, nothing differs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 08:56:10 +00:00
8d5befb412 Rewrite the manuscript for outside readers; move formal results to App. A
Follow the style of the abstract in the remaining sections: results in
words first, conditions up front, physical quantities instead of codes.
A survey of Computers & Geosciences papers is recorded in
docs/research/paper-style-survey.md.

Replace repository codes with descriptive names in the text, tables and
captions (10 dB, half-anchor, SMC mean, SMC bank, calibrated sonic);
configs, outputs and code keep the codes, mapped in paper/README.md.
Remove symbols that carried two meanings.

Put Methods before Theory. Section 5 now states each result in words and
Appendix A holds the formal statements with their proofs. Add tables of
results and symbols, a table of failures with causes and lessons, a
worked example in Sec. 6.6 and practical advice in Sec. 7. Move the
protocol record and secondary results to a new Appendix C. The main text
falls from about 20,600 to 15,400 words.

Corrections from two rounds of review: state both pass rules (the bank
claim has no margin), compare against the best deterministic tie, define
calibration per function, drop the uninterpretable Berkson bounds at
c = 2 from the table, define the SNR and noise, disclose the sigma_b
mismatch, and correct 29-35% to 30-35%. Drop tab:p1 and fig:f3vol.

No verdict, threshold or protocol changes. The figure scripts now draw
the new names, but the figures still need regenerating on a machine
with outputs/*/summary; red notes in the captions mark this.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 14:34:13 +07:00
Pham Huy
fc15bf6510 Rewrite the abstract for outside readers; state the simulator assumption
Shorten the abstract from 458 to 231 words and remove internal codes
and verdict counts. State the synthetic result in one sentence with
its assumptions up front. The failed first comparison, the drift-free
gain and the misspecification failures remain disclosed in the body.

Add to the "One simulator" limitation that the nominal cells use the
model the registration assumes, so their gains are not field estimates.
No number, verdict or threshold changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 10:45:15 +07:00
bbdb82997c Audit the manuscript for unsupported claims and rewrite flagged text
Five independent audits traced every number, citation and claim in the
manuscript to outputs/, the locked protocols, the code and the reference
texts (87 findings, 4 of severity S1). Fixes were verified and applied as
106 exact replacements; a protected-token guard confirms that only the
approved numbers and citations changed. A style pass split seven
overlong sentences. No verdict, gate or threshold changed.

- S1: the two time-depth models were conflated as "up to 36 ms"; the warp
  prior is fitted by MAP-II with sigma_a = 7 ms and sigma_b = 50 ms fixed
  (19 ms comes from a separate ML fit); the Exp. 1 protocol was hash-locked,
  not tagged; PHIE_DT is linear in sonic at all four F3 wells.
- tab:audit now follows outputs/td_qc.csv; unsupported intro citations
  (prabowo2025f3, tao2025structural, DILATE) dropped; claims scoped to the
  regimes actually tested; about 40 small number fixes.
- Restore docs/technical_overview.md (the lecture moves to docs/lecture.md).
- Audit record in docs/research/paper-audit.md; plan, AGENTS.md, report.html,
  paper/README.md and self_review.md synced (69 pages).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 08:25:08 +00:00
423a333ae9 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>
2026-11-02 07:12:58 +00:00
2e4f618947 Record completion of P6 main runs and the server move
- All protocol_bench main runs finished 30/10/2026 02:16 UTC: S1 560 train
  cells, S2 224 posteriors + 224 train cells, S3+S4+S8 384 train jobs.
  Summarize has not been run yet.
- docs/research/server-migration.md: the repository folder is synced as a
  whole to the new server; outputs/ stays out of git. Lists what is not in
  git and why it matters; unpushed_outputs.sha256 holds sha256 for all
  21,987 files under outputs/ to verify the sync.
- Plan §12 item 26, AGENTS.md status and next steps, report.html tasks and
  log, README supervisor note, bench-protocol status.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 02:18:20 +00:00
381b5ffb06 Add P6 benchmark code, locked protocol_bench, T2 study
- ml_porosity/benchmark/ runner, scripts 32-35, scripts/run_bench.sh;
  misspec= option in synth_d2 (default path reproduces P2r bit for bit).
- configs/protocol_bench.{yaml,sha256,lock.json} locked 29/10 14:39 UTC
  (sha256 aa763f0a...), configs/d2_synth_bench.yaml.
- T2 mechanism declaration and results; operations/p6_supervisor.py.
- Docs, report and paper edits of 29/10.

outputs/ stays out of git; the repository folder is synced as a whole to
the new server. Main S1 runs are still training at this commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 01:33:18 +00:00
164 changed files with 159958 additions and 1560 deletions

2
.gitignore vendored
View File

@@ -51,3 +51,5 @@ data/NLOG/
# Teapot Dome (RMOTC / U.S. DOE, Texas Data Repository; 1.7 GB): không đẩy lên git. Chỉ dùng cho T0 và pilot P-a # Teapot Dome (RMOTC / U.S. DOE, Texas Data Repository; 1.7 GB): không đẩy lên git. Chỉ dùng cho T0 và pilot P-a
# (plan §12 ý 23); kết quả ở outputs/teapot/. # (plan §12 ý 23); kết quả ở outputs/teapot/.
data/Teapot/ data/Teapot/
all-of-me-intro-15s-claude/
all-of-me-full-visual-claude/

108
AGENTS.md

File diff suppressed because one or more lines are too long

View File

@@ -10,6 +10,8 @@ python -m venv .venv
.venv/bin/pip install --no-deps -e . .venv/bin/pip install --no-deps -e .
``` ```
Môi trường Linux của các lock `protocol_volve`/`protocol_bench` (Python 3.13.15, torch 2.14.0+cu130, numpy 2.5.4): `repro/requirements-linux.txt`; `requirements-lock.txt` là môi trường P0 cũ (numpy 2.5.3). Môi trường của P3 trên Windows: `requirements-windows-rtx3060.txt`.
Dữ liệu F3 Demo 2023 đặt ở `data/F3_Demo_2023/F3_Demo_2023/`, dữ liệu Volve ở `data/Volve/`, LAS và TD của NLOG ở `data/NLOG/` (hoặc trỏ `ML_POROSITY_F3_ROOT` tới thư mục chứa `.survey`). Kết quả ghi vào `outputs/` (đổi bằng `ML_POROSITY_OUTPUTS`). Dữ liệu F3 Demo 2023 đặt ở `data/F3_Demo_2023/F3_Demo_2023/`, dữ liệu Volve ở `data/Volve/`, LAS và TD của NLOG ở `data/NLOG/` (hoặc trỏ `ML_POROSITY_F3_ROOT` tới thư mục chứa `.survey`). Kết quả ghi vào `outputs/` (đổi bằng `ML_POROSITY_OUTPUTS`).
Code luận văn được lưu ở [`code_thesis/`](code_thesis/), các output gốc ở [`outputs_thesis/`](outputs_thesis/). SHA-256 của 7 artifact nằm trong [`data_manifest/thesis_outputs.json`](data_manifest/thesis_outputs.json); kết quả kiểm tra ngày 27/10/2026 ở [thesis-output-audit.md](docs/research/thesis-output-audit.md). Pipeline nghiên cứu ghi kết quả mới vào `outputs/`. Code luận văn được lưu ở [`code_thesis/`](code_thesis/), các output gốc ở [`outputs_thesis/`](outputs_thesis/). SHA-256 của 7 artifact nằm trong [`data_manifest/thesis_outputs.json`](data_manifest/thesis_outputs.json); kết quả kiểm tra ngày 27/10/2026 ở [thesis-output-audit.md](docs/research/thesis-output-audit.md). Pipeline nghiên cứu ghi kết quả mới vào `outputs/`.
@@ -63,6 +65,29 @@ scripts/run_p2r_dev.sh # chuẩn bị P2r (chạy lại P2) trên dev 900/9
scripts/run_p2r_main.sh # lưới chính P2r trên realization 8–15 scripts/run_p2r_main.sh # lưới chính P2r trên realization 8–15
scripts/run_p4.sh # P4 Volve: register, train, summarize nhánh σ_a chính (DEVICE mặc định cuda:1) scripts/run_p4.sh # P4 Volve: register, train, summarize nhánh σ_a chính (DEVICE mặc định cuda:1)
ARMS=sensitivity scripts/run_p4.sh register train # nhánh σ_a = 3,5 / 14 ms; sau đó ARMS=all scripts/run_p4.sh summarize ARMS=sensitivity scripts/run_p4.sh register train # nhánh σ_a = 3,5 / 14 ms; sau đó ARMS=all scripts/run_p4.sh summarize
scripts/run_bench.sh lock # P6 protocol_bench: khoá lần đầu (sau khi duyệt bản nháp)
STUDIES="S1" DEVICE=cuda:0 WORKERS=4 scripts/run_bench.sh posterior train # S1 trên cuda:0; các study khác tương tự (STUDIES, REGIMES, PRESETS, RIDS, DEV=1)
scripts/run_bench.sh summarize | status | repro # tổng hợp theo luật đã khai báo; tiến độ; ô tái lập P2r
CUDA_VISIBLE_DEVICES= .venv/bin/python scripts/36_bench_verdicts.py # sau summarize: verdict cuối theo đúng lời phát biểu → outputs/bench/summary/verdict_final.{json,md}
CUDA_VISIBLE_DEVICES= .venv/bin/python scripts/37_bench_package.py generate # S7: gói benchmark; sau đó lần lượt tables, selftest → outputs/bench/package/ (hash: benchmark/MANIFEST.json)
CUDA_VISIBLE_DEVICES= .venv/bin/python scripts/37_bench_package.py score --pred DIR --name TÊN # chấm một phương pháp theo luật protocol_bench (hướng dẫn: benchmark/README.md)
CUDA_VISIBLE_DEVICES= .venv/bin/python scripts/38_bench_figures.py [--only bench_s1,bench_s8] [--flipband] # hình Thí nghiệm 3 của bài → paper/figures/; --flipband in bảng cos/cos² của S8
CUDA_VISIBLE_DEVICES= OMP_NUM_THREADS=2 .venv/bin/python scripts/39_repro_package.py build | verify # P5 gói tái lập: archive dữ liệu dẫn xuất → outputs/repro/, manifest repro/MANIFEST.json; phòng sạch → repro/verify_report.md (hướng dẫn: repro/README.md)
CUDA_VISIBLE_DEVICES= OMP_NUM_THREADS=2 .venv/bin/python scripts/40_band_spectra.py # post hoc: phổ trong dải địa chấn của nhãn F3, nhãn synthetic và dự đoán Oracle → outputs/band_spectra/ (bảng tab:bandspectra của bài)
CUDA_VISIBLE_DEVICES=0 OMP_NUM_THREADS=2 .venv/bin/python scripts/41_lambda_limit.py --stage all --workers 4 --device cuda:0 # exploratory: nhánh λ → 0 của bank SMC (khai báo docs/research/lambda-limit.md) → outputs/lambda_limit/
CUDA_VISIBLE_DEVICES=0 OMP_NUM_THREADS=2 .venv/bin/python scripts/49_bank_size.py --stage all --workers 4 --device cuda:0 # exploratory: kích thước bank SMC S = 16/64/256/1024 (khai báo docs/research/bank-size.md) → outputs/bank_size/
CUDA_VISIBLE_DEVICES= OMP_NUM_THREADS=2 .venv/bin/python scripts/42_referee_r4.py --stage all --workers 12 # exploratory: ba phân tích theo referee R4 (khai báo docs/research/referee-r4-analyses.md) → outputs/referee_r4/
CUDA_VISIBLE_DEVICES= OMP_NUM_THREADS=2 .venv/bin/python scripts/43_referee_r5_ci.py # exploratory: BCa và t-interval cho 38 tỉ số chính, đối chiếu anchor mean (khai báo docs/research/referee-r5-ci.md) → outputs/referee_r5/
CUDA_VISIBLE_DEVICES=0 OMP_NUM_THREADS=2 .venv/bin/python scripts/44_point_tie_arm.py --stage all --workers 4 --device cuda:0 # exploratory: tie điểm cùng thông tin (SMC-MAP, Anchor-LS; khai báo docs/research/point-tie-arm.md) → outputs/point_tie/
CUDA_VISIBLE_DEVICES= OMP_NUM_THREADS=2 .venv/bin/python scripts/45_referee_r5_followups.py --stage all --workers 8 # exploratory: kiểm độc lập Berkson (F1) và n* theo Wilcoxon/t cặp (F2) (khai báo docs/research/referee-r5-followups.md) → outputs/referee_r5/
CUDA_VISIBLE_DEVICES= OMP_NUM_THREADS=2 .venv/bin/python scripts/48_r6_cheap.py # exploratory: A1 sign test hiệu chỉnh tương quan, A2 F-11 T2 theo tham chiếu, A3 coverage cùng độ dài huấn luyện (khai báo docs/research/r6-replication.md) → outputs/r6/
DEVICE=cuda:0 WORKERS=2 scripts/run_r6.sh fingerprints | b3 | c1 R10 R0 Rm5 | c0 R10 R0 Rm5 | sa | arms | summary # exploratory: sao lặp Thí nghiệm 2 trên realization 16–23, σ_a sai ở −5 dB, σ_a = 3,5 ms với siêu tham số drift cố định → outputs/replication/ (chạy trong tmux; log logs/r6_*.out)
(cd paper && pdflatex main && bibtex main && pdflatex main && pdflatex main) # bản thảo đầy đủ → paper/main.pdf
(cd paper_gp && pdflatex supplement && bibtex supplement && pdflatex supplement && pdflatex supplement && pdflatex main && bibtex main && pdflatex main && pdflatex main && python3 check_si_refs.py) # bản nộp Geophysical Prospecting (article, giãn dòng đôi) + Supporting Information; build supplement trước (paper_gp/README.md). paper_cg/ (bản C&G) đã xóa khỏi working tree 16/11/2026 theo yêu cầu người dùng, lấy lại từ git 883dccf nếu cần
python3 scripts/50_ref_overlap.py 8 # kiểm trùng lặp offline: n-gram từ của paper/sections/*.tex và paper_gp/main.tex so với các PDF trong refs/ → outputs/ref_overlap/overlap_n8.json (không gửi gì ra ngoài)
# Run dài: chạy trong tmux server của người dùng, ví dụ tmux new-session -d -s p6_s2 -c $PWD "env STUDIES=S2 DEVICE=cuda:0 WORKERS=2 MEM_GB=2 scripts/run_bench.sh posterior train >> logs/bench_s2_cuda0.out 2>&1"
# (setsid nohup bị dừng khi phiên agent kết thúc, 29/10). operations/p6_s1_watcher.sh khởi động S1 khi GPU có chỗ trống (đã dùng 15:43–16:06 UTC 29/10, rồi bỏ khi GPU trống).
# operations/p6_supervisor.py (tmux p6_supervisor): mỗi 5 phút chạy lại driver P6 chết và dồn worker khi một study xong; log logs/p6_supervisor.out. Đã dừng 02:16 UTC 30/10 khi P6 xong. Lỗi đã biết: khi dồn worker, nó khởi động lại driver kể cả lúc số worker không đổi, làm mất job đang dở.
``` ```
Log và runtime: mỗi lần chạy `run_p*.sh` tạo `logs/runs/<YYYYmmdd-HHMMSS>_p*/`, mỗi bước là một thư mục con có `log.txt` (stdout + stderr, cả của worker, đầu dòng có thời gian đã trôi) và `meta.json` (lệnh, git commit + hash mã nguồn, biến luồng, thiết bị, wall/CPU time, RSS và VRAM đỉnh, mã thoát). Mỗi bước thêm một dòng vào `logs/index.csv`. Chạy lẻ một script thì bọc bằng `scripts/runlog.sh`: Log và runtime: mỗi lần chạy `run_p*.sh` tạo `logs/runs/<YYYYmmdd-HHMMSS>_p*/`, mỗi bước là một thư mục con có `log.txt` (stdout + stderr, cả của worker, đầu dòng có thời gian đã trôi) và `meta.json` (lệnh, git commit + hash mã nguồn, biến luồng, thiết bị, wall/CPU time, RSS và VRAM đỉnh, mã thoát). Mỗi bước thêm một dòng vào `logs/index.csv`. Chạy lẻ một script thì bọc bằng `scripts/runlog.sh`:
@@ -113,5 +138,25 @@ Biến môi trường máy đặt sẵn `OMP_NUM_THREADS=40` (cả MKL, OpenBLAS
| `python -P scripts/29_teapot_pilot.py` | Pilot P-a Teapot (Deviation 2): hình học, độ phủ horizon, σ̂_knot trên giếng dev (inline ≤ 200), không đọc porosity → `outputs/teapot/pilot_pa/` | | `python -P scripts/29_teapot_pilot.py` | Pilot P-a Teapot (Deviation 2): hình học, độ phủ horizon, σ̂_knot trên giếng dev (inline ≤ 200), không đọc porosity → `outputs/teapot/pilot_pa/` |
| `scripts/30_t4_coverage.py` | T4 post hoc, mô tả: tỉ số phân tán ξ (cột `kappa`), coverage90 và phần do số vòng lặp của các ensemble 5 seed, từ `outputs/p2r/train/*/cells/*.npz` và dev P2 → `outputs/t4/` | | `scripts/30_t4_coverage.py` | T4 post hoc, mô tả: tỉ số phân tán ξ (cột `kappa`), coverage90 và phần do số vòng lặp của các ensemble 5 seed, từ `outputs/p2r/train/*/cells/*.npz` và dev P2 → `outputs/t4/` |
| `scripts/31_p2r_posthoc.py` | Post hoc H2b, đọc `outputs/p2r/summary/` và dự đoán Oracle trong `outputs/p2r/train/<regime>/cells/*.npz` (khoảng 6 phút): tỉ số Oracle / B3d-Sa / M2-Sa, phần khoảng cách đã đóng; cận 1/B cho cấu trúc (a) classical (đã đăng ký) và (b) Berkson (thêm biến thể giữ hệ số ở 60 Hz và biến thể phổ chéo), tại σ_post và tại sai số warp; cờ vượt mép lưới B → `outputs/p2r/posthoc/{bound.csv, blur_ab.csv, meta.json}` | | `scripts/31_p2r_posthoc.py` | Post hoc H2b, đọc `outputs/p2r/summary/` và dự đoán Oracle trong `outputs/p2r/train/<regime>/cells/*.npz` (khoảng 6 phút): tỉ số Oracle / B3d-Sa / M2-Sa, phần khoảng cách đã đóng; cận 1/B cho cấu trúc (a) classical (đã đăng ký) và (b) Berkson (thêm biến thể giữ hệ số ở 60 Hz và biến thể phổ chéo), tại σ_post và tại sai số warp; cờ vượt mép lưới B → `outputs/p2r/posthoc/{bound.csv, blur_ab.csv, meta.json}` |
| `scripts/32_t2_mechanism.py` | T2 (P6, exploratory, khai báo trước ở `docs/research/t2-mechanism.md`): năm phép kiểm cơ chế của lợi ích bank trên realization 8–15 của P2r; `--tests i ii v` huấn luyện lại (GPU), `--tests iii iv` đọc particle (CPU, khoảng 7 phút); tự kiểm tái lập so với `outputs/p2r/train/` → `outputs/t2/`. Kết quả: `docs/research/t2-results.md` |
| `scripts/33_bench_generator_qc.py` | QC bộ sinh cho S2 (P6, `p6-gen`; CPU, khoảng 1 phút): với realization dev 902 và từng preset misspec trong `configs/d2_synth_bench.yaml`, đo thay đổi AI thật, wavelet thật (pha hằng khớp nhất, tần số đỉnh, băng 90 %), warp thật (RMS, bước nhảy, jitter), sai số mô hình mà registration thấy tại warp thật (wavelet F3 danh nghĩa và thành viên tốt nhất trong họ wavelet thống kê + pha hằng, quy ra dB), tie chỉ anchor (Laplace, N = 4); `--sweep` quét từng núm đơn; `--smc --device cuda:1` (hoặc `cpu`) chạy registration + SMC tie posterior như P2r cho từng preset ở R10/Rm5, N = 4, nối tiếp ô đã xong → `outputs/bench/dev/{generator_qc.json, generator_qc.png, generator_sweep.json, smc_qc_rid902.json}`. Thiết kế: `docs/research/bench-generator.md` |
| `scripts/34_run_bench.py <stage…> [--studies S1 S2 S3 S4 S8] [--device] [--workers] [--gpu-mem-gb] [--dev --rids 902…]` | Runner của `configs/protocol_bench.yaml` (P6, mức B): `lock` (khoá: `.sha256` + `.lock.json` gồm code, môi trường, input, artifact P2r tham chiếu, fingerprint bộ sinh danh nghĩa), `posterior` (SMC như scripts/14, nhánh estR, P = 1024, lưu hạt γ = 1/κ), `train` (như scripts/15 + B4a–d, nhánh S8 hai mode, backbone TCN), `summarize` (luật đã khai báo trước → `outputs/bench/summary/`), `repro` (ô tái lập P2r → `outputs/bench/repro/comparison.json`), `dev-budgets` (ngân sách TCN trên dev). Realization 8–15 chỉ chạy sau khi khoá; `--dev` chỉ nhận 900–905 và ghi vào `outputs/bench/dev/`. Resume theo fingerprint + checksum. Mã: `ml_porosity/benchmark/` |
| `scripts/35_bench_calibration.py [--rids 902 903 904 905]` | Bảng hiệu chuẩn mức S2 (dev): gộp `outputs/bench/dev/smc_qc_rid*.json` (scripts/33 `--smc`) thành `calibration.{csv,md}`: sai số mô hình trong họ so với nhiễu regime, SMC warp RMSE / coverage90 / σ_post / overconfidence, phase_R, B3c, theo preset × regime |
| `scripts/36_bench_verdicts.py` | Verdict cuối của protocol_bench (02/11/2026): kiểm lock (`freeze(check=True)`), đọc `verdict.json` của summarize và áp đúng lời phát biểu ở ba chỗ code đã khoá khác (S1-H1 lọc N ∈ {4, 16}; S2-H1 theo từng trục; S3-H1 đối thủ {B3b, B3c, B3c-R, B4a–d}, không có Ctl-GP) bằng chính hàm của `ml_porosity/benchmark/summary.py` → `outputs/bench/summary/{verdict_final.json,verdict_final.md,s3_h2a_stated.csv}`. Ngoài tập hash của lock; không sửa output của summarize (`docs/plan.md` §12 ý 28) |
| `scripts/37_bench_package.py <lệnh> [--out DIR]` (generate, check, tables, score, selftest) | S7 đóng gói benchmark (02/11/2026; ngoài lock, generate và tables kiểm lock trước): `generate` ghi 658 task (test 8–15, dev 900–905; 5 regime danh nghĩa × 5 c, 14 setting S2, 6 setting S8, 2 setting σ_a sai), truth công khai, input và `inputs/analyst.json` vào `outputs/bench/package/` (khoảng 845 MB), rồi so sha256 nội dung với `benchmark/MANIFEST.json` (lần đầu thì ghi); `check` kiểm một bản tải về; `tables` gộp 46.320 run tham chiếu → `reference/runs.csv.gz`, `benchmark/reference/{cells.csv,main_table.md}`; `score --pred DIR --name TÊN` chấm dự đoán `r<rid>_c<c>_n<N>_s<seed>.npz` (metric của scripts/11, luật ô H2a và luật better của `summary.py`) → `DIR/score/`; `selftest` chép dự đoán tham chiếu đã lưu thành bài nộp và kiểm metric, truth và luật khớp. Hướng dẫn cho người dùng: `benchmark/README.md` |
| `scripts/38_bench_figures.py [--only bench_s1,bench_s8] [--flipband]` | Hình Thí nghiệm 3 của bài (02/11/2026; ngoài lock, kiểm lock trước, không ghi vào `outputs/`): `bench_s1` (phase diagram S1 từ `outputs/bench/summary/s1_cells.csv`) và `bench_s8` (hàm truyền hai mode từ `s8_transfer_curves.json`; băng dùng được tính lại từ file dự đoán S8 như `summary.py`) → `paper/figures/{bench_s1,bench_s8}.pdf`, cùng style với scripts/22. `--flipband` chỉ in ra stdout bảng post hoc của Sec. 6.5: trung bình cos(πfΔ), cos²(πfΔ) (Hệ quả 3) và transfer đo được của PM2/BK2/HM2 trong băng 1/(2Δ) < f < 3/(2Δ) (D-14) |
| `scripts/39_repro_package.py <lệnh> [--out DIR]` (build, check, verify, code) | P5 gói tái lập (02/11/2026; ngoài mọi lock, không train, không ghi vào `outputs/` gốc): `build` chọn file của `outputs/` theo `RULES` và ghi 5 archive tar.gz tất định theo giấy phép dữ liệu (f3_results, f3_predictions, f3_volume: CC BY-SA 3.0; volve: CC BY-NC-SA 4.0; teapot: CC0, cần kiểm) vào `outputs/repro/`, cùng `repro/MANIFEST.json` (15.464 tệp tính đến 18/11, sha256 từng tệp và script sinh ra); `check --root DIR` kiểm một cây đã giải nén; `verify [--only …] [--keep]` dựng phòng sạch (code + archive, không SEG-Y/Volve/Teapot thô), chạy các bước tổng hợp, post hoc, bảng và hình, theo dõi file mở bằng audit hook rồi so với bản gốc. Sáu bước GP mới được kiểm riêng (xem `repro/README.md` §8) → `repro/verify_report.md` (02/11: 12/12 bước khớp, 63 file trùng byte, 3 trùng giá trị, 0 khác); `code --rev REV` ghi `git archive` của một commit. Hướng dẫn cho người đọc (tiếng Anh): `repro/README.md` |
| `scripts/40_band_spectra.py` | Mô tả post hoc (09/11/2026; ngoài mọi lock và ngoài các archive tái lập, không train): phân bố công suất trên 6 Hz trong cửa sổ 600–1100 ms của `PHIE_DT` F3 (4 giếng), nhãn synthetic và dự đoán Oracle ($N$ = 16, $c$ = 1; R10, R0, Rm5), cùng cách ước lượng periodogram với `scripts/31_p2r_posthoc.py` → `outputs/band_spectra/{table.csv,groups.csv,meta.json}`; dùng cho bảng `tab:bandspectra` (Phụ lục C) và mục "Band of the benchmark" của bài. |
| `scripts/41_lambda_limit.py --stage all` | Exploratory (09–10/11/2026; ngoài mọi lock và archive tái lập): huấn luyện lại bank SMC ở λ = 10⁻³ và MSE trên nhãn trung bình của bank ở 8 ô rộng + 3 ô hẹp của P2r, kiểm hash khai báo `docs/research/lambda-limit.md` trước khi chạy; resume theo ô. Kết quả `docs/research/lambda-limit-results.md`. |
| `scripts/49_bank_size.py --stage all` | Exploratory (16/11/2026; ngoài mọi lock và archive tái lập): bank SMC lồng nhau S = 16 ⊂ 64 ⊂ 256 ⊂ 1024 từ cùng 1024 hạt, cùng λ = 1/τ_c, ở 8 ô rộng + 3 ô hẹp của P2r (N = 16, 250 vòng), kèm S_eff và sai số Monte Carlo của warp trung bình; kiểm hash khai báo `docs/research/bank-size.md` trước khi chạy; resume theo ô (khoảng 1 giờ trên một H200). Kết quả `docs/research/bank-size-results.md`. |
| `scripts/50_ref_overlap.py [N]` | Kiểm trùng lặp offline (16/11/2026; ngoài mọi lock): so n-gram N từ (mặc định 8) giữa văn xuôi của `paper/sections/*.tex` và `paper_gp/main.tex` (bỏ công thức, lệnh trích dẫn) với văn bản của mọi PDF khác nhau trong `refs/` (PyMuPDF); ghi các đoạn trùng, dài nhất trước, vào `outputs/ref_overlap/overlap_n<N>.json`. Chỉ bắt được tái sử dụng gần nguyên văn và chỉ với `refs/`; không thay iThenticate. |
| `scripts/42_referee_r4.py --stage all|b1|b2|b3` | Exploratory (10/11/2026; ngoài mọi lock và archive tái lập, không train, CPU khoảng 4 phút): B1 hàm truyền Ĥ của mạng SMC mean so với Oracle (kiểm sharpening), B2 xác suất pass dưới null hoán vị của các luật, B3 độ lệch warp SMC–correlation tie không dùng truth; kiểm hash khai báo `docs/research/referee-r4-analyses.md` trước khi tính. Kết quả `docs/research/referee-r4-results.md`. |
| `scripts/43_referee_r5_ci.py` | Exploratory (10/11/2026; ngoài mọi lock và archive tái lập, không train, CPU 10 s): khoảng percentile, BCa và t-interval (log tỉ số, 7 bậc tự do) cho 38 tỉ số chính của bài; tỉ số B3d-Sa/B3d; band RMSE trên Oracle ở c = 0; kiểm hash khai báo `docs/research/referee-r5-ci.md`. Kết quả `docs/research/referee-r5-ci-results.md`. |
| `scripts/44_point_tie_arm.py --stage all|train|summary` | Exploratory (10/11/2026; ngoài mọi lock và archive tái lập; GPU, 17 phút): huấn luyện nhãn tại SMC-MAP (hạt tốt nhất theo log mục tiêu tempered) và Anchor-LS (cực trị posterior chỉ anchor) ở 96 ô–realization và so với các phương pháp đã đăng ký; kiểm tái lập B3d-Sa. Kết quả `docs/research/point-tie-arm-results.md`. |
| `scripts/45_referee_r5_followups.py --stage all|f1|f2` | Exploratory (10/11/2026; ngoài mọi lock; CPU, 16 phút): F1 kiểm độc lập sai số tie với dữ liệu (cần file hạt posterior), F2 số giếng mù theo kiểm định dấu, Wilcoxon và t cặp. Kết quả `docs/research/referee-r5-followups-results.md`. |
| `scripts/46_r6_replication.py --stage fingerprints|arms|summary` | Exploratory (11–12/11/2026; ngoài mọi lock và archive tái lập): sinh realization 16–23 và ghi fingerprint trước khi train; chạy các nhánh SMC-MAP, Anchor-LS, Ctl-GP; tổng hợp R-H2a, R-H2b, R-MAP, nhánh σ_a ở −5 dB → `outputs/replication/summary/` (`summary.md`, `verdict.json`, csv). Posterior và train dùng script 14/15 khóa qua `scripts/run_r6.sh`. Kiểm hash khai báo `docs/research/r6-replication.md` (`13b8b943…`). Kết quả `docs/research/r6-results.md`. |
| `scripts/47_r6_fixed_hyper.py` | Exploratory (11–12/11/2026): σ_a = 3,5 ms với siêu tham số drift của lần khớp 7 ms (cơ chế B3) → `outputs/replication/fixhyper_*`, `hyper_sigma_a.csv`. |
| `scripts/48_r6_cheap.py` | Exploratory (11/11/2026; CPU, không train): A1 n* của sign test hiệu chỉnh cho tương quan trong realization, A2 RMSE F-11 T2 Volve dưới bốn tham chiếu, A3 coverage ở cùng độ dài huấn luyện → `outputs/r6/`. |
| `scripts/run_r6.sh <stage>` | Driver của 46/47 và script 14/15 khóa (stage fingerprints, b3, c1, c0, sa, arms, summary); resume theo CSV đã có. |
`code_thesis/` là bản lưu trữ code luận văn. Giữ nguyên nội dung để đối chiếu: các script này còn đường dẫn máy cũ và ghi vào `outputs/`, nên cần một bản sao đã điều chỉnh đường dẫn nếu muốn chạy lại. Kiểm tra bộ artifact hiện có bằng `python scripts/00_data_manifest.py --dataset thesis --check`. `code_thesis/` là bản lưu trữ code luận văn. Giữ nguyên nội dung để đối chiếu: các script này còn đường dẫn máy cũ và ghi vào `outputs/`, nên cần một bản sao đã điều chỉnh đường dẫn nếu muốn chạy lại. Kiểm tra bộ artifact hiện có bằng `python scripts/00_data_manifest.py --dataset thesis --check`.

1353
benchmark/MANIFEST.json Normal file

File diff suppressed because it is too large Load Diff

212
benchmark/README.md Normal file
View File

@@ -0,0 +1,212 @@
# 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`.
### Scorer version
`MANIFEST.json` records `scorer_version`. Version 1.1 (17/11/2026) adds the anchor mean (`B3d`) to the competitor set of the H2a cell rule in the settings where a reference run of it exists (the seven nominal settings); the misspecification and two-mode settings have no such run, so there version 1.1 equals version 1.0. No content hash of the package changed, and `selftest` reproduces the reference rules (for example 0.8529 and 0.7964 for the nominal 10 dB cell at N = 4 and 16). `score` also writes `rule_point_ties_anchor.csv`, the rule against the deterministic ties plus the anchor mean.
### 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.

File diff suppressed because it is too large Load Diff

View 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 |

View 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 synthetic benchmark with known timing 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; 658 tasks. Includes the hidden truth, the analyst's nominal inputs, reference results of 21 method variants (46,320 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)."
}
}

107
configs/d2_synth_bench.yaml Normal file
View File

@@ -0,0 +1,107 @@
# D2 for protocol_bench (phase P6, S1/S2/S3/S4/S8): GENERATOR IDENTICAL to configs/d2_synth_p2r.yaml and therefore to
# configs/d2_synth.yaml (protocol_p2). This file differs only in comments, the `regimes` block (copied from p2r) and
# the `misspec_presets` block at the end; every key read by ml_porosity/data/synth_d2.py keeps its value, so the same
# realization yields the same data when no preset is applied (tests/test_d2_misspec.py). Do not edit the locked
# configs/d2_synth.yaml or configs/d2_synth_p2r.yaml.
horizons: [Shallow, FS8, FS7, Truncation, MFS4] # 5 horizons covering ≥ 95% of the survey (Top-Foresets 74%, FS6 49%)
horizon_cache: outputs/d2/horizon_grid.npz
min_gap_ms: 8 # drop bins where two consecutive horizons are < 8 ms apart or out of order
sub_unit_ms: 60 # nominal sub-unit thickness (unit boundaries = markers/anchors)
model_t_ms: [-300, 2400] # earth-model domain in true time; wide enough that t(τ) of the 100–1650 ms log stays inside at drift ×2
log_tau_ms: [100, 1650] # log domain in sonic time τ
fine_dt_ms: 0.5
warp_dtau_ms: 4.0 # grid of g
dt_ms: 4
ext_window_ms: [400, 1300] # seismic + anchors (as in F3)
main_window_ms: [600, 1100] # input/labels/scoring (as in F3)
patch_radius: 1
wells:
n_test: 8
n_train_pool: 16 # N_train ∈ {2, 4, 8, 16}, nested draws from the pool
min_dist_test_m: 1000 # test wells ≥ 1 km from every other well (spatial block split)
min_dist_train_m: 500
property:
phi0: 0.32
phi0_sd: 0.01
slope_per_100ms: -0.008
unit_offset_sd: 0.02
unit_lateral_sd: 0.01
grf: # sum of OU processes in stratigraphic coordinates
- {sd: 0.010, ell_ms: 10.0}
- {sd: 0.006, ell_ms: 2.0}
clip: [0.05, 0.45]
wavelet: statistical # outputs/wavelets.npz (zero phase, 128 ms) from scripts/04
snr_db: 10 # generator default; the protocol takes SNR from the regimes below
drift:
prior_json: outputs/p2/warp_prior_f3.json # Matérn-3/2 fit on F3 anchors (scripts/09)
factors: [0, 0.5, 1, 2]
anchors:
density: full
sigma_a_ms: 7.0 # robust σ (MAD) of marker–horizon differences at the 4 F3 wells (18 pairs): 6.9 ms
regimes: # identical to configs/d2_synth_p2r.yaml
R10: {snr_db: 10, anchor_density: full} # P2 default; narrow posterior (dev σ_post ≈ 0.85 ms at c = 1)
R0: {snr_db: 0, anchor_density: full} # dev σ_post ≈ 1.9 ms at c = 1
Rm5: {snr_db: -5, anchor_density: full} # close to F3 under the protocol prior (dev σ_post ≈ 3.0 ms, F3 2.5–3.4 ms)
R0h: {snr_db: 0, anchor_density: half} # sparse anchors: dev σ_post ≈ 1.8 / 4.5 ms at c = 1 / 2
R10tb: {snr_db: 10, anchor_density: topbottom} # top–bottom anchors only: dev σ_post ≈ 2.6 / 11 ms (multimodal, overconfident posterior)
# S2 misspecification presets (plan §12 item 22, decision 2; docs/research/bench-generator.md; levels fixed on dev
# realizations 902–905 on 29/10/2026, docs/research/bench-protocol.md §3). Each preset is a `misspec` argument of
# D2Realization (keys and defaults: synth_d2.MISSPEC_DEFAULTS; a `note` key is ignored). Main cells of protocol_bench
# S2: rp_L1, rp_L2, wv_L1, wv_L2, wv_Q, dr_L1, dr_L2. The control presets (*_C) document what the registration's model
# family absorbs; they are never main cells. The cand_* presets below are the calibration candidates (dev evidence
# only; kept so that the calibration is reproducible). Realizations 8–15 were not used to choose any level.
misspec_presets:
rp_C: # control: uniform coefficient error only. The profiled amplitude α of the tie likelihood
note: "control: uniform φ–DT / density coefficient error (plan §5.5 literal axis); absorbed by the profiled amplitude (QC: in-family error 0.073 = nominal)"
rock_physics: {dt_slope_factor: 1.15, dt_intercept_factor: 1.15, rho_slope_factor: 1.2}
rp_L1: # per-unit intercept scatter (lithology-dependent matrix slowness); uniform factors dropped (invisible)
note: "L1: unit_dt_intercept_sd 0.10 (DT_matrix ±18 µs/m per unit; in-family model error 0.39 = 1.2 × R10 noise, 0.22 × Rm5 noise); dev SMC at R10 (rids 903–905, N = 4): warp RMSE ×1.27, cov90 0.85"
rock_physics: {unit_dt_intercept_sd: 0.10}
rp_L2:
note: "L2: unit_dt_intercept_sd 0.15 (±27 µs/m; model error 0.53 = 1.7 × R10 noise, 0.30 × Rm5); dev SMC at R10 (rids 902–905): warp RMSE ×1.66, cov90 0.81. Expected null at Rm5 (model error far below the noise)"
rock_physics: {unit_dt_intercept_sd: 0.15}
wv_C: # control: constant phase + peak-frequency factor, both inside the registration's family
note: "control: constant 45° phase and peak frequency ×1.2: absorbed by the statistical wavelet + constant-phase fit (15° grid)"
wavelet: {phase_deg: 45.0, peak_freq_factor: 1.2}
wv_L1: # frequency-dependent phase (phase sub-axis), nominal amplitude spectrum
note: "L1: minphase_frac 0.5 (half of the minimum-phase spectrum; model error 0.34 = 1.08 × R10 noise); dev SMC at R10 (rids 902–905): warp RMSE ×3.2, cov90 0.11 (overconfident) but still ahead of the point ties (2.1 vs 4.3 ms)"
wavelet: {minphase_frac: 0.5}
wv_L2:
note: "L2: minphase_frac 1.0 (minimum-phase version of the nominal wavelet; model error 0.61 = 1.9 × R10 noise); dev SMC at R10 (rids 902–905): warp RMSE ×5.9, cov90 0.03, ahead of B3c in 3/4 rids only"
wavelet: {minphase_frac: 1.0}
wv_Q: # bandwidth sub-axis: time-variant constant-Q attenuation (stationary statistical wavelet is wrong at both ends of the window)
note: "bandwidth cell (single level): Q 80 from t_ref = 400 ms with Futterman dispersion (peak 59 → 32 Hz over 600–1100 ms; model error 0.45 = 1.4 × R10 noise); dev SMC at R10 (rids 902–905): warp RMSE ×1.57, cov90 0.84, σ_post ×1.8 (the posterior widens rather than collapses)"
wavelet: {Q: 80.0, Q_t_ref_ms: 400.0, Q_dispersion: true}
dr_L1: # mechanism 1: the truth is drawn from scaled hyperparameters (σ_b 58 ms > the registration's fixed 50 ms; rougher g); partly absorbed by MAP-II
note: "L1 (hyperparameter mechanism): sigma_b ×3, sigma_g ×1.5, ell ×0.5 (same z_g, z_b); dev SMC at R10 (rids 902–905): warp RMSE ×2.2 (1.1–2.1 ms), cov90 0.75"
drift: {sigma_b_factor: 3.0, sigma_g_factor: 1.5, ell_factor: 0.5}
dr_L2: # mechanism 2: components outside the GP family (step at Truncation, short-correlation jitter); the step does not scale with c
note: "L2 (structural mechanism): step 8 ms just below Truncation (12 ms anomaly) plus Matérn-3/2 jitter sd 1 ms, ell 8 ms; dev SMC at R10 (rids 902–905): warp RMSE ×3.3 (1.3–4.1 ms), cov90 0.61"
drift: {step_ms: 8.0, step_width_ms: 12.0, step_horizon: Truncation, jitter_sd_ms: 1.0, jitter_ell_ms: 8.0}
# --- dev calibration candidates (29/10/2026, phase 2 of P6): single-knob and combined settings whose SMC-stage
# diagnostics on dev realizations 902–905 (scripts/33 --smc, N = 4, c = 1, R10 and Rm5) choose the L1/L2 levels
# above. They are never main cells. Rock physics: per-unit intercept scatter only (the uniform factors are
# invariant under the profiled-amplitude likelihood, docs/research/bench-generator.md §2, and stay in rp_C).
cand_rp_a: {note: "candidate: unit_dt_intercept_sd 0.05 (in-family model error 0.217, 13.3 dB)", rock_physics: {unit_dt_intercept_sd: 0.05}}
cand_rp_b: {note: "candidate: unit_dt_intercept_sd 0.10 (0.391, 8.2 dB)", rock_physics: {unit_dt_intercept_sd: 0.10}}
cand_rp_c: {note: "candidate: unit_dt_intercept_sd 0.15 (0.531, 5.5 dB)", rock_physics: {unit_dt_intercept_sd: 0.15}}
cand_wv_a: {note: "candidate: minphase_frac 0.5 (0.342, 9.3 dB)", wavelet: {minphase_frac: 0.5}}
cand_wv_b: {note: "candidate: Q 160 from 400 ms with dispersion (0.259, 11.7 dB)", wavelet: {Q: 160.0, Q_t_ref_ms: 400.0, Q_dispersion: true}}
cand_wv_c: {note: "candidate: minphase_frac 1.0 (0.609, 4.3 dB) = wv_L1 placeholder", wavelet: {minphase_frac: 1.0}}
cand_wv_d: {note: "candidate: Q 80 (0.445, 7.0 dB)", wavelet: {Q: 80.0, Q_t_ref_ms: 400.0, Q_dispersion: true}}
cand_wv_e: {note: "candidate: minphase_frac 0.5 + Q 160", wavelet: {minphase_frac: 0.5, Q: 160.0, Q_t_ref_ms: 400.0, Q_dispersion: true}}
cand_dr_h: {note: "candidate: hyperparameter misspecification only = dr_L1 placeholder", drift: {sigma_b_factor: 3.0, sigma_g_factor: 1.5, ell_factor: 0.5}}
cand_dr_s: {note: "candidate: structural components only (step 8 ms, jitter 1 ms) = dr_L2 placeholder", drift: {step_ms: 8.0, step_width_ms: 12.0, step_horizon: Truncation, jitter_sd_ms: 1.0, jitter_ell_ms: 8.0}}
cand_dr_hs: {note: "candidate: hyperparameters + structural components", drift: {sigma_b_factor: 3.0, sigma_g_factor: 1.5, ell_factor: 0.5, step_ms: 8.0, step_width_ms: 12.0, step_horizon: Truncation, jitter_sd_ms: 1.0, jitter_ell_ms: 8.0}}
cand_dr_s2: {note: "candidate: stronger structural components (step 16 ms, jitter 2 ms)", drift: {step_ms: 16.0, step_width_ms: 12.0, step_horizon: Truncation, jitter_sd_ms: 2.0, jitter_ell_ms: 8.0}}
cand_rp_d: {note: "candidate: unit_dt_intercept_sd 0.075 (in-family model error ≈ 0.30, ≈ 0.95 × R10 noise)", rock_physics: {unit_dt_intercept_sd: 0.075}}
cand_wv_f: {note: "candidate: minphase_frac 0.25 (0.197, 14.1 dB)", wavelet: {minphase_frac: 0.25}}
cand_wv_g: {note: "candidate: Q 40 (0.652, 3.7 dB)", wavelet: {Q: 40.0, Q_t_ref_ms: 400.0, Q_dispersion: true}}
cand_wv_h: {note: "candidate: minphase_frac 0.5 + Q 80 (phase and bandwidth)", wavelet: {minphase_frac: 0.5, Q: 80.0, Q_t_ref_ms: 400.0, Q_dispersion: true}}

View File

@@ -0,0 +1,166 @@
{
"protocol_sha256": "aa763f0a4f81125ea8441fdfba4361f68246c7a0be1c36d4bf8de2650a91a4c5",
"code_sha256": "5ea2eb17681459ed973217c9d61706a269f1913314fec0848bb2d5c99eb6bbb8",
"environment": {
"python": "3.13.15",
"platform": "Linux",
"packages": {
"torch": "2.14.0+cu130",
"numpy": "2.5.4",
"scipy": "1.18.1",
"pandas": "3.0.6",
"matplotlib": "3.11.2",
"segyio": "1.9.14",
"lasio": "0.32",
"pylops": "2.5.0",
"numba": "0.67.0",
"scikit-learn": "1.9.1",
"PyYAML": "6.0.3",
"tabulate": "0.10.0",
"psutil": "7.2.2"
}
},
"inputs": {
"repo:configs/d2_synth_bench.yaml": "2bfd01c94f169116fb92e7c1ac92db8bbe003973a610c32b2740e864b4c761b2",
"repo:configs/protocol_p2.yaml": "0733620042c4ec1b7dce447eef3ec64f915db05acbebbe5b6c977ac42e71a470",
"repo:configs/protocol_p2r.yaml": "eb887311f26a7c1c3dc69d9623d0086cfb5ccc79eea9e5ef59c723078f49c8aa",
"outputs:p2/warp_prior_f3.json": "55cda573c06b3a7275bdb4ac5f169fb4e5af329e1d199acc3d4daffe15624d27",
"outputs:wavelets.npz": "b689ea12578e580d8c2305c8f7219be05ff6e339884fa30b694111e968c0fc64",
"outputs:d2/horizon_grid.npz": "70e3321fa9f8fe2a1301877fb34386a64bf29eaa4f6948007e18874678e92b1e",
"outputs:p2/diag/train/budgets.json": "815c6f7abc3d961255feb79bbed57a3e326cbc24cec11bbd97f455f0356e28c5",
"repo:tests/data/d2_fingerprints.json": "86cbd6dd49044c1288ec6b649a2d688bf4121280d5cc3dca9b45109523bd6fc1"
},
"p2r_reference": {
"outputs:p2r/summary/sigma_post.csv": "81993c37d434bdb4474df6ee1980234e705157b4564b9db3eea8a4353d93eeaa",
"outputs:p2r/train/R10/runs.csv": "68a9b790b0697c7122ced975b210e41d0f1437a15b4f1924e74bc5717ae0f728",
"outputs:p2r/train/R0/runs.csv": "0e5545450c25befe71684592b51dcf42d988b049f422542893493e72bd25fbd5",
"outputs:p2r/train/Rm5/runs.csv": "3f34805b565effe8430d06ba25db4b8cea53d21df1edc5187b41c6d04dc5d8cc",
"outputs:p2r/train/R0h/runs.csv": "2fb21ddae78066c81ba530632dfd21c237d505b317b0da2322242360b85ebc5e",
"outputs:p2r/train/R10tb/runs.csv": "155394bacfa60ef7c8adc93f690fd1fcfa7580e6c230add1712bc1cbf4a18d47",
"outputs:p2r/posterior/R10/r8_c1_n4_s0_particles.npz": "2221b21a178bef237dcd7fac9134a892dd49c5229e07f61279dff40d9dd35498",
"outputs:p2r/posterior/R10/r8_c1_n4_s0_phase.json": "af449f4626f26c27410d953d7ac25b99dfddc6247b58ec756479728779b937ed",
"outputs:p2r/posterior/R10/r9_c1_n4_s0_particles.npz": "8319ae0973d6939991f59298373a1021ecde9ff36bae4e0c9e94182be2c49edd",
"outputs:p2r/posterior/R10/r9_c1_n4_s0_phase.json": "109a2edf27f883f1ed49b375eb6bb88910f9d688d0acf1d6c8557692fbb494bb",
"outputs:p2r/posterior/R10/r10_c1_n4_s0_particles.npz": "f75919b16fecfae9571621205ca46abaefcd89faad41181cfa8dfaf86eee104c",
"outputs:p2r/posterior/R10/r10_c1_n4_s0_phase.json": "dd308be9dbbbb0dab231f1568331c95d135fe9ed1cfe791981ae7f27521e1cfa",
"outputs:p2r/posterior/R10/r11_c1_n4_s0_particles.npz": "82746d118a3ae765c2f6ca2c598c554427a210098e15bbe6112ab669fac078ea",
"outputs:p2r/posterior/R10/r11_c1_n4_s0_phase.json": "589b6a9a0759f78c0deec2570cfcf1d9e999d606496f63d274a299406639a2a1",
"outputs:p2r/posterior/R10/r12_c1_n4_s0_particles.npz": "18b5704ef49a6be85718be3afd36adbb1b3b05ac001a4d042825f82e7390b8b3",
"outputs:p2r/posterior/R10/r12_c1_n4_s0_phase.json": "edcb9c55168fd4148ca140b8152114c5ed6518de2408a4b5b766d7afe700618a",
"outputs:p2r/posterior/R10/r13_c1_n4_s0_particles.npz": "c1ffbe821f0f592362bbd07e8395a1573ba6984c9fb2130a8ddd8fedb0439f38",
"outputs:p2r/posterior/R10/r13_c1_n4_s0_phase.json": "9d270dcac190498b135849424e933586789fab5e54f569d1f6c5d60ceca6ccd5",
"outputs:p2r/posterior/R10/r14_c1_n4_s0_particles.npz": "566d13c7f2fc5db635012b954adf4c07a2f826b40bbc52de6d237e8cd717870c",
"outputs:p2r/posterior/R10/r14_c1_n4_s0_phase.json": "17fa46ad5f285dc058fcb2cec4dc771fc9b808b356ba1778dcee6db92dbf3540",
"outputs:p2r/posterior/R10/r15_c1_n4_s0_particles.npz": "16cd72a0541e6a739548cdb2762b4a31c17732785aa976faf36e895b93de5335",
"outputs:p2r/posterior/R10/r15_c1_n4_s0_phase.json": "2cb76771811b2b44f1d8a45798bae3d6f15b4e4e0345212147afda5859d41705",
"outputs:p2r/posterior/R10/r8_c1_n16_s0_particles.npz": "6d117e2cafe77f1e40250465dfabd28caefef97ef547e648877ef5d4dc0fc621",
"outputs:p2r/posterior/R10/r8_c1_n16_s0_phase.json": "473edfa3d0d196a70aef8bd21b30c8781e3200d5e98b6d5f4805446f61e604cf",
"outputs:p2r/posterior/R10/r9_c1_n16_s0_particles.npz": "0b124530110ace9bf02c81a94bb1a90a1205ee99817dcbf30689e7bbb98b7fc9",
"outputs:p2r/posterior/R10/r9_c1_n16_s0_phase.json": "b3bac0cbf6c7fc360b3bcc4e9594a7896f5fdf2d9deda17df3d799223b7af0fd",
"outputs:p2r/posterior/R10/r10_c1_n16_s0_particles.npz": "37352c3c778105c98554d0aba982f91f02876b5b6efa5572745aa71d54194776",
"outputs:p2r/posterior/R10/r10_c1_n16_s0_phase.json": "93bcd2dfc6b050f9ef3195ca4747eb7c33b3629916f0629e44b6c93288fbe7c8",
"outputs:p2r/posterior/R10/r11_c1_n16_s0_particles.npz": "8cfd481f0d264c4d522e23b3ac1a3583a447167b87418734ea7733cc3c0063c9",
"outputs:p2r/posterior/R10/r11_c1_n16_s0_phase.json": "9fd2c2cf41c7c067c28ba66b1a6669069c74d5db179acc4d9714dbc8261c0518",
"outputs:p2r/posterior/R10/r12_c1_n16_s0_particles.npz": "4300b1107779f1a88a79fca6c10a845daddd2661575efd74b24ac73bbc8ade9a",
"outputs:p2r/posterior/R10/r12_c1_n16_s0_phase.json": "3036584163a098446cc5eb93b1f514248c07a467e0d0b554a39f2b8a98ec778b",
"outputs:p2r/posterior/R10/r13_c1_n16_s0_particles.npz": "b537f59b93b49081901cd9eccb623a2ae6f9743ead46bdd87145218f1a33cf80",
"outputs:p2r/posterior/R10/r13_c1_n16_s0_phase.json": "d951a6ac2d2a9b35eb157a086c930a2c0f7be9cde179269a61c2641a6078b4d6",
"outputs:p2r/posterior/R10/r14_c1_n16_s0_particles.npz": "244cc82ce07bdb01c3f197f62c92c6cc34509aa5d9e477178d678618841eed57",
"outputs:p2r/posterior/R10/r14_c1_n16_s0_phase.json": "230a42baf6e4865eac18d4851f3f3ad47c0200a73d6706a3191e6dc2a7491224",
"outputs:p2r/posterior/R10/r15_c1_n16_s0_particles.npz": "3bdb8ed21d9c3cbd4b9e05bd9b391c2da8b3c8a27fd4f1dac9e89967b1f3300a",
"outputs:p2r/posterior/R10/r15_c1_n16_s0_phase.json": "36b79c5cc8d6f36557cfbfc682f7f87fd94df592594f8e95d71d663098358959",
"outputs:p2r/posterior/Rm5/r8_c1_n4_s0_particles.npz": "330f656862017097733b1abb4e774a927f396e9f984bab44c9b53719b125fc93",
"outputs:p2r/posterior/Rm5/r8_c1_n4_s0_phase.json": "8f1a5279db5042add8efb12cd5a425b8dc2af195a66f530044232f947ccae63c",
"outputs:p2r/posterior/Rm5/r9_c1_n4_s0_particles.npz": "2689b63440065bbf7820f6d3a77d9d6469494cdfc9346b19939c231a264a2d8a",
"outputs:p2r/posterior/Rm5/r9_c1_n4_s0_phase.json": "c4ad961246b42c30e1cdb4051bf75808726c40b584a7b83c4c936ece20c6c78b",
"outputs:p2r/posterior/Rm5/r10_c1_n4_s0_particles.npz": "226c494a7ac1b236bdd6ecd23940f809087501a42e626be77f7891136f0ba0b8",
"outputs:p2r/posterior/Rm5/r10_c1_n4_s0_phase.json": "72e053d1a113f95d417582fba0bd4fca11fafe102f35df46e35a2731cbb5a1c6",
"outputs:p2r/posterior/Rm5/r11_c1_n4_s0_particles.npz": "9155fd1537d5b01ffa02baf7d48f5d7d2f36afc739ffe10c08062514d857b470",
"outputs:p2r/posterior/Rm5/r11_c1_n4_s0_phase.json": "a171d8f099c31a0ef9ff7c04ba50ce0d8015b3165c5cb3f0b63b678a2c75557b",
"outputs:p2r/posterior/Rm5/r12_c1_n4_s0_particles.npz": "46756fc65b51232644bffbe7e990549db9c26b5c995865c394d01ecfa448611c",
"outputs:p2r/posterior/Rm5/r12_c1_n4_s0_phase.json": "c67ce4c8dace40a1cb1ebf49c84f8dd7815603397ccb69cd21ea4ac8764fd446",
"outputs:p2r/posterior/Rm5/r13_c1_n4_s0_particles.npz": "5bb923440ac215439b360cebc2a004c575db69b36a548037b3be63a8992f1c91",
"outputs:p2r/posterior/Rm5/r13_c1_n4_s0_phase.json": "c9715ff84285491c9dfd7b1f698f39571d5b2253584ec68014f83abd971c3f5f",
"outputs:p2r/posterior/Rm5/r14_c1_n4_s0_particles.npz": "4016b3c2057790c3e40038c0f08c6e9893c144ba7270c493039046a5bbf4de87",
"outputs:p2r/posterior/Rm5/r14_c1_n4_s0_phase.json": "c19eaa7ca8215602a325381b85abdaf715eae693072702f085674858f2457eba",
"outputs:p2r/posterior/Rm5/r15_c1_n4_s0_particles.npz": "dfb5a06a345b8ffb4ee9998647c5d53e7e151b894048d4ff0a0dfd553ae36dd0",
"outputs:p2r/posterior/Rm5/r15_c1_n4_s0_phase.json": "96401dc3d10f6f187380fdebca6a22e763fe23e742ea0fdc5f53fca1484c798e",
"outputs:p2r/posterior/Rm5/r8_c1_n16_s0_particles.npz": "2c0480f2c14111663c5fbbddc6a84f65ba809e818be1247400c054680e6ec509",
"outputs:p2r/posterior/Rm5/r8_c1_n16_s0_phase.json": "cc11f96033ba8748fe72eb858bd679e5a067e1a7709843fad9298d9d5efd46f0",
"outputs:p2r/posterior/Rm5/r9_c1_n16_s0_particles.npz": "33bfe288e207f0b409885b486df05b182a99ea23c15a134a85515451434f99f8",
"outputs:p2r/posterior/Rm5/r9_c1_n16_s0_phase.json": "f7d03ffd0d3d15a021c40e0b643981b304c33d72ca3c608c7e31f41b733c1451",
"outputs:p2r/posterior/Rm5/r10_c1_n16_s0_particles.npz": "dd3c1634e2e2c72633e22992c5a993825d501821f1ed8f701178add03e4836fb",
"outputs:p2r/posterior/Rm5/r10_c1_n16_s0_phase.json": "81d651de74dfdac67e9942f46bd89dd1473a2aee3d24900ec35c848f5d86bd93",
"outputs:p2r/posterior/Rm5/r11_c1_n16_s0_particles.npz": "56c3aeed9e9b3fcf9b67131ec5300a9f75b2fc06578e04a955ba290ed29b5a14",
"outputs:p2r/posterior/Rm5/r11_c1_n16_s0_phase.json": "43b421054e5d4e563fcb1237bac5ac57c7487ad4f91499f9cd81a8048ec973a4",
"outputs:p2r/posterior/Rm5/r12_c1_n16_s0_particles.npz": "413187f2c4ffa087a494cde19acef2ebdf44b0bf6f3d7b2cfbbfe94dcb948406",
"outputs:p2r/posterior/Rm5/r12_c1_n16_s0_phase.json": "7113f91f5d7ecd6e0b03f1fd2be328be4ba3ff9814d9fbd42a7252fb730ce6f7",
"outputs:p2r/posterior/Rm5/r13_c1_n16_s0_particles.npz": "c89c55818d71b90b4afa1e92a447a72e333d365675a6c3142f4a63bf07dd20a0",
"outputs:p2r/posterior/Rm5/r13_c1_n16_s0_phase.json": "1d5297b1dc819908fb66a4de4fe5d7749a0fbf82ee4b198b8641d3e24ffbb505",
"outputs:p2r/posterior/Rm5/r14_c1_n16_s0_particles.npz": "4b2e17b34e0a34aab2d664349f4a942b7729bc59b4ccdcab06b6aadd73677770",
"outputs:p2r/posterior/Rm5/r14_c1_n16_s0_phase.json": "6a96189e555b9c86528eb2a89f4b3ef9250540224a6a7f3bff6f7989fe67041a",
"outputs:p2r/posterior/Rm5/r15_c1_n16_s0_particles.npz": "acc9499057c1607afd22d16da9ce4d5fb61bc17c84bdb4384e5d7650a566aa9c",
"outputs:p2r/posterior/Rm5/r15_c1_n16_s0_phase.json": "58c3370e34f5555f24270eef395499616eb66ae5369d651291120e27111c0cd3",
"outputs:p2r/posterior/R0h/r8_c1_n4_s0_particles.npz": "363b747704ed7af158264d20137522e4d8d5a86cfe570cd3563d63d7d509124c",
"outputs:p2r/posterior/R0h/r8_c1_n4_s0_phase.json": "3519c7ceeba60bac013c760f78dd96a4638b403d4980b9111f3e226e130147c0",
"outputs:p2r/posterior/R0h/r9_c1_n4_s0_particles.npz": "e0411696908e91b56475ee6d28a8314425941f08eab7d318f92a2127d412476f",
"outputs:p2r/posterior/R0h/r9_c1_n4_s0_phase.json": "6ce7632e2f4e0e7ef3694704df61bd60f50f2a919c509d180d4a5b364a521d07",
"outputs:p2r/posterior/R0h/r10_c1_n4_s0_particles.npz": "ccf6ff42e18e5caf1424cf99a76717b44cf859908205ef91841b819b745f392f",
"outputs:p2r/posterior/R0h/r10_c1_n4_s0_phase.json": "9333225fa963bbef09dd39664b2e80a33fbb8170e88a5ce52d1996ba0e37c15f",
"outputs:p2r/posterior/R0h/r11_c1_n4_s0_particles.npz": "3b80796b3944413562742bc0843106571298e44aeb5f734eb0f15c5c0cd2da03",
"outputs:p2r/posterior/R0h/r11_c1_n4_s0_phase.json": "4fb5a297b5845dfdf5f3fe7a3457865afb7954185bf3b6e3757ee80779c67b99",
"outputs:p2r/posterior/R0h/r12_c1_n4_s0_particles.npz": "bc05e164683b73d94dbdd1559f6c0e53a8c2e9847f414088a3570590e703aca6",
"outputs:p2r/posterior/R0h/r12_c1_n4_s0_phase.json": "1549857aca3c4d412aa5246fd6e4846e0ae44307ffd96fdb0131c10e9682a339",
"outputs:p2r/posterior/R0h/r13_c1_n4_s0_particles.npz": "0600bd71479316eb53e29a940af46726917a555a5489afbcac95939acef76663",
"outputs:p2r/posterior/R0h/r13_c1_n4_s0_phase.json": "c671c7bbd0caae492e232dca66854e3ec72c1c4116aef3d6eab337503a142d05",
"outputs:p2r/posterior/R0h/r14_c1_n4_s0_particles.npz": "761bdf503cf84d2aee01fd249f9a6cf6f33ecefd3e996e175ff37a7d231527aa",
"outputs:p2r/posterior/R0h/r14_c1_n4_s0_phase.json": "e5464d5304b22ada70ae8b69b31afd08cf3c637a8c6d3f01f89ee044e7c9a808",
"outputs:p2r/posterior/R0h/r15_c1_n4_s0_particles.npz": "9a998f657239175883556d9acb749eafc885f01fc8b5e301d3945b3daaffdf9a",
"outputs:p2r/posterior/R0h/r15_c1_n4_s0_phase.json": "0659850be0f8b937c0f140bb83e8559684f0f8d47f5c23a179d558a1b2068486",
"outputs:p2r/posterior/R0h/r8_c1_n16_s0_particles.npz": "dc261c29af42887806406c14ff5a98ee9e0b4438a1002d360688091400649266",
"outputs:p2r/posterior/R0h/r8_c1_n16_s0_phase.json": "40979d874d3e20af80c2f26afd0a091f509abdc6100543c3e864b89e969bbb6a",
"outputs:p2r/posterior/R0h/r9_c1_n16_s0_particles.npz": "76abcd6d9da0184904473cf51ac62c9bc1c2c7ef768016be0876c3d60e5943f1",
"outputs:p2r/posterior/R0h/r9_c1_n16_s0_phase.json": "5999b1fe877cc21c4e712d6dccc221ed558a4a642345311074ea7b905f3e3745",
"outputs:p2r/posterior/R0h/r10_c1_n16_s0_particles.npz": "050fd0db044f68389136ce04b1a2c747e6959de28d22d41442b9a0b4668f28df",
"outputs:p2r/posterior/R0h/r10_c1_n16_s0_phase.json": "9d66d40af704e2d6170d89b4a8d0ad689a0083c379744eb532cd2504fc8b4686",
"outputs:p2r/posterior/R0h/r11_c1_n16_s0_particles.npz": "630d576b74725a0376ca2ddee568ad7372f017ca158071b5360ce3a24b20b656",
"outputs:p2r/posterior/R0h/r11_c1_n16_s0_phase.json": "456d8a69ab4b9049510e06b29b12dde9252f7eb3fa97b2e5867634de16b8d7b3",
"outputs:p2r/posterior/R0h/r12_c1_n16_s0_particles.npz": "100247cd4db887911212d17e752107ad848b5448481542e2493ca686aa2c3bd4",
"outputs:p2r/posterior/R0h/r12_c1_n16_s0_phase.json": "a1953bffa9f0b15d0e8616d1ee26859738a2fac32ebc2d7c678133a7f9f52124",
"outputs:p2r/posterior/R0h/r13_c1_n16_s0_particles.npz": "06c6e84cf1d4ac270c677a3ea43143f250a2834c51533e628f23c6634f783169",
"outputs:p2r/posterior/R0h/r13_c1_n16_s0_phase.json": "2eada76427f27f3e853674c76394f6e3d97126c9ebb2ca7cfb4110b8e963c31b",
"outputs:p2r/posterior/R0h/r14_c1_n16_s0_particles.npz": "ca5521c1aabe3fa9ae86e7db6bc2b0f9bd2b71d7eaa900ef3232e3fa01c293f0",
"outputs:p2r/posterior/R0h/r14_c1_n16_s0_phase.json": "00fb832008590ee27c07b72666c2402ca2793e50212dfc4819ac17587daa61db",
"outputs:p2r/posterior/R0h/r15_c1_n16_s0_particles.npz": "41cc06637eed575d698f3edccbd8b8b5f265463c061a69d51ccaa7725e901165",
"outputs:p2r/posterior/R0h/r15_c1_n16_s0_phase.json": "d0df0a3f9cb55a16d893de229d7880db4dc047aee038b87f4e9430242499b6b5"
},
"nominal_fingerprints": {
"8": {
"match": true,
"sha256_of_fingerprint": "09ab86e2d27583a42e66f4468c3cd7b67d90d5538e305c34fa406ad8711014a8"
},
"902": {
"match": true,
"sha256_of_fingerprint": "a9e084ba63afa05706887dde80a9c5fbef33727fedbbd665bd2d1207cd6f8e8a"
}
},
"locked_utc": "2026-10-29T14:39:20.607386+00:00",
"canonical_text": "UTF-8, CRLF normalized to LF for code, protocol and text inputs; binary inputs exact",
"studies": [
"S1",
"S2",
"S3",
"S4",
"S8"
],
"realizations": [
8,
9,
10,
11,
12,
13,
14,
15
]
}

View File

@@ -0,0 +1 @@
aa763f0a4f81125ea8441fdfba4361f68246c7a0be1c36d4bf8de2650a91a4c5 configs/protocol_bench.yaml

427
configs/protocol_bench.yaml Normal file
View File

@@ -0,0 +1,427 @@
# Protocol bench (phase P6, level B of Pivot 1; plan §12 items 22 and 26; docs/research/pivot-theory-benchmark.md §6).
# Registration-aware synthetic benchmark on D2: S1 grid fill, S2 misspecification axes, S3 anchor-free baselines
# under the P2r cells, S4 second backbone, S8 controlled cycle-skip regime. Locked by SHA-256 (configs/protocol_bench.sha256)
# and configs/protocol_bench.lock.json (code, environment, inputs, P2r reference artifacts, nominal generator
# fingerprints) BEFORE the first run on realizations 8–15: `scripts/run_bench.sh lock`. After the lock this file is
# never edited; a change needs protocol_bench v2 with a recorded deviation. Dev realizations 902–905 (and 900/901)
# are the only realizations used for design; their outputs (outputs/bench/dev) are never results.
status: "LOCKED 2026-10-29 — reviewed by the coordinator (7 fixes applied), locked by scripts/run_bench.sh lock after the dev TCN budget selection; no main-grid run before the lock"
version: 1
date: 2026-10-29
designed_after: >
Designed on 29/10/2026 after the complete protocol_p2r results (H2a pass at R10/R0/Rm5, H2b pass, σ_a arm fail,
H3 descriptive), after the field phases P3 (G-C fail) and P4 (G-D fail), and after the post hoc inspection of
29/10/2026 (outputs/p2r/posthoc: Oracle/B3d-Sa and M2-Sa/B3d-Sa ratios, the classical and Berkson bounds (a), (b),
b60 and cross-spectral, at σ_post and at the warp error; plan §12 item 24). The T2 mechanism study
(docs/research/t2-mechanism.md) was declared and started before this file was written; its results
(docs/research/t2-results.md, 29/10/2026, exploratory, on realizations 8–15) arrived while this draft was being
written and motivated two DISCLOSED additions (training.equal_budget_arm and the method Ctl-GP); they changed no
rule or threshold of the hypotheses below.
deviation: >
protocol_bench is not a pre-registration in the sense of protocol_p2: every study was designed knowing the P2r
outcome, and S1/S3/S4 reuse the P2r realizations 8–15 and, for S4 and the S2 nominal reference, the P2r SMC
particles and results. The paper's Methods state this. Hypotheses marked `claim` below are confirmatory ONLY in
the sense that their rule and threshold were fixed here before any run on realizations 8–15; everything marked
`descriptive` is reported without a pass/fail; `disclosed` marks an analysis whose motivation came from T2, which
looked at test realizations 8–15 (T2 test (v): B3d-Sa and M2-Sa gain from 500 iterations in 7/8 wide cells; test
(ii): a GP-noise bank with the posterior's first two moments obtains most of the c = 1 gain). Nothing from T2 is
used to reselect a budget or a method: the registered P2r budgets remain the budgets of every rule. The S2
misspecification levels were chosen on dev realizations 902–905 (calibration block) before the lock; realizations
8–15 were not used for that choice.
inputs: # hash-checked at load and recorded in the lock (text files CRLF-normalised)
d2_config: {path: configs/d2_synth_bench.yaml, sha256: 2bfd01c94f169116fb92e7c1ac92db8bbe003973a610c32b2740e864b4c761b2} # generator = d2_synth_p2r + regimes + misspec presets (final 29/10)
protocol_p2: {path: configs/protocol_p2.yaml, sha256: 0733620042c4ec1b7dce447eef3ec64f915db05acbebbe5b6c977ac42e71a470}
protocol_p2r: {path: configs/protocol_p2r.yaml, sha256: eb887311f26a7c1c3dc69d9623d0086cfb5ccc79eea9e5ef59c723078f49c8aa}
warp_prior: {path: outputs/p2/warp_prior_f3.json, sha256: 55cda573c06b3a7275bdb4ac5f169fb4e5af329e1d199acc3d4daffe15624d27, fit: matern32}
wavelet: {path: outputs/wavelets.npz, key: statistical, sha256: b689ea12578e580d8c2305c8f7219be05ff6e339884fa30b694111e968c0fc64}
horizon_cache: {path: outputs/d2/horizon_grid.npz, sha256: 70e3321fa9f8fe2a1301877fb34386a64bf29eaa4f6948007e18874678e92b1e}
budgets: {path: outputs/p2/diag/train/budgets.json, sha256: 815c6f7abc3d961255feb79bbed57a3e326cbc24cec11bbd97f455f0356e28c5}
fingerprints: {path: tests/data/d2_fingerprints.json, sha256: 86cbd6dd49044c1288ec6b649a2d688bf4121280d5cc3dca9b45109523bd6fc1}
reference:
p2r: # read-only; hashed in the lock (ml_porosity/benchmark/protocol.py p2r_reference_files)
root: outputs/p2r
regimes: [R10, R0, Rm5, R0h, R10tb]
use: >
S1: the (c ∈ {0, 1, 2}) × (N ∈ {4, 16}) cells of the phase diagram come from outputs/p2r/train/<regime>/runs.csv
and outputs/p2r/summary/sigma_post.csv; they are not recomputed. S2: the nominal cells (R10, Rm5; c = 1; N 4/16)
are the P2r cells (descriptive reference only; no S2 rule uses them). S3: the P2r runs of Oracle, B3b, B3c,
B3c-R, B3d, B3d-Sa, M2-Sa are joined with the new B4a–d runs cell by cell. S4: the P2r SMC particles and
phase_R of the S4 cells are the posterior of the TCN methods (same labels, different backbone).
fingerprint_rids: [8, 902] # nominal generator fingerprints recomputed at lock time against inputs.fingerprints
reproduction_check: >
Before the lock, the cell reproduction: (R10, rid 8, c = 1, N = 4) is rerun through this runner (SMC posterior
and training) and compared with outputs/p2r/posterior/R10/r8_c1_n4_s0* and outputs/p2r/train/R10/cells/r8_c1_n4.*
(scripts/34_run_bench.py repro). The agreement is recorded in docs/research/bench-protocol.md §2 and in
outputs/bench/repro/comparison.json. The P2r guard hashes no code, so this check is the evidence that the
default generator path and the training path of this runner are those of protocol_p2r.
grid:
realizations: [8, 9, 10, 11, 12, 13, 14, 15] # the P2r realizations; 0–7 (P2) are never used
dev_realizations: [900, 901, 902, 903, 904, 905] # design only; 902–905 new for P6
seeds: [0, 1, 2, 3, 4] # network seeds; registration seed and SMC stream below
test_wells: 8 # observed at the regime SNR with full anchors (anchors unused)
regimes: {R10: {snr_db: 10, anchor_density: full}, R0: {snr_db: 0, anchor_density: full},
Rm5: {snr_db: -5, anchor_density: full}, R0h: {snr_db: 0, anchor_density: half},
R10tb: {snr_db: 10, anchor_density: topbottom}} # = configs/d2_synth_bench.yaml regimes (= p2r)
registration: # identical to protocol_p2r (scripts/14 with --wavelets estR, P = 1024, K = 1)
base: "protocol_p2 registration block (MAP-II, σ_a 7 ms, σ_b 50 ms, 128 ms statistical wavelet, 15° constant phase)"
reg_seed: 0
smc:
code: ml_porosity/benchmark/registration.py (= scripts/14 run_job, estR arm)
particles: 1024
smc_seed: 0 # random streams [0, i, 13] anchor samples, [0, 19] phase fit, [0, i, 17] SMC
arm: estR # statistical wavelet with the phase re-estimated from the SMC log Z (phase_R)
checkpoints: [g_old, g_acf, g_one] # same tempering milestones as P2r (checkpoints change the schedule); g_acf used
saved: [estR/g_acf] # particles at γ = 1/κ; P2r also stored g_one (unused by any method)
phase_step: 15.0
phase_half_width: 3
phase_max_extra: 6
sigma_a_reg_ms: 7.0 # correct σ_a everywhere (the σ_a arm of P2r is not repeated; its failure stands)
note_misspec: >
Under the S2 presets the registration still assumes the nominal rock physics (obs["ai_log"]), a stationary
wavelet with a constant phase and the F3 Matérn-3/2 prior with σ_b = 50 ms: nothing in the registration is told
about the preset. The "true wavelet" arm of scripts/14 is not run (under constant Q no single true wavelet
exists). Diagnostics from [b, g] are not used (invalid with jitter); warp errors use obs["t_of_tau_true"].
training: # identical to protocol_p2r for the CNN-GRU methods
backbone: "CNNGRUHetero (protocol_p2 training block: d 64, dropout 0.05, Adam 5e-3, grad clip 5, full batch, 64-sample windows, per-well z-score)"
code: ml_porosity/models/bank_train.py train_predict (CNN-GRU, unchanged) | ml_porosity/benchmark/training.py train_predict_tcn (S4)
lambda: "λ = 1/τ_c as in protocol_p2 (pooled ACF of the high-passed B3b labels)"
bank_S: 64
budgets: # iterations; P2r values for the P2r methods, protocol_p2 values for B4a–d
Oracle: 500
B3b: 125
B3c: 250
B3c-R: 500
B3d: 250
B3d-Sa: 250
M2-Sa: 250
B4a: 125
B4b: 125
B4c: 500
B4d: 250
PM2: 250 # S8 point label at the posterior-mean warp: budget of B3d-Sa (same label type)
BK2: 250 # S8 two-member bank with RML: budget of M2-Sa
HM2: 125 # S8 two-member bank with hard-min: budget of B4a (same loss)
Ctl-GP: 250 # control bank with RML: budget of M2-Sa (same loss, same bank size)
equal_budget_arm: 500 # DISCLOSED (T2 test v, seen on realizations 8–15): every method's trajectory also records
# its prediction at 500 iterations (one trajectory per seed, as bank_train evaluates
# every budget in the list). No rule uses this arm; it is reported as a separate
# descriptive table (equal budget for all methods). It does not replace the budgets above.
budgets_tcn: # S4; filled 29/10/2026 from outputs/bench/dev/budgets_tcn.json (stage dev-budgets, runlog
# 20261029-133330_bench_dev_budgets_tcn): protocol_p2 budget_selection rule applied to the TCN
# on dev 902–905, R10, c = 1, N ∈ {4, 16}, seeds 0–1, candidates [125, 250, 500, 1000, 2000].
# Every method selects 125, the smallest candidate (mean total RMSE rises monotonically with
# iterations for the TCN on ≤ 16 wells: e.g. B3d-Sa-TCN 1.406/1.428/1.482/1.537/1.592,
# M2-Sa-TCN 1.389/1.429/1.469/1.521/1.616); the minimum lies on the boundary of the candidate
# list, which is kept as in protocol_p2 (no smaller candidate is added after seeing dev).
Oracle: 125
B3b: 125
B3c: 125
B3c-R: 125
B3d-Sa: 125
M2-Sa: 125
budget_candidates: [125, 250, 500, 1000, 2000]
budget_rule_new_methods: >
No budget is selected on realizations 8–15. PM2/BK2/HM2 inherit the budget of the P2r/P2 method with the same
label type and loss. TCN budgets follow training.budgets_tcn.
methods:
Oracle: {labels: true warp, note: "reference ceiling under the generator of the cell (under S2 presets the seismic changed too)"}
B3b: as protocol_p2 (marker-calibrated sonic through the anchors)
B3c: as protocol_p2 (B3b + local NCC shifts, protocol_p2 phase)
B3c-R: as protocol_p2r (B3c with the wavelet at phase_R)
B3d: as protocol_p2 (weighted mean warp of the anchor-conditioned M2 of P2)
B3d-Sa: as protocol_p2r (labels at the mean warp of the SMC particles, γ = 1/κ)
M2-Sa: as protocol_p2r (RML, soft-min with λ, bank of 64 SMC particles, uniform π)
B4a: as protocol_p2 (B3b labels shifted ±8 samples, uniform π, hard-min)
B4b: as protocol_p2 (same bank, RML with λ)
B4c: as protocol_p2 (soft-DTW γ = 0.1, band ±8, on B3b labels)
B4d: as protocol_p2 (DILATE α = 0.5, γ = 0.1, band ±8, on B3b labels)
PM2: "S8: point labels at t_true + s·Δ/2 (the posterior-mean warp of the two-mode posterior {t_true, t_true + s·Δ}); s = ±1 per training well from rng [rid, 20261030, 8, i]"
BK2: "S8: two-member bank {t_true, t_true + s·Δ}, π = (½, ½), RML with the cell's λ (a calibrated bank: the truth is a member)"
HM2: "S8: the BK2 bank with the hard-min loss (λ = ∞)"
Ctl-GP: >
DISCLOSED (T2 test ii): control bank of 64 warps T̄ + η_s with η_s Gaussian with the empirical mean and covariance
of the 1024 SMC particles on the warp grid (rng [reg_seed, i, 2029]; monotone draws, ≤ 1280 attempts, u-space
fallback flagged), uniform π, RML with the cell's λ. It carries the posterior's first two moments and no link
between a member and the seismic: the natural null for "the information in the SMC bank matters".
Implementation ml_porosity/benchmark/training.py control_gp_bank (= scripts/32 control_bank).
suffix_TCN: "S4: the same labels trained with TCNHetero (ml_porosity/f3/training.py; 4 dilated Conv1d, k = 5, dilations 1–8, softplus σ); names carry the suffix -TCN"
ensembles: "5-seed ensembles (μ = mean μ_s, σ² = mean σ_s² + var μ_s) reported descriptively (coverage, NLL, CRPS); no calibration claim"
studies:
S1: # grid fill of the phase diagram (pivot §2.2 S1, theory gap T5)
regimes: [R10, Rm5, R0, R0h, R10tb] # run order = priority; see cut_order
drift_factors: [0, 0.5, 1, 1.5, 2]
n_train: [2, 4, 8, 16]
existing: "P2r cells (c ∈ {0, 1, 2}) × (N ∈ {4, 16}) are read from outputs/p2r; 14 new (c, N) combinations per regime"
methods: [Oracle, B3b, B3c, B3c-R, B3d, B3d-Sa, M2-Sa]
cells_new: "5 regimes × 14 (c, N) × 8 realizations = 560 SMC jobs and 560 training cells"
S2: # misspecification axes (plan §12 item 22 decision 2); MANDATORY for the word "benchmark"
regimes: [R10, Rm5]
drift_factors: [1]
n_train: [4, 16]
presets: # names in configs/d2_synth_bench.yaml misspec_presets; levels fixed on dev 902–905 (calibration)
rock_physics: [rp_L1, rp_L2] # per-unit φ–DT intercept scatter sd 0.10 / 0.15
wavelet: [wv_L1, wv_L2, wv_Q] # phase sub-axis minphase 0.5 / 1.0; bandwidth sub-axis Q 80 (single level, third entry, no L1 role)
drift: [dr_L1, dr_L2] # two mechanisms: hyperparameters (σ_b ×3, σ_g ×1.5, ℓ ×0.5) / structural (step 8 ms + jitter 1 ms)
controls: # optional, run last and cut first within S2: in-family controls of two axes
presets: [rp_C, wv_C]
n_train: [4]
methods: [Oracle, B3b, B3c, B3c-R, B3d-Sa, M2-Sa, Ctl-GP] # decision 2's set plus the two cheap point ties B3b, B3c so that
# the H2a competitor set {B3b, B3c, B3c-R} is the P2r one, plus the
# disclosed control bank Ctl-GP (training only)
cells: "2 regimes × 7 presets × 2 N × 8 realizations = 224 SMC jobs and 224 training cells (+ 32 control jobs)"
nominal_reference: "the P2r cells of the same (regime, c = 1, N): descriptive comparison only"
S3: # anchor-free / shift-bank baselines under the P2r cells
regimes: [R10, R0, Rm5, R0h, R10tb]
drift_factors: [0, 1, 2]
n_train: [4, 16]
methods: [B4a, B4b, B4c, B4d, Ctl-GP]
posterior: p2r # B4 uses the protocol_p2 B3b labels (register(); registration seed 0, as P2r); Ctl-GP reads the
# P2r particles of the cell (no new SMC)
cells: "5 × 3 × 2 × 8 = 240 training cells; joined with the P2r runs of the same cells"
S4: # second backbone on representative cells
backbone: tcn
posterior: p2r # SMC particles and phase_R of outputs/p2r/posterior/<regime>
cells: [{regime: R10, c: 1}, {regime: Rm5, c: 1}, {regime: R0h, c: 1}]
n_train: [4, 16]
methods: [Oracle, B3b, B3c, B3c-R, B3d-Sa, M2-Sa]
cells_count: "3 × 2 × 8 = 48 training cells"
S8: # controlled cycle-skip (two-mode) regime; theory Corollary 3 and Proposition 4
regimes: [R10, Rm5]
drift_factors: [1]
n_train: [4, 16]
delta_ms: [8, 16, 32] # mode separation; sign-flip band of cos(πfΔ): (62.5, 187), (31.3, 93.8), (15.6, 46.9) Hz
methods: [Oracle, PM2, BK2, HM2]
posterior: none # the two-mode posterior is constructed from the true warp (no SMC); inputs as the regime
cells: "2 × 3 × 2 × 8 = 96 training cells"
note: >
This is the "set Δ explicitly" reading of pivot §2.2 S8. The run-to-run instability of the real SMC posterior at
c = 2 (P2r flag) is not re-measured here; the realistic multimodal cells remain flagged as in P2r.
rules: # all from protocol_p2 / protocol_p2r; thresholds never change
metric: "band RMSE (6 Hz Butterworth high-pass, p.u.) macro over the 8 test wells; band PCC secondary"
run: "(realization, c, N, method, seed) at the method's budget; cell statistics average over realization × seed"
improves: "band_rmse(cand) ≤ 0.90 · band_rmse(best) OR band_pcc(cand) ≥ band_pcc(best) + 0.05"
cell_pass: "improves in ≥ 4/5 seeds (per seed: mean over realizations) AND in > 1/2 of the realizations (per realization: mean over seeds)"
better: "cand < ref in ≥ 4/5 seeds AND > 1/2 of realizations (direction rule for ratios without a margin)"
no_harm: 1.02
wide: "σ_post ≥ 1.5 ms (σ_post = mean 90% width of τ(t) of the SMC particles over the train wells / 3.29; no labels)"
ci: "95% bootstrap over realizations (2000 resamples, rng 0) for every ratio; reported regardless of direction"
permutation: "10000 permutations, rng 0, one-sided p; a declared test passes at p < 0.05"
flags: "c = 2 cells keep the P2r flag 'unstable posterior'; they are reported, never primary evidence"
multiplicity: >
Every `claim` below is a separate pre-declared test with its own rule and threshold; there is no family-wise
correction. Number of claims: 9 (S1-H1, S1-H2, S2-H1, S2-H2, S3-H1, S4-H1, S4-H2, S8-H1, S8-H2), giving 11
verdicts because S2-H1 is judged once per axis (rock physics, wavelet, drift). The paper reports every verdict,
including failures, and never selects among them.
bounds: >
No rule here is bound-based. Where a population bound is quoted next to a B3d-Sa ratio at c = 1 it is the Berkson
bound 1/B_b (T2 test iv found the Berkson structure for B3d-Sa at c = 1, informed by T2, disclosed); at c = 2 no
structure holds and no bound is quoted.
hypotheses:
S1-H1:
kind: claim
statement: "H2a extends to c = 1.5 in R10: B3d-Sa beats the best point tie {B3b, B3c, B3c-R} (cell_pass) for both N ∈ {4, 16}"
prediction: pass
S1-H2:
kind: claim
statement: >
The bank gain grows with the number of wells at fixed posterior width (finite-sample heuristic of the paper,
Sec. 4.3): in every family (regime, c) whose N = 16 cell is wide, the ratio r(N) = band_rmse(M2-Sa)/band_rmse(B3d-Sa)
is lower at N = 16 than at N = 2 in ≥ 2/3 of the families, AND the pooled Spearman ρ(log2 N, r) over all
(family, N) points is negative with one-sided permutation p < 0.05 (permutations within family).
families: "(regime, c) with σ_post(N = 16) ≥ 1.5 ms, from the P2r and S1 posteriors"
prediction: pass
S1-D:
kind: descriptive
items: ["phase diagram c × N of band RMSE per method and of the ratios B3d-Sa/best point tie and M2-Sa/B3d-Sa with CI",
"σ_post(c, N) and SMC warp RMSE / coverage90 per regime",
"additivity fit per regime: band_rmse²(B3d-Sa; c, N) = band_rmse²(Oracle; c, N) + β σ_post²(c, N), β and R² reported",
"H2a cell rule at every new (c, N) with the P2r competitors (no verdict beyond S1-H1)"]
S2-H1:
kind: claim
statement: >
Posterior-mean labels survive moderate misspecification: for each axis at level L1, in R10, B3d-Sa beats the best
point tie {B3b, B3c, B3c-R} (cell_pass, c = 1) for both N ∈ {4, 16}. One verdict per axis; the claim is scoped to
the axes that pass. Rm5, L2 and the bandwidth cell wv_Q are reported with the same rule, without a claim.
prediction: >
pass for rock physics (dev R10, N = 4: SMC warp RMSE ×1.27 nominal at rp_L1, cov90 0.85) and for the wavelet
phase sub-axis at L1 (dev: wv_L1 posterior overconfident, cov90 0.11, yet its warp RMSE 2.14 ms stays below the
point tie B3c's 4.30 ms in 4/4 rids); fail expected at wv_L2 (dev: 3.93 ms, cov90 0.03, below B3c 4.57 ms in
only 3/4 rids); drift uncertain (dr_L1 1.55 ms / dr_L2 2.27 ms against B3c 3.48 / 4.52 ms, 4/4 rids ahead).
expected_null: >
At Rm5 (noise RMS 1.78 × signal) every preset's model error (≤ 0.61 × signal) is buried in the noise: on dev
(902, 903) all presets left the Rm5 SMC diagnostics within ±10% of nominal, including wv_L2. Pre-declared null:
at Rm5 the registration diagnostics (warp RMSE, cov90, σ_post, phase_R) of every preset are expected to equal
their nominal values within the CI; S2 at Rm5 therefore tests only the label-side and input-side consequences
of misspecification (Oracle and the point ties change with the seismic), not the registration. The sharpest
version is the rock-physics axis (model error 0.22–0.30 of the noise).
S2-H2:
kind: claim
statement: >
No harm of the posterior bank under misspecification: for every S2 preset (rp_L1, rp_L2, wv_L1, wv_L2, wv_Q,
dr_L1, dr_L2) and regime (R10, Rm5), the mean ratio band_rmse(M2-Sa)/band_rmse(B3d-Sa) over its cells
(N ∈ {4, 16}) is ≤ 1.02. Passes only if all 14 (preset, regime) pairs satisfy it (summary.py: len(regimes) ×
number of presets = 14).
prediction: pass
S2-D:
kind: descriptive
items: ["SMC diagnostics per preset, regime, N: warp RMSE, coverage90, σ_post, overconfidence = warp RMSE/σ_post, phase_R, κ_post, r_post",
"degradation of every method vs its P2r nominal cell (ratio with CI); Oracle degradation isolates the covariate change",
"M2-Sa vs B3d-Sa at wide cells (σ_post ≥ 1.5 ms) with the 'better' rule, and the ratio vs coverage90 (does the gain track coverage rather than σ_post?)",
"B3d-Sa no-harm flag: band_rmse(B3d-Sa) ≤ 1.02 · best point tie per (preset, regime, N)",
"controls rp_C, wv_C (if run): in-family misspecification should leave every diagnostic at its nominal value",
"DISCLOSED (T2 ii): Ctl-GP vs B3d-Sa and M2-Sa vs Ctl-GP ('better' rule) per cell: under misspecification, does the SMC bank's information matter beyond its two moments?",
"DISCLOSED (T2 v): the equal-budget table at 500 iterations for every method, next to the registered-budget table"]
S3-H1:
kind: claim
statement: >
The H2a verdict is unchanged when the competitor set is extended by the anchor-free / shift-bank baselines:
per regime (R10, R0, Rm5), B3d-Sa vs best of {B3b, B3c, B3c-R, B4a, B4b, B4c, B4d} with the P2r regime rule
(cell_pass at c = 1 for both N AND the c = 0 guard ≤ 1.02 macro and per N). Passes if R10 passes; scoped to the
regimes that pass.
prediction: pass
S3-D:
kind: descriptive
items: ["complete benchmark table (all methods × 5 regimes × c × N) with CI", "B4 variants vs B3b (do shift banks help without the posterior?)"]
T2-1:
kind: disclosed
statement: >
Control bank across the P2r grid (S3 cells, 5 regimes × c ∈ {0, 1, 2} × N ∈ {4, 16}): per cell, Ctl-GP vs B3d-Sa
and M2-Sa vs Ctl-GP with the 'better' rule and CI. Reading fixed before the run: the SMC bank's information
matters in a cell if M2-Sa is better than Ctl-GP; T2 (ii) found this at c = 2 (3/4 wide cells) and not at c = 1
(3/4 cells consistent with label augmentation). No pass/fail; the N = 16, c ∈ {1, 2} wide cells duplicate T2 (ii).
S4-H1:
kind: claim
statement: "Backbone independence of H2a at R10, c = 1: B3d-Sa-TCN beats the best TCN point tie {B3b-TCN, B3c-TCN, B3c-R-TCN} (cell_pass) for both N"
prediction: pass
S4-H2:
kind: claim
statement: "Backbone independence of the wide-cell bank gain: M2-Sa-TCN is better than B3d-Sa-TCN ('better' rule) in both wide cells (Rm5 c = 1 N = 16; R0h c = 1 N = 16)"
prediction: "pass; uncertain (the TCN has no recurrent context)"
S4-D:
kind: descriptive
items: ["TCN vs CNN-GRU per method and cell (ratio with CI)", "coverage of TCN ensembles"]
S8-H1:
kind: claim
statement: >
Corollary 3 (sign flip): at Δ = 32 ms in R10, for both N, the measured transfer of PM2 relative to Oracle,
Ĥ(f) = Σ Re[Y* P_PM2] / Σ Re[Y* P_Oracle] (Hann, NFFT 256, pooled over test wells, realizations and seeds, as
H1), averaged over the usable frequencies in (1/(2Δ), 3/(2Δ)) = (15.6, 46.9) Hz, is negative. Usable: f ≥ 6 Hz
and Re S_Oracle(f) ≥ 10% of its in-band maximum.
prediction: pass
S8-H2:
kind: claim
statement: >
The calibrated two-member bank repairs the point label where the modes are resolvable: BK2 is better than PM2
('better' rule) at Δ ∈ {16, 32} ms, N = 16, in both regimes (4 cells, all must pass).
prediction: pass
dev_note: >
A first draft also required "no harm at Δ = 8 ms". The dev smoke (rid 902, R10, N = 4, seed 0, 29/10) gave band
RMSE PM2 0.96, BK2 1.34, HM2 1.30, Oracle 0.62 at Δ = 8 ms, and PM2 1.45 / BK2 0.62 at 16 ms, PM2 1.76 / BK2 0.56
at 32 ms: two members 8 ms apart (half the dominant period) are not separated by the window loss and the bank
then behaves like an averaged label. The Δ = 8 ms clause was therefore moved to S8-D before the lock (design on
dev, recorded here).
S8-D:
kind: descriptive
items: ["Ĥ(f) of PM2, BK2 and HM2 against cos(πfΔ) for every Δ", "ratios PM2/Oracle, BK2/Oracle, HM2/PM2 with CI per cell",
"first zero crossing of Ĥ_PM2 vs 1/(2Δ)",
"Δ = 8 ms: BK2/PM2 and HM2/PM2 with CI (resolution limit of the bank; dev showed harm at N = 4, see S8-H2.dev_note)"]
cells: "cell = (study, regime, preset, c, N); all cell statistics average over realization × seed as in protocol_p2r"
calibration: # S2 levels: chosen on dev 902–905 before the lock; evidence in docs/research/bench-protocol.md §3
status: "CHOSEN 29/10/2026 on rids 902 and 903 (all candidates), confirmed on 904 and 905 (chosen presets): bench-protocol.md §3"
procedure: >
For each axis, candidate levels (configs/d2_synth_bench.yaml cand_*) were registered as in P2r (SMC, P = 1024,
estR, γ = 1/κ) on dev realizations at N = 4, c = 1, R10 and Rm5 (scripts/33 --smc). Targets declared before the
results: L1 = the registration's in-family model error comparable to the R10 noise (0.5–1.0 ×) and the SMC
posterior still ahead of the point ties (SMC warp RMSE < B3c warp RMSE at R10); L2 = model error 1.5–2 × the R10
noise, with a visible loss of posterior calibration (coverage90 < 0.5 at R10 or warp RMSE ≥ 2 × nominal).
Rock physics uses the per-unit intercept scatter only (the uniform coefficient error is invariant under the
profiled-amplitude likelihood, docs/research/bench-generator.md §2; rp_C stays as a control). The drift axis has
no generator-side model-error measure and its two presets are two separate MECHANISMS, not two strengths of one
setting: dr_L1 = the truth drawn from misspecified hyperparameters (σ_b ×3, σ_g ×1.5, ℓ ×0.5; inside the GP
family, partly absorbed by MAP-II), dr_L2 = components outside the GP family (step 8 ms at Truncation + jitter 1 ms,
no hyperparameter change). Each is attributed on its own cell; nothing is attributed by difference. On dev dr_L2
degrades the SMC more than dr_L1 (×3.3 vs ×2.2), which is why they carry the labels L2 and L1.
levels_vs_declared_band: >
Two chosen levels sit outside the declared L1 band of 0.5–1.0 × the R10 noise, by design and stated here:
rp_L1 (unit sd 0.10) has a model error of 1.24 × the R10 noise (+24%), wv_L1 (minphase 0.5) 1.08 × (+8%).
Reasons. (i) Rock physics: the registration is nearly blind to this axis (sd 0.05 → ×1.3, 0.10 → ×1.27,
0.15 → ×1.66 SMC warp RMSE; cov90 0.59–0.85), so the level cannot be set by the SMC criterion; 0.10 keeps L1 and
L2 distinguishable in model error (1.24 vs 1.68) and in SMC effect, whereas sd 0.075 (0.95 ×, one dev rid:
×1.09, cov90 0.76) would be indistinguishable from nominal; the QC author recommended 0.10/0.15. (ii) Wavelet
phase: no in-band setting is moderate for the SMC (minphase 0.25 at 0.62 × already gives cov90 0.25), so the
band cannot be met together with the "still ahead of the point ties" criterion; 0.5 is the mildest phase level
confirmed on 4 rids that keeps the SMC ahead of B3c (2.14 vs 4.30 ms). The L2 levels (1.68 ×, 1.93 ×) and wv_Q
(1.41 ×, bandwidth cell) are inside their declared bands. Option (a) of the review (sd 0.075 with two more dev
rids) was considered and rejected for reason (i).
evidence: >
outputs/bench/dev/smc_qc_rid{902,903,904,905}.json (scripts/33 --smc), tabulated by scripts/35_bench_calibration.py
→ outputs/bench/dev/calibration.{csv,md}; docs/research/bench-protocol.md §3. Dev SMC at R10, N = 4, c = 1, means over
rids (warp RMSE ratio to nominal 0.69 ms / coverage90; nominal 0.83): unit sd 0.05 ×1.3/0.59 (1 rid), 0.10 ×1.27/0.85
(3), 0.15 ×1.66/0.81 (4); minphase 0.25 ×1.9/0.25 (1), 0.5 ×3.2/0.11 (4), 1.0 ×5.9/0.03 (4, ahead of B3c in 3/4),
Q 160 ×1.1/0.79 (2), Q 80 ×1.57/0.84 (4), Q 40 ×1.6/0.86 (1); hyperparameter drift ×2.2/0.75 (4), structural drift
×3.3/0.61 (4), both ×3.5/0.61 (2), step 16 ms ×5.3/0.60 (2). At Rm5 every preset stays within ×0.97–1.23 of the
nominal 3.68 ms. Rock physics is nearly invisible to the registration (chosen by model error);
the wavelet phase sub-axis is the one that breaks the constant-phase family (overconfident posterior), while the
bandwidth sub-axis widens the posterior without breaking it (kept as a single separate cell wv_Q); the drift levels
are two mechanisms rather than two strengths (kept separate for attribution).
note_single_checkpoint: >
scripts/33 runs the SMC with the single checkpoint γ = 1/κ, whereas P2r and this runner use the milestones
(g_old, g_acf, g_one); the dev diagnostics therefore differ slightly from what the main run will produce for the
same cell (rid 902, R10 nominal: 0.74 vs 0.70 ms warp RMSE at P00). Levels were chosen on ratios to nominal under
the same schedule.
chosen: # verbatim misspec dicts (configs/d2_synth_bench.yaml); checked against the file at load
rp_L1: {rock_physics: {unit_dt_intercept_sd: 0.10}}
rp_L2: {rock_physics: {unit_dt_intercept_sd: 0.15}}
wv_L1: {wavelet: {minphase_frac: 0.5}}
wv_L2: {wavelet: {minphase_frac: 1.0}}
wv_Q: {wavelet: {Q: 80.0, Q_t_ref_ms: 400.0, Q_dispersion: true}}
dr_L1: {drift: {sigma_b_factor: 3.0, sigma_g_factor: 1.5, ell_factor: 0.5}}
dr_L2: {drift: {step_ms: 8.0, step_width_ms: 12.0, step_horizon: Truncation, jitter_sd_ms: 1.0, jitter_ell_ms: 8.0}}
reproduction: # see reference.reproduction_check
rid: 8
regime: R10
c: 1
n_train: 4
methods: [Oracle, B3b, B3c, B3c-R, B3d, B3d-Sa, M2-Sa]
tolerance_note: >
The SMC on the GPU matches the CPU algorithm up to rounding and bank_train sets no cudnn deterministic flags;
bitwise agreement is reported if it occurs, otherwise the maximum deviations of phase_R, particles, warp RMSE
and band RMSE are reported as the reproducibility floor of this environment.
result: >
bitwise exact (29/10/2026, cuda:1, torch 2.14.0+cu130, H200): phase0 and phase_R identical (−0.990696378084408),
log Z max |diff| 0, all four g_acf particle sets (1024 × 390) bitwise equal, every warp diagnostic 0, stage counts
17/17/17/18 identical; 280 training rows (7 methods × 5 seeds × 8 test wells) max |diff| 0 on band RMSE, RMSE,
band PCC, NLL and coverage90, all 35 μ arrays and y_true bitwise equal, _diag.csv 0.
Evidence: outputs/bench/repro/comparison.json (runlog 20261029-133329_bench_repro_r8); docs/research/bench-protocol.md §2.
cut_order: # if late (never cut thresholds); plan §6.1
- "S4 (second backbone)"
- "S8 (cycle-skip regime)"
- "S2 reduced to the rock-physics axis (then the paper says 'controlled synthetic study', not 'benchmark')"
- "S1 reduced to c ∈ {0.5, 1.5} × N ∈ {4, 16} on R10, Rm5, R0 (within S1 the regimes R0h, R10tb are cut first)"
- "S2 controls rp_C, wv_C are optional at all times; within S2 the bandwidth cell wv_Q is cut before the phase levels"
- "the equal-budget arm and Ctl-GP are disclosed extras: dropping them needs no new protocol version only if no cell has been trained yet"
compute: # estimate; see docs/research/bench-protocol.md §5
posterior_jobs: {S1: 560, S2: 224, S2_controls: 32}
training_cells: {S1: 560, S2: 224, S3: 240, S4: 48, S8: 96}
split: "cuda:0 — S1 R10/Rm5/R0h then S2 R10; cuda:1 — S1 R0/R10tb then S2 Rm5, S3, S4, S8; 4 workers per GPU at 6 GiB each when free"
resume: "scripts/run_bench.sh is restartable: completed jobs are skipped by fingerprint and checksum"
wording:
forbidden: ["first", "novel", "the word benchmark if S2 is incomplete", "calibrated uncertainty", "generalizing to the field",
"mechanism proven", "tuning on test labels", "claims about λ"]
required: ["designed after P2r (deviation above)", "S2 levels chosen on dev 902–905", "P2r guard hashes no code; reproduction check reported",
"F3 and Volve are scope-bounding cases"]

1835
docs/lecture.md Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -31,7 +31,7 @@ N* (power ≥ 0.8, sign test, n ≤ 40) theo sai số đăng ký của reference
(— : không đạt 0.8 với n ≤ 40.) Tỉ số band RMSE trung vị M2-Sa / đối thủ: 0.80–0.92 ở σ_ref = 0, về ≈ 1 ở 4 ms, > 1 ở 8 ms. (— : không đạt 0.8 với n ≤ 40.) Tỉ số band RMSE trung vị M2-Sa / đối thủ: 0.80–0.92 ở σ_ref = 0, về ≈ 1 ở 4 ms, > 1 ở 8 ms.
Hệ quả cho T0 Teapot (C4, giả định mức Rm5 như §4): cần khoảng 11–18 giếng test có reference TD độc lập với sai số ≲ 0.5 ms, cộng ≥ 3 giếng TD ngoài test cho C3. Với σ_ref ≥ 1.5 ms thì không còn ô Rm5 nào khả thi; với σ_ref ≥ 3 ms thì không ô nào khả thi. Sai số bulk shift datum/statics giữa checkshot và seismic cũng tính vào σ_ref. Hệ quả cho T0 Teapot (C4, giả định mức Rm5 như §4): cần khoảng 11–18 giếng test có reference TD độc lập với sai số ≲ 0.5 ms, cộng ≥ 3 giếng TD ngoài test cho C3. Với σ_ref ≥ 1.5 ms thì không còn ô Rm5 nào khả thi trong lưới n ≤ 40; với σ_ref ≥ 3 ms thì không ô nào khả thi trong lưới đó. (Sửa 04/11/2026: ngoài lưới, công thức của `scripts/27_t3_power.py` cho ô Rm5, N_train = 16 ở 1,5 ms N* = 58 giếng, nên với 115 giếng test của Teapot thì σ_tol = 1,5 ms như cổng P-a khai báo; bài báo Sec. 6.6 nay nêu rõ điều này.) Sai số bulk shift datum/statics giữa checkshot và seismic cũng tính vào σ_ref.
## T0 Teapot Dome (29/10/2026) — trượt, dừng Teapot ## T0 Teapot Dome (29/10/2026) — trượt, dừng Teapot
@@ -59,7 +59,7 @@ Khai báo: Deviation 2 trong `applicability-teapot.md` (băm v2 07:11:29 UTC, tr
## Dùng trong bài (29/10/2026) ## Dùng trong bài (29/10/2026)
- **T3** → bài mục 6.5 (*Detectability of a gain at blind wells*, exploratory), bảng `tab:t3`. Hệ quả 4 (bài mục 4.5: dấu của lợi ích đo được đúng với dấu thật chỉ khi σ_r < σ/√2) dự báo điểm cắt σ/√2 = 3,0/4,1/5,1 ms; tỉ số band RMSE trung vị cắt 1 ở 3,6–4,3 ms (ba ô N = 16). Bài ghi rõ phép phân tích được khai báo trước khi chạy nhưng sau khi cả hai field gate trượt, và nêu Deviation 1. - **T3** → bài mục 6.6 (từ 02/11/2026; trước đó 6.5) (*Detectability of a gain at blind wells*, exploratory), bảng `tab:t3`. Hệ quả 4 (bài mục 4.5: dấu của lợi ích đo được có thể đúng với dấu thật chỉ khi σ_r < σ/√2; từ 02/11/2026 bài ghi đây là điều kiện cần ở mọi tần số nhưng không đủ, `docs/plan.md` §12 ý 32) đặt điểm cắt dưới σ/√2 = 3,0/4,1/5,1 ms khi không có shrinkage, và bằng σ/√2 ở bậc đầu; tỉ số band RMSE trung vị cắt 1 ở 3,6/3,8/4,3 ms (ba ô N = 16, nội suy tuyến tính), thấp hơn σ/√2 ở R0 và Rm5, cao hơn 0,6 ms ở R10, điều shrinkage cho phép. Bài ghi rõ phép phân tích được khai báo trước khi chạy nhưng sau khi cả hai field gate trượt, và nêu Deviation 1.
- **C1–C4 và phép kiểm hồi cứu F3, Volve** → bài mục 6.6, đoạn *Neither test could have detected the effect*: ghi là post hoc, với ngưỡng C1, C2 lấy cơ học từ Thí nghiệm 2 (P2r). - **C1–C4 và phép kiểm hồi cứu F3, Volve** → bài mục 6.7 (trước 02/11/2026 là 6.6), đoạn *Neither test could have detected the effect*: ghi là post hoc, với ngưỡng C1, C2 lấy cơ học từ Thí nghiệm 2 (P2r).
- **Teapot T0 và pilot P-a** → bài mục 6.6, đoạn *Limits of field validation*: ghi là post hoc, exploratory; dùng 152 giếng, 4 bảng TD, tối đa 2 giếng có reference độc lập, σ̂_knot 6,75 ms (CI 90% 4,1–9,4) so với 1,5 ms. - **Teapot T0 và pilot P-a** → bài mục 6.7, đoạn *Limits of field validation*: ghi là post hoc, exploratory; dùng 152 giếng, 4 bảng TD, tối đa 2 giếng có reference độc lập, σ̂_knot 6,75 ms (CI 90% 4,1–9,4) so với 1,5 ms.
- Nguồn số liệu từng câu: `paper/README.md`. Quyết định dừng Teapot: `docs/plan.md` §12 ý 23; `report.html` D-11. - Nguồn số liệu từng câu: `paper/README.md`. Quyết định dừng Teapot: `docs/plan.md` §12 ý 23; `report.html` D-11.

View File

@@ -0,0 +1,88 @@
# Kích thước bank SMC (exploratory): kết quả
Ngày: **16/11/2026**. Khai báo: `docs/research/bank-size.md`, băm lúc 02:42:51 UTC (`1a19212724ce…`) trước mọi tính toán; script kiểm hash này trước khi chạy và hash vẫn khớp. Code: `scripts/49_bank_size.py` (ngoài mọi lock, không nằm trong archive tái lập). Đầu ra: `outputs/bank_size/` (`summary.md`, `reading.json`, `ratios.csv`, `seff.csv`, `mc_error.csv`, `selfcheck.json`, `cells/`). Lượt chạy: tmux `bank_size`, cuda:0, 4 worker, 02:45 → 03:48 UTC (1 giờ 3 phút, exit 0; `logs/runs/20261116-024530_bank_size`).
**Tính chất.** Exploratory, thiết kế sau mọi verdict, chỉ mô tả. Không có kết quả nào ở đây thay đổi H2a, H2b, nhánh σ_a, verdict của `protocol_bench`, ngưỡng, protocol đã khóa hay abstract. Mọi số đã báo cáo với S = 64 giữ nguyên.
**Không có deviation so với khai báo.** Code không sửa sau khi băm.
## 1. Kiểm tra tái lập
`B3d-Sa` và `M2-Sa` huấn luyện lại ở 250 vòng khớp `outputs/p2r/train/` ở **7.040/7.040** dòng (ô × realization × seed × giếng test), sai lệch band RMSE tuyệt đối lớn nhất **0**. Bank 64 thành viên do script dựng lại trùng chính xác bank đã đăng ký (assert trong mỗi job).
## 2. Tỉ số chính (ngân sách 250; tám ô rộng)
Tỉ số band RMSE, CI 95% bootstrap trên 8 realization. Dấu ‹ hoặc › đánh dấu CI nằm hẳn dưới hoặc trên 1.
| Ô | Q3: S16 / S64 | Q1: S256 / S64 | Q2: S1024 / S64 |
| --- | --- | --- | --- |
| 0 dB, c = 1 | 1,003 [0,992; 1,015] | 1,005 [0,994; 1,014] | 0,993 [0,987; 0,999] ‹ |
| nửa anchor, c = 1 | 1,004 [0,993; 1,014] | 0,987 [0,977; 0,997] ‹ | 0,993 [0,983; 1,003] |
| hai anchor, c = 1 | 1,029 [1,005; 1,058] › | 0,981 [0,965; 0,996] ‹ | 0,981 [0,970; 0,993] ‹ |
| −5 dB, c = 1 | 1,005 [0,990; 1,023] | 0,989 [0,977; 1,003] | 0,989 [0,976; 1,004] |
| 0 dB, c = 2 | 1,007 [0,992; 1,019] | 0,990 [0,971; 1,005] | 0,998 [0,983; 1,012] |
| nửa anchor, c = 2 | 1,016 [1,002; 1,028] › | 1,005 [0,986; 1,026] | 0,986 [0,970; 0,998] ‹ |
| hai anchor, c = 2 | 1,059 [1,011; 1,108] › | 0,961 [0,923; 0,994] ‹ | 0,936 [0,889; 0,973] ‹ |
| −5 dB, c = 2 | 1,007 [0,996; 1,018] | 0,999 [0,989; 1,010] | 0,995 [0,980; 1,008] |
Ô hẹp (c = 0): Q1 là 1,002 (0 dB), 1,013 [1,002; 1,025] (10 dB) và 0,998 (−5 dB); Q2 là 0,996, 1,003 và 0,996; Q3 là 0,998, 1,004 và 1,000. Ở 10 dB, c = 0, bank 256 kém bank 64 khoảng 1,3%, với CI vừa vượt trên 1.
**Đếm theo luật đã khai báo (tám ô rộng):**
| Tỉ số | CI < 1 | CI chứa 1 | CI > 1 | \|tỉ số − 1\| ≤ 0,01 | Cách đọc |
| --- | --- | --- | --- | --- | --- |
| Q1 (256/64) | 3 | 5 | 0 | 4 | **không thấy lợi ích từ bank lớn hơn ở các ô này** |
| Q2 (1024/64) | 4 | 4 | 0 | 4 | **lẫn lộn** |
| Q3 (16/64) | 0 | 5 | 3 | 5 | **không thấy lợi ích từ bank nhỏ hơn ở các ô này** |
Q2 không đạt ngưỡng 5/8 của cả hai hướng. Vì vậy cách đọc "consistent with: S = 64 không làm thiệt các kết quả đã báo cáo" (cần Q1 và Q2 cùng "không thấy lợi ích") **không áp dụng được**. Hướng của kết quả lại rõ: bank 1024 không kém bank 64 ở ô rộng nào (tỉ số 0,936–0,998), có CI dưới 1 ở 4/8 ô và cách 1 hơn 1% ở 4/8 ô. Theo khai báo, bài phải nói rằng **S = 64 có thể đã làm giảm nhẹ lợi ích của bank**. Mức giảm nhỏ, trừ ô hai anchor: ở c = 1 tối đa khoảng 2% band RMSE (hai anchor 0,981), còn ở c = 2 hai anchor là 6,4%.
**Q4, mỗi bank so với SMC mean (`B3d-Sa`):** bank có CI dưới 1 ở 7/8 ô rộng với S = 16 (ô −5 dB, c = 1 là 0,987 [0,968; 1,009]), và ở 8/8 ô với S = 64, 256 và 1024. Lợi ích của bank so với SMC mean ở c = 1 là:
| Ô (c = 1) | S = 16 | S = 64 (đã báo cáo) | S = 256 | S = 1024 |
| --- | --- | --- | --- | --- |
| 0 dB | 0,970 | 0,967 | 0,972 | 0,961 |
| nửa anchor | 0,974 | 0,970 | 0,957 | 0,964 |
| hai anchor | 0,915 | 0,890 | 0,873 | 0,873 |
| −5 dB | 0,987 | 0,982 | 0,971 | 0,971 |
Ở c = 2: S = 64 cho 0,952, 0,904, 0,667 và 0,964; S = 1024 cho 0,950, 0,891, 0,624 và 0,959. Vậy lợi ích bank 2–11% đã báo cáo ở c = 1 thành khoảng 3–13% với S = 1024. Thứ tự giữa các ô không đổi. Nhìn chung bank lớn hơn cho tỉ số thấp hơn, nhưng không đơn điệu ở mọi ô: ở 0 dB, c = 1, bank 256 (0,972) kém bank 64, và ở nửa anchor, c = 1, bank 1024 (0,964) kém bank 256 (0,957).
**Ngân sách khác (chỉ mô tả).** Ở 125 vòng, Q1 có CI chứa 1 ở 8/8 ô rộng và Q2 ở 7/8: không thấy khác biệt. Ở 500 vòng, Q1 có 3/8 ô CI dưới 1, còn Q2 có **5/8** ô CI dưới 1, tức là nếu áp luật đọc ở 500 vòng thì sẽ đọc là "bank lớn hơn tốt hơn". Q3 có 4/8 ô CI trên 1 ở 125 vòng và 3/8 ở 500 vòng. Phần lợi thêm của bank lớn vì thế tăng theo độ dài huấn luyện. Ngân sách chính là 250 vòng, cố định trước, nên cách đọc chính vẫn là "lẫn lộn".
## 3. Chẩn đoán trên giếng train (không dùng nhãn test)
**S_eff tăng tỉ lệ với S.** Tỉ lệ S_eff/S gần như không đổi theo S trong mỗi ô:
| Ô | S_eff/S, S = 16 / 64 / 256 / 1024 | S_eff của bank 1024 |
| --- | --- | --- |
| 0 dB, c = 1 | 0,21 / 0,18 / 0,16 / 0,15 | 152 |
| nửa anchor, c = 1 | 0,20 / 0,17 / 0,16 / 0,15 | 150 |
| hai anchor, c = 1 | 0,42 / 0,38 / 0,36 / 0,36 | 371 |
| −5 dB, c = 1 | 0,15 / 0,11 / 0,11 / 0,11 | 108 |
| c = 2 (bốn ô) | 0,08–0,17 / 0,04–0,12 / 0,03–0,12 / 0,03–0,11 | 31–111 |
| c = 0 (ba ô) | 0,46–0,78 / 0,43–0,77 / 0,41–0,76 / 0,41–0,76 | 421–781 |
Ở λ = 1/τ_c, trọng số responsibility không dồn vào một số thành viên cố định. Thêm thành viên thì có thêm thành viên được dùng. Trước khi chạy, tôi đã nói với người dùng rằng các thành viên thêm sẽ gần như không nhận trọng số; phép đo này cho thấy nhận định đó sai.
**Sai số Monte Carlo của warp trung bình**, tức RMS của hiệu so với warp trung bình 1024 hạt trên 600–1100 ms, không cần truth:
| | S = 16 | S = 64 | S = 256 |
| --- | --- | --- | --- |
| c = 1, bốn ô rộng | 0,38–0,64 ms | 0,19–0,32 ms | 0,08–0,13 ms |
| c = 2, bốn ô rộng | 0,75–2,48 ms | 0,38–1,31 ms | 0,16–0,56 ms |
| c = 0, ba ô hẹp | 0,07–0,22 ms | 0,03–0,11 ms | 0,01–0,04 ms |
Sai số giảm gần đúng theo 1/√S, như mong đợi với rút không hoàn lại.
**Sai số warp so với warp thật (giếng train, chỉ mô tả).** Warp trung bình của 64 thành viên sai khác so với warp trung bình 1024 hạt tối đa 0,08 ms ở c = 1 (hai anchor: 4,86 so với 4,79 ms), 0,25 ms ở c = 2 (hai anchor: 19,33 so với 19,08 ms) và 0,01 ms ở c = 0. Bank lớn hơn vì vậy gần như không làm warp trung bình chính xác hơn. Phần lợi thêm của bank 1024 (nếu có) không đến từ một warp trung bình tốt hơn. Nó phù hợp với việc có nhiều nhãn khác nhau hơn để RML chọn theo cửa sổ (S_eff lớn hơn), nhưng phép thử này không tách được cơ chế.
## 4. Cách đọc được phép
- Ở 11 ô của T2, N = 16 và 250 vòng, giảm bank từ 64 xuống 16 không giúp gì; ở ba ô (hai anchor ở c = 1 và c = 2, nửa anchor ở c = 2), bank 16 kém hơn với CI trên 1: 2,9% ở c = 1, 1,6% và 5,9% ở c = 2.
- Tăng từ 64 lên 256 không thấy lợi ích theo luật đọc. Tăng lên 1024 cho kết quả lẫn lộn nhưng chỉ cùng một hướng: không ô nào kém hơn, và 4/8 ô tốt hơn với CI dưới 1. Kết quả phù hợp với việc **S = 64 có thể đã làm giảm nhẹ lợi ích của bank**: khoảng 1–2% band RMSE ở c = 1 và đến 6% ở ô hai anchor, c = 2. Mọi so sánh đã báo cáo giữa bank và SMC mean giữ nguyên hướng, và lợi ích chỉ có thể lớn hơn chứ không nhỏ đi.
- Không được nói "S = 64 là tối ưu", và không suy ra ngoài 11 ô, N = 16 và 250 vòng. Ở 500 vòng, phần lợi của bank lớn rõ hơn (Q2 5/8 ô dưới 1).
## 5. Nơi dùng trong bài
Theo khai báo: một câu ở Sec. 4 (đoạn "Sequential Monte Carlo posterior", nơi nêu S = 64), một đoạn "Bank size" ở Phụ lục C và một ý trong gạch đầu dòng "Tempering" của Limitations. Không đưa vào abstract, highlight hay kết luận.

View File

@@ -0,0 +1,69 @@
# Kích thước bank SMC (exploratory): khai báo trước
Ngày viết: **16/11/2026**. Trạng thái: **exploratory, khai báo trước**. Tài liệu này được viết và băm SHA-256 (`bank-size.sha256`) **trước** khi huấn luyện hay chấm điểm bất kỳ nhánh mới nào. Không sửa sau khi băm; thay đổi phải ghi thành mục "Deviation" có ngày ở cuối tài liệu kèm một dòng hash mới.
Lý do: người dùng hỏi vì sao bank của RML có S = 64 mà không lớn hơn. S = 64 được chốt trong `configs/protocol_p2r.yaml` (`bank_S: 64`) trước khi chạy, chưa từng được tối ưu; kế hoạch gốc ghi "S = 64–256" (`docs/plan.md` dòng 262). Trên synthetic chưa có phép kiểm nào về kích thước bank. Ablation S ∈ {1, 8, 64, 256} trên F3 (`paper/sections/B_field.tex`, đoạn Ablations) không cho xu hướng, nhưng F3 không nhạy với timing nên đó là bằng chứng yếu.
Liên quan: `docs/research/lambda-limit.md` (khuôn mẫu), `docs/research/t2-mechanism.md`, `t2-results.md`, `configs/protocol_p2r.yaml` (khóa; không đụng).
## 0. Tính chất và phạm vi
1. **Exploratory, sau mọi verdict.** Thiết kế sau khi đã thấy toàn bộ kết quả P2r, T2, P6, λ → 0, R4/R5 và R6. Không kết quả nào ở đây thay đổi H2a, H2b, nhánh σ_a, verdict của `protocol_bench`, ngưỡng, protocol đã khóa hay abstract. Không thay S = 64 trong bất kỳ kết quả đã báo cáo nào.
2. **Dữ liệu.** Chỉ dùng realization 8–15 của P2r và các hạt SMC đã có (`outputs/p2r/posterior/<regime>/r<rid>_c<c>_n16_s0_particles.npz`, 1024 hạt mỗi giếng). Không sinh realization mới, không chạy lại SMC. `outputs/p2r/` chỉ đọc; đầu ra ghi vào `outputs/bank_size/`.
3. **Nhãn test** chỉ dùng để chấm điểm bằng metric đã đăng ký (`run_d2.evaluate`, band RMSE với f_c = 6 Hz). Không chọn gì theo nhãn test. Sai số warp so với warp thật chỉ tính trên giếng train và chỉ để mô tả.
### Những gì đã xem trước khai báo này
- Toàn bộ kết quả P2r, T2, λ → 0 (gồm S_eff của `M2-Sa`: 7,4–24,3 trên 64 ở ô rộng c = 1, 2,5–8,0 ở c = 2, 27–49 ở ô hẹp), ablation kích thước bank trên F3 (1,273 / 1,256 / 1,272 / 1,257 p.u. với S = 1 / 8 / 64 / 256), và ghi chú T2 rằng warp trung bình của 64 thành viên chỉ chênh ít so với warp trung bình của 1024 hạt.
- Chưa từng huấn luyện hay chấm điểm bank SMC có S khác 64 trên synthetic.
- Trước khai báo, đã nói với người dùng dự đoán định tính "tăng S gần như không đổi kết quả"; dự đoán đó không dựa trên số đo nào của các nhánh mới.
## 1. Ô và nhánh
**Ô:** 11 ô của T2 ở N = 16, như `lambda-limit.md`. Tám ô rộng: R0, R0h, R10tb, Rm5 ở c = 1 và c = 2. Ba ô hẹp làm đối chiếu: R10, R0, Rm5 ở c = 0. Mỗi ô: 8 realization × 5 seed (0–4). Ô c = 2 có posterior không ổn định (`protocol_p2r`), nên c = 1 và c = 2 báo cáo riêng; c = 2 không phải bằng chứng chính.
**Năm nhánh** (cùng dựng nhãn, chuẩn hóa và backbone với `scripts/32_t2_mechanism.py`; cùng `train_predict`; RML với λ = 1/τ_c của ô, π đều trên các thành viên hợp lệ):
| Nhánh | Bank |
| --- | --- |
| `B3d-Sa` (SMC mean, mốc) | một nhãn tại warp trung bình của 1024 hạt (Gaussian NLL) |
| `M2-Sa` (S = 64, mốc) | 64 hạt rút không hoàn lại như `protocol_p2r` (rng `[0, i, 29]`) |
| `Bank-S16` | 16 thành viên đầu tiên của chính bank 64 đó |
| `Bank-S256` | bank 64 đó cộng 192 hạt rút không hoàn lại từ 960 hạt còn lại (rng `[0, i, 29, 256]`) |
| `Bank-S1024` | toàn bộ 1024 hạt |
Các bank **lồng nhau** (16 ⊂ 64 ⊂ 256 ⊂ 1024) để khác biệt giữa các nhánh chỉ đến từ số thành viên, không đến từ một lần rút khác. λ giữ nguyên theo ô (không đổi theo S). Thành viên có warp không phủ cửa sổ chính nhận trọng số 0 như `M2-Sa`.
**Ngân sách.** 250 vòng cho mọi nhánh (ngân sách đã đăng ký của `B3d-Sa` và `M2-Sa`), cố định trước. Dự đoán ở 125 và 500 vòng được lưu và chỉ báo cáo mô tả.
## 2. Đại lượng
Mọi đại lượng theo ô, ở ngân sách 250. Band RMSE theo realization = trung bình qua seed và giếng test. Tỉ số = trung bình realization của tử / của mẫu; CI 95% bootstrap trên realization (2000 mẫu), như T2 và `lambda-limit.md`.
Tỉ số chính:
- (Q1) `Bank-S256` / `M2-Sa`;
- (Q2) `Bank-S1024` / `M2-Sa`;
- (Q3) `Bank-S16` / `M2-Sa`.
Mô tả: (Q4) mỗi bank / `B3d-Sa`; band PCC của các cặp Q1–Q3. Không có giá trị p.
**Chẩn đoán trên giếng train (không dùng nhãn test):**
- S_eff theo cửa sổ của mỗi nhánh bank, S_eff = 1/Σ_s r_s², trung bình qua giếng và seed, tại 250 vòng; báo cáo cả S_eff/S.
- Sai số Monte Carlo của warp trung bình, không cần truth: RMS (ms) trên cửa sổ chính 600–1100 ms của hiệu giữa warp trung bình đều của S thành viên hợp lệ và warp trung bình của 1024 hạt, trung bình qua giếng.
- Mô tả: sai số RMS (ms) của warp trung bình S thành viên so với warp thật của giếng train.
**Kiểm tra tái lập:** band RMSE của `B3d-Sa` và `M2-Sa` huấn luyện lại ở 250 vòng so với `outputs/p2r/train/<regime>/cells/*.csv`, theo (ô, realization, seed, giếng test): ghi sai lệch tuyệt đối lớn nhất. Nếu khác không, tỉ số vẫn tính từ các mốc huấn luyện lại trong cùng lượt và sai lệch được báo cáo.
## 3. Luật đọc (mô tả, không phải verdict)
Trên 8 ô rộng, ở ngân sách 250:
- **Q1 và Q2, từng tỉ số:** nếu CI chứa 1 ở ≥ 5/8 ô: "không thấy lợi ích từ bank lớn hơn ở các ô này". Nếu CI < 1 ở ≥ 5/8 ô: "bank lớn hơn tốt hơn ở các ô này". Nếu CI > 1 ở ≥ 5/8 ô: "bank lớn hơn kém hơn ở các ô này". Còn lại: lẫn lộn. Báo cáo kèm số ô có |tỉ số − 1| ≤ 0,01 (chỉ mô tả, không phải phép kiểm tương đương).
- **Q3:** cùng luật, đọc là "bank nhỏ hơn" thay cho "bank lớn hơn".
- **Q4:** đếm số ô có CI < 1.
Cách đọc được phép, kèm chữ "consistent with": nếu Q1 và Q2 đều "không thấy lợi ích", lựa chọn S = 64 không làm thiệt các kết quả đã báo cáo ở các ô này. Không được nói "S = 64 là tối ưu" hay suy ra ngoài 11 ô, N = 16 và 250 vòng. Mọi kết quả được báo cáo, gồm cả khi trái chiều; nếu bank lớn hơn tốt hơn, bài phải nói rằng S = 64 có thể đã làm giảm lợi ích của bank.
## 4. Đầu ra và nơi được dùng
`scripts/49_bank_size.py` → `outputs/bank_size/` (`cells/*.csv`, `cells/*_seff.csv`, `cells/*_mc.csv`, `ratios.csv`, `seff.csv`, `mc_error.csv`, `selfcheck.json`, `reading.json`, `summary.md`); kết quả viết ở `docs/research/bank-size-results.md`. Chạy GPU; ngoài mọi lock, không nằm trong các archive tái lập. Trong bài: tối đa một câu ở Sec. 4 (nơi nêu S = 64), một đoạn ở Phụ lục C và, nếu cần, một ý ở Limitations; không đưa vào abstract, highlight hay kết luận. Nếu cần sửa lỗi code sau khi băm tài liệu này mà không đổi nội dung khai báo, ghi lại trong tài liệu kết quả.

View File

@@ -0,0 +1 @@
1a19212724ce294e34600ba3875a3ce5da78d56c283a325306ad7b6893ed989b bank-size.md # hashed 2026-11-16T02:42:51Z before any computation of this study

View File

@@ -0,0 +1,118 @@
# Bộ sinh D2 với tham số sai mô hình (misspecification) cho S2
Ngày 29/10/2026. Hạng mục `p6-gen` của phase P6 (plan §12 ý 22, quyết định 2: ba trục sai mô hình "rock physics sai hệ số; wavelet sai pha và băng thông; σ_b / prior drift sai"). Tài liệu này mô tả ngữ nghĩa của từng trục và từng khóa, cái gì **là** và cái gì **không là** sai mô hình so với giả định của registration, bảo đảm common random numbers (CRN), số QC trên realization dev 902, và các quyết định còn mở cho giai đoạn dev (902–905) trước khi khóa `configs/protocol_bench.yaml`.
Phạm vi: chỉ bộ sinh và test. Runner, protocol và việc chọn mức cuối cùng thuộc bước sau. **Đường mặc định không đổi:** `tests/data/d2_fingerprints.json` ghi SHA-256 của mọi trường `D2Well` và mọi output của `observe()` (rid 900, 8, 902; c ∈ {0, 1, 2}; SNR 10 dB; σ_a 7 ms; 8 giếng test + 4 giếng pool đầu) lấy **trước** khi sửa code; `tests/test_d2_misspec.py` tính lại và so khớp từng bit. Kết quả P2/P2r vì vậy vẫn tái lập.
## 1. Giao diện
```python
D2Realization(cfg, rid, hg, drift, wavelet, misspec: dict | None = None)
```
`misspec` là `None` (danh nghĩa) hoặc dict với tối đa ba khối con `rock_physics`, `wavelet`, `drift`; khóa và giá trị mặc định ở `synth_d2.MISSPEC_DEFAULTS`. Khóa hoặc khối lạ → `ValueError` (một lỗi chính tả trong protocol đã khóa không được âm thầm có nghĩa "danh nghĩa"). `observe()` giữ nguyên chữ ký và nguyên khóa output. Tiện ích: `preset_misspec(cfg, name)` đọc `cfg["misspec_presets"][name]` (bỏ khóa `note`; `None`/`"nominal"` → `None`); `normalize_misspec`, `active_axes`.
| Khối | Khóa | Mặc định | Ý nghĩa |
|---|---|---|---|
| `rock_physics` | `dt_slope_factor` | 1.0 | φ = A + B·DT: B → B·f (B danh nghĩa 0.0011 /(µs/m)) |
| | `dt_intercept_factor` | 1.0 | A → A·f (A danh nghĩa −0.2018; DT_matrix = −A/B = 183 µs/m) |
| | `rho_slope_factor` | 1.0 | RHOB = ρ0 − ρ1·φ: ρ1 → ρ1·f (1600) |
| | `rho_intercept_factor` | 1.0 | ρ0 → ρ0·f (2650) |
| | `unit_dt_intercept_sd` | 0.0 | A → A·(1 + sd·ζ_u) theo **từng đơn vị địa tầng** (46 sub-unit của khung S_ref), ζ_u ~ N(0, 1) cấp realization, stream riêng `[rid, 20261029, 1]` |
| | `region` | `all` | giếng chịu tác động: `all` \| `test` \| `pool` |
| `wavelet` | `phase_deg` | 0.0 | xoay pha hằng (trong họ của registration) |
| | `minphase_frac` | 0.0 | s ∈ [0, 1]: phổ pha s·θ_min(f) của phổ biên độ danh nghĩa (cepstral); giữ phổ biên độ; đã bỏ trễ khối bằng cách căn lại tại lag cực đại tương quan chéo với wavelet danh nghĩa |
| | `peak_freq_factor` | 1.0 | w(t) → w(p·t): phổ kéo giãn p lần |
| | `delay_ms` | 0.0 | trễ khối của wavelet (làm bộ 0,5 ms): sự kiện địa chấn lệch so với anchor |
| | `Q` | `null` | suy giảm constant-Q biến thiên theo thời gian so với `Q_t_ref_ms` (áp trong forward, không phải trong wavelet dừng) |
| | `Q_t_ref_ms` | 400.0 | thời gian tham chiếu (đỉnh cửa sổ mở rộng); gain exp(−π f Δt/Q), Δt = t′ − t_ref |
| | `Q_dispersion` | true | pha Kolsky–Futterman (2 f Δt/Q)·ln(f/f_ref), f_ref = tần số đỉnh của wavelet dừng thật |
| `drift` | `sigma_b_factor`, `sigma_g_factor`, `ell_factor` | 1.0 | sự thật rút từ (m_g, σ_g·f, ℓ·f, σ_b·f); cùng z_g, z_b |
| | `step_ms` | 0.0 | bước nhảy J của t(τ) ngay dưới `step_horizon`, **không nhân với c** |
| | `step_width_ms` | 12.0 | độ rộng (theo τ) của dị thường log-slowness tạo ra bước nhảy |
| | `step_horizon` | `Truncation` | tên horizon trong `cfg["horizons"]` |
| | `jitter_sd_ms` | 0.0 | jitter Matérn-3/2 của t(τ) trên lưới warp 4 ms, stream riêng `[rid, 20261029, 2, k]` theo giếng |
| | `jitter_ell_ms` | 8.0 | độ dài tương quan của jitter |
Thuộc tính và phương thức mới của realization:
- `R.misspec` (đã điền mặc định), `R.misspec_active` (chỉ các khóa cường độ khác danh nghĩa; `{}` = danh nghĩa), `R.misspec_info["monotone_repairs"]`.
- `R.wavelet`, `R.w_fine`: **wavelet dừng thật** (4 ms / lưới mịn); khi trục wavelet danh nghĩa thì chính là object đầu vào. `R.wavelet_nominal`, `R.w_fine_nominal`: tham chiếu của nhà phân tích. Với Q, `R.w_fine` là wavelet tại t_ref; `R.true_wavelet_at(t_ms)` cho kernel hiệu dụng tại thời gian t. Lưu ý cho runner: scripts/14 dùng `R.w_fine` làm nhánh wavelet "true"; dưới Q không có một wavelet thật duy nhất.
- `R.drift_true`, `R.Lg_true`: siêu tham số và Cholesky mà sự thật rút ra (bằng `R.drift`, `R.Lg` khi danh nghĩa).
- `R.phi_to_ai_true(phi, unit=None)`: ánh xạ φ → AI thật (bằng `phi_to_ai` khi danh nghĩa); `R.ai_log_true(w, obs)`: AI thật trên trục τ của log (chỉ số đơn vị lấy dọc warp thật); `R.rp_applies(name)`. `obs["ai_log"]` **luôn danh nghĩa**.
- `R.true_warp(w, c)` → (b, g) gồm phần GP nhân c và dị thường bước (gộp vào g); `R.true_warp_grid(w, c)` → t(τ) trên lưới gồm cả jitter. `obs["t_of_tau_true"]` luôn là sự thật đầy đủ; `obs["g"]` không chứa jitter (chẩn đoán kiểu `ll_true` từ `[b, g]` sẽ sai khi có jitter).
## 2. Cái gì là sai mô hình so với giả định của registration
Registration (`pipeline.register`, SMC ở scripts/14) giả định: (i) `obs["ai_log"]` theo quan hệ F3 danh nghĩa; (ii) wavelet **dừng**, phổ biên độ ước lượng thống kê (128 ms, Hann) từ trace giữa của giếng train, pha **hằng** trên lưới 15° (fit_phase, rồi phase_R qua log Z của SMC), biên độ α ≥ 0 và σ_n profile theo từng mẫu warp; (iii) warp prior Matérn-3/2 với MAP-II cho (m_g, σ_g, ℓ) dưới hyperprior log-normal, σ_a = 7 ms và σ_b = 50 ms cố định, |g| ≤ g_max = 1.
**Rock physics.** Sai hệ số đồng đều (bốn factor) làm ln AI thay đổi gần **affine** theo φ trên dải φ của D2 (0,20–0,43): với sai 15–20 % hệ số, ln AI đổi 3,9 % mà phần phi affine chỉ 0,56 % của dải ln AI (test `test_rock_physics_uniform_error_is_near_affine`). Vì r ≈ ½ Δln AI và α được profile, synthetic chỉ đổi một hệ số nhân: registration **không thấy** (QC: sai số trong họ 0,072 = danh nghĩa với dt_slope_factor 0,85 hoặc 1,3). SNR cũng không đổi vì nhiễu được chuẩn theo công suất tín hiệu sạch đã sai mô hình. Đây là trục "rock physics sai hệ số" theo nghĩa đen của plan §5.5, và nó là trục rỗng đối với registration; nó được giữ trong preset như một phần của L1/L2 để mô tả đúng plan, còn phần **không** hấp thụ được là `unit_dt_intercept_sd`: matrix slowness khác nhau giữa các đơn vị địa tầng (thạch học) tạo **phản xạ tại biên đơn vị không do φ**, không có trong synthetic danh nghĩa. Với sd = 0,05 (DT_matrix ±9 µs/m, tức vận tốc matrix 5450 → ~5200–5700 m/s) sai số mô hình 0,22; sd = 0,10 → 0,41 (hình (a): bậc thang ln AI_true/AI_nom theo đơn vị). `region: test` chỉ làm sai mô hình ở giếng test: đây là covariate shift cho mạng (câu hỏi của plan §5.5 "φ–DT ở vùng test khác vùng train"), **không** phải câu hỏi của S2 về registration; để sẵn vì rẻ, không khuyến nghị dùng trong S2.
**Wavelet.** `phase_deg` và `peak_freq_factor` nằm **trong họ**: QC wv_C (45°, ×1,2) cho pha khớp đúng 45° và sai số trong họ 0,050 (26 dB), thậm chí nhỏ hơn danh nghĩa 0,072 vì wavelet ngắn hơn được ước lượng tốt hơn trong 128 ms. Chúng là núm phụ (sanity/kiểm tra họ), không phải trục chính. Ngoài họ: (a) `minphase_frac` — pha phụ thuộc tần số với **cùng** phổ biên độ, nên ước lượng thống kê vẫn đúng biên độ nhưng không pha hằng nào khớp (tương quan tốt nhất 0,82 ở s = 1); (b) `Q` — wavelet biến thiên theo thời gian: một wavelet thống kê là trung bình trên 400–1300 ms nên sai ở cả hai đầu (hình (c): Q = 80 làm tần số đỉnh 59 → 32 Hz từ 600 đến 1100 ms). (c) `delay_ms` — xung đột **hệ thống** giữa địa chấn và anchor (anchor gắn với warp thật; σ_a = 7 ms chỉ mô hình sai số ngẫu nhiên); pha hằng bắt chước một phần (chọn −30°/−75° cho 2/4 ms), phần còn lại 0,24/0,40. Nhiễu `noise_unit` luôn được tạo dạng bằng wavelet danh nghĩa: nhiễu không suy giảm cùng tín hiệu (thực tế) và CRN sạch hơn (chỉ tín hiệu đổi).
**Drift.** Ba factor rút sự thật từ prior khác: MAP-II hấp thụ một phần (dr_L1: σ_g thật 0,156 → fit 0,133; ℓ thật 36 → fit 91 ms vì hyperprior trung vị 150 ms); σ_b thật 58 ms vượt σ_b = 50 ms cố định của registration ở ×3. Ngoài họ GP: `step_ms` là dị thường log-slowness cục bộ a = ln(1 + J/(Δτ Σ e^{g_i})) trên n_w = round(w/Δτ) nút ngay sau τ_h = t⁻¹(t_h) (bước nhảy **đúng bằng J** dưới dị thường nhờ quy tắc hình thang; ramp trải (n_w + 1) ô lưới bắt đầu từ ô chứa τ_h; t(τ_h) = t_h không đổi; a ≈ 0,50 cho J = 8, w = 12 và 0,85 cho J = 16, đều dưới g_max = 1). Monotone với mọi J > −Δτ Σ e^{g_i} (≈ −12 ms). `jitter` được cộng vào t(τ) chứ không vào g: tích phân của nhiễu ngắn trong g là drift kiểu Brown (tần thấp), không phải jitter; đổi lại jitter không biểu diễn được bằng g. Bảo vệ đơn điệu: nếu Δt giữa hai nút < 0,1·Δτ thì nâng lên (đếm trong `misspec_info`; 0 lần ở mọi mức đã thử). Anchor luôn nhất quán với warp thật: τ_k = t_true⁻¹(t_b), t_k = t_b + σ_a ε_k (kiểm 1e-13 ms trong test).
## 3. Bảo đảm CRN
Realization sai mô hình dùng **đúng** stream ngẫu nhiên của realization danh nghĩa, tiêu thụ theo đúng thứ tự: vị trí giếng, φ0, offset đơn vị, GRF từng giếng, nhiễu trắng, z_g, z_b, ε_a — test `_assert_crn` so khớp từng bit `phi_t, noise_unit, z_g, z_b, boundaries_t, eps_a` và tên/vị trí giếng. Hai nguồn ngẫu nhiên **mới** lấy từ stream riêng, gieo bằng rid (và chỉ số giếng cho jitter), chỉ được rút khi núm tương ứng bật, nên không chạm stream danh nghĩa. Hệ quả: trong một ô bench, hiệu số giữa ô sai mô hình và ô danh nghĩa chỉ đến từ phép biến đổi (seismic với rock physics/wavelet; warp với drift), không từ mẫu ngẫu nhiên khác. Sửa test ở `tests/test_d2.py` không cần vì đường danh nghĩa không đổi; test mới ở `tests/test_d2_misspec.py` (15 test, trong đó 3 test fingerprint theo rid, bỏ qua nếu thiếu input hoặc numpy/scipy khác bản ghi 2.5.4/1.18.1).
## 4. QC trên realization dev 902 (`scripts/33_bench_generator_qc.py`, c = 1, σ_a = 7 ms, địa chấn sạch, 16 giếng pool)
"Sai số mô hình" = RMS(địa chấn sạch − α·synthetic từ `ai_log` danh nghĩa tại warp thật)/RMS(địa chấn), α profile; "trong họ" = wavelet thống kê từ trace giếng train + pha hằng tốt nhất trên lưới 15°. Quy ra dB tương đương SNR (−20 log10); nhiễu của regime: R10 = 10 dB (tỉ số 0,32), Rm5 = −5 dB (1,78). Mức danh nghĩa: 0,010 với wavelet F3 thật, **0,072 (22,8 dB) trong họ** (sàn của ước lượng thống kê 128 ms).
| Preset | Khối | Đổi địa chấn (RMS tương đối, cửa sổ chính) | Sai số mô hình, wavelet danh nghĩa | Sai số mô hình **trong họ** (dB) | Ghi chú |
|---|---|---|---|---|---|
| nominal | — | 0 | 0,010 | 0,072 (22,8) | pha 0° |
| rp_C | 4 factor 1,15/1,15/1,2 | 0,037 | 0,012 | 0,073 (22,8) | hấp thụ hoàn toàn; ln AI đổi 0,033 RMS |
| rp_L1 | rp_C + unit sd 0,05 | 0,186 | 0,215 | 0,226 (12,9) | ζ_u tới ±1,8 → DT_matrix ±16 µs/m |
| rp_L2 | rp_C + unit sd 0,10 | 0,371 | 0,400 | 0,406 (7,8) | |
| wv_C | pha 45°, đỉnh ×1,2 | 0,839 | 0,767 | 0,050 (26,0) | pha khớp 45°; trong họ |
| wv_L1 | minphase 1,0 | 0,797 | 0,609 | 0,609 (4,3) | tương quan pha hằng tốt nhất 0,82 (13°); SMC chọn 15° |
| wv_L2 | wv_L1 + Q 80 | 0,609 | 0,667 | 0,595 (4,5) | đỉnh 59/34/32 Hz tại 600/850/1100 ms; wavelet thống kê đỉnh 36 Hz |
| dr_L1 | σ_b ×3, σ_g ×1,5, ℓ ×0,5 | 0 | 0,015 | 0,073 (22,7) | Δwarp RMS 31,9 ms (max 92) chủ yếu do b; Laplace N = 4: RMSE 4,54 ms (danh nghĩa 4,28), z RMS 0,98 |
| dr_L2 | bước 8 ms (w 12) + jitter 1 ms (ℓ 8) | 0 | 0,019 | 0,075 (22,5) | bước đạt 8,2 ms trung bình (6,3–10,7 vì đo qua ramp ±σ jitter), τ_h 573–1112 ms, a = 0,50; jitter RMS 0,93; Laplace RMSE 4,57, z RMS 1,26 |
Quét từng núm (`--sweep`, `outputs/bench/dev/generator_sweep.json`), sai số trong họ: unit sd 0,025/0,05/0,10/0,15 → 0,127/0,217/0,391/0,531 (17,9/13,3/8,2/5,5 dB); dt_slope 0,85 hay 1,3 → 0,072 (= danh nghĩa); minphase 0,25/0,5/0,75/1 → 0,197/0,342/0,486/0,609 (14,1/9,3/6,3/4,3 dB); Q 160/80/40 → 0,259/0,445/0,652 (11,7/7,0/3,7 dB); peak ×0,8/×1,2 → 0,096/0,050; delay 2/4 ms → 0,237/0,399. Drift: bước 4/8/16 ms → Δwarp 3,1/6,1/12,3 ms, Laplace RMSE 4,40/4,62/5,23 ms, z 1,17/1,26/1,47; jitter 0,5/1/2 ms → 0,48/0,97/2,04 ms, RMSE 4,26/4,27/4,46; σ_b ×2/×3/×5 → RMSE 4,08/3,91/3,67 (z 1,06/1,00/0,85); σ_g ×1,5/×2 → 4,65/5,07 (z 0,98/0,83); ℓ ×0,5/×0,25 → 4,03/3,77 (z 1,10/1,13). Kết luận: tie **chỉ anchor** gần như không nhạy với mọi núm drift ở σ_a = 7 ms (sai số anchor che bước nhảy ≤ 16 ms); sai mô hình drift chỉ bộc lộ ở posterior có địa chấn (σ_post ≈ 0,85 ms ở R10, 3 ms ở Rm5), nơi prior trơn (ℓ fit 90–120 ms) không biểu diễn được bước 8 ms trong 12 ms hay jitter ℓ = 8 ms. QC này không chạy SMC; mức drift phải chọn bằng chẩn đoán SMC trên dev (bước tiếp theo).
Hình `outputs/bench/dev/generator_qc.png`: (a) ln(AI_true/AI_nom) dọc log P00, (b)–(c) wavelet và phổ, (d) đổi warp dọc τ, (e) sai số trong họ theo preset so với mức nhiễu R10/Rm5, (f) tie chỉ anchor.
### 4b. Registration + SMC trên các preset (`--smc`, cuda:1, một worker; `outputs/bench/dev/smc_qc_rid902.json`)
Chạy đúng cấu hình P2r cho từng preset và nominal: `pipeline.register` (MAP-II, wavelet thống kê, pha anchor-based phase0, tie B3c/B3d) rồi SMC tie posterior với wavelet phase_R, γ = 1/κ, 1024 hạt, 4 giếng train đầu, c = 1, rid 902 (log `logs/runs/20261029-130144_bench_gen_smc_rid902/`, 18 ô, 32,5 phút; ô R10 khoảng 3 phút vì bước khớp phase_R, ô Rm5 khoảng 45 s). Giá trị là trung bình 4 giếng; warp RMSE/cov90/width90 của trung bình posterior SMC trên cửa sổ chính; r_post = tương quan synthetic tại trung bình posterior với địa chấn.
| Preset | R10: phase_R | SMC RMSE (ms) | cov90 | width90 (ms) | r_post | B3c / B3d (ms) | Rm5: phase_R | SMC RMSE | cov90 | width90 | r_post | B3c / B3d |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| nominal | −1° | 0,99 | 0,74 | 2,0 | 0,93 | 4,49 / 3,65 | 6° | 2,95 | 0,79 | 8,1 | 0,46 | 6,49 / 3,59 |
| rp_C | 4° | 1,02 | 0,69 | 2,1 | 0,92 | 4,49 / 3,65 | −1° | 2,87 | 0,79 | 7,6 | 0,47 | 6,49 / 3,59 |
| rp_L1 | 2° | 1,01 | 0,75 | 2,2 | 0,91 | 4,17 / 3,19 | 4° | 3,00 | 0,78 | 7,6 | 0,45 | 6,96 / 3,77 |
| rp_L2 | 6° | 1,24 | 0,76 | 3,0 | 0,85 | 5,60 / 3,26 | 1° | 3,07 | 0,81 | 8,2 | 0,41 | 8,26 / 3,60 |
| wv_C (thật 45°) | 54° | 0,92 | 0,70 | 1,8 | 0,89 | 3,84 / 3,28 | 48° | 3,62 | 0,85 | 8,6 | 0,38 | 6,81 / 3,47 |
| wv_L1 | 78° | **4,22** | **0,04** | 3,0 | 0,81 | 4,18 / 3,13 | 49° | 3,61 | 0,79 | 9,7 | 0,33 | 7,65 / 3,37 |
| wv_L2 | 56° | 3,06 | 0,26 | 3,5 | 0,85 | 3,68 / 3,11 | 27° | 3,04 | 0,91 | 10,1 | 0,32 | 7,49 / 3,31 |
| dr_L1 | 3° | 2,09 | 0,69 | 4,2 | 0,76 | 4,17 / 3,97 | 2° | 3,07 | 0,90 | 12,5 | 0,23 | 7,88 / 4,28 |
| dr_L2 | 0° | 2,22 | 0,64 | 3,7 | 0,79 | 4,15 / 3,81 | −2° | 3,25 | 0,68 | 7,2 | 0,49 | 8,21 / 3,66 |
Đọc kết quả:
- **Đối chứng đúng như dự đoán.** rp_C trùng nominal ở cả hai regime (trục "sai hệ số đồng đều" rỗng với registration). wv_C khôi phục pha thật trong một bước lưới (54°/48° so với 45°) và tie tốt như nominal.
- **Rock physics có bậc ở R10, không thấy ở Rm5.** sd 0,05 không đổi gì; sd 0,10 tăng RMSE 25 % và width 50 % mà vẫn hiệu chuẩn (cov90 0,76). Ở Rm5 nhiễu che hoàn toàn sai số mô hình (chỉ B3c xấu đi 6,5 → 8,3 ms). Trục này chỉ có lực ở SNR cao.
- **Pha phụ thuộc tần số là chế độ thất bại mạnh nhất, và là thất bại kiểu quá tự tin.** wv_L1 ở R10: RMSE 4,22 ms với width90 chỉ 3,0 ms → cov90 0,04, tệ hơn cả tie chỉ anchor B3d (3,13 ms); phase_R trôi tới 78°. Thêm Q (wv_L2) làm giảm thiệt hại (3,06 ms, cov90 0,26) vì suy giảm tần cao bớt phần tán sắc. Ở Rm5 posterior đủ rộng nên vẫn hiệu chuẩn (0,79–0,91) và RMSE chỉ tăng nhẹ (2,95 → 3,6). Hệ quả cho T4/Mệnh đề 5: đây là cơ chế tạo posterior lệch nhưng hẹp, khác hẳn trục drift.
- **Drift làm tăng sai số và độ rộng mà vẫn hiệu chuẩn.** dr_L1 và dr_L2 ở R10: RMSE gấp đôi (2,1–2,2 ms), width gấp đôi, cov90 0,64–0,69. Ở Rm5 dr_L1 làm posterior quá rộng (width 12,5 ms, cov90 0,90), dr_L2 hơi quá hẹp (0,68). Khác với tie chỉ anchor (mục 4), SMC thấy rõ hai mức này.
- phase0 (pha từ anchor) dao động −45°…75° dù pha thật 0°, nhắc lại vì sao P2 thất bại; chỉ phase_R có nghĩa.
## 5. Quyết định còn mở cho giai đoạn dev (902–905), trước khi khóa protocol
1. **Mức (sau 4b).** Rock physics: rp_L1 hiện tại (sd 0,05) là ô rỗng với SMC ở cả hai regime; đề nghị L1 = sd 0,10 (mức đầu tiên SMC thấy ở R10), L2 = sd 0,15 (sai số mô hình 0,53), và ghi trước rằng trục này được kỳ vọng rỗng ở Rm5. Wavelet: minphase 1,0 là mức "gãy" (posterior lệch 4 ms, cov90 0,04 ở R10); đề nghị L1 = minphase 0,5 (sai số mô hình 0,34 ≈ nhiễu R10) để có đáp ứng có bậc, L2 = minphase 1,0; Q nên là một ô riêng (cơ chế biến thiên theo thời gian) thay vì gộp vào L2, vì gộp làm giảm thiệt hại của tán sắc. Drift: dr_L1 và dr_L2 đã có bậc vừa phải (RMSE ×2, vẫn hiệu chuẩn) và có thể giữ; nếu cần một mức mạnh hơn thì bước 16 ms (a = 0,85). Mọi mức chốt trên 902–905 (lặp `--smc` trên 903–905, mỗi rid khoảng 30 phút một worker) rồi ghi vào protocol_bench cùng luật đạt; sau khi khóa không đổi.
2. **Trục rock physics.** Không dùng ô "chỉ sai hệ số đồng đều" làm ô chính (trục rỗng với registration; giữ rp_C làm bằng chứng trong bài). Giữ các factor đồng đều bên trong L1/L2 để bám câu chữ của plan hay bỏ hẳn cho sạch: cần một quyết định ghi vào protocol.
3. **Trục drift.** Hai mức hiện là hai cơ chế (siêu tham số sai; thành phần ngoài GP). Cần chọn: giữ như vậy (dễ quy kết) hay làm hai cường độ của cùng tổ hợp. Bước nhảy không nhân với c, nên ở c = 0 ô drift sẽ không còn là "không drift"; S2 chỉ chạy c = 1 nên không ảnh hưởng, nhưng protocol phải nói rõ.
4. **Núm phụ.** `phase_deg`, `peak_freq_factor` (trong họ) và `delay_ms`, `region` để làm kiểm tra bổ sung hoặc bỏ; nếu dùng `delay_ms` thì phải nói rõ đó là xung đột anchor–địa chấn, không phải "sai pha". `Q_dispersion` ảnh hưởng ít (Q 80: 0,517 có tán sắc so với 0,487 không, với wavelet danh nghĩa).
5. **Runner.** Nhánh wavelet "true" phải dùng `R.w_fine` (wavelet dừng thật) và ghi chú rằng dưới Q không có wavelet thật duy nhất; chẩn đoán từ `[b, g]` không hợp lệ khi có jitter; protocol phải ghi nguyên văn dict preset đã chuẩn hóa, SHA-256 của `configs/d2_synth_bench.yaml`, và đối chiếu fingerprint danh nghĩa.
6. **Dev.** Mọi thiết kế chỉ trên 902–905; QC từ chối rid ngoài tập này; realization 8–15 không được chạy trước khi khóa.
7. **Bài.** Khi viết, nói rõ trục rock physics của plan §5.5 theo nghĩa đen là bất biến với likelihood có α profile (một kết quả nhỏ nhưng đáng ghi), và rằng các mức được chọn sau khi xem dev 902–905 (thiết kế sau P2r, không phải confirmatory trừ khi luật đạt được ghi trước trong protocol_bench).
## 6. Tệp
- `ml_porosity/data/synth_d2.py`: `MISSPEC_DEFAULTS`, `normalize_misspec`, `active_axes`, `preset_misspec`, `phi_to_ai_coef`, `fractional_minimum_phase`, `true_stationary_wavelet`, `q_kernel`, `forward_fine_q`, các phương thức mới của `D2Realization`.
- `configs/d2_synth_bench.yaml`: bộ sinh = p2r + `regimes` (sao chép) + `misspec_presets` (placeholder).
- `tests/data/d2_fingerprints.json`, `tests/test_d2_misspec.py`.
- `scripts/33_bench_generator_qc.py` → `outputs/bench/dev/{generator_qc.json, generator_qc.png, generator_sweep.json, smc_qc_rid902.json}` (không theo dõi trong git); `--smc` chạy registration + SMC trên GPU (`--device cuda:1`, một worker, cap 2 GiB) hoặc `--device cpu` khi GPU đầy; nối tiếp theo ô đã xong.

View File

@@ -0,0 +1,286 @@
# protocol_bench: runner, hiệu chuẩn mức sai mô hình, tái lập P2r và bản nháp giao thức
Ngày viết: **29/10/2026** (phase P6, mức B; plan §12 ý 22 và 26; lịch §6.1 dự kiến 2–3/11, làm sớm). Trạng thái: **ĐÃ KHOÁ 14:39:20 UTC 29/10/2026** sau khi điều phối duyệt bản nháp và yêu cầu 7 sửa đổi (mục 1.4); `configs/protocol_bench.sha256` = `aa763f0a4f81125ea8441fdfba4361f68246c7a0be1c36d4bf8de2650a91a4c5`, `configs/protocol_bench.lock.json` (code `5ea2eb17…`, torch 2.14.0+cu130, 8 input, 102 artifact P2r, fingerprint rid 8/902 khớp). Chạy chính 29/10 14:43 → 30/10 02:16 UTC, đã xong toàn bộ (S1 560 ô train, S2 224 posterior + 224 train, S3+S4+S8 384 train; chi tiết `docs/plan.md` §12 ý 26). Summarize xong 02/11/2026 02:02 UTC; verdict cuối theo đúng lời phát biểu do `scripts/36_bench_verdicts.py` ghi (9/11 đạt; mục 8, `docs/plan.md` §12 ý 28). S7 đóng gói xong cùng ngày (`scripts/37_bench_package.py`, `benchmark/`; mục 9, §12 ý 29). Code commit 381b5ff. Tài liệu này ghi (1) thiết kế runner `ml_porosity/benchmark/` và CLI, (2) kết quả kiểm tra tái lập P2r qua runner mới, (3) hiệu chuẩn mức L1/L2 của ba trục sai mô hình trên realization dev, (4) tóm tắt giao thức `configs/protocol_bench.yaml` (ô, giả thuyết, luật), (5) ước tính chi phí và phân bổ GPU, (6) tác dụng phụ lên hash code của lock F3/Volve, (7) rủi ro còn mở, (8) kết quả và verdict, (9) gói benchmark S7. Mục 2 và 3 được điền khi có số; mọi số dev đều ghi rõ rid, N, regime.
Liên quan: `docs/research/pivot-theory-benchmark.md` §2.2 (S1–S8) và §6; `docs/research/bench-generator.md` (bộ sinh misspec, QC rid 902); `configs/protocol_p2r.yaml` (khoá; nguồn của regime, phương pháp, ngân sách, luật); `configs/protocol_p2.yaml` (khoá; registration, training, metric); bản đồ code của phase 1 (scratchpad `bench-code-map.md`, không theo dõi trong git).
---
## 1. Runner `ml_porosity/benchmark/` và CLI
### 1.1 Mô-đun
| Mô-đun | Vai trò | Mẫu theo |
| --- | --- | --- |
| `protocol.py` | `load_protocol` (kiểm hash input), `current_stamp` (protocol, code `ml_porosity/**/*.py` + `scripts/34_run_bench.py` + `scripts/run_bench.sh` + `pyproject.toml`, môi trường, input, artifact P2r tham chiếu, fingerprint bộ sinh danh nghĩa của rid 8 và 902), `freeze(check)` (khoá `.lock.json` + `.sha256`; từ chối khoá lần đầu nếu `outputs/bench/{s1,s2,s3,s4,s8,summary}` đã tồn tại, nếu còn `sha256: TBD` hoặc `status: DRAFT`), `check_rids` (rid 8–15 chỉ khi lock khớp; 900–905 chỉ với `--dev`; 0–7 luôn từ chối; không trộn), `dev_stamp` (khoá resume dev: chỉ protocol + bộ sinh), `fingerprint` | `ml_porosity/volve/protocol.py`, `scripts/11 check_rids` |
| `data.py` | `Inputs` (cfg bộ sinh, horizon grid, prior warp, wavelet, khối registration/training/metric của protocol_p2 qua `scripts/11 reg_settings`), `Inputs.realization(rid, preset)` (`D2Realization(..., misspec=preset_misspec(cfg, preset))`), `Inputs.observe` (giếng train = `pool[:N]` với anchor theo regime, 8 giếng test cùng SNR), `fingerprint_realization` (đúng hàm của `tests/test_d2_misspec.py`) | scripts 14/15 |
| `cells.py` | `Cell(study, regime, preset, c, N, rid, methods, backbone, posterior, delta_ms)`; liệt kê ô của S1/S2/S3/S4/S8 từ khối `studies:`; đường dẫn phẳng: posterior dùng chung theo setting `outputs/bench/posterior/<regime[__preset]>/r{rid}_c{c}_n{N}_s0{.csv,_particles.npz,_phase.json,.json}` (cùng layout P2r), train `outputs/bench/<study>/train/<setting>/cells/r{rid}_c{c}_n{N}[_d{Δ}][__tcn]{.csv,.npz,_diag.csv,.json}`; `--dev` → gốc `outputs/bench/dev/`, `repro` → `outputs/bench/repro/` | `volve/runner.py` reg_path/job_path |
| `registration.py` | `posterior_cell`: đúng `scripts/14 run_job` thu hẹp về nhánh estR mà P2r dùng; cùng stream ngẫu nhiên (`[k, i, 13]` mẫu anchor, `[k, 19]` fit pha, `[k, i, 17]` SMC), cùng ba mốc γ (g_old, g_acf, g_one; mốc đổi lịch tôi luyện nên giữ nguyên), chỉ lưu hạt g_acf (P2r còn lưu g_one, không phương pháp nào dùng) | scripts/14 |
| `training.py` | `train_cell`: đúng `scripts/15 run_cell` biến thể "a" (B3c-R, B3d-Sa, M2-Sa từ hạt; `run_d2.method_specs` cho Oracle/B3*/B4*/M*); thêm bank hai mode S8 (`two_mode_banks`), backbone TCN (`train_predict_tcn`, vòng lặp của `bank_train.train_predict` với `TCNHetero` và cờ cudnn deterministic như `f3.make_model`); nhánh CNN-GRU uỷ quyền nguyên vẹn cho `bank_train.train_predict` (không sửa `bank_train.py`/`rml.py` của T2) | scripts/15, `f3/training.py` |
| `runner.py` | job theo ô, pool `spawn`, `wait(FIRST_COMPLETED)` với ETA, fail-fast; sidecar `.json` mang fingerprint + SHA-256 artifact; `reusable` bỏ qua job khớp, **raise** nếu lệch (gốc output mới); `progress.json`; sắp xếp N lớn trước | `volve/runner.py` |
| `summary.py` | mọi phân tích đã khai báo (mục 4) dùng `scripts/13 gate_gb/boot` và luật cặp của `scripts/18`; đọc P2r cho ô có sẵn | scripts 13/18 |
| `repro.py` | so sánh ô tái lập với `outputs/p2r` (pha, hạt, chẩn đoán warp, metric train, dự đoán) → `outputs/bench/repro/comparison.json` | — |
| `devbudgets.py` | ngân sách TCN trên dev theo đúng luật `budget_selection` của protocol_p2 | scripts/11 `select_budgets` |
### 1.2 CLI và driver
```
scripts/34_run_bench.py <stage…> [--studies S1 S2 S3 S4 S8] [--device cuda:0] [--workers 4] [--gpu-mem-gb 6] [--threads 2]
[--regimes …] [--presets …] [--controls] [--rids …] [--dev] [--drift …] [--n-train …] [--seeds …]
stages: status | lock | posterior | train | summarize | repro | dev-budgets | all
scripts/run_bench.sh <stage…> # bọc runlog; env DEVICE WORKERS THREADS MEM_GB STUDIES REGIMES PRESETS RIDS DEV CONTROLS EXTRA
```
- `--dev`, `--drift`, `--n-train`, `--seeds` chỉ dành cho dev (900–905); với `--drift/--n-train` S1 bỏ loại trừ ô P2r (để chạy posterior danh nghĩa c = 1, N = 4/16 trên dev).
- `repro` chạy đúng một ô (`reproduction:` của protocol) trước khi khoá, ghi vào `outputs/bench/repro/`, không phải kết quả.
- Mọi lần chạy dài: `setsid nohup scripts/run_bench.sh … > logs/bench_<x>.out 2>&1 &`.
- Luồng: `OMP/MKL/OPENBLAS/NUMEXPR/NUMBA_NUM_THREADS` đặt tường minh (mặc định 2/worker), `PYTHONHASHSEED=0`, `CUBLAS_WORKSPACE_CONFIG=:4096:8` như `scripts/24`.
- Test: `tests/test_bench.py` (11 test: nhất quán protocol, đếm ô, đường dẫn, guard, fingerprint, TCN trên CPU, bank hai mode S8, bank đối chứng Ctl-GP, danh sách ngân sách với nhánh 500, fingerprint danh nghĩa, luật tổng hợp trên dữ liệu giả). Toàn bộ `tests/`: 216 pass, 1 skip (CUDA ẩn) sau khi sửa `tests/test_d2_misspec.py` cho tên preset `cand_*`.
- `scripts/35_bench_calibration.py`: bảng hiệu chuẩn từ `outputs/bench/dev/smc_qc_rid*.json` → `outputs/bench/dev/calibration.{csv,md}`.
### 1.3 Lệnh khoá (đã chạy 14:39 UTC, runlog `20261029-143914_bench_lock`) và lệnh chạy chính (điều phối khởi động 14:43 UTC bằng setsid nohup với ít worker hơn; bị SIGTERM 15:27 khi phiên agent kết thúc; chạy lại 15:41 UTC trong tmux, xem plan §12 ý 26. Lệnh dưới đây là mẫu: hãy bọc bằng `tmux new-session -d` thay cho `setsid nohup`)
```bash
# 0. (sau khi duyệt) trong configs/protocol_bench.yaml: (a) đổi status thành "LOCKED 2026-11-0x"; (b) điền training.budgets_tcn
# từ outputs/bench/dev/budgets_tcn.json (stage dev-budgets, đang chạy lúc bàn giao) hoặc để null = budget-matched (phải nói trong bài);
# (c) nếu có sửa configs/d2_synth_bench.yaml sau bàn giao thì cập nhật inputs.d2_config.sha256:
.venv/bin/python -c "from ml_porosity.f3.protocol import digest; from pathlib import Path; print(digest(Path('configs/d2_synth_bench.yaml'), True))"
CUDA_VISIBLE_DEVICES= .venv/bin/python -m pytest -q -p no:cacheprovider tests/test_bench.py tests/test_d2_misspec.py tests/test_protocol.py
# 1. khoá (từ chối nếu còn DRAFT/TBD, nếu outputs/bench/{s1,s2,s3,s4,s8,summary} đã tồn tại, nếu fingerprint danh nghĩa rid 8/902 lệch)
scripts/run_bench.sh lock # = .venv/bin/python -m ml_porosity.runlog -n bench_lock -- .venv/bin/python scripts/34_run_bench.py lock
# 2. chạy chính (hai GPU, tách phiên); bộ nhớ đo được: worker SMC 1 556 MiB ở N = 16 (cap không chạm), worker train ≈ 710 MiB
setsid nohup env STUDIES="S1" REGIMES="R10 Rm5 R0h" DEVICE=cuda:0 WORKERS=4 MEM_GB=6 scripts/run_bench.sh posterior train > logs/bench_s1_cuda0.out 2>&1 &
setsid nohup env STUDIES="S1" REGIMES="R0 R10tb" DEVICE=cuda:1 WORKERS=4 MEM_GB=6 scripts/run_bench.sh posterior train > logs/bench_s1_cuda1.out 2>&1 &
setsid nohup env STUDIES="S2" REGIMES="R10" DEVICE=cuda:0 WORKERS=4 MEM_GB=6 scripts/run_bench.sh posterior train > logs/bench_s2_cuda0.out 2>&1 &
setsid nohup env STUDIES="S2" REGIMES="Rm5" DEVICE=cuda:1 WORKERS=4 MEM_GB=6 scripts/run_bench.sh posterior train > logs/bench_s2_cuda1.out 2>&1 &
setsid nohup env STUDIES="S3 S4 S8" DEVICE=cuda:1 WORKERS=4 scripts/run_bench.sh train > logs/bench_s348_cuda1.out 2>&1 &
scripts/run_bench.sh summarize
```
### 1.4 Sửa theo review của điều phối trước khi khoá (29/10, 14:15–14:39 UTC)
1. S2-H2: "12 cặp" → **14 cặp** (7 preset × 2 regime; `summary.py` đếm `len(regimes) × Σ preset` = 14).
2. S2-H1 `prediction`: số lấy đúng từ `calibration.md` (wv_L1: ×3.2 = 2.14 ms, cov90 0.11, B3c 4.30 ms, 4/4 rid; wv_L2: 3.93 ms, cov90 0.03, 3/4 rid; dr_L1/L2 1.55/2.27 ms so với B3c 3.48/4.52).
3. `calibration.procedure`: trục drift viết lại thành **hai cơ chế riêng** (dr_L1 siêu tham số trong họ GP; dr_L2 thành phần ngoài họ GP), bỏ câu "quy kết bằng hiệu".
4. `calibration.levels_vs_declared_band`: nêu rõ rp_L1 vượt dải L1 (0.5–1.0 × nhiễu R10) **+24 %** (1.24 ×) và wv_L1 **+8 %** (1.08 ×), lý do (registration mù với trục rock physics nên 0.075 ≈ danh nghĩa; không có mức pha "ôn hoà"); chọn phương án (b) giữ 0.10 và 0.5; phương án (a) đã cân nhắc và bác.
5. `reproduction.result`: ghi "bitwise exact" kèm con trỏ `outputs/bench/repro/comparison.json`.
6. `rules.multiplicity`: 9 claim, 11 verdict (S2-H1 theo trục), không hiệu chỉnh family-wise, báo mọi verdict kể cả trượt.
7. `training.budgets_tcn` điền từ `outputs/bench/dev/budgets_tcn.json` (stage `dev-budgets`, wall 1:03:53, 4 rid × 2 N × 2 seed): luật budget_selection của protocol_p2 chọn **125 cho mọi phương pháp TCN** — RMSE tổng tăng đơn điệu theo số vòng lặp (B3d-Sa-TCN 1.406/1.428/1.482/1.537/1.592; M2-Sa-TCN 1.389/1.429/1.469/1.521/1.616; Oracle-TCN 1.393/…/1.604); cực tiểu nằm ở biên danh sách ứng viên, danh sách giữ nguyên như protocol_p2 (không thêm ứng viên nhỏ hơn sau khi xem dev); ghi rõ trong protocol.
Sau sửa: `pytest tests/test_bench.py tests/test_d2_misspec.py tests/test_protocol.py` 31 pass; toàn bộ `tests/` 216 pass, 1 skip; `scripts/run_bench.sh lock` thành công; `freeze(check=True)` khớp lock; `check_rids([8..15])` chấp nhận realization chính, vẫn từ chối rid dev không có `--dev`.
---
## 2. Kiểm tra tái lập P2r qua runner mới
Ô `reproduction:` của protocol: R10, rid 8, c = 1, N = 4 — chạy **lại từ đầu** qua `scripts/34_run_bench.py repro` (posterior SMC với P = 1024, mốc γ (g_old, g_acf, g_one), rồi huấn luyện 7 phương pháp × 5 seed ở ngân sách P2r) trên cuda:1 (1 worker, `--gpu-mem-gb 3`; runlog `20261029-133329_bench_repro_r8`, wall 3:48: posterior 142 s, train 73 s), so với `outputs/p2r/posterior/R10/r8_c1_n4_s0*` và `outputs/p2r/train/R10/cells/r8_c1_n4.*`. Kết quả (`outputs/bench/repro/comparison.json`):
| Đại lượng | Sai lệch tuyệt đối lớn nhất | Ghi chú |
| --- | --- | --- |
| phase0 (đăng ký anchor) | 0 (0.0° = 0.0°) | `register()` CPU |
| phase_R (fit pha qua log Z của SMC) | 0 (-0.990696378084 = P2r) | lưới 7 nút, GPU |
| log Z theo pha × giếng | 0.0 | |
| hạt SMC tại γ = 1/κ, 4 giếng × (1024 × 390) | 0 — **trùng từng bit** | `particles_bitwise = true` |
| warp RMSE / cov90 / width90 / κ_post / r_post của mọi dòng CSV | 0 | số stage 17/17/17/18 trùng |
| metric train theo (phương pháp, seed, giếng test), 280 dòng: band RMSE, RMSE, band PCC, NLL, coverage90 | 0 | |
| dự đoán μ (35 mảng 8 × 126) và y_true | trùng từng bit | `pred_bitwise = true` |
| `_diag.csv`: B3c-R / B3d-Sa warp RMSE, λ, phase_R, M2-Sa n_valid | 0 | |
Band RMSE trung bình ô (mới = P2r): B3b 0.9667, B3c 0.5755, B3c-R 0.6022, B3d 0.7475, B3d-Sa 0.5380, M2-Sa 0.5289, Oracle 0.5577 p.u.
**Kết luận.** Đường mặc định của runner (bộ sinh với `misspec=None`, `register`, SMC GPU, bank nhãn, huấn luyện CNN-GRU qua `bank_train.train_predict`) tái lập P2r **chính xác từng bit** trên H200 với torch 2.14.0+cu130 (khớp self-check của T2: 10.560 dòng, sai lệch 0). Vì guard của P2r không băm code, đây là bằng chứng rằng các sửa code của P6 (misspec trong `synth_d2.py`, `on_budget`/`responsibilities` của T2, gói `benchmark/`) không đổi đường chạy đã đăng ký. Giới hạn: một ô, một GPU, một môi trường; bit-equality của SMC trên GPU không được bảo đảm nói chung (smc_torch khớp CPU đến sai số làm tròn; chọn/loại ở ties có thể lệch) — ở đây không xảy ra.
Kiểm tra phụ (dev rid 902, R10, c = 1, N = 4): runner và `scripts/33 --smc` cho **cùng** phase_R (−0.5323048335…) nhưng hạt khác nhau (warp RMSE P00 0.704 so với 0.744 ms; 17 so với 12 stage) vì scripts/33 chạy SMC với một mốc γ duy nhất (g_acf) còn runner/P2r dùng ba mốc; mốc đổi lịch tôi luyện. Các số hiệu chuẩn ở mục 3 vì vậy ở "lịch một mốc"; mức được chọn theo tỉ số so với danh nghĩa dưới cùng lịch.
---
## 3. Hiệu chuẩn mức L1/L2 của S2 trên dev
**Cách làm.** Với mỗi ứng viên (khối `misspec_presets` của `configs/d2_synth_bench.yaml`, kể cả `cand_*`), chạy đúng registration của P2r trên dev: `pipeline.register` (MAP-II, wavelet thống kê, pha hằng) rồi SMC GPU (P = 1024, nhánh estR, γ = 1/κ; `scripts/33_bench_generator_qc.py --smc`, lịch **một mốc** γ — xem lưu ý ở mục 2) ở N = 4, c = 1, hai regime R10 và Rm5, trên realization dev 902 (mọi preset), 903 (các ứng viên), 904 và 905 (xác nhận 7 preset đã chọn). Bảng gộp: `scripts/35_bench_calibration.py` → `outputs/bench/dev/calibration.{csv,md}` (hàng nhận diện theo núm đang bật, vì tên preset đã được định nghĩa lại trong ngày). "Sai số mô hình trong họ" = RMS(địa chấn sạch − α·synthetic danh nghĩa tại warp thật)/RMS(địa chấn) với thành viên tốt nhất của họ wavelet thống kê + pha hằng (QC rid 902, `bench-generator.md` §4); nhiễu regime: R10 0.316, Rm5 1.778. Các log: `logs/bench_cal_smc_rid90{2,2b,3,4,5}.out`, runlog `bench_cal_smc_rid*`.
**Mục tiêu khai báo trước khi xem số** (`calibration.procedure` của protocol): L1 — sai số mô hình trong họ ≈ 0.5–1.0 × nhiễu R10 và SMC vẫn trước point tie ở R10; L2 — ≈ 1.5–2 × nhiễu R10, kèm mất hiệu chỉnh thấy được (cov90 < 0.5 ở R10 hoặc warp RMSE ≥ 2 × danh nghĩa). Trục rock physics chỉ dùng độ phân tán intercept theo đơn vị (các hệ số đồng đều bất biến với likelihood có α profile; `rp_C` giữ làm control). Thầy QC bộ sinh (chuyển qua điều phối) đề nghị: rp 0.10/0.15, wv minphase 0.5/1.0 với Q thành ô riêng, dr giữ hai preset; quyết định cuối ở dưới.
### 3.1 Bảy preset đã chọn — R10 (N = 4, c = 1; trung bình trên rid × 4 giếng train)
| Preset | Núm | n_rid | Sai số mô hình trong họ (÷ nhiễu regime) | SMC warp RMSE (ms) | ÷ danh nghĩa | cov90 | σ_post (ms) | overconf. | B3c warp RMSE | SMC < B3c (tỉ lệ rid) | r_post |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| nominal | `{}` | 4 | 0.072 (0.23) | 0.69 | 1.00 | 0.83 | 0.56 | 1.25 | 3.97 | 1.00 | 0.89 |
| rp_L1 | `{"rock_physics": {"unit_dt_intercept_sd": 0.1}}` | 3 | 0.391 (1.24) | 0.76 | 1.27 | 0.85 | 0.69 | 1.14 | 4.34 | 1.00 | 0.84 |
| rp_L2 | `{"rock_physics": {"unit_dt_intercept_sd": 0.15}}` | 4 | 0.531 (1.68) | 1.17 | 1.66 | 0.81 | 0.91 | 1.31 | 4.83 | 1.00 | 0.79 |
| wv_L1 | `{"wavelet": {"minphase_frac": 0.5}}` | 4 | 0.342 (1.08) | 2.14 | 3.24 | 0.11 | 0.63 | 3.49 | 4.30 | 1.00 | 0.85 |
| wv_L2 | `{"wavelet": {"minphase_frac": 1.0}}` | 4 | 0.609 (1.93) | 3.93 | 5.92 | 0.03 | 0.82 | 4.94 | 4.57 | 0.75 | 0.76 |
| wv_Q | `{"wavelet": {"Q": 80.0}}` | 4 | 0.445 (1.41) | 1.06 | 1.57 | 0.84 | 0.98 | 1.08 | 3.42 | 1.00 | 0.86 |
| dr_L1 | `{"drift": {"ell_factor": 0.5, "sigma_b_factor": 3.0, "sigma_g_factor": 1.5}}` | 4 | 0.073 (0.23) | 1.55 | 2.22 | 0.75 | 1.08 | 1.43 | 3.48 | 1.00 | 0.66 |
| dr_L2 | `{"drift": {"jitter_sd_ms": 1.0, "step_ms": 8.0}}` | 4 | 0.075 (0.24) | 2.27 | 3.29 | 0.61 | 0.85 | 2.74 | 4.52 | 1.00 | 0.80 |
### 3.2 Bảy preset đã chọn — Rm5
| Preset | Núm | n_rid | Sai số mô hình trong họ (÷ nhiễu regime) | SMC warp RMSE (ms) | ÷ danh nghĩa | cov90 | σ_post (ms) | overconf. | B3c warp RMSE | SMC < B3c (tỉ lệ rid) | r_post |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| nominal | `{}` | 4 | 0.072 (0.04) | 3.68 | 1.00 | 0.76 | 2.43 | 1.54 | 6.77 | 1.00 | 0.42 |
| rp_L1 | `{"rock_physics": {"unit_dt_intercept_sd": 0.1}}` | 3 | 0.391 (0.22) | 4.03 | 1.04 | 0.73 | 2.44 | 1.70 | 6.52 | 1.00 | 0.39 |
| rp_L2 | `{"rock_physics": {"unit_dt_intercept_sd": 0.15}}` | 4 | 0.531 (0.30) | 3.91 | 1.08 | 0.75 | 2.58 | 1.57 | 7.09 | 1.00 | 0.37 |
| wv_L1 | `{"wavelet": {"minphase_frac": 0.5}}` | 4 | 0.342 (0.19) | 3.87 | 1.06 | 0.76 | 2.59 | 1.50 | 7.27 | 1.00 | 0.36 |
| wv_L2 | `{"wavelet": {"minphase_frac": 1.0}}` | 4 | 0.609 (0.34) | 4.30 | 1.23 | 0.71 | 2.85 | 1.51 | 7.28 | 1.00 | 0.30 |
| wv_Q | `{"wavelet": {"Q": 80.0}}` | 4 | 0.445 (0.25) | 4.08 | 1.12 | 0.71 | 2.43 | 1.68 | 6.05 | 1.00 | 0.41 |
| dr_L1 | `{"drift": {"ell_factor": 0.5, "sigma_b_factor": 3.0, "sigma_g_factor": 1.5}}` | 4 | 0.073 (0.04) | 3.90 | 1.10 | 0.83 | 3.27 | 1.24 | 7.16 | 1.00 | 0.15 |
| dr_L2 | `{"drift": {"jitter_sd_ms": 1.0, "step_ms": 8.0}}` | 4 | 0.075 (0.04) | 4.21 | 1.18 | 0.66 | 2.37 | 1.79 | 7.29 | 1.00 | 0.41 |
### 3.3 Ứng viên đã xét và không chọn (R10)
| Ứng viên | Núm | n_rid | Sai số trong họ (÷ nhiễu) | SMC warp RMSE | ÷ danh nghĩa | cov90 | σ_post | overconf. |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| cand_dr_hs | `{"drift": {"ell_factor": 0.5, "jitter_sd_ms": 1.0, "sigma_b_factor": 3.0, "sigma_g_factor": 1.5, "step_ms": 8.0}}` | 2 | — | 2.86 | 3.52 | 0.61 | 1.33 | 2.16 |
| cand_dr_s2 | `{"drift": {"jitter_sd_ms": 2.0, "step_ms": 16.0}}` | 2 | — | 4.25 | 5.26 | 0.60 | 2.07 | 2.09 |
| cand_rp_a | `{"rock_physics": {"unit_dt_intercept_sd": 0.05}}` | 1 | 0.217 (0.69) | 0.93 | 1.34 | 0.59 | 0.50 | 1.84 |
| cand_rp_d | `{"rock_physics": {"unit_dt_intercept_sd": 0.075}}` | 1 | — | 1.08 | 1.09 | 0.76 | 0.76 | 1.41 |
| cand_wv_b | `{"wavelet": {"Q": 160.0}}` | 2 | 0.259 (0.82) | 0.92 | 1.08 | 0.79 | 0.64 | 1.41 |
| cand_wv_e | `{"wavelet": {"Q": 160.0, "minphase_frac": 0.5}}` | 2 | — | 1.72 | 2.06 | 0.32 | 0.67 | 2.58 |
| cand_wv_f | `{"wavelet": {"minphase_frac": 0.25}}` | 1 | 0.197 (0.62) | 1.92 | 1.95 | 0.25 | 0.64 | 3.01 |
| cand_wv_g | `{"wavelet": {"Q": 40.0}}` | 1 | 0.652 (2.06) | 1.60 | 1.63 | 0.86 | 1.59 | 1.01 |
| cand_wv_h | `{"wavelet": {"Q": 80.0, "minphase_frac": 0.5}}` | 1 | — | 1.67 | 1.69 | 0.63 | 0.98 | 1.71 |
| rp_C | `{"rock_physics": {"dt_intercept_factor": 1.15, "dt_slope_factor": 1.15, "rho_slope_factor": 1.2}}` | 1 | 0.073 (0.23) | 1.02 | 1.04 | 0.69 | 0.63 | 1.62 |
| rp_L1 (old definition) | `{"rock_physics": {"dt_intercept_factor": 1.15, "dt_slope_factor": 1.15, "rho_slope_factor": 1.2, "unit_dt_intercept_sd": 0.05}}` | 1 | 0.226 (0.71) | 1.01 | 1.02 | 0.75 | 0.67 | 1.49 |
| rp_L2 (old definition) | `{"rock_physics": {"dt_intercept_factor": 1.15, "dt_slope_factor": 1.15, "rho_slope_factor": 1.2, "unit_dt_intercept_sd": 0.1}}` | 1 | 0.406 (1.28) | 1.24 | 1.26 | 0.76 | 0.91 | 1.37 |
| wv_C | `{"wavelet": {"peak_freq_factor": 1.2, "phase_deg": 45.0}}` | 1 | 0.050 (0.16) | 0.92 | 0.93 | 0.70 | 0.53 | 1.72 |
| wv_L2 (old definition) | `{"wavelet": {"Q": 80.0, "minphase_frac": 1.0}}` | 1 | 0.595 (1.88) | 3.06 | 3.11 | 0.26 | 1.08 | 2.84 |
(Ở Rm5 mọi ứng viên nằm trong 0.97–1.33 × danh nghĩa; bảng đầy đủ trong `calibration.md`.)
### 3.4 Quyết định và lý do
1. **Rock physics: rp_L1 = unit sd 0.10, rp_L2 = 0.15.** Sai số mô hình 1.24× và 1.68× nhiễu R10. Trục này **gần như vô hình với registration**: SMC warp RMSE chỉ ×1.27 / ×1.66 danh nghĩa, cov90 giữ 0.85 / 0.81 (4 rid), nên mục tiêu "mất hiệu chỉnh" của L2 không đạt được trong dải vật lý hợp lý (sd 0.15 = DT_matrix ±27 µs/m, tức matrix 4 500–6 400 m/s); các mức 0.05/0.075 không khác biệt đủ. Mức được chọn theo sai số mô hình (như đề nghị); phát hiện "registration bền với rock physics sai hệ số ở R10" tự nó là một kết quả của S2. **Null khai báo trước ở Rm5** (sai số 0.22–0.30 × nhiễu).
2. **Wavelet: wv_L1 = minphase 0.5, wv_L2 = minphase 1.0, cộng ô băng thông wv_Q = Q 80.** Hai cơ chế rất khác nhau: pha phụ thuộc tần số phá họ pha-hằng → posterior **tự tin quá mức** (minphase 0.5: warp ×3.2, cov90 0.11, overconfidence 3.5; minphase 1.0: ×5.9, cov90 0.03, SMC không còn chắc hơn B3c: 3/4 rid), trong khi suy giảm Q làm posterior **nới rộng chứ không gãy** (Q 80: ×1.57, cov90 0.84, σ_post ×1.8; Q 160 ≈ danh nghĩa; Q 40: ×1.6, cov90 0.86). Minphase 0.25 (0.62× nhiễu, ứng viên L1 theo dải sai số) đã cho cov90 0.25 trên rid 903 — không có mức "ôn hoà" cho pha. Vì vậy L1/L2 là hai cường độ của **pha** (1.08× và 1.93× nhiễu, khớp dải khai báo), và băng thông thành ô riêng một mức (1.41× nhiễu) để trục wavelet phủ đúng câu chữ "sai pha và băng thông"; tổ hợp minphase 0.5 + Q 80 (`cand_wv_h`, 1 rid: ×1.7, cov 0.63) không chọn vì trộn hai cơ chế. Dự đoán ghi trong S2-H1: wv_L1 còn thắng point tie ở R10 (2.1 so với 4.3 ms) nhưng **wv_L2 trượt**.
3. **Drift: dr_L1 = siêu tham số (σ_b ×3, σ_g ×1.5, ℓ ×0.5), dr_L2 = cấu trúc (bước 8 ms tại Truncation + jitter 1 ms, ℓ 8 ms).** Hai **cơ chế** chứ không phải hai cường độ; giữ tách để quy kết được. Trên 4 rid: ×2.2 (cov90 0.75) và ×3.3 (cov90 0.61), tức L2 nặng hơn L1 về SMC; biến thiên giữa rid lớn (dr_L2: 1.3–4.1 ms vì vị trí bước so với cửa sổ). Tổ hợp (`cand_dr_hs`: ×3.5 nhưng SMC thua B3c ở 1/2 rid) và bước 16 ms (`cand_dr_s2`: ×5.3, σ_post 2.1) không chọn. Bước không nhân với c (S2 chỉ chạy c = 1).
4. **Rm5:** mọi preset cho chẩn đoán SMC trong ±23 % danh nghĩa (3.7 ms, cov 0.76) — nhiễu 1.78 × tín hiệu nuốt sai số mô hình ≤ 0.61. Protocol khai báo null này cho **mọi** trục ở Rm5 (S2-H1 `expected_null`): S2 ở Rm5 kiểm tra hệ quả phía nhãn/đầu vào (Oracle và point tie đổi theo địa chấn), không kiểm tra registration.
5. **Chi phí:** N = 4 một ô 50–240 s tuỳ tải GPU (Rm5 nhanh hơn R10 vì ít stage); không thấy ô nào vượt số stage bất thường dưới misspec ở N = 4.
**Giới hạn.** Hiệu chuẩn ở N = 4 (chưa ở N = 16), lịch SMC một mốc (khác lịch ba mốc của bench ≈ 5 %), 1–4 rid mỗi ứng viên, không có huấn luyện (mức chọn theo chẩn đoán registration + sai số mô hình, không theo band RMSE).
---
## 4. Tóm tắt giao thức (bản nháp `configs/protocol_bench.yaml`, chưa khoá)
**Chung.** Realization chính 8–15 (của P2r); dev 900–905; seed mạng 0–4; registration seed 0, SMC stream 0, P = 1024, nhánh estR, mốc γ (g_old, g_acf, g_one) như P2r; σ_a đúng (7 ms) ở mọi ô (nhánh σ_a của P2r không lặp lại, kết quả trượt của nó giữ nguyên). Ngân sách = P2r (Oracle 500, B3b 125, B3c 250, B3c-R 500, B3d 250, B3d-Sa 250, M2-Sa 250) + P2 cho B4a–d (125/125/500/250) + kế thừa cho phương pháp mới (PM2 250, BK2 250, HM2 125, Ctl-GP 250); TCN: `budgets_tcn` từ stage `dev-budgets` (luật budget_selection của protocol_p2 trên dev 902–905) hoặc null = bằng CNN-GRU. **Nhánh 500 vòng lặp cho mọi phương pháp** (`equal_budget_arm`, công bố là do T2 (v) gợi ý sau khi đã xem realization test): ghi trên cùng quỹ đạo, chỉ báo cáo, không luật nào dùng.
**Ô.**
| Study | Ô | SMC mới | Train | Phương pháp |
| --- | --- | --- | --- | --- |
| S1 lấp lưới | 5 regime × 14 (c, N) mới của lưới c ∈ {0, 0.5, 1, 1.5, 2} × N ∈ {2, 4, 8, 16} × 8 rid | 560 | 560 | Oracle, B3b, B3c, B3c-R, B3d, B3d-Sa, M2-Sa |
| S2 misspec | 2 regime (R10, Rm5) × 7 preset (rp_L1/L2, wv_L1/L2, wv_Q, dr_L1/L2) × c = 1 × N ∈ {4, 16} × 8 rid (+ 32 ô control rp_C, wv_C ở N = 4, tuỳ chọn) | 224 (+32) | 224 | Oracle, B3b, B3c, B3c-R, B3d-Sa, M2-Sa, Ctl-GP |
| S3 B4 dưới ô P2r | 5 regime × c ∈ {0, 1, 2} × N ∈ {4, 16} × 8 rid; hạt P2r | 0 | 240 | B4a–d, Ctl-GP (ghép với run P2r của ô) |
| S4 backbone TCN | (R10, Rm5, R0h) × c = 1 × N ∈ {4, 16} × 8 rid; hạt P2r | 0 | 48 | Oracle, B3b, B3c, B3c-R, B3d-Sa, M2-Sa (-TCN) |
| S8 cycle-skip có kiểm soát | (R10, Rm5) × c = 1 × N ∈ {4, 16} × Δ ∈ {8, 16, 32} ms × 8 rid; posterior hai mode dựng từ warp thật | 0 | 96 | Oracle, PM2, BK2, HM2 |
**Luật** (P2/P2r, không đổi): metric band RMSE (6 Hz) macro 8 giếng test; improves = tỉ số ≤ 0.90 hoặc ΔPCC ≥ 0.05; cell_pass = ≥ 4/5 seed và > 1/2 realization; "better" = cùng luật hướng không lề; no-harm 1.02; wide = σ_post ≥ 1.5 ms; CI bootstrap 2000 trên realization; hoán vị 10 000, p một phía < 0.05. Ô c = 2 giữ cờ "unstable posterior".
**Giả thuyết** (`claim` = có pass/fail với luật cố định; `descriptive` = bảng; `disclosed` = động cơ từ T2 đã xem realization test):
| Mã | Loại | Nội dung | Dự đoán |
| --- | --- | --- | --- |
| S1-H1 | claim | H2a mở rộng sang c = 1.5 ở R10 (B3d-Sa thắng point tie tốt nhất, cell_pass, cả hai N) | pass |
| S1-H2 | claim | Lợi ích bank tăng theo N ở σ_post cố định: trong các family (regime, c) rộng ở N = 16, r(16) < r(2) ở ≥ 2/3 family VÀ Spearman ρ(log₂N, r) < 0, p hoán vị trong family < 0.05 | pass |
| S1-D | descriptive | phase diagram c × N; σ_post; fit cộng tính band_rmse²(B3d-Sa) = band_rmse²(Oracle) + β σ_post² | — |
| S2-H1 | claim | Mỗi trục ở L1, R10: B3d-Sa thắng point tie tốt nhất (cell_pass) cả hai N; một verdict/trục; Rm5, L2, wv_Q chỉ báo cáo; null khai báo trước ở Rm5 cho rp | pass rp và wv_L1; wv_L2 trượt; dr không chắc |
| S2-H2 | claim | No-harm của bank: mean ratio M2-Sa/B3d-Sa ≤ 1.02 ở mọi 14 cặp (preset × regime) | pass |
| S2-D | descriptive | chẩn đoán SMC theo preset (warp RMSE, cov90, σ_post, overconfidence, phase_R); suy giảm so với ô danh nghĩa P2r; M2-Sa ở ô rộng; Ctl-GP (disclosed); bảng 500 vòng lặp (disclosed) | — |
| S3-H1 | claim | H2a với tập đối thủ mở rộng {B3b, B3c, B3c-R, B4a–d} theo luật regime của P2r (R10 quyết định; phạm vi theo regime đạt) | pass |
| S3-D / T2-1 | descriptive / disclosed | bảng benchmark đầy đủ; Ctl-GP so với B3d-Sa và M2-Sa trên 30 ô P2r | T2: M2-Sa > Ctl-GP ở c = 2, không ở c = 1 |
| S4-H1 | claim | H2a độc lập backbone ở R10 c = 1 (TCN, cả hai N) | pass |
| S4-H2 | claim | Lợi ích bank ở ô rộng độc lập backbone (M2-Sa-TCN better B3d-Sa-TCN ở Rm5 và R0h c = 1 N = 16) | pass, không chắc |
| S8-H1 | claim | Hệ quả 3: Ĥ_PM2(f) trung bình trên (1/(2Δ), 3/(2Δ)) âm ở Δ = 32 ms, R10, cả hai N | pass (dev rid 902 N = 4 seed 0: −0.14; zero crossing 17.6 Hz so với 15.6 lý thuyết) |
| S8-H2 | claim | BK2 better PM2 ở Δ ∈ {16, 32}, N = 16, cả hai regime (4 ô) | pass (dev: BK2/PM2 0.43 và 0.32); Δ = 8 chuyển sang mô tả (dev: 1.4, bank không tách được hai mode cách nửa chu kỳ) |
**Deviation ghi trong protocol:** thiết kế sau P2r và sau post hoc 29/10; S1/S3/S4 tái dùng realization và hạt P2r; nhánh 500 và Ctl-GP là bổ sung disclosed do T2; mức S2 chọn trên dev; nhãn test không chọn gì. **Thứ tự cắt:** S4 → S8 → S2 còn trục rock physics (bài gọi là "controlled synthetic study") → S1 còn c ∈ {0.5, 1.5} × N ∈ {4, 16} trên R10, Rm5, R0 (trong S1: R0h, R10tb cắt trước; trong S2: wv_Q cắt trước hai mức pha; control luôn tuỳ chọn).
---
## 5. Chi phí và phân bổ GPU
**Đo được ngày 29/10 (H200 dùng chung; project khác giữ 125–135 GB mỗi card, util 0–93 %):**
| Việc | Đo | Nguồn |
| --- | --- | --- |
| SMC N = 4, c = 1, P = 1024, một worker, lịch ba mốc | 142 s (rid 8 R10, cuda:1) ; 156 s (rid 902, cuda:1, trong đó fit pha 96 s) | runlog `bench_repro_r8`, `bench_dev_smoke_r902` |
| SMC N = 4, lịch một mốc (scripts/33) | 62–153 s/ô (trung vị ≈ 100 s) khi GPU ít tải; 211 s khi tải nặng | `bench_cal_smc_rid90{2,3,4,5}` |
| SMC N = 16, c = 1, P = 1024, một worker, lịch ba mốc | 695 s (rid 902 R10, cuda:0, GPU có job khác ở 0–93 % util) ; P2r: 600–1150 s/job khi 3–5 worker chen nhau | runlog `bench_dev_budgets_tcn` |
| Train N = 4, 7 phương pháp × 5 seed, ngân sách P2r | 73 s | repro |
| Train N = 4, 7 phương pháp × 1 seed | 19 s | smoke |
| Train S8, 4 phương pháp × 1 seed, hai ngân sách (250/125 + 500) | 16–17 s/ô | smoke S8 |
**Ước tính giai đoạn chính** (4 worker/GPU, `MEM_GB=6`, hai GPU; "sạch" = một pipeline mỗi GPU như lần chạy đầu của P2r; "chen" = hệ số 1.37 của P2r):
| Giai đoạn | Job | Thời gian job (s) | Worker-giờ | Wall trên 8 worker (sạch → chen) |
| --- | --- | --- | --- | --- |
| S1 posterior (560: c ∈ {0.5, 1.5} × N ∈ {2, 4, 8, 16} và c ∈ {0, 1, 2} × N ∈ {2, 8}; 5 regime) | 560 | N = 2 ≈ 235, N = 4 ≈ 270, N = 8 ≈ 550, N = 16 ≈ 830 (c = 1; c = 0 rẻ hơn 30 %, c = 2 đắt hơn 15 %) | ≈ 70 | **≈ 8.8 h → 12 h** |
| S2 posterior (224: 7 preset × 2 regime × N 4/16 × 8 rid) | 224 | (270 + 830)/2 ≈ 550 (misspec có thể đổi số stage; chưa đo ở N = 16) | ≈ 34 | **≈ 4.3 h → 5.9 h** |
| S2 controls (32, N = 4) | 32 | 270 | 2.4 | 0.3 h |
| S1 train (560 ô; 7 phương pháp × 5 seed; nhánh 500 cho mọi phương pháp → 3 500 bước/seed) | 560 | ≈ 120 (N ≤ 8) – 250 (N = 16) | ≈ 25 | **≈ 3 h** |
| S2 train (224 ô; 7 phương pháp kể cả Ctl-GP; 4 000 bước/seed) | 224 | ≈ 150–280 | ≈ 13 | **≈ 1.6 h** |
| S3 train (240 ô; B4a–d + Ctl-GP; soft-DTW/DILATE chậm) | 240 | ≈ 200–350 | ≈ 18 | **≈ 2.3 h** |
| S4 train (48 ô TCN; 6 phương pháp, quỹ đạo tới 500 do nhánh 500) | 48 | ≈ 150 | 2 | 0.25 h |
| S8 train (96 ô; 4 phương pháp × 5 seed) | 96 | ≈ 80 | 2 | 0.3 h |
| summarize | — | — | — | < 10 phút |
| **Tổng** | | | **≈ 167 worker-giờ** | **≈ 21 h sạch → 26 h chen** trên 8 worker; ≈ 42 h nếu chỉ có 4 worker |
Đĩa: hạt g_acf 3.2 MB/giếng: S1 ≈ 560 × 7.5 giếng TB × 3.2 MB ≈ 13 GB, S2 ≈ 224 × 10 × 3.2 ≈ 7 GB; npz dự đoán nhỏ (< 1 GB). `/home` còn 274 GB.
**Phân bổ đề xuất** (`compute.split` của protocol): cuda:0 — S1 R10, Rm5, R0h rồi S2 R10; cuda:1 — S1 R0, R10tb rồi S2 Rm5, rồi S3, S4, S8 (chỉ train). Với lịch 4–7/11 (4 ngày) đủ chỗ ngay cả ở kịch bản chen, **với điều kiện** mỗi GPU có ≥ 25 GB trống (4 worker × 6 GB); hiện chỉ còn 8–12 GB mỗi card nên nếu project kia không trả bộ nhớ, chạy 1–2 worker/GPU (N = 16 cần ≈ 4–6 GB) và S1 kéo dài 2–3 ngày: khi đó áp thứ tự cắt (R0h, R10tb của S1 trước).
---
## 6. Tác dụng phụ lên hash code của lock F3 và Volve
`ml_porosity/f3/protocol.source_hash` băm **mọi** `scripts/*.py`, còn `ml_porosity/volve/protocol.code_files` băm **mọi** `ml_porosity/**/*.py`. Các tệp mới của P6 (`scripts/32_t2_mechanism.py`, `33_bench_generator_qc.py`, `34_run_bench.py`, gói `ml_porosity/benchmark/`, và các sửa bổ sung của T2 trong `bank_train.py`/`rml.py`, của p6-gen trong `synth_d2.py`) làm `code_sha256` của cây làm việc khác với `configs/protocol_f3.lock.json` và `configs/protocol_volve.lock.json`. Hệ quả: `freeze(check=True)` của P3/P4 sẽ raise "lock mismatch" nếu chạy lại một stage đã đóng băng. Điều này **chấp nhận được** vì P3 và P4 đã hoàn tất và không bao giờ chạy lại (AGENTS.md); hai lock đó **không được sửa**. Kết quả P3/P4 vẫn tái lập được từ cây commit mang tag `protocol-volve` (hash code tính lại từ cây đó khớp lock, plan §12 ý 25). Lock của protocol_bench vì vậy chỉ băm code sau khi code đã chốt, và phải khoá **sau** mọi sửa code của P6 (kể cả T2) — nếu T2 còn sửa `bank_train.py`/`rml.py` sau khi khoá bench thì bench cũng rơi vào tình huống tương tự; thứ tự cần giữ: T2 xong việc sửa code → khoá bench → chạy chính.
---
## 7. Rủi ro còn mở
1. **GPU.** Project khác giữ 125–135 GB mỗi H200 từ 13:00 UTC 29/10; chỉ còn 8–12 GB trống mỗi card. Lịch chính (≈ 21–26 h trên 8 worker) chỉ kịp 4–7/11 nếu mỗi card có ≥ 25 GB; nếu không, 1–2 worker/GPU và S1 kéo dài 2–3 ngày → áp thứ tự cắt. Ô N = 16 cần ≈ 4–6 GB/worker (cap `--gpu-mem-gb`), N ≤ 8 ≈ 2–3 GB.
2. **Khoá sau mọi sửa code.** `code_sha256` của lock bench băm `ml_porosity/**/*.py`; mọi sửa sau khoá (kể cả của agent khác) làm `freeze(check=True)` từ chối chạy tiếp → phải khoá khi code đã chốt (T2 xong), và không ai sửa `ml_porosity/` trong lúc bench chạy.
3. **Chi phí SMC dưới misspec chưa đo ở N = 16** (số stage có thể tăng khi likelihood xung đột với anchor); ước tính S2 dùng số danh nghĩa.
4. **S1-H2 là dự đoán mới** (heuristic mẫu hữu hạn): có thể trượt; ghi là claim với dự đoán pass. **S8-H2** đã chỉnh trên dev (bỏ vế Δ = 8). **S2-H1 trục drift** không có dự đoán rõ.
5. **Ô P2r-grid trong S1 không chạy lại** (đọc từ `outputs/p2r`): hợp lệ vì tái lập từng bit (mục 2), nhưng nếu môi trường đổi (torch/cuDNN) trước 4/11 thì S1 trộn hai môi trường; khi đó chạy lại ô repro để kiểm.
6. **Dev-budgets TCN**: đã xong trước khi khoá; mọi phương pháp TCN chọn 125 vòng lặp (biên dưới của danh sách ứng viên) — S4 so sánh TCN ở 125 với CNN-GRU ở ngân sách P2r (125–500); nhánh 500 cho cả hai cho phép so sánh cùng ngân sách (disclosed).
7. **Số dev 904/905**: chạy xác nhận mức đã chọn; nếu trái ngược rõ (ví dụ wv_L1 không còn thắng point tie ở R10 trên 3/4 rid), mức được cân nhắc lại trước khi khoá và ghi ở mục 3.
---
## 8. Kết quả và verdict (02/11/2026)
Nguồn: `outputs/bench/summary/verdict_final.json` và `verdict_final.md` (do `scripts/36_bench_verdicts.py` ghi), `verdict.json` và `summary.md` (code đã khoá, `scripts/34_run_bench.py summarize`). Chi tiết đầy đủ và hệ quả cho bài: `docs/plan.md` §12 ý 28.
- **Kiểm trước:** lock khớp ở mọi khoá; 8.799 file `outputs/bench/` khớp `docs/research/unpushed_outputs.sha256`; đủ số ô ở mọi study.
- **Deviation thực thi (D-13):** code tổng hợp đã khoá khác lời phát biểu ở ba chỗ: S1-H1 trả null vì cần đúng 2 dòng, mà S1 có 4 giá trị N; S2-H1 không có khoá `pass` mức trên; S3-H1 đưa Ctl-GP vào tập đối thủ. Không sửa code đã khoá. Script 36 (ngoài tập hash, gọi `freeze(check=True)` trước) đọc lại đúng phát biểu. Hai cách đọc đều được báo cáo; chỉ S3-H1 đổi kết luận.
- **Verdict theo phát biểu, 9/11 đạt.** Tỉ số là band RMSE của B3d-Sa chia cho tie điểm tốt nhất, ở N = 4 / 16:
| Verdict | Kết luận | Số liệu |
|---|---|---|
| S1-H1 | đạt (code: null) | R10, c = 1,5: 0,853 / 0,796 (B3c-R) |
| S1-H2 | đạt | 13/13 họ rộng; ρ = −0,47, p < 10⁻⁴ |
| S2-H1 rock physics | **không đạt** (dự đoán đạt) | rp_L1 0,940 / 0,934 |
| S2-H1 wavelet | **không đạt** (dự đoán đạt) | wv_L1 1,023 / 1,042; posterior quá tự tin (cov90 0,17 / 0,10) |
| S2-H1 drift | đạt (dự đoán không chắc) | dr_L1 0,862 / 0,798 |
| S2-H2 | đạt | 14/14 cặp ≤ 1,02 |
| S3-H1 | đạt ở R10, R0, Rm5 (code: không đạt) | R10 0,857 / 0,782; R0 0,888 / 0,888; Rm5 0,915 / 0,923 |
| S4-H1 | đạt | TCN 0,840 / 0,823 |
| S4-H2 | đạt | M2-Sa/B3d-Sa: R0h 0,977, Rm5 0,983 |
| S8-H1 | đạt | Ĥ trong băng đảo dấu −0,70 / −0,49 |
| S8-H2 | đạt | BK2/PM2: R10 0,34 / 0,28; Rm5 0,71 / 0,64 |
- **Đối chiếu với rủi ro mục 7:** S1-H2 (dự đoán mới) đạt. Trục drift của S2-H1 đạt. Hai trục được dự đoán đạt lại trượt. Trên dev (mục 3.1), wv_L1 đã quá tự tin (cov90 0,11) nhưng warp SMC vẫn tốt hơn B3c ở 4/4 rid. Trên realization 8–15, sự quá tự tin đó đủ xoá lợi ích H2a về porosity. Với rp_L1, warp gần danh nghĩa (mục 3.4 ý 1), nhưng lợi ích porosity vẫn co lại dưới ngưỡng 0,90.
- **Ghi chú về chữ "calibrated" của S8 (02/11/2026, khi viết bài).** Lời phát biểu S8-H2 trong protocol đã khoá gọi BK2 là "a calibrated bank: the truth is a member". Đây chỉ là nghĩa yếu: warp thật là một thành viên của bank. BK2 không phải bank hiệu chỉnh theo Mệnh đề 4 của bài (bank là mẫu đúng của posterior). Theo Hệ quả 3, cấu trúc (a), khi λ → 0 transfer của BK2 là cos²(πfΔ), không phải 1. Đo được ở N = 16, trong băng đảo dấu 1/(2Δ) < f < 3/(2Δ), BK2 có transfer 0,92–1,00, trong khi trung bình cos² chỉ là 0,05–0,59 (`scripts/38_bench_figures.py --flipband`; post hoc, không phải verdict). Kết quả này khớp với việc responsibility tái đăng ký nhãn (Remark 1 của bài). Verdict S8-H2 không đổi. Bài (Sec. 6.5) ghi rõ nghĩa yếu này và không gọi BK2 là bank hiệu chỉnh.
## 9. Gói benchmark S7 (02/11/2026)
`scripts/37_bench_package.py` nằm ngoài tập hash của lock và chỉ đọc output đã khoá. `generate` và `tables` chạy `freeze(check=True)` trước. Hướng dẫn cho người dùng benchmark (tiếng Anh): `benchmark/README.md`. Chi tiết số: `docs/plan.md` §12 ý 29.
- **Task.** Mỗi file `tasks/<split>/<setting>/r<rid>_c<c>.npz` chứa đúng quan sát của runner (`Inputs.observe`): 16 giếng pool gồm patch 3 × 3, φ và AI trên τ, anchor; 8 giếng test chỉ có patch. Task dùng N giếng thì lấy N giếng đầu. Setting: 5 regime danh nghĩa × c ∈ {0; 0,5; 1; 1,5; 2}; 14 setting S2 (`R10__rp_L1`, …) và 6 setting S8 (`R10__s8d16`, …) ở c = 1. Split test là rid 8–15, dev là 900–905; tổng 630 task.
- **Truth ẩn** nằm trong `truth/`: `y_test` (p.u.), warp thật của giếng train, và dấu s của S8. Truth test được công bố vì bộ sinh vốn công khai; README yêu cầu mọi lựa chọn thiết kế chỉ dựa trên dev.
- **Hash.** `benchmark/MANIFEST.json` ghi sha256 nội dung mảng của 1.260 file và sha256 của 5 input; sha256 input khớp sha256 đăng ký trong protocol. Lần `generate` thứ hai tái lập đủ 1.260 hash.
- **Chấm điểm.** `score` dùng metric của scripts/11 và luật ô H2a cùng luật `better` của `summary.py`, chỉ so với các realization và seed đã nộp. `selftest` chép dự đoán đã lưu của phương pháp tham chiếu thành một bài nộp và đạt: metric, truth và luật đều khớp. Ví dụ S1-H1 cho 0,8529 / 0,7964, khớp mục 8.
- **Bảng tham chiếu.** `benchmark/reference/cells.csv` (1.130 dòng ô, kèm σ_post) và `main_table.md`, tính từ 45.200 run.
- **Chưa làm:** deposit Zenodo. Cần tài khoản và danh sách tác giả của người dùng, và cần kiểm giấy phép trước. Metadata nháp nằm ở `benchmark/zenodo_metadata.json`.

View File

@@ -0,0 +1,224 @@
# Referee report GP-A — round 1
Manuscript: *Uncertain well ties in learned seismic property prediction: theory, a benchmark with known timing, and requirements for blind-well tests* (Original Paper, *Geophysical Prospecting*).
Referee expertise: well ties, seismic inversion, quantitative interpretation.
Line numbers ("l. 123") are those of `paper_gp/main.pdf`. "S" numbers refer to the Supporting Information (`paper_gp/supplement.pdf`). Red TODO markers were ignored, as instructed.
## Summary of the submission
The paper treats the error of a well tie as an error in the time index of the training labels of a learned seismic property predictor. It gives a small theory: a timing error that is independent of the data filters the optimal predictor by the characteristic function of the error (blur); a common time shift is not identified without anchors; a posterior-mean tie in a linear-Gaussian model would sharpen instead of blur; a calibrated set ("bank") of posterior labels can gain little in population; and a timing error in the blind-well reference biases a comparison of methods. It then builds a 1-D convolutional synthetic benchmark on the geometry and statistics of the F3 block, in which the true time–depth warp of every well is known and the time–depth markers ("anchors") carry independent 7 ms Gaussian noise. On this benchmark, labels placed at the mean of a sequential Monte Carlo tie posterior give a seismic-band error 8–22% below that of the best of three deterministic ties, and training on posterior samples adds 2–11% when the posterior is wide. Both gains disappear or reverse when the stated anchor uncertainty is wrong by a factor of two or the wavelet phase is frequency dependent. A first experiment with a cruder posterior failed and is reported. Field tests on F3 (four wells) and Volve (six wells) show no improvement, and the authors argue that neither test could have detected one. A rescoring exercise leads to stated requirements for a blind-well comparison: a reference independent of the seismic data and accurate to about 1 ms, and 5–18 or more blind wells. An audit of the public F3 well data, a task package with a scorer and a reproduction package accompany the paper.
## Recommendation
**Major revision.** Confidence: high for the well-tie and field aspects, medium for the statistical and machine-learning aspects.
The question is new and worth a paper in this journal, the reporting is unusually candid, and I found no error in the proofs of Appendix A. However, the headline gain is measured against deterministic ties that are handicapped by the benchmark's anchor-noise model, that model is not supported by the authors' own field evidence, several statements about what the theory "predicts" or what the field "requires" go further than the tests, and the article is a digest of an 80-page Supporting Information on which it depends for essential definitions and evidence.
## Scores (1–5)
| Criterion | Score |
|---|---|
| Scope fit | 4 |
| Originality | 3 |
| Technical soundness | 3 |
| Experimental evidence | 3 |
| Claims supported by evidence | 3 |
| Clarity | 2 |
| Reproducibility | 4 |
## Major issues
### 1. The headline gain is measured against ties that interpolate noisy anchors exactly
**Where.** Abstract l. 35–38; l. 241–248; Table 2; Conclusions l. 358–361; Figure 3; Section S6.3; Appendix SC ("Intervals for few realizations", "Point ties with the same information").
**What.** The "best deterministic tie" is the best of three ties (calibrated sonic, correlation tie, phase-estimated correlation) that all start from a sonic "calibrated through the anchors", while each anchor carries independent 7 ms noise (l. 126). Three observations show that the comparison mostly measures the cost of taking noisy anchors at face value.
- At zero drift, where the integrated sonic is the true time–depth relation, these ties are already 15–82% above the Oracle. Figure 3 at 10 dB, c = 0 gives 1.56/1.82 (calibrated sonic), 1.20/1.30 (correlation tie) and 1.19/1.29 (phase-estimated correlation) for N = 4/16. Section S6.3 states the reason: the calibrated sonic "passes exactly through anchors with 7 ms pick noise".
- Their error does not grow with drift. In Figure 3 at 10 dB the correlation tie is 1.20, 1.17, 1.24 (N = 4) and 1.30, 1.38, 1.33 (N = 16) for c = 0, 1, 2; the calibrated sonic is 1.56, 1.53, 1.54 and 1.82, 1.83, 1.81. So the deterministic ties remove the drift; what they cannot remove is the anchor noise. The text draws a related conclusion ("Most of the gain was present without drift", l. 242–243) but attributes it to "a better tie", not to the anchor-noise model.
- A smooth fit to the anchors alone (the "anchor mean") beats all three deterministic ties at −5 dB and at 0 dB with N = 4, and equals the best of them at 0 dB with N = 16. From Table 2, anchor mean / best deterministic tie = 0.888/0.93 = 0.95 and 0.888/0.89 = 1.00 at 0 dB, and 0.915/0.98 = 0.93 and 0.923/0.97 = 0.95 at −5 dB. Against the best point tie of any kind, the gain of the SMC mean is therefore 14% and 22% at 10 dB, 7% and 11% at 0 dB, and 2% and 3% at −5 dB. Section S3.2 says that −5 dB is the setting whose posterior width is closest to F3. In the replication the claim with the anchor mean as competitor held at 10 dB only (l. 268–269).
A practitioner would call the anchor mean a smoothed check-shot calibration, which is a deterministic tie. Excluding it from the set called "best deterministic tie" inflates the headline. The abstract does give the 2–33% range against the anchor mean, but as a separate number whose upper end comes from the 10 dB cells, where the anchor mean is not the best competitor.
In addition, the deterministic ties are specified in one line each (Table 1; Table S4 adds nothing). For the correlation tie the window length, maximum shift, smoothing, wavelet and treatment of the bulk shift are not given. No tie from the literature is run: not a smoothed drift-curve calibration with wavelet extraction by matching (White and Simm 2003), not the dynamic-time-warping tie of Herrera and van der Baan (2014), and not a Bayesian tie that estimates the whole wavelet (Gunning and Glinsky 2006, open source), although all are cited and l. 291–293 says of the last "we did not test them".
**Why it matters.** The first number a reader takes from the abstract and the conclusions is 8–22%. It is the gain over a weak baseline in a benchmark built so that this baseline is weak.
**What would resolve it.**
- Rewording: state the gain against the best point tie of any kind (2–22% by the numbers above) in the abstract, Table 2 and the conclusions, and say that the deterministic ties interpolate the anchors.
- New analysis on existing results: one table with every point tie (three deterministic ties, anchor mean, anchor-only least squares, SMC mode, SMC mean) relative to the Oracle at c = 0 and c = 1, with intervals.
- New experiment: at least one practitioner-grade deterministic tie that smooths the anchors and extracts a wavelet, described fully. A full-wavelet Bayesian tie would also address the wavelet-phase failure of Experiment 3.
### 2. The anchor error model is not supported by the authors' own evidence, and it drives the main results
**Where.** l. 117–120, l. 125–126, l. 249–256, l. 361–362; Sections S3.1, S3.2, S4.1; Table S10; Appendix SB (F3 leave-one-anchor-out test; Teapot Dome); Appendix SC item (vi).
**What.**
- The benchmark gives each of 9–11 anchors per well an independent N(0, 7²) ms error. Section S3.1 says the anchors are "8 to about 148 ms apart". Two anchors 8 ms apart with independent 7 ms errors have a relative error of 9.9 ms, which implies non-physical interval velocities and can reverse their order in time. Check-shot or marker errors of this kind are not independent in practice.
- The value 7 ms comes from "the median absolute difference between markers and horizon picks ... 6.9 ms over 18 pairs" (l. 117–119); Section S3.1 calls the same number a "median absolute deviation (MAD)". These are different statistics. For a Gaussian error the median absolute value is 0.6745σ, so 6.9 ms would correspond to σ of about 10 ms, not 7 ms. This matters because the paper itself finds that a factor of two in σ_a removes the gain.
- More importantly, the quantity measured is a marker-to-horizon mismatch, not the scatter of anchors about the true time–depth curve. The authors' other evidence points to a much smaller scatter and a correlated error. A type-II fit on F3 gives σ_a = 0.4 ms (Section S4.1). In the leave-one-anchor-out test of Appendix SB the mean z² is 0.21 against an expected 1, and the authors conclude that "the anchor prior is therefore too wide rather than too narrow". At Teapot Dome the horizon–top residual was 6.75 ms: "Most of it was a bulk shift per well (6.6 ms)", and "The differential part was 2.8 ms" (Appendix SB).
- So the statement "c = 1 reproduces F3" (l. 125) holds for the drift prior only. The anchor noise, which by issue 1 sets the error of the deterministic competitors, is an assumption.
- The true σ_a is never varied; only the stated one is. With accurate anchors (1–2 ms, as for check shots) the calibrated sonic would approach the Oracle and the headline gain would shrink.
- "The gain requires a correct anchor uncertainty" (l. 249) and "The advantage required a correct anchor uncertainty" (l. 361–362) are stronger than the evidence. The test used a factor of two only. The failure at 3.5 ms arises because the drift hyperparameters are refitted with the wrong σ_a, and "3 of 8 fits with N = 4 and all 8 with N = 16 ended at a bound of the search" (Appendix SC, item vi). With the hyperparameters held fixed, the warp error was 1.07 ms at N = 16 (Table S10), still far below the 3.9 ms of the correlation tie (Appendix SC), but no network was trained in that arm. At 14 ms the ratio at N = 16 was 0.928 [0.867, 1.004], which is a smaller gain, not a loss.
**Why it matters.** The size of the main effect, the "main risk for field use" (l. 256) and the third practical recommendation all follow from an error model that the field data in the paper do not support.
**What would resolve it.**
- Rewording: present i.i.d. 7 ms anchor noise as an assumption, correct the statistic, and restate the anchor-uncertainty result as "a factor-of-two error removed most of the gain in a pipeline that refits the drift prior with the stated value".
- New experiments: (a) vary the true σ_a (for example 1, 2, 4, 7 ms); (b) anchor errors with a per-well bulk component plus a small differential part, as found at Teapot Dome; (c) train the networks for the fixed-hyperparameter arm; (d) estimate σ_a jointly with the drift prior and report what happens.
### 3. The theory is partly standard, and several of its tests are weaker than the text says
**Where.** Section 4 (l. 184–221); l. 229–230; l. 335–337; Abstract l. 27–33; Appendix A; Sections S5.1–S5.3; Table S5; Table S7.
I checked the statements and algebra of Propositions A1–A5 and Corollaries A1–A2 and found them correct under their assumptions. My concerns are about novelty and about the link to the experiments.
- **Proposition A1 is a classical result.** Averaging a signal over random time shifts multiplies its spectrum by the characteristic function of the shifts. Exploration geophysicists know this as the high-cut filter that residual static errors apply to a stack, and the Supporting Information cites the sampling-jitter literature for it (Section S2). The main text presents it without this context ("We ... show that errors independent of the data blur the optimal predictor", l. 27–28). The contribution is the application to label timing, and the text should say so.
- **The blur test is made in the regime most favourable to a population result.** Section S5.1 states that the injected shift "is fixed within each 64-sample window and independent of everything else". Windows start every two samples, so each well contributes many independent draws. A real tie error is one smooth function per well, so a network trained on 4–16 wells sees 4–16 draws. Section S5.1 concedes that this "changes finite-sample learning". The main text (l. 191–195) does not mention it.
- **"Within 1%" omits one of four cases.** The abstract says the experiment "matched the predicted blur to within 1% below 23 Hz" (l. 29–30). Table S7 gives r = 1.093 with interval [1.046, 1.143] at σ = 32 ms. The statement holds for 4–16 ms.
- **"Less than 7% of the seismic-band variance remains" (l. 190–191) does not describe the benchmark.** Section S5.1 explains that this number weights frequencies by the F3 seismic amplitude spectrum. In the benchmark itself, Table S7 gives a band standard-deviation ratio of 0.677 at σ = 8 ms against 0.945 at σ = 0, so about half of the band variance remains ((0.677/0.945)² = 0.51).
- **The identifiability result was not tested as stated.** Proposition A2(a) concerns a shift common to all wells in a joint objective "with a flat prior on b and no seismic tie term". The test cited "as the identifiability result predicts" (l. 229–230) removed the anchors from a bank that is reweighted by the seismic tie likelihood, with no network involved. Table S5 itself says it "tests the prior, not a network". A warp error of 31 ms after reweighting 64 draws from a prior with σ_b = 50 ms shows that 64 prior draws cannot locate an alignment to a few milliseconds; it does not show that the timing is unidentified. With a known zero-phase wavelet and 10 dB data, a correlation over a 4–83 Hz band locates a bulk shift well, apart from cycle skips.
- **The Berkson prediction failed, and the cause is asserted.** l. 335–337 says the sharpening "was not observed, because the error of the posterior-mean tie depends on the data". The Supporting Information says only that "a test with power suggests why" (Section S6.4). Section S5.3 lists other departures from the idealization (a tempered target with a plug-in phase, the non-linear warp). These, and finite-sample effects, were not excluded.
- **The bank bound does not bound the experiments.** "No method can improve on the point label by more than the factor ρ*" (l. 206) holds in population, for a calibrated bank, as λ → 0, when the point-label method has reached its own population optimum. The measured ratio is below this "bound" in seven of eight wide cells (l. 260–261), and the experiments use λ ≈ 0.37 (l. 349). The abstract sentence "In population, a calibrated bank ... can improve on the posterior-mean tie only at fourth order" (l. 31–33) may lead readers to expect that banks cannot matter, which the paper's own data contradict.
**Why it matters.** The first contribution is "a theory of tie error". Of its five results, one is classical, one failed where tested, one is not applicable to the experiments, and one was not tested as stated. The result on the misregistered reference (Proposition A5, Corollary A2) is the most useful and is new to me.
**What would resolve it.** Mostly rewording: attribute Proposition A1, add "in population" and the conditions at l. 206, correct l. 29–30, l. 190–191, l. 229–230 and l. 335–337. A small new experiment would help: a blur arm with one shift (or one smooth warp) per well at N = 4 and 16. Consider moving Proposition A3(b) and A4 to the Supporting Information and presenting them as predictions that were not confirmed.
### 4. The field "requirements" rest on one simulator and face a conceptual problem
**Where.** Abstract l. 42–46; Section 6 (l. 307–328); l. 342–343; Conclusions l. 364–366; Section S6.6; Section S7 (practical advice); Table S15; Table S20.
**What.**
- **What is the true timing in the field?** The requirement is "a reference independent of the seismic data and accurate to about 1 ms" (l. 364–365). The label timing that matters for training is the position of the log in the processed seismic image, which includes the wavelet phase, residual datum and static errors, and imaging-velocity errors. A check shot or a vertical seismic profile measures travel time in the earth, not position in the image. Section S7 says such data "can in principle meet this requirement once their datum and statics are reconciled with the seismic", but that reconciliation is itself a tie to the seismic data. The Volve cube is "a 2011 depth migration converted to time" whose trace headers, read in the standard way, place every sample 8 ms late (Appendix SB). An independent reference cannot see errors of this kind.
- **The paper's own result quantifies the difficulty.** Under the mild wavelet-phase preset the SMC "re-estimated a constant phase of 43–46°" (l. 287) and the warp error became 2.58 and 2.26 ms (Table S15). This is the textbook trade-off between phase and time: 45° at the mean frequency of 49 Hz (Section S3.1) is 45/360 × 20.4 ms = 2.6 ms. By the same relation, 1 ms corresponds to a phase known to about 18° at 50 Hz. The classical literature on tie accuracy (White 1980; Walden and White 1984; White and Simm 2003), which is cited only in Section S2, gives standard errors for the timing and phase of a tie from the bandwidth, the data length and the coherence. The authors should use it to say whether 1 ms is attainable at all. If it is not, the more useful conclusion is that tie methods cannot be ranked by blind-well scores for effects of this size.
- **The numbers are properties of this benchmark.** They come from rescoring networks whose blind-well band correlation is about 0.9 (Table S8), on labels with 72% of their band power below 25 Hz against 54% for F3 (l. 346–348), against a reference error that is a bulk shift plus a linear stretch and is independent of the predictions (Section S6.6), with intra-class correlations from eight realizations that the authors call "imprecise", for the comparison of the SMC bank with the best deterministic tie (issue 1). The abstract hedges ("exploratory", "suggests"). The conclusions do not: "It needs a reference ... accurate to about 1 ms" (l. 364–365).
- **The field cases cannot show that tie error matters on real data.** On F3 no network has skill in the band: Table S20 gives a band error of 1.224 p.u. for a prediction with no band content, 1.21–1.29 p.u. for every network except the sonic tie, and 1.348 p.u. for the sonic tie, whose timing is wrong by 14–66 ms (Table S2). A timing error of the order of a seismic period or more thus changes the band score by about 5–11%. Each F3 model is trained on two wells that are 3–17 km apart. The paper says the tests are uninformative; I agree, and it follows that the premise of the title is demonstrated on synthetic data only.
**Why it matters.** The fourth contribution is "requirements for a field test". As written it could be quoted as a general rule ("1 ms, 5–18 wells").
**What would resolve it.** Rewording and a new analysis on existing results: state the requirement as a result under the benchmark's assumptions; add the phase–time argument and the classical standard errors of a tie; discuss whether the requirement is attainable; reduce the field cases in the article to what they show and move the F3 audit (Table S2 and its evidence), which is the most valuable field content, into the article.
### 5. Realism of the benchmark and practical size of the effect
**Where.** Section 2 (l. 121–138); Section S3.2; Tables S8, S26; Figure 3; l. 294–297; `benchmark/README.md`.
**What.**
- The target is a linear function of sonic slowness and the impedance follows from it, so the task is band-limited acoustic-impedance inversion of a 1-D convolutional model with a deterministic rock-physics relation. The article says that PHIE is linear in sonic at three F3 wells (l. 116–117), but it does not say that the label used everywhere is this sonic transform (Section S3.1). It should.
- The noise is "independent between the nine traces of the patch" while "the tie likelihood uses one trace, whereas the network sees nine" (Section S3.2). The network's signal-to-noise ratio can therefore be up to 9.5 dB above that of the tie. A practitioner would tie to a composite trace. The lateral correlation of the synthetic porosity field is not given, so the reader cannot judge how independent the test wells are from the training wells.
- Blind-well band correlations of 0.90–0.95 from 4–16 wells (Table S8) are far above anything in the field cases (0.15–0.24 on F3).
- The article reports only ratios. In absolute terms the Oracle has a band error of 0.45–0.61 p.u. and the correlation tie 0.57–0.72 p.u. (Table S8), so the headline gain is about 0.1 porosity unit, against a label band amplitude of 1.46 p.u. (Table S26). When the rock physics varies by unit the ratio already rises to 0.93–0.94 (l. 294–296).
- The "seismic band" is everything above 6 Hz up to the 125 Hz Nyquist frequency (l. 172–173), which extends beyond the 4–83 Hz bandwidth of the data (Section S3.1). Label power that no method can predict enters the numerator and the denominator of every ratio.
**Why it matters.** Readers of this journal will ask what the effect means for reservoir characterization. A 0.1 p.u. gain in a band-limited component, in a regime of very high skill, needs to be stated as such.
**What would resolve it.** Rewording and a new analysis on existing results: report absolute band errors and correlations in the article, give ratios by frequency band (for example 6–25, 25–60, above 60 Hz), state the lateral statistics, and discuss the 3 × 3 noise design. A new experiment with laterally coherent noise is listed by the authors as not done (Appendix SC); it would be worth doing.
### 6. Hash-locked and exploratory results are mixed, and the bank effect is at the level of the design's nuisance effects
**Where.** Abstract l. 38–41; l. 241–248; l. 257–264; Table 2; Section S6 (opening); Table S11; Table S12; Appendix SC.
**What.**
- Table 2 and the paragraph at l. 241–248 interleave the hash-locked result (first row) with a secondary comparison (anchor mean), an exploratory analysis (mode) and a replication whose "reading rules were set after the results of Experiment 2 were known" (Section S6.3), without marking them.
- The interpretive sentences of the abstract rest on the exploratory analysis: "The mode of the same posterior gave most of it, and averaging added at most 3%" (l. 39–40). The "mode" is "the best of the 1024 saved particles by the tempered log target", and "its log likelihood exceeded that of 56–74% of the particles" (Appendix SC). It is a good particle, not a mode.
- "Training on posterior samples added 2–11%" (l. 40–41) suggests a range. Table S11 gives 3.3%, 3.0%, 11.0% and 1.8% in the four wide cells at c = 1; the 11% is the two-anchor setting, where the posterior is overconfident (coverage 0.53). At equal budgets Appendix SC gives 0.980, 0.981, 0.887 and 0.986, that is 2.0%, 1.9%, 11.3% and 1.4%. In the replication two of three wide cells passed (0.983 and 0.876) and 0.993 did not. The other design effects are as large: bank size changes the error by up to 2%, a longer budget improves the SMC mean by 1.5–2.7%, and a t-interval removes the conclusion at −5 dB (Appendix SC). Outside the two-anchor setting the bank effect is therefore not clearly separated from these.
- Budgets differ between competitors: Table S12 lists 500 iterations for the Oracle and the phase-estimated correlation, 250 for the SMC mean, the anchor mean and the correlation tie, and 125 for the calibrated sonic. They were chosen by total error on two development realizations (Appendix SC), not by the band error that is scored. Equal-budget results exist only for the cells of Experiment 3.
- The −5 dB cells pass the margin rule on correlation only, since their ratios are 0.915 and 0.923 (Section S6.3). The article says the SMC mean "beat the best deterministic tie ... by 8–9% at −5 dB" (l. 241–242) under a rule that it defines with a 0.90 threshold (l. 174–176).
- All intervals are percentile bootstrap intervals over eight realizations (l. 174). The authors checked BCa and t-intervals (Appendix SC), which is good; the article should show the more conservative interval.
**Why it matters.** The reader of the article cannot tell which statements were fixed in advance. The pass/fail language of the rules also draws attention away from effect sizes, which the authors themselves call "the primary evidence" (l. 179).
**What would resolve it.** Rewording and a new analysis on existing results: mark every exploratory or post hoc number in the abstract, Table 2 and Section 5; call the mode "the best particle"; give the four bank gains instead of a range; add an equal-budget version of Table 2; report t-intervals; reduce the verdict language in the article.
### 7. The article is not self-contained
**Where.** Whole article; l. 104–107; author guide, "Supporting Information" and "Abstract".
**What.** The guide says that Supporting Information "is not essential to the article". Here it is 80 pages, described as "the full-length manuscript from which the article was condensed" (Section S1), and the article cannot be assessed without it. Examples of essential material found only there: how the deterministic ties are built (not even there in full); the definition of the signal-to-noise ratio; the "zero-drift guard" (used at l. 227 and l. 238, never defined in the article); what "tempering" does (l. 146); the intervals of Table 2 (Table S9); the anchor-uncertainty table (S10); the misspecification table (S15); the detectability table (S17); the designs and tables of both field cases; the F3 audit (Table S2). The article body is about 300 double-spaced lines. The journal has no page charges.
The writing is also hard to follow for a reader outside the project. "Calibrated" is used in four senses: calibrated sonic, calibrated bank, calibrated uncertainty, and a test "calibrated for wells that share training data". "Anchor" is used from l. 82 but never defined as the time–depth markers. "Bank", "cell", "wide", "guard", "hash-locked", "margin rule" and "Oracle" are project terms. The abstract uses several of them ("calibrated bank of posterior labels", "anchor-only posterior mean", "Gaussian bank with the same two moments"), whereas the guide asks for an abstract "informative to a more general public".
**Why it matters.** Supporting Information is not typeset or edited, and most readers will not open it. As submitted, the article asks them to accept the main results on trust.
**What would resolve it.** Restructuring, no new work. I suggest a longer article that contains the benchmark, the competitor definitions, Experiment 2 with its full tables and the misspecification results, with a short theory section. The field cases, the detectability analysis and the F3 audit could form a second paper; together with Proposition A5 they would make a coherent contribution on blind-well validation. A table of terms would help in either case.
### 8. Benchmark release and reproduction documentation
**Where.** Data Availability Statement (l. 50–59); l. 134–138; `benchmark/README.md`; `repro/README.md`.
**What.**
- The scorer inherits issue 1. Its rule is "against the best point tie of the cell (lowest mean band RMSE among B3b, B3c, B3c-R)" (`benchmark/README.md`, Section 5), which excludes the anchor mean (B3d) and the anchor-only least-squares tie. A new method will be declared an improvement against the weak baseline.
- The truth is public and the analyst file gives every method the generating wavelet, warp prior and anchor noise. The authors say so (l. 136–138), and the comparison is therefore controlled, not blind. A fresh-realization option in the scorer (new seeds generated at scoring time) would reduce tuning on the public test truth.
- In the rock-physics presets the analyst receives an impedance log computed "with the nominal rock physics" (`benchmark/README.md`, Section 4). In a real well the tie uses the measured sonic and density logs, so this preset is a log-error scenario for the tie, not only a rock-physics error for the predictor. The article should say so.
- The Data Availability Statement says "the derived data behind every table and figure are archived ... with ... a clean-room check that recomputes them". The pipeline and verification tables of `repro/README.md` do not list the replication on realizations 16–23, the point-tie (mode) analysis, the −5 dB anchor-uncertainty test, the tempering-limit and bank-size arms, or the calibrated sign test, and they state that two review-analysis scripts are "not in the archives or a verify stage". Two rows of Table 2 ("replication", "Mode of SMC model") and the calibrated well counts of the abstract therefore have no documented route to reproduction in this README.
- The paper relies on analyses being "declared and hashed before computing". The only records named are internal documents (`docs/research/...` in `repro/README.md`). These declarations, with their hashes and time stamps, should be part of the archive, in English.
- `repro/README.md` states that the main repository documentation is "in Vietnamese". Both READMEs refer to section numbers and labels of another version of the manuscript ("Sec. 3.3", "Sec. 6.3", "Table `tab:codes`") and use internal codes (H2a, P2r, S1–S8) that the article has replaced.
**Why it matters.** The benchmark is the third contribution, and its value depends on a fair default comparison and on documentation that matches the paper.
**What would resolve it.** Rewording and packaging: add the anchor mean and the anchor-only tie to the scorer's competitor set; update both READMEs to the submitted article; add the later analyses and the declarations to the archive and the verification stages; provide English documentation.
## Minor issues
1. l. 38: "anchor-only posterior mean". Table S4 defines the anchor mean as the "weighted mean warp of the Experiment 1 anchor posterior" and `benchmark/README.md` as the "weighted mean warp of an anchor-conditioned bank". If the weights are the seismic tie weights of Experiment 1, the tie is not anchor-only. Please state the weights.
2. l. 96–97 and l. 55–56: "reference results of 21 methods", while Table 1 lists ten families. Say where the 21 are listed (15 methods plus six with the second backbone, by my count from `benchmark/README.md`).
3. l. 125: the generating bulk spread is 19 ms and the registration uses a fixed 50 ms (Section S3.2). The article gives only "σ_b = 50 ms fixed" (l. 143) and uses "50/√N ms" at l. 198–199 without saying that 50 is σ_b.
4. l. 158–162: "RML" appears as a symbol in equation (2) and Table 1 and is described as "the relaxed minimum". The Supporting Information expands it as registration-marginalized learning. Define it once.
5. l. 172–178: state that the "best competitor" of a cell is chosen by its mean test error (Section S6), and that the intervals are percentile intervals from 2000 resamples of eight realizations.
6. l. 230–231: the anchor posterior "had a warp RMSE of 3.25 ms, no better than the 3.85 ms of the correlation tie". 3.25 is lower than 3.85; Section S6.2 says "comparable to".
7. l. 262–263: the Gaussian bank "came within 2.5% of the SMC bank at c = 1 in three of four cells". From Section S6.4 and Appendix SC the four pairs of ratios to the SMC mean are 0.987 and 0.967, 0.970 and 0.970, 0.904 and 0.890, 0.984 and 0.982, so the largest difference is 2.1%, and Appendix SC gives 0.975–1.001 for SMC bank / Gaussian bank at c = 1. It seems to be within 2.5% in all four cells. Please reconcile.
8. l. 268–269: with the anchor mean as competitor, the 0 dB result went from one of two cells to none. Say that this cell did not replicate.
9. l. 311–312: the crossings are "within 1 ms of σ/√2 = 3.0, 4.1 and 5.1 ms". At 10 dB the crossing (3.6 ms) lies above the value that Corollary A2 gives as necessary. Section S6.6 explains this by shrinkage; the article should too.
10. l. 338–339: "Do not use alignment losses without anchors." In the experiments the alignment losses start from the calibrated sonic, which uses the anchors (Table 1). On F3 they had the lowest band errors of all networks (Table S20: 1.211–1.254 against 1.256–1.286 p.u.), although no method had skill there. The advice should be worded as a benchmark result.
11. Figure 3 against Appendix SC: at 10 dB, c = 0, N = 4 the figure shows 1.56 and 1.20 for the calibrated sonic and the correlation tie; Appendix SC ("Intervals for few realizations") gives 1.57 and 1.21. The other 28 values I compared agree.
12. Figure 1: the graphic labels the curves "OpendTect TD model" and "DT model", while the legend (l. 461–464) describes them without these names. The guide asks authors to avoid trade names, and figure and legend should agree.
13. Figure 5: the colour bar reads "SMC mean / best point tie", the legend (l. 483–485) "best deterministic tie". The values match the deterministic ties (for example 0.86 and 0.78 at 10 dB, c = 1). The cell annotations in Figures 3 and 5 are too small to read at normal scale, which the guide requires.
14. Figure 2(b): the non-rejection interval [0.5, 2] fills the panel and hides the deviation at 32 ms. Give the intervals in the legend or use a narrower axis.
15. Appendix A, l. 509–516: the assumption labels (A1)–(A3) collide with the equation numbers (A1)–(A4), as in "Fubini, using (A2)) gives equation (A1)". Rename the assumptions.
16. Appendix A, Proposition A2: "up to window-edge effects". With 64-sample windows and shifts of up to β_max samples, the edge fraction is β/64 per window. State how large β_max may be for the statement to be useful.
17. Reference list, l. 448: "Rachel E. White and Rob Simm". Crossref records the authors of doi:10.3997/1365-2397.21.10.25640 as "R.E. White" and "R. Simm". To my knowledge the first author is Roy E. White, the author of White (1980), which `refs.bib` lists as "White, R. E.". Page numbers are missing. Several conference papers are cited by arXiv links instead of proceedings pages (l. 423–431).
18. `paper/refs.bib` contains `annote` fields with internal notes. They should be removed. They also state that several works were cited without being read in full, for example "abstract not read" (Gunning and Glinsky 2004), "Abstract and full text not obtained" (Balakrishnan 1962) and "first paragraph read" (White and Simm 2003). Section S2 says of one reference "we know it from its title only", and Table S1 marks six works as "assessed from the abstract only". For a paper on well ties in this journal, White (1980), Walden and White (1984) and White and Simm (2003) should be read and used (see issue 4).
19. Related work. A recent paper on regression with time-shifted labels may be relevant to Section S2: "Lost in Time? A Meta-Learning Framework for Time-Shift-Tolerant Physiological Signal Transformation" (AAAI 2026). I found it by keyword search and have not read it in full. Model-based Bayesian inversion that carries wavelet and layer-time uncertainty into the property posterior should be discussed in the Introduction, since it is the non-learning counterpart of the idea. My own searches found no work that feeds a tie posterior into the training of a predictor, so I have no objection to that claim of novelty.
20. Data Availability Statement, l. 52–53: the Teapot Dome data are cited through a derived well-tie dataset (Bader 2017). The original release by the Rocky Mountain Oilfield Testing Center should also be cited.
21. Section S3.1 reports that the F3 "check-shot" tables are horizon-tie picks and that the porosity log is an exact linear function of sonic at three wells. These claims concern a public data product that many studies use. Please document the evidence in enough detail for a reader to repeat the check (file names, the regression, the comparison of depths and times).
## Strengths
- The question is important and neglected. Learned property prediction is routinely trained on tied logs, and I know of no earlier systematic treatment of the tie as a source of label error.
- The reporting is candid to a degree I rarely see. The failed first experiment, both misspecification failures, both field failures, the failed truth-free check and the failed Berkson prediction are all reported, with deviations from the protocols listed.
- The F3 audit is valuable in its own right: time–depth sources that disagree by tens of milliseconds, markers that are not check shots, and a "porosity" that is a transform of sonic.
- Proposition A5 and Corollary A2, with the observation that blind wells sharing training wells make a sign test anti-conservative, are useful for any blind-well validation, not only for ties.
- The wavelet-phase result ("confidently wrong" posterior, coverage 0.17 and 0.10) is a clear warning, and it agrees with the classical phase–time trade-off.
- The replication on new realizations, the equal-budget checks and the alternative intervals show care. The proofs in Appendix A are correct as far as I could check.
- The numbers are consistent. I compared about 60 values between the article, the Supporting Information and Figure 3 and found two discrepancies of 0.01 (minor issue 11) and one unclear count (minor issue 7).
- The reproduction design (content hashes, deterministic archives, a clean-room rerun) is well above the norm.
## Confidential comments to the editor
The work deserves publication after substantial revision. My main reservation is not about honesty, which is exemplary, but about what the headline number measures (issues 1 and 2) and about the form of the submission (issue 7). The authors may prefer to split the material into two papers; I would support that.
The statement on generative artificial intelligence (l. 13–24) discloses extensive use: writing and reviewing the analysis code, running the experiments, checking numbers and citations, drafting text, and producing simulated referee reports. Whether this is acceptable is your decision under the journal's policy. Two observations bear on it. The annotations in the bibliography file show that several cited works were assessed from abstracts or metadata only, and one author's first name appears to have been expanded wrongly (minor issues 17 and 18). I would ask the authors to confirm that they have themselves verified the F3 audit, because it makes factual claims about a third party's public data product that others will quote.
The claims that protocols and exploratory analyses were fixed before computation are self-certified, as the authors state. I could not verify them and did not try. I did not run any code.
## Files read
Within the repository, only files on the allowed list:
- `paper_gp/main.tex` (in full).
- `paper_gp/main.pdf` (text extracted for line numbers; pages 21 and 32–37 rendered to view Table 3 and Figures 1–6).
- `paper_gp/supplement.tex` (in full).
- `paper_gp/supplement.pdf` (text extracted, used to locate page and table numbers).
- `paper/sections/02_related.tex`, `03_data.tex`, `04_method.tex`, `05_theory.tex`, `06_experiments.tex`, `07_discussion.tex`, `A_proofs.tex`, `B_field.tex`, `C_record.tex` (in full). I did not open `00_abstract.tex`, `01_introduction.tex` or `08_conclusion.tex`, which the supplement does not input.
- `paper/refs.bib` (entry count and nine entries: `white2003goodpractice`, `white1980partial`, `walden1984errors`, `gunning2004delivery`, `balakrishnan1962jitter`, `bader2017teapot`, `herrera2012automatedtie`, `kendall2017uncertainties`, and the start of the entries that follow them in the file).
- `paper/figures/`: directory listing only. I viewed the six figures of the article as embedded in `main.pdf`. I did not open `p2_phase.pdf` or `f3_volume.pdf`.
- `benchmark/README.md`, `repro/README.md` (in full).
- `paper_gp/Geophysical Prospecting.pdf` (text extracted, in full).
Written: this report only (`docs/research/gp-referee/GP-A_round1.md`). I created the directory and did not list or read anything else in `docs/`.
External checks, with topic keywords only and no manuscript text: the Crossref record of doi:10.3997/1365-2397.21.10.25640; web searches on well-tie uncertainty in learned seismic property prediction, time-shifted labels in regression, the accuracy of synthetic-to-seismic matching, and Bayesian inversion with time uncertainty.
The session in which I worked contained project notes that are not part of the submission. As instructed, I did not use them.

View File

@@ -0,0 +1,87 @@
# Referee report GP-A — round 2 (cross-review)
Manuscript: *Uncertain well ties in learned seismic property prediction: theory, a benchmark with known timing, and requirements for blind-well tests*.
I read the report of referee GP-B and checked each point below against the article (`paper_gp/main.pdf`, line numbers "l. 123") and the Supporting Information (S numbers). The two reports were written independently and agree on most of the substance. Both recommend major revision.
## Agreements
1. **The article is not self-contained (GP-B issue 1; my issue 7).** GP-B's list of evidence that is only in the Supporting Information matches mine (Tables S9, S10, S11, S15, S17). GP-B adds two points that I endorse: the results are numbered differently in Appendix A and in Appendix SA with no mapping, and Section S1 speaks of "four contributions" while the article poses three questions (l. 90–92).
2. **The blur test is made in the favourable regime (GP-B issue 2; my issue 3).** GP-B's count is more exact than my "many": 32 windows per well, so 512 independent shifts per realization at N = 16 (Sections S4.6 and S5.1). We agree on the correction of "less than 7%" (l. 190–191; about 51% remains by Table S7) and on the abstract's "within 1%" (l. 29–30), which omits σ = 32 ms.
3. **The population limit is presented as a bound on the experiments (GP-B issue 3c; my issue 3).** l. 206 and l. 260–261 leave the reader unsure whether a bound was violated. GP-B is right that the sentence of Section S6.3, "An excess over the population bound is therefore not established under either structure", belongs in the article.
4. **"Because" at l. 335–337 is not established (GP-B issue 3d; my issue 3).**
5. **Competitors (GP-B issue 4; my issue 1).** We agree that the deterministic ties interpolate noisy anchors, that the anchor mean is a deterministic smoother wrongly kept out of the "best deterministic tie", that the correlation tie is not specified, that no published tie was run, and that "mode" is the wrong word for the best of 1024 particles. GP-B notes that the Conclusions (l. 358–361) give only the 8–22% range; I agree.
6. **Anchor uncertainty (GP-B issue 5a, 5b; my issue 2).** Same reading of the statistic (a median absolute value of 6.9 ms corresponds to σ of about 10 ms), of the 14 ms arm (0.928 [0.867, 1.004]), of the refit that ends at a search bound, and of the untrained fixed-hyperparameter arm.
7. **Blind-well numbers are properties of the simulator (GP-B issue 6a; my issue 4).** Both reports object to the unqualified "accurate to about 1 ms" at l. 364–365.
8. **Statistical reporting (GP-B issue 7; my issue 6).** We agree on the "or" in the margin rule at −5 dB, on budgets chosen from two development realizations, on the weaker replication of the bank result, and on the best competitor being chosen by test error. I also endorse GP-B's point that the pass/fail vocabulary gives a confirmatory appearance that the self-certified locks cannot support.
9. **Reproduction documentation (GP-B issue 8; my issue 8).** Same list of analyses missing from `repro/README.md`, same remarks on section numbers, Vietnamese documentation and the impedance log given to the analyst in the rock-physics presets.
10. **Smaller points I checked and endorse.**
- l. 229–231 mixes a test value (3.15 ms, l. 229) with development values (3.25 and 3.85 ms; Section S6.2 says "on the development realizations"). I had noted only "no better than".
- Table 3, row on anchor-free losses: Section S6.5 says the claim "failed in the half-anchor and two-anchor settings", and the footnote of Table 3 covers only the locked-code difference.
- l. 160 gives λ ≈ 0.36–0.37, but τ_c ≈ 2.7–2.9 (Section S4.5) implies 0.34–0.37.
- l. 219–220: "only if σ_ref < σ/√2 at every frequency" is garbled; the condition is on σ_ref.
- Section S3.1 cites "a national well-log archive" without a reference.
- The suggested reference Lundsgaard, Klemm and Cherrett (2015) exists (Crossref: *Geophysics* 80(2), M15–M31, "Joint Bayesian wavelet and well-path estimation in the impedance domain") and is not in `paper/refs.bib`. It should be cited with the Bayesian ties. I did not verify the other suggested references.
## Disagreements
1. **"The first departure in the forward model ... reverses the result" (GP-B issue 4d) is overstated.** Only the two wavelet-phase presets reverse it. Table S15 gives, for SMC mean / best deterministic tie at N = 4 / 16: rock physics mild 0.940 / 0.934 and strong 0.963 / 0.955; attenuation 0.927 / 0.842; scaled warp prior 0.862 / 0.798; out-of-family warp 0.892 / 0.820; wavelet phase mild 1.023 / 1.042 and strong 1.217 / 1.386. The article says the same at l. 294–299. So the gain is reduced but kept in five of seven presets. GP-B's sentence is right in one sense: the mild phase preset has the smallest model error of the seismic presets (1.08, Table S15). The fair statement is that the result is fragile to wavelet phase specifically, which is the classical trade-off between phase and time.
2. **The abstract's 2–33% is not simply "the weaker comparison" reported beside the stronger one (GP-B strengths, issue 4b).** The upper end comes from the 10 dB cells (0.81 / 0.67 in Table 2), where the anchor mean is not the best competitor. A reader cannot recover from l. 36–38 that the gain against the best point tie of any kind is 14% and 22% at 10 dB, 7% and 11% at 0 dB, and 2% and 3% at −5 dB (my issue 1). I credit the authors for reporting the comparison, but the abstract still needs this number.
3. **Score for "claims supported by evidence": GP-B gives 4, I keep 3.** GP-B's own report lists unsupported or overstated statements at l. 190–191, l. 206, l. 229–230, l. 249, l. 263–264, l. 335–337, l. 338–339, l. 362 and l. 364–365, and they include the Conclusions. The care is in the Supporting Information and partly in the abstract; the article body and the Conclusions overstate.
4. **Anchor residuals "would estimate σ_a directly" (GP-B issue 5c) is too optimistic.** The check is worth making, and I list it below. Three things in the text limit what to expect.
- The drift prior absorbs a wrong σ_a: with 3.5 ms the refit chose a correlation length of 10–15 ms (l. 253–255), so the posterior follows the anchors and their residuals will look consistent with the stated value. The check needs fixed drift hyperparameters.
- On F3 a type-II fit gave σ_a = 0.4 ms, which the authors themselves reject (Section S4.1).
- The seismic data constrain time only up to the wavelet phase. In the phase preset the posterior moved by 2.3–2.6 ms (Table S15), so anchor residuals about a seismic-driven posterior measure the anchors against the model's wavelet, not against true time.
I also would not call the paper's advice to obtain σ_a from independent data "unnecessarily pessimistic". In the −5 dB setting, which Section S3.2 calls the closest to F3 in posterior width, the seismic data add little to the anchors (Table 2: 0.98 / 0.97).
5. **"For the conditional one, the nominal test and the smaller well counts apply" (GP-B issue 6c) needs two qualifications.** I accept the main point (see "Points I missed"). First, blind wells of one field are spatially correlated through the geology, whatever the training set, and neither the paper nor GP-B treats this. Second, the smaller well counts of Table S17 are averages over realizations with different win rates. For one field the power is that of its own trained models, which may be well above or below the average; the limiting powers of 0.37 and 0.46 (Section S6.6) say that, in more than half of the realizations at N = 4, the effect is too small to detect with any number of wells.
6. **Keywords printed twice (GP-B minor 1) follows the guide.** The parts list puts "Abstract and keywords" together, and the submission checklist asks "Does the title page list the keywords?". No change needed.
7. **`repro/README.md` on locks (GP-B issue 8b) is incomplete, not false.** The sentence says each protocol "was locked before its test data were generated or scored". The new cells of Experiment 3 were scored after its lock. The sentence fails for the cells "read from Experiment 2" (Table S13) and hides that the realizations had been analysed post hoc before Experiment 3 was designed (Section SC.2). The remedy GP-B asks for is right.
8. **"Driven by the cells at c = 2" (GP-B issue 7d) is probably right but not shown.** In Table S11 and Figure 4(a) the wide cells at c = 1 also have ratios of 0.89–0.98. The replication, which has no c = 2 cells, gives −0.45 (l. 270), which supports GP-B. The request to drop the cell-level permutation p-values stands either way.
## Points I missed
1. **The estimand of the blind-well test (GP-B issue 6b, 6c).** This changes my assessment of the fourth contribution. Conditional on the trained models, the nominal sign test is valid for the question "do these two predictors differ at new wells of this field". It is anti-conservative only for the marginal question, over training sets and earth models, and a single field cannot answer that question with any number of wells. The intra-class correlation needed for the "calibrated" test is estimated here from eight simulated realizations and cannot be estimated from one field. The article states the anti-conservativeness without qualification (l. 313–314), and the abstract ends with "This assumes a test calibrated for wells that share training data" (l. 45–46; also l. 342–343 and l. 365–366). In round 1 I listed this observation among the strengths. I withdraw that as stated: the observation is correct for the marginal null only, and the recommended test cannot be carried out in the field as described.
2. **Testing Proposition A3(a) on the ties that are actually compared (GP-B issue 3, resolution).** The true tie errors of every method are known at the training wells. Their empirical characteristic functions give a predicted transfer for each method, which can be compared with the measured transfers already reported (0.72–0.96 for the best deterministic tie, 0.79–1.02 for the SMC mean; Appendix SC, "Sharpening"). This needs no new training and would either connect the theory to Experiment 2 or show where it fails. It is better than my round-1 request, which asked only for rewording and a new blur arm.
3. **The blur test uses a mean-squared-error loss (GP-B issue 2b).** The legend of Figure 2 says so (l. 470–471), while every compared method uses the Gaussian likelihood with a learned standard deviation (l. 157–162). The new blur arm should use the likelihood loss.
4. **Standard truth-free diagnostics were not tried (GP-B issue 5c).** Section S7 says "A truth-free check of the posterior is still missing" after one check. The phase and amplitude spectrum of the tie residual is routine quality control in well-tie practice and is the natural check for a frequency-dependent phase. I should have asked for it in my issue 4. With the caveats of disagreement 4, the same holds for standardized anchor residuals.
5. **Permutation p-values over dependent cells (GP-B issue 7d).** "p < 0.001" (Section S6.3) and "p < 10⁻⁴" (Section S6.5) treat cells that share realizations and nested well subsets as exchangeable.
6. **"So most of the gain is label augmentation" (l. 263–264; GP-B minor 11).** Section S6.4 says the results "suggest" this and that "None of them identifies a mechanism".
7. **The two-mode reversal is verified on part of the reversed band only (GP-B minor 13).** In Figure 6(a3) the usable frequencies stop near 25 Hz, while the reversed band for Δ = 32 ms is 15.6–46.9 Hz. The article (l. 300–301) should give the range.
8. **Notation (GP-B minor 6).** σ, S and P each have two meanings in the article.
None of these changes my recommendation. Points 1 and 2 change the content of my must-fix list.
## Revised recommendation
**Major revision.** Confidence: high for the well-tie and field aspects, medium for the statistical aspects. Unchanged from round 1.
What changed:
- My view of the blind-well requirements is more critical. Besides the conceptual problem I raised (timing is relative to the processed seismic image, and 1 ms corresponds to about 18° of wavelet phase at 50 Hz), the recommended "calibrated" test has no stated estimand and cannot be calibrated from field data. I withdraw the round-1 strength that credited the anti-conservative sign test without qualification.
- My request on the theory is now more concrete: the empirical-characteristic-function analysis on existing results, and a blur arm with one error per well and the likelihood loss.
- I add truth-free diagnostics (tie-residual spectra, anchor residuals) as an analysis on existing results.
What did not change: the headline comparison (my issue 1) and the anchor error model (my issue 2) remain the two most important problems. GP-B's report supports the first and the statistical half of the second. It does not address the points that the independent 7 ms anchor noise is physically implausible and is contradicted by the paper's own F3 and Teapot Dome evidence, that the true σ_a is never varied, that the gain is about 0.1 porosity unit in absolute terms, and that the scorer's default competitor set excludes the anchor mean. I maintain these. My scores are unchanged.
## Consolidated must-fix list
1. **Make the article self-contained** (restructuring / rewording). Move into the article: the intervals of Table 2; compact versions of Tables S10, S15 and S17; the definitions of the deterministic ties, the signal-to-noise ratio and the zero-drift guard; the equal-budget check; the F3 audit. Give a mapping between the A- and S-numbered results, mark every exploratory or post hoc number, and reduce the protocol history and verdict vocabulary.
2. **Report the main result against the best point tie of any kind** (rewording + analysis on existing results + new experiment). State the 2–22% range, with the anchor mean among the competitors, in the abstract, Table 2 and the Conclusions. Say that the deterministic ties interpolate the anchors and are the authors' implementations; specify them fully; replace "mode" by "best particle". Add one tie that smooths the anchors and extracts a wavelet, or one published automatic tie tuned on the development realizations.
3. **Treat the anchor error model as an assumption and test it** (rewording + new experiment). Correct the statistic at l. 118–119. Vary the true σ_a (for example 1, 2, 4, 7 ms) and add anchor errors with a per-well bulk component, as the paper found at Teapot Dome. Train the fixed-hyperparameter arm. Restate l. 249 and l. 361–362 as a sensitivity to a factor-of-two error under a refit that conditions on σ_a.
4. **Connect the theory to the compared ties** (analysis on existing results + small new experiment + rewording). Compare the transfer predicted from each method's known tie errors with the measured transfer. Add a blur arm with one shift or one smooth warp per well at N = 4 and 16, with the likelihood loss. Attribute Proposition A1 to the classical result. Correct l. 29–30, l. 190–191, l. 206, l. 229–231, l. 260–261 and l. 335–337.
5. **Restate the blind-well requirements** (rewording + analysis on existing results). State the estimand and give the conditional and the marginal reading. Either say how an analyst would calibrate the test in one field or drop that requirement from the abstract and the Conclusions. Present the well counts and the 1 ms figure as results of this benchmark. Add the relation between wavelet phase and time and the classical standard errors of a tie, and say whether 1 ms is attainable. Give power curves in quantities an analyst can state.
6. **Try standard truth-free diagnostics** (analysis on existing results). Amplitude and phase spectra of the tie residual, and standardized anchor residuals with fixed drift hyperparameters, in the nominal, wrong-σ_a and wavelet-phase cells whose particles are saved. Report the outcome whichever way it goes.
7. **Report effect sizes, not passes** (rewording + analysis on existing results). Absolute band errors and correlations; ratios by frequency band; the conservative interval; the four bank gains and their replication instead of "2–11%"; an equal-budget version of Table 2; the correlation clause at −5 dB; no cell-level permutation p-values.
8. **Align the release with the paper** (packaging / rewording). Add the anchor mean and the anchor-only tie to the scorer's competitor set. Bring both READMEs to the article's numbering and names, in English, covering the later analyses and the declarations of the exploratory work, or limit the Data Availability Statement to what is covered. Correct the reference list (the first name in White and Simm 2003; the internal `annote` notes; sources cited without having been read).
## Files read
- `docs/research/gp-referee/GP-B_round1.md` (in full).
- `docs/research/gp-referee/GP-A_round1.md` (my own report; not reopened, its content was in my working context).
- Round-1 files, consulted again from my round-1 extractions and readings to check line numbers and quotations: `paper_gp/main.tex`, `paper_gp/main.pdf` (text extraction and the rendered pages 21 and 32–37), `paper/sections/03_data.tex`, `04_method.tex`, `05_theory.tex`, `06_experiments.tex`, `07_discussion.tex`, `C_record.tex`, `repro/README.md`, `paper_gp/Geophysical Prospecting.pdf` (text extraction).
- `paper/refs.bib`: one keyword search for the references GP-B suggests (none present).
Written: `docs/research/gp-referee/GP-A_round2.md` only. I checked that this file did not exist before writing and opened nothing else in `docs/`.
External check: the Crossref record of doi:10.1190/geo2014-0378.1. No manuscript text was sent to any service. No code was run. The project notes present in my session context were not used.

View File

@@ -0,0 +1,252 @@
# Referee report GP-B — round 1
Manuscript: *Uncertain well ties in learned seismic property prediction: theory, a benchmark with known timing, and requirements for blind-well tests* (Original Paper, *Geophysical Prospecting*).
Referee expertise: measurement error, uncertainty quantification, inverse problems, design of benchmark comparisons.
Conventions: "l. 123" is a line number of `paper_gp/main.pdf`. The Supporting Information (SI) has no line numbers, so I cite its sections and tables (Section S6.3, Table S10, ...). Red TODO markers were ignored, as instructed.
## Summary of the submission
The paper treats the error of a well tie as an error in the time index of the training labels of a seismic porosity predictor. It shows that an index error independent of the data turns the optimal predictor into a blurred one (a convolution with the error density), distinguishes classical from Berkson index error, and derives a population limit on what a "calibrated bank" of posterior labels can gain over a point label. It also derives the bias that a misregistered blind-well reference adds to a comparison of methods. On a synthetic generator with F3 statistics, labels at the mean of a sequential Monte Carlo (SMC) tie posterior lowered the seismic-band error by 8–22% relative to three deterministic ties (7–19% on new realizations) and by 2–33% relative to an anchor-only posterior mean. Training on a bank of posterior samples added 2–11% when the posterior was wide, and a Gaussian bank with the same two moments obtained most of that. The gain disappeared when the stated anchor uncertainty was wrong by a factor of two or the wavelet phase was frequency dependent. Two field tests (F3, Volve) showed no improvement, and the authors argue that neither could have detected one. An exploratory power analysis gives the number of blind wells and the reference accuracy that a field comparison would need. A task package with 658 tasks, reference runs and a scorer is to be released.
The submission is unusually candid: it reports a failed first experiment, a failed theoretical prediction, two failed field tests, and the order in which the experiments were designed.
## Recommendation
**Major revision.** Confidence: **medium** (high on the statistical and theoretical points, medium on the adequacy of the geophysical baselines).
The mathematics I checked is correct and the claims are mostly scoped with care. Three things prevent acceptance in the present form. The article is not self-contained: the evidence for several headline statements is only in an 80-page SI. The theory is verified only in a regime that is not that of a well tie, and it does not explain the comparative results. The positive result is measured against the authors' own deterministic ties on data generated by the registration's own model, and the third element of the title rests on an exploratory analysis whose recommended test cannot be carried out on field data as described.
## Scores (1–5)
| Criterion | Score |
|---|---|
| Scope fit | 4 |
| Originality | 3 |
| Technical soundness | 3 |
| Experimental evidence | 3 |
| Claims supported by evidence | 4 |
| Clarity | 2 |
| Reproducibility | 4 |
## Major issues
### 1. The article is not self-contained, and the SI is a second, longer paper
**Where.** Whole article (l. 60–369, about 12 double-spaced pages of text) against `supplement.pdf` (80 pages); Section S1.
**Problem.** The author guide defines Supporting Information as "information that is not essential to the article". Here the SI holds evidence that the article's main statements need:
- the 95% intervals of Table 2 (Table S9);
- the anchor-uncertainty test, cited at l. 249–256 only as Table S10;
- the bound comparison of l. 260–261 (Table S11);
- the misspecification table behind l. 286–297 (Table S15);
- the detectability table (Table S17). It supports the last three sentences of the abstract (l. 43–46), the third element of the title and the third paragraph of the Conclusions, yet the article has no table or figure for it.
The SI is the full-length manuscript with its own Discussion. It numbers the same results differently (Propositions S1–S6 and Corollaries S1–S4 against A1–A5 and A1–A2) without a mapping. It speaks of "four contributions" (Section S1), while the article poses three questions (l. 90–92).
**Why it matters.** A reader of the journal cannot judge the main claims from the article. A referee has to review about 115 pages (37 of article and appendix, 80 of SI).
**Resolution (restructuring, no new work).** Move into the article: intervals in Table 2; a compact version of Tables S10, S15 and S17; the equal-budget check of Section SC.3. Cut from the article what is protocol history (most of Table 3 and its footnotes can go to the SI). Give a mapping between the A- and S-numbered results. Shorten the SI to what is supplementary.
### 2. The blur test does not test the regime of a well tie, and one main-text number is misleading
**Where.** l. 187–195, Figure 2, abstract l. 29–30, Conclusions l. 355–356; Sections S5.1 and S4.6, Table S7.
**Problem.**
(a) In the test, the injected shift "is fixed within each 64-sample window and independent of everything else" (Section S5.1), and the loss uses windows "starting at samples 0, 2, ..., 62" (Section S4.6). Each well therefore contributes 32 independent shifts, and each label sample is seen under up to 32 different shifts. With N = 16 wells that is 512 draws per realization. Least squares on many shifted copies of a label fits their average, which is the convolved label by construction. The test therefore checks the estimator of the transfer and the capacity of the network at 7–23 Hz. It does not check the statement that matters for ties. A tie error is one smooth function per well, so with N = 4 or 16 the network sees 4 or 16 draws. The empirical characteristic function of four shifts is not a Gaussian filter. The SI concedes the point in one sentence ("Whether the error is a smooth drift or independent jitter does not change the population optimum, although it changes finite-sample learning"), but the experiment tests only the favourable case.
(b) The test uses a mean-squared-error loss at zero drift (legend of Figure 2), whereas every compared method uses the heteroscedastic Gaussian likelihood.
(c) The usable band is 6.8–22.5 Hz. The registered non-rejection interval [0.5, 2] is, as the SI says, loose.
(d) l. 190–191 states: "at σ = 8 ms less than 7% of the seismic-band variance remains". Section S5.1 shows that this number weights frequencies by the F3 seismic amplitude spectrum "as a proxy for the recoverable band", "not by that of the predictor". In the authors' own test the band standard-deviation ratio falls from 0.945 (σ = 0) to 0.677 (σ = 8 ms) (Table S7), so about (0.677/0.945)² ≈ 51% of the predictor's band variance remains. The article drops the qualifier.
(e) The abstract's "to within 1% below 23 Hz" holds for 4, 8 and 16 ms. At 32 ms the ratio is 1.093 with interval [1.046, 1.143] (Table S7), which excludes 1.
**Why it matters.** "Confirmed below 23 Hz" (l. 356) is the only positive test of the theory, and it is carried over to ties in the Conclusions.
**Resolution.** New experiment, cheap: repeat the test with one shift per well, and with drift-like errors drawn from the warp prior, at N = 4 and 16, with the likelihood loss. Report how far the measured transfer departs from the Gaussian filter. Rewording: correct l. 190–191 (state the proxy, or give the 51%), and qualify the abstract.
### 3. The theory does not explain the comparative results, and the "bound" is presented in a misleading way
**Where.** l. 200–213, l. 260–261, l. 272–277, l. 335–337, l. 349, abstract l. 30–33; Sections S5.3, S6.3, S6.4, SC.3.
**Problem.**
(a) No tie that is actually compared is shown to satisfy either condition of Proposition A3. The Berkson prediction for the posterior mean was contradicted (transfer 0.65–0.97 against 1.04–1.21 predicted, l. 274–275). For the correlation tie "we draw no structural conclusion" (Section SC.3). The only verified case is an injected independent error.
(b) Proposition A4 and the limit ρ* assume a calibrated bank, λ → 0 and the population optimum. The experiments use λ ≈ 0.37 with 3.5–28 effective members of 64 (Section S4.5), a bank drawn from a tempered target, which by Section S5.3 does not reach calibration even with infinitely many samples, and 4–16 wells. The two-mode study shows the loss acting as re-registration (transfer 0.92–1.00 against 0.05–0.59 for cos², l. 303–305), which is outside the theory.
(c) l. 206 says "No method can improve on the point label by more than the factor" ρ*. l. 260–261 then reports that the measured ratio "was below the classical bound ρ*_cl in seven of eight wide cells but below the Berkson bound ρ*_Bk in only three of the four cells at c = 1". A reader cannot tell whether a bound was violated. The SI's own conclusion, "An excess over the population bound is therefore not established under either structure" (Section S6.3), is missing from the article. ρ* is a population ratio between two optimal predictors. It is estimated by putting the Oracle network's predictions in place of m, and it does not bound the ratio of two finitely trained networks.
(d) l. 335–337: "The sharpening predicted for posterior-mean ties was not observed, because the error of the posterior-mean tie depends on the data." The SI is more careful ("A test with power suggests why") and lists three other departures from the idealization (tempered target, plug-in phase, non-linear warp; Section S5.3). The causal "because" is not established.
**Why it matters.** The title leads with "theory". Of the three theoretical statements in the abstract, one is a known convolution identity tested outside the relevant regime (issue 2), one failed, and one concerns a limit in which no experiment operates.
**Resolution.**
- New analysis on existing results: the true tie errors of every method are known on the training wells. Compute the empirical characteristic function of each method's error, predict its transfer from Proposition A3(a), and compare with the measured transfer (the SI already reports 0.72–0.96 for the best deterministic tie, Section SC.4). This would connect the theory to Experiment 2 quantitatively, or show where it fails.
- Rewording: call ρ* a "population limit", state at l. 206 that it holds for population optima and λ → 0, and state the conclusion of Section S6.3 at l. 260–261. Replace "because" at l. 336 by "consistent with".
- In the abstract, say that the experiments did not operate in the fourth-order regime.
### 4. Strength and classification of the competitors behind the headline number
**Where.** l. 241–248, Table 2, Figure 3, abstract l. 35–40, Conclusions l. 358–361; Sections S4.7, S6.3, SC.4, Table S4.
**Problem.**
(a) "Best deterministic tie" means the best of three ties implemented by the authors. The calibrated sonic "passes exactly through anchors with 7 ms pick noise" and is up to 82% above the Oracle at zero drift (Section S6.3). No analyst would interpolate anchors of known 7 ms noise. The deterministic ties as a group are 15–29% above the Oracle at zero drift (Section S6.3). The article does not say how the window, maximum lag or smoothing of the correlation tie were set. No published automatic tie is run, although several are cited in Section S2 (dynamic time warping, Herrera and van der Baan 2014; Muñoz and Hale 2015; Wu and Caumon 2017).
(b) The anchor mean is a smoother of the anchors, deterministic given them. It is classed as a "posterior-mean tie" and excluded from the "best deterministic tie". In Figure 3 it is the best method without the SMC model at −5 dB (1.08 and 1.11 times the Oracle, against 1.15–1.21 for the deterministic ties). Against it the gain is 2–3% at −5 dB (Table 2), and Section S3.2 says that −5 dB "gives the posterior width closest to F3". With it as a competitor the claim fails at −5 dB and, in the replication, at 0 dB (l. 268–269). The abstract reports both ranges, which I credit. The Conclusions (l. 358–361) give only 8–22%.
(c) "The mode of the same posterior" (abstract l. 39; l. 244; l. 333; Table 2) is the best of 1024 saved particles by the tempered target. Section SC.4 says "The best particle is not the exact mode: its log likelihood exceeded that of 56–74% of the particles." In a function-valued parameter space, the best of 1024 draws is closer to a typical draw than to the mode. The conclusion that averaging adds little probably survives, but the word is wrong.
(d) The data follow the registration's own model: the same wavelet up to a constant phase, exact rock physics, warps from the same prior family, independent Gaussian anchor errors with the true σ_a given. The SMC warp error of 0.6 ms on a 4 ms grid reflects this. That a correctly specified Bayesian tie beats heuristics on its own simulated data is expected. The first departure in the forward model (mild frequency-dependent phase) reverses the result (1.023 and 1.042, l. 288). The article says so (l. 344–345), and this is the more informative finding.
**Why it matters.** The size of the headline gain is set by the weakness of the baselines and by the correct specification, not by the method.
**Resolution.**
- Rewording: give the anchor-mean comparison in the Conclusions; replace "mode" by "a high-probability particle"; state how the correlation tie was tuned.
- New experiment (moderate): add one published automatic tie tuned on the development realizations, and an optimized posterior mode. If these are not run, say in the abstract that the deterministic ties are the authors' implementations.
### 5. The anchor uncertainty: its value, the strength of the claim, and a missing diagnostic
**Where.** l. 118–120, l. 249–256, l. 339, l. 362; Sections S3.1, S4.1, S6.3, S7, SC.4 (vi), Table S10.
**Problem.**
(a) l. 118–119 sets σ_a = 7 ms from a "median absolute difference" of 6.9 ms; Section S3.1 calls the same number a "median absolute deviation (MAD)". These are different statistics. Neither is a standard deviation: for Gaussian errors σ = 1.4826 × MAD ≈ 10.2 ms. The quantity is also a difference between two interpretations of the same seismic volume (markers and horizon picks), not an error against an independent time. Since a factor of two in σ_a removes the gain, an ambiguity of 1.5 in the "F3-like" value is material.
(b) "The gain requires a correct anchor uncertainty" (l. 249) is stronger than the evidence. With 14 ms the ratio at N = 16 is 0.928 [0.867, 1.004] (Table S10): a gain of 7% that misses a 10% margin. With 3.5 ms the failure comes largely from the refit of the drift hyperparameters, where "3 of 8 fits with N = 4 and all 8 with N = 16 ended at a bound of the search" (Section SC.4 (vi)). With the hyperparameters held fixed the warp error is 1.86 and 1.07 ms, still well below the roughly 4 ms of the deterministic ties, but no network was trained on that posterior. The result is therefore a sensitivity of one empirical-Bayes step that conditions on σ_a, at two wrong values.
(c) No attempt is made to learn σ_a or to detect a wrong value. At 10 dB the seismic likelihood places the warp to 0.6 ms, so the anchor residuals about the posterior would estimate σ_a directly. A prior on σ_a, or a posterior predictive check of standardized anchor residuals, is standard practice and needs no true warp. The SI states that "A truth-free check of the posterior is still missing" (Section S7) after trying one check only (disagreement with the correlation tie). The same applies to the wavelet: the spectrum and phase of the tie residual are a natural check for a frequency-dependent phase.
**Why it matters.** The paper names σ_a "the main risk for field use" (l. 256) and advises readers to obtain it from independent data (l. 339). That advice may be unnecessarily pessimistic where the seismic data constrain the tie, and the diagnostic the paper says is missing was not looked for among standard tools.
**Resolution.** New analysis on existing results: posterior predictive checks of anchor residuals and of seismic residual spectra, in the nominal, wrong-σ_a and wavelet-phase cells whose particles are saved. New experiment (optional but valuable): σ_a estimated jointly. Rewording at l. 118–119 (state the statistic and its relation to σ) and l. 249, l. 362 ("was sensitive to a factor-of-two error under a hyperparameter fit that conditions on σ_a").
### 6. Blind-well requirements: effect sizes, the estimand, and a test that cannot be calibrated in the field
**Where.** l. 218–221, l. 307–318, l. 342–343, l. 364–366, abstract l. 43–46; Sections S5.5, S6.6, Table S17, Section SC.4 (i).
**Problem.**
(a) The numbers (5–18 wells, 1 ms, 1.5 ms) are properties of this simulator. The effect sizes are those of the nominal cells, which the article says "are not field estimates" (l. 344–345). The Oracle network there has a band correlation of 0.90 with four wells and 0.95 with 16 (Table S8), against at most 0.24 for any method on F3 (Table S20). The analysis is exploratory and uses eight realizations. The Conclusions nevertheless state the requirement without qualification: "It needs a reference ... accurate to about 1 ms" (l. 364–365).
(b) The recommended "test calibrated for wells that share training data" (l. 343, l. 365) needs the intra-class correlation of the outcome. Here it is estimated from eight simulated realizations (0 to 0.45, "imprecise", Section S6.6). A field has one training set, so this correlation cannot be estimated from field data. The paper does not say how an analyst would calibrate the test.
(c) The estimand is not stated. Conditional on the trained models, outcomes at independent blind wells are independent, and the nominal sign test is valid for the null "these two trained predictors do not differ at new wells of this field". The nominal test is anti-conservative only for the marginal null, over hypothetical training sets and earth models. A single field cannot address that null with any number of blind wells, which is what the limiting power of 0.37 and 0.46 (Section S6.6) expresses. The paper should say which question a field test is meant to answer. For the conditional one, the nominal test and the smaller well counts apply.
(d) Corollary A2 compares an oracle with a classically blurred predictor under a common shrinkage. The simulation compares the SMC bank with a deterministic tie. At 10 dB the simulated crossing (3.6 ms) lies above the "necessary" value σ/√2 = 3.0 ms (Section S6.6), so in practice the condition is not necessary. l. 219–220 ("only if σ_ref < σ/√2 at every frequency") is garbled: the condition is on σ_ref, and "at every frequency" belongs to the proof.
**Why it matters.** This is the part of the paper that practitioners are most likely to reuse, and it is in the title.
**Resolution.** New analysis on existing results: power curves parametrized by quantities an analyst can state (mean and between-well spread of the log error ratio, reference error, and the intra-class correlation as a sensitivity axis), with intervals from resampling realizations. Rewording: state the estimand; give the conditional and marginal readings; present Corollary A2 as a leading-order guide; qualify l. 364–366 with "in this benchmark".
### 7. Statistical reporting and the verdict framework
**Where.** l. 172–182, l. 241–242, l. 258, l. 269–271, Table 3; Sections S6 (opening), S6.3, S6.5, SC.1, SC.3, SC.4.
**Problem.**
(a) The protocols are "hash-locked" by the authors' own scripts. Section SC.1 records that the protocol of Experiment 1 was committed after its run, that of Experiment 3 during its runs and the field protocols after theirs, with self-reported time stamps. The authors disclose this, which I credit. The pass/fail vocabulary and Table 3 still give the article a confirmatory appearance that cannot be verified. Ratios with intervals should carry the argument.
(b) The margin rule has an "or". At −5 dB the ratios are 0.915 and 0.923, above 0.90, and the cells pass on the correlation clause (+0.10 and +0.09; Section S6.3). The interval lies entirely below 0.90 only at 10 dB with N = 16 (Section SC.4). l. 241–242 does not say this.
(c) "In Experiments 1 and 2, every design choice was made on two development realizations (900 and 901)" (Section SC.1). This includes one iteration budget per method from a five-point grid: 500 for the Oracle, 250 for the SMC mean and bank, 125 for the calibrated sonic (Table S12). The SMC mean improved at 500 iterations in seven of eight cells (Section SC.3). The equal-budget check (Section SC.3) partly answers this and belongs in the article.
(d) Permutation p-values treat cells as exchangeable units. The Spearman correlation of −0.85 with "p < 0.001" (Section S6.3) is over 15 cells that share realizations and nested well subsets, and it is driven by the cells at c = 2 that are flagged unstable. In the replication it is −0.45 (l. 270). The same applies to "p < 10⁻⁴" in Section S6.5. Remove these p-values or bootstrap the correlation over realizations.
(e) The bank result replicated more weakly than the article suggests. Two of three wide cells passed, the −5 dB cell did not (0.993), and the 0 dB cell was no longer wide (Section S6.3). In the original run the t-interval of the −5 dB cell includes 1 (Section SC.4). The abstract gives the replication range for the mean claim but not for the bank claim, which would be about 1–12%.
(f) The "best" competitor of a cell is chosen by its mean error on the test realizations (Section S6, opening). This is conservative for the candidate, but it is a choice made with test labels and should be stated next to l. 181–182 ("Test labels never chose a shift, checkpoint or hyperparameter").
**Why it matters.** With eight realizations and many dependent cells, the reader needs to see effect sizes and intervals, not counts of passes.
**Resolution.** Rewording and re-reporting from existing results. No new experiment.
### 8. Reproducibility documentation does not yet match the Data Availability Statement
**Where.** l. 53–58; `repro/README.md` Sections 4–6; `benchmark/README.md`.
**Problem.**
(a) The statement says that "the derived data behind every table and figure are archived ... with ... a clean-room check that recomputes them". The pipeline table and the twelve verify stages of `repro/README.md` (latest run dated 2026-11-09) do not mention several analyses that the article reports: the replication on realizations 16–23 (Table 2, abstract l. 37), the point-tie analysis ("Mode" row of Table 2), the −5 dB anchor-uncertainty test, the calibrated sign test (abstract l. 43–46), and the tempering-limit, bank-size and band-content analyses. Two review scripts are listed as "not in the archives or a verify stage". Training is outside the check, which is reasonable but should be said in the statement.
(b) `repro/README.md` states that each phase "was locked before its test data were generated or scored". Sections S6.5 and SC.1 say that Experiment 3 reuses the test realizations and particles of Experiment 2.
(c) Both READMEs cite section numbers of another version of the manuscript ("Sec. 3.3", "Sec. 6.3", "Sec. 6.7", "App. B", "App. C"). The description of every script is in `../README.md` "(in Vietnamese)".
(d) Benchmark design. The test split has eight realizations and its truth is public, so later users can tune to it. The scorer applies a no-margin rule that passes with probability up to 0.36 under exchangeability (documented, to the authors' credit). The analyst file gives the generating warp prior and the true σ_a, so every task except the misspecified ones is correctly specified by construction. In the rock-physics presets the analyst receives an impedance log computed with the nominal rock physics (`train_ai_log`), whereas a real analyst ties with measured sonic and density logs; that stress therefore acts on the tie in a way that does not occur in practice.
**Why it matters.** The benchmark is one of the three stated products, and the journal expects the data behind the results to be archived.
**Resolution.** Extend the archives and the verify stages to the later analyses, or limit the statement to what is covered. Align the READMEs with the article's numbering and provide the script documentation in English. Let the scorer report ratios and intervals first. Document how to generate fresh test realizations (the replication shows that it is possible).
## Minor issues
1. l. 7–8 and l. 47–48: the keywords appear twice.
2. l. 69–70 and Section S2: the novelty statement rests partly on abstracts (entries marked "a" in Table S1), and one program is described as known "from its title only" (Gunning and Glinsky 2004, a Bayesian inversion in which layer times are uncertain). These should be read before the claim is made. A short search of mine also found no work that feeds a tie posterior into training, so I do not dispute the claim.
3. Related work to add: Lundsgaard, Klemm and Cherrett (2015, *Geophysics*, doi:10.1190/geo2014-0378.1), a joint Bayesian estimate of wavelet and well path (I know it from its record and abstract only); the functional-data literature on phase variation, where the blurring of a mean by random time shifts is classical (Kneip and Gasser 1992; Marron et al. 2015); multi-reference alignment; and Schroeter, Sidorov and Marshall (2021, AAAI) on misaligned labels. Proposition A1 should be presented as a known identity applied to a new setting. Section S2 already says the ingredients are not new; the article does not.
4. l. 126: "N(0, 7²) ms" gives a variance in ms. Write "standard deviation 7 ms".
5. l. 152–153: say that σ_post is a Gaussian-equivalent standard deviation, averaged over the window and the training wells (Section S4.3).
6. l. 158 and l. 189: σ is both the predicted standard deviation of the network and the standard deviation of the timing error. S is both the bank size and a power spectrum; P is both a characteristic function and a filter in Corollary A2.
7. l. 160: "λ = 1/τ_c ≈ 0.36–0.37". Section S4.5 gives τ_c ≈ 2.7–2.9, which implies 0.34–0.37.
8. l. 196–199: Proposition A2(c) is a curvature calculation with "≈", not a proposition. Call it a remark.
9. l. 229–230: "as the identifiability result predicts". Table S5 itself says this "tests the prior, not a network". With a 50 ms prior and no anchors, a warp error of 31 ms follows from the prior width. It is not a test of the joint ridge of Proposition A2.
10. l. 230–231: "no better than the 3.85 ms". The value 3.25 ms is lower; Section S6.2 says "comparable". The sentence also mixes a development value (3.25) with the test value of l. 229 (3.15).
11. l. 263–264: "so most of the gain is label augmentation". Section S6.4 concludes "None of them identifies a mechanism", and one cell was read against label augmentation (Section SC.3). Soften.
12. l. 283–285: "91 of 100 cells" and "44 of 52" are counts of dependent cells. The SI says they are descriptive; the article should too.
13. l. 300–301: the reversal is verified on the usable frequencies, which in Figure 6(a3) stop near 25 Hz. Section S6.5 writes "usable frequencies in 15.6–46.9 Hz". State the actual range.
14. l. 338–339: "Do not use alignment losses without anchors." These losses were run at single untuned settings (γ = 0.1, α = 0.5, ±8 samples; Table S4), and their labels start from the anchor-calibrated sonic. On F3 they had the lowest band error of all networks (Table S20). Scope the advice to what was tested.
15. Table 2 (l. 455–456): add the intervals. Table 3: the row on anchor-free losses "passes", but the claim fails in the half-anchor and two-anchor settings and fails as run by the locked code; the footnote covers only the second.
16. Figure 1: the key and axis use "Integrated DT", "OpendTect TD model", "DT model" and "TWT", which the legend (l. 461–464) does not define. The guide asks that legends define all abbreviations and that trade names be avoided.
17. Figure 5: the colour-bar label reads "SMC mean / best point tie"; the text and the legend say "best deterministic tie". The cell text in Figures 3 and 5 is small at page width.
18. Corollary A1 (l. 612–622): under structure (b) the identity forces the spectrum of m to vanish at the zeros of Q. This is in the proof (l. 626–627) and should be in the statement.
19. l. 506–507: stationarity is "a working assumption for well logs". Say which results need it (the spectral statements, Proposition A5, Corollary A2) and which do not (equations A1, A6–A9).
20. Section S3.1: "A national well-log archive shows ..." has no citation; the archive is named only in `repro/README.md`.
21. Reference list: three conference papers are cited by arXiv URL (l. 423–431). The guide's examples put the year after the authors; the content is complete, so this is for production.
22. The SI uses "seismic" as a noun throughout, which the guide asks authors to avoid. The article has been corrected; the SI has not.
23. Section SC.4 mentions "four simulated external reviews". The Acknowledgments disclose this, but the SI should explain the term where it first appears.
## Strengths
- **Candour.** The failed first experiment, the failed sharpening prediction, the two failed field tests, the order of design, the self-certified nature of the locks and the discrepancy between locked code and locked statements are all reported. The abstract states the assumptions of the benchmark before its result and reports the weaker comparison (2–33%) beside the stronger one.
- **Correct mathematics.** I checked Propositions A1, A3, A4 and A5, Corollaries A1 and A2, and Lemmas S1–S5, Corollaries S1–S2 and Proposition S5 of the SI. The proofs are correct under their stated assumptions. The algebra of equation (A15) and the bound for σ_ref ≥ σ/√2 are right. The numerical asides I recomputed are also right: 5/16, 7/64 and 93/256; the nominal sizes of the sign test at 5, 10, 20 and 40 wells; the factors 1.10, 1.77 and 1.167; the two-mode band edges; the frequency counts of Table S7.
- **Internal consistency.** Every number I traced from the article to the SI agreed, apart from the items listed above. The package arithmetic agrees with `benchmark/README.md` (47 tasks × 14 realizations = 658; 21 methods).
- **Useful negative results.** The collapse of the posterior under a frequency-dependent phase (coverage 0.17 and 0.10) with no warning from a disagreement check; the Gaussian bank that reproduces most of the bank gain; the same-information point tie that reproduces most of the posterior-mean gain. These are the right controls, and they change the reading of the result from "uncertainty helps" to "a better tie model helps".
- **The F3 audit.** That the "check-shot" tables are horizon-tie picks, that the porosity log is an exact linear function of the sonic log at three wells, and that the time–depth sources disagree by up to a seismic period is of direct value to the many users of this public dataset. It deserves more room in the article.
- **The reference-bias result** (Proposition A5): more blind wells do not remove the bias of a misregistered reference. It is simple, correct and relevant to practice.
- **Statistical care above the norm of the field.** Realizations are the resampling unit; the null pass rate of the sign-counting rule is computed; percentile intervals are checked against BCa and t-intervals; a replication on new realizations was run.
- **Release.** Hash manifest, deterministic archives and a clean-room rerun are well beyond common practice.
## Confidential comments to the editor
1. **Use of generative AI.** The Acknowledgments state that a large-language-model agent wrote and reviewed the analysis code, ran the experiments, checked "every reported number against the output files and every citation against its source", drafted text and produced simulated referee reports. This is disclosed in detail, as the journal's policy requires. The extent goes beyond language editing, and the checks of numbers and citations were made by the same tool that produced them. I suggest asking the authors to state which checks a human author carried out independently. The protocol hashes and time stamps were also produced by this pipeline, which adds to the point that the "locks" are self-certified.
2. I could not verify any number against output files or inspect the benchmark package or the archives; they are not yet deposited and were outside what I was given. My checks are of internal consistency, of the proofs and of the documentation.
3. The decision between major revision and rejection with resubmission depends on how the journal views a paper whose article is a 15-page summary of an 80-page SI. The science is honest and would interest readers of the journal, in particular the audit of F3, the reference-bias result and the boundary cases. I recommend major revision with a restructured, self-contained article as a condition.
4. The topic fits the journal. The style (protocol history, verdict tables) is that of a machine-learning benchmark paper and will need adapting for the readership.
5. No concern about dual publication or plagiarism arose from what I read. I did not run a similarity check.
## Files read
Allowed files, opened:
- `paper_gp/main.tex` (complete)
- `paper_gp/main.pdf` (text extracted with line numbers; pages 32–37 rendered to view Figures 1–6)
- `paper_gp/supplement.tex` (complete)
- `paper_gp/supplement.pdf` (used only to map section and table numbers)
- `paper/sections/02_related.tex`, `03_data.tex`, `04_method.tex`, `05_theory.tex`, `06_experiments.tex`, `07_discussion.tex`, `A_proofs.tex`, `B_field.tex`, `C_record.tex` (complete)
- `paper/refs.bib` (entry keys listed and searched by keyword; not read entry by entry)
- `benchmark/README.md`, `repro/README.md` (complete)
- `paper_gp/Geophysical Prospecting.pdf` (text extracted, complete)
Allowed files, not opened: `paper/sections/00_abstract.tex`, `01_introduction.tex`, `08_conclusion.tex` (the supplement does not input them); the files of `paper/figures/` (the figures were viewed as embedded in `main.pdf`; only the directory listing was read).
External sources: four web searches with topic keywords only (well-tie uncertainty in learned property prediction; phase variation and multi-reference alignment; misaligned labels; Bayesian ties), and five Crossref title look-ups to confirm the references suggested in minor issue 3. No manuscript text was sent to any service.
Not read: `docs/`, `AGENTS.md`, `CLAUDE.md`, the root `README.md`, `report.html`, `outputs/`, `scripts/`, `configs/`, `ml_porosity/`, `paper_gp/README.md`, `paper/README.md`, git history. My session context contained a project instruction file; I disregarded it and used nothing from it. My scratch folder already held files left by an earlier session (their names appeared in a directory listing); I did not open them and worked only from the extractions I made myself.

View File

@@ -0,0 +1,122 @@
# Referee report GP-B — round 2 (cross-review)
Manuscript: *Uncertain well ties in learned seismic property prediction: theory, a benchmark with known timing, and requirements for blind-well tests*.
I have read the report of referee GP-A and checked each of its points that I discuss below against the article and the Supporting Information (SI). "l. 123" is a line of `paper_gp/main.pdf`. Red TODO markers were ignored.
The two reports were written independently and agree on the recommendation, on six of the seven scores and on most major issues. GP-A is stronger than I was on what the headline number measures and on the field side. I was stronger on the estimand of the blind-well test, on diagnostics that need no truth, and on the cell-level p-values. I keep those points.
## Agreements
1. **The headline gain is set by the anchor-noise model (GP-A issue 1).** I checked GP-A's reading of Figure 3 and it is correct. At 10 dB the calibrated sonic is 1.56, 1.53, 1.54 (N = 4) and 1.82, 1.83, 1.81 (N = 16) times the Oracle for c = 0, 1, 2, and the correlation tie is 1.20, 1.17, 1.24 and 1.30, 1.38, 1.33. The deterministic ties therefore remove the drift, and what remains is the cost of anchors with 7 ms noise. This is a sharper statement than my issue 4(a), and I adopt it.
2. **The gain against the best point tie of any kind is 2–22% (GP-A issue 1).** The arithmetic from Table 2 is right: 14% and 22% at 10 dB, 7% and 11% at 0 dB, 2% and 3% at −5 dB. This is the number the abstract and the Conclusions should lead with.
3. **The anchor-uncertainty claim is too strong (GP-A issue 2, last bullet; my issue 5(b)).** Both reports quote the same evidence: 0.928 [0.867, 1.004] at 14 ms, the hyperparameter fits ending at a search bound, and no network trained in the fixed-hyperparameter arm.
4. **The statistic behind σ_a = 7 ms (GP-A issue 2; my issue 5(a)).** Both reports find that a median absolute value of 6.9 ms corresponds to a Gaussian σ of about 10 ms, and that l. 118–119 and Section S3.1 name different statistics.
5. **The theory (GP-A issue 3; my issues 2 and 3).** We agree on every item: the blur test uses many independent shifts per well; "within 1%" omits 32 ms; "less than 7%" at l. 190–191 conflicts with Table S7; the identifiability test at l. 229–230 tests the prior; the "because" at l. 335–337 is asserted; ρ* does not bound finitely trained networks. GP-A's remark that Proposition A1 is the high-cut filter that residual static errors apply to a stack is the right way to present it to this readership.
6. **The requirements are properties of this benchmark (GP-A issue 4, third bullet; my issue 6(a)).** The Conclusions (l. 364–366) state them without the hedge of the abstract.
7. **The article is not self-contained (GP-A issue 7; my issue 1).** GP-A adds useful examples that I confirm. The "zero-drift guard" is used at l. 227 and l. 238 and never defined in the article. "Calibrated" carries four meanings (calibrated sonic, calibrated bank, calibrated uncertainty, a test "calibrated for wells that share training data").
8. **The "mode" is a good particle, not a mode (GP-A issue 6; my issue 4(c)).**
9. **Release and documentation (GP-A issue 8; my issue 8).** Same findings on the Data Availability Statement, the section numbers of another version, the Vietnamese documentation and the impedance log of the rock-physics presets.
10. **The −5 dB cells pass on correlation only, and the article should show the more conservative interval (GP-A issue 6; my issue 7(b)).**
## Disagreements
None of these changes GP-A's main conclusions. They are places where the text does not carry the statement as written.
1. **"Two anchors 8 ms apart ... can reverse their order in time" (GP-A issue 2, first bullet).** The spacing "8 to about 148 ms apart" is that of the F3 anchors (Section S3.1). The benchmark places its anchors "at stratigraphic markers" (Section S3.2), and neither the article nor the SI gives their number or spacing in the synthetic wells. The reversal is therefore an inference, not something the text shows. The underlying point, that independent errors are unrealistic, stands. The request should be: state the number and spacing of the synthetic anchors, and say whether the calibrated sonic stays monotone.
2. **"With accurate anchors (1–2 ms, as for check shots) ... the headline gain would shrink" (GP-A issue 2).** The direction is plausible from Figure 3, but it is a conjecture: the SMC posterior also improves with better anchors, and no cell tests it. It also sits uneasily with GP-A's own issue 4, which argues that an independent time accurate to about 1 ms in the seismic image may not exist. If so, the anchor error that matters for the tie is not 1–2 ms either. I support the experiment (vary the true σ_a); I would not state its outcome in advance.
3. **"... which the paper's own data contradict" (GP-A issue 3, last bullet).** The abstract says "In population" (l. 31–33), l. 209–210 says "finite-sample effects can dominate", and l. 262–264 reports the Gaussian-bank control. Measured finite-sample gains do not contradict a population statement. The problem is one of presentation, as in my issue 3(c): the reader cannot tell what "below the bound" means at l. 260–261.
4. **"'Anchor' is used from l. 82 but never defined" (GP-A issue 7).** l. 118–120 ties the markers to "the anchor uncertainty", and l. 126 says "Anchors are true marker times plus N(0, 7²) ms noise". The definition is late and implicit, not absent. A definition at first use is still needed.
5. **The seismic band reaching the Nyquist frequency (GP-A issue 5, last bullet).** The observation is correct (l. 172–173 against the 4–83 Hz band of Section S3.1), but its size is bounded by the authors' Table S26: 7% of the label band power, and 6% of the Oracle's, lies above 60 Hz. The dilution of the ratios is at most a few per cent. I support the request for ratios by frequency band for a different reason: the predicted sharpening and the bank limit act at 60–70 Hz (l. 345–346), where nothing is measured.
6. **Budgets "chosen by total error ... not by the band error that is scored" (GP-A issue 6).** This is a disclosed and deliberate choice (Section S4.6: "band metrics are not used for selection"), made on development realizations, and not a flaw in itself. The confound with training length is real, but for the headline it is probably conservative: the phase-estimated correlation, the best deterministic tie in most cells, already has the Oracle's 500 iterations (Table S12), while the SMC mean at 250 improved at 500 in seven of eight cells (Section SC.3). GP-A is right, and more precise than I was, that the equal-budget results cover only the cells run in Experiment 3 (70 of the 100 grid cells, Section SC.3), so the cells of Table 2 have none. An equal-budget Table 2 is needed.
7. **Moving Propositions A3(b) and A4 to the SI, and splitting the paper in two (GP-A issues 3 and 7).** I would not make either a condition. A prediction that was stated and then failed is informative and belongs in the article in a few lines. The guide treats the SI as non-essential, so moving results there works against GP-A's own issue 7. A second paper built on Proposition A5, the detectability analysis and the field cases would rest on one exploratory simulation and two null field tests. The journal has no page limit; one restructured, self-contained article is feasible. This is a difference of editorial judgement, not of fact.
8. **"The premise of the title is demonstrated on synthetic data only" (GP-A issue 4, last bullet).** True, and the authors say so: "We claim no field improvement" (l. 327–328), "its nominal gains are not field estimates" (l. 344–345), and Section S7 ("The claims of this paper about learning rest on the benchmark"). Section S7 also notes that the F3 band score appeared insensitive to label timing. The audit (l. 112–116) does show that tie errors of a seismic period exist in public field data. What is missing is their effect on prediction, and that sentence of Section S7 should be in the article.
## Points I missed
These are valid, I verified them, and they change my assessment.
1. **The 2–33% range in the abstract takes its upper end from a competitor that is not the best (GP-A issue 1).** At 10 dB the anchor mean is worse than the deterministic ties (Figure 3: 1.24 and 1.49 against 1.17 and 1.28 times the Oracle at c = 1), so 33% is a gain over a weaker tie. I had credited the abstract for reporting both ranges. Neither range is the gain over the best alternative.
2. **Independent 7 ms anchor noise is contradicted by the authors' own field evidence (GP-A issue 2).** I had only questioned the statistic. GP-A assembles three items that I confirm: the type-II fit gives 0.4 ms (Section S4.1); the leave-one-anchor-out test on F3 has a mean z² of 0.21 against 1, and "the anchor prior is therefore too wide rather than too narrow" (Section SB.1); at Teapot Dome the residual was mostly "a bulk shift per well (6.6 ms)" with a differential part of 2.8 ms (Section SB.3). So "c = 1 reproduces F3" (l. 125) holds for the drift only, and the true σ_a is never varied. Together with agreement 1, this means the size of the main effect depends on an untested assumption.
3. **Whether a 1 ms reference is attainable at all (GP-A issue 4, first two bullets).** I treated the reference error as a statistical quantity. GP-A points out that the timing relevant to training is the position of the log in the processed image, which includes wavelet phase, datum and static errors, and that a check shot does not measure it. The check against the paper's own numbers works: a 45° constant phase at the 49 Hz mean frequency (Section S3.1) is 2.6 ms, which is the warp error of 2.58 and 2.26 ms under the mild phase preset (Table S15); 1 ms corresponds to a phase known to about 18°. This is more fundamental than my issue 6. If the requirement cannot be met, the conclusion should be that blind-well scores cannot rank tie methods for effects of this size.
4. **The scorer inherits the weak baseline (GP-A issue 8).** `benchmark/README.md`, Section 5, applies the rule "against the best point tie of the cell (lowest mean band RMSE among B3b, B3c, B3c-R)", which excludes the anchor mean. I read that line and did not draw the consequence.
5. **The label is a sonic transform, and the article does not say so (GP-A issue 5).** The article mentions PHIE once (l. 116–117) and never states that the label used throughout is the linear function of sonic slowness (Section S3.1). The task is then band-limited impedance inversion with a deterministic rock-physics link. The lateral statistics of the synthetic field are also not given.
6. **Table 2 mixes four kinds of evidence without marking them (GP-A issue 6):** a hash-locked row, a secondary comparison, an exploratory row and a replication whose reading rules were set after the first results.
7. **"2–11%" for the bank is four numbers, not a range (GP-A issue 6):** 3.3%, 3.0%, 11.0% and 1.8% (Table S11), and the 11% is the two-anchor setting, where the posterior is overconfident (coverage 0.53).
8. **Smaller items, all confirmed.**
- The Gaussian bank is within 2.5% of the SMC bank in all four cells at c = 1 by the numbers of Sections S6.4 and SC.3, so "in three of four cells" (l. 262–263) is inconsistent.
- Figure 3 shows 1.56 and 1.20 where Section SC.4 gives 1.57 and 1.21.
- The assumption labels (A1)–(A3) collide with the equation numbers of Appendix A (l. 509–516).
- "anchor-only posterior mean" (l. 38) against Table S4, where the anchor mean is a "weighted mean warp of the Experiment 1 anchor posterior" and Section S4.3 defines those weights from the seismic likelihood.
- The declarations of the exploratory analyses are not in the archive.
9. **The bibliography (GP-A minor issues 17 and 18).** The reference list prints "Rachel E. White and Rob Simm" (l. 448). To my knowledge the first author of that tutorial is Roy E. White; I did not look it up again this round, and the authors must check it against the paper itself. `paper/refs.bib` carries `annote` fields that record works as "not read in full", "Abstract only" or "first paragraph read". In round 1 I searched that file by keyword and did not see them. This bears on the editor's question about the use of generative artificial intelligence: the statement in the Acknowledgments that every citation was checked "against its source" is not accurate for these entries.
## Revised recommendation
**Major revision** (unchanged). Confidence: **medium to high** (was medium).
What changed and why:
- My score for *claims supported by evidence* goes from 4 to 3, matching GP-A. In round 1 I judged the claims well scoped because the abstract states its assumptions and gives the comparison with the anchor mean. GP-A's points 1 and 2 above show that neither range in the abstract is the gain over the best alternative, that the mechanism (deterministic ties forced through noisy anchors) is not disclosed in the article, and that "c = 1 reproduces F3" (l. 125) covers the drift only.
- My confidence rises because the referee with the well-tie expertise independently reached my conclusion on the baselines and supplied the mechanism.
- My issue 5 (anchor uncertainty) becomes the second priority instead of the fifth, and my issue 6 gains the attainability question.
- I do not move to rejection. The proofs are correct, the reporting is honest, and the required work is mostly rewording and analyses on existing results, with three modest new experiments. If the authors cannot run those experiments, the abstract and Conclusions must be narrowed to what remains: a 2–22% gain under an assumed anchor-noise model, in a correctly specified benchmark.
My other scores are unchanged (scope 4, originality 3, soundness 3, evidence 3, clarity 2, reproducibility 4).
## Consolidated must-fix list
In priority order.
1. **Make the article self-contained** (rewording and restructuring).
- Bring into the article: the intervals of Table 2, compact versions of Tables S10, S15 and S17, the competitor definitions with their tuning, the F3 audit table, and the statement that the label is a sonic transform.
- Define "anchor", "zero-drift guard" and the four uses of "calibrated".
- Mark every hash-locked, secondary, exploratory and replication number as such in the abstract, Table 2 and Section 5.
2. **Restate the headline against the best point tie of any kind** (rewording, and analysis on existing results).
- Give 2–22% in the abstract, Table 2 and the Conclusions, and say that the deterministic ties pass through anchors with 7 ms noise.
- Add one table of every point tie relative to the Oracle at c = 0 and c = 1, with intervals and absolute errors.
- Call the "mode" the best particle.
- Add the anchor mean to the scorer's competitor set.
3. **Treat the anchor error model as an assumption and test it** (new experiment, with rewording).
- Correct the statistic behind 7 ms, and limit "c = 1 reproduces F3" to the drift.
- Vary the true σ_a, and run one error model with a per-well bulk part and a small differential part.
- Reword l. 249 and l. 361–362 to a factor-of-two sensitivity under a hyperparameter fit that conditions on σ_a.
- Add posterior predictive checks of anchor residuals and of the tie residual spectrum (analysis on existing results).
4. **Add one practitioner-grade deterministic tie** that smooths the anchors and extracts a wavelet, fully specified and tuned on development data (new experiment). If it is not run, say in the abstract that the deterministic ties are the authors' implementations.
5. **Bring the theory and its tests into line** (rewording, one new experiment, one analysis on existing results).
- Attribute Proposition A1 to the known result; call ρ* a population limit and state the conclusion of Section S6.3 at l. 260–261.
- Correct l. 29–30, l. 190–191, l. 229–230 and l. 335–337.
- Run a blur arm with one shift or one smooth warp per well at N = 4 and 16.
- Compare each method's measured transfer with the one predicted from the empirical distribution of its known tie errors.
6. **Recast the blind-well requirements** (rewording, and analysis on existing results).
- State them as results under the benchmark's assumptions, in the Conclusions as well as the abstract.
- State the estimand (conditional on the training set, or marginal over training sets) and how the correlation between wells would be obtained in a field.
- Discuss, with the phase–time relation and the classical standard errors of a tie, whether a 1 ms reference is attainable.
- Give power curves in quantities an analyst can state.
7. **Report effect sizes with conservative intervals** (analysis on existing results, and rewording).
- Add an equal-budget version of Table 2 and use t- or BCa intervals in the article.
- Give the four bank gains with their replication values.
- Remove the permutation p-values that treat cells as independent.
- Reconcile the Gaussian-bank count and the two values of Figure 3.
- Reduce the pass/fail language.
8. **Align the release and the references with the article** (rewording and packaging).
- Extend the archives and verify stages to the replication, the point-tie analysis, the −5 dB anchor test and the calibrated sign test, or limit the Data Availability Statement to what is covered.
- Include the declarations, in English.
- Update both READMEs to the article's numbering.
- Read the cited tie-accuracy literature, correct the author name at l. 448, and remove the `annote` fields.
## Files read
Round 2, in addition to the files of round 1:
- `docs/research/gp-referee/GP-A_round1.md` (complete)
- `docs/research/gp-referee/GP-B_round1.md` (my own report; headings and opening sections re-read to confirm its state)
Re-checked for this round, all on the allowed list:
- `paper_gp/main.tex` (searched for "guard", "anchor-only", "PHIE")
- `paper_gp/main.pdf` (my line-numbered text extraction: l. 82–83, 125–126, 227–238, 440–452)
- `paper/sections/03_data.tex`, `04_method.tex`, `06_experiments.tex`, `C_record.tex` (searched for the anchor definitions, the weights of the anchor posterior and "anchor-only")
- `paper/refs.bib` (the entry `white2003goodpractice` and the `annote` lines matching "not read", "Abstract only", "not obtained", "first paragraph")
No external source was consulted this round, and no code was run. I did not open anything else in `docs/`, nor any project note, output, script or configuration file. The project instruction file in my session context was again disregarded.

View File

@@ -0,0 +1,50 @@
# Referee report GP-C — round 1 (external model "6.1 sol")
> **Ghi chú biên tập (16/11/2026).** Người dùng nhờ một mô hình bên ngoài ("6.1 sol") chấm bản này rồi dán kết quả vào phiên. Văn bản dưới đây chép nguyên văn. Theo lời referee, họ chỉ đọc `paper_gp/main.pdf` (bản xuất lúc 16/11/2026 07:38:54) và author guide, **không có Supporting Information**, nên mọi nhận xét về SI đều dựa trên phần bài chính dẫn tới. Không có vòng chấm chéo.
> Các TODO bôi đỏ được bỏ qua. Các liên kết trong văn bản là của referee; tác giả chưa kiểm nội dung (DOI Di & Abubakar 2023 đã kiểm trên Crossref).
---
# Phản biện mô phỏng cho *Geophysical Prospecting*
**Khuyến nghị biên tập: Major revision. Điểm tổng thể: 7/10.** Tôi sẽ đề nghị cho tác giả cơ hội sửa và gửi lại để phản biện tiếp. Bài phù hợp với hạng mục **Original Paper** vì đặt ra một vấn đề cụ thể của địa vật lý thăm dò: sai số trong quan hệ thời gian–độ sâu làm thay đổi phổ của tín hiệu mà mô hình học được, đồng thời có thể làm sai lệch cách xếp hạng các phương pháp tại giếng kiểm tra. *Geophysical Prospecting* tiếp nhận cả nghiên cứu lý thuyết và nghiên cứu số, nên một kết quả thực địa dương không phải điều kiện để bài này đóng góp cho tạp chí. [onlinelibrary.wiley.com](https://onlinelibrary.wiley.com/page/journal/13652478/homepage/forauthors.html)
Tôi bỏ qua các TODO bôi đỏ khi chấm. Tôi đã xem bản thảo chính, phụ lục A, sáu hình và hướng dẫn tác giả. Các bảng và giao thức trong Supporting Information được dẫn chiếu nhưng chưa có trong tài liệu đính kèm, nên phần đánh giá thực nghiệm dựa trên bằng chứng trình bày trong PDF chính. main(20261116-073854).pdf Geophysical Prospecting.pdf
| Tiêu chí | Điểm | Đánh giá |
|---|---:|---|
| Phù hợp với tạp chí | 9/10 | Câu hỏi rõ, có ý nghĩa đối với seismic well tie và kiểm định tại giếng độc lập |
| Tính mới | 7.5/10 | Đóng góp nằm ở việc nối sai số well tie với phổ của predictor, benchmark có timing thật và thiết kế blind-well test |
| Lý thuyết | 6.5/10 | A1 và A5 có thông điệp rõ. Phạm vi áp dụng của kết quả bậc bốn cần sửa |
| Thiết kế thực nghiệm | 7/10 | Có đối chứng, stress test và lặp lại trên realizations mới. Vẫn khó tách lợi ích của mô hình tie, bộ giải và cách dùng posterior |
| Bằng chứng thực địa | 4.5/10 | F3 và Volve có giá trị chẩn đoán. Các phép thử hiện tại chưa định lượng đáng tin cậy hiệu quả ngoài thực địa |
| Trình bày | 7/10 | Có báo cáo kết quả âm. Một số kết luận được diễn đạt mạnh hơn bằng chứng trong hình và bảng chính |
## Nhận xét chính
**1. Kết quả bậc bốn đang được phát biểu rộng hơn điều đã chứng minh.**
*Abstract, §4, §8, Proposition A4, Figure 4.* A4 phân biệt kỳ vọng của **nhãn** theo posterior, \(\mathbb E[y^u(t)\mid D]\), với nhãn dựng từ **warp trung bình**, \(y^{\mathbb E[u\mid D]}(t)\). Hai đại lượng này nói chung khác nhau vì phải lấy nghịch đảo của warp rồi lấy mẫu log. Kết quả về nghiệm tối ưu của bank trong A4 áp dụng ở giới hạn \(\lambda\to0\), còn thí nghiệm dùng \(\lambda\approx0.37\). Thêm nữa, (A11) dùng MSE quần thể trước khi lấy căn, trong khi §3 lấy trung bình RMSE theo giếng. Hai cách tổng hợp có thể cho tỷ số khác nhau.
Tôi yêu cầu sửa Abstract và Conclusions để phát biểu kết quả \(O(\sigma^4)\) dưới đúng giả thiết sai số Gaussian và cấu trúc dịch thời gian của A3–A4. Với Figure 4b, hãy đối chiếu bằng cùng cách tổng hợp sai số hoặc ghi rõ đường chéo biểu diễn chuẩn lý tưởng hoá. Khi một điểm nằm dưới đường chéo, hình hiện tại chưa đủ để quy phần chênh lệch cho hiệu ứng hữu hạn mẫu. Đối chứng có giá trị nhất là so sánh **nhãn tại warp trung bình, trung bình các nhãn posterior và bank với \(\lambda\approx0.37\)** trên cùng realizations.
**2. Bằng chứng mạnh nhất là chất lượng của point tie. Cần làm rõ SMC đóng góp bao nhiêu.**
*§5.2, Table 2, Figure 3.* Mức giảm RMSE **8–22%**, lặp lại **7–19%** trên realizations mới, đáng báo cáo. Tuy nhiên, tie lấy từ particle tốt nhất theo tempered target đã thu được phần lớn mức giảm, còn dùng warp trung bình cải thiện thêm tối đa khoảng **3%**. Ngay tại \(c=0\), tỷ số so với baseline vẫn là **0.81–0.88**. Vì baseline vẫn có thể chịu ảnh hưởng của anchors nhiễu hoặc bước hiệu chỉnh tie, kết quả này cần được giải thích bằng **warp RMSE theo ms và prediction RMSE theo đơn vị độ rỗng**, đặt cạnh Oracle và từng baseline.
Một đối chứng trực tiếp là tối ưu **cùng hàm mục tiêu tie**, dùng cùng anchors, wavelet và tham số warp, rồi huấn luyện bằng nghiệm điểm. Đối chứng đó sẽ cho biết bao nhiêu lợi ích đến từ mô hình tie và bao nhiêu đến từ SMC. Table 2 cũng nên nêu cách chọn *best deterministic tie* và đưa khoảng tin cậy ghép cặp của các so sánh chính vào bài chính. Với tổng quan tài liệu, nên định vị rõ đóng góp downstream so với Di & Abubakar, công trình ngay trên *Geophysical Prospecting* đã dùng wavelet biến thiên theo thời gian và ước lượng time shift cho well tie. [Wiley Online Library](https://onlinelibrary.wiley.com/doi/10.1111/1365-2478.13333)
**3. Kiểm chứng phổ thuyết phục trong dải đo được. Cách viết hiện tại làm phạm vi đó có vẻ rộng hơn.**
*§4, §7, Figure 2.* Ở \(\sigma=4,8,16\) ms, các giá trị 1.009, 1.009 và 1.007 là **trung bình hình học của tỷ số transfer trên các tần số đo được**. Chúng chưa chứng minh sai số dưới 1% tại từng tần số. Ở \(\sigma=32\) ms, tỷ số là 1.093 và chỉ còn bốn tần số dùng được. Ngoài ra, §3 gọi mọi thành phần trên 6 Hz là *seismic band*, trong khi chính bài báo đặt phần đóng góp lớn vào cận lý thuyết quanh **67–72 Hz**, ngoài vùng kiểm chứng **6.8–22.5 Hz**.
Hãy báo cáo phổ của dữ liệu seismic, nhãn và dự báo Oracle trên cùng trục, đồng thời cho biết mức giảm RMSE còn bao nhiêu khi giới hạn vào dải có tín hiệu đo được. Tuyên bố "còn dưới 7% phương sai" tại \(\sigma=8\) ms cũng cần nêu phổ và dải tích phân dùng để tính, vì phần phương sai còn lại phụ thuộc vào phân bố năng lượng theo tần số.
**4. Độ bền với sai mô hình là một kết quả khoa học quan trọng và cần được đặt ngang hàng với mức tăng danh nghĩa.**
*§2, §5.2–5.3, Table 3.* Warp thật trong benchmark danh nghĩa được lấy từ cùng họ prior dùng để tìm tie. Các realizations mới kiểm tra được khả năng lặp lại trong simulator đó. Khi thay phase theo tần số, coverage danh nghĩa 90% rơi xuống **0.17 và 0.10**. Ở mức sai phase mạnh, SMC mean có RMSE bằng **1.22–1.39 lần** correlation tie. Đây là bằng chứng trực tiếp về rủi ro khi wavelet model sai. Hãy đưa kết quả này vào bảng chính cạnh 8–22%, và làm rõ rằng \(7\) ms lấy từ chênh lệch marker–horizon ở F3 là giá trị dùng để xây simulator, trong khi sai số riêng của anchors thực địa chưa được nhận dạng. Hai verdict ở Table 3 có chú thích về việc quy tắc đã khóa trả kết quả khác hoặc không trả verdict cũng cần được ghi rõ là các kết quả diễn giải sau khi chạy.
**5. Phần blind-well có giá trị, nhưng các con số về số giếng và độ chính xác tham chiếu cần giữ nguyên điều kiện áp dụng.**
*§6, §8, Corollary A2.* Các mức **5–18 giếng** và **chưa đạt power 0.8 với tối đa 40 giếng ở sai số 1.5 ms** xuất phát từ hiệu ứng và cấu trúc phụ thuộc ước lượng trong benchmark. Cận \(\sigma_{\mathrm{ref}}<\sigma/\sqrt{2}\) cũng được suy ra cho một trường hợp cụ thể với sai số Gaussian, tham chiếu độc lập và predictor Oracle không bị shrinkage. Vì vậy, câu kết luận "cần độ chính xác khoảng 1 ms" dễ bị hiểu thành tiêu chuẩn chung cho thực địa.
Tôi muốn thấy một đường power theo **số giếng và sai số tham chiếu**, kèm đơn vị resampling và giả thiết về các giếng dùng chung tập huấn luyện. Với F3 và Volve, nên trình bày một bảng theo giếng ghi rõ nguồn tham chiếu, cách chia tập, RMSE và band correlation. Kết quả band correlation **0.15 ở F3** và baseline hằng số thắng mọi network ở Volve cho thấy còn thiếu bằng chứng rằng predictor có kỹ năng đủ để phép so sánh tie phát huy ý nghĩa.
## Quyết định nếu đây là bản nộp thật
Tôi sẽ giữ **Major revision**. Hai việc có trọng lượng lớn nhất đối với quyết định vòng sau là **làm cho định lý, hàm loss và thước đo thực nghiệm khớp nhau**, rồi **dùng một đối chứng cùng mô hình tie để xác định phần đóng góp riêng của SMC và posterior bank**. Nếu các kết quả giữ được sau hai sửa đổi này, bài có một đóng góp đủ rõ cho *Geophysical Prospecting*: định lượng well-tie error làm thay đổi phổ dự báo độ rỗng như thế nào, và chỉ ra khi nào sai số của tham chiếu blind-well có thể đảo thứ hạng phương pháp.

View File

@@ -0,0 +1,86 @@
# Referee report GP-D — round 1
## Summary of the submission
This Original Article asks how errors in a seismic well tie change the target of supervised seismic property prediction and the apparent accuracy at blind wells. The theory shows how independent timing errors filter the optimal predictor, distinguishes errors in opposite directions of a point tie, and describes how an uncertain scoring reference can alter method rankings. A synthetic benchmark derived from F3 makes true time available and allows the authors to compare point ties with supervision from banks of plausible ties. The nominal improvements are primarily associated with the registration model, as an optimized point tie using the same target recovers most of the performance. Additional tests show how wrong wavelet phase, misstated anchor uncertainty, and a shared offset in anchor picks can degrade the method. A new-realization repeat supports the nominal comparison against the locked baselines, while the gains from banks of posterior samples are smaller and less consistent. Tests on F3 and Volve do not establish predictive benefit or calibrated uncertainty. The manuscript uses its simulator to explore how scoring-reference error and dependence between held-out results affect blind-well comparisons.
## Recommendation
**Major revision, high confidence.** The article is well within the journal's scope and the controlled benchmark supports a publishable result about timing errors in supervised seismic prediction. The power calculation needs an estimand that matches its design, the identifiability proof exceeds what the stated objective supports, and the abstract and conclusions need to distinguish practical margins from small but measurable effects. The existing data should be enough to resolve these issues.
## Scores (1–5)
| Criterion | Score |
|---|---:|
| Scope fit | 5 |
| Originality | 4 |
| Technical soundness | 3 |
| Experimental evidence | 4 |
| Claims supported by evidence | 3 |
| Clarity | 4 |
| Reproducibility | 4 |
## Major issues
1. **The simulated power averages over training sets, while the stated estimand fixes one.** At ll. 397–401 the paper says the win probability is “conditional on the training wells” and “not an average over training sets.” Table S17 pools eight different realizations, each with its own training wells and field realization, and the recalibration in Appendix SC fits a beta-binomial using pooled win rates and within-realization dependence. In the beta-binomial interpretation a realization draws a latent win probability, and the reported power integrates over that draw. Its non-unit power limit in the two highly dependent cells makes that distinction consequential. A fixed-fitted-model estimand is a separate question, whose power depends on that set's win rate and on any spatial or other dependence that persists conditional on the fit. Shared training induces marginal dependence, but by itself does not establish conditional dependence given a fixed fit. Name the calculation for what it averages over, state what future realization and clustering structure it represents, and explain the assumption behind reusing the alternative's intraclass correlation under a win-probability-0.5 null. At ll. 410–414 and in Table S17, distinguish the calibrated sign-test results from the nominal sign test and the nominal paired tests in Appendix SC. In particular, four of six calibrated cells reached 80% power by 40 wells with an exact reference, two made it at 1 ms, and none did at 1.5 ms. The paired alternatives' nominal results do not establish what those alternatives would need with size control under clustering. Narrow ll. 46–48 and 466–469 to the calibrated sign test, six synthetic cells, the specified reference perturbation, and the search up to 40 wells. “More than 40” is especially misleading where the fitted model predicts power below 0.8 even in the large-well limit. An explicit side-by-side table of nominal and calibrated counts would help. **Fix:** Rewording and a presentation change based on existing results. If a conditional power claim is retained, a new analysis on existing results must target it and quantify what the eight independent groups can identify.
2. **Restrict the shift-identifiability argument to the loss and windowing it proves.** At ll. 663–668, the step “The log-sum-exp of equation (2) preserves this invariance, because every bank member is shifted by the same amount” is false for the stated argument with a fixed tiling of non-overlapping windows. Summing additive log scores over a trace allows regrouping. Applying the log-sum-exp separately to each window before summing does not. For a four-sample periodic example with two-member score pairs (0, −a), (0, −a), (−a, 0), (−a, 0), two windows of two samples each initially have scores (0, −2a) and (−2a, 0). After a one-sample shift, both windows have scores (−a, −a). The two sums of log-sum-exps differ for a > 0 with equal weights and positive tempering, even though the trace has no edges. The additive Gaussian statement in A2, ll. 648–674, and its anchor-curvature calculation survive. Per-window invariance would need a shift-covariant collection of windows, co-shifted windows, or a different argument. Likewise, l. 235 and the advice at l. 437 generalize to alignment losses without establishing shift closure of the actual model, behavior of constrained paths and shift bounds, or the absence of other timing information. Give the conditions in the main text, retain the curvature interpretation as a local conditional spread, and align the claims in Sections S5 and SA. **Fix:** Proof correction and rewording. No new experiment is necessary.
3. **Bound the headline gains by the comparator and the decision rule.** The abstract's 8–22% and 7–19% at ll. 37–41 are supported by Table 2 against the three locked competitors, at unit drift and full anchors. They are weaker as claims against a broader deterministic workflow. At 0 and −5 dB the anchor-mean comparison narrows the effect, and the new-realization repeat clears the margin rule against it only at 10 dB (ll. 299–302 and 355–361). In Table 3 at 0 dB and N = 4, the mean is worse than the same-target optimized point tie (1.027 [1.006, 1.057]). At 10 dB and N = 16 it is better (0.983 [0.970, 0.995]). Thus “gave a better tie than every deterministic tie” (ll. 430–432) is both broader than the held-out prediction comparisons and ambiguous about the optimized comparator. “Held against a practitioner tie” in the abstract should reflect five of six protocol successes in each set with that comparator **added** (ll. 344–348). The equal-budget evidence at ll. 348–349 is against the locked competitors and should have its own qualifier. In Table 2 the original −5 dB ratios are 0.915 [0.883, 0.953] and 0.923 [0.908, 0.940], while the correlation differences are +0.102 and +0.089. Preserve this distinction between improvement compared with unity, a 10% RMSE threshold, and passing through the correlation alternative. The prose appropriately notes that only one original RMSE interval lies wholly below 0.90. State that the table's candidate/comparator set is fixed for the paired intervals or explain if selection is repeated in each realization resample. If correlation margins are part of the evidential argument, add paired intervals for them or identify the displayed ΔPCC values as descriptive. I would keep the larger nominal result, but give the optimized point result more prominence because it separates the merit of the tie model from posterior averaging. **Fix:** Rewording and, for correlation intervals if used inferentially, analysis on existing results.
4. **Separate anchor accuracy, anchor-model failure and the amount of benefit.** Conclusions ll. 461–464 say the advantage “was lost” when true error was at most 2 ms and when uncertainty was misstated by a factor of two. Table 5 gives 0.969 [0.961, 0.979] at 2 ms, correctly specified and N = 16. That is a modest reduction with the interval below unity. The two 1 ms intervals both include unity, at N = 4 and 16, whereas the prose at ll. 316–318 mentions N = 4 alone. At 10 dB and N = 16, incorrectly supplying 14 ms gives 0.928 [0.867, 1.004] (Table 4), so losing the locked margin decision does not establish a zero effect. The bulk perturbation yields six point estimates above 1, but at 7 ms stated uncertainty and N = 4, the interval is 0.975–1.128 around 1.046 (Table 5). Distinguish reduced error, crossing the protocol margin, and evidence of harm. Also note what the bulk-error experiment tests: a common per-well component in anchor errors fitted **as independent noise**. The effect does not establish failure of a model that estimates anchor covariance or has an explicit shared-bias term. The F3 marker–horizon differences measure agreement between interpretations of the same seismic, as the main text correctly says at ll. 129–133. Appendix SC's suggestion that these differences support the specific 5 ms bulk perturbation needs to be framed as motivation, since they do not identify the actual bias or anchor-error covariance. **Fix:** Rewording. Testing a correlated-anchor model would be a new experiment and is unnecessary for the current claim.
5. **Distinguish a true-posterior result from empirical bank and mechanism comparisons.** At ll. 167–170 the phrase “expectations under the tie posterior” makes the following statement about samples from a tempered target contradictory. Exact samples from a tempered distribution converge to that distribution's expectations. Equation (A10) instead requires the conditional law of the *true* warp and equality for specified label functionals. State this at the first definition, then keep the fourth-order conclusion explicitly about centered Gaussian shifts, fixed band or appropriate spectral integrability, λ → 0, and nonzero oracle residual band error. The Taylor expansions at ll. 733–736 are pointwise, so a fixed sampled band is an easy sufficient condition for the integrated result. The assumptions of the theorem are stated more carefully at ll. 249–259 than at ll. 453–457. Empirically, the Gaussian bank inherits mean and covariance from the seismic-conditioned posterior. It removes the realized particle shapes and higher-order structure while retaining data-dependent moments. The sentence “no link to the seismic data” and the attribution “so most of the gain is label augmentation” (ll. 333–336) go beyond the control. Similar performance with intervals including zero in three of four cells is compatible with the moments carrying much of the useful signal. The independently replicated improvements are 0.7%, 1.7%, 12.4% and 0.7%, with two intervals below unity (ll. 325–329). At equal budgets the original three ordinary wide-cell gains in Appendix SC are about 1.4–2.0%, and the two-anchor case remains substantially larger. Label the original 2–3% and 11% at ll. 43–45 as observations in the stable cells at unit drift in the first set, distinguish the two-anchor exception and report its replicate, or summarize the less uniform bank evidence without a general percentage. At ll. 434–436, the observed dependence on posterior width invalidates the simple sharpening prediction in several cells. It does not by itself explain the observed blur, particularly where the interval of the dependence measure includes zero at 10 dB (Appendix SC). **Fix:** Clarification of the mathematical statement and empirical interpretation. No new experiment.
6. **Make the public task protocol clear about information shared across presets and the extent of verification.** The release statement at ll. 147–151 correctly says this is controlled evaluation. The README illustrates a concrete risk beyond direct use of the public truths. The wrong-uncertainty tasks have the very same seismic, logs and picks as nominal 10 dB, c = 1, with only supplied uncertainty changed. Named misspecification settings also expose the perturbation family in file paths and the task index. A benchmark participant could infer the control uncertainty or adapt to a fixed preset using metadata or outputs from related test tasks. Explicitly document a per-task information boundary for evaluation of a method under misspecification, including whether an uncertainty-estimating method may ignore supplied σₐ, when duplicate nominal pairs may be recognized, and what can be pooled across tasks. Make the defaults and baseline columns for scorer v1.0 and v1.1 unambiguous, including whether the now-added anchor-mean comparator changes the primary output or adds a separate comparison. At ll. 55–57, “a clean-room check that recomputes them” appears to describe every table and figure. The reproducibility README distinguishes recomputation of selected summary/figure stages and 43 aggregated outputs from retrieval of the archived training products. Name the verified scope in the statement and provide a mapping for the major paper tables that are reconstructed from archived summaries. These documentation fixes concern the evaluation and verification descriptions. **Fix:** Rewording and a clearer evaluation protocol. No requirement to hide the existing truth or repeat training.
## Minor issues
1. **Ll. 418–425, Table 8 and Table S21:** “band correlation 0.15 on F3” is the SMC **mean** row in Table S21. The SMC **bank** column in Table 8 agrees with the 0.18 macro value in Table S21. State which model the figure describes, or present both. “No blind-well skill in the seismic band” obscures the small descriptive edge of the soft-min shift over the no-band baseline (1.211 versus 1.224 p.u.). The field finding is that skill was weak and unsuitable for comparing registration gains. At F03-2 the two 1.15 entries in Table 8 look equal at the shown precision. Add the bank/tie ratio 1.0002 from Table S20 in a note so the recorded 1/4 is auditable.
2. **Ll. 403–407:** Specify that simulated reference perturbations include a bulk term and a linear stretch, with RMS 1.04 times the stated reference-error scale in Section S6.6. The corollary uses constant shifts and two population predictors, one an unshrunk oracle. The reported crossings are instead for the median RMSE ratio of two trained methods, and at 10 dB the empirical 3.6 ms is above the model's 3.0 ms. The SI explains why. One sentence in the main text can carry the distinction.
3. **Ll. 268–270, 761–792:** “Only if … at every frequency” can be read as saying a positive *integrated* advantage requires a positive integrand everywhere. The proof instead shows that at or above the σ/√2 threshold **all** nonzero frequencies are penalized sufficiently to erase the oracle advantage. The bound is necessary for a positive integral in the stated model, not a sufficient per-frequency criterion. State the bound for a nontrivial positive error and spectrum. At ll. 627–630 the ideal band operator and its Butterworth implementation are already distinguished.
4. **Ll. 127–133, 411–426:** Consider bringing the independent-reference sensitivity at Volve F-11 T2 into the main field section. Appendix SB.2 reports 0.31–0.51 p.u. changes over reference choices versus a 0.12–0.29 p.u. spread between methods under a given reference. The rankings change. This is direct, appropriately limited field evidence about the comparison design. Mention the differing supported samples (20–24), which can also change the scores. In Section S6.7, label Teapot’s “3 + 11” comparison and Appendix SB.3’s 1.5 ms planning tolerance as results of the original nominal calculation, since the current calibrated calculation gives 18 wells with an exact reference for the illustrative −5 dB cell.
5. **Ll. 200–202, 443–446:** A 6 Hz high-pass defines the analysis band. It does not establish the frequencies at which the learned predictor is resolving seismic-supported property variations. In Appendix SC's 6–25 Hz sensitivity, only 24–63% of the nominal gain remains at c = 1. A sentence in the main Limitations would distinguish bandwidth of the metric, bandwidth of the blur test, and where the nominal comparison gains arise.
6. **Ll. 381–383:** The claim that wavelet-coefficient methods “contain this case” should refer to increased phase flexibility, subject to priors, resolution and a tie–wavelet trade-off. An omitted journal paper compares free-phase and constant-phase wavelet estimates and explicitly examines overfitting by cross-validation. This is a natural reference for the failure interpretation and the proposed follow-up at ll. 470–473. [Zabihi Naeini, Gunning and White, Well tie for broadband seismic data](https://doi.org/10.1111/1365-2478.12433).
7. **Ll. 72–87 and Section S2:** The novel element is supervision of a learned predictor with labels transported by a physical tie posterior. The authors’ prior-art paragraph says Delivery is known from the title. Its accessible abstract describes posterior inversion models using uncertain layer times initialized from picks. Describe this as related treatment of timing in Bayesian inversion and distinguish it from training a generalizing seismic-to-property predictor. The claim about Di and Abubakar's automated tie at ll. 68–72 agrees with that paper's publisher abstract. [Gunning and Glinsky, Delivery](https://doi.org/10.1016/j.cageo.2003.10.013), [Di and Abubakar, Automating seismic-well tie via self-supervised learning](https://doi.org/10.1111/1365-2478.13333).
8. **Ll. 31–47 and 581–617:** The submission layout is legible, gives separate tables and figure legends, and supports review with numbered lines. The guide asks for a self-contained abbreviation-free abstract. “F3” is a survey identifier, and “the Netherlands offshore F3 survey” on first use would make it intelligible to the abstract's intended audience. Define “anchors” there as noisy depth–time markers. In Fig. 2b the twofold protocol non-rejection region dominates the scale; a small zoom or exact point/interval text would convey the precision on which l. 31 relies. The one-figure-per-page rendering is consistent with the supplied guide. Figures 3 and 5 will need legible cells at the published page width.
## Strengths
- The physical question, the direction-of-error distinction and the explicit treatment of a misregistered scoring reference fit *Geophysical Prospecting* well. The blur and reference-bias derivations give interpreters a quantitative link between millisecond-scale misties and frequency-dependent effects.
- Experiment 1's failure is reported alongside the later design. The nominal study has a new-realization repeat, development-only checkpoint selection, exploratory equal-budget and same-target comparisons, and sensitivity to interval construction in Appendix SC. Table 7 discloses both verdict readings when the implementation and locked comparison wording differ. The dependent cells are not treated as independent confirmations.
- The stronger wavelet misspecification has clearly adverse RMSE intervals (Table 6), and the study reports the failure of a proposed diagnosis. The two-mode study clearly identifies the artificial case in which the bank contains the true warp and treats it as a mechanism illustration.
- The F3 sonic-derived target and scoring-reference limitations are explicit, and Volve includes a slot-level hold-out and a simple training-mean comparator. The main field interpretation is appropriately restrained.
- Public truth, documented splits, the named scorer, checksums, archived results and distinct clean-room and training procedures give the study good reproducibility potential. I checked the documentation and manuscript, without executing the analysis or independently checking the archived files.
## Confidential comments to the editor
The timing problem and the negative results are of interest to the journal's quantitative-interpretation readership. The main contribution is a controlled intervention on the timing of supervised labels, supported by two synthetic realization sets and appropriate disclosure of the field limitations. I would invite revision without requiring another field campaign or a broader leaderboard. Require the corrected power estimand and test scope, correction of the per-window invariance argument, and claims that track the displayed intervals and comparator sets. Improvements against the original restricted baselines and the strong synthetic wavelet failure remain publishable findings after these changes. This is an independent simulated report.
## Files read
- `docs/research/gp-referee/PROMPT.md` (review instructions)
- `paper_gp/main.tex`
- `paper_gp/main.pdf` (46-page snapshot reviewed before the subsequent prose corrections, with Figures 1–6 and Table 2 including ΔPCC)
- `paper_gp/supplement.tex`
- `paper_gp/supplement.pdf`
- `paper/sections/02_related.tex`
- `paper/sections/03_data.tex`
- `paper/sections/04_method.tex`
- `paper/sections/05_theory.tex`
- `paper/sections/06_experiments.tex`
- `paper/sections/A_proofs.tex`
- `paper/sections/B_field.tex`
- `paper/sections/C_record.tex`
- `paper/refs.bib`
- `benchmark/README.md`
- `repro/README.md`
- `paper_gp/Geophysical Prospecting.pdf`
- Published sources consulted by short topic keywords are linked in the minor comments.

View File

@@ -0,0 +1,80 @@
# Referee prompts for the Geophysical Prospecting submission (`paper_gp/`)
Prompts for independent simulated referee reports on the current `paper_gp/` version (16/11/2026).
Round 1 is an independent review. Round 2 is a cross-review: each referee reads the other reports and responds.
Replace the placeholders `{{REFEREE_ID}}` (for example `GP-C`), `{{PERSONA}}` and `{{OTHER_REPORTS}}`.
The agent's working directory must be the repository root.
Persona examples:
- an applied geophysicist working on well ties, seismic inversion and quantitative interpretation;
- a statistician working on measurement error, uncertainty quantification and inverse problems;
- a machine-learning researcher who builds benchmarks and evaluation protocols for geoscience;
- a petrophysicist and reservoir-characterization practitioner who uses well logs and porosity models in field studies.
Files used so far: `GP-A_*.md`, `GP-B_*.md` (two Fable referees, 16/11/2026); `GP-C_round1.md` (external model, main PDF and guide only, no SI, no cross-review; 16/11/2026). Consolidated review and revision plan: `review-and-revision-plan.md`.
---
## Round 1 prompt (independent review)
You are a referee for *Geophysical Prospecting* (EAGE/Wiley). The editor has sent you a submitted manuscript, an Original Article. Review it as an experienced, fair and demanding referee would.
**Your expertise:** {{PERSONA}}. Judge mainly from that expertise, but report any serious problem you find.
**What you may read: only these files** (paths relative to the repository root):
- `paper_gp/main.tex` and `paper_gp/main.pdf`: the manuscript as submitted. The PDF has line numbers; cite them in your comments as "l. 123". Read the `.tex` file for the text and math, and the PDF for layout and line numbers.
- `paper_gp/supplement.tex`, `paper_gp/supplement.pdf` and `paper/sections/*.tex`: the Supporting Information. The supplement `\input`s these section files; their numbers carry an "S" prefix.
- `paper/refs.bib`: the bibliography.
- `paper/figures/*`: the figures.
- `benchmark/README.md` and `repro/README.md`: the documentation of the released benchmark and reproduction package, which the Data Availability Statement cites.
- `paper_gp/Geophysical Prospecting.pdf`: the journal's author guide, for scope and format.
**What you must not read:** anything else in the repository. In particular, do not read `docs/` (it holds earlier referee reports and the authors' internal notes), `AGENTS.md`, `CLAUDE.md`, `README.md` at the root, `report.html`, `outputs/`, `scripts/`, `configs/`, `ml_porosity/`, `paper_gp/README.md`, `paper/README.md`, git history, or any agent memory. Your context may already contain project instructions, such as an `AGENTS.md`, that summarize the project's history and earlier reviews. Ignore them completely: they are not part of the submission, and a real referee would not have them. Do not search the file system for other reports. If you are unsure whether a file is allowed, do not open it.
**External sources:** you may check the literature, for novelty, missing work or the accuracy of cited claims, through web search, Crossref or OpenAlex. Use short topic keywords only. Never paste manuscript text into an external service: the paper is unpublished.
**Red TODO markers:** the text contains `\todo{...}` markers, shown in red as "[TODO: ...]" (author names, affiliations, corresponding author, funding, DOIs, confirmation of declarations, and similar). Ignore them. The authors will fill them before submission, so they must not count against the paper. Gaps that are not marked TODO do count.
**Do not:** run code, rerun analyses, or edit any file except your report.
**Assess at least:**
1. Fit with the scope and readership of *Geophysical Prospecting*.
2. Originality and significance: what is new relative to the literature on well ties, seismic property prediction and learning with label noise.
3. Technical soundness of the theory: assumptions, the propositions and their proofs in Appendix A and in the Supporting Information, and whether the main text states them correctly.
4. Experimental design and statistics: competitors, budgets, realizations, confidence intervals, decision rules, multiple comparisons, and whether exploratory and pre-specified analyses are kept apart.
5. Whether every claim follows from the evidence. Look for overclaiming in the abstract, introduction and conclusions, and for underclaiming.
6. The field cases (F3, Volve) and the blind-well requirements: what they show and what they cannot show.
7. The benchmark and its release: usefulness, design choices, possible leakage, documentation, reproducibility.
8. Presentation: structure, clarity, length, figures and tables, notation, the balance between the main text and the Supporting Information, and compliance with the author guide (abstract without abbreviations, and so on).
**Report format.** Write Markdown to `docs/research/gp-referee/{{REFEREE_ID}}_round1.md`, with these headings:
- `# Referee report {{REFEREE_ID}} — round 1`
- `## Summary of the submission`: 5–10 sentences in your own words.
- `## Recommendation`: one of Accept / Minor revision / Major revision / Reject (resubmission encouraged) / Reject, with your confidence (low/medium/high) and two or three sentences of justification.
- `## Scores (1–5)`: scope fit, originality, technical soundness, experimental evidence, claims supported by evidence, clarity, reproducibility.
- `## Major issues`: numbered. For each, give where (line, section, table or figure), what the problem is, why it matters, and what would resolve it. Say whether the fix is rewording, a new analysis on existing results, or a new experiment.
- `## Minor issues`: numbered, with line numbers.
- `## Strengths`
- `## Confidential comments to the editor`
- `## Files read`: every file you opened, so that the editor can check that you kept to the allowed list.
Be specific and verifiable. Quote the passage you object to. When you say a number is inconsistent, give both values and where they appear. Do not invent problems. If a check confirms that something is correct, you may say so briefly.
When done, reply with the path of the report, your recommendation, and the three most important issues in one line each.
---
## Round 2 prompt (cross-review)
You are referee {{REFEREE_ID}}. The editor has sent you the other referees' reports on the same manuscript: {{OTHER_REPORTS}}. You may read those files, your own round-1 report and the files allowed in round 1. Nothing else.
Write `docs/research/gp-referee/{{REFEREE_ID}}_round2.md` with these headings:
- `# Referee report {{REFEREE_ID}} — round 2 (cross-review)`
- `## Agreements`: points raised by others that you endorse, with a brief reason.
- `## Disagreements`: points you think are wrong, overstated or already handled in the manuscript. Check each against the text and give line numbers.
- `## Points I missed`: valid points from others that change your assessment.
- `## Revised recommendation`: recommendation, confidence, and what changed and why.
- `## Consolidated must-fix list`: at most 8 items you consider necessary for acceptance, in priority order, each marked rewording / analysis on existing results / new experiment.
- `## Files read`
Do not change your position just to agree. Change it only when the text supports the other referee. When done, reply with the path, the revised recommendation, and any change from round 1.

View File

@@ -0,0 +1,48 @@
# Numerical audit of the GP revision
The comparison for this revision uses `eff975c`, the first Git revision containing
`paper_gp/`. The pre-revision article was also recovered from Claude’s local file
history, session `f781249b-e76d-4ba7-9cec-051f95408202`, snapshot
`e8eea7d6772dc4c3@v2` (SHA-256
`c6b4dfb6f3d971c3564e9c4e351490d2695898c75f9d97877a145a7ea5a555b0`).
The same extraction counts 798 numeric tokens in that snapshot, 1,249 in
`eff975c` and 1,479 in the current article. Counts include numeric LaTeX
arguments and reference numbers as well as scientific values.
Run from the repository root with the derived outputs present.
```bash
python3 paper_gp/check_numbers.py
(cd paper_gp && python3 check_si_refs.py)
```
The guard fingerprints the numeric sequence in the GP article and both edited SI
sections. It checks the Experiment 3 verdict table and Appendix A against Git, the
citation sequence, equality of the two abstracts, and byte equality of the
remaining 22 manuscript source, bibliography, style and figure files covered by
the baseline. The guard also checks every cell in six main-text results tables
against its keyed source, including row labels, analysis status, and display
rounding. The source checks supplement the Git comparison because the first
commit already contained the E1, misspecification and per-well tables.
## Evidence for the edits
| Material | Saved evidence and reading |
|---|---|
| F3 audit | `outputs/td_qc.csv` gives the integrated-sonic errors, 36.5 ms for the distributed OpendTect model and 44.6 ms for the second time–depth model as within-window maxima relative to markers. `outputs/marker_vs_horizon.csv` supplies the 18 pairs, scaled MAD 6.9 ms and sample SD 16.5 ms. `paper/sections/03_data.tex`, its audit table and `outputs/d1/` give the four-well sonic target definition and the measured-density comparison. |
| Posterior-mean comparison | `outputs/{p2r,replication}/summary/h2a.csv`, `c = 1`, `B3d-Sa`, `point_ties`, full anchors. All six original percentile intervals lie below unity. Only 10 dB with 16 training wells lies fully below the 0.90 RMSE margin. The Pearson differences are descriptive point estimates. The zero-drift ratios retain the locked summary. |
| Point ties | `outputs/point_tie/ratios.csv` comparisons B, C, A and D, and `outputs/gp_review/e4/ratios.csv` comparison E4-2, all at `c = 1`. The main text distinguishes the original 12 full-anchor comparisons over `c = 0,1` from the 10 replication cells at `c = 1` including the sparse-anchor regimes. |
| Anchor uncertainty | `outputs/p2r/summary/{sigma_a,sigma_post,h2a}.csv` and `outputs/replication/summary/{sigma_a,sigma_post}.csv`. At −5 dB, stated uncertainty 3.5 ms and 16 training wells, `warp_rmse_ms = 5.934973…` rounds to 5.93, previously printed as 5.94 in the SI. The corrected value appears in both versions. |
| Anchor error and bulk stress | `outputs/gp_review/e1/summary/{ratios,p4_posterior}.csv`. At correctly stated 2 ms and 16 training wells the ratio is 0.969 [0.961, 0.979], so a small improvement remains. All six bulk-error point estimates exceed unity, with one interval crossing unity. This stress uses misfit independent-error ties under a shared bulk component. |
| Practitioner, equal-budget and optimized comparisons | `outputs/gp_review/e2/h2a_with_b3p.csv` and `e2/ratios.csv` establish the 10 dB range and show a practitioner denominator at lower signal-to-noise ratios. The five-of-six result uses the locked deterministic set plus the practitioner tie. `e6/h2a_by_budget.csv` uses the locked set for the three budgets. `e4/reading.json` and `e4/ratios.csv` show nine intervals containing unity when comparing the SMC mean and optimized point tie. |
| Bank gain, transfer and theory scope | `outputs/{p2r,replication}/summary/h2b.csv` gives the four original ratios and intervals at `c = 1`, `N = 16` and the repeated gains. `outputs/gp_review/{a3,a8,a9}/`, `outputs/gp_review/e5/`, `outputs/p2/summary/main/h1.csv` and `outputs/p2r/posthoc/meta.json` trace the blur, pooled-error comparison, Gaussian bank and mean-label results introduced in the previous GP edit. The fourth-order statement in the abstract now specifies Gaussian shifts and the weak-tempering population limit. |
| Misspecification and field tables | `outputs/bench/summary/{s2_h2a,s2_smc}.csv` and `outputs/gp_review/a7/a7_wells.csv` feed scripts 56 and 55. The generated LaTeX rows matched the manuscript, and the clean room regenerated both files byte for byte. The Experiment 3 verdict entries and all gate thresholds are preserved. |
| Blind-well power | `outputs/gp_review/a6/a6_nstar.csv` and `outputs/r6/a1_nstar.csv` give the calibrated sign-test counts. The power calculation uses pooled win rates across realizations and within-realization correlation, as implemented in scripts 27 and 48. Four of six settings reach 80% by 40 wells at an exact reference, two at 1 ms and zero at 1.5 ms. The abstract and conclusion now identify that test and the 40-well search. |
The guard detects changes to the audited values and checks the displayed tables.
It does not revalidate every historical claim from raw data or certify a proof.
The fresh [GP-D report](GP-D_round1.md) reviews those scientific questions. It
records its findings against the snapshot circulated for review, before the
pooled-power and small-effect wording were corrected. The proof concern about
window-level aggregation and the remaining interpretive and release issues are
open for the next revision.

View File

@@ -0,0 +1,30 @@
# Response to the simulated referee reports GP-A, GP-B and GP-C (17/11/2026)
Written for: the authors, as the basis of a response letter; the referees are simulated (two Fable subagents and one external model), not journal referees. Numbers come from `docs/research/gp-review-results.md` and `outputs/gp_review/`. All new analyses were declared and hashed before computing (`gp-review-experiments.md`, `gp-review-analyses.md`) and sit outside every locked protocol.
## 1. Self-contained article
The GP article now carries the nominal and replication intervals, point-tie comparisons, anchor sensitivity, misspecification, per-well results and verdicts. It defines the point-tie and alignment competitors and explains the F3 timing audit and sonic-derived label. Theory statements and proofs are in Appendix A.
## 2. Headline against the best point tie of any kind
The 8–22% gain is stated against the best deterministic tie; the best saved particle (same SMC model, a point tie) beats it in all cells and posterior averaging adds at most 3%. New: (E2) a practitioner-grade tie tuned on development realizations has 1.05–1.22 times the correlation tie error at 10 dB and is the lowest-error deterministic tie in some noisier cells. With it added, the SMC mean meets the rule in five of six cells in each realization set; (E4) a point tie that optimizes the SMC target itself beats the best deterministic tie in 12 of 12 cells (0.79–0.91) and the interval against the SMC mean includes one in nine cells; (E6) the gain holds at 125, 250 and 500 iterations (6 of 6 cells each). The abstract says so.
## 3. The anchor-noise model and the true sigma_a (E1, realizations 24–31)
This changes the claim. With independent anchor noise of 4 ms, stated correctly, the SMC mean is 0.930 and 0.915 times the best tie; at 2 ms 0.979 and 0.969; at 1 ms 0.987 and 0.989 (both intervals include one); with a per-well bulk error of 5 ms added to 2 ms noise it is 1.05–1.30 times the best tie for every stated sigma_a, with an overconfident posterior (coverage 0.48–0.63). The largest gains in this stress study occur with independent errors of 4–7 ms. At 2 ms and 16 training wells the ratio remains below unity, 0.969 [0.961, 0.979]. The abstract, Experiment 2, Limitations and Conclusions say this; "the gain requires a correct sigma_a" became "is sensitive to a twofold misstatement in either direction (at 10 and −5 dB)".
## 4. Theory versus experiments (GP-C)
(a) The label at the posterior-mean warp and the posterior mean of the labels are now kept apart in Methods and Theory; Experiment E5 trains on the latter with the Gaussian likelihood: it improves on the SMC mean by 0.8–1.7% in six of eight wide cells (3.1% and 11.9% in two), and the bank improves on it in seven of eight, so the bank gain is not only that correction. (b) The fourth-order statement is restricted to Gaussian, data-independent shifts, a calibrated bank and lambda → 0; rho* is called a population limit. (c) Figure 4b: recomputing from pooled errors changes no point by more than 0.011 and none crosses the diagonal (A8). (d) The 67–72 Hz band of the limits lies outside the 6.8–22.5 Hz in which blur was verified; stated. (e) The Gaussian-bank count was wrong ("within 2.5% in three of four"): all four ratios are 0.0–2.1% above the bank, the interval of the difference includes zero in three (A9). Corrected.
## 5. Misspecification
Pass counts are replaced by the misspecification table (ratio, interval, warp error, coverage per preset); the wavelet phase is named the worst case. A5: truth-free posterior checks do not separate failing from passing presets.
## 6. Blind-well requirements
The text distinguishes the target for a fixed pair of predictors from power computed over pooled synthetic realizations. The assumptions of the sigma/sqrt(2) condition, the unobservable intraclass correlation and the 18 degrees phase equivalent of 1 ms at 50 Hz are stated; the numbers are conditions for a powered test in this benchmark, not a standard. Wilcoxon and t tests need 25–50% fewer wells (A6).
## 7. Field cases
A per-well table for F3 and Volve; the lack of power is tied to the failed blind-well skill condition.
## 8. Smaller points
"Scaled MAD" (6.9 ms; raw MAD 4.65 ms, SD 16.5 ms over 18 pairs); Balakrishnan citation; Di & Abubakar 2023 cited; "<7%" versus Table S7 reconciled; "hash-locked" wording; AI statement no longer claims that every citation was checked.
## 9. Not done
A3 met its declared sufficiency rule for the proposed E3 arm (104 of 140 powered combinations within ±10%). A correlated-anchor inference model and a separate replication of Experiment 3 remain outside these results. Scorer v1.1 is documented. The GP revision results are archived with six clean-room stages in [repro/README.md](../../../repro/README.md). The new independent [GP-D report](GP-D_round1.md) recommends major revision.

View File

@@ -0,0 +1,220 @@
# Vòng chấm GP (16/11/2026): tổng hợp ba referee và kế hoạch sửa
Bản được chấm là `paper_gp/main.tex` + `main.pdf` (37 trang), viết lại theo guide live (plan §12 ý 57), kèm SI `paper_gp/supplement.pdf` (80 trang).
Báo cáo gốc nằm cùng thư mục: `GP-A_round{1,2}.md`, `GP-B_round{1,2}.md` (Fable), `GP-C_round1.md` (mô hình ngoài "6.1 sol").
Tổng hợp riêng vòng Fable: `summary.md`. Prompt dùng lại: `PROMPT.md`.
Tài liệu này chưa sửa gì trong bài. Kế hoạch ở §5 chờ người dùng chọn (§6).
---
## 1. Ba referee
| | GP-A (Fable) | GP-B (Fable) | GP-C (6.1 sol) |
|---|---|---|---|
| Chuyên môn | well tie, inversion, QI | thống kê, UQ, benchmark | tổng quát, địa vật lý thăm dò |
| Đọc gì | bài + SI + `paper/sections` + README | như GP-A | chỉ PDF chính + guide, **không có SI** |
| Chấm chéo | có (vòng 2) | có (vòng 2) | không |
| Kết luận | Major (2 vòng) | Major (2 vòng) | Major |
| Điểm | 4/3/3/3/3/2/4 (thang 5) | 4/3/3/3/3/2/4 (claims 4→3 ở vòng 2) | 7/10. Phù hợp 9, mới 7.5, lý thuyết 6.5, thiết kế 7, thực địa 4.5, trình bày 7 |
| Lỗi chứng minh | không | không | không nêu lỗi; nêu A4 bị dùng ngoài phạm vi |
Ba referee độc lập cùng cho Major revision, không ai hướng tới reject. Cả ba công nhận câu hỏi phù hợp với GP, novelty đứng vững và bài trung thực về kết quả âm.
Giới hạn của vòng chấm:
- Có thể `AGENTS.md` đã được nạp tự động vào ngữ cảnh của các subagent Fable.
- GP-C không có SI, nên vài yêu cầu của GP-C đã có lời đáp trong SI hoặc trong `outputs/` (xem §3).
---
## 2. Ma trận đồng thuận
✓✓ = nêu thành must-fix; ✓ = có nêu; – = không nêu.
| # | Vấn đề | GP-A | GP-B | GP-C |
|---|---|---|---|---|
| I1 | Bài không tự đứng được: bằng chứng headline nằm ở SI (S9, S10, S15, S17) | ✓✓ | ✓✓ | ✓ (không có SI nên chỉ thấy phần trong bài) |
| I2 | Headline nên so với point tie tốt nhất mọi loại. "Mode" chưa được định nghĩa và chỉ là particle tốt nhất. SMC đóng góp bao nhiêu? | ✓✓ | ✓✓ | ✓✓ (cùng hàm mục tiêu, warp RMSE ms, RMSE p.u.) |
| I3 | Mô hình nhiễu anchor độc lập 7 ms chỉ là giả định; σ_a thật chưa bao giờ được thay đổi | ✓✓ | ✓✓ | ✓ (7 ms là con số dựng simulator) |
| I4 | Thiếu tie đạt chuẩn thực hành hoặc tie làm trơn anchor | ✓✓ | ✓ | ✓ (cách chọn "best deterministic tie") |
| I5 | Phạm vi lý thuyết: A1 là kết quả kinh điển; "within 1%" bỏ qua σ = 32 ms; "<7%" mất điều kiện proxy; bậc bốn chỉ đúng khi λ → 0; A4 lẫn nhãn trung bình với nhãn tại warp trung bình; A11 dùng MSE gộp, còn đánh giá dùng RMSE trung bình theo giếng | ✓✓ | ✓✓ | ✓✓ (A4, A11, λ, 67–72 Hz vs 6.8–22.5 Hz) |
| I6 | Blur arm một shift mỗi giếng; so transfer dự đoán với transfer đo cho từng tie | ✓ | ✓✓ | ✓ (phổ seismic, nhãn và Oracle trên cùng trục; RMSE giới hạn trong băng) |
| I7 | Sai mô hình phải đặt ngang hàng với gain danh nghĩa | ✓ | ✓✓ | ✓✓ |
| I8 | Yêu cầu blind-well: estimand; 1 ms có đạt được không; đường power theo số giếng × σ_ref | ✓✓ | ✓✓ | ✓✓ |
| I9 | Effect size: CI thận trọng; Table 2 cùng budget; đánh dấu dòng locked, khám phá, replication; RMSE tuyệt đối theo p.u.; bớt ngôn ngữ pass/fail | ✓ | ✓✓ | ✓ (CI ghép cặp vào bài; ghi chú verdict là post hoc) |
| I10 | Field: bảng theo giếng; predictor không có kỹ năng nên phép so sánh không có power | ✓ | ✓ | ✓✓ |
| I11 | Phát hành: scorer thiếu anchor mean; `repro/README.md` thiếu các phân tích sau review; README dùng số mục của bản thảo khác; Data Availability Statement nói quá | ✓ | ✓✓ | – |
| I12 | Tổng quan tài liệu: định vị so với Di & Abubakar 2023 (GP) | – | – | ✓ |
| I13 | Kiểm tra không cần truth (posterior predictive, residual anchor đã chuẩn hóa, phổ residual) | ✓ | ✓✓ | – |
| I14 | Lỗi nhỏ: White "Rachel E."; câu khai báo AI; thanh màu và legend Hình 5 | ✓ | ✓ | – |
Theo GP-C, hai việc nặng ký nhất cho vòng sau là I5 (cho định lý, loss và metric khớp nhau) và I2 (đối chứng cùng mô hình tie). Danh sách must-fix của GP-A và GP-B gần trùng nhau, ưu tiên I1 > I2 > I3 > I4 > I5 > I8 > I9 > I11.
---
## 3. Kiểm chứng các nhận xét
Đối chiếu với `paper_gp/main.tex`, `paper/sections/`, `configs/` và `outputs/` ngày 16/11/2026.
### Referee đúng (cần sửa)
- **A4 và "SMC mean" là hai đối tượng khác nhau (GP-C, đúng).**
- Mệnh đề A4(a) nói về nhãn trung bình của bank, \(\bar y = \sum_s \pi_s y^{u_s} = \mathbb E[y(t)\mid D]\) (dòng 424 trong `paper_gp/main.tex`).
- Phương pháp "SMC mean" lại dùng nhãn tại warp trung bình, \(y^{\mathbb E[u\mid D]}\) (legend Hình 4, dòng 307).
- Bài chưa nói rõ khác biệt này. Phần kiểm Berkson và \(\rho^\star\) đang áp dụng cho "SMC mean" một phát biểu viết cho \(\bar y\).
- **"<7% of the seismic-band variance remains" (GP-A, GP-B, GP-C; đúng).**
- `paper/sections/05_theory.tex` l. 60 có điều kiện "with the F3 seismic amplitude spectrum as a proxy for the recoverable band" và câu nói rằng con số được tính theo phổ seismic, không theo phổ của predictor.
- `paper_gp/main.tex` đã bỏ cả hai. Table S7 (theo phổ predictor) cho khoảng 51%.
- **"matched the predicted blur to within 1% below 23 Hz" (abstract; đúng).**
- Con số là trung bình hình học trên 6.8–22.5 Hz ở σ = 4, 8, 16 ms.
- Ở σ = 32 ms, r = 1.093.
- Thí nghiệm dùng jitter theo cửa sổ với loss MSE, không phải một shift mỗi giếng.
- **"The mode" (đúng).** Đây là particle tốt nhất theo tempered target trong các particle đã lưu. Chỉ ghi chú của Table 2 định nghĩa nó. Chưa ai chạy tối ưu thật của hàm mục tiêu.
- **Budget không bằng nhau (GP-B, đúng).** Mỗi phương pháp chọn budget riêng trên dev, trong tập {125, …, 2000} (dòng 125). Table 2 so các phương pháp ở budget khác nhau.
- **Di & Abubakar 2023 (GP-C, đúng).** `di2023welltie` có trong `refs.bib` (Crossref đã kiểm) nhưng `paper_gp/main.tex` không trích dẫn.
- **Lỗi nhỏ (đúng, đã kiểm ở `summary.md`).**
- White: "Rachel E." phải là "R. E.".
- Câu khai báo AI "every citation against its source" nói quá, vì một số tài liệu chỉ đọc abstract.
- Hình 5: thanh màu ghi "best point tie", legend ghi "best deterministic tie".
- **"c = 1 reproduces F3" (GP-A).** Chỉ đúng với drift. Cần ghi rõ phạm vi.
### Referee nói chưa chính xác (sửa lời, không phải sửa kết quả)
- **"7 ms là median absolute difference, tương ứng khoảng 10 ms Gaussian" (GP-A, vòng 1).** Không đúng.
- Tính lại trên `outputs/marker_vs_horizon.csv` (18 cặp): MAD thô quanh median là 4.65 ms; MAD đã nhân 1.4826 (ước lượng σ bền) là 6.9 ms, khớp với chú thích trong `configs/d2_synth_bench.yaml`.
- Median |Δ| là 5.7 ms; độ lệch chuẩn mẫu là 16.5 ms, vì có giá trị ngoại lai.
- Lỗi nằm ở chữ trong bài: `03_data.tex` viết "the median absolute deviation (MAD) … is 6.9 ms", trong khi 6.9 là MAD đã chuẩn hóa. Cần ghi "scaled MAD (robust σ)".
- Nên nêu thêm SD 16.5 ms để người đọc thấy đuôi dày.
- Điểm cốt lõi của referee vẫn đúng: marker là pick của horizon tie, nên chênh lệch này đo độ nhất quán giữa các pick, không đo sai số anchor so với thời gian thật.
- **GP-C nói misspecification "cần đưa vào bài".** Bài chính đã có coverage 0.17/0.10 và tỉ số 1.22–1.39 (dòng ~180). Phần còn thiếu là vị trí: đưa vào bảng chính, cạnh 8–22%.
- **GP-C muốn so nhãn tại warp trung bình, nhãn trung bình posterior và bank λ ≈ 0.37.** Phần lớn đã có trong arm λ → 0 (`outputs/lambda_limit/`, realizations 8–15):
- `B3d-Sa` (warp trung bình), `M2-Sa` (bank λ ≈ 0.37), `Bank-lam0` (λ → 0), `Mean-MSE` (nhãn trung bình posterior với loss MSE).
- Chỉ thiếu nhãn trung bình posterior với loss NLL. Hiện label và loss đang lẫn vào nhau, đúng như limitation đã ghi.
- **GP-C muốn warp RMSE theo ms.** Đã có trong `outputs/point_tie/warp_errors.csv`. Ví dụ R0, c = 0: SMC-MAP 0.69–0.76 ms, Anchor-LS 1.6–1.7 ms, SMC mean 0.44–0.56 ms. Correlation tie (B3c) chưa có cột này.
- **GP-C muốn đường power theo số giếng × σ_ref.** Lưới đã có:
- `outputs/t3/power.csv`: sign test và k-of-n, theo σ_ref × n_test.
- `outputs/referee_r5/f2_power.csv`: sign, Wilcoxon, t, n = 4–40.
- `outputs/r6/a1_power.csv`: sign test hiệu chỉnh tương quan.
- Chỉ thiếu hình trong bài chính.
### Đã có trong SI, chỉ cần đưa lên bài
- CI percentile, BCa và t cho các tỉ số chính: `outputs/referee_r5/c1_intervals.csv`.
- Kết quả per-well của F3 và Volve: `outputs/p3/`, `outputs/p4/summary/`, `outputs/referee_r5/f1_wells.csv`.
- Phổ băng của nhãn F3, nhãn synthetic và Oracle: `outputs/band_spectra/table.csv`. Còn thiếu phổ seismic trên cùng trục.
- Dự đoán từng seed: `outputs/p2r/train/*/cells/*.npz`. Particles: `outputs/p2r/posterior/`.
Có thể đo transfer cho từng phương pháp (I6) và kiểm tra không cần truth (I13) mà không cần huấn luyện lại.
---
## 4. Phán quyết của biên tập ở các điểm bất đồng
1. **Mức độ của sai mô hình.** GP-A thấy đa số preset giữ được hướng gain. GP-B thấy chỉ cần lệch khỏi mô hình đầu tiên là gain đảo chiều. Cả hai đều đúng một phần:
- rock physics: gain vẫn còn nhưng không đạt ngưỡng (0.940/0.934);
- drift: đạt;
- phase wavelet: đảo chiều (1.023/1.042; ở mức mạnh 1.22–1.39), và posterior quá tự tin (coverage 0.17/0.10).
Phán quyết: thay đếm pass bằng một bảng theo preset (tỉ số, CI, coverage), đặt cạnh gain danh nghĩa. Nói rõ phase wavelet là hỏng hóc nặng nhất.
2. **σ_a.** Câu "the gain requires a correct anchor uncertainty" mạnh hơn bằng chứng: ở 14 ms CI là [0.867, 1.004], và fit chạm biên. Phán quyết: viết lại thành "gain nhạy với σ_a sai lệch gấp đôi theo cả hai hướng, ở 10 và −5 dB". Thí nghiệm σ_a thật thay đổi (E1) là việc cần làm nếu muốn giữ claim benchmark có ý nghĩa thực địa.
3. **Bậc bốn và λ.** Lý thuyết dùng λ → 0, còn thí nghiệm dùng λ ≈ 0.37. Arm λ → 0 cho thấy hai cái khác nhau đo được: SMC bank thắng λ → 0 ở 6/8 ô rộng, và λ → 0 giữ 55–63% gain. Phán quyết: abstract nói "in population, at λ → 0, for a calibrated bank". Thân bài nêu kết quả arm λ → 0 ngay chỗ so với ρ*. Gọi ρ* là giới hạn quần thể, không phải cận.
4. **1 ms.** GP-A đặt câu hỏi liệu 1 ms có đạt được không (1 ms ≈ 18° pha ở 50 Hz). GP-C sợ 1 ms bị đọc thành chuẩn chung. Phán quyết: nêu 1 ms như điều kiện để một blind test có power trong benchmark này (kèm estimand và giả định), không như chuẩn ngành. Thảo luận quan hệ pha–thời gian, và nói rằng bài không chứng minh 1 ms đạt được trên thực địa.
5. **Field (GP-C 4.5/10).** Không thể có field test mới (Teapot T0 thất bại; khảo sát dataset không tìm thấy dữ liệu đủ). Phán quyết: giữ vai trò "giới hạn phạm vi". Thêm bảng theo giếng và nói rõ C1 (không có kỹ năng blind-well trong băng seismic) là lý do phép so sánh không có power. Không chạy thêm field.
6. **Tie thực hành (I4).** Đây là điểm GP-A coi là quyết định. Phán quyết: nên chạy (E2), vì nếu không, mọi con số "vs best deterministic tie" đều phụ thuộc vào bộ tie do tác giả tự cài. Nếu người dùng không chạy, abstract phải ghi "relative to our implementations of deterministic ties".
---
## 5. Kế hoạch sửa
Quy tắc chung:
- Không sửa protocol đã lock. Không đổi verdict hay ngưỡng.
- Mọi phân tích mới, kể cả phân tích trên output có sẵn, phải khai báo và hash trong `docs/research/` trước khi tính, nằm ngoài mọi lock.
- Thiết kế và tinh chỉnh chỉ dùng dev 900–905.
- Sửa `paper/sections/` trước, rồi rebuild `paper/`, `paper_gp/supplement`, `paper_gp/main`.
- Sau mỗi giai đoạn chạy các guard: abstract giống hệt giữa `paper/` và `paper_gp/`; `paper_gp/check_si_refs.py`; guard số (số nào mất hoặc thêm phải có nguồn).
### Giai đoạn 0: sửa nhanh (≈ nửa ngày, không cần khai báo)
| ID | Việc | Nguồn | File |
|---|---|---|---|
| Q1 | `white2003goodpractice` → "White, R. E." | I14 | `paper/refs.bib` |
| Q2 | Thống nhất thanh màu và legend Hình 5 ("best deterministic tie" hoặc "best point tie", theo đúng nội dung) | I14 | `scripts/38_bench_figures.py` hoặc `22_paper_figures.py`, chỉ đổi nhãn |
| Q3 | Câu khai báo AI: "checked … citations against the full text where available and against the abstract otherwise" | I14 | `paper_gp/main.tex` |
| Q4 | Định nghĩa "mode" = particle có tempered target cao nhất trong 1024 particle đã lưu; đổi tên thành "best particle" ở abstract, thân bài và bảng | I2 | abstract, Sec. 6.3 |
| Q5 | Khôi phục điều kiện proxy cho "<7%" và đặt cạnh con số theo phổ predictor (khoảng 51%, Table S7) | I5 | `paper_gp/main.tex` Theory |
| Q6 | "within 1%" → "within 1% (geometric mean over 6.8–22.5 Hz) at σ = 4–16 ms; 9% at 32 ms"; nói rõ đó là jitter theo cửa sổ với loss MSE | I5 | abstract, Theory |
| Q7 | Ghi nguồn cho Mệnh đề A1: blur do jitter thời gian là kết quả kinh điển. Tìm và kiểm tài liệu bằng skill citation-management; không trích nguồn chưa kiểm | I5 | Theory, App. A, `refs.bib` |
| Q8 | Trích dẫn và định vị Di & Abubakar 2023 (tie bằng wavelet biến thiên theo thời gian; bài này nói về hậu quả downstream của sai số tie) | I12 | Introduction |
| Q9 | "MAD 6.9 ms" → "scaled MAD (robust σ) 6.9 ms; sample SD 16.5 ms"; nói rằng marker là pick, không phải check-shot độc lập | I3 | Data |
| Q10 | "c = 1 reproduces F3" → "reproduces the F3 drift range" | I3 | Data |
| Q11 | Định nghĩa "anchor", "zero-drift guard", "calibrated" ở lần dùng đầu | I1 | Methods |
| Q12 | Đánh dấu verdict post hoc ở Table 3 (hai verdict mà quy tắc lock trả kết quả khác hoặc không trả) | I9 | Table 3 |
### Giai đoạn 1: viết lại và sắp xếp lại (≈ 2–3 ngày, không có số mới)
| ID | Việc | Nguồn |
|---|---|---|
| W1 | **Bài tự đứng được.** Đưa vào bài chính: bảng compact S9 (H2a + CI), S10 (σ_a), S15 (misspec), S17 (point tie); định nghĩa các đối thủ; tóm tắt audit F3; câu "label là biến đổi của sonic". Kiểm giới hạn độ dài theo guide | I1 |
| W2 | **Headline.** Abstract và Conclusions: so với point tie tốt nhất mọi loại (2–22%), kèm 8–22% so với deterministic tie. "Tie model first, uncertainty second" giữ nguyên | I2 |
| W3 | **Bảng chính có cột trạng thái**: hash-locked / exploratory / replication / post hoc, cho mọi dòng của Table 2 và các bảng mới | I9 |
| W4 | **Misspecification cạnh gain danh nghĩa**: một bảng hoặc panel theo preset (tỉ số, CI, coverage90), không đếm pass | I7 |
| W5 | **Phạm vi lý thuyết**: (a) phân biệt \(\bar y\) với \(y^{\mathbb E[u\mid D]}\) ngay ở Methods và ở chỗ dùng A4; (b) bậc bốn chỉ đúng với Gaussian, dịch thời gian, bank hiệu chỉnh, λ → 0; (c) ρ* là giới hạn quần thể; (d) chú thích Hình 4b: đường chéo là chuẩn lý tưởng hóa, metric khác (MSE gộp vs RMSE trung bình theo giếng; xem A8); (e) 67–72 Hz nằm ngoài vùng đã kiểm | I5 |
| W6 | **σ_a**: viết lại câu claim theo phán quyết §4.2; l. 249 và l. 361–362 (đánh số theo PDF của referee) thành "nhạy với sai lệch gấp đôi" | I3 |
| W7 | **Blind-well**: estimand (có điều kiện theo mô hình đã huấn luyện, hay lấy biên trên các tập huấn luyện); ICC không quan sát được từ một field; điều kiện của σ_ref < σ/√2 (Gaussian, reference độc lập, Oracle không shrinkage); quan hệ pha–thời gian; trình bày con số giếng như kết quả benchmark, không như chuẩn | I8 |
| W8 | **Bớt ngôn ngữ pass/fail**: effect size + CI trước, verdict sau; bỏ p-value permutation theo ô | I9 |
| W9 | **Field**: bảng theo giếng (nguồn reference, cách chia, RMSE, PCC băng) cho F3 và Volve, từ output có sẵn; C1 là lý do không có power | I10 |
| W10 | **Gain của bank**: báo bốn giá trị theo ô kèm giá trị replication thay cho "2–11%"; ghi rằng 11% đến từ ô hai anchor quá tự tin; đối chiếu lại số đếm của Gaussian bank với Hình 3 | I9 |
### Giai đoạn 2: phân tích trên output có sẵn (≈ 2–3 ngày; khai báo và hash trước, một script mới `scripts/51_gp_review.py`)
| ID | Phân tích | Dữ liệu | Nguồn |
|---|---|---|---|
| A1 | Bảng mọi point tie vs Oracle ở c = 0 và c = 1: warp RMSE (ms), RMSE băng (p.u.), tỉ số với CI t và BCa; thêm warp RMSE của correlation tie | `outputs/point_tie/`, `outputs/p2r/`, `referee_r5/c1_intervals.csv` | I2, I9 |
| A2 | Table 2 cùng budget: so mọi phương pháp ở cùng số iteration, từ quỹ đạo đã lưu (P2r có bản ghi 500 iteration). Nếu quỹ đạo không đủ thì ghi rõ và để E-arm | `outputs/p2r/train/` | I9 |
| A3 | Transfer dự đoán vs đo cho từng phương pháp: dự đoán từ phân bố sai số warp đã biết (A1 của paper), đo từ cross-spectrum giữa dự đoán đã lưu và Oracle | `outputs/p2r/train/*/cells/*.npz`, particles | I5, I6 |
| A4 | Phổ seismic, nhãn và Oracle trên cùng trục; RMSE giới hạn trong băng có tín hiệu (ví dụ 6–25 Hz); tỉ lệ gain còn lại | `outputs/band_spectra/`, dự đoán đã lưu | I5, I6 |
| A5 | Kiểm tra không cần truth: residual anchor đã chuẩn hóa (z²), posterior predictive của trace tổng hợp, phổ biên độ và phổ pha của residual tie, trên synthetic (có truth để kiểm) và trên F3 | particles, `outputs/p3/` | I13 |
| A6 | Đường power theo số giếng × σ_ref cho sign test, Wilcoxon, t và sign test hiệu chỉnh tương quan; ghi đơn vị resampling | `outputs/t3/`, `referee_r5/f2_power.csv`, `r6/a1_power.csv` | I8 |
| A7 | Bảng theo giếng cho F3 và Volve | `outputs/p3/`, `outputs/p4/summary/`, `referee_r5/f1_wells.csv` | I10 |
| A8 | Hình 4b với cùng cách tổng hợp: tính lại tỉ số theo MSE gộp, so với RMSE trung bình theo giếng; xem điểm nào đổi phía của đường chéo | dự đoán đã lưu | I5 (GP-C) |
| A9 | Đối chiếu số đếm Gaussian bank ("3 of 4 within 2.5%") với giá trị trong Hình 3 | `outputs/t2/` | I9 |
### Giai đoạn 3: thí nghiệm mới (cần người dùng chọn; khai báo và hash trước; ngoài lock; tinh chỉnh trên dev)
Ước lượng thời gian rất thô, dựa trên các lần chạy trước (point tie: 17 phút; replication R6: khoảng nửa ngày GPU).
| ID | Thí nghiệm | Trả lời | Cỡ | Đề xuất |
|---|---|---|---|---|
| E1 | **σ_a thật thay đổi** (1, 2, 4, 7 ms) và **anchor có lỗi bulk theo giếng** cộng một phần sai khác nhỏ. Posterior SMC dùng σ_a đúng và σ_a giả định 7 ms. Arm hyperparameter cố định. Realizations mới (24–31) | I3, mối nghi chính của cả ba referee | lớn (≈ 1 ngày GPU) | **Nên chạy** |
| E2 | **Tie thực hành**: trích wavelet, stretch-squeeze có ràng buộc độ trơn và làm trơn anchor. Tinh chỉnh trên dev 900–905, rồi đưa vào nhóm "best deterministic tie" | I4 | vừa (≈ nửa ngày) | **Nên chạy** |
| E3 | **Blur arm một shift (hoặc một warp trơn) mỗi giếng**, loss NLL, N = 4 và 16; so transfer đo với transfer dự đoán | I5, I6 | vừa | Nên chạy (rẻ nếu A3 đủ, thì E3 là xác nhận) |
| E4 | **Tối ưu point tie cùng hàm mục tiêu SMC** (L-BFGS hoặc annealing từ particle tốt nhất), huấn luyện bằng nghiệm điểm. Tách đóng góp của mô hình tie với đóng góp của bộ giải SMC | I2 (GP-C ưu tiên 2) | nhỏ (≈ vài giờ) | **Nên chạy** |
| E5 | **Nhãn trung bình posterior với loss NLL**, so với `B3d-Sa` (warp trung bình), `M2-Sa` (λ ≈ 0.37), `Bank-lam0`, `Mean-MSE` đã có. Tách label khỏi loss | I5 (GP-C ưu tiên 1) | nhỏ | **Nên chạy** |
Không đề xuất: field test mới; thay đổi benchmark đã lock; replication thứ ba của Experiment 3.
### Giai đoạn 4: phát hành (≈ 1 ngày)
| ID | Việc |
|---|---|
| R1 | Scorer: thêm anchor mean vào nhóm đối thủ (thành phiên bản `v1.1` của scorer; không đổi hash nào của task; ghi vào `benchmark/README.md` và `MANIFEST`) |
| R2 | `repro/README.md`, `benchmark/README.md`: đánh số mục theo bài GP; liệt kê replication, point tie, −5 dB σ_a, sign test hiệu chỉnh và các phân tích của Giai đoạn 2–3 |
| R3 | `scripts/39_repro_package.py`: thêm output mới vào archive và verify stage. Nếu không kịp thì thu hẹp Data Availability Statement cho khớp |
| R4 | Phần khai báo bằng tiếng Anh; bỏ `annote` khỏi `refs.bib` bản nộp (plainnat không in, nhưng file `.bib` có thể bị gửi kèm) |
### Giai đoạn 5: kiểm tra và vòng chấm mới
1. Rebuild `paper/main.pdf`, `paper_gp/supplement.pdf`, `paper_gp/main.pdf`, rồi chạy guard abstract, `check_si_refs.py` và guard số.
2. Đồng bộ docs: `report.html`, `docs/plan.md`, `AGENTS.md`, `paper/README.md`, `docs/technical_overview.md`.
3. Viết response letter theo từng điểm của GP-A, GP-B, GP-C. Bản nháp dùng §2 làm khung.
4. Chạy vòng referee mới bằng `PROMPT.md` với referee chưa đọc các báo cáo này.
5. Cover letter.
---
## 6. Người dùng cần quyết định
1. Thí nghiệm nào ở Giai đoạn 3 sẽ chạy. Đề xuất: E1, E2, E4, E5 bắt buộc; E3 tùy kết quả A3.
2. Có đổi scorer sang `v1.1` không (R1).
3. Có cho làm Giai đoạn 0 ngay không. Giai đoạn 0 không đổi số kết quả nào.
4. Thứ tự đề xuất: Giai đoạn 0 → khai báo Giai đoạn 2 và 3 cùng lúc → chạy E4, E5 (nhỏ) song song với A1–A9 → E2 → E1 → Giai đoạn 1 viết lại theo kết quả → Giai đoạn 4 → Giai đoạn 5.
Lý do: Giai đoạn 1 phụ thuộc kết quả E1, E2, E4. Nếu viết lại trước thì phải viết hai lần.

View File

@@ -0,0 +1,41 @@
# Referee mô phỏng cho bản Geophysical Prospecting (16/11/2026)
Bản được chấm: `paper_gp/main.tex` + `main.pdf` (37 trang) và SI `paper_gp/supplement.pdf` (80 trang), sau khi viết lại theo guide live (plan §12 ý 57).
Hai referee Fable chấm độc lập rồi chấm chéo. Họ chỉ được đọc bản thảo, SI, `paper/sections/*.tex`, `refs.bib`, hình, `benchmark/README.md`, `repro/README.md` và author guide. Họ không được đọc `docs/` (các bài chấm cũ R1–R5), `AGENTS.md`, `outputs/`, `scripts/` hay git. Các `[TODO]` bôi đỏ được bỏ qua.
Prompt (để giao cho agent khác): `PROMPT.md`. Báo cáo: `GP-A_round1.md`, `GP-B_round1.md`, `GP-A_round2.md`, `GP-B_round2.md`.
Referee thứ ba (mô hình ngoài, GP-C) và kế hoạch sửa gộp cả ba: `GP-C_round1.md`, `review-and-revision-plan.md` (plan §12 ý 59). Lưu ý: nhận xét "7 ms ≈ 10 ms Gaussian" của GP-A không đúng (6.9 ms là MAD đã chuẩn hóa), xem §3 của kế hoạch.
Giới hạn: `AGENTS.md` có thể đã được nạp tự động vào ngữ cảnh của subagent. Cả hai được dặn bỏ qua và cho biết đã bỏ qua, nhưng điều này không chặn được về mặt kỹ thuật.
## Kết quả
| Referee | Chuyên môn | Vòng 1 | Vòng 2 | Điểm (scope / orig. / sound. / evid. / claims / clarity / repro.) |
|---|---|---|---|---|
| GP-A | well tie, inversion, QI | Major, tin cậy cao (tie/field) | Major, không đổi | 4/3/3/3/3/2/4 |
| GP-B | thống kê, UQ, thiết kế benchmark | Major, tin cậy trung bình | Major, tin cậy trung bình–cao | 4/3/3/3/4→3/2/4 |
Không referee nào thấy lỗi trong các chứng minh (Appendix A, các lemma SI, Mệnh đề S5). Khoảng 60 số đối chiếu giữa bài và SI đều khớp, trừ vài lệch 0.01. Claim novelty ("To our knowledge…") đứng vững qua tìm kiếm tài liệu.
## Must-fix chung (hai danh sách vòng 2 gần trùng nhau)
1. **Bài tự đứng được** (sắp xếp lại): bằng chứng cho các câu headline đang nằm ở SI (Tables S9, S10, S15, S17), trong khi guide coi SI là không thiết yếu.
2. **Headline so với point tie tốt nhất** (sửa lời + phân tích trên kết quả có sẵn): so với point tie tốt nhất mọi loại, kể cả anchor mean, gain là 2–22%. Abstract đang ghi 8–22% (so với deterministic tie) và 2–33% (so với anchor mean). Hai referee cũng thấy 8–22% chủ yếu đo cái giá của việc ép tie đi qua anchor có nhiễu 7 ms.
3. **Mô hình sai số anchor là giả định và cần kiểm tra** (thí nghiệm mới + sửa lời): nhiễu anchor độc lập 7 ms mâu thuẫn với chính bằng chứng F3 (type-II σ_a 0.4 ms, LOAO z² 0.21) và Teapot (chủ yếu là bulk shift). σ_a thật không bao giờ được thay đổi. Câu "gain requires a correct anchor uncertainty" mạnh hơn bằng chứng (14 ms: [0.867, 1.004]; fit chạm biên). Câu "c = 1 reproduces F3" (l. 125) chỉ đúng với drift.
4. **Một deterministic tie đúng chuẩn thực hành, hoặc một tie làm trơn anchor** (thí nghiệm mới).
5. **Nối lý thuyết với các tie đem so** (sửa lời + một arm blur với một shift trơn mỗi giếng, dùng likelihood loss + dự đoán transfer từ sai số tie đã biết rồi so với transfer đo được). Câu "less than 7% of the seismic-band variance remains" (l. 190–191) mâu thuẫn với Table S7 (khoảng 51%). "within 1%" bỏ qua σ = 32 ms (r = 1.093). Lý thuyết giả định λ → 0, trong khi thí nghiệm dùng λ ≈ 0.37.
6. **Viết lại yêu cầu blind-well** (sửa lời + kết quả có sẵn): nêu estimand (có điều kiện theo mô hình đã huấn luyện, hay lấy biên trên các tập huấn luyện); ICC mà sign test hiệu chỉnh cần thì một field không cho được; nói rõ tham chiếu 1 ms có đạt được không (1 ms ≈ 18° pha ở 50 Hz). Hai referee bất đồng ở mức độ, không ở hướng.
7. **Effect size với khoảng tin cậy thận trọng thay cho pass, và Table 2 cùng budget** (kết quả có sẵn + sửa lời): Table 2 đang trộn các dòng hash-locked, phụ, khám phá và replication mà không đánh dấu. "2–11%" của bank chỉ là bốn con số, và 11% đến từ ô hai-anchor quá tự tin. Gain tuyệt đối khoảng 0.1 p.u. nhưng bài chỉ báo tỉ số.
8. **Đồng bộ phần phát hành** (packaging): scorer mặc định không đưa anchor mean vào nhóm đối thủ; `repro/README.md` thiếu replication, mode/point tie và sign test có hiệu chỉnh, trong khi Data Availability Statement nói mọi bảng và hình đều được bao phủ; README dẫn số mục của bản thảo khác; một phần tài liệu script viết bằng tiếng Việt.
GP-B đề xuất thêm: các kiểm tra không cần truth (posterior predictive, residual anchor đã chuẩn hóa, phổ biên độ và phổ pha của residual tie), p-value theo từng ô, và nói rõ label là một biến đổi của sonic.
## Lỗi nhỏ đã kiểm chứng
- `paper/refs.bib` `white2003goodpractice` ghi "White, Rachel E.". Crossref chỉ có "R.E." (kiểm tra 16/11/2026); tác giả là Roy E. White. Tên "Rachel" do agent tự điền ra. Cần sửa thành "White, R. E.".
- `refs.bib` có 75 trường `annote` (ví dụ "abstract only"). Plainnat không in chúng ra, nhưng câu khai báo AI ("to check … every citation against its source") nói quá, vì một số tài liệu chỉ đọc abstract (đánh dấu ᵃ trong `paper/`). Cần sửa câu khai báo cho đúng.
- Hình 5: thanh màu ghi "best point tie" còn legend ghi "best deterministic tie".
- "Mode" thực ra là particle tốt nhất trong 1024 particle đã lưu Ghi chú của Table 2 đã định nghĩa là "best SMC particle by tempered target", nhưng abstract và l. 166 ghi "The mode of the same posterior" mà không kèm định nghĩa.
## Chưa làm
Chưa sửa gì trong bài. Người dùng quyết định mục nào sửa lời, mục nào cần thí nghiệm mới (các mục 3, 4, 5 cần chạy thêm, phải khai báo và hash trước khi tính, nằm ngoài mọi lock).

View File

@@ -0,0 +1,130 @@
# GP review, Phase 2: analyses on existing outputs (A1–A9)
Declared on 17/11/2026, before any of these quantities was computed. The SHA-256 of this file is recorded in
`gp-review-analyses.sha256`, and `scripts/51_gp_review.py` refuses to run if the hash differs. Everything here is
**exploratory and post hoc**. It lies outside every locked protocol and does not edit any locked file, input or
output. No threshold of a locked protocol changes. Nothing is chosen with test labels: every quantity below is a
fixed function of outputs that already exist (`outputs/p2r/`, `outputs/point_tie/`, `outputs/lambda_limit/`,
`outputs/t2/`, `outputs/t3/`, `outputs/referee_r5/`, `outputs/r6/`, `outputs/replication/`, `outputs/p3/`,
`outputs/p4/`, `outputs/bench/`, `outputs/band_spectra/`). Source: the consolidated review of the three simulated
*Geophysical Prospecting* referees, `gp-referee/review-and-revision-plan.md` (Phase 2).
Outputs go to `outputs/gp_review/a{1..9}/`; results are written to `gp-review-results.md`.
## Common definitions
- **Cell**: (regime, c, N) with realizations 8–15 (test) or 16–23 (replication). Regimes as in
`configs/d2_synth_p2r.yaml`: R10 (10 dB), R0 (0 dB), Rm5 (−5 dB), R0h (0 dB, half anchors), R10tb (10 dB, two
anchors).
- **Per-realization error** of a method: band RMSE (f ≥ 6 Hz, `split_bands`), mean over test wells, then over
seeds (`per_rid` of `scripts/43_referee_r5_ci.py`).
- **Ratio** A/B in a cell: mean over realizations of A divided by mean over realizations of B.
- **Intervals**: `intervals()` of `scripts/43_referee_r5_ci.py`. The primary interval is the percentile bootstrap
over realizations (2000 resamples, same unit as the locked rule). BCa (9999 resamples) and a t-interval on the
per-realization log ratios are reported as sensitivity. "CI below 1" means the upper limit of the primary interval
is below 1.
- **Best deterministic tie**: per cell, the member of {B3b, B3c, B3c-R} (protocol H2a competitors) with the
smallest mean band RMSE (`scripts/13` `gate_gb`). The "with anchor mean" set adds B3d.
- **Budgets**: the registered budgets (Oracle 500, B3b 125, B3c 250, B3c-R 500, B3d 250, B3d-Sa 250, M2-Sa 250;
SMC-MAP and Anchor-LS 250) unless stated otherwise.
## A1. Point ties against the Oracle
Cells: R10, R0, Rm5 × c ∈ {0, 1} × N ∈ {4, 16}, realizations 8–15; for realizations 16–23, the cells where
`outputs/replication/` has the same methods. Methods: Oracle, B3b, B3c, B3c-R, B3d, B3d-Sa, SMC-MAP, Anchor-LS.
Rows for the E2 and E4 arms (`gp-review-experiments.md`) are appended when their outputs exist and are marked as
such.
Per method and cell: (i) mean warp RMSE over training wells (ms, `warp_errors` in the main window); B3b, B3c and B3d
warp RMSE come from `register` diagnostics, recomputed by rebuilding the cell (`scripts/32` `build_cell`; the
registration is deterministic and its phase is checked against `scripts/14`); (ii) mean band RMSE (p.u.);
(iii) ratio to the Oracle and to the best deterministic tie, with the three intervals. Descriptive; no reading.
## A2. Table 2 at equal budget
Not available from saved outputs: P2r trained each method only at its registered budget. The existing partial
evidence is reported as is: B3d-Sa and M2-Sa at 125/250/500 iterations in the 11 T2 cells at N = 16
(`outputs/lambda_limit/`). The full equal-budget table is experiment E6 of `gp-review-experiments.md`.
## A3. Predicted against measured transfer
Methods: B3b, B3c, B3c-R, B3d, B3d-Sa (one label per well) and M2-Sa (member-averaged; λ ≈ 0.37, so the λ → 0
prediction is an approximation, stated as such). Cells: every P2r cell with saved predictions (5 regimes ×
c ∈ {0, 1, 2} × N ∈ {4, 16}, realizations 8–15).
- **Label time error** of a method at main-grid time t in a training well: δ(t) = t_true(τ_m(t)) − t, where τ_m is
the inverse of the method's warp and t_true the true warp (fine grid). For M2-Sa, every valid bank member with
its weight.
- **Predicted transfer** H_pred(f) = mean over training wells, main-window samples and realizations (and members,
weighted) of cos(2π f δ).
- **Measured transfer** H_meas(f) = Σ Re[Ŷ_m(f) Y*(f)] / Σ Re[Ŷ_O(f) Y*(f)], sums over test wells, seeds and
realizations; Ŷ is the DFT of the mean-removed, Hann-tapered test prediction on the main window (126 samples,
4 ms), Y the same for the true label, Ŷ_O for the Oracle prediction (budget 500; the budget difference is a
stated caveat).
- **Agreement** g = geometric mean of H_meas/H_pred over DFT bins in [6.8, 22.5] Hz with H_pred ≥ 0.2.
- **Powered** combination (method × cell): 1 − H_pred(f*) ≥ 0.05 at the highest bin f* ≤ 22.5 Hz.
**Declared rule for E3.** A3 is *sufficient* (E3 is not run) if at least 6 combinations are powered and g ∈
[0.9, 1.1] in at least two thirds of them. Otherwise E3 is run as declared in `gp-review-experiments.md`.
Also reported: the Spearman correlation between predicted and measured attenuation 1 − H at f* over all
combinations (descriptive).
## A4. Signal band
Cells: R10, R0, Rm5 × c ∈ {0, 1} × N ∈ {4, 16}, realizations 8–15. (i) Mean amplitude spectra on one frequency axis:
input seismic at the test wells (rebuilt from the realization at the regime's SNR), true labels, Oracle, B3d-Sa and
best deterministic tie predictions (Hann-tapered DFT, main window). (ii) Band-limited error: RMSE of the 6–25 Hz
band-passed error (Butterworth order 4, zero phase, as `split_bands`) per test well; ratio B3d-Sa / best
deterministic tie in that band with intervals; (iii) share of the f ≥ 6 Hz gain kept in 6–25 Hz,
(1 − r_6–25)/(1 − r_≥6) when r_≥6 < 1. Descriptive.
## A5. Truth-free checks
Synthetic cells: R10, c = 1, N = 16, realizations 8–15 (nominal) and the S2 presets with saved posteriors in
`outputs/bench/posterior/` (rock physics, wavelet phase, drift; same c and N where available; otherwise the
available N is stated). Per training well, from the 1024 saved particles and the observed data only:
1. **Anchor z²**: mean over anchors of (t_k − t̄(τ_k))² / (σ_a² + Var_post t(τ_k)), with t̄ and Var_post the
posterior mean and variance at the anchor depth and σ_a the registration value. In-sample (anchors are data), so
only its change between presets is read.
2. **Tie correlation** between the seismic and the synthetic at the posterior-mean warp (main window).
3. **Residual phase**: the constant phase rotation of the synthetic (15° grid in [−90°, 90°]) that maximizes the
correlation with the seismic at the posterior-mean warp.
4. **Residual spectrum**: amplitude spectrum of seismic − α̂·synthetic divided by that of the seismic, averaged in
6–15, 15–30 and 30–50 Hz.
**Flag rule**: a check flags a preset if its cell mean lies outside the 5–95% range of the eight nominal
realization means; also reported, the number of the preset's eight realizations outside that range. With the truth
known, the flags are compared with the presets where the SMC-mean gain failed (rock physics, wavelet phase).
**F3**: checks 1–2 are computed from the stored P3 registration artifacts if the anchors, seismic traces and wavelet
can be loaded without rerunning any registration; otherwise "not available" with the reason.
## A6. Blind-well power
Collated from `outputs/t3/`, `outputs/referee_r5/f2_power.csv` and `outputs/r6/a1_power.csv`: power against the
number of blind wells × reference error σ_ref for the sign test, Wilcoxon, paired t and the correlation-calibrated
sign test; the number of wells for 80% power. The resampling unit of each source is stated. No new simulation.
## A7. Field cases per well
F3 (four wells, nested leave-one-well-out) and Volve (six wells; leave-one-well-out and slot): per well, the
reference source, the split, band RMSE and band PCC of the best point tie, the SMC mean, the SMC bank and the
training-mean constant where available. From `outputs/p3/`, `outputs/p4/summary/`, `outputs/p4/posthoc/` and
`outputs/referee_r5/f1_wells.csv`. Descriptive.
## A8. Aggregation in Figure 4b
For every point of Figure 4b (main article; Figure S-numbering in the supplement), the measured ratio is recomputed
as the square root of the ratio of pooled mean squared band errors (over test wells, seeds and realizations),
instead of the ratio of mean per-well band RMSE. Reported: both values and the number of points that change side of
the plotted bound.
## A9. Gaussian-bank count
The Gaussian-bank statement of the text is recomputed from `outputs/t2/` and compared with the values plotted in
Figure 3. If they disagree, the text is corrected to the recomputed values.
## Reporting
All tables and the A3 decision go to `gp-review-results.md` with the files that produced them. A deviation from
this declaration is recorded there with its reason.

View File

@@ -0,0 +1 @@
ac04abe0efb09986a268d72c47ad6ac996041c542541edca322bbba8f0517477 docs/research/gp-review-analyses.md

View File

@@ -0,0 +1,195 @@
# GP review, Phase 3: new experiments (E1, E2, E4, E5, E6; E3 conditional)
Declared on 17/11/2026, before any of these experiments was run and before realizations 24–31 were generated. The
SHA-256 of this file is recorded in `gp-review-experiments.sha256`, and `scripts/52_gp_experiments.py` refuses to run
if the hash differs. Everything here is **exploratory**. It lies outside every locked protocol: no locked protocol,
script, input or output is edited, and the locked scripts 14 and 15 are called unchanged, with in-process
replacements of single functions where stated (the pattern of `scripts/47_r6_fixed_hyper.py`). No threshold of a
locked protocol changes. Every design choice is fixed here or tuned on development realizations 900–905; no choice
uses test labels. Source: `gp-referee/review-and-revision-plan.md` (Phase 3), approved by the user on 17/11/2026
(E1, E2, E4, E5 mandatory; E3 only if A3 of `gp-review-analyses.md` is not sufficient). E6 is added because A2
cannot be done from saved outputs.
Outputs go to `outputs/gp_review/e{1..6}/`; results are written to `gp-review-results.md`. Driver:
`scripts/run_gp_review.sh`. Long runs use the user's tmux server.
## Common definitions
As in `gp-review-analyses.md`: cells, per-realization error, ratio, intervals (primary: percentile bootstrap over
realizations; BCa and t as sensitivity; "CI below 1" = upper limit < 1, "CI above 1" = lower limit > 1), best
deterministic tie ({B3b, B3c, B3c-R}; "with anchor mean" adds B3d), registered budgets. The **locked H2a cell rule**
is `h2a_cells` of `scripts/18_summarize_p2r.py` (the `gate_gb` rule of `scripts/13`), applied without change.
Training uses `train_predict` with the protocol model and optimizer, NLL, seeds 0–4, unless stated otherwise.
## E4. Point tie optimizing the SMC target
Question: does the gain over deterministic ties come from the tie model (its target) or from SMC sampling?
- **Target** per training well: F(z) = log p(u | anchors) + γ ℓ(u) as `TiePosterior.parts`, γ from the scripts/14
posterior CSV (`SMC_g_acf`, `estR`), the same objects as `scripts/44_point_tie_arm.py`.
- **Optimizer**: from each of the 4 saved particles with the highest F, `scipy.optimize.minimize` (L-BFGS-B) on −F
with a forward-difference gradient (step 10⁻³ in z, one batched `parts` call; a component whose forward point is
infeasible uses the backward difference, and is 0 if both are infeasible), `maxiter` 200, `ftol` 10⁻⁹,
`gtol` 10⁻⁶; infeasible points (|g| > g_max or not covering the main window) have −F = 10¹². The arm **SMC-opt**
uses the point with the highest F among the 4 optima and the 4 starts, so F(SMC-opt) ≥ F(SMC-MAP).
- **Training**: one label per well at the SMC-opt warp, NLL, budget 250 (as SMC-MAP and B3d-Sa).
- **Cells**: R10, R0, Rm5 × c ∈ {0, 1} × N ∈ {4, 16}, realizations 8–15 (12 cells; the cells of
`outputs/point_tie/`).
- **Recorded per well**: F at SMC-MAP and SMC-opt, both parts of F, number of starts improved, ‖z_opt − z_MAP‖,
warp RMSE (ms).
- **Ratios per cell**: (E4-1) SMC-opt / best deterministic tie; (E4-2) B3d-Sa / SMC-opt; (E4-3) SMC-opt / SMC-MAP;
(E4-4) SMC-opt / Anchor-LS.
- **Readings** (12 cells): (R4a) "the target, not the sampler, carries the gain over deterministic ties" if E4-1 is
CI below 1 in ≥ 10 of 12 cells; (R4b) "posterior averaging improves on the optimized point" if E4-2 is CI below 1
in ≥ 6 of 12, "the optimized point is better than averaging" if CI above 1 in ≥ 6 of 12, otherwise "no consistent
difference"; (R4c) "optimizing beyond the best particle changes little" if the E4-3 ratio lies in [0.98, 1.02] in
≥ 10 of 12 cells.
## E5. Posterior-mean labels trained with the Gaussian likelihood
Question (GP-C): Proposition A4(a) concerns the posterior mean of the labels, E[y | D], whereas "SMC mean" uses the
label at the posterior-mean warp. Separate the label from the loss.
- **Arms**: **Mean-NLL**, one label per well equal to the π-weighted mean of the 64 bank labels of M2-Sa (the
label of `Mean-MSE` in `scripts/41`), trained with NLL (S = 1); **Mean-NLL-1024**, the mean label over all valid
labels of the 1024 saved particles, NLL; **B3d-Sa** retrained as a reproduction check (rows must equal the
registered rows at budget 250; otherwise the mismatch is reported and the E5 ratios are not read).
- **Reused rows** (same cells, seeds and budgets): M2-Sa, Bank-lam0 (λ = 10⁻³) and Mean-MSE from
`outputs/lambda_limit/`.
- **Cells**: the 11 T2 cells at N = 16 (8 wide: (R0,1), (R0h,1), (R10tb,1), (Rm5,1), (R0,2), (Rm5,2), (R0h,2),
(R10tb,2); 3 narrow: (R10,0), (R0,0), (Rm5,0)), realizations 8–15, budgets 125, 250 and 500 (one run, snapshots);
primary budget 250.
- **Readings** over the 8 wide cells at budget 250: (R5a, label) Mean-NLL / B3d-Sa: "the mean of labels is better"
if CI below 1 in ≥ 5 of 8, "the label at the mean warp is better" if CI above 1 in ≥ 5 of 8, otherwise "no
consistent difference"; (R5b, loss) Mean-NLL / Mean-MSE with the same rule ("NLL better" / "MSE better" / none);
(R5c, bank) M2-Sa / Mean-NLL with the same rule ("bank better" / "mean label better" / none). Descriptive:
Bank-lam0 / Mean-NLL (the λ → 0 bank and the mean label have the same mean-square minimizer for μ at fixed σ),
Mean-NLL-1024 / Mean-NLL, coverage90 and mean σ of every arm.
## E6. Equal-budget table
Question: does the registered budget asymmetry (B3b 125, B3c 250, B3c-R 500, Oracle 500, posterior methods 250)
drive Table 2?
- **Methods**: Oracle, B3b, B3c, B3c-R, B3d, B3d-Sa, M2-Sa with the labels of `scripts/15` `run_cell` (variant a),
each trained once to 500 iterations with predictions at 125, 250 and 500 (the budget list passed to `train_predict`
is replaced in the worker process; locked code unchanged). Predictions are saved.
- **Cells**: R10, R0, Rm5 × c ∈ {0, 1} × N ∈ {4, 16}, realizations 8–15 (96 cell-realizations).
- **Reproduction check**: the rows of every method at its registered budget must equal the P2r rows (all metrics,
tolerance 10⁻⁹). Otherwise the mismatch is reported and E6 is not read.
- **Analysis**: at each budget b, every method at b; the locked H2a cell rule for B3d-Sa and M2-Sa against {B3b, B3c,
B3c-R} and against the set with B3d, at c ∈ {0, 1}, with the zero-drift macro ratio.
- **Reading**: k_b = number of the 6 c = 1 cells (3 regimes × 2 N) in which B3d-Sa passes the cell rule against
{B3b, B3c, B3c-R} at budget b. "Budget-robust" if k_b ≥ 5 for every b ∈ {125, 250, 500}; "budget-dependent" if
k_b ≤ 3 for some b; otherwise "partly robust". The set with B3d and M2-Sa are reported with the same counts,
without a reading.
## E2. A practitioner-grade deterministic tie
Question (GP-A): do the "best deterministic tie" numbers depend on the authors' simple ties? E2 adds a tie built
the way an interpreter would build it, tuned on development data, as a fourth deterministic competitor **B3p**.
**Tie.** Synthetic sonic time is τ itself.
1. *Anchor calibration* of the drift d(τ) = t − τ: `exact` = B3b (piecewise linear through the anchors, bulk shift
outside); `smooth` = cubic smoothing spline of d_k against τ_k with the smoothing chosen by generalized
cross-validation (`scipy.interpolate.make_smoothing_spline`) when there are ≥ 5 anchors, the least-squares line
with 3–4 anchors, B3b with ≤ 2; constant extrapolation outside the anchor range; dt/dτ ≥ 0.05 enforced.
2. *Wavelet* from the N training wells of the cell only: `stat` = statistical zero-phase wavelet
(`statistical_wavelet`, length as registration); `stat+phase` = the same with one constant phase per cell chosen
on a 15° grid in [−90°, 90°] to maximize the mean seismic–synthetic correlation over the training wells at the
current tie; `LS` = deterministic multi-well least-squares (Wiener) wavelet from the reflectivity at the current
tie and the seismic in the main window ± 50 ms, same length, 1% prewhitening, Hann taper.
3. *Bulk shift*: the 1-ms lag in [−B, B] that maximizes the seismic–synthetic correlation, B ∈ {0, 12} ms.
4. *Dynamic warping*: traces on a 1-ms grid (seismic by cubic interpolation of the 4-ms trace, synthetic from the
fine forward model), both scaled to unit RMS, window = extended window ∩ synthetic support; error
e(t, l) = (syn(t) − seis(t + l))², lags l ∈ {−L, …, L} ms, L ∈ {4, 8, 16, 24}; strain limit ε ∈ {0.02, 0.05, 0.10}
imposed as lag knots every h = round(1/ε) ms that differ by at most 1 ms between neighbours, linear between
knots (a simplified form of smooth dynamic warping, Hale 2013); minimum total error by dynamic programming;
constant lag outside the window.
5. *Update* t₁(τ) = t(τ) + l(t(τ)) (positive lag = synthetic must be later, the B3c convention); monotone because
the strain is below 1.
6. *Iterations* n ∈ {1, 2}: in the second, the wavelet (`stat+phase`, `LS`) is re-estimated at the first-pass ties
and steps 3–5 are redone from the step-1 tie.
Grid: 2 × 3 × 2 × 4 × 3 × 2 = 288 configurations.
**Tuning (development only).** Per regime (R10, R0, Rm5, R0h, R10tb), the configuration with the smallest mean warp
RMSE (ms, main window) over realizations 900–905, c ∈ {0, 1, 2}, N ∈ {4, 16} (first N pool wells), all training
wells. Ties go to the simpler configuration (n = 1, B = 0, smaller L, larger ε, `exact`, `stat` before
`stat+phase` before `LS`). Reported: the dev warp RMSE of B3p, B3b, B3c and B3c-R on the same wells. **Budget**:
with the R10 configuration, development realizations 900/901, c = 1, N ∈ {4, 16}, seeds 0/1, candidates
{125, 250, 500, 1000, 2000}, smallest mean total RMSE (`select_budgets`, the rule of protocol_p2); one budget for all
regimes, as for the registered methods.
**Evaluation.** B3p is trained on (a) the P2r cells, 5 regimes × c ∈ {0, 1, 2} × N ∈ {4, 16}, realizations 8–15;
(b) the replication cells R10, R0, Rm5 × c ∈ {0, 1} × N ∈ {4, 16}, realizations 16–23; (c) the E1 cells. Warp RMSE
is recorded for every training well. Analyses: warp RMSE of B3p against the other ties; the locked H2a cell rule for
B3d-Sa and M2-Sa against {B3b, B3c, B3c-R, B3p} and {B3b, B3c, B3c-R, B3d, B3p} at c ∈ {0, 1} with the zero-drift
ratio, on 8–15 and on 16–23; B3d-Sa / B3p with intervals.
**Reading** (realizations 8–15, B3d-Sa against {B3b, B3c, B3c-R, B3p}, the 6 c = 1 cells of R10, R0, Rm5):
"the headline survives a practitioner tie" if ≥ 5 of 6 cells pass; "narrowed" if 3–4 of 6; "does not survive" if
≤ 2 of 6. The same count on 16–23 is reported as a replication.
## E1. True anchor error varies; per-well bulk anchor error
Question (all three referees): the benchmark draws independent 7 ms anchor errors and gives the registration the true
σ_a. Does the SMC gain hold when anchors are more accurate than assumed, when σ_a is stated correctly at other
values, and when the anchor error has a per-well bulk component, as the F3 marker–horizon evidence suggests?
- **Realizations 24–31**, never used before (checked: no outputs exist). Their fingerprints (as `scripts/46`
`stage_fingerprints`) are written to `outputs/gp_review/e1/fingerprints.json` before any posterior is run.
- **Regime** R10 (10 dB, full anchors), c = 1, N ∈ {4, 16}, registration seed 0, training seeds 0–4.
- **Anchor data model**: t_k = boundary time + σ_true ε_k + β_w, with ε_k the realization's own standard normal
draws (`eps_a`; the same draws in every condition) and β_w = σ_B · z_w, z_w standard normal from
`numpy.random.default_rng([rid, crc32(well name), 2417])` (the same draws in every bulk condition). Implemented by
replacing `D2Realization.observe` in the worker process (only the anchor-time line changes).
- **Conditions** (σ_true, σ_B; σ_reg; drift hyperparameters):
| Condition | σ_true (ms) | σ_B (ms) | σ_reg (ms) | hyperparameters |
|---|---|---|---|---|
| iid7-reg7 (nominal) | 7 | 0 | 7 | refit |
| iid4-reg4 | 4 | 0 | 4 | refit |
| iid4-reg7 | 4 | 0 | 7 | refit |
| iid2-reg2 | 2 | 0 | 2 | refit |
| iid2-reg7 | 2 | 0 | 7 | refit |
| iid1-reg1 | 1 | 0 | 1 | refit |
| iid1-reg7 | 1 | 0 | 7 | refit |
| bulk-reg2 | 2 | 5 | 2 | refit |
| bulk-reg5.4 | 2 | 5 | 5.39 (√29, the marginal SD) | refit |
| bulk-reg7 | 2 | 5 | 7 | refit |
| iid2-reg2-fix | 2 | 0 | 2 | fitted at σ_a = 7, then σ_a set to σ_reg (as `scripts/47`) |
| bulk-reg2-fix | 2 | 5 | 2 | as above |
- **Methods**: the seven registered methods (Oracle, B3b, B3c, B3c-R, B3d, B3d-Sa, M2-Sa) at their registered
budgets through the locked scripts/14 `run_job` and scripts/15 `run_cell` (posterior 1024 particles, `estR`), plus
SMC-MAP (budget 250) and B3p (E2 budget) when E2 is done.
- **Comparisons** per condition and N: (P1) B3d-Sa / best deterministic tie (and with B3p when available);
(P2) B3d-Sa / B3d; (P3) M2-Sa / B3d-Sa; (P4) warp RMSE, warp coverage90 and width of the SMC posterior;
(P5) the paired effect of a misstated σ_reg on the same realizations: B3d-Sa(σ_reg = 7) / B3d-Sa(σ_reg = σ_true)
for σ_true ∈ {1, 2, 4} and bulk-reg7 / bulk-reg5.4.
- **Reading of P1** per condition: "gain holds" if CI below 1 at both N; "gain lost" if the CI contains 1 at both N;
"reversed" if CI above 1 at either N; "partial" otherwise. Declared statements, each read separately and never
pooled into a count: (S1) "the SMC-mean gain persists when anchors are more accurate than assumed" if iid4-reg7,
iid2-reg7 and iid1-reg7 all read "gain holds"; (S2) "… when σ_a is stated correctly" if iid4-reg4, iid2-reg2 and
iid1-reg1 all read "gain holds"; (S3) for each σ_reg ∈ {2, 5.39, 7}, "… under per-well bulk anchor error" if the
bulk condition reads "gain holds".
## E3 (conditional on A3)
Run only if A3 of `gp-review-analyses.md` is not sufficient by its declared rule. Arm: Oracle labels shifted by one
constant per well, δ_w = s · z_w with z_w from `default_rng([rid, crc32(well name), 3301])`, s ∈ {2, 4, 8} ms;
R10, c = 0, N ∈ {4, 16}, realizations 8–15, NLL, budget 500, seeds 0–4. Measured transfer against
H_pred(f) = mean_w cos(2π f δ_w) with the A3 statistic g. Reading: "the blur prediction holds for constant shifts"
if g ∈ [0.9, 1.1] in ≥ two thirds of the powered combinations (A3 definition).
## Resources and order
E5, E6 and E4 first (GPU training and CPU optimization, about 10 workers with 2 threads), then E2 (CPU tuning, then
training), then E1 (192 posterior jobs at 1.5 GB each, then training). cuda:0, a shared machine: other users' jobs
are never touched. Every stage resumes by skipping cells whose CSV exists.
## Reporting
Results, the declared readings and every deviation from this declaration (with its reason) go to
`gp-review-results.md`. Numbers enter the paper only with their status (exploratory) and these readings.

View File

@@ -0,0 +1 @@
17509191bcee281e82e1cde1cd8bebd94afdb823f1ed3a8eac1e9f33beadbc28 docs/research/gp-review-experiments.md

View File

@@ -0,0 +1,123 @@
# GP review, Phases 2–3: results (exploratory)
Declarations, hashed before any computation on 17/11/2026:
- `gp-review-analyses.md` (A1–A9; `gp-review-analyses.sha256`);
- `gp-review-experiments.md` (E1, E2, E4, E5, E6; E3 conditional on A3; `gp-review-experiments.sha256`,
`17509191bcee…`).
Everything here is exploratory and outside every locked protocol. No locked protocol, script, input or output was
edited; no verdict or threshold changed. Driver `scripts/run_gp_review.sh`; outputs `outputs/gp_review/`. Intervals:
percentile bootstrap over realizations (primary), BCa and t as sensitivity; "CI below 1" means the upper limit is
below 1.
E1, E2, E4, E5, E6 and A1–A9 are complete. The clean-room recollection of tables and summaries is documented in [repro/README.md](../../repro/README.md).
## E5. Posterior-mean labels trained with the Gaussian likelihood
Script `scripts/52_gp_experiments.py --stage e5` (88 cell-realizations, 11 T2 cells at N = 16, realizations 8–15,
seeds 0–4, one run per seed with snapshots at 125/250/500 iterations); summary `outputs/gp_review/e5/`
(`reading.json`, `summary.md`, `ratios.csv`, `coverage.csv`, `label_distance.csv`).
**Reproduction check:** B3d-Sa retrained at 250 iterations reproduces 3,520/3,520 registered rows exactly
(max |Δ| = 0 on band RMSE, RMSE and NLL). The ratios are read.
**Declared readings (8 wide cells, budget 250):**
| Reading | Ratio | CI below 1 | CI above 1 | Range | Declared reading |
|---|---|---|---|---|---|
| R5a, label | Mean-NLL / B3d-Sa | 5 | 0 | 0.881–0.992 | the mean of labels is better |
| R5b, loss | Mean-NLL / Mean-MSE | 7 | 0 | 0.927–0.994 | NLL better |
| R5c, bank | M2-Sa / Mean-NLL | 7 | 0 | 0.757–0.999 | bank better |
R5a meets the rule (≥ 5 of 8) exactly; the gain from averaging labels instead of averaging warps is small
(0.8–1.7% in six cells, 3.1% in the R0h c = 2 cell and 11.9% in the two-anchor R10tb c = 2 cell). The same counts at 125 and 500 iterations
(not part of the declared reading): R5a 5 and 7 cells below 1, R5b 7 and 8, R5c 7 and 7; no cell has a CI above 1 in
any of the three comparisons at any budget.
**Descriptive (declared without a rule):**
- Bank-lam0 / Mean-NLL (the λ → 0 bank against the mean label; both have the same mean-square minimizer for μ at
fixed σ): CI below 1 in 6 of 8 wide cells at 250 (0.934–0.995), 2 at 125, 4 at 500; never above 1. Training on the
bank is therefore not equivalent to training on the averaged label, even at λ → 0, under the Gaussian likelihood.
- Mean-NLL-1024 / Mean-NLL (1024 against 64 particles for the mean label): 0.984–1.004, CI below 1 in one wide cell
(R10tb, c = 1). The RMS distance between the two mean labels is 0.035–0.112 p.u. in the wide cells, against
0.11–0.72 p.u. between the mean label and the label at the mean warp.
- Narrow cells (c = 0): Mean-NLL / B3d-Sa 0.994–1.002 and M2-Sa / Mean-NLL 0.997–1.001; nothing to separate when
the posterior is narrow.
- Coverage90 at 250 iterations stays 0.27–0.49 for every NLL arm (Bank-lam0 up to 0.67 in R10tb c = 2); the MSE arm
is not comparable (its σ is not trained). No arm is calibrated.
**Answer to GP-C (Proposition A4(a) concerns E[y | D]):** the label used by "SMC mean" (the label at the
posterior-mean warp) and the posterior mean of the labels differ, and the posterior mean of the labels is slightly
better (R5a). The bank still improves on the posterior mean of the labels in 7 of 8 wide cells (R5c), by 0.1–2.5% in
three c = 1 cells, 9.5% in the two-anchor c = 1 cell and 2.1–24% in the c = 2 cells, with the largest value in
the two-anchor c = 2 cell. So the bank
gain reported in the paper is not only the label correction of Proposition A4(a).
## E6. Equal-budget table
Done (96 cell-realizations; self-check rows reproduced, max |Δ| = 0). **Reading: budget-robust** — k_b = 6 of 6 at c = 1 at 125, 250 and 500 iterations for B3d-Sa against {B3b, B3c, B3c-R}. Tables `outputs/gp_review/e6/` (`h2a_by_budget.csv`, `band_rmse_by_budget.csv`).
## E4. Point tie optimizing the SMC target
Done (96 cell-realizations; SMC-MAP reproduces `outputs/point_tie/` exactly, 768/768 rows, max |Δ| = 0). Declared readings over 12 cells: **R4a** SMC-opt/best deterministic tie, CI below 1 in 12 of 12 (0.79–0.91): the target, not the sampler, carries the gain. **R4b** B3d-Sa/SMC-opt: CI below 1 in 1, above 1 in 2 of 12 (9 contain 1): no consistent difference. **R4c** SMC-opt/SMC-MAP in [0.98, 1.02] in 8 of 12 (rule ≥ 10): not supported; SMC-opt is below 1 in 4 cells (0.97–0.98 at c = 1, R0). SMC-opt/Anchor-LS: below 1 in 12 of 12 (0.83–0.94). Tables `outputs/gp_review/e4/`.
## E2. Practitioner-grade deterministic tie
Done. B3p (calibration, wavelet, smoothing, tuned on dev realizations 900–901 per regime; budget 125) has dev warp RMSE 4.6/5.2/5.5/3.8/9.5 ms for R10/R0/Rm5/R0h/R10tb. At 10 dB and c = 1 it is not the best deterministic tie (B3p/B3c 1.05–1.22). It becomes the best deterministic tie in some 0 and −5 dB cells. Against the expanded deterministic set, **B3d-Sa passes 5 of 6 c = 1 cells against point ties + B3p on realizations 8–15 and on 16–23 — the headline survives a practitioner tie.** SMC mean/B3p 0.67–0.95 (R10 N = 4/16: 0.70/0.67). Tables `outputs/gp_review/e2/` (`h2a_with_b3p.csv`, `ratios.csv`, `selected.json`).
## E1. True anchor error varies; per-well bulk anchor error
Done (192 posterior + 192 training + 192 SMC-MAP + 80 B3p jobs; realizations 24–31, R10, c = 1; self-check B3d-Sa 192/192 cells reproduce, max |Δ| = 0). Ratio SMC mean / best deterministic tie (N = 4 / N = 16, 95% percentile interval); table `outputs/gp_review/tables/anchornoise.tex`, files `outputs/gp_review/e1/summary/`.
| σ_true (ms) | σ_B | σ_reg | N = 4 | N = 16 | SMC warp RMSE (ms, N = 16) | cov90 | declared reading |
|---|---|---|---|---|---|---|---|
| 7 | 0 | 7 | 0.854 [0.831, 0.877] | 0.785 [0.741, 0.827] | 0.55 | 0.91 | gain holds |
| 4 | 0 | 4 | 0.930 [0.899, 0.966] | 0.915 [0.885, 0.943] | 0.52 | 0.93 | gain holds |
| 4 | 0 | 7 | 0.947 [0.922, 0.977] | 0.928 [0.911, 0.944] | 0.78 | 0.75 | gain holds |
| 2 | 0 | 2 | 0.979 [0.952, 1.006] | 0.969 [0.961, 0.979] | 0.49 | 0.93 | partial |
| 2 | 0 | 7 | 0.984 [0.972, 1.000] | 0.997 [0.983, 1.008] | 0.85 | 0.70 | gain lost (partial with B3p) |
| 1 | 0 | 1 | 0.987 [0.965, 1.007] | 0.989 [0.976, 1.002] | 0.45 | 0.92 | gain lost |
| 1 | 0 | 7 | 0.988 [0.970, 1.007] | 1.007 [0.985, 1.025] | 0.87 | 0.69 | gain lost |
| 2 | 5 | 2 | 1.128 [1.024, 1.276] | 1.297 [1.206, 1.394] | 3.16 | 0.48 | reversed |
| 2 | 5 | 5.4 | 1.136 [1.015, 1.277] | 1.108 [1.059, 1.167] | 2.13 | 0.61 | reversed |
| 2 | 5 | 7 | 1.046 [0.975, 1.128] | 1.052 [1.007, 1.100] | 1.75 | 0.63 | reversed |
Declared statements (never pooled): **S1** (gain persists when anchors are more accurate than assumed): does not hold (it holds at σ_true = 4, partial/lost at 2, lost at 1). **S2** (gain when σ_a is stated correctly): does not hold (holds at 4, partial at 2, lost at 1). **S3** (per-well bulk error): does not hold at any σ_reg. Adding B3p to the competitors changes only iid2-reg7 (partial). The gain shrinks because the deterministic ties become accurate when the anchors are (SMC warp RMSE is 0.45–0.55 ms in all correctly stated cases), not because the SMC posterior degrades; with a per-well bulk error the posterior is overconfident (cov90 0.48–0.63, warp RMSE 1.8–3.2 ms) and the correlation tie is better. SMC-MAP/B3d-Sa 1.00 ± 0.02 in the nominal condition. Paired misstatement (P5, bulk): σ_reg = 7 against 5.4 gives 0.95–0.99 (below 1 at N = 16 for B3d-Sa and M2-Sa).
## E3
Not run: A3 was sufficient (see A1–A9).
## A1–A9
Done 17/11/2026, 02:09–02:36 UTC (`scripts/51_gp_review.py`, 336 cell jobs + 64 A5 jobs, CPU). Full tables and the 12
deviations of the worker: `outputs/gp_review/a_results.md` (declaration hash `ac04abe0…` checked at run time; the
worker did not edit `docs/` or `paper*/`). Summary:
- **A1:** best deterministic tie 1.11–1.29 × Oracle; SMC mean and SMC-MAP 0.98–1.09 × Oracle; CI below 1 against the
best tie in 12/12 cells in both realization sets; Anchor-LS above 1 in 3/12 and 2/12. E2 and E4 rows missing at run
time (re-run the aggregation after they finish).
- **A3 decision: sufficient, E3 not run** (140 powered combinations, 104 with g in [0.9, 1.1] = 0.74; Spearman 0.93).
Weak points: the ±10% band is lenient, the SMC bank agrees least (5/17), Oracle trained 500 iterations.
- **A4:** 6–25 Hz ratios 0.86–0.98 against 0.78–0.92 for f ≥ 6 Hz (keeps 0.24–0.63 of the gain at c = 1).
- **A5:** truth-free checks do not separate failing from passing presets (only anchor z² flags no passing preset, and flags 2 of 4 failing).
- **A6:** sign / Wilcoxon / t / calibrated-sign wells for 80% power, exact reference: 5/6/4/5 (R10 N = 16), 11/8/8/18 (Rm5 N = 16).
- **A7:** F3 mean and bank each beat the gate competitor at 1/4 wells; Volve gate reproduced (2/6, 3/6, full-band RMSE).
Table `tab:fieldwells` (`scripts/55_gp_field_table.py`).
- **A8:** 0 of 30 points of Figure 4b change side; pooled vs plotted differ by ≤ 0.011.
- **A9:** the "within 2.5% in three of four cells" count was wrong: by point ratio 4 of 4 (0.0–2.1% above the bank), by
the upper interval limit 2 of 4. Text corrected in `paper/` and `paper_gp/`.
## Deviations from the declarations
1. The code is split over three scripts: `scripts/52_gp_experiments.py` (E3–E6), `scripts/53_gp_practitioner_tie.py`
(E2) and `scripts/54_gp_anchor_noise.py` (E1), where the declaration names script 52 for all. Reason: size and
separate stages. The declaration hash is checked by all three.
2. E2: the dev B3c-R baseline exists only for development realizations that have phase files.
3. E1: B3p is computed once per anchor model (it does not depend on the registered σ_a).
4. E1: predictions are saved (`save_preds=True`) to allow transfer checks.
5. Q2 (Phase 0) changed figure labels only; no number in any figure changed.
6. Scorer v1.1 adds the anchor mean B3d to the competitor set only in the settings where B3d exists (the 7 nominal
settings); the misspecification and S8 settings have no B3d run, so their v1.1 rule equals v1.0.

View File

@@ -0,0 +1,289 @@
# Văn phong và định dạng *Geophysical Prospecting*: yêu cầu chính thức, mẫu bài, quy tắc viết lại (16/11/2026)
Mục đích: chuẩn bị viết lại `paper_cg/main.tex` (bản rút gọn kiểu C&G, Elsevier CAS) theo kiểu *Geophysical Prospecting* (GP; EAGE/Wiley; Original article), venue đã chốt ngày 13/11/2026 (`docs/plan.md` §12 mục 51, `docs/research/venue-survey.md` §7). Tài liệu này chỉ khảo sát; không sửa `paper_cg/` hay `paper/`. Ghi chú thô nằm trong scratchpad của phiên (không phải nguồn lâu dài).
Quy ước: "**[Guide]**" = bắt buộc hoặc khuyến nghị trong hướng dẫn tác giả chính thức; "**[Good-paper]**" = tài liệu hướng dẫn biên tập "What makes a good GP paper" (do journal phát hành, không phải luật); "**[Mẫu]**" = thông lệ quan sát được trong các bài đã đăng. Ngày truy cập mọi nguồn là 16/11/2026, trừ khi ghi khác.
## 0. Truy cập nguồn: cái gì đọc được, cái gì không
| Nguồn | Kết quả |
|---|---|
| Wiley author guidelines live, https://onlinelibrary.wiley.com/page/journal/13652478/homepage/forauthors.html | **403** (curl và WebFetch). Không giả user-agent. |
| EarthDoc live, https://www.earthdoc.org/content/journals/gpr?page=submit-a-paper | **403** (Cloudflare). |
| **EarthDoc qua Wayback**, capture 10/12/2025: http://web.archive.org/web/20251210202622/https://www.earthdoc.org/content/journals/gpr?page=submit-a-paper | **Đọc được toàn văn** (khoảng 5 800 từ), ghi "Author Guidelines updated 19 July 2022". Đây là nguồn chính của §1. |
| Wiley author guidelines qua Wayback, capture 19/03/2022: http://web.archive.org/web/20220319231155/https://onlinelibrary.wiley.com/page/journal/13652478/homepage/forauthors.html | Đọc được; là bản trước cập nhật 07/2022. Dùng để so sánh. |
| "What makes a good Geophysical Prospecting paper?" (M.N. Luheshi & T.J. Moser), https://onlinelibrary.wiley.com/pb-assets/assets/13652478/What%20makes%20a%20good%20Geophysical%20Prospecting%20paper-1629792321043.pdf qua Wayback 26/06/2025 (`web.archive.org/web/20250626055319/...`) | Đọc được toàn văn. |
| EAGE statement on AI generated content, https://eage.org/eage_news/eage-statement-on-ai-generated-content-for-papers/ qua Wayback 10/06/2026 (`web.archive.org/web/20260610114717/...`) | Đọc được. |
| Authorea template GP, https://authorea.com/templates/geophysical_prospecting | **403**; Wayback timeout. Không xem được nội dung template. |
| Wiley PDF/epdf của các bài GP (`onlinelibrary.wiley.com/doi/pdfdirect/...`) | **403**, kể cả bài CC BY. KU research profiles (bản CC BY của Fernandes 2022, Lorentzen 2022) cũng 403 Cloudflare. |
| arXiv API | **429 Rate exceeded** lúc tìm preprint của Senn 2025, Feng 2026, Heidari 2022. |
| eScholarship (preprint Um et al. 2022) | Tải về file rỗng. |
Hệ quả: guide hiện hành được đọc qua bản lưu ngày 10/12/2025 (nội dung ghi cập nhật 19/07/2022). Nếu Wiley/EAGE sửa guide sau 10/12/2025 thì tài liệu này chưa thấy; cần đọc lại trang live lúc nộp (từ trình duyệt của tác giả).
## 1. Yêu cầu chính thức [Guide]
Nguồn của mọi dòng trong bảng: EarthDoc guide, capture 10/12/2025 (trừ khi ghi khác).
| Mục | Yêu cầu (trích nguyên văn ngắn) | Ghi chú cho bài của ta |
|---|---|---|
| Loại bài | "Original Papers – reports on original and newly established developments, results, or insights… Most of the submissions fall in this category." Research Notes "4–6 pages"; Review Papers; Letters "one or two pages". | Original Paper. |
| Phạm vi | "The journal welcomes theoretical and numerical studies as well as case studies and review papers." Scope: "potential field, electromagnetic and seismic methods applied to exploration and monitoring". | Bài lý thuyết + synthetic + field case nằm trong scope. |
| Độ dài | Không có giới hạn từ, trang, hình hay bảng cho Original Papers. [Good-paper]: "less is more". | Không buộc phải giữ 5 500 từ của C&G. |
| File nộp | "Manuscripts should be submitted for review as PDF, Rich Text Format, LaTex or Word documents." "Where LaTeX or TeX is used, please use only the basic functions, avoiding complicated macros or cross-references." Nộp `.tex` thì phải kèm PDF. | **Xung đột trực tiếp** với `xr-hyper` + `\Sref` (29 tham chiếu chéo sang supplement) và macro `\mPM`, `\mRML`. |
| Template | Chỉ nêu Authorea: "https://authorea.com/templates/geophysical_prospecting". Không nêu class LaTeX chính thức nào. | Không bắt buộc template. |
| Thứ tự phần | Title (không viết tắt); running title "< 50 characters"; tên tác giả; affiliation; **Acknowledgments**; Abstract and keywords; Data Availability Statement; Main text; References; Tables ("each table complete with title and footnotes"); Figure legends; Appendices; "Figures should be included within the same file as the text for peer review (each figure should be presented on a separate page)". | Acknowledgments đứng *trước* abstract trong file nộp. Bảng, legend, hình dồn về cuối. |
| Checklist | "Is the manuscript typeset double-spaced and laid out in single column?"; "Does the title page list the keywords?"; title page có e-mail và affiliation đầy đủ của tác giả liên hệ. | Double spacing, một cột. |
| Abstract | "brief but comprehensive summary and should be able to stand by itself. It should state the major result or conclusion of the paper. It should be informative to a more general public and not a mere listing of the contents of the paper. It should not contain any references, abbreviations or acronyms." **Không có giới hạn số từ.** Bản 2020 (Wiley 2022) còn thêm "It can be structured (intro/methods/results/conclusion) or unstructured"; câu này đã bị bỏ trong bản 07/2022. | 269 từ được phép. Nhưng phải bỏ "RMSE" (xem §3.3). |
| Keywords | "Please provide up to seven keywords from the following list: Acoustics, Acquisition, Anisotropy, Attenuation, Borehole geophysics, Computing aspects, Data processing, Elastics, Electromagnetics, Full waveform, Gravity, Imaging, Interpretation, Inverse problem, Inversion, Logging, Magnetics, Modelling, Mathematical formulation, Monitoring, Multicomponent, Noise, Numerical study, Parameter estimation, Passive method, Petrophysics, Potential field, Rays, Reservoir geophysics, Resistivity, Rock physics, Signal processing, Seismics, Theory, Time lapse, Tomography, Velocity analysis, Wave." "The selection of alternative keywords are subject to editorial approval." | Danh sách không có "machine learning", "well tie", "uncertainty". |
| Chính tả | "The journal uses British spelling; however, authors may submit using either British/US spelling". | Giữ American spelling được. |
| Footnote | "Footnotes to the text are not allowed". | Footnote trong bảng thì được ("title and footnotes"). `main.tex` chỉ có 1 footnote, nằm trong bảng verdict: giữ. |
| Introduction | "explains the context…, reviews the relevant literature, states the objectives and outlines the work. Generally, the introduction does not contain equations or figures. A priori, the introduction should not contain results, descriptions or conclusive remarks." | Intro hiện có tham chiếu Fig. `tddrift`, số liệu F3 và câu kết quả trong contribution (2). Related work tách riêng: guide đặt review literature *trong* Introduction. |
| Đánh số mục | "Section numbering is optional. If the sections are numbered, the introduction starts with 1." | Tùy chọn. |
| Viết tắt | "The paper title, section titles and abstract are to be free of abbreviations… Initially, use the word in full at the first occurrence in each section, followed by the abbreviation in parentheses… Abbreviations should be kept to a minimum." [Good-paper]: "GP has a strict policy against abbreviations". | `main.tex` dùng SMC 20 lần, RMSE 16, TCN 4, PCC 3, DT 3, TWT 2, GRU 1. Tiêu đề "Experiment 2: SMC tie posterior" vi phạm. |
| Kết | "A conclusion should be a relatively small section with a few paragraphs… Generally, a conclusion does not contain references to equations, figures or tables." Discussion có thể dài hơn và được trích dẫn, tham chiếu hình. | Conclusions hiện một đoạn, không tham chiếu hình: đạt. |
| Tài liệu tham khảo | Harvard author–date: "Smith (2000)"; xếp alphabet; "Submissions are not required to reflect the precise reference formatting of the journal… however it is important that all key elements of each reference are included." Ví dụ: "Koefoed, O., (1967) Units in geophysical prospecting. Geophysical Prospecting 15, 1-6. https://doi.org/10.1111/j.1365-2478.1967.tb01768.x". | Bst tùy chọn, miễn author–year. |
| Trích dẫn dữ liệu | "mandatory data citation policy… authors are required to include data citations as part of their reference list." Định dạng: "[dataset] Authors; Year; Dataset title; Data repository or archive; Version (if any); Persistent identifier (e.g. DOI)". | F3, Volve, Teapot, gói benchmark, kho repro phải có mục `[dataset]` trong References. |
| Hình | Legend "must be understandable without reference to the text. Include definitions of any symbols used and define/explain all abbreviations and units". "In the text, figures should be referenced with the word Figure and the number should be written without parenthesis. All axes should be labelled with quantity, unit and range. The colour scale should be explained." Hình màu miễn phí. | `Fig.~` (6 chỗ) → `Figure~`. |
| Phương trình | "All equations should be numbered… referred to by their number between parentheses, optionally with… 'equation (1)'". Vô hướng nghiêng; vector "upright, bold and in lower case"; ma trận "upright, bold and in upper case"; phương trình là một phần của câu, có dấu câu. | `main.tex` có 3 equation, 1 `\eqref`. Kiểm tra `\bm` (bold italic) so với quy ước upright bold. |
| Đơn vị, số | SI; "Use a zero before decimal points"; "write '7 to 9' or '7–9', not '7~9'"; "Avoid contractions". | Đạt. |
| Dùng từ | "'Seismic' is an adjective and not a noun… use 'the seismic data were acquired' instead of 'the seismic was acquired'." Hiện tượng vật lý dùng số ít: "'reflected events/data' instead of 'reflections'". | `main.tex` có 2 chỗ dùng "the seismic" như danh từ ("no link to the seismic came", "a reference independent of the seismic and"). |
| Ngôi, thể | "If you wish, you may write in the first person singular or plural and use the active voice". [Good-paper]: "Avoid use of the passive case". | "We" được, nên dùng. |
| Supporting information | "information that is not essential to the article, but provides greater depth and background. It is hosted online and appears without editing or typesetting." | Supplement 80 trang nộp làm SI. Nhưng phần "essential" (ví dụ chứng minh cho bài lý thuyết) phải nằm trong bài (Appendices: "published after the references"). |
| Data | "Geophysical Prospecting expects you to archive all the data from which your published results are derived in a public repository." "All accepted manuscripts are required to publish a data availability statement… include a persistent identifier". "If published, all statements will be placed in the heading of your manuscript." | DAS bắt buộc khi được nhận; có DOI. Code không có điều khoản bắt buộc riêng (khác C&G). |
| Conflict of interest | "Authors will be asked to provide a conflict of interest statement during the submission process." | Khai trên hệ thống; không cần mục riêng trong bản thảo. |
| Funding | "Authors should list all funding sources in the Acknowledgments section." | Gộp Funding vào Acknowledgments. |
| ORCID | "requires the submitting author (only) to provide an ORCID iD". | |
| CRediT | Guide không nhắc. | Bỏ `\printcredits`. |
| Highlights, graphical abstract, plain language summary | Guide không yêu cầu (chỉ nhắc dịch vụ trả phí "lay summaries" của Wiley Editing Services). | Bỏ highlights. |
| Phí | Không có page charge trên đường subscription; OnlineOpen tùy chọn (US$4 150 theo `venue-survey.md`, chưa đọc lại hôm nay). Preprint được phép. | |
| AI | Guide trỏ sang EAGE statement. EAGE: "Remember to acknowledge whatever help you received from AI tools. Be specific how you used them… Indicate which piece of text has been written with the help of an AI tool." "To have your abstract or article completely written by an AI tool is not allowed". | Câu khai AI hiện có ("draft and edit the text") phải nói rõ *phần văn bản nào*. |
| Quy trình | Hai reviewer khi có thể, reviewer trả lời trong ba tuần. [Good-paper]: "GP generally accommodates only a single major revision". | Chuẩn bị kỹ trước khi nộp. |
## 2. Mẫu bài đã đăng
Chọn 14 bài GP gần với loại bài của ta (Bayesian/uncertainty, ML trong địa vật lý, porosity/rock physics, well tie hoặc vị trí giếng, thất bại trên dữ liệu thật). Mức đọc được ghi rõ:
- **FT-pub**: toàn văn bản đã đăng.
- **FT-pre**: toàn văn preprint của cùng bài (khác bản đăng; dùng cho cấu trúc, không cho định dạng cuối).
- **Abs**: chỉ abstract (OpenAlex `abstract_inverted_index`, dựng lại theo vị trí từ; không thấy được ngắt đoạn). **Mọi nhận xét về heading, hình, Intro, Conclusion của bài Abs đều *không* có; chỉ nói về abstract.**
Số từ abstract đếm trên bản OpenAlex, đã bỏ chữ "Abstract" đầu; viết tắt = chuỗi in hoa ≥ 2 ký tự.
| # | Bài | DOI | Đọc | Abstract (từ; viết tắt) | Ghi chú |
|---|---|---|---|---|---|
| 1 | Sukar, Côrte & MacBeth 2026, Dynamic reservoir property estimation with uncertainty quantification from 4D seismic data (BNN) | 10.1111/1365-2478.70228 | FT-pub (CC BY; `refs/sukar2026uncertainty.pdf`) | 189; DNNs, BNN | Xem §2.1. |
| 2 | de Lima, Ferreira, Corso & de Araújo 2024, Bayesian time-lapse full waveform inversion using Hamiltonian Monte Carlo | 10.1111/1365-2478.13604 | FT-pub (HTML Wiley qua Wayback 14/06/2025, `web.archive.org/web/20250614220257/https://onlinelibrary.wiley.com/doi/full/10.1111/1365-2478.13604`; CC BY-NC) | 235; không | Xem §2.1. |
| 3 | Elías, Rosas-Carbajal, Späth & Zyserman 2026, Deep neural networks for model error correction in probabilistic inversion of CSEM data | 10.1111/1365-2478.70242 | FT-pre (EarthArXiv 10.31223/x50j19, bản nộp, tiêu đề khác bản đăng) | 150; không | Bản nộp dùng template Wiley dạng "O R I G I N A L A R T I C L E", "Short title", "1 \| INTRODUCTION". Xem §2.1. |
| 4 | Auestad, Mai, Spremić & Eidsvik 2025, A practical and efficient approach for Bayesian seismic AVO inversion: insights from the Alvheim field | 10.1111/1365-2478.70108 | FT-pre (arXiv 2403.03656 v1, 2024; định dạng Elsevier, trích dẫn số; tiêu đề khác bản đăng) | 186; không | Chỉ dùng cấu trúc. |
| 5 | Pirogova, Pevzner, Gurevich & Glubokovskikh 2019, Multiwell study of seismic attenuation at the CO2CRC Otway site | 10.1111/1365-2478.12796 | Abs (closed) | 303; CO2, CO2CRC (tên riêng) | Tiền lệ thất bại trên dữ liệu thật. Câu thất bại nằm thẳng trong abstract: "However, all considered methods of Q estimation are unreliable in the intervals where subsurface significantly deviates from 1D geometry." |
| 6 | Heidari, Madsen, Amini & Hansen 2022 (số 2023), Assessment of the impact of noise magnitude and bandwidth variations on a probabilistic inversion of… seismic data to porosity | 10.1111/1365-2478.13312 | Abs (closed; preprint ESSOAr 10.1002/essoar.10511715.1 chưa lấy được) | 307; không | Kết luận có rào đón vừa phải: "it might be better to overestimate the noise magnitude than to underestimate it". |
| 7 | Han, Yan, Fu & Li 2022, Applicability of cross-property differential effective medium model to the joint elastic–electrical properties | 10.1111/1365-2478.13233 | Abs (closed) | 224; không | Kết quả âm nói thẳng: "The results indicate the incapability of the cross-property differential effective medium model… and suggest the requirement of a new model". |
| 8 | Fernandes & Mosegaard 2022, Errors in positioning of borehole measurements and how they influence seismic inversion | 10.1111/1365-2478.13243 | Abs (hybrid CC BY-NC-ND nhưng PDF 403) | 88; không | Gần chủ đề nhất (sai số vị trí giếng trong inversion). Abstract rất ngắn. |
| 9 | Di & Abubakar 2023, Automating seismic-well tie via self-supervised learning | 10.1111/1365-2478.13333 | Abs (closed) | 297; không | ML + well tie. Không viết tắt dù là bài ML ("dynamic time warping" viết đủ). |
| 10 | Queiroz & Grana 2025, Bayesian seismic–petrophysical inversion for rock and fluid properties and pore aspect ratio in carbonate reservoirs | 10.1111/1365-2478.70041 | Abs (CC BY nhưng PDF 403) | 299; không | Nói rõ novelty trong abstract: "The novelty of the proposed method is…". |
| 11 | Feng, Colombo, Türkoğlu & Sandoval-Curiel 2026, Efficient Bayesian active learning with Langevin dynamics for reservoir porosity inversion | 10.1111/1365-2478.70130 | Abs (bronze, PDF 403) | 184; LMC (định nghĩa trong abstract) | Bài ML-porosity 2026; có viết tắt trong abstract, trái guide. |
| 12 | Um, Alumbaugh, Lin & Feng 2022, Real-time deep-learning inversion of seismic full waveform data for CO2 saturation and uncertainty | 10.1111/1365-2478.13197 | Abs (preprint eScholarship tải rỗng) | 265; CO2 | Liệt kê kết quả "(1) … and (2) …" ngay trong abstract; giọng "We". |
| 13 | Senn, Walker & Tjelmeland 2025, Scalable Bayesian seismic wavelet estimation | 10.1111/1365-2478.70026 | Abs (bronze, PDF 403) | 182; không | |
| 14 | Lee, Jung, Lee & Cho 2026, Workflow for volumetric uncertainty and sensitivity analysis of machine learning-interpreted seismic horizons | 10.1111/1365-2478.70119 | Abs (CC BY, PDF 403) | 177; không | |
Ngoài bảng (chỉ xem metadata, không phân tích): Lorentzen et al. 2022 (10.1111/1365-2478.13252, Abs, 228 từ), Almarzooq & bin Waheed 2024 (10.1111/1365-2478.13484, Abs, 168 từ).
### 2.1 Bốn bài đọc toàn văn
**Sukar et al. 2026 (FT-pub).**
- Nhãn "ORIGINAL ARTICLE". Keywords tự do, phân cách "|": "4D seismic | Bayesian neural networks | reservoir characterization | Schiehallion field | seismic inversion | uncertainty quantification". Không theo danh sách kiểm soát, vẫn được nhận.
- Abstract một đoạn, khoảng 190 từ: vấn đề → khoảng trống → phương pháp → synthetic → field → ý nghĩa. Có viết tắt (DNNs, BNN), trái guide.
- Heading đánh số, Title Case (kiểu dàn trang Wiley 2025–2026): 1 Introduction; 2 Theory: BNNs for Uncertainty Quantification (2.1–2.3); 3 Methodology (3.1–3.2); 4 Results (4.1 Synthetic Validation, 4.1.1–4.1.2; 4.2 Application to Schiehallion Field, 4.2.1–4.2.2; 4.3 Computational Cost Analysis); 5 Discussion; 6 Conclusion. Heading mục 2 có viết tắt, cũng trái guide.
- Lý thuyết là mục riêng ngay sau Introduction, trước Methodology.
- Introduction kết bằng đoạn mục tiêu kể chuyện, không có danh sách đánh số.
- Thân bài khoảng 7 700 từ, 8 hình, 4 bảng; "we" 29 lần; trích dẫn "(Johnston 2013)".
- Conclusion 4 đoạn văn xuôi.
- Phần cuối: Funding ("The authors have nothing to report."), Data Availability Statement theo mẫu dữ liệu hạn chế của Wiley: "The data that support the findings of this study are available from Edinburgh Time-Lapse Project, Heriot-Watt University. Restrictions apply…".
**de Lima et al. 2024 (FT-pub).**
- Keywords lấy từ danh sách kiểm soát (meta `citation_keywords`): acoustics, full waveform, inverse problem, time lapse.
- Abstract một đoạn, khoảng 235 từ, không viết tắt (viết đủ "Hamiltonian Monte Carlo", "full waveform inversion").
- Heading cấp 1 không đánh số, IN HOA (kiểu dàn trang 2024): INTRODUCTION; METHODS (Bayesian full waveform inversion; Bayesian time-lapse full waveform inversion; Hamiltonian Monte Carlo; Mass matrix tuning); APPLICATION ON THE MARMOUSI MODEL; APPLICATION ON A BRAZILIAN PRE-SALT FIELD MODEL; DISCUSSION; CONCLUSION; ACKNOWLEDGEMENTS; Open Research / DATA AVAILABILITY STATEMENT. Heading cấp 2 dạng sentence case.
- Lý thuyết nằm trong METHODS.
- Mỗi ví dụ là một mục cấp 1 mang tên mô hình ("Application on…").
- Introduction kết bằng Claim ("In this paper, we explore a different avenue… Here, we follow a general approach and demonstrate…") và Agenda ("In the following section, we describe… We conclude by discussing the limitations…").
- Thân bài khoảng 7 700 từ, 14 hình, 0 bảng; "we" 63 lần.
- Conclusion một đoạn, không tham chiếu hình, có "We concluded that…".
- DAS: "Data are available on reasonable request to the corresponding author."
- Định dạng tham khảo bản đăng: "Aleardi, M. & Salusti, A. (2020) Hamiltonian Monte Carlo algorithms for target- and interval-oriented amplitude versus angle inversions. Geophysics, 85, R177–R194."
- Bản đăng dùng British spelling ("analyse", "artefacts").
**Elías et al. 2026 (FT-pre, bản nộp).**
- Template Wiley một cột ("O R I G I N A L A R T I C L E", "Short title: …", "KEYWORDS").
- Keywords từ danh sách kiểm soát: "inversion, electromagnetics, resistivity, reservoir geophysics".
- Abstract khoảng 150 từ, không viết tắt (viết đủ "controlled-source electromagnetic"), dù heading và thân bài dùng CSEM.
- Heading: 1 INTRODUCTION; 2 METHODOLOGY (2.1–2.5); 3 RESULTS (3.1 Synthetic example of a marine experiment; 3.2 Data field example…); 4 DISCUSSION; 5 CONCLUSIONS; Appendix A.
- Introduction kết bằng "In this work, we employ a combination of methodological strategies… We first assess the performance of our methodology using synthetic CSEM data. We then extend its application to field data". Không có danh sách contribution.
- 8 hình; "we" 79 lần.
- Conclusions 2 đoạn, không tham chiếu hình.
- Discussion nói thẳng giới hạn của field case: "even when accounting for modeling error, the inversion of the data remains challenging due to limited data coverage".
- Có mục "Use of Artificial Intelligence tools in the writing process", nói rõ công cụ, phiên bản và mục đích ("solely to assist with grammar correction and improvements in readability").
- Data availability: dữ liệu field theo licence, không chia sẻ được.
**Auestad et al. 2025 (FT-pre, arXiv v1, định dạng Elsevier).**
- Heading: 1. Introduction; 2. Background; 3. Proposed method; 4. Numerical study: small-scale data; 5. Results with the Alvheim field data; 6. Discussion and conclusion; Appendix A–C. "Discussion and conclusion" gộp làm một.
- Introduction tóm tắt cả kết quả field rồi mới tới đoạn roadmap. Như vậy guide ("should not contain results") không phải lúc nào cũng được áp; nhưng đây là preprint trước phản biện.
- 13 hình, khoảng 16 600 từ toàn văn (kể cả phụ lục và tài liệu tham khảo).
### 2.2 Điều rút ra từ mẫu [Mẫu]
1. **Abstract:** một đoạn trong mọi bài đọc được, 88–307 từ (trung vị khoảng 200); 269 từ nằm trong khoảng. 11/14 abstract không có viết tắt, ngoài tên hóa chất. Có 3 ngoại lệ (Sukar, Feng: định nghĩa viết tắt; Um: CO2), nên biên tập không phải lúc nào cũng chặn, nhưng guide và Good-paper đều nói rõ.
2. **Kết quả âm được nói thẳng trong abstract, không vòng vo:** Pirogova ("all considered methods… are unreliable"), Han ("the incapability of… model"), Heidari ("if the noise magnitude is underestimated, the inversion algorithm overfits"). Rào đón chỉ ở mức "might be better", "suggest".
3. **Introduction:** cả 3 bài đọc được Intro đều kết bằng Claim kể chuyện ("In this paper/work, we…") rồi Agenda. Không bài nào có danh sách contribution đánh số. Literature review nằm trong Introduction; không bài nào có mục "Related work" riêng.
4. **Lý thuyết:** một mục "Theory" hoặc "Methods/Methodology" ngay sau Introduction; đạo hàm dài để ở Appendix của bài (Elías, Auestad).
5. **Synthetic rồi field:** ví dụ synthetic đặt trước, mục field đặt tên theo mỏ ("Application to Schiehallion Field", "Results with the Alvheim field data").
6. **Độ dài:** khoảng 7 700 từ thân bài, 8–14 hình (2 bài đã đăng đọc toàn văn). Bản `paper_cg/` có 5 100 từ, 6 hình, 3 bảng, tức ngắn hơn mẫu.
7. **Conclusion:** 1–4 đoạn văn xuôi, không tham chiếu hình hay phương trình.
8. **Giọng:** chủ động, "we" dày (29–79 lần mỗi bài).
9. **Keywords:** 2/3 bài thấy keywords dùng danh sách kiểm soát; Sukar dùng tự do.
10. **DAS:** câu ngắn theo mẫu Wiley, đặt cuối bài trong bản đăng (mục "Open Research"), dù guide bảo đặt sau abstract trong bản nộp.
11. **Kiểu heading của bản đăng** (IN HOA 2024, Title Case 2026) do Wiley dàn trang; tác giả không cần bắt chước.
## 3. Quy tắc viết lại `paper_cg/main.tex` cho GP
### 3.1 Ánh xạ mục
| `paper_cg/main.tex` hiện tại | Bản GP đề xuất | Cơ sở |
|---|---|---|
| Front matter CAS (`\shorttitle`, `\credit`, `\cormark`, `\affiliation[...]`) | Title page thường: title, running title < 50 ký tự (ví dụ "Uncertain well ties in learned seismic prediction", 49 ký tự), tác giả, affiliation, e-mail liên hệ, **Acknowledgments**, Abstract, Keywords, **Data Availability Statement** | [Guide] thứ tự phần, checklist |
| Highlights | Bỏ (giữ `paper_cg/highlights.txt` cho C&G) | [Guide] không có mục này |
| 1 Introduction + 2 Related work | **1 Introduction** = Review (gộp Related work, viết rút gọn) + Claim + Agenda; chuyển Fig. `tddrift` và số liệu F3 (14–66 ms, 36.5 ms) sang mục Data, chỉ giữ ở Intro một câu định tính ("of the order of a seismic period") | [Guide] Intro review literature, không có hình, không có kết quả; [Mẫu] 3/3 |
| 3 Data and benchmark | Giữ tên, ví dụ "Data and Benchmark" hoặc "Data", gồm F3 (có Figure `tddrift`), Synthetic generator, Misspecification, Package | |
| 4 Methods + 5 Theory | Hai lựa chọn. (a) Giữ Methods → Theory (lựa chọn 09/11, §12 mục 38). (b) **Theory → Methods** như Sukar. Khuyến nghị (b): GP quen dạng "Theory" sớm, và các mệnh đề là contribution (1). Không bắt buộc. | [Mẫu] |
| Chứng minh (hiện ở Supplement App. A qua `\Sref`) | Cân nhắc đưa một **Appendix A ngắn trong bài** (các mệnh đề chính và chứng minh gọn), để Supplement giữ bản đầy đủ. Với bài có contribution lý thuyết, chứng minh khó coi là "not essential". | [Guide] SI = "not essential"; Appendices in-paper; [Good-paper] "use appendices for lengthy mathematics" |
| 6 Results: "Experiment 1: anchor-posterior banks failed"; "Experiment 2: SMC tie posterior"; "Experiment 3: where the results stop"; "What a field test requires" | Bỏ viết tắt trong heading: "Experiment 2: sequential Monte Carlo tie posterior". Có thể tách field thành mục riêng đặt tên theo dữ liệu (ví dụ "Field Cases: F3 and Volve" hoặc "Requirements for a Blind-Well Test") | [Guide] heading không viết tắt; [Mẫu] field là mục riêng |
| 7 Discussion (What held / Practical advice / Limitations) | Giữ. Discussion được trích dẫn và tham chiếu hình. "Limitations" giữ rõ ràng. | [Guide], [Good-paper] "be open about any limitations" |
| 8 Conclusions | Giữ 1–3 đoạn văn xuôi, không tham chiếu hình/phương trình (đang đạt). Bỏ "SMC", "RMSE" hoặc định nghĩa lại vì đây là một mục mới. | [Guide] |
| Computer code availability (itemize kiểu C&G) | Bỏ dạng itemize. Đưa thông tin code (repository, licence, DOI) vào **DAS** một hai câu, và một câu trong Methods | [Guide] chỉ yêu cầu DAS |
| Data availability | Đổi tên **Data Availability Statement**, chuyển lên sau Keywords; có DOI của dữ liệu dẫn xuất và gói benchmark; trích dẫn F3/Volve/Teapot như `[dataset]` | [Guide] |
| `\printcredits` | Bỏ | [Guide] không nhắc CRediT |
| Declaration of competing interest | Bỏ khỏi bản thảo; khai trên hệ thống nộp | [Guide] |
| Funding | Gộp vào Acknowledgments | [Guide] |
| Generative AI declaration | Giữ, nhưng viết lại theo EAGE: nêu công cụ và **những phần văn bản nào** được AI hỗ trợ. Đặt trong Acknowledgments hoặc một mục ngắn riêng như Elías 2026. Tác giả phải xác nhận. | EAGE statement; [Mẫu] Elías |
| Acknowledgements | Giữ, đặt trên title page theo thứ tự guide (bản đăng sẽ dời về cuối) | [Guide] |
| `\bibliographystyle{cas-model2-names}` | Bst author–year bất kỳ, xếp alphabet (xem §3.4) | [Guide] |
| Bảng và hình inline `[t]` | Bản nộp: References → Tables → Figure legends → (Appendices) → mỗi hình một trang | [Guide] |
### 3.2 Quy tắc bắt buộc theo guide
- **G1. Không viết tắt** trong title, heading, abstract. Trong thân bài viết đủ lần đầu *ở mỗi mục*. Ít viết tắt nhất có thể: RMSE → "root-mean-square error" lần đầu mỗi mục, rồi RMSE; cân nhắc bỏ PCC, TWT, GRU, DT khi chỉ dùng 1–3 lần.
- **G2. Abstract** không có tham khảo, viết tắt, acronym; tự đứng được; nêu kết quả chính. Không giới hạn từ, nên không buộc cắt 269 từ. Chỉ phải thay "RMSE" (xem §3.3).
- **G3. Keywords:** tối đa 7, từ danh sách kiểm soát (xem §3.4).
- **G4. "Figure 1"** trong văn bản, không ngoặc, không "Fig.". Legend tự đứng được, định nghĩa ký hiệu, viết tắt và đơn vị. Trục ghi đại lượng, đơn vị, khoảng; giải thích thang màu.
- **G5. Phương trình** đánh số hết, gọi "equation (1)", có dấu câu. Vector chữ thường đứng đậm, ma trận chữ hoa đứng đậm.
- **G6. Không có footnote trong văn bản** (footnote bảng được).
- **G7. Introduction** không có hình, phương trình, kết quả. Literature review thuộc Introduction.
- **G8. LaTeX đơn giản**: không macro phức tạp, không tham chiếu chéo phức tạp. Bỏ `xr-hyper`/`\externaldocument`. Thay 29 `\Sref{…}` bằng chữ cứng ("Supporting Information, Section S5"), sinh từ `supplement.aux` một lần, hoặc thay bằng mô tả không có số. Thay macro `\mPM`, `\mRML` bằng chữ.
- **G9. Bố cục nộp:** double-spaced, một cột, title page có keywords và e-mail tác giả liên hệ. Nộp `.tex` kèm PDF. Hình trong cùng file, mỗi hình một trang. Running title < 50 ký tự.
- **G10. DAS** bắt buộc, có persistent identifier; GP "expects" dữ liệu ở kho công khai. Mọi bộ dữ liệu được trích dẫn trong References dạng `[dataset]`.
- **G11. Harvard author–date**, alphabet. Không cần đúng định dạng journal nhưng phải đủ thành phần (có DOI).
- **G12. "Seismic" chỉ là tính từ**: sửa "the seismic" (2 chỗ) thành "the seismic data". Không dùng "reflections" làm danh từ số nhiều.
- **G13. Funding trong Acknowledgments; COI trên hệ thống; ORCID của người nộp; AI khai cụ thể** (phần nào, công cụ nào); bài không được do AI viết toàn bộ.
- **G14. Supporting Information** chỉ chứa phần "not essential". Phần bài cần để đứng vững (chứng minh cốt lõi, thiết kế thí nghiệm tối thiểu) phải nằm trong bài hoặc Appendix.
### 3.3 Abstract: xung đột với quy tắc "bản sao nguyên văn"
- Abstract hiện tại (269 từ) có một viết tắt thật: "seismic-band **RMSE**".
- "F3", "Volve" là tên riêng của bộ dữ liệu, không phải viết tắt. Có thể thêm "the F3 block in the Dutch North Sea" cho người đọc ngoài, nhưng không bắt buộc.
- "dB", "Hz", "ms" là ký hiệu đơn vị, được phép (guide dùng chính "s", "cm3").
- "sequential Monte Carlo" đã viết đủ.
- Đề xuất: thay "seismic-band RMSE" bằng "seismic-band root-mean-square error" (271 từ).
- Vì `paper_cg/README.md` yêu cầu abstract của `main.tex` trùng nguyên văn `paper/sections/00_abstract.tex`, sửa **cả hai** trong cùng một lần (bản `paper/` cũng có lợi), rồi chạy lại kiểm tra trùng khớp. Đây là quyết định của phiên chính hoặc người dùng; khảo sát này không sửa.
- GP không bắt cắt. Fallback *Mathematical Geosciences* vẫn cần ≤ 250 từ.
- Giữ một đoạn [Mẫu]. Kết quả âm (field "no consistent improvement") nói thẳng như Pirogova và Han là hợp kiểu GP.
### 3.4 Keywords và bibliography style
- **Keywords đề xuất (7, từ danh sách kiểm soát):** Seismics; Reservoir geophysics; Petrophysics; Inversion; Theory; Numerical study; Computing aspects. Có thể thay một mục bằng "Parameter estimation" hoặc "Borehole geophysics".
- Danh sách không có "machine learning", "well tie", "uncertainty quantification". Theo guide, từ ngoài danh sách cần biên tập chấp thuận. Sukar 2026 dùng từ tự do và vẫn được đăng, nên có thể thêm "well tie" nếu muốn, chấp nhận rủi ro bị đổi.
- **Bst:** guide không bắt định dạng chính xác.
- Gần nhất với bản đăng ("Aleardi, M. & Salusti, A. (2020) Title. Journal, 85, R177–R194.") là `apalike`, có sẵn trong TeX Live của máy này, dùng với `natbib` `authoryear,round`. `plainnat` cũng được.
- Không có bst Wiley/GP chính thức trên máy, và guide không nêu file nào.
- Thêm cờ `[dataset]` cho 5 mục dữ liệu (F3, Volve, Teapot, gói benchmark, kho repro). Có thể thêm bằng trường `note` hoặc chèn tay.
### 3.5 Định dạng nộp lần đầu (gợi ý, không phải template chính thức)
- `\documentclass[12pt,a4paper]{article}`, `setspace` (`\doublespacing`), `lineno` (`\linenumbers`, không bắt buộc nhưng tiện cho reviewer), `natbib[authoryear,round]`, `graphicx`, `amsmath`, `bm` (hoặc `\mathbf` cho vector/ma trận đứng), `booktabs`. Không dùng `xr-hyper`, không macro riêng cho tên phương pháp.
- Có thể dùng `\usepackage[nomarkers,figuresonly]{endfloat}` để dồn hình về cuối, mỗi hình một trang. Bảng và legend theo thứ tự guide; legend cũng có thể đặt ngay dưới hình trên trang riêng.
- Template Wiley một cột mà bản nộp của Elías 2026 dùng cũng được chấp nhận trong thực tế, nhưng guide chỉ nêu Authorea và không xem được template này (403). `article` thuần là an toàn nhất với câu "use only the basic functions".
- Supporting Information: nộp `supplement.pdf` như file riêng. Trong bài gọi "Supporting Information (Section S5, Table S12)" bằng chữ cứng. Đánh số S giữ nguyên như hiện nay.
- Spelling: giữ American (được phép); production sẽ đổi sang British.
### 3.6 Văn phong, giọng, độ dài so với C&G [Good-paper] + [Mẫu]
- **P1. Introduction = Review–Claim–Agenda** (Good-paper, theo Claerbout 1991).
- Đổi danh sách 4 contribution đánh số thành một hai đoạn Claim kể chuyện, nối bằng "but", "so", "therefore". Good-paper: bullet "useful… for listing", nhưng "When the points you want to make follow one from another it is better to present them in a normal running text".
- Bỏ câu kết quả ("which finds that registration accuracy comes first…") khỏi Intro; để ở Discussion/Conclusions.
- Kết bằng đoạn Agenda ("Section 2 describes…") như de Lima.
- Câu C&G "Computationally, … Geoscientifically, …" là yêu cầu riêng của C&G; với GP viết lại thành một câu về ý nghĩa cho địa vật lý thăm dò.
- **P2. Giới thiệu ML cho người đọc địa vật lý.** Good-paper: "Do not hesitate explaining even basic notions, especially in the Introduction"; mục tiêu "reach a wider audience than just the closest colleagues".
- Đặt bài toán dưới dạng quen thuộc của GP: inversion và well tie, sai số time–depth, dải tần seismic.
- Mạng nơ-ron là "a learned predictor (a convolutional–recurrent network)", không dùng thuật ngữ ML không định nghĩa: heteroscedastic head, TCN, GRU, deep ensemble. Nói đủ một lần hoặc đưa sang Methods và SI.
- "Errors-in-variables" và "Berkson" được định nghĩa bằng lời trước ký hiệu.
- **P3. Độ dài.** GP không giới hạn, [Mẫu] khoảng 7 700 từ, 8–14 hình, nên có thể bỏ ép 5 500 từ.
- Nên trả lại vào bài những phần reviewer GP cần để tự kiểm tra mà không mở SI: một đoạn thiết kế tối thiểu cho mỗi experiment, bảng Methods, phần chứng minh gọn ở Appendix.
- Vẫn giữ "less is more": không đưa nhật ký protocol vào bài, để ở SI.
- **P4. Giọng chủ động, "we"**; câu và đoạn ngắn ("Large blocks of text can put off readers").
- **P5. Contribution và limitation.**
- Novelty nói rõ một câu trong abstract và Intro (Good-paper: "A clear statement of what makes your work is novel or significant"; Queiroz 2025: "The novelty of the proposed method is…").
- Limitation nói thẳng, có lý do (Good-paper: "be open about any limitations"; Elías: "remains challenging due to limited data coverage").
- Kết quả âm như phát hiện (Pirogova, Han). Rào đón ở mức "suggests", "might"; không chồng nhiều tầng điều kiện trong một câu.
- **P6. Đặt tên mục theo nội dung vật lý/dữ liệu**, không theo mã thí nghiệm: "Application to…", "Synthetic Validation".
- "Experiment 1/2/3" vẫn dùng được nếu tiêu đề con nói nội dung, nhưng heading không có viết tắt.
- **P7. Tên phương pháp.** "SMC mean"/"SMC bank" dùng viết tắt trong tên. Với GP, cân nhắc "posterior-mean tie" và "posterior-sample bank", hoặc định nghĩa SMC lại ở mỗi mục.
- Đổi tên ở `paper_cg` thì phải giữ bảng ánh xạ tên trong `paper/README.md` nhất quán. Quyết định của phiên chính.
## 4. Chưa kiểm chứng được
1. ~~**Guide live hiện hành**~~ **Đã giải quyết 16/11/2026:** người dùng lưu trang guide live của Wiley thành `paper_gp/Geophysical Prospecting.pdf`; đã đọc và áp dụng (§6 dưới đây; `docs/plan.md` §12 mục 57).
2. **Template Authorea GP** (403, Wayback timeout). Không biết template đặt thứ tự phần hay dàn trang thế nào. Cũng chưa xác minh template Wiley một cột trong bản nộp của Elías có được GP khuyến nghị chính thức không.
3. **Toàn văn bản đăng của 12/14 bài mẫu**, gồm 2 tiền lệ chính Pirogova 2019 và Heidari 2023 (closed, PDF Wiley 403, preprint ESSOAr chưa lấy được). Nhận xét về các bài này chỉ dựa trên abstract. Elías và Auestad chỉ đọc preprint; bản đăng đã đổi tiêu đề, có thể đổi cả nội dung.
4. **Keywords tác giả của các bài Abs:** OpenAlex chỉ có keyword tự sinh; không thấy keyword thật.
5. **Số ngắt đoạn của abstract** các bài Abs (OpenAlex làm mất ngắt đoạn).
6. **Phí OnlineOpen hiện hành** và thời gian xử lý: không đọc lại hôm nay; lấy từ `venue-survey.md`.
7. **Quy định code riêng của GP:** guide chỉ nói dữ liệu, không nói code. Good-paper nói "Ideally an interested reader should be able to reproduce your results"; không phải điều kiện desk-reject.
## 6. Guide live (Wiley, bản in 16/11/2026) và các thay đổi so với bản 2022
Nguồn: `paper_gp/Geophysical Prospecting.pdf` (trang "forauthors" của Wiley, người dùng in ngày 16/11/2026). Những điểm mới hoặc rõ hơn so với bản Wayback 2022 (§1), và cách áp dụng vào `paper_gp/main.tex`:
| Quy định [Guide live] | Áp dụng |
|---|---|
| Thứ tự: title, running title (< 50 ký tự), tên tác giả, affiliation; Acknowledgments; Abstract và keywords; Data Availability Statement; main text; References; Tables (mỗi bảng đủ tiêu đề và chú thích); Figure legends; **Appendices**; Figures (mỗi hình một trang, sau text, theo thứ tự trích) | Đúng thứ tự đó; bảng và hình không còn là float (bỏ `endfloat`), mỗi cái một trang |
| Appendix được in sau References và phải được nhắc trong text; Supporting Information là "not essential to the article" | Thêm **Appendix A** (Mệnh đề A1–A5, Hệ quả A1–A2 cùng chứng minh, chép từ `paper/sections/A_proofs.tex`, không thêm toán mới); phần còn lại vẫn ở Appendix SA |
| LaTeX: "basic functions, avoiding complicated macros or cross-references" | Bỏ các macro tự định nghĩa (chỉ giữ `\todo`); tham chiếu SI là văn bản thường |
| Introduction: bối cảnh, tổng quan, mục tiêu, dàn ý; không phương trình, hình, "no results, descriptions or conclusive remarks" | Câu "lỗi cỡ một chu kỳ trên F3" và "the work shows how" được đổi thành chỉ dẫn và mục tiêu |
| Từ viết tắt định nghĩa lần đầu trong từng mục; không có trong title, tiêu đề mục, abstract | Kiểm bằng script theo mục; định nghĩa lại SMC ở Field và Discussion; DILATE giải thích |
| Mọi phương trình đánh số, trích "equation (1)", có dấu câu | Phương trình 1–3 trong text, A1–A15 trong phụ lục |
| Số dưới 10 viết bằng chữ (trừ có đơn vị hoặc trong danh sách số) | "one of four", "three of the four cells", "two of 152 wells", ... |
| Không footnote trong text, không tên thương mại, tránh dangling participle, "seismic" chỉ là tính từ, không viết tắt kiểu "don't" | OpendTect bỏ khỏi legend Hình 1; sửa một dangling participle (σ_a = 3,5 ms) |
| Conclusion vài đoạn, có thể gợi ý một hai hướng tiếp; thường không nhắc phương trình, hình, bảng | Ba đoạn; hai hướng tiếp (field test có time–depth độc lập; tie model ước lượng cả wavelet và σ_a) |
| Legend tự đứng được, định nghĩa ký hiệu, viết tắt, đơn vị | Viết lại sáu legend |
| Dữ liệu trích dạng "[dataset] Authors; Year; Title; Repository; Version; PID" | `paper_gp/gpnat.bst` (plainnat + trường `prefix`); `prefix = {[dataset]}` cho F3, Volve, Teapot trong `paper/refs.bib` |
| AI: mô tả "transparently and in detail" trong Methods hoặc Acknowledgements | Lời khai báo chi tiết hơn trong Acknowledgments (công cụ, thời gian, việc làm, trách nhiệm); tác giả phải xác nhận |
| Funding trong Acknowledgments; conflict of interest khai ở hệ thống nộp, không in; ORCID của tác giả nộp | todo cho tác giả |
| Lúc revision: hình và bảng là file riêng | Chưa làm (lần nộp đầu) |
## 5. Nguồn
Hướng dẫn và chính sách (truy cập 16/11/2026):
- GP author guidelines (EarthDoc), Wayback 10/12/2025: http://web.archive.org/web/20251210202622/https://www.earthdoc.org/content/journals/gpr?page=submit-a-paper. Toàn văn.
- GP author guidelines (Wiley), Wayback 19/03/2022: http://web.archive.org/web/20220319231155/https://onlinelibrary.wiley.com/page/journal/13652478/homepage/forauthors.html. Toàn văn, bản cũ.
- Luheshi & Moser, "What makes a good Geophysical Prospecting paper?", Wayback 26/06/2025: http://web.archive.org/web/20250626055319/https://onlinelibrary.wiley.com/pb-assets/assets/13652478/What%20makes%20a%20good%20Geophysical%20Prospecting%20paper-1629792321043.pdf. Toàn văn.
- EAGE statement on AI generated content for papers, Wayback 10/06/2026: http://web.archive.org/web/20260610114717/https://eage.org/eage_news/eage-statement-on-ai-generated-content-for-papers/. Toàn văn.
- Không đọc được: https://onlinelibrary.wiley.com/page/journal/13652478/homepage/forauthors.html (403); https://www.earthdoc.org/content/journals/gpr?page=submit-a-paper (403); https://authorea.com/templates/geophysical_prospecting (403).
Bài mẫu: xem bảng §2, đủ DOI. Mức đọc được:
- **Toàn văn bản đăng:** 10.1111/1365-2478.70228 (PDF CC BY tại `refs/`); 10.1111/1365-2478.13604 (Wayback HTML).
- **Toàn văn preprint:**
- 10.1111/1365-2478.70242: EarthArXiv 10.31223/x50j19.
- 10.1111/1365-2478.70108: arXiv 2403.03656.
- **Chỉ abstract (OpenAlex API, https://api.openalex.org/works/doi:…):** 10.1111/1365-2478.12796, .13312, .13233, .13243, .13333, .70041, .70130, .13197, .70026, .70119, .13252, .13484.

View File

@@ -0,0 +1,59 @@
# Nhánh λ → 0 của bank SMC (exploratory): kết quả
Ngày: **10/11/2026**. Khai báo trước: `docs/research/lambda-limit.md` (SHA-256 `eaa9dbc6…`, băm 09/11/2026 09:09:43 UTC, trước mọi tính toán; hash vẫn khớp khi chạy và khi tổng hợp). Đầu ra: `outputs/lambda_limit/` (`summary.md`, `reading.json`, `ratios.csv`, `seff.csv`, `selfcheck.json`, `cells/`). Script: `scripts/41_lambda_limit.py` (ngoài mọi lock, ngoài các archive tái lập).
Đây là **mô tả, không phải verdict**. Không kết quả nào ở đây đổi H2a, H2b, nhánh σ_a, các verdict của `protocol_bench`, ngưỡng, protocol hay abstract. Kết quả không xác nhận cũng không bác bỏ Mệnh đề 4 (bank 64 hạt SMC hữu hạn, chưa được chứng minh là hiệu chỉnh).
## 1. Lượt chạy
- 09/11/2026 09:11–10:01 UTC (`logs/runs/20261109-091152_lambda_limit`): xong 72/88 job rồi bị SIGTERM (exit −15; không rõ nguyên nhân, có thể do phiên agent kết thúc). Mỗi job ghi CSV kết quả sau cùng, nên các job dở không để lại file.
- 10/11/2026 04:06:41 UTC (`logs/runs/20261110-040642_lambda_limit_resume`): cùng lệnh, chạy trong tmux trên cùng máy (`ssh-idp-med-lab-0`, cuda:0, 4 worker); script bỏ qua 72 job đã xong, chạy 16 job còn lại (R0 và Rm5 ở c = 0), rồi tổng hợp. 9 phút 17 giây, exit 0. Log: `logs/lambda_limit.out`.
- Tổng: 11 ô × 8 realization × 5 seed = 440 mạng mỗi nhánh, 4 nhánh, ngân sách chính 250 vòng (125 và 500 chỉ để mô tả).
## 2. Kiểm soát
- **Tái lập:** `B3d-Sa` và `M2-Sa` huấn luyện lại ở 250 vòng khớp `outputs/p2r/train/` ở 7.040/7.040 dòng (ô, realization, seed, giếng test), sai lệch tuyệt đối lớn nhất 0.
- **Số học (§4 của khai báo):** S_eff theo cửa sổ của `Bank-lam0` tối thiểu 0,9896 × số thành viên hợp lệ (tiêu chí 0,95) → đạt; không cần Deviation, không chạy λ₀ = 10⁻⁴. Đối chiếu: `M2-Sa` (λ = 1/τ_c ≈ 0,36–0,37) có S_eff trung bình 7,4–24,3 trên 64 ở ô rộng c = 1, 2,5–8,0 ở c = 2, 27–49 ở ô hẹp.
## 3. Kết quả ở ngân sách 250 (8 ô rộng)
Tỉ số band RMSE (trung bình realization của tử / của mẫu), CI 95% bootstrap trên 8 realization.
| Tỉ số | CI < 1 | CI chứa 1 | CI > 1 | c = 1 (0 dB, half-anchor, two-anchor, −5 dB) | c = 2 |
|---|---|---|---|---|---|
| R1 `Bank-lam0` / `M2-Sa` | 0 | 2 | **6** | 1,012; 1,013*; 1,056; 0,994* | 1,021; 1,058; 1,233; 1,017 |
| R2 `Bank-lam0` / `B3d-Sa` | **8** | 0 | 0 | 0,979; 0,983; 0,940; 0,976 | 0,972; 0,957; 0,822; 0,980 |
| R3 `Mean-MSE` / `B3d-Sa` | 1 | 2 | 5 | 1,061; 1,058; 1,034*; 1,060 | 1,049; 1,039*; 0,886; 1,057 |
| R4 `Mean-MSE` / `Bank-lam0` | 0 | 0 | **8** | 1,083; 1,076; 1,100; 1,086 | 1,079; 1,086; 1,077; 1,078 |
\* CI chứa 1. Ô hẹp (c = 0; 0 dB, 10 dB, −5 dB): R1 0,997 / 0,990 (CI dưới 1) / 0,997; R2 0,990 / 0,984 / 1,000 (cả ba CI chứa 1); R3 1,072 / 1,017* / 1,082; R4 1,083 / 1,033* / 1,082.
**Đọc theo luật đã khai báo (§3):**
- **R1:** CI > 1 ở 6/8 ô rộng → "finite tempering contributes beyond λ → 0 in these cells". Riêng c = 1: 2/4 trên 1, 2/4 chứa 1 (lẫn lộn); bốn ô c = 2 (posterior không ổn định, không phải bằng chứng chính) đều trên 1.
- **R2:** 8/8 ô rộng có CI < 1: bank ở λ → 0 vẫn giữ lợi ích so với SMC mean.
- **R3, R4:** `Mean-MSE` kém `B3d-Sa` ở 5/8 ô (tốt hơn ở 1/8, two-anchor c = 2) và kém `Bank-lam0` ở 8/8.
**Phần lợi ích của `M2-Sa` so với `B3d-Sa` mà `Bank-lam0` giữ được** (1 − R2) / (1 − M2/PM), tính từ trung bình band RMSE: c = 1: 63%, 57%, 55% và 134% (−5 dB, nơi hai bank không khác nhau); c = 2: 58%, 45%, 53%, 55%.
## 4. Theo ngân sách (chỉ mô tả)
| Ngân sách | R1: CI > 1 | R2: CI < 1 | R4: CI > 1 | R1 ở c = 1 |
|---|---|---|---|---|
| 125 | 7/8 | 5/8 | 8/8 | 1,015; 1,027; 1,081; 1,006 |
| 250 | 6/8 | 8/8 | 8/8 | 1,012; 1,013; 1,056; 0,994 |
| 500 | 4/8 | 8/8 | 8/8 | 1,000; 1,005; 1,049; 0,997 |
Phần tempering hữu hạn thêm vào nhỏ dần khi huấn luyện lâu hơn; ở 500 vòng và c = 1 nó còn ≤ 0,5% trừ two-anchor (4,9%). R2 và R4 ổn định.
## 5. Cách đọc (consistent with, không phải cơ chế đã chứng minh)
1. Ở các ô này, **một phần lợi ích của bank không đòi hỏi tempering hữu hạn**: mục tiêu λ → 0 (trung bình NLL Gauss theo π, chính là mục tiêu Mệnh đề 4 phân tích) thắng nhãn tại warp trung bình ở 8/8 ô rộng, 2–6% ở c = 1.
2. Tempering hữu hạn (tái đăng ký ngầm, Nhận xét 1) thêm vào phần còn lại, chủ yếu ở c = 2 và ở setting two-anchor, và phần này giảm khi huấn luyện lâu hơn.
3. MSE trên nhãn trung bình của bank kém bank λ → 0 khoảng 7,6–10% ở mọi ô rộng, và khoảng 8% ở c = 0 tại 0 và −5 dB, nơi bank hẹp và nhãn trung bình gần nhãn tại warp trung bình. Điều này phù hợp với vai trò của loss (MSE không có σ học được so với NLL Gauss) hơn là của nhãn, nhưng nhánh này đổi loss và nhãn cùng lúc nên không tách được (§1 của khai báo).
4. Ngân sách 250 vòng là ngân sách đã đăng ký cho `B3d-Sa` và `M2-Sa`; các nhánh mới có thể bị thiệt (giới hạn đã công bố trong khai báo).
## 6. Hệ quả cho bài
- Bullet Limitations "The λ → 0 objective was not trained" được thay bằng bullet "Tempering" (nhánh đã chạy, exploratory, không kiểm chứng Mệnh đề 4).
- Phụ lục C thêm đoạn "Tempering limit" với các số ở mục 3–4. Theo khai báo §0.1, không đưa vào abstract, kết luận hay phần thảo luận về cơ chế.
- Với khung đóng góp của bài (thảo luận 10/11/2026): kết quả củng cố cách đọc "registration trước, bất định sau". Lợi ích nhỏ của bank so với SMC mean không chỉ là hiệu ứng của tempering, nhưng vẫn nhỏ (2–6% ở c = 1), và theo T2 một bank Gauss chỉ với hai moment đã đạt phần lớn lợi ích ở c = 1.

View File

@@ -0,0 +1,71 @@
# Nhánh λ → 0 của bank SMC (exploratory): khai báo trước
Ngày viết: **09/11/2026**. Trạng thái: **exploratory, khai báo trước**. Tài liệu này được viết và băm SHA-256 (`lambda-limit.sha256`) **trước** khi huấn luyện hay chấm điểm bất kỳ nhánh mới nào. Không sửa sau khi băm; thay đổi phải ghi thành mục "Deviation" có ngày ở cuối tài liệu kèm một dòng hash mới.
Liên quan: `paper/sections/07_discussion.tex` (Limitations, "The λ → 0 objective was not trained"), `paper/sections/05_theory.tex` và Phụ lục A (Mệnh đề 4, Bổ đề sandwich, Nhận xét 1), `docs/research/t2-mechanism.md` và `t2-results.md`, `configs/protocol_p2r.yaml` (khóa; không đụng).
## 0. Tính chất và phạm vi
1. **Exploratory, sau mọi verdict.** Nghiên cứu được thiết kế sau khi đã thấy toàn bộ kết quả P2r, T2 và P6. Không kết quả nào ở đây thay đổi H2a, H2b, nhánh σ_a, các verdict của `protocol_bench`, ngưỡng, protocol đã khóa hay abstract. Hai protocol đã khóa đều cấm "claims about λ" trong phần đăng ký; vì vậy bài chỉ được mô tả các số đo ở đây trong Limitations và Phụ lục C, gắn nhãn exploratory, và không được kết luận rằng một giá trị λ tốt hơn giá trị khác nói chung.
2. **Không kiểm chứng Mệnh đề 4.** Mệnh đề đó nói về một bank hiệu chỉnh tại tối ưu quần thể. Ở đây là 64 hạt SMC, chưa được chứng minh là hiệu chỉnh, với mạng huấn luyện hữu hạn vòng trên 16 giếng. Kết quả theo chiều nào cũng không xác nhận hay bác bỏ mệnh đề.
3. **Dữ liệu.** Chỉ dùng realization 8–15 của P2r và các hạt SMC đã có (`outputs/p2r/posterior/<regime>/r<rid>_c<c>_n16_s0_particles.npz`). Không sinh realization mới. `outputs/p2r/` chỉ đọc; đầu ra ghi vào `outputs/lambda_limit/`.
4. **Nhãn test** chỉ dùng để chấm điểm bằng metric đã đăng ký (`run_d2.evaluate`, band RMSE với f_c = 6 Hz). Không chọn gì theo nhãn test.
### Những gì đã xem trước khai báo này
- Toàn bộ kết quả P2r (`outputs/p2r/summary/`, `posthoc/`), T2 và P6, trong đó: tỉ số H2b của SMC bank so với SMC mean ở N = 16 (`t2-mechanism.md` Bảng A); đối chứng bank nhiễu GP và kết quả tái đăng ký của T2 (`t2-results.md` §2–3), gồm các nhánh `M2-Sa@1` và `M2-Sa@3` (λ = 1, 3); kết quả dev P2 trên 900/901 với λ ∈ {1, 3, ∞} (`outputs/p2/diag/train/`, dùng để giữ λ = 1/τ_c).
- Chưa từng huấn luyện hay chấm điểm λ → 0 hoặc MSE trên nhãn trung bình của bank SMC.
- Trước khai báo, đã nêu với người dùng hai cách đọc có thể có (mục 3); chúng không dựa trên số đo nào của nhánh mới.
## 1. Ô và nhánh
**Ô:** 11 ô của T2 ở N = 16. Tám ô rộng (`wide`): R0, R0h, R10tb, Rm5 ở c = 1 và ở c = 2. Ba ô hẹp làm đối chiếu: R10, R0, Rm5 ở c = 0. Mỗi ô: 8 realization × 5 seed (0–4), tổng 440 mạng mỗi nhánh. Ô c = 2 có posterior không ổn định (`protocol_p2r`), nên kết quả c = 1 và c = 2 báo cáo riêng và c = 2 không phải bằng chứng chính.
**Bốn nhánh** (cùng dựng bank, chuẩn hóa nhãn và backbone với `scripts/32_t2_mechanism.py`; cùng `train_predict`):
| Nhánh | Loss | Nhãn |
| --- | --- | --- |
| `B3d-Sa` (SMC mean, mốc) | Gaussian NLL trên cửa sổ | nhãn tại warp trung bình của 1024 hạt |
| `M2-Sa` (SMC bank, mốc) | RML, λ = 1/τ_c của ô | bank 64 hạt, π đều |
| `Bank-lam0` | RML với λ = λ₀ = 10⁻³ cố định | bank 64 hạt, π đều, y hệt `M2-Sa` |
| `Mean-MSE` | MSE của μ trên cửa sổ (`mse_win`) | nhãn trung bình theo π của 64 thành viên |
`Bank-lam0` xấp xỉ giới hạn λ → 0: gradient là Σ_s r_s ∇ℓ_s với r gần π, nên không cần sửa `bank_loss` (code `ml_porosity/` thuộc hash của `protocol_bench`). λ₀ cố định trước, không chọn theo kết quả.
**Ngân sách.** Không có realization dev của P2r trong `outputs/p2r/`, nên ngân sách chính được cố định trước là **250 vòng cho cả bốn nhánh**, bằng ngân sách đã đăng ký của `B3d-Sa` và `M2-Sa`. Vì 250 được chọn cho các phương pháp đó, nhánh mới có thể bị thiệt; đây là giới hạn được công bố, không sửa theo kết quả. Dự đoán ở 125 và 500 vòng được lưu và chỉ báo cáo mô tả.
`Mean-MSE` khác `Bank-lam0` đồng thời ở nhãn và loss (MSE so với NLL), và khác `B3d-Sa` đồng thời ở nhãn (trung bình nhãn so với nhãn tại warp trung bình) và loss. Không tách được các khác biệt đó; `Mean-MSE` không có σ huấn luyện được nên chỉ báo cáo band RMSE và band PCC.
## 2. Đại lượng
Mọi đại lượng theo ô, ở ngân sách 250. Band RMSE theo realization = trung bình qua seed và giếng test. Tỉ số = trung bình realization của tử / của mẫu; CI 95% bootstrap trên realization (2000 mẫu), như T2 và `protocol_p2r`.
Tỉ số chính:
- (R1) `Bank-lam0` / `M2-Sa`;
- (R2) `Bank-lam0` / `B3d-Sa`;
- (R3) `Mean-MSE` / `B3d-Sa`;
- (R4) `Mean-MSE` / `Bank-lam0`.
Band PCC của các cặp đó được báo cáo cùng. Không có giá trị p; số ô nhiều và phụ thuộc nhau.
**Chẩn đoán trên giếng train (không dùng nhãn test):** effective bank size theo cửa sổ của `Bank-lam0` và `M2-Sa`, S_eff = 1/Σ_s r_s², trung bình qua giếng và seed, tại 250 vòng.
**Kiểm tra tái lập:** band RMSE của `B3d-Sa` và `M2-Sa` huấn luyện lại ở 250 vòng so với `outputs/p2r/train/<regime>/cells/*.csv`, theo (ô, realization, seed, giếng test): ghi sai lệch tuyệt đối lớn nhất. T2 đạt 0.0 trên server cũ; đây là máy khác. Nếu khác không, tỉ số vẫn tính từ các mốc huấn luyện lại trong cùng lượt và sai lệch được báo cáo.
## 3. Luật đọc (mô tả, không phải verdict)
Trên 8 ô rộng, gọi ô là "khác 1" nếu CI nằm hẳn một phía của 1.
- **R1:** nếu CI chứa 1 ở ≥ 5/8 ô: ở các ô này không thấy khác biệt giữa λ → 0 và λ = 1/τ_c. Nếu CI > 1 ở ≥ 5/8 ô: tempering hữu hạn có đóng góp vượt λ → 0 ở các ô này. Nếu CI < 1 ở ≥ 5/8 ô: λ → 0 tốt hơn ở các ô này. Còn lại: lẫn lộn.
- **R2:** đếm số ô có CI < 1 (giữ được lợi ích so với SMC mean).
- **R3, R4:** đếm số ô có CI < 1 và CI > 1; chỉ mô tả.
Cách đọc được phép, kèm chữ "consistent with" và không gọi là cơ chế đã chứng minh: nếu `Bank-lam0` gần `M2-Sa` và giữ lợi ích so với `B3d-Sa`, lợi ích đó không đòi hỏi tempering hữu hạn ở các ô này. Nếu `Bank-lam0` tụt về gần `B3d-Sa` trong khi `M2-Sa` vẫn tốt hơn, điều đó phù hợp với vai trò của tempering/tái đăng ký (Nhận xét 1). Mọi kết quả được báo cáo, gồm cả khi trái chiều.
## 4. Kiểm soát số học
λ₀ = 10⁻³ chỉ là xấp xỉ giới hạn. Chẩn đoán: S_eff theo cửa sổ của `Bank-lam0` phải ≥ 0.95 × số thành viên hợp lệ. Nếu không đạt ở bất kỳ ô nào, ghi Deviation, chạy thêm λ₀ = 10⁻⁴ và báo cáo cả hai; không chọn giá trị theo điểm test.
## 5. Đầu ra
`scripts/41_lambda_limit.py` → `outputs/lambda_limit/` (`cells/*.csv`, `ratios.csv`, `selfcheck.json`, `seff.csv`, `summary.md`); kết quả viết ở `docs/research/lambda-limit-results.md`. Chạy CPU/GPU; ngoài mọi lock, không nằm trong các archive tái lập. Nếu cần sửa lỗi code sau khi băm tài liệu này mà không đổi nội dung khai báo, ghi lại trong tài liệu kết quả.

View File

@@ -0,0 +1 @@
eaa9dbc6d72ae76004577d0a94adbbd01c1f944e5765b65edbfab8b7d1d8d2a3 lambda-limit.md # hashed 2026-11-09T09:09:43Z before any computation of this study

View File

@@ -0,0 +1,163 @@
# Ablation hàm loss: survey, kế hoạch và prompt thực thi
Ngày: **13/11/2026**. Trạng thái: **kế hoạch, chưa khai báo, không chạy: người dùng bỏ ngày 13/11/2026** ("chỉ cần nêu lý do, không cần chạy ablation"; `docs/plan.md` §12 ý 53). Giữ lại làm hồ sơ; bài nêu lý do chọn Gaussian NLL bằng lời (Sec. 4, đoạn "Why a Gaussian likelihood") và ghi giới hạn "Loss family" ở Sec. 7. Đây không phải bản khai báo: agent thực thi sẽ viết `docs/research/loss-ablation.md` từ kế hoạch này, băm SHA-256 rồi mới tính (mục 7). Không số kết quả nào ở đây là mới; các số trích lại có nguồn ghi bên cạnh.
Lý do: người dùng hỏi tại sao bài dùng Gaussian NLL thay vì loss khác, rồi yêu cầu bằng chứng thực nghiệm (13/11/2026). Hiện bài chỉ có lý do lý thuyết (RML cần một log-likelihood cho từng thành viên của bank; Mệnh đề 4 cần ℓ là log-likelihood; σ dị phương sai cho coverage và CRPS) và một bằng chứng gián tiếp: MSE trên nhãn trung bình của bank kém bank λ → 0 khoảng 7,6–10% ở mọi ô rộng (`docs/research/lambda-limit-results.md` §3, R4), nhưng nhánh đó đổi loss và nhãn cùng lúc nên không tách được.
## 1. Survey: các loss thay thế
Tất cả tài liệu dưới đây đã đối chiếu trên Crossref hoặc arXiv ngày 13/11/2026 (tiêu đề, tác giả, năm). Khóa có dấu ✓ đã có trong `paper/refs.bib`.
| Loss | Dạng (trên thang chuẩn hoá) | Giả định về phần dư | Hành vi với nhãn lệch thời gian (Berkson) | Mở rộng sang bank | Nguồn | Quyết định |
|---|---|---|---|---|---|---|
| Gaussian NLL (tham chiếu) | ½log σ² + (y−μ)²/(2σ²) | Gauss, dị phương sai | μ* = E[y\|x]; trọng số 1/σ² làm giảm ảnh hưởng của cửa sổ có σ lớn ("learned attenuation") | RML_λ (log-sum-exp) và kỳ vọng theo π (λ → 0) | Nix & Weigend 1994, doi:10.1109/ICNN.1994.374138; Kendall & Gal 2017 ✓ (arXiv:1703.04977); Lakshminarayanan et al. 2017 ✓ | giữ (tham chiếu) |
| MSE | (y−μ)² | Gauss, đồng phương sai | μ* = E[y\|x]; không có cơ chế giảm trọng số | kỳ vọng theo π | — | chạy |
| Huber | ρ_δ(y−μ) | lõi Gauss, đuôi Laplace | vị trí M-estimator, bền với cửa sổ lệch nặng | kỳ vọng theo π | Huber 1964, doi:10.1214/aoms/1177703732 | chạy (δ chọn trên dev) |
| Laplace NLL | log(2b) + \|y−μ\|/b | Laplace, dị phương sai | μ* = trung vị có điều kiện | RML_λ và kỳ vọng | Kendall & Gal 2017 ✓ (dùng cho hồi quy) | chạy |
| Student-t NLL | −log t_ν((y−μ)/s) + log s | đuôi dày, ν cố định | bền với phần dư lớn do lệch đăng ký cục bộ | RML_λ và kỳ vọng | Lange, Little & Taylor 1989, doi:10.1080/01621459.1989.10478852; Detlefsen, Jørgensen & Hauberg 2019 (arXiv:1906.03260) | chạy (ν chọn trên dev) |
| β-NLL | sg(σ^{2β}) · Gaussian NLL | Gauss; sửa việc NLL bỏ qua vùng σ lớn | giữa MSE (β = 1) và NLL (β = 0) | RML_λ trên ℓ có trọng số và kỳ vọng | Seitzer et al. 2022 (arXiv:2203.09168, ICLR) | chạy (β chọn trên dev) |
| Faithful | (y−μ)² + Gaussian NLL(sg(μ), σ) | μ học như MSE, σ học riêng | tách việc học σ khỏi μ | kỳ vọng theo π | Stirn et al. 2023 (arXiv:2212.09184, AISTATS) | chạy |
| CRPS Gauss | σ[z(2Φ(z)−1) + 2φ(z) − 1/√π] | quy tắc chấm điểm proper, ít nhạy outlier hơn log score | μ* = E[y\|x] khi đúng họ Gauss | kỳ vọng theo π | Gneiting & Raftery 2007, doi:10.1198/016214506000001437 ✓; Rasp & Lerch 2018, doi:10.1175/MWR-D-18-0187.1 | chạy |
| Pinball / CQR | quantile loss | không tham số | trung vị khi τ = 0,5 (≈ Laplace với scale cố định) | kỳ vọng | Koenker & Bassett 1978, doi:10.2307/1913643; Romano et al. 2019 (arXiv:1905.03222) | **loại**: cần nhiều đầu ra quantile (đổi kiến trúc); CQR là hiệu chỉnh sau huấn luyện, không phải loss huấn luyện |
| Beta likelihood | Beta(μφ, (1−μ)φ) | biến bị chặn trong (0, 1) | phù hợp porosity bị chặn | RML_λ | Ferrari & Cribari-Neto 2004, doi:10.1080/0266476042000214501 | **loại**: đổi đầu ra và link; ghi là giới hạn |
| Robust loss thích nghi | họ Barron, tham số α | gồm L2, Charbonnier, Cauchy… | bền | kỳ vọng | Barron 2019, doi:10.1109/CVPR.2019.00446 | **loại**: hai đầu mút đã có (MSE, Huber/Student-t) |
| Loss bền cho nhãn nhiễu (MAE, GCE) | | | chủ yếu cho phân lớp | | Ghosh, Kumar & Sastry 2017 (arXiv:1712.09482) | **loại**: phân lớp; MAE ≈ Laplace với scale cố định |
| Soft-DTW, DILATE, hard/soft-min dịch | | bất biến dịch | đã chạy trong P2r như nhánh không dùng anchor (B4a–d) | | Cuturi & Blondel 2017 ✓; Le Guen & Thome 2019 ✓ | **không chạy lại** (đã có trong `tab:methods`) |
Bối cảnh lý thuyết thêm: Wong-Toi et al. 2023 (arXiv:2306.16717) mô tả các bệnh lý của hồi quy dị phương sai sâu (σ co về 0 hoặc nổ), lý do để có β-NLL và Faithful trong danh sách. Carroll et al. 2006 ✓ (doi:10.1201/9781420010138) cho khung lỗi Berkson/cổ điển mà bài đã dùng.
**Điều lý thuyết dự đoán (dự đoán, không phải kiểm chứng):**
- Trong quần thể, với họ phân phối đủ linh hoạt, các loss chỉ khác nhau ở phiếm hàm vị trí mà μ ước lượng: trung bình có điều kiện (Gauss, MSE, CRPS Gauss, Faithful), trung vị (Laplace), vị trí Student-t. Nhãn lệch thời gian làm mờ cả ba theo cùng một cách (Mệnh đề 3 của bài, Corollary về hàm truyền), nên hiệu ứng của nhãn (registration) nên lớn hơn hiệu ứng của loss.
- Với mẫu hữu hạn (16 giếng), loss khác nhau ở cách đặt trọng số cho cửa sổ: NLL giảm trọng số cửa sổ có σ lớn (thường là nơi lệch đăng ký lớn), MSE thì không. Vì thế MSE và Huber có thể kém NLL ở c ≥ 1 hơn ở c = 0.
- Chỉ các loss là log-likelihood (Gauss, Laplace, Student-t; β-NLL theo nghĩa gần đúng) có RML_λ đúng nghĩa; với MSE, Huber, CRPS, Faithful, bank chỉ có dạng kỳ vọng theo π (giới hạn λ → 0 của RML Gauss).
## 2. Câu hỏi
- **L1 (chính).** Kết luận "registration first" (nhãn SMC mean thắng nhãn point tie tốt nhất ở c = 1) có giữ dưới mọi loss không?
- **L2.** Lợi ích nhỏ của bank so với SMC mean (2–11% khi rộng, H2b) có giữ dưới các loss khác không, ở dạng RML_λ và dạng kỳ vọng?
- **L3.** Với cùng một nhãn, Gaussian NLL có bị một loss khác vượt rõ về band RMSE không?
- **L4 (mô tả).** Khoảng cách tới Oracle (nhãn ở warp đúng) theo từng loss: loss bền có giảm thiệt hại do nhãn lệch không?
- **L5 (mô tả).** Hiệu chỉnh: coverage 80/90, CRPS, NLL, theo cả phân phối riêng của loss và dạng Gauss tương đương.
## 3. Thiết kế
**Mạng và huấn luyện:** CNN–GRU dị phương sai, cửa sổ 64 mẫu bước 2, Adam, full batch, như `ml_porosity/models/bank_train.train_predict` (không sửa file này: nó nằm trong hash của `protocol_bench` và `protocol_p2`). Script mới chép vòng lặp và chỉ thay hàm loss; tự kiểm (mục 5) chứng minh bản chép cho kết quả bit-identical với bản khoá khi loss là Gaussian NLL. Đầu σ (softplus + σ_min) dùng chung làm scale cho Laplace (b), Student-t (s), CRPS (σ).
**Loss (8):** `G` (Gaussian NLL), `MSE`, `Huber`, `Lap` (Laplace NLL), `T` (Student-t NLL, ν cố định), `bNLL` (β-NLL), `Faith` (Faithful), `CRPS` (CRPS Gauss). Với `MSE` và `Huber`, đầu σ không nhận gradient; σ dự đoán dùng cho chỉ số hiệu chỉnh là hằng số = RMS phần dư trên cửa sổ huấn luyện ở cùng ngân sách (thang chuẩn hoá; với bank lấy trung bình theo π), tính từ giếng huấn luyện, không dùng nhãn test.
**Nhãn (7 kiểu):** `Oracle` (warp đúng), ba point tie đã đăng ký `B3b`, `B3c`, `B3c-R`, `PM` (SMC mean warp = `B3d-Sa` khi loss là G), `BankE` (64 thành viên SMC, loss kỳ vọng theo π, cho cả 8 loss), `RML` (RML_λ với λ = 1/τ_c như `M2-Sa`, chỉ cho `G`, `Lap`, `T`, `bNLL`). Tổng 5 × 8 + 8 + 4 = **52 nhánh**. Nhánh `G` × {Oracle, B3b, B3c, B3c-R, PM, RML} chính là các phương pháp đã đăng ký của P2r (tự kiểm).
**Ô (N = 16; realization test 8–15; 5 seed 0–4):**
- Nhóm A (L1, L3, L4, L5): R10, R0, Rm5 ở c = 1 (ô H2a) và c = 0 (ô zero-drift guard), đủ 52 nhánh.
- Nhóm B (L2): R0h và R10tb ở c = 1, chỉ `PM`, `BankE`, `RML` (20 nhánh). L2 dùng 4 ô rộng c = 1: R0, R0h, R10tb, Rm5.
- Nhóm C (lặp lại, khai báo trước, chạy bất kể kết quả A): realization 16–23 (posterior trong `outputs/replication/posterior/`), R10, R0, Rm5 ở c = 1, các nhãn `B3b`, `B3c`, `B3c-R`, `PM`, `BankE`, `RML` (44 nhánh).
- N = 4 không chạy (giới hạn ghi rõ: verdict H2a gốc cần cả N = 4 và 16).
**Ngân sách:** quỹ đạo [125, 250, 500] vòng. Đọc chính: ngân sách đã đăng ký theo nhãn (`configs/protocol_p2r.yaml` `budgets`: Oracle 500, B3b 125, B3c 250, B3c-R 500, PM và bank 250), giống nhau cho mọi loss. Đọc phụ: mỗi loss một ngân sách chọn trên dev (mục 4). Ngân sách đăng ký được chọn cho Gaussian NLL, nên đọc chính có thể thiệt cho loss khác; đó là lý do có đọc phụ.
**Chỉ số:** band RMSE (f_c = 6 Hz, `run_d2.evaluate`) là chỉ số chính; band PCC, RMSE điểm; NLL, CRPS, coverage 50/80/90/95 theo Gauss tương đương (`gaussian_metrics`, σ_eq = √2·b cho Laplace, s·√(ν/(ν−2)) cho Student-t) và theo phân phối riêng (quantile Laplace/Student-t). Tỉ số = trung bình realization của tử / của mẫu; CI 95% bootstrap trên realization (2000 lần), như `scripts/41_lambda_limit.py`.
## 4. Chọn siêu tham số trên dev (không dùng nhãn test)
Dev: R10, c = 1, N = 16, realization 902–905 (posterior SMC có sẵn ở `outputs/bench/dev/posterior/R10/`, cùng thuật toán với P2r: runner của benchmark tái lập một ô P2r bit-for-bit, `docs/research/bench-protocol.md` §2), 5 seed, nhãn `PM` và `BankE`.
- Huber δ ∈ {0,5; 1,0; 1,345} (thang chuẩn hoá); Student-t ν ∈ {3; 5; 10}; β ∈ {0,25; 0,5; 1,0}.
- Luật: chọn giá trị có band RMSE trung bình nhỏ nhất trên nhãn `PM` ở 250 vòng; nếu chênh < 1% so với mặc định thì giữ mặc định (δ = 1,345, ν = 5, β = 0,5).
- Ngân sách cho đọc phụ: với mỗi loss (đã chọn siêu tham số), ngân sách trong {125, 250, 500} có band RMSE dev nhỏ nhất trên nhãn `PM`.
- Kết quả ghi vào `outputs/loss_ablation/dev/selection.json`; giai đoạn test chỉ đọc file này (không sửa bản khai báo sau khi băm).
- Kiểm tra trước khi chạy dev: một ô dev qua đường `G` × `PM` phải cho cùng band RMSE với cột tương ứng trong `outputs/bench/dev/` nếu có; nếu không có dòng đối chiếu thì ghi rõ.
## 5. Tự kiểm
1. Nhánh `G` × {Oracle, B3b, B3c, B3c-R, PM, RML} ở ngân sách đăng ký khớp từng dòng `outputs/p2r/train/<regime>/cells/*.csv` (ô, realization, seed, giếng test; sai lệch tuyệt đối lớn nhất phải là 0, như 7 040/7 040 dòng của `lambda-limit`). Ở nhóm C, khớp `outputs/replication/train/`.
2. Vòng lặp chép trong script mới, với loss G, cho kết quả bit-identical với `bank_train.train_predict` khoá trên ít nhất một ô × một seed (chạy cả hai và so).
3. Kiểm số học: không NaN/Inf; σ không chạm σ_min ở > 5% điểm test; với `T`, ν > 2 nên σ_eq hữu hạn.
4. Nếu (1) hoặc (2) sai: dừng, ghi Deviation, không tổng hợp.
## 6. Luật đọc (mô tả, khai báo trước)
Mỗi tỉ số có CI 95% bootstrap theo realization. "CI < 1" nghĩa là cận trên < 1.
- **L1:** với mỗi loss ℓ, r₁ = band_rmse(PM_ℓ) / band_rmse(best point tie_ℓ), "best" theo đúng luật đăng ký H2a (point tie có band RMSE trung bình nhỏ nhất trong ô, cùng loss ℓ). "Registration first giữ dưới ℓ" nếu CI < 1 ở ≥ 2/3 ô c = 1 **và** ở c = 0 tỉ số ≤ 1,02 (điểm ước lượng) ở ≥ 2/3 ô. Báo cả luật 0,90 đăng ký như đọc phụ. Tổng: "không phụ thuộc loss" nếu giữ dưới cả 8 loss; nếu không, nêu tên loss nào không giữ.
- **L2:** r₂ = band_rmse(bank_ℓ) / band_rmse(PM_ℓ) trên 4 ô rộng c = 1. "Lợi ích bank giữ dưới ℓ" nếu CI < 1 ở ≥ 3/4 ô; riêng cho `BankE` và `RML`.
- **L3:** r₃ = band_rmse(ℓ) / band_rmse(G) cùng nhãn, cho nhãn `PM`, `BankE`, `Oracle`, trên 6 ô nhóm A. "ℓ vượt G" nếu CI < 1 ở ≥ 4/6 ô; "G vượt ℓ" nếu CI > 1 ở ≥ 4/6; còn lại "không khác rõ".
- **L4:** r₄ = band_rmse(PM_ℓ) / band_rmse(Oracle_ℓ) theo loss; so độ lớn với r₄ của G. Chỉ mô tả.
- **L5:** bảng coverage/CRPS/NLL theo loss và nhãn. Chỉ mô tả; không phát biểu nào về hiệu chỉnh.
- **Nhóm C:** áp lại luật L1–L3 trên 16–23 (3 ô c = 1; luật L1 không có phần c = 0). Báo trùng/không trùng với nhóm A.
**Hệ quả cho bài (khai báo trước):** mọi kết quả là exploratory; không đổi verdict, ngưỡng, protocol hay phương pháp đã đăng ký; abstract không đổi. Bài thêm một đoạn "Loss function" ở Phụ lục C và một câu ở Sec. 4 (lý do chọn Gaussian NLL) và ở Limitations, nêu đúng các nhãn đọc của L1–L3. Nếu một loss vượt G (L3), bài nói thẳng: Gaussian NLL được chọn vì lý thuyết (RML, Mệnh đề 4, σ dị phương sai), không vì độ chính xác, và nêu mức chênh.
## 7. Thực thi, chi phí, đầu ra
- **Khai báo:** `docs/research/loss-ablation.md` (tiếng Việt, theo khuôn `lambda-limit.md`: §0 tính chất và phạm vi, những gì đã xem trước khai báo; §1 nhánh và ô; §2 đại lượng; §3 luật đọc; §4 tự kiểm; §5 đầu ra; §6 hệ quả cho bài), băm vào `docs/research/loss-ablation.sha256` trước mọi lần chạy dev hay test. Script kiểm hash ở mọi stage.
- **Script:** `scripts/49_loss_ablation.py` (ngoài mọi lock và archive tái lập; không sửa `ml_porosity/`), stage `smoke`, `dev`, `test`, `replication`, `summary`, `all`; tái sử dụng `scripts/32_t2_mechanism.py` (build_cell) và cách dựng ô của `scripts/46_r6_replication.py` cho 16–23; resume theo file CSV của job (ghi sau cùng).
- **Đầu ra:** `outputs/loss_ablation/{dev/, cells/, replication/, ratios.csv, calibration.csv, selfcheck.json, reading.json, summary.md}`; kết quả `docs/research/loss-ablation-results.md`.
- **Chi phí ước tính:** `lambda-limit` chạy 72 job (4 nhánh × 5 seed × 500 vòng) trong khoảng 50 phút với 4 worker (`lambda-limit-results.md` §1), tức khoảng 8 s mỗi quỹ đạo 500 vòng mỗi worker. Nhóm A: 6 × 8 × 5 × 52 = 12 480 quỹ đạo; nhóm B: 2 × 8 × 5 × 20 = 1 600; nhóm C: 3 × 8 × 5 × 44 = 5 280; dev: khoảng 400. Tổng khoảng 19 800 quỹ đạo ≈ 45 giờ-worker; với 8 worker trên hai GPU khoảng 6 giờ (bank 64 thành viên chậm hơn S = 1, nên đo trên lần smoke rồi ước lại). Bộ nhớ khoảng 0,7 GB mỗi worker huấn luyện (AGENTS.md). CPU: 2 luồng mỗi worker (máy có 40).
- **Chạy dài:** trong tmux của người dùng (`tmux new-session -d -s loss_ablation …`), qua `scripts/runlog.sh`; đặt `OMP_NUM_THREADS`, `MKL_NUM_THREADS`, `OPENBLAS_NUM_THREADS`; không động vào job của người khác trên GPU.
## 8. Giới hạn biết trước
- Ngân sách và kiến trúc chọn cho Gaussian NLL; đọc phụ chỉ chọn lại ngân sách, không chọn lại learning rate.
- Chỉ N = 16; không có trục misspecification của benchmark; Volve và F3 không chạy lại (P3/P4 không bao giờ chạy lại).
- Pinball/CQR và Beta likelihood không chạy (đổi kiến trúc).
- 8 realization mỗi nhóm; bootstrap trên realization (cùng giới hạn đã nêu trong bài).
## Phụ lục: prompt cho agent thực thi
```text
Task: run the exploratory loss-function ablation planned in docs/research/loss-ablation-plan.md (ML-Porosity repo,
/home/jovyan/lamlvh/ML-Porosity). Read AGENTS.md first and follow every rule there (locked protocols and locked code
are never edited; no test-label leakage; design choices from dev realizations only; declare and hash before
computing; long runs in the user's tmux; never touch other users' GPU jobs; set OMP/MKL/OPENBLAS_NUM_THREADS; sync
all docs in the same turn; explanations to the user in Vietnamese; code, paper and commits in English; do not commit
unless the user asks).
Context: the paper trains a heteroscedastic CNN-GRU with a Gaussian NLL, and the SMC label bank with
RML_lambda = -(1/(lambda n)) log sum_s pi_s exp(lambda l_s) (ml_porosity/losses/rml.py). The question is whether
the main conclusions depend on that loss: (L1) SMC-mean labels beat the best point tie at c = 1; (L2) the bank adds a
little over the SMC mean in wide cells; (L3) whether another loss beats Gaussian NLL at equal labels; (L4, L5)
gap to Oracle and calibration, descriptive. Read the plan in full, then docs/research/lambda-limit.md and
scripts/41_lambda_limit.py (closest template), scripts/44_point_tie_arm.py, scripts/46_r6_replication.py,
scripts/32_t2_mechanism.py (build_cell), ml_porosity/models/bank_train.py and ml_porosity/losses/rml.py.
Steps:
1. Write the declaration docs/research/loss-ablation.md (Vietnamese, same structure as lambda-limit.md) from plan
sections 2-6: 8 losses (G, MSE, Huber, Lap, T, bNLL, Faith, CRPS), 7 label kinds (Oracle, B3b, B3c, B3c-R, PM,
BankE, RML for G/Lap/T/bNLL only) = 52 arms; groups A (R10/R0/Rm5 at c = 1 and 0), B (R0h/R10tb at c = 1, PM/BankE/RML
only), C (realizations 16-23, R10/R0/Rm5 at c = 1, no Oracle); N = 16, seeds 0-4, budgets [125, 250, 500]; primary
reading at the registered per-label budgets of configs/protocol_p2r.yaml, secondary at the dev-selected per-loss
budget; dev selection on R10 c = 1 N = 16, realizations 902-905 (outputs/bench/dev/posterior/R10/) with the grids and
the tie-to-default rule of plan section 4; reading rules exactly as plan section 6; self-checks as plan section 5;
consequences for the paper as plan section 6. List what you looked at before declaring. Then write its SHA-256 to
docs/research/loss-ablation.sha256. Do not change the declaration after hashing; any later change is a recorded
Deviation in the results file.
2. Write scripts/49_loss_ablation.py (outside every lock; do not edit ml_porosity/ or any locked script). Copy the
training loop of bank_train.train_predict and make only the loss pluggable; implement the 8 losses on 64-sample
windows with the same gather_windows/window_starts_fixed; bank forms: RML_lambda (log-sum-exp of per-member window
log-likelihoods, lambda = 1/tau_c from register()) for G/Lap/T/bNLL (bNLL: stop-gradient sigma^(2 beta) weights
inside l_s), and the pi-weighted expected loss for all 8. MSE/Huber get a constant predictive sigma equal to the
training-window RMS residual at that budget (pi-weighted for banks). Metrics: run_d2.evaluate (band RMSE primary)
on Gaussian-equivalent sigma, plus native-distribution coverage for Lap and T. Stages: smoke (dev realization only,
one cell, one seed, 20 iterations, writes to a scratch folder), dev, test (groups A and B), replication (group C),
summary, all. Check the declaration hash at every stage. Resume by per-job CSV written last. Use the cell builders
of scripts 32 and 46 (posterior roots outputs/p2r/posterior and outputs/replication/posterior).
3. Self-checks before any summary: (a) the copied loop with G equals the locked train_predict bit for bit on at least
one cell and seed; (b) G x {Oracle, B3b, B3c, B3c-R, PM, RML} at registered budgets reproduce
outputs/p2r/train/<regime>/cells/*.csv row for row (max abs difference 0), and group C reproduces
outputs/replication/train/. If either fails, stop and report; do not summarise.
4. Run smoke, then dev (writes outputs/loss_ablation/dev/selection.json), then test and replication inside the user's
tmux (tmux new-session -d -s loss_ablation -c <repo> "scripts/runlog.sh ... >> logs/loss_ablation.out 2>&1"),
choosing cuda:0/cuda:1 by free memory (keep >= 2.5 GB free per card), about 4 workers per card, 2 CPU threads each.
Re-estimate the total time from the smoke and the first finished jobs and tell the user.
5. Summary: ratios with 95% bootstrap CIs over realizations (2000 draws), readings per the declared rules,
outputs/loss_ablation/{ratios.csv, calibration.csv, selfcheck.json, reading.json, summary.md}. Write
docs/research/loss-ablation-results.md (Vietnamese): runs, controls, tables, readings, interpretation ("consistent
with", not mechanism), deviations, consequences for the paper.
6. Paper (English, exploratory, no verdict/threshold/protocol/abstract change): a "Loss function" paragraph in
App. C (paper/sections/C_record.tex), one sentence in Sec. 4 (paper/sections/04_method.tex) on why Gaussian NLL and
what the ablation found, and the Limitations paragraph of Sec. 7 (paper/sections/07_discussion.tex). Every number must come from outputs/loss_ablation/.
If a loss beats G (L3), say so plainly and say G was chosen for the theory, not for accuracy. Rebuild paper/main.pdf
and paper_cg/ (supplement first; see paper_cg/README.md) and check for undefined references.
7. Sync docs in the same turn: docs/plan.md (section 0, section 12 new item), AGENTS.md (Status, Next), report.html
(task, FINDS, LOG; validate the data block parses), README.md (script 49), paper/README.md (number sources),
docs/technical_overview.md, docs/lecture.md if relevant. Grep for stale statements. Report to the user in
Vietnamese with the numbers and their files.
```

View File

@@ -0,0 +1,181 @@
# Rà soát chống hallucination của bản thảo (04/11/2026)
Theo yêu cầu của người dùng: dùng các skill `scientific-writing`, `literature-review`, `citation-management` và `academic-humanizer` để rà soát và viết lại paper (`docs/plan.md` §12 item 36).
## Cách làm
1. **Audit (pha A).** Năm subagent (Opus; Fable bị giới hạn tốc độ) đọc năm nhóm section và truy mọi số, trích dẫn và claim về nguồn: file trong `outputs/`, protocol bị khóa, code, `docs/`, toàn văn tài liệu tham khảo có trong `refs/` (bản trích văn bản). Phân loại: CITE, NUM, FACT, CLAIM, XREF; mức S1 (phải sửa), S2 (nên sửa), S3 (nhỏ).
2. **Kiểm lại.** Phiên chính tự kiểm lại mọi phát hiện S1 và các phát hiện S2/S3 sẽ dùng để sửa, đối chiếu với file gốc. Ví dụ: `outputs/td_qc.csv` cho bảng `tab:audit`; `outputs/p2/warp_prior_f3.json` và `ml_porosity/registration/pipeline.py` cho cách fit prior; `outputs/p4/summary/metrics.csv` cho R² từng giếng ở Volve.
3. **Sửa.** Một script áp 106 thay thế chính xác (mỗi chuỗi cũ phải khớp đúng một lần) vào 10 section và `highlights.txt`. Script `guard.py` so token được bảo vệ (cite, ref, label, math, số) với bản ở HEAD 423a333. Mọi khác biệt còn lại là thay đổi đã duyệt.
4. **Văn phong (`academic-humanizer`).** Quét các dấu hiệu văn phong AI (em-dash, từ vựng AI, động từ quá mạnh, từ nhấn rỗng, liên từ lặp). Bản thảo hầu như không còn các dấu hiệu này; các lượt chạm còn lại đều hợp lệ (phủ định, "This proves (a)" trong chứng minh). Đã tách 7 câu quá dài quanh các chỗ vừa sửa. Guard không đổi sau lượt này.
5. **Build.** `main.pdf` 69 trang, không có tham chiếu chưa định nghĩa, bibtex không cảnh báo.
## Số phát hiện
| Nhóm | Phạm vi | Tổng | S1 |
|---|---|---|---|
| G1 | abstract, 1, 2, 8, highlights | 17 | G1-01 |
| G2 | 3, 4, 5, App. A | 11 | G2-01 |
| G3 | 6 (dòng 1–224) | 14 | G3-01 |
| G4 | 6 (dòng 225–421) | 18 | 0 |
| G5 | 7, App. B | 27 | G5-01 |
Bốn lỗi S1:
- **G1-01.** Intro nói "hai mô hình TD lệch marker tới 36 ms". Thực tế chỉ mô hình OpendTect lệch tới 36 ms; bộ file thứ hai lệch trung bình −15 đến +41 ms.
- **G2-01.** Bài nói prior warp fit bằng type-II ML. Code đăng ký dùng MAP-II với hyperprior log-normal trên σ_g và ℓ, cố định σ_a = 7 ms và σ_b = 50 ms. Con số σ_b = 19 ms đến từ một lần fit ML riêng cho cả năm tham số; generator dùng lần fit đó.
- **G3-01.** Bài nói protocol của Thí nghiệm 1 đã được commit và gắn tag trước lần chạy chính. Thực tế nó chỉ được khóa bằng hash trước lần chạy, commit sau đó và không có tag.
- **G5-01.** Bài nói nhãn F3 tuyến tính theo sonic ở ba trên bốn giếng. Thực tế PHIE_DT tuyến tính ở cả bốn giếng; ba giếng là của PHIE gốc.
Các sửa S2 chính:
- giới hạn phạm vi các claim: một regime cho nhánh σ_a, R10 và c = 1,5 cho phần mở rộng, chỉ dr_L1 cho prior warp sai, power analysis là exploratory và dựa trên simulator;
- bỏ hai trích dẫn không hỗ trợ claim ở intro (prabowo2025f3, tao2025structural); bỏ DILATE khỏi claim về nhận dạng;
- tách di2023welltie (học tự giám sát) khỏi li2025cascadedtie (không dùng học máy);
- cố định số liệu bảng `tab:audit` theo `td_qc.csv`;
- giới hạn H2a/H2b cho các ô c = 2; ghi "post hoc" cho phép so sánh cos² của BK2;
- mô tả đúng nhánh 500 vòng lặp: không huấn luyện lại, chỉ ghi lại dự đoán trên cùng quỹ đạo huấn luyện; 14/70 ô đổi kết quả theo luật *better*;
- ngoại lệ R² dương ở F-1 B (Volve).
Không có verdict, gate hay ngưỡng nào thay đổi. Không sửa protocol hay code bị khóa.
## Còn mở (cần tác giả)
- **G1-14.** Dấu "DL ✓" ở dòng Rizzuti/BootNet của `tab:positioning` cần tác giả xác nhận.
- Bảy PDF tải tay trong `refs/` chưa có trên máy này. Các claim từ toàn văn của AWSM, Castagna, Rizzuti, P05 và Guillon nên được kiểm lại khi có file.
- **G2-10.** Cách ghi licence Volve: file licence ghi "Creative Commons Attribution 4.0 International license (CC BY NC SA)".
- **G4-04.** Null khai báo trước ở Rm5 viết "within the CI". Bài nay báo "trong 22%" và nêu rằng vài preset vượt ±10% của dev. Chưa có phép thử CI cho null này.
- Tùy chọn: skill `scientific-writing` gợi ý trích dẫn Kassis et al. 2026 (arXiv:2609.00065). Chưa thêm; cần tác giả quyết định.
## Phụ lục: bảng phát hiện gốc (tiếng Anh)
### Findings G1: abstract, intro, related (tab:positioning), conclusion, highlights (saved by main session from subagent report)
Counts: S1 1, S2 8, S3 8. 108 cite uses (~85 OK, 12 flagged, ~11 unverifiable here); 41 numbers (39 OK); 32 claims (22 OK).
| ID | file:line | quote | class | sev | evidence | proposed fix |
|---|---|---|---|---|---|---|
| G1-01 | 01:8 | "Two time--depth models distributed with the data disagree with the markers by up to 36\,ms." | NUM/XREF | S1 | td_qc.csv wlt max_abs 28.6/9.6/8.8/36.5; dt_model max_abs 43.2/44.6/29.0/41.8, mean offsets +40.5,+40.2,+25.2,−14.6 (03:35). | "The OpendTect time--depth model distributed with the data deviates from the markers by up to 36\,ms, and a second set of model files is offset from them by $-15$ to $+41$\,ms on average." (VERIFY) |
| G1-02 | 00:2; 08:8 | "Teapot Dome has independent time--depth references at no more than two of its 152 wells." | NUM/FACT | S2 | inventory summary.json 1,182 wells; 152 = subset in 3-D footprint with tops+density (applicability-teapot.md L102; 06:421 correct). | "...at no more than two of its wells; 152 wells inside its 3-D survey have density logs across the target." |
| G1-03 | 00:2 | "but failed when the anchor uncertainty was set at half or twice its true value." | CLAIM | S2 | arm only R10 c=1 (06:77); 14 ms 0.985/0.928, 3.5 ms 0.977/1.141. | "...but, in the one regime tested (R10, $c = 1$), no longer passed the registered rule when..." |
| G1-04 | highlights:4 | "Tie-posterior label gains on the benchmark fail if anchor error is misset twofold" | CLAIM | S2 | as G1-03. | "In the one regime tested, posterior-mean label gains no longer pass when anchor error is misset twofold" |
| G1-05 | 08:6 | "provided that the anchor uncertainty was correctly specified." | CLAIM | S3 | as G1-03. | "...and, in the one regime where this was tested, only when the anchor uncertainty was correctly specified." |
| G1-06 | 00:2; 01:18; 08:6 | "The posterior-mean advantage extended to stronger drift, a second backbone and a misspecified warp prior" | CLAIM | S2 | verdict_final.md S1-H1 R10 c=1.5; S2 drift R10; S4-H1 R10 c=1; 06:373 "At R10...". | prefix "At R10," and "($c = 1.5$)" for drift. |
| G1-07 | 00:2; 01:18 | "Detecting such gains at blind wells requires an accurate reference: with an exact reference, 5--18 wells gave a power of 0.8" | CLAIM | S2 | T3 exploratory, simulator-based; compares RML vs point tie at c=1 (06:384); referent ambiguous. | "In an exploratory power analysis under the benchmark simulator, detecting the gain ... at blind wells required..." |
| G1-08 | 01:4 | "...score blind wells against labels produced by the same tie \citep[e.g.][]{xu2024sts,prabowo2025f3,tao2025structural,liu2023lowfrequency}" | CITE | S2 | Prabowo and Tao full texts never mention a tie / TD conversion. | keep xu, liu; drop prabowo, tao (or "implicitly") |
| G1-09 | 02:10 | "In the studies we read in full, the labels are placed on the seismic time axis by a tie that is taken as given" | CITE/CLAIM | S2 | alfarraj, vashisth synthetic only; corrales synthetic; rezaei depth-converted cube. | "In the field studies we read in full that work in time, ...; the synthetic-only studies need no tie, and \citet{rezaei2026krigingrf} work on a depth-converted cube." |
| G1-10 | 01:12 | "...such as soft-DTW ... and DILATE ..., cannot fix absolute timing." | CLAIM/XREF | S2 | 04:107 covers shift losses + soft-DTW only; DILATE temporal term penalizes off-diagonal. | drop DILATE or qualify |
| G1-11 | 02:13 | "These losses use no time anchors, no physical tie model and no prior over warps." | CITE | S3 | DILATE TDI term = penalty on path distance from diagonal. | "...no physical tie model and, apart from DILATE's penalty on departure from the label time axis, no prior over warps." |
| G1-12 | 02:7 | "Among learning-based methods, ... \citet{di2023welltie} and \citet{li2025cascadedtie} automate the tie with self-supervised learning and cascaded matching." | CITE | S3 | li2025cascadedtie: local similarity + DTW, not learning. | separate the two |
| G1-13 | 02:10 | "Recent studies predict porosity or impedance with convolutional, recurrent or transformer networks" | CITE | S3 | rezaei2026 = kriging RF; ntibahanana dense layers. | "...with neural networks (convolutional, recurrent, transformer or fully connected) or tree ensembles" |
| G1-14 | 02:33 | Rizzuti/BootNet row DL ✓ | CITE | S3 | Rizzuti = normalizing-flow VI without training labels (abstract+annote). | needs author / full text (missing here) |
| G1-15 | 00:2; 01:18 | "...exceeded the registered population bound ... in seven cells, but in only three the post hoc bound for Berkson error" | CLAIM | S3 | meta.json post 7 (ci_below 6); post_b 3 (ci_below 1). | add "(one with its interval clear of the bound)" |
| G1-16 | 08:6 | "the first pre-registered comparison failed because the anchor-only posterior was not informative." | FACT | S3 | 06:65, 07:5: anchor-conditioned samples reweighted by tempered tie likelihoods; cause from post hoc dev diagnosis. | "...failed; a diagnosis on development realizations showed that its likelihood-reweighted, anchor-conditioned posterior was not informative." |
| G1-17 | highlights:5 | "Blind-well tests need references accurate to ~1 ms; tested public datasets lack them" | CLAIM | S3 | nstar.csv: at 1 ms 4/6 cells need 11–30 wells; exploratory. | "Under the benchmark simulator, blind-well tests need references accurate to ~1 ms; the field datasets tested lack them" |
Unverifiable here (PDFs missing on this machine): lim2025awsm details (44 wells, median/min-misfit models, "no later step uses posterior"), castagna2026 Discussion claims, rizzuti 2024/2025 details, li2024bpinn deterministic tie, guillon "a few pixels"/future loss, quesada (no abstract), dou2024 (no abstract). Abstract-only ᵃ entries OK as scoped.
### Findings G2: 03_data, 04_theory, 05_method, A_proofs (saved by main session from the subagent report)
Counts: S1 1, S2 3, S3 7. ~150 numbers (~140 OK), ~40 claims (~33 OK). Props/Cors vs App. A: no mismatch.
| ID | file:line | quote | class | sev | evidence | proposed fix |
|---|---|---|---|---|---|---|
| G2-01 | 05:14 | "The hyperparameters $(m_g, \sigma_g, \ell)$ are fitted by type-II maximum likelihood on the anchors of the training wells only." | FACT | S1 | pipeline.py:23 "MAP-II ... log-normal hyperprior"; protocol_p2.yaml:25–30 hyperprior sigma_g [0.05,1.0], ell_ms [150,1.0], hyper_starts 4; protocol_bench.yaml:70 MAP-II. | "...are fitted by type-II maximum a posteriori estimation, with log-normal hyperpriors on $\sigma_g$ and $\ell$, on the anchors of the training wells only." |
| G2-02 | 05:14–16 | "$\sigma_a$ and $\sigma_b$ are fixed." ... "The fitted bulk spread is $\sigma_b = 19$\,ms." | FACT/XREF | S2 | registration fixes σ_a=7, σ_b=50 ms (all protocols); 19 ms is from 5-parameter type-II ML fit (warp_prior_f3.json matern32 σ_b 19.4, σ_a 0.39) used by generator; 04:101 and 06:57 use σ_b=50. | "$\sigma_a = 7$\,ms and $\sigma_b = 50$\,ms are fixed."; L16 "A separate type-II maximum-likelihood fit of all five hyperparameters to the F3 anchors gives ... $\sigma_b = 19$\,ms." |
| G2-03 | 03:23–26, 35 | tab:audit max\|Δt_wlt\| 28.5/10.2/9.2/36.4; "up to 36.4\,ms" | NUM | S2 | outputs/td_qc.csv wlt max_abs_ms 28.6/9.6/8.8/36.5; paper values from docs/plan.md §1.2(c) L86–89. | 28.6, 9.6, 8.8, 36.5; "up to 36.5 ms" (verify) |
| G2-04 | 05:61 | "All five statements are exact and are checked numerically in the code's unit tests." | CLAIM | S2 | tests/test_losses.py: soft-DTW lemma only band 0 + fast vs autograd. | append "(the soft-DTW identity only in its single-path case)" |
| G2-05 | 05:34 | "$P = 1024$ meets it at $c = 1$ on development data." | CLAIM | S3 | protocol_p2r.yaml stability.dev_result: 4/4 at SNR 10; 3/4 at SNR −5 (r900 N=4 0.95 ms); disclosed 07:36. | "...at SNR 10\,dB (4 of 4 cells; 3 of 4 at $-5$\,dB, Section~\ref{...})." |
| G2-06 | 03:9 | "the amplitude spectrum around the wells and over the volume peaks near 60\,Hz with a mean frequency of 49\,Hz" | NUM | S3 | plan L190–196: volume 60 Hz, mean 49; wells 55/43/62/58 Hz. | "the spectrum of the volume peaks at 60\,Hz (43--62\,Hz around the wells), with a mean frequency of 49\,Hz" |
| G2-07 | 05:58 | "$\tau_c \approx 2.7$ samples and $\lambda \approx 0.37$, nearly constant across the grid." | NUM | S3 | p2 summary.md tau_c 2.70–2.90 (main 16 cells), lam 0.356–0.373. | "$\tau_c \approx 2.7$--$2.9$ samples and $\lambda \approx 0.36$--$0.37$" |
| G2-08 | 05:104 | "The number of iterations is selected separately for each method from $\{125, ...\}$" | FACT | S3 | PM2/BK2/HM2/Ctl-GP inherit budgets (protocol_bench.yaml; tab:benchdesign). | append "(benchmark controls inherit the budget of the method they modify; Table~\ref{tab:benchdesign})" |
| G2-09 | 03:74 | "Only F-11 T2 has a zero-offset VSP." | FACT | S3 | volve-inventory.md:27–29: F-15 A and 15/9-19 also have VSP; not among the six wells. | "Of the six wells, only F-11 T2 has a zero-offset VSP." |
| G2-10 | 03:68 | "the licence files of the release name CC BY-NC-SA 4.0" | FACT | S3 | license.txt: "Creative Commons Attribution 4.0 International license (CC BY NC SA)". | "the licence files of the release name a Creative Commons 4.0 licence with BY-NC-SA terms" |
| G2-11 | 04:7; 05:163 | "The split uses a zero-phase fourth-order Butterworth filter." | FACT | S3 | butter(4) + sosfiltfilt. | "a fourth-order Butterworth filter applied forward and backward (zero phase)" |
Could not check: fuller1987, carroll2006, berkson1950, sakoe1978 (no text); mensch2018 HVP claim (not in abstract); pauli/ribatet "simplest magnitude adjustment" (abstract only); H1 "6.8–22.5 Hz, 72%" only in docs/theory.md; S2 dev diagnostics only vs docs; B0/B1 rows only vs protocol_p2; full proofs out of scope.
### Findings G3: paper/sections/06_experiments.tex L1–224 (saved by main session from the subagent report)
Counts: S1 1, S2 5, S3 8. NUM 6, CLAIM 5, FACT 2, XREF 1, CITE 0. ~330 numbers traced (~322 OK); ~45 claims (~37 OK).
| ID | file:line | quote | class | sev | evidence | proposed fix |
|---|---|---|---|---|---|---|
| G3-01 | 06:4 | "The protocols of Experiments~1 and~2 were also committed and tagged in version control before their main runs." | FACT | S1 | protocol_p2.yaml first commit cee2ff0 2026-10-27 06:03 UTC; P2 main run 26/10 10:51–12:20 UTC on a76e613 dirty tree (logs/index.csv); no P2 tag (tags: protocol-v2, protocol-p2r, protocol-f3, protocol-volve). Hash lock before run is supported. protocol-p2r tagged 06:48 27/10, before 06:55 main run. | "The protocol of Experiment~2 was also committed and tagged in version control before its main runs; that of Experiment~1 was locked by hash before its main run but committed only afterwards, without a tag." |
| G3-02 | 06:80 (+L161 caption) | "Cells at $c = 2$ are reported with an ``unstable posterior'' flag and are not used as primary evidence" | CLAIM | S2 | protocol_p2r.yaml: flag = not primary evidence for H2a; H2b 8/8 includes 4 c=2 cells, ρ over all c (verdict.json h2b). | "...not used as primary evidence for H2a (...); the registered H2b tests include them." / caption "...not primary evidence for H2a." |
| G3-03 | 06:166 | "The SMC posterior was close to calibrated when the anchors were dense and $\sigma_a$ was correct." | CLAIM | S2 | sigma_post.csv c=1 N=16 warp_cov90: R10 0.886, R0 0.860, Rm5 0.862; plan §10 bars calibration wording. | "When the anchors were dense and $\sigma_a$ was correct, the 90\% coverage of the SMC warp posterior was near, but below, nominal." |
| G3-04 | 06:83 | "by 11\% at R0 and by 8\% at Rm5" | NUM | S3 | Rm5 c=1 ratios 0.915 (N=4), 0.923 (N=16) → 8.5%, 7.7%. | "by 8--9\% at Rm5" |
| G3-05 | 06:208 vs 129 | "two of these by at most 0.003, and in no cell at the measured warp error." | XREF | S3 | bound.csv margins R0h 0.0023, R10tb 0.0037; L129 says "less than 0.004"; b60/cross-spectral variants give 1 cell (R0 c=1), reported at L131. | "two of these by less than 0.004, and in no cell at the measured warp error under the base estimator (one, R0, under the 60\,Hz and cross-spectral variants)." |
| G3-06 | 06:15 | "it stayed 20--24\% above the oracle" | NUM | S3 | p2 methods.csv c=1 M2/Oracle: 1.1997, 1.1998, 1.2468, 1.2420. | "20--25\%" |
| G3-07 | 06:208 | "At $c = 2$ neither structure fitted, and for B3c-R the anchor-referenced test is not clean" | FACT | S2 | t2/test_iv.csv B3d-Sa N=16 c=2 verdict_anch: Rm5 "Berkson"; others "neither". | "At $c = 2$ the anchored test gave Berkson only at Rm5 and neither structure in the other three cells, and for B3c-R..." |
| G3-08 | 06:214 (heading 213; also 223) | "...and one (R0, $c = 1$) was borderline" | CLAIM | S2 | t2-mechanism.md (ii) categories A/B/C/D, no "borderline"; test_ii.csv & meta.json: R0 c=1 = "B: against (a)" (Ctl-GP/PM 0.987 [0.972,1.003] vs M2-Sa/PM 0.967 [0.955,0.979]). "most of the gain at c=1" holds 3/4 cells. | "...and one (R0, $c = 1$) was read as against label augmentation under the declared rule (Ctl-GP interval reaching 1.003)"; heading "...gets most of the gain in three of the four cells at $c = 1$"; same at L223. |
| G3-09 | 06:223 | "information specific to the SMC bank mattered at $c = 2$, where the posterior is unstable and often multimodal." | CLAIM | S2 | test_iii.csv m_u N=16 c=2: R0 0.070, R0h 0.188, R10tb 0.508, Rm5 0.039; contradicts L220. | "...at $c = 2$, where the posterior is unstable (and, at R10tb, often multimodal)." |
| G3-10 | 06:219–220 | "No evidence that multimodality drives the gain." ... "a borderline result." | CLAIM | S3 | primary (m_u≥0.25): no evidence (D_adj −0.012 [−0.043,0.020]); sensitivity criterion meets declared "evidence for (b)" (meta.json test_iii.any.verdict). | heading "(iii) No evidence under the primary criterion that multimodality drives the gain."; "...which meets the declared criterion for evidence of (b) only marginally." |
| G3-11 | 06:214 | "marginal standard deviation 0.98--0.99 ... warp error 1.00--1.03 times" | NUM | S3 | test_ii.csv cell-level ctl_sd_ratio 0.978–0.999; err ratio 0.998–1.023 (all), 1.005–1.023 (wide). No file gives paper ranges. | "0.98--1.00" and "1.00--1.02" (or author) |
| G3-12 | 06:211 | "Training length thus accounts for 29--35\% of the registered gap" | NUM | S3 | test_v.csv c=1: 0.2955, 0.3107, 0.3493. | "30--35\%" |
| G3-13 | 06:178 | "...a larger $\xi$ and a higher coverage than the Oracle in 80--99\% of the 240 realization cells." | NUM | S3 | t4/cells.csv: each separately 80–99%; both jointly 75.0–98.3%. | "...a larger $\xi$, and a higher coverage, than the Oracle in 80--99\% of the 240 realization cells (each criterion separately)." |
| G3-14 | 06:217 | "with 13--40\% lower warp error" | NUM | S3 | test_i.csv: 0.126–0.394. | "13--39\%" |
Not checked: figure contents (captions only), blur_ab.csv, content of internal cross-refs, T2 declaration timing beyond self-recorded hash + logs/index.csv, sd(β)≈25 ms formula.
### Findings G4: 06_experiments.tex L225–421 (benchmark, T3, field scope) (saved by main session from subagent report)
Counts: S1 0, S2 4, S3 14. ~400 numbers (~392 OK), 1 cite OK, ~50 claims (~38 OK). Both D-13 readings reported; S2-H1 failures stated; no general-robustness claim.
| ID | file:line | issue | sev | evidence | fix |
|---|---|---|---|---|---|
| G4-01 | 06:250, 370 | "every method retrained at 500 iterations" | S2 | protocol_bench.yaml training.equal_budget_arm: trajectories record prediction at 500 its; equal_budget.csv 70 S1 rows (30 Exp.2 cells absent) | :250 "and a record of every method's prediction at 500 iterations of the same training trajectories"; :370 "Every method's training trajectory was also evaluated at 500 iterations, in the cells run in Experiment 3 (not in the cells read from Experiment 2); no rule uses this arm." |
| G4-02 | 06:370 | "No result above changed direction." | S2 | rule better RML/PM flips 14/70 S1 cells (wide 30/36→26/36), ratios 0.970–1.0035; PM/best crosses 1 at R0h c1 N2 | "No verdict-level result changed direction; the rule *better* for RML/PM changed outcome in 14 of the 70 S1 cells evaluated, all with ratios between 0.97 and 1.01 at both budgets." |
| G4-03 | 06:232 caption | budgets "those of Experiment 2" | S3 | B4a–d use protocol_p2 values 125/125/500/250 | add "(for B4a--B4d, those of Experiment~1)" |
| G4-04 | 06:303 | "diagnostics stayed near nominal (3.1–4.1 ms; 0.74–0.88) except dr_L1" | S2 | s2_smc.csv: ranges include dr_L1; without: 3.08–4.01, 0.742–0.858; wv_L2 +22%, dr_L2 +21% | "stayed within 22% of nominal (3.1--4.0 ms; 0.74--0.86), except dr_L1; several presets exceeded the ±10% seen on dev" |
| G4-05 | 06:303 (+Sec 3.2) | "0.22--0.34 of the noise" | S3 | bench-protocol dev table wv_L1 0.19 | "0.19--0.34" |
| G4-06 | 06:326 tab:s2 dr_L2 | "1.03" | S3 | s2_degradation.csv 1.02479 | "1.02" |
| G4-07 | 06:332 | "1.21 … 0.82 and 0.79 … 0.46 for PM" | S3 | 1.2049, 0.8147, 0.7848, 0.4547 | "1.20, 1.14, 0.81 and 0.78 … 0.45" |
| G4-08 | 06:340 | "37% at Rm5" | S3 | BK2/PM2 0.6353 | "36%" |
| G4-09 | 06:370 | "unchanged within 0.01" | S3 | max change 0.0125 at Δ8 | "changed by at most 0.013 (0.01 at Δ∈{16,32} ms)" |
| G4-10 | 06:253 | D-13 "three places … differ only for S3-H1" | S3 | S2-H1 no top-level pass; S1-H1 as run null | reword |
| G4-11 | 06:340, 373 | BK2 "more than average … re-registration" | S2 | cos² comparison post hoc (--flipband) | add "In a post hoc comparison," / "(post hoc)" |
| G4-12 | 06:334 | "beyond first two moments mattered where unstable" | S3 | s3_control: c=2 only, descriptive | "mattered mainly at c=2, where the posterior is unstable (descriptive)" |
| G4-13 | 06:228 | "S4 repeats three cells" | S3 | six cells (3 regimes × N 4,16) | "six cells (three regimes, N∈{4,16})" |
| G4-14 | 06:228 | "numbered as in the protocol" | S3 | protocol has no S5–S7 | "numbered as in the study plan" |
| G4-15 | 06:373 | "misspecified warp prior" | S3 | only dr_L1 passes | "a moderately misspecified warp prior (dr_L1)" |
| G4-16 | 06:421 | "Three … synthetic seismograms" | S3 | 2 "synthetic log", 1 "synthetic seismogram" | reword |
| G4-17 | 06:414–415 | "Both field gates failed." | S3 | G-D declared descriptive | add "(G-D was declared descriptive)" |
| G4-18 | 06:421 | 1.5 ms tolerance at ≤115 wells | S3 | N*=58 at 1.5 ms by script-27 formula; not in an output file | add "(58 wells by the formula of the power analysis; Table stops at 40)" |
Not checkable: neighbour-well correlation (prose only), VSP depth, declaration timing vs download, 91/100 at 500 its, figure images.
### Findings G5: 07_discussion (all), B_field (all) (saved by main session from subagent report)
Counts: S1 1, S2 12, S3 14. ~610 numbers (~585 OK), ~85 claims (~70 OK). Gate verdicts correct; no P4x; no field/calibration claim.
| ID | file:line | issue | sev | fix |
|---|---|---|---|---|
| G5-01 | 07:27 | "F3 label linear in sonic at three of four wells" — PHIE_DT is linear at all four | S1 (verified) | "The F3 label PHIE_DT is, moreover, a linear function of the sonic at all four wells (the original PHIE at three of them)" |
| G5-02 | 07:18 | "passed in all eight wide cells at N=16" — 4 at c=2 (unstable flag) | S2 | add "(four at c=1; the other four at c=2, flagged unstable)" |
| G5-03 | 07:21 | "Halving or doubling removed the H2a advantage in every cell" — 14 ms left 7% gain at N=16 | S2 | "No cell passed the H2a rule when halved or doubled (doubling left a 7% gain at N=16 whose interval reached 1)" |
| G5-04 | 07:5 | "Exp. 1 direct evidence marginalization does not rescue" — M2 beat B3d by 3%, 11% | S2 | "in Exp. 1 marginalizing over a poor posterior improved on its mean but not on the best point tie" |
| G5-05 | 07:31 | "three axes, at two levels each; H2a held only under misspecified warp prior" — seven presets, wavelet three | S2 | "three axes (seven presets); at R10, H2a held in both cells only under dr_L1" |
| G5-06 | 07:34 (+05) | "At c=2 the SMC posterior was multimodal" — 51% R10tb, 19% R0h | S2 | "mean warp unstable between runs, and the posterior often multimodal (51% of wells at R10tb, 19% at R0h)" |
| G5-07 | 07:37 | F3 macro cov80 0.38–0.52 "every probabilistic method" — M2-fixed-sigma ablation 0.87 | S2 | "every registered method (Table f3all)" |
| G5-08 | B:104 | "without B3a, the 13 networks" — 12 | S2 | "the other 12 networks" |
| G5-09 | B:104 | "by up to 0.06 p.u." — up to 0.14 vs B3a | S2 | "by 0.002–0.14 p.u. (up to 0.06 relative to PM and RML)" |
| G5-10 | B:104 | "Band PCC did not exceed 0.22 for any network" — M2-bulk ablation 0.242 | S2 | "for any network in Table f3all" |
| G5-11 | B:104 | "Every probabilistic method under-covered" | S3 | "of Table f3all" |
| G5-12 | B:226 (+06:415) | "each method predicted held-out well worse than own mean" — F-1 B lowo R² 0.10–0.34 | S2 | add exception F-1 B |
| G5-13 | 07:18 | "cheaper alternative" Ctl-GP — no cost result | S2 | delete "cheaper" |
| G5-14 | 07:18 | "Exp 3 confirms" | S3 | "extends" |
| G5-15 | 07:15 | "No evidence linked gain to multimodality" | S3 | "No clear evidence (one borderline split)" |
| G5-16 | 07:5 | "stayed as wide as anchors allowed" — 3.15 vs 3.71 | S3 | "barely contracted (3.15 against 3.71 ms)" |
| G5-17 | B:108 | omits F06-1 worse by 1.2% | S3 | add |
| G5-18 | B:111 | "no ratio by more than 0.01" — 0.0107; 8 Hz 2/4 | S3 | reword |
| G5-19 | 07:27 | "shift ... up to 0.15" — is 5–95% range width | S3 | reword |
| G5-20 | B:192 | 5.8%, 7.1% → 5.7, 7.2 | S3 | |
| G5-21 | B:251 | at most 0.06 → 0.07 | S3 | |
| G5-22 | B:226, 07:27 | up to 0.25 → 0.26 | S3 | |
| G5-23 | B:226 | "Networks beat it only at F-1 and F-1 B" — slot F-1 only PM, RML | S3 | add qualifier |
| G5-24 | 07:24 | check shots/VSP "can meet" | S3 | "can in principle meet; we did not test their accuracy" |
| G5-25 | 07:24 | "per-well error 5–7 ms" | S3 | "residual SD 6.75 ms (robust 5.0 ms)" |
| G5-26 | B:135 | 1.8–6.2 → 1.9–6.2 | S3 | |
| G5-27 | B:140 | twelve variants of RML — one is PM | S3 | "twelve ablations, eleven of RML and one of PM" |
Could not check: B:104 1.224 (not stored), 07:36 phase attribution, B:207 gate recompute, pilot/smoke logs, "adds little to training".

View File

@@ -0,0 +1,104 @@
# Văn phong bản thảo: bài học từ abstract, survey C&G và bảng tên gọi (09/11/2026)
Tài liệu này ghi lại cơ sở của đợt viết lại `paper/sections/` ngày 09/11/2026 (`docs/plan.md` §12 mục 38).
## 1. Abstract đã thay đổi thế nào qua các commit
| Commit | Ngày | Số từ | Đặc điểm |
|---|---|---|---|
| 4a5d0b2 | 28/10 | khoảng 480 | Kể theo trình tự làm việc: số liệu F3, Mệnh đề 1, RML, thất bại, SMC, field. Như nhật ký thí nghiệm. |
| 0cfe202, 381b5ff, 423a333, bbdb829 | 29/10–04/11 | 270 → 458 | Một đoạn dài. Mỗi đợt audit chèn thêm một ngoặc điều kiện: "(R10, $c = 1$)", "(one with its interval clear of the bound)", "9 of its 11 verdicts", "We make no field or calibration claim". |
| fc15bf6 | 09/11 | 241 | Bản người dùng chọn làm mẫu. |
Bản fc15bf6 làm khác các bản trước ở những điểm sau, và đây là các quy tắc áp dụng cho phần còn lại của bài:
1. **Vấn đề một câu, câu hỏi một câu.** Không dẫn dắt.
2. **Nói kết quả bằng lời trước, ký hiệu sau.** "errors independent of the data blur the optimal predictor and attenuate the seismic band".
3. **Đặt điều kiện ở đầu câu, không nhét ngoặc ở cuối.** "When the tie model is correctly specified and dense time--depth anchors have known uncertainty, ...".
4. **Dùng đại lượng vật lý thay mã.** "signal-to-noise ratios of 10, 0 and $-5$\,dB" thay cho R10, R0, Rm5.
5. **Một ý tương phản dùng một liên từ** ("whereas"), không tách thành hai câu rào đón.
6. **Con số đi sau ý, kèm đơn vị và đối tượng so sánh.** "reducing seismic-band RMSE by 8--22% relative to the best deterministic tie".
7. **Không kể quy trình** (số verdict, hash, ai làm trước ai). Quy trình vẫn được công bố, nhưng ở chỗ dành cho nó.
8. **Thất bại được viết như một phát hiện có lý do.** "Field validation remains open: F3 and Volve, where we found no consistent improvement, have too few wells with independent, accurate time--depth references to detect such gains."
9. **Kết bằng một yêu cầu định lượng**, không bằng lời miễn trừ.
## 2. Survey C&G
**Giới hạn cần nói rõ.** Elsevier từ chối truy cập tự động, nên agent không tự đọc được toàn văn các bài C&G bản chính thức: Gravey 2026, Shishaev et al. 2026, Tschannen et al. 2022, Yunjun et al. 2019. Tôi không cố vượt qua việc chặn này. Bằng chứng gồm:
- Baddeley et al. 2025 (C&G 204, 105965), bản chính thức do người dùng tải về `refs/baddeley2025.pdf`: đọc toàn bộ thân bài, Phụ lục A và phần định lý của Phụ lục C; không đọc Phụ lục B và phần cuối Phụ lục C.
- Toàn văn preprint arXiv của hai bài đã đăng trên C&G: Zhu et al. (arXiv 2003.06027, DOI 10.1016/j.cageo.2021.104751; đọc toàn bộ thân bài) và Barbosa et al. (arXiv 2001.06444, DOI 10.1016/j.cageo.2020.104615; đọc đến khoảng 65%). Preprint có thể khác bản đã đăng.
- Abstract của 36 bài C&G lấy từ OpenAlex (lọc ISSN 0098-3004, 2015–2026), gồm cả Baddeley, Gravey, Shishaev.
Nếu muốn mở rộng survey, người dùng có thể tải PDF bốn bài còn lại (đều open access, trừ cần kiểm lại Yunjun) vào `refs/`.
**Kết quả.**
| Quy ước | Baddeley et al. | Zhu et al. | Barbosa et al. | 36 abstract |
|---|---|---|---|---|
| Tên kịch bản và phương pháp | Dữ liệu bằng lời ("Murchison example"); vài mã có nghĩa, định nghĩa ngay khi đưa ra: rule S ("separate"), rule R ("respect"), S1–S4, R1–R4 | Bằng lời ("Marmousi benchmark model") | Bằng lời, thêm số giai đoạn ("Stage 1") | 2/36 có mã tự đặt kiểu thuật ngữ riêng (H11/H22, WSM6), không có mã kịch bản như R10 |
| Bảng ký hiệu | Có, ở phụ lục (Table C.2 "Summary of notation"); thân bài định nghĩa tại chỗ | Không có; định nghĩa trong "where" sau phương trình | Như vậy | -- |
| Từ viết tắt | Định nghĩa tại chỗ (WofE, MPM) | Định nghĩa tại chỗ lần đầu | Như vậy | -- |
| Trình bày lý thuyết | Thân bài giải thích bằng lời và hình; Theorem C.1 và 2 hệ quả ở Phụ lục C, chứng minh ở tài liệu riêng; có mục ví dụ số "Practical application of error bounds" | Một Theorem chính thức, chứng minh ngắn, ý chính nói bằng lời ngay ở abstract | Dẫn giải, không có định lý | -- |
| Giới hạn | Phần việc gác lại nêu ngay ở Introduction; mục "Limitations of study" và mục riêng "Practical advice" | Mục "Limitations" riêng, 3 ý, mỗi ý có hướng xử lý | Một lưu ý rồi kiểm tra ngay | -- |
| Độ dài | 13 trang; thân bài khoảng 6.500 từ kể cả chú thích; câu trung vị 22 từ, p90 là 41 từ (đếm thô) | Câu 20–40 từ, đoạn 4–7 câu | Câu 20–35 từ, đoạn 4–7 câu | Abstract trung vị 248 từ, câu trung vị 22 từ |
Baddeley et al. 2025 là mẫu gần nhất: bài có toán, kết luận là một phân tích phổ biến bị bất ổn. Mạch bài là cho thấy thất bại trên dữ liệu thật ngay ở Sec. 2 ("does not converge to a single value"), giải thích nguyên nhân gốc ở Sec. 3–4 ("The root cause of the numerical instability is a geometrical effect"), đề xuất cách sửa ở Sec. 5, chạy lại ở Sec. 6, rồi đưa cận sai số kèm ví dụ số ở Sec. 7. Thất bại, nguyên nhân, cách sửa nối nhau thành xương sống của bài. Bài này không báo cáo thử nghiệm field thất bại theo kiểu của ta, và cũng không có quy trình pre-registration, nên hai phần đó vẫn không có khuôn mẫu trực tiếp.
**Hệ quả cho bài.** Không dùng mã tùy ý trong văn bản, bảng và chú thích; một vài mã ngắn có nghĩa, định nghĩa ngay tại chỗ, thì C&G vẫn chấp nhận (Baddeley dùng S và R). Bảng ký hiệu có tiền lệ (Table C.2) và đã được thêm theo yêu cầu của referee (`tab:symbols`). Giữ môi trường Proposition, mỗi kết quả có câu nói bằng lời ngay trước nó. Giới hạn nêu kèm hướng xử lý.
**Gợi ý từ Baddeley, đã áp dụng ngày 09/11 (`docs/plan.md` §12 ý 39).** (1) Thêm một ví dụ số cho cận sai số của reference, dùng số đã có trong bài. (2) Gom các khuyến nghị thành một đoạn "Practical advice". (3) Chuyển phát biểu hình thức của Sec. 5 sang phụ lục và giữ lời giải thích ở thân bài: đây là cách rút độ dài mạnh nhất (thân bài của ta khoảng 16.000 từ so với khoảng 6.500), nhưng là thay đổi cấu trúc lớn.
## 3. Quy tắc viết (áp dụng cho Sec. 1–8 và phụ lục)
1. Câu đầu đoạn nói kết luận của đoạn; tiêu đề `\paragraph` là một câu trả lời khi có thể.
2. Mỗi thất bại đi theo thứ tự: điều gì trượt, vì sao (bằng chứng), bài học. Nếu nguyên nhân chưa được kiểm tra thì viết rõ là chưa kiểm tra.
3. Thành công và thất bại được nêu ngang nhau ở Sec. 1, 7, 8 (bảng `tab:lessons`).
4. Hồ sơ quy trình (thời điểm khóa, độ lệch, hai cách đọc verdict, cấu hình phụ) chuyển sang Phụ lục C; thân bài chỉ giữ một câu công bố cùng tham chiếu.
5. Áp dụng `.agents/skills/academic-humanizer` (không có skill tên `/humanizer`; đây là skill tương ứng trong repo): không em-dash, không từ vựng AI, câu dài hơn khoảng 30 từ thì tách, động từ không mạnh hơn bằng chứng.
6. Không đổi số, verdict, ngưỡng, trích dẫn; không xóa `\todo`.
## 4. Bảng tên gọi: bài báo ↔ mã trong repo
Mã trong repo (config, output, code) không đổi. Mapping đầy đủ cũng nằm trong `paper/README.md`.
| Trong bài | Mã repo |
|---|---|
| 10 dB / 0 dB / $-5$ dB (full anchors) | R10 / R0 / Rm5 |
| 0 dB, half anchors | R0h |
| 10 dB, two anchors | R10tb |
| SMC mean | B3d-Sa |
| SMC bank | M2-Sa |
| anchor mean | B3d |
| anchor bank / reweighted anchor bank | M1 / M2 |
| sonic tie / calibrated sonic | B3a / B3b |
| correlation tie / phase-estimated correlation tie | B3c / B3c-R |
| hard-min shift / soft-min shift / soft-DTW / DILATE | B4a / B4b / B4c / B4d |
| calibrated-sonic ensemble | B5 |
| depth--time trend / attribute models / impedance inversion / composite loss | B0a / B0b / B1 / B2 |
| Gaussian bank | Ctl-GP |
| midpoint label / two-member bank / two-member hard-min | PM2 / BK2 / HM2 |
| blur test / anchor-removal test / calibration hypothesis | H1 / H4 / H3 |
| posterior-mean claim / bank claim | H2a / H2b |
| drift--well-count grid / misspecification study / alignment-loss comparison / backbone check / two-mode study | S1 / S2 / S3 / S4 / S8 |
| rock physics mild, strong / wavelet phase mild, strong / attenuation / scaled warp prior / out-of-family warp | rp_L1, rp_L2 / wv_L1, wv_L2 / wv_Q / dr_L1 / dr_L2 |
| Experiment 1 pass rule / F3 pass rule / Volve pass rule | G-B / G-C / G-D |
| skill, width, anchor-uncertainty, well-count conditions | C1, C2, C3, C4 (Sec. 6.7) |
| classical bound $\rho^\star_{\mathrm{cl}}$ / Berkson bound $\rho^\star_{\mathrm{Bk}}$ | $1/B_a$ / $1/B_b$ |
| assumption (A3) | (B) trong Mệnh đề nhận dạng |
| blind wells needed $n^\star$ | $N^\star$ |
| $N_p$ (số particle) | $P$ |
| $\nu$ và $\omega = 1/\nu$ (tie tempering) | $\kappa$ và $\gamma = 1/\kappa$ |
## 5. Kết quả kiểm tra bằng 2 referee Fable (09/11/2026)
| Tiêu chí | Vòng 1: R1 / R2 | Vòng 2: R1 / R2 | Vòng 3: R1 / R2 |
|---|---|---|---|
| Chuyên môn | Đạt có điều kiện / Đạt có điều kiện | Đạt / Đạt | Đạt / Đạt |
| Dễ hiểu | Trượt / Trượt | Đạt / Đạt | Đạt / Đạt |
| Súc tích | Trượt / Trượt | Đạt / Đạt | Đạt / Đạt |
| Cân đối fail và thành công | Đạt / Đạt | Đạt / Đạt | Đạt / Đạt |
| Fail có insight | Đạt nhưng còn thiếu / Đạt nhưng còn thiếu | Đạt / Đạt | Đạt / Đạt |
| Khuyến nghị | Major / Major | Minor / Minor | Accept sau sửa nhỏ / Accept sau sửa nhỏ |
R1 là góc địa vật lý, R2 là góc thống kê và lý thuyết (R2 chứng minh lại toàn bộ Sec. 5 và Phụ lục A). Vòng 3 đọc bản đã chuyển phát biểu hình thức sang Phụ lục A. Các sửa nhỏ cuối đã áp dụng; cả hai referee cho biết không cần đọc thêm.

View File

@@ -1,6 +1,6 @@
# Phân tích hiện trạng và hướng chuyển sang bài lý thuyết + synthetic benchmark # Phân tích hiện trạng và hướng chuyển sang bài lý thuyết + synthetic benchmark
Ngày viết: **29/10/2026**. Trạng thái: **đã chốt** ở mục 6 (29/10/2026); mức A viết xong sớm ngày 29/10 (`docs/plan.md` §12 ý 24). Mục 0–5 giữ nguyên phân tích lúc viết; chỗ nào đã đổi có ghi chú *Cập nhật* hoặc *Sửa* kèm ngày. Mọi số liệu dưới đây lấy từ `docs/plan.md` §12, `docs/theory.md`, `outputs/p2r/summary/`, `outputs/p3/summary/`, `outputs/p4/summary/`, `outputs/p4x/summary/` và bản nháp `paper/sections/`. Không có kết quả mới nào được tính trong tài liệu này. Ngày viết: **29/10/2026**. Trạng thái: **đã chốt** ở mục 6 (29/10/2026); mức A viết xong sớm ngày 29/10 (`docs/plan.md` §12 ý 24). Benchmark S1–S8 (P6) đã chạy (29–30/10) và tổng hợp ngày 02/11/2026: 9/11 verdict đạt, S2-H1 trượt ở trục rock physics và wavelet (`docs/plan.md` §12 ý 28). S7 đóng gói xong cùng ngày, trừ deposit Zenodo (§12 ý 29). Các mục 1–2 dưới đây là phân tích khoảng trống tại 29/10, giữ nguyên làm lịch sử. Mục 0–5 giữ nguyên phân tích lúc viết; chỗ nào đã đổi có ghi chú *Cập nhật* hoặc *Sửa* kèm ngày. Mọi số liệu dưới đây lấy từ `docs/plan.md` §12, `docs/theory.md`, `outputs/p2r/summary/`, `outputs/p3/summary/`, `outputs/p4/summary/`, `outputs/p4x/summary/` và bản nháp `paper/sections/`. Không có kết quả mới nào được tính trong tài liệu này.
Bối cảnh: cả hai field test đều âm (G-C trên F3, G-D trên Volve). Plan §9 đã liệt kê sẵn **Pivot 1** ("chuyển thành bài phân tích: lý thuyết, benchmark và đánh giá có xét registration; phương pháp chỉ là phần phụ"). Tài liệu này rà lại toàn bộ đề tài để tìm các vấn đề tồn đọng, rồi đề xuất cách triển khai Pivot 1 thành một bài **lý thuyết + benchmark**. Bối cảnh: cả hai field test đều âm (G-C trên F3, G-D trên Volve). Plan §9 đã liệt kê sẵn **Pivot 1** ("chuyển thành bài phân tích: lý thuyết, benchmark và đánh giá có xét registration; phương pháp chỉ là phần phụ"). Tài liệu này rà lại toàn bộ đề tài để tìm các vấn đề tồn đọng, rồi đề xuất cách triển khai Pivot 1 thành một bài **lý thuyết + benchmark**.
@@ -167,7 +167,7 @@ Không "first"; không gọi synthetic là generalization ra field; không claim
- A1: abstract (292 từ sau lượt tự sửa A6), intro, đóng góp C1–C4, discussion, conclusion, tiêu đề, keywords, `paper/highlights.txt` viết lại theo khung Pivot 1. F3 và Volve thành mục "scope" (bài mục 6.6); chi tiết sang Phụ lục B. - A1: abstract (292 từ sau lượt tự sửa A6), intro, đóng góp C1–C4, discussion, conclusion, tiêu đề, keywords, `paper/highlights.txt` viết lại theo khung Pivot 1. F3 và Volve thành mục "scope" (bài mục 6.6); chi tiết sang Phụ lục B.
- A2: T1 thành Mệnh đề 3–4 (kèm sửa cách đọc cận, xem hàng T1 ở mục 2.1), T4 thành Mệnh đề 5, T8 thành Hệ quả 3; thêm Nhận xét 1 (λ > 0), Mệnh đề 6 và Hệ quả 4 (reference lệch, dung sai σ_r < σ/√2). - A2: T1 thành Mệnh đề 3–4 (kèm sửa cách đọc cận, xem hàng T1 ở mục 2.1), T4 thành Mệnh đề 5, T8 thành Hệ quả 3; thêm Nhận xét 1 (λ > 0), Mệnh đề 6 và Hệ quả 4 (reference lệch, dung sai σ_r < σ/√2).
- A3: `scripts/30_t4_coverage.py` → `outputs/t4/` (bài mục 6.3, Bảng `tab:t4`). - A3: `scripts/30_t4_coverage.py` → `outputs/t4/` (bài mục 6.3, Bảng `tab:t4`).
- A4: `scripts/27_t3_power.py` → `outputs/t3/` (bài mục 6.5). Khác với phác thảo ở bảng trên: reference là nhãn thật đọc tại một warp nhiễu loạn có độ lớn σ_ref (không phải nhãn point tie), và luật được đánh giá là sign test một phía; luật k-of-n chỉ dùng để chỉ ra nó không phải phép kiểm. Khai báo trước ở `docs/research/applicability-teapot.md` (Deviation 1: mở rộng lưới σ_ref). - A4: `scripts/27_t3_power.py` → `outputs/t3/` (bài mục 6.5; từ 02/11/2026 là 6.6, sau khi Thí nghiệm 3 thành mục 6.5). Khác với phác thảo ở bảng trên: reference là nhãn thật đọc tại một warp nhiễu loạn có độ lớn σ_ref (không phải nhãn point tie), và luật được đánh giá là sign test một phía; luật k-of-n chỉ dùng để chỉ ra nó không phải phép kiểm. Khai báo trước ở `docs/research/applicability-teapot.md` (Deviation 1: mở rộng lưới σ_ref).
- A5: đoạn "Label noise and errors in variables" ở bài mục 2 (Mnih & Hinton 2012 đọc toàn văn; Balakrishnan 1962 chỉ có metadata). - A5: đoạn "Label noise and errors in variables" ở bài mục 2 (Mnih & Hinton 2012 đọc toàn văn; Balakrishnan 1962 chỉ có metadata).
- A6: `docs/plan.md` §12 ý 22–24, `AGENTS.md`, `report.html`, `docs/theory.md` mục 6. Trong A6, agent phát hiện và sửa hai nhận định sai của chính mình về cận ρ*: hệ số giữa hai cấu trúc, và câu "lợi ích vượt cận" (`docs/plan.md` §12 ý 24). - A6: `docs/plan.md` §12 ý 22–24, `AGENTS.md`, `report.html`, `docs/theory.md` mục 6. Trong A6, agent phát hiện và sửa hai nhận định sai của chính mình về cận ρ*: hệ số giữa hai cấu trúc, và câu "lợi ích vượt cận" (`docs/plan.md` §12 ý 24).
@@ -224,7 +224,7 @@ Người dùng chốt ý 1 và 5; ý 2–4 do agent chốt theo bằng chứng (
| 1 | Hạn nộp | **Mức B. Hạn mới: thứ 7, 14/11/2026** (dời 2 tuần). Ngưỡng và luật của mọi gate không đổi; chỉ ngày đổi. | Mức A chỉ cho một "controlled study" chưa đầy lưới; mục 4.2 cần 1–2 tuần GPU và đóng gói. | | 1 | Hạn nộp | **Mức B. Hạn mới: thứ 7, 14/11/2026** (dời 2 tuần). Ngưỡng và luật của mọi gate không đổi; chỉ ngày đổi. | Mức A chỉ cho một "controlled study" chưa đầy lưới; mục 4.2 cần 1–2 tuần GPU và đóng gói. |
| 2 | S2 (misspec) | **Bắt buộc, phạm vi hẹp**: ba trục (rock physics sai hệ số; wavelet sai pha và băng thông; σ_b / prior drift sai), hai regime (R10, Rm5), c = 1, N ∈ {4, 16}, realization 8–15, tập phương pháp rút gọn (Oracle, B3c-R, B3d-Sa, M2-Sa). Thiết kế trên dev 902–905; khóa trong `configs/protocol_bench.yaml` trước lần chạy đầu. Nếu đến 10/11 chưa xong S2 thì bài gọi là "controlled synthetic study", không gọi là benchmark. | Rủi ro cao nhất ở mục 5 là "cùng simulator"; không có S2 thì không trả lời được. | | 2 | S2 (misspec) | **Bắt buộc, phạm vi hẹp**: ba trục (rock physics sai hệ số; wavelet sai pha và băng thông; σ_b / prior drift sai), hai regime (R10, Rm5), c = 1, N ∈ {4, 16}, realization 8–15, tập phương pháp rút gọn (Oracle, B3c-R, B3d-Sa, M2-Sa). Thiết kế trên dev 902–905; khóa trong `configs/protocol_bench.yaml` trước lần chạy đầu. Nếu đến 10/11 chưa xong S2 thì bài gọi là "controlled synthetic study", không gọi là benchmark. | Rủi ro cao nhất ở mục 5 là "cùng simulator"; không có S2 thì không trả lời được. |
| 3 | T2 | **Exploratory / explanatory**, trên realization 8–15 với bank P2r đã có. Khai báo trước khi chạy ở `docs/research/t2-mechanism.md` (cách làm như P4x). Trong bài là "mechanism analysis" kèm Mệnh đề 3 (*ghi chú 29/10: đánh số lúc lập kế hoạch; trong bài, giả thuyết tái đăng ký ngầm là Nhận xét 1, còn Mệnh đề 3 của bài là hai cấu trúc sai số của tie*); không phải gate, không claim confirmatory. Không sinh realization 16–23 cho T2. | Giả thuyết (c) hình thành sau khi thấy H2b; ba thí nghiệm cần lặp; một lượt SMC riêng cho T2 không vừa hai tuần. | | 3 | T2 | **Exploratory / explanatory**, trên realization 8–15 với bank P2r đã có. Khai báo trước khi chạy ở `docs/research/t2-mechanism.md` (cách làm như P4x). Trong bài là "mechanism analysis" kèm Mệnh đề 3 (*ghi chú 29/10: đánh số lúc lập kế hoạch; trong bài, giả thuyết tái đăng ký ngầm là Nhận xét 1, còn Mệnh đề 3 của bài là hai cấu trúc sai số của tie*); không phải gate, không claim confirmatory. Không sinh realization 16–23 cho T2. | Giả thuyết (c) hình thành sau khi thấy H2b; ba thí nghiệm cần lặp; một lượt SMC riêng cho T2 không vừa hai tuần. |
| 4 | Venue | **Chính: *Computers & Geosciences*.** Dự phòng: *Geophysical Prospecting*. Quartile tra lại khi nộp [XM]. | C&G nhận bài benchmark kèm code và yêu cầu code/data availability, khớp S7. | | 4 | Venue | **Chính: *Computers & Geosciences*.** Dự phòng: *Geophysical Prospecting*. Quartile tra lại khi nộp [XM]. **Đổi ngày 12/11/2026 (chỉ nơi miễn phí):** *Geoenergy Science and Engineering*, dự phòng *Computers & Geosciences* hoặc *Journal of Applied Geophysics* (`venue-survey.md` §6, plan §12 ý 50; *Earth Science Informatics* chọn ở ý 49 rồi bỏ). **Đổi ngày 13/11/2026:** *Geophysical Prospecting*, dự phòng *Mathematical Geosciences*, C&G chỉ khi có repo công khai (`venue-survey.md` §7, plan §12 ý 51). | C&G nhận bài benchmark kèm code và yêu cầu code/data availability, khớp S7. |
| 5 | P4x | **Bỏ hẳn.** Không dùng trong bài, không chạy V3, không tổng hợp. `exploratory/` và `outputs/p4x/` giữ trên đĩa làm hồ sơ, không xóa. Job `exploratory/run_p4x.sh` (cuda:0) ở 560/921 lúc 03:43 UTC 29/10 khi chốt; lệnh dừng từ phiên agent bị từ chối, nên job tự chạy hết (khoảng 40 phút) và kết quả không dùng. | Không phục vụ bài mới; biến thể chọn sau khi thấy nhãn test. | | 5 | P4x | **Bỏ hẳn.** Không dùng trong bài, không chạy V3, không tổng hợp. `exploratory/` và `outputs/p4x/` giữ trên đĩa làm hồ sơ, không xóa. Job `exploratory/run_p4x.sh` (cuda:0) ở 560/921 lúc 03:43 UTC 29/10 khi chốt; lệnh dừng từ phiên agent bị từ chối, nên job tự chạy hết (khoảng 40 phút) và kết quả không dùng. | Không phục vụ bài mới; biến thể chọn sau khi thấy nhãn test. |
### 6.1 Lịch mức B (29/10 → 14/11/2026) ### 6.1 Lịch mức B (29/10 → 14/11/2026)

View File

@@ -0,0 +1,22 @@
# Tie điểm cùng thông tin với posterior SMC: kết quả
Ngày **10/11/2026**. Khai báo `docs/research/point-tie-arm.md` (SHA-256 `3afdaf29…`, băm 09:45:17 UTC trước khi tính). Script `scripts/44_point_tie_arm.py` → `outputs/point_tie/` (`cells/`, `ratios.csv`, `warp_errors.csv`, `selfcheck.json`, `summary.md`). Lượt chạy `20261110-094635_point_tie_arm` (17 phút 24 s; cuda:0, 4 worker; 96/96 job, mỗi job 55 s). Thử khói trên một ô trước (không ghi vào `outputs/`). Exploratory; không đổi verdict.
**Kiểm tra tái lập:** B3d-Sa huấn luyện lại ở seed 0 khớp 96/96 dòng đã đăng ký, sai lệch tuyệt đối lớn nhất 2·10⁻¹⁶.
## Kết quả (tỉ số band RMSE, trung bình qua 8 realization; khoảng 95% percentile, BCa và t đều cho cùng kết luận trừ khi ghi)
**(B) SMC-MAP / tie tất định tốt nhất:** dưới 1 ở **12/12 ô** (c = 0 và 1, ba SNR, N = 4 và 16), với cả ba loại khoảng. Ở c = 1: 10 dB 0,862 và 0,803; 0 dB 0,892 và 0,898; −5 dB 0,946 và 0,933. So với B3d-Sa đã đăng ký (0,857/0,782; 0,888/0,888; 0,915/0,923), mode của chính mô hình SMC đã đạt phần lớn lợi ích.
**(A) B3d-Sa / SMC-MAP:** 0,967–1,010. Khoảng nằm hoàn toàn dưới 1 ở 5/12 ô theo percentile (10 dB c = 1 N = 16: 0,973 [0,965; 0,982]; −5 dB c = 1: 0,967 [0,952; 0,984] và 0,989; 0 dB c = 0 N = 4: 0,990; −5 dB c = 0 N = 4: 0,988) và 3/12 ô theo khoảng t (0 dB c = 0 N = 4; 10 dB c = 1 N = 16; −5 dB c = 1 N = 4); không ô nào trên 1. Lấy trung bình posterior thêm tối đa khoảng 3% so với mode của cùng mô hình.
**(C) Anchor-LS / tie tất định tốt nhất:** ở c = 0 dưới 1 (0,91–0,95; 5/6 ô), nhưng ở c = 1 **trên 1** tại 10 dB (1,148 và 1,247) và 0 dB N = 16 (1,054), chứa 1 ở 0 dB N = 4 (1,007), dưới 1 ở −5 dB (0,951; 0,976). Khớp bình phương tối thiểu chỉ với anchor và σ_a đã biết không đủ để thắng tie tất định khi có drift, ở các setting nhiễu thấp.
**(D) B3d-Sa / Anchor-LS** = 0,63–0,97 và **(E) SMC-MAP / Anchor-LS** = 0,64–0,99: dưới 1 ở 12/12 và 10/12 ô; phần lớn lợi ích đến từ việc dùng seismic trong mô hình tie, không phải từ anchor.
**(F) M2-Sa / SMC-MAP:** 0,957–1,004; dưới 1 ở 4/12 ô theo percentile (c = 1: 0 dB N = 16, 10 dB N = 16, −5 dB N = 4 và 16) và không ô nào trên 1.
**Sai số warp (ms), c = 1, N = 16:** SMC-MAP 0,84 (10 dB), 2,21 (0 dB), 3,36 (−5 dB); B3d-Sa 0,63, 1,86, 2,91; Anchor-LS 4,13 ở mọi SNR. Hạt MAP có log-likelihood cao hơn 56–74% các hạt (không phải cực đại: lưới hạt chỉ xấp xỉ mode).
## Đọc
Lợi ích 8–22% so với tie tất định chủ yếu là lợi ích của **mô hình tie** (prior warp + likelihood chồng + pha ước lượng), vì mode của cùng posterior đã đạt gần hết; lấy trung bình posterior thêm ≤ 3%, và bank thêm ≤ 5% nữa ở c = 1, N = 16. Hạn chế: SMC-MAP là hạt tốt nhất trong 1024 chứ không phải mode chính xác; Anchor-LS là cực trị Laplace (một xấp xỉ Gauss quanh anchor), không phải mọi tie chỉ-anchor.

View File

@@ -0,0 +1,24 @@
# Tie điểm dùng cùng thông tin với posterior SMC (referee R4 M1, R5 M1): khai báo trước khi tính
Ngày: **10/11/2026**. Exploratory, post hoc: thiết kế sau mọi verdict. Không kết quả nào đổi verdict, ngưỡng hay protocol. Script: `scripts/44_point_tie_arm.py` (ngoài mọi lock và archive tái lập). Đầu ra: `outputs/point_tie/`. File này được băm SHA-256 (`point-tie-arm.sha256`) trước lần chạy đầu; script kiểm hash.
## Câu hỏi
Lợi ích 8–22% của SMC mean so với tie tất định có phải do một mô hình tie tốt hơn (prior warp, likelihood chồng, tempering) hay do chính việc lấy trung bình posterior? Hai referee đòi một tie điểm dùng cùng thông tin.
## Hai arm mới (nhãn đặt tại một warp duy nhất, S = 1, cùng backbone, cùng 250 vòng như B3d-Sa)
- **SMC-MAP:** warp của hạt có log mục tiêu tempered cao nhất, log p(u | anchor) + γ·ℓ(u), trong 1024 hạt g_acf đã lưu của giếng (γ = 1/κ₀ đã lưu trong CSV posterior; cùng wavelet pha phase_R; cùng prior, anchor, σ_a = 7 ms đã biết). Đây là xấp xỉ mode của chính mục tiêu SMC, tốt tới mức lưới hạt cho phép; không có tinh chỉnh cục bộ.
- **Anchor-LS:** warp tại cực trị (Gauss–Newton/Laplace) của posterior chỉ anchor, `TiePosterior.mu`, tức khớp bình phương tối thiểu có phạt độ trơn của độ lệch thời gian vào các anchor với σ_a đã biết, không dùng seismic và không nội suy chính xác qua anchor. Dùng wavelet và cell như trên.
## Ô, hạt giống, ngân sách
Setting 10 dB, 0 dB, −5 dB (đủ anchor) × c ∈ {0, 1} × N ∈ {4, 16} × realization 8–15 × seed 0–4; ngân sách 250 vòng (ngân sách đăng ký của B3d-Sa). 96 cặp ô–realization. Kiểm tra tái lập: huấn luyện lại B3d-Sa ở seed 0 trong cùng ô và so với `outputs/p2r/train` (kỳ vọng sai lệch 0).
## Thống kê và cách đọc (cố định trước)
Mọi tỉ số là tỉ số của trung bình band RMSE (trung bình theo seed trong realization, rồi trung bình qua realization), với ba loại khoảng 95% như `referee-r5-ci.md` (percentile, BCa, t trên log tỉ số). So sánh, theo ô:
- (A) B3d-Sa / SMC-MAP: khoảng dưới 1 ⇒ "lấy trung bình posterior vượt mode của cùng mô hình".
- (B) SMC-MAP / tie tất định tốt nhất của ô (B3b, B3c, B3c-R; số đã đăng ký): khoảng dưới 1 ⇒ "mô hình tie tốt hơn, bất kể lấy trung bình".
- (C) Anchor-LS / tie tất định tốt nhất; (D) B3d-Sa / Anchor-LS; (E) SMC-MAP / Anchor-LS.
- (F) M2-Sa / SMC-MAP (đối chiếu bank).
Báo số ô theo từng loại ở c = 1 và c = 0. Không có ngưỡng gộp, không verdict; kết quả âm hoặc null được báo như kết quả dương.
## Báo cáo
`docs/research/point-tie-arm-results.md` (tiếng Việt), kèm kiểm tra tái lập, lệnh, thời gian chạy. Hệ quả cho bài (cố định trước, bất kể chiều kết quả): Sec. 6.3 và Phụ lục C báo kết quả; abstract và kết luận nêu rằng so sánh đã có point tie cùng thông tin, và nói chiều của (A) và (B).

View File

@@ -0,0 +1 @@
3afdaf29d06053e4d5de188af2614b29a546bc5b8b1198ccd714b67fcddbcbce docs/research/point-tie-arm.md

View File

@@ -0,0 +1,119 @@
# R6: sao lặp trên realization mới, hai nhánh σ_a và ba phân tích rẻ (khai báo trước khi tính)
Ngày khai báo: 11/11/2026. Người dùng bỏ mọi hạn ngày ("làm tất cả những việc bạn cho là cần thiết"). Khai báo này được
băm SHA-256 (`docs/research/r6-replication.sha256`) **trước** khi sinh realization 16–23 và trước mọi phép tính dưới đây; các
script 46–48 kiểm tra hash trước khi chạy. Không sửa protocol khóa, không sửa code khóa (`scripts/11`, `14`, `15`, `18`,
`ml_porosity/`), không đổi ngưỡng. Mọi kết quả được báo cáo như ra, kể cả thất bại.
Nguồn yêu cầu: hai review mô phỏng ngày 11/11 (R6a "6.1 sol", R6b "argon") cộng với các mục còn mở của R3/R4/R5
(`docs/research/referee-simulation.md` mục [N] 4; R4 M1/M7; R5: bootstrap 8 realization, field requirements).
## Trạng thái của từng phần
| Mục | Loại | Đã thấy số liệu trước khai báo? |
|---|---|---|
| A1 sign test hiệu chỉnh cụm | tính toán trên `outputs/t3` (có sẵn) | chưa tính; p_better và ICC từng ô đã công bố |
| A2 độ nhạy theo mốc tham chiếu ở F-11 T2 (Volve) | mô tả, post hoc | **đã thấy** (ensemble RMSE theo 4 tham chiếu) |
| A3 coverage ở cùng độ dài huấn luyện | mô tả, post hoc | **đã thấy** (phạm vi coverage90 ở 125/500 vòng) |
| B1 sao lặp Thí nghiệm 2 trên realization 16–23 | sao lặp khai báo trước khi sinh dữ liệu | chưa (realization chưa tồn tại) |
| B2 nhánh σ_a ở −5 dB | exploratory, khai báo trước | chưa |
| B3 cơ chế của σ_a = 3.5 ms (siêu tham số drift cố định) | exploratory, khai báo trước | chưa |
A2 và A3 là post hoc: bài phải nói rõ con số đã được nhìn thấy trước khi viết khai báo. B1 không phải protocol khóa mới;
bài gọi nó là "a replication declared and hashed before the realizations were generated".
## A1. Sign test hiệu chỉnh cho tương quan trong realization (CPU, script 48)
Vấn đề: T3 (Sec. 6.6) dùng ngưỡng k của sign test nhị thức danh nghĩa (`sign_k`, α = 0.05 một phía) nhưng tính power
dưới beta-binomial với ICC ρ đo theo realization. Dưới null p = 0.5 với ρ > 0, size thực của ngưỡng danh nghĩa vượt 0.05.
Tính toán, cố định trước:
1. Size danh nghĩa: với n = 4…40 và ρ ∈ {0, 0.05, 0.1, 0.2, 0.3, 0.45}, P(X ≥ k_nom(n)) dưới betabinom(n, a, b) với
p = 0.5 (a = b = 0.5(1/ρ − 1)).
2. Ngưỡng hiệu chỉnh k_ρ(n) = k nhỏ nhất có P_null(X ≥ k) ≤ 0.05 dưới cùng ρ; không có k nào thì ghi "không thể".
3. Power hiệu chỉnh ở (p_better, ρ) đo được của từng ô `outputs/t3/cells.csv` (dùng chính ρ của ô cho cả null và
alternative), n* = n nhỏ nhất trong 4…40 có power ≥ 0.80.
4. Trần power khi n → ∞: P(B > q_ρ) với B ~ Beta(p(1/ρ − 1), (1 − p)(1/ρ − 1)), q_ρ = phân vị 0.95 của
Beta(0.5(1/ρ − 1), 0.5(1/ρ − 1)); ρ = 0 thì trần = 1 nếu p > 0.5.
5. So sánh n* hiệu chỉnh với n* danh nghĩa đã công bố (`outputs/t3/nstar.csv`, cột `nstar_sign`).
Cách đọc: nếu n* hiệu chỉnh lớn hơn n* danh nghĩa ở bất kỳ ô nào, Sec. 6.6 và Sec. 7 báo cả hai, và câu "5–18 blind wells"
được sửa theo số hiệu chiệu. Nếu trần power < 0.80 ở ô nào, bài nói rằng trong các trường hợp đó thêm giếng trong cùng một
mỏ không đủ. ICC đo trên 8 realization là ước lượng điểm có sai số lớn; bài nói vậy.
## A2. Độ nhạy theo tham chiếu ở giếng duy nhất có VSP của Volve (CPU, script 48)
Từ `outputs/p4/summary/metrics.csv` (P4 khóa, không chạy lại): ensemble RMSE (p.u.) của B3b, B3c, B3c-R, B3d-Sa, M2-Sa
tại F-11 T2, σ_a = 7 (nhánh chính), hai scheme (lowo, slot), dưới mỗi tham chiếu có sẵn (calibrated, anchors, NIVSP,
OPTIMIZED). Báo: số mẫu, khoảng RMSE theo tham chiếu cho từng phương pháp, khoảng theo phương pháp cho từng tham chiếu,
và thứ hạng. Mô tả; không verdict. Dùng trong App. B và một câu ở Sec. 6.7 làm ví dụ cho yêu cầu "độ chính xác của tham
chiếu" (đổi tham chiếu dịch RMSE nhiều hơn khác biệt giữa phương pháp, nếu đúng như số đã thấy).
## A3. Coverage ở cùng độ dài huấn luyện (CPU, script 48)
Từ `outputs/lambda_limit/cells/*.csv` (B3d-Sa, M2-Sa ở 125/250/500 vòng; mạng đơn, không ensemble) và
`outputs/p2r/train/<regime>/runs.csv` (Oracle ở 500 vòng): coverage_90 trung bình theo ô (regime, c, N), theo phương pháp
và số vòng. Mô tả. Câu dự kiến trong đoạn `tab:t4`: ở cùng 500 vòng coverage của nhãn trung bình hậu nghiệm, bank và
Oracle gần nhau, nên thứ tự trong Bảng 12 chủ yếu do độ dài huấn luyện. Nếu số tính lại không ủng hộ câu đó thì viết theo số.
## B1. Sao lặp Thí nghiệm 2 trên realization 16–23 (GPU)
Dữ liệu: realization 16–23, chưa từng sinh, cùng generator với P2r (`configs/d2_synth.yaml` qua `protocol_p2`; P2r chỉ
thêm khối `regimes`). Script 15 coi chúng là dev (ngoài lưới P2 và P2r). Fingerprint (sha256 của trace địa chấn, log
và warp thật của mọi giếng pool/test) ghi vào `outputs/replication/fingerprints.json` trước khi huấn luyện.
Lưới: c = 1, N ∈ {4, 16} cho R10, R0, Rm5, R0h, R10tb; c = 0, N ∈ {4, 16} cho R10, R0, Rm5 (guard drift bằng 0). Posterior:
`scripts/14_diag_posterior.py` khóa, 1024 particle, estR, seed 0, như `scripts/run_p2r_main.sh`. Huấn luyện:
`scripts/15_diag_train.py` khóa, Oracle B3b B3c B3c-R B3d B3d-Sa M2-Sa, seed 0–4, reg-seed 0, budgets từ
`outputs/p2/diag/train/budgets.json`, `--save-preds`. Đầu ra `outputs/replication/{posterior,train}/<regime>/`.
Nhánh thêm (script 46, ngoài mọi lock): SMC-MAP (particle có log target tempered lớn nhất), Anchor-LS (`TiePosterior.mu`),
Ctl-GP (bank Gauss với trung bình và hiệp phương sai của particle, `control_bank` của script 32), cùng backbone, 250 vòng,
seed 0–4. B3d-Sa seed 0 được huấn luyện lại làm kiểm tra tái lập so với dòng của script 15 (|Δ band RMSE| ≤ 1e-6; nếu vượt,
mọi nhánh thêm được báo kèm cờ lệch).
Cách đọc, cố định trước (luật như P2r, không đổi ngưỡng):
- **R-H2a.** Với R10, R0, Rm5 và từng ứng viên B3d-Sa, M2-Sa: luật ô G-B (`scripts/18` `h2a_cells`, đối thủ B3b, B3c,
B3c-R) ở c = 1 cho cả hai N, cộng guard c = 0 (≤ 1.02 macro và theo từng N). Một regime "sao lặp" nếu verdict trùng P2r
(P2r: pass ở cả ba regime cho cả hai ứng viên). Báo thêm tỷ số theo ô và CI bootstrap theo realization.
- **R-H2b.** M2-Sa so với B3d-Sa, luật `better` của `pair_cell`, ở các ô N = 16 rộng (σ_post ≥ 1.5 ms đo trên posterior
sao lặp). Sao lặp nếu ≥ 2/3 ô rộng pass (như test a của P2r; ở đây chỉ có c = 1, P2r có c = 1 và 2). Spearman giữa
σ_post và tỷ số trên các ô N = 16 là mô tả.
- **R-MAP.** B3d-Sa / SMC-MAP theo ô với CI percentile, BCa và t (`scripts/43` `intervals`). Câu của P2r "posterior
averaging adds at most 3%" sao lặp nếu tỷ số điểm ≥ 0.97 ở mọi ô; "the approximate mode beats the best deterministic
tie" sao lặp nếu SMC-MAP / best tie < 1 ở mọi ô c = 1.
- **R-Ctl.** Ở các ô rộng: tỷ số M2-Sa / Ctl-GP với CI và phần gain (B3d-Sa − Ctl-GP)/(B3d-Sa − M2-Sa). Mô tả.
- **R-ALS.** Anchor-LS / best tie theo ô. Mô tả (P2r: 1.15, 1.25 ở 10 dB, c = 1).
Báo cáo: Sec. 6.3 báo sao lặp dù kết quả ra sao. Nếu abstract hay kết luận nêu con số gain 8–22% thì cũng phải nêu sao lặp
có giữ hay không.
## B2. Nhánh σ_a ở −5 dB (GPU)
Rm5, c = 1, N ∈ {4, 16}, realization 8–15, σ_a,reg ∈ {3.5, 14} ms, script 14 và 15 khóa với `--sigma-a-reg`, cùng tập
phương pháp → `outputs/replication/{posterior,train}/Rm5_sa{3.5,14}/`. Cách đọc: luật ô G-B cho B3d-Sa so với ba point tie
ở cả hai N, như `sigma_a_arm` của P2r (R10: thất bại ở cả hai σ_a). Kết quả vào `tab:sigmaa`. Claim "H2a cần σ_a đúng" giữ
nguyên trừ khi cả bốn ô pass; khi đó bài nói "at −5 dB the gain survived a factor-of-two error in σ_a; at 10 dB it did not".
## B3. Cơ chế σ_a = 3.5 ms: siêu tham số drift cố định (CPU + GPU, script 47)
Câu hỏi: ở 10 dB, σ_a = 3.5 cho σ_post rộng hơn σ_a = 7 (2.39/2.52 so với 0.67/0.59 ms). Giả thuyết: MAP-II khớp lại
(m_g, σ_g, ℓ) khi σ_a nhỏ đi và drift prior nở ra.
1. CPU: `fit_cell_hyper` ở σ_a ∈ {3.5, 7, 14} cho R10, c = 1, N ∈ {4, 16}, realization 8–15; ghi m_g, σ_g, ℓ, log marginal.
2. GPU: posterior SMC ở σ_a = 3.5 với (m_g, σ_g, ℓ) lấy từ lần khớp σ_a = 7 (script 47 thay `pipeline.fit_cell_hyper`
trong tiến trình của nó rồi gọi `run_job` của script 14; code khóa không sửa) → `outputs/replication/posterior/R10_sa3.5_fixhyper/`.
Chỉ posterior; không huấn luyện.
Cách đọc: nếu σ_post khi cố định siêu tham số ≤ 1.0 ms ở cả hai N (gần giá trị danh nghĩa) thì độ rộng tăng được quy cho
việc khớp lại drift prior; nếu ≥ 2.0 ms thì quy cho tương tác giữa anchor và likelihood; ở giữa thì "both". Báo kèm warp
RMSE và coverage90 của warp.
## Không làm (ghi thành giới hạn)
Generator nhiễu tương quan giữa các trace; budget TCN dưới 125; bank Gauss cho trục benchmark; sao lặp benchmark
(Thí nghiệm 3) trên 16–23 (runner khóa vào 8–15).
## Tài nguyên
Một GPU dùng chung (cuda:0; khoảng 4 GB trống lúc khai báo). Posterior 1 worker, `--gpu-mem-gb 1.5`; huấn luyện tối đa 2
worker (0.7 GB mỗi worker); luôn để ≥ 2.5 GB trống, không chạm job người khác. Chạy trong tmux, log ở `logs/r6_*.out`.
Thứ tự: B3(1) → B3(2) → B1 c = 1 → B2 → B1 c = 0 → nhánh thêm của B1 → tổng hợp.

View File

@@ -0,0 +1 @@
13b8b9435e9d711b67fac8c1e76fb5d428e6759a82fd0bce8be121e0070024b9 docs/research/r6-replication.md

118
docs/research/r6-results.md Normal file
View File

@@ -0,0 +1,118 @@
# Kết quả R6: sao lặp Thí nghiệm 2 trên realization mới, nhánh σ_a ở −5 dB, cơ chế σ_a = 3.5 ms
Khai báo: `docs/research/r6-replication.md` (SHA-256 `13b8b9435e9d711b67fac8c1e76fb5d428e6759a82fd0bce8be121e0070024b9`,
băm ngày 11/11/2026 trước khi sinh realization 16–23 và trước mọi phép tính; hash vẫn khớp). Ngoài mọi lock; code khóa
(`scripts/14`, `15`, `18`, `ml_porosity/`) không sửa. Chạy xong 12/11/2026 04:35 UTC. Không đổi verdict, ngưỡng hay protocol
nào đã có. Mọi kết quả báo như ra.
Tên trong bài: B1 = "the posterior-mean and bank results replicated on eight new realizations" (Sec. 6.3, đoạn cuối);
B2, B3 = đoạn "The gain requires a correct anchor uncertainty" và `tab:sigmaa`; chi tiết ở Phụ lục C, đoạn "Analyses
declared after the external reviews", mục (iv)–(vi). A1–A3 (phân tích rẻ, mục (i)–(iii)) đã đưa vào bài ngày 11/11.
## Đầu ra
| Phần | Script | Đầu ra |
|---|---|---|
| Fingerprint realization 16–23 | `scripts/46_r6_replication.py fingerprints` | `outputs/replication/fingerprints.json` (ghi trước khi huấn luyện) |
| B1 posterior + 7 phương pháp | `scripts/run_r6.sh c1 …`, `c0 …` (script 14, 15 khóa) | `outputs/replication/{posterior,train}/{R10,R0,Rm5,R0h,R10tb}/` |
| B1 nhánh thêm | `scripts/run_r6.sh arms` (script 46) | `outputs/replication/arms/` (128 csv) |
| B2 | `scripts/run_r6.sh sa` | `outputs/replication/{posterior,train}/Rm5_sa{3.5,14}/` |
| B3 | `scripts/run_r6.sh b3` (script 47) | `outputs/replication/posterior/R10_sa3.5_fixhyper/`, `hyper_sigma_a.csv`, `fixhyper_{summary.md,summary.csv,cells.csv,reading.json}` |
| Tổng hợp | `scripts/run_r6.sh summary` | `outputs/replication/summary/{verdict.json,summary.md,h2a.csv,h2b.csv,sigma_a.csv,ratios.csv,arm_warp_errors.csv,sigma_post.csv}` |
| A1–A3 | `scripts/48_r6_cheap.py` | `outputs/r6/` |
Log: `logs/r6_{fingerprints,b3,c1a,c1b,c1c,sa,arms,summary,hyper,cheap}.out`.
## B1. Sao lặp Thí nghiệm 2 trên realization 16–23
Lưới: c = 1 cho R10, R0, Rm5, R0h, R10tb; c = 0 cho R10, R0, Rm5; N ∈ {4, 16}; 5 seed; 7 phương pháp khóa (Oracle, B3b,
B3c, B3c-R, B3d, B3d-Sa, M2-Sa) cộng SMC-MAP, Anchor-LS, Ctl-GP (250 vòng). Kiểm tra tái lập: B3d-Sa seed 0 huấn luyện
lại bằng script 46 khớp dòng của script 15 ở 128/128 dòng, sai lệch lớn nhất 2,2·10⁻¹⁶.
**R-H2a (luật ô G-B, đối thủ B3b, B3c, B3c-R): sao lặp ở cả ba regime, cả hai ứng viên.**
| Regime | B3d-Sa c = 1, N = 4 | N = 16 | P2r (N = 4 / 16) | zero-drift theo N | M2-Sa c = 1 |
|---|---|---|---|---|---|
| R10 (10 dB) | 0,833 [0,798; 0,867] | 0,806 [0,784; 0,831] | 0,857 / 0,782 | 0,821 / 0,815 | 0,832 / 0,803 |
| R0 (0 dB) | 0,897 [0,850; 0,948] | 0,869 [0,841; 0,898] | 0,888 / 0,888 | 0,850 / 0,840 | 0,874 / 0,863 |
| Rm5 (−5 dB) | 0,931 [0,901; 0,961] | 0,917 [0,908; 0,926] | 0,915 / 0,923 | 0,903 / 0,883 | 0,915 / 0,910 |
Lợi ích 7–19% (P2r: 8–22%). Mọi ô c = 1 pass, guard zero-drift đạt. Có thêm anchor mean (B3d) làm đối thủ: R10 2/2 (cả
hai ứng viên); R0 B3d-Sa 0/2 (0,928 và 0,902 so với B3d; P2r 1/2), M2-Sa 1/2; Rm5 0/2 cả hai ứng viên. Verdict theo
regime trùng P2r: phép so sánh phụ với anchor mean chỉ giữ ở 10 dB.
**R-H2b (luật `better`, M2-Sa / B3d-Sa, ô N = 16 rộng σ_post ≥ 1,5 ms): sao lặp (2/3 ≥ 2/3 theo luật khai báo).**
R0h 0,983 pass, R10tb 0,876 pass, Rm5 0,993 không pass. R0 c = 1 N = 16 có σ_post 1,447 ms nên không rộng (0,993). Trung
bình ô hẹp 0,997. Spearman(σ_post, tỉ số) −0,45 (P2r −0,85). N = 4 (chỉ báo cáo): 4/4 ô rộng pass, Spearman −0,71.
**R-MAP: sao lặp.** B3d-Sa / SMC-MAP 0,975–1,052 trên 16 ô (luật: điểm ≥ 0,97 ở mọi ô → "averaging adds at most 3%" giữ).
Ô đủ anchor và nửa anchor: 0,975–1,004. Two-anchor (R10tb, c = 1, chưa có trong P2r): 1,052 [1,010; 1,101] và 1,039
[0,983; 1,099], tức posterior mean kém mode 4–5%. CI percentile dưới 1 ở 5/16 ô, trên 1 ở 1/16. SMC-MAP / tie tất định
tốt nhất ở c = 1 dưới 1 ở 10/10 ô: R10 0,842 / 0,805; R0 0,902 / 0,887; Rm5 0,955 / 0,931; R0h 0,941 / 0,956; R10tb
0,884 / 0,730.
**R-ALS (mô tả).** Anchor-LS / tie tốt nhất ở c = 1: R10 1,158 / 1,218 (P2r 1,15 / 1,25); R0 1,001 / 1,004; Rm5 0,965 /
0,970; R0h 1,097 / 1,152; R10tb 1,609 / 1,560.
**R-Ctl (mô tả).** M2-Sa / Ctl-GP 0,986–1,020 trên mọi ô. Ctl-GP / B3d-Sa: R10tb 0,920 / 0,886, R0h 0,981 / 0,967: bank
Gauss cùng hai moment cho gần như toàn bộ lợi ích của bank SMC.
**Posterior SMC trên realization mới (c = 1, N = 16; σ_post / warp RMSE ms / cov90):** R10 0,593 / 0,549 / 0,913; R0
1,447 / 1,544 / 0,891; Rm5 2,515 / 2,591 / 0,873; R0h 1,711 / 1,865 / 0,869; R10tb 1,843 / 4,508 / 0,564. Gần P2r.
## B2. Nhánh σ_a ở −5 dB (Rm5, c = 1, realization 8–15)
| σ_a,reg | N = 4 | N = 16 | ô pass | σ_post (N = 4 / 16) | warp RMSE | cov90 |
|---|---|---|---|---|---|---|
| 3,5 ms | 0,989 [0,967; 1,009] | 1,024 [1,009; 1,037] | 0/2 | 3,02 / 2,89 | 5,36 / 5,94 | 0,62 / 0,53 |
| 7 ms (P2r) | 0,915 [0,883; 0,953] | 0,923 [0,908; 0,940] | 2/2 | 2,72 / 2,56 | 3,31 / 2,91 | 0,83 / 0,86 |
| 14 ms | 0,984 [0,952; 1,013] | 0,978 [0,954; 1,008] | 0/2 | 3,37 / 3,20 | 5,46 / 4,60 | 0,66 / 0,72 |
Theo cách đọc đã khai báo: claim "lợi ích cần σ_a đúng" giữ nguyên (không ô nào pass), nay ở cả 10 dB và −5 dB.
## B3. Vì sao σ_a = 3,5 ms làm posterior rộng hơn σ_a = 7 ms (10 dB, c = 1, realization 8–15)
Siêu tham số drift MAP-II (trung bình 8 realization; N = 4 / 16):
| σ_a | ℓ (ms) | σ_g | m_g |
|---|---|---|---|
| 3,5 | 14,6 / 10,2 | 0,259 / 0,295 | 0,000 / 0,018 |
| 7 | 80,6 / 89,9 | 0,098 / 0,096 | 0,001 / 0,018 |
| 14 | 187 / 253 | 0,053 / 0,064 | −0,002 / 0,018 |
Ở 3,5 ms, 3/8 lần khớp với N = 4 và 8/8 với N = 16 dừng ở biên tìm kiếm (σ_g = 0,3 hoặc ℓ = 10 ms); ở 7 và 14 ms không
lần nào.
Posterior (σ_post / warp RMSE / cov90; N = 4 / 16): σ_a 7 danh nghĩa 0,667 / 0,588, 1,20 / 0,63, 0,85 / 0,89; σ_a 3,5
khớp lại 2,39 / 2,52, 3,95 / 4,80, 0,74 / 0,62; **σ_a 3,5 với siêu tham số của lần khớp 7 ms 0,875 / 0,674, 1,86 / 1,07,
0,77 / 0,82**; σ_a 14 khớp lại 1,01 / 0,92, 3,75 / 2,81, 0,56 / 0,52.
Cách đọc khai báo: σ_post khi cố định ≤ 1,0 ms ở cả hai N → **"drift-prior refit"**. Anchor bị tin quá mức được hấp thụ
bằng một prior drift gồ ghề hơn (ℓ ngắn, σ_g lớn), làm posterior rộng ra và dịch mean. Warp RMSE khi cố định vẫn cao hơn
giá trị đúng (1,86 / 1,07 so với 1,20 / 0,63), nên σ_a sai vẫn gây hại ngay cả khi prior drift đúng.
## Lệch khỏi khai báo
1. Khai báo ghi `--save-preds` cho script 15; `scripts/run_r6.sh` theo đúng tham số của `scripts/run_p2r_main.sh` nên
không lưu dự đoán theo trace. Không số nào báo cáo dùng các file đó.
2. Thứ tự và cách chia stage: GPU dùng chung chỉ còn ít bộ nhớ, nên B1 c = 1 chia thành ba session (`r6_c1a`, `r6_c1b`,
`r6_c1c`); server khởi động lại khoảng 18:05 UTC 11/11 → 02:10 UTC 12/11 làm mất mọi tmux session; sau khi kiểm tính
toàn vẹn file, các stage còn lại chạy lại cùng lệnh, bỏ qua job đã xong. Một lần `r6_c1c` bị dừng tay để giữ ≥ 2,5 GB
trống; một watcher chạy B1 c = 0 R10 khi đủ bộ nhớ. Đầu ra không bị ảnh hưởng (kiểm tra tái lập 128/128).
## Không làm (đã khai báo là giới hạn)
Generator nhiễu tương quan giữa các trace; budget TCN dưới 125; bank Gauss trên trục benchmark; sao lặp Thí nghiệm 3
trên 16–23 (runner khóa vào 8–15). Bài nêu ở Limitations ("Untested stresses", "Dependence between tests").
## Thay đổi trong bài (12/11/2026)
- Sec. 6.3: đoạn σ_a viết lại (nguyên nhân drift-prior refit; −5 dB thất bại), `tab:sigmaa` thêm hàng "3.5, fixed" và
ba hàng −5 dB; đoạn mới về sao lặp ở cuối Sec. 6.3.
- Abstract, Introduction, Conclusions: thêm "7–19% in a repeat on new realizations" cạnh 8–22% (theo khai báo).
- Sec. 3.3 (package): σ_a kiểm hash-locked chỉ ở 10 dB, lặp exploratory ở −5 dB cũng thất bại.
- Sec. 4.1: hyperparameter drift khớp với σ_a đăng ký trong phép thử σ_a.
- Sec. 7: `tab:lessons` (σ_a ở 10 và −5 dB; prior drift gồ ghề), Limitations "Dependence between tests" và "Untested
stresses"; Conclusions "at 10 dB and at −5 dB".
- Phụ lục C: mục (iv)–(vi) và các lệch khỏi khai báo.
- `main.pdf` 83 trang, build sạch, không tham chiếu chưa định nghĩa.

View File

@@ -0,0 +1,55 @@
# Ba phân tích exploratory theo referee R4 (khai báo trước khi tính)
Ngày: **10/11/2026**. Nguồn: báo cáo `docs/research/referee-reports/R4_contrib_round1.md` (M3, M4, góp ý nhỏ 18). Người dùng chọn nhóm A + B (sửa chữ + phân tích trên dữ liệu đã có, không huấn luyện lại). Script: `scripts/42_referee_r4.py` (ngoài mọi lock và ngoài các archive tái lập). Đầu ra: `outputs/referee_r4/`. File này được băm SHA-256 (`docs/research/referee-r4-analyses.sha256`) trước khi chạy script lần đầu; script kiểm hash trước khi tính.
## 0. Trạng thái và giới hạn
- **Exploratory, post hoc.** Thiết kế sau khi mọi kết quả liên quan đã được xem (P2r, benchmark, T2, λ → 0). Không có kết quả nào ở đây đổi verdict, ngưỡng, protocol hay số đã đăng ký. Không dùng nhãn test để chọn gì (không có lựa chọn nào phụ thuộc kết quả).
- Chỉ đọc dữ liệu đã lưu: dự đoán test trong `outputs/p2r/train/*/cells/*.npz` và `outputs/bench/s1/train/*/cells/*.npz`, các run trong `runs.csv`/CSV ô, hạt SMC và file pha trong `outputs/p2r/posterior/` và `outputs/bench/posterior/`. Phân tích B3 dựng lại các realization tổng hợp bằng generator đã khóa (không ngẫu nhiên mới; generator tái lập bit-for-bit) để tính lại warp của correlation tie; không huấn luyện mạng nào.
- **Hệ quả cho bài, cố định trước:** abstract và highlight đổi "sharpens" thành "is predicted to sharpen" **bất kể** kết quả B1 (kết quả exploratory không vào abstract như phát hiện). B1 và B3 được báo trong Sec. 6.4/6.5 và Phụ lục C bằng "consistent with" / "not detected"; B2 thay câu "nine of the eleven verdicts passed" bằng câu theo từng nghiên cứu và thêm xác suất hoán vị vào Phụ lục C. Kết quả âm hoặc null được báo như kết quả dương.
## B1. Hàm truyền của mạng học từ SMC mean so với Oracle (kiểm sharpening, M3)
**Câu hỏi.** Mệnh đề tie(b): nếu sai số thời gian của tie trung bình posterior có cấu trúc Berkson, tối ưu quần thể của nhãn tại warp trung bình bị làm sắc so với Oracle (hàm truyền 1/Q ≥ 1; Gauss: e^{+2π²σ²f²}); cấu trúc classical cho e^{−2π²σ²f²}. Ước lượng đã có từ Sec. 5.1 (H1) và S8-H1:
Ĥ_m(f) = Σ Re[Y* P_m] / Σ Re[Y* P_Oracle]
(Hann, NFFT 256, Δt 4 ms, trừ trung bình theo giếng; cộng qua giếng test, seed, realization; hàm `cross_spectrum` của `scripts/12_h1_blur.py`). Ĥ > 1 nghĩa là mạng có độ lợi đồng pha với nhãn thật lớn hơn Oracle ở tần số đó.
**Tần số dùng được** (như S8-H1): f ≥ 6 Hz và S_Oracle(f) ≥ 0,1 × max_{f ≥ 6 Hz} S_Oracle. Thống kê: r_m = exp(trung bình log(max(Ĥ_m, 10⁻³))) trên các tần số dùng được (như r của H1); phụ: r_m^hi cùng công thức trên các tần số dùng được ≥ 15 Hz. Dự đoán lý thuyết ở cùng tần số với σ = σ_post của ô (bảng `s1_cells.csv`/`sigma_post.csv`): r_Bk = geo-mean e^{+2π²σ²f²}, r_Cl = 1/r_Bk. CI 95% bootstrap trên realization (2000 lần, `np.random.default_rng(0)`; tái chọn realization, cộng lại phổ chéo).
**Ô và phương pháp.**
- **Chính (cùng ngân sách 500 vòng):** S1, các regime R10, R0, Rm5, R0h, R10tb; c = 1 (N = 8) và c = 1,5 (N = 16), tức 10 ô. Phương pháp: `B3d-Sa`@500 (SMC mean), `M2-Sa`@500 (SMC bank), đối chiếu với `Oracle`@500. Phụ trong cùng ô: `B3d-Sa`@250 (tác động của ngân sách lên Ĥ).
- **Mô tả:** mọi ô S1 còn lại (c ∈ {0, 0,5, 1, 1,5, 2}, mọi N có file) với cùng phương pháp; và các ô P2r (R10, R0, Rm5, R0h, R10tb; c ∈ {0, 1, 2}; N ∈ {4, 16}) ở ngân sách đăng ký (`B3d-Sa`@250, `M2-Sa`@250, point tie tốt nhất của ô, so với `Oracle`@500; lệch ngân sách được ghi rõ). Ô c = 2 mang cờ "unstable posterior".
**Cách đọc (cho mỗi ô chính, với SMC mean):** "consistent with sharpening" nếu cận dưới CI của r > 1; "consistent with blur" nếu cận trên < 1; ngược lại "not detected". Kèm theo: độ lệch dự đoán |r_Bk − 1| so với nửa độ rộng CI ("lực": nếu |r_Bk − 1| nhỏ hơn nửa độ rộng CI, phép kiểm không đủ lực ở σ_post đó). Tổng hợp: số ô chính theo từng loại. Không có ngưỡng gộp và không verdict.
**Giới hạn đã biết.** Tần số dùng được chỉ tới khoảng 20–25 Hz (H1: 6,8–22,5 Hz), trong khi hệ số Berkson lớn nhất ở 60–70 Hz; ở R10 σ_post ≤ 1 ms nên dự đoán lệch dưới 1%. Mạng hữu hạn cũng làm suy giảm phổ cao; Ĥ so với Oracle cùng kiến trúc và ngân sách khử phần chung. Sai số warp của SMC mean phụ thuộc thời gian và X nên giả thiết của dạng Gauss chỉ gần đúng (T2 (iv) chỉ thấy cấu trúc Berkson cho offset khối ở c = 1).
## B2. Xác suất pass dưới null của các luật quyết định (M4)
**Câu hỏi.** Luật ô (`cell_pass`: ≥ 4/5 seed **và** > 1/2 realization, với "improves" = ratio ≤ 0,90 **hoặc** ΔPCC ≥ +0,05) và luật `better` (không biên, cùng điều kiện đếm) pass với xác suất bao nhiêu nếu hai phương pháp hoán đổi được?
**Null hoán vị.** Với cặp (ứng viên, đối chứng) của một ô, giữ nguyên dữ liệu (band RMSE, band PCC của mỗi run (realization, seed) = trung bình qua giếng test, như `runs.csv`/`load_study`) và hoán đổi nhãn phương pháp:
- (a) **theo realization:** đổi cả 5 seed của một realization cùng lúc; liệt kê đủ 2⁸ = 256 cách (giữ tương quan giữa seed trong cùng realization);
- (b) **theo đơn vị (realization, seed):** mỗi trong 40 đơn vị đổi độc lập; Monte Carlo 20.000 lần, `np.random.default_rng(1)`.
Đối chứng là đối thủ tốt nhất quan sát được của ô (giữ cố định, như luật đã khóa chọn nó). p_null = tỉ lệ cách hoán đổi mà luật pass (gồm cả cách đồng nhất). Cho verdict cần nhiều ô, p_null chung tính với cùng một vector hoán đổi theo realization cho mọi ô (a) và độc lập theo đơn vị (b).
**Ô.** P2r H2a: R10, R0, Rm5, c = 1, N ∈ {4, 16} (luật ô, đối thủ {B3b, B3c, B3c-R}). P2r H2b (a): 8 ô rộng N = 16 (`better`, M2-Sa so với B3d-Sa). S1-H1: R10, c = 1,5, N ∈ {4, 16} (luật ô). S2-H1 drift: R10 dr_L1, c = 1, N ∈ {4, 16} (luật ô). S4-H1: R10 TCN, c = 1, N ∈ {4, 16} (luật ô, đối thủ TCN). S4-H2: 2 ô (`better`). S8-H2: 4 ô (`better`, BK2 so với PM2). Kiểm tra trước: kết quả luật tính lại trên dữ liệu thật phải khớp `verdict_final.json`/`verdict.json` cho mọi ô (nếu không khớp, dừng và ghi lại).
**Cách đọc.** Mô tả: p_null là xác suất hoán vị có điều kiện trên độ lớn quan sát, đóng vai trò p-value của luật. Báo cả hai sơ đồ; (a) là sơ đồ thận trọng. Không đổi verdict nào; bài báo cáo p_null cạnh mỗi verdict trong Phụ lục C.
## B3. Độ lệch giữa warp SMC mean và correlation tie, không dùng truth (góp ý nhỏ 18)
**Câu hỏi.** Một chẩn đoán không cần truth (độ lệch giữa warp trung bình SMC và warp của correlation tie) có phân biệt được các ô misspecification (nhất là pha wavelet, nơi S2-H1 thất bại) với ô danh nghĩa không, và có đi cùng sai số thật của SMC mean không?
**Dữ liệu.** R10 và Rm5 × {danh nghĩa (hạt P2r), rp_L1, rp_L2, wv_L1, wv_L2, wv_Q, dr_L1, dr_L2}, c = 1, N ∈ {4, 16}, realization 8–15, giếng train. Dựng lại `obs` bằng `Inputs.realization(rid, preset)` và `Inputs.observe`. Warp SMC mean: `warp_mean` của toàn bộ hạt g_acf (như nhãn `B3d-Sa`). Correlation tie: `tie_b3c` từ B3b với wavelet thống kê pha `phase0` (B3c) và pha `phase_R` (B3c-R), pha đọc từ `*_phase.json`. Kiểm tra trước: sai số warp tính lại của B3d-Sa và B3c-R phải khớp cột trong `*_diag.csv` (S2) và cột `warp_rmse_ms` của B3c trong CSV posterior (sai lệch ≤ 10⁻⁶ ms); nếu không khớp, dừng và ghi lại.
**Thống kê.** Theo giếng: D = RMS trên t_main của τ_SMC(t) − τ_B3c(t) (dùng `warp_errors` với warp B3c ở vị trí truth); D_R tương tự với B3c-R; E_pm, E_c = sai số warp của SMC mean và B3c so với truth. Theo setting: trung bình D (giếng rồi realization); tỉ số trung bình D của setting / danh nghĩa, ghép theo realization, CI bootstrap 2000 lần trên realization (`default_rng(2)`); Spearman theo giếng (gộp trong setting) giữa D và E_pm, và giữa D và E_pm − E_c.
**Cách đọc (mô tả).** "Chẩn đoán phân biệt được setting" nếu CI tỉ số loại 1. "Chẩn đoán đi cùng sai số" nếu Spearman(D, E_pm) > 0 với p < 0,05 (không hiệu chỉnh bội, ghi rõ). Không đặt ngưỡng cờ và không claim một quy tắc dùng được trên field.
## Báo cáo
`docs/research/referee-r4-results.md` (tiếng Việt): mọi bảng, kể cả kết quả âm, kiểm tra trước, lệnh và thời gian chạy.

View File

@@ -0,0 +1 @@
963324c1584d3997052a5187eae200fab785ce537f6dc3118b01a9bc421a9239 docs/research/referee-r4-analyses.md

View File

@@ -0,0 +1,64 @@
# Ba phân tích exploratory theo referee R4: kết quả
Ngày: **10/11/2026**. Khai báo: `docs/research/referee-r4-analyses.md` (SHA-256 `963324c1…`, băm 08:39:02 UTC, trước mọi tính toán; script kiểm hash ở mỗi lần chạy). Script: `scripts/42_referee_r4.py` (ngoài mọi lock và archive tái lập). Đầu ra: `outputs/referee_r4/` (`b1_transfer.csv`, `b2_null.csv`, `b2_null.json`, `b3_wells.csv`, `b3_summary.csv`, `meta.json`). Lượt chạy (`logs/runs/`): `20261110-084208_referee_r4_b2` (13 s), `20261110-084224_referee_r4_b1` (2 phút 3 s), `20261110-084440_referee_r4_b3` (1 phút 36 s, 12 worker CPU). Lượt B2 đầu (`20261110-084123`) tính xác suất chung của H2b(a) với điều kiện "cả 8 ô" thay vì "≥ 2/3 ô" như luật đã khóa; đã sửa và chạy lại, chỉ số đó thay đổi (bảng dưới là lượt sửa).
**Mô tả, không phải verdict.** Không verdict, ngưỡng, protocol hay số đã đăng ký nào đổi.
## Kiểm tra trước
- B2: luật tính lại trên dữ liệu thật pass ở mọi ô và khớp tỉ số đã công bố (ví dụ H2a R10 0,857/0,782; S1-H1 0,853/0,796; drift 0,862/0,798).
- B3: sai số warp tính lại của SMC mean, B3c-R và B3c khớp các file đã lưu tới 1,8·10⁻¹⁵ ms.
## B1. Hàm truyền của mạng SMC mean so với Oracle (sharpening)
Tần số dùng được: 6,8 Hz đến 25–38 Hz tuỳ ô. Ô chính: S1, cùng ngân sách 500 vòng, c = 1 (N = 8) và c = 1,5 (N = 16), năm setting.
| Setting, c | σ_post (ms) | r SMC mean [CI 95%] | đọc | r_Bk dự đoán | r SMC bank [CI] |
|---|---|---|---|---|---|
| 10 dB, 1 | 0,64 | 0,990 [0,978; 1,000] | not detected | 1,003 | 1,001 [0,985; 1,015] |
| 10 dB, 1,5 | 0,82 | 0,993 [0,973; 1,011] | not detected | 1,004 | 0,984 [0,970; 0,998] |
| 0 dB, 1 | 1,68 | 0,981 [0,954; 1,009] | not detected | 1,026 | 1,003 [0,979; 1,029] |
| 0 dB, 1,5 | 2,11 | 0,967 [0,948; 0,989] | **blur** | 1,039 | 1,016 [1,000; 1,033] |
| −5 dB, 1 | 2,73 | 0,934 [0,859; 0,997] | **blur** | 1,070 | 0,973 [0,931; 1,007] |
| −5 dB, 1,5 | 3,31 | 0,903 [0,850; 0,958] | **blur** | 1,121 | 0,984 [0,948; 1,018] |
| half-anchor, 1 | 2,03 | 0,965 [0,924; 1,014] | not detected | 1,038 | 0,976 [0,957; 0,999] |
| half-anchor, 1,5 | 2,78 | 0,948 [0,931; 0,974] | **blur** | 1,069 | 1,006 [0,987; 1,028] |
| two-anchor, 1 | 2,13 | 0,795 [0,649; 0,911] | **blur** | 1,032 | 0,884 [0,771; 0,958] |
| two-anchor, 1,5 | 5,80 | 0,652 [0,527; 0,782] | **blur** | 1,214 | 0,875 [0,790; 0,935] |
- **SMC mean: sharpening ở 0/10 ô, blur ở 6/10, not detected ở 4/10.** Phép kiểm có lực (độ lệch dự đoán lớn hơn nửa độ rộng CI) ở 5 ô, và cả 5 cho blur. Cùng ô ở 250 vòng: không ô nào sharpening (blur 3, not detected 7), nên ngân sách không giải thích kết quả.
- SMC bank: gần 1 (0,973–1,016) ở các setting đủ anchor và half-anchor, blur ở two-anchor (0,88). Một ô "sharpening" (0 dB, c = 1,5: cận dưới 1,0002) nằm sát biên.
- Ô P2r ở ngân sách đăng ký (mô tả; SMC mean 250 vòng so với Oracle 500): ở c = 1, SMC mean 0,90–1,02 (blur ở −5 dB N = 4 và two-anchor, còn lại not detected); point tie tốt nhất 0,72–0,96, blur ở cả 10 ô.
- **Đọc:** không quan sát được sharpening ở đâu. Ở các tần số đo được (≤ 25–38 Hz), mạng SMC mean bị blur so với Oracle ở những ô mà phép kiểm có lực, ít hơn point tie nhưng cùng chiều. Điều này phù hợp với việc SMC mean kém Oracle nhiều hơn khi posterior rộng (Sec. 6.5), và trái với dạng Berkson Gauss của Mệnh đề tie(b). Cấu trúc Berkson mà T2 (iv) thấy chỉ áp dụng cho offset khối ở c = 1; phần drift phụ thuộc thời gian và mạng hữu hạn có thể chiếm ưu thế. Không phân biệt được các giải thích này.
## B2. Xác suất pass dưới null hoán vị
(a) hoán đổi theo realization (đủ 256 cách); (b) theo đơn vị (realization, seed), 20.000 lần.
| Verdict | luật | số ô | p ô (a) | p ô (b) | p chung (a) | p chung (b) | CI ô loại 1 |
|---|---|---|---|---|---|---|---|
| H2a 10 dB | ô (biên) | 2 | 0,031; 0,102 | ≤ 0,0003 | 0,016 | < 5·10⁻⁵ | 2/2 |
| H2a 0 dB | ô | 2 | 0,063; 0,004 | ≤ 0,0001 | 0,004 | < 5·10⁻⁵ | 2/2 |
| H2a −5 dB | ô | 2 | 0,094; 0,039 | ≤ 0,0002 | 0,035 | < 5·10⁻⁵ | 2/2 |
| S1-H1 | ô | 2 | 0,051; 0,094 | ≤ 0,0001 | 0,027 | < 5·10⁻⁵ | 2/2 |
| S2-H1 drift | ô | 2 | 0,027; 0,078 | ≤ 0,0003 | 0,016 | < 5·10⁻⁵ | 2/2 |
| S4-H1 | ô | 2 | 0,059; 0,043 | ≤ 0,0001 | 0,027 | < 5·10⁻⁵ | 2/2 |
| H2b (a) | better, ≥ 6/8 | 8 | 0,17–0,36 | 0,14–0,15 | 0,219 | 0,0004 | 8/8 |
| S4-H2 | better | 2 | 0,23; 0,25 | 0,16; 0,15 | 0,160 | 0,022 | 2/2 |
| S8-H2 | better | 4 | 0,363 (mỗi ô) | 0,15 | 0,363 | 0,0006 | 4/4 |
- Luật `better` chỉ đếm dấu. Với 8 realization, dưới null theo realization nó pass với xác suất tới 93/256 = 0,363 mỗi ô, bất kể hiệu ứng lớn đến đâu (S8-H2 có tỉ số 0,28–0,71 mà p vẫn là 0,363). Dưới null theo đơn vị thì xác suất là 0,14–0,16, khớp ước lượng 0,1–0,2 của referee. Bằng chứng của các verdict `better` vì vậy nằm ở CI bootstrap: CI loại 1 ở cả 14 ô.
- Luật ô có biên (ratio ≤ 0,90 hoặc ΔPCC ≥ +0,05) chặt hơn nhiều: p ô 0,004–0,10 theo realization, p chung của verdict 0,004–0,035.
- Ghi chú: p chung của H2a chỉ tính phần ô ở c = 1, không tính điều kiện guard ở c = 0. Không hiệu chỉnh bội.
## B3. Độ lệch warp SMC mean và correlation tie (không dùng truth)
- D (RMS giữa τ của SMC mean và của B3c) ≈ sai số của chính B3c: ở 10 dB, N = 16, danh nghĩa, D = 3,88 ms so với E_c = 3,89 ms, trong khi E_pm = 0,63 ms. Spearman theo giếng giữa D và E_pm từ −0,03 đến 0,22 ở N = 16 (đáng kể chỉ ở wv_L2 10 dB và wv_Q −5 dB); giữa D và E_pm − E_c từ −0,56 đến −0,95 (D đo sai số của point tie).
- Tỉ số D so với danh nghĩa (10 dB, N = 16): **wv_L1 0,999 [0,899; 1,107]** (ô mà S2-H1 thất bại, E_pm tăng từ 0,63 lên 2,26 ms), wv_L2 1,25 [1,06; 1,46], rp_L1 1,14 [1,04; 1,27], rp_L2 1,25 [1,11; 1,42], wv_Q 0,85 [0,79; 0,92], dr_L1/L2 ≈ 1. Ở −5 dB mọi tỉ số trong 0,93–1,03.
- **Đọc:** chẩn đoán này không cảnh báo được lỗi pha wavelet ở mức L1. Nó đi theo sai số của correlation tie, không theo sai số của posterior.
## Hệ quả cho bài (theo khai báo §0)
- Abstract và highlight: "sharpens" → "is predicted to sharpen"; Sec. 5.3 và bảng `tab:theory` nêu dự đoán chỉ đúng khi sai số có cấu trúc Berkson chính xác; Sec. 6.4 và Phụ lục C báo B1 ("no sharpening was detected; where the test had power, the network trained on posterior-mean labels was blurred relative to the Oracle").
- Sec. 6 và Phụ lục C: bảng B2; bỏ câu đếm "nine of the eleven"; nói rõ luật `better` chỉ đếm dấu và bằng chứng nằm ở CI.
- Sec. 6.5 (S2): câu "we did not test" về chẩn đoán không dùng truth được thay bằng kết quả B3.

View File

@@ -0,0 +1,40 @@
# Khoảng tin cậy cho ít cụm và đối chiếu anchor mean: kết quả
Ngày **10/11/2026**. Khai báo `docs/research/referee-r5-ci.md` (SHA-256 `accc1c52…`, băm 09:36:39 UTC trước khi tính). Script `scripts/43_referee_r5_ci.py` → `outputs/referee_r5/` (`c1_intervals.csv`, `c2_zero_drift_vs_oracle.csv`, `meta.json`). Lượt chạy `20261110-093717_referee_r5_ci` (10 s; lượt đầu `093701` lỗi cú pháp thống kê tóm tắt, sửa script rồi chạy lại, không đổi phương pháp). Mô tả, không phải verdict.
**Kiểm tra trước:** khoảng percentile tái hiện khoảng đã công bố của H2b ở cả 8 ô rộng, lệch tối đa 0,0017.
## C1. Ba loại khoảng cho 38 tỉ số (H2a 6 ô, H2b 8, S1-H1 2, S2-H1 drift 2, S2-H2 14, cùng 6 ô so với anchor mean)
- **BCa:** không đổi kết luận nào so với percentile (0/38 so với 1 và so với ngưỡng); cận trên cao hơn tối đa 0,017 (H2a 10 dB N = 4: 0,919 → 0,935).
- **t-interval trên log tỉ số (7 bậc tự do):** rộng hơn (cận trên tới +0,017), đổi 3/38 kết luận so với 1, cả ba là ô sát biên: H2b ở −5 dB c = 1 (cận trên 0,995 → 1,001), S2-H2 −5 dB rock physics mild (0,999 → 1,001) và attenuation (0,997 → 1,001); các khoảng này chuyển từ "dưới 1" sang "chứa 1". Không có kết luận nào so với ngưỡng đổi.
- **Ngưỡng 0,90 của luật có biên (H2a, S1-H1, S2-H1 drift):** khoảng nằm hoàn toàn dưới 0,90 chỉ ở R10 N = 16 (cận trên 0,816–0,823), S1-H1 N = 16 (0,826–0,836) và drift N = 16 (0,828–0,834) ở cả ba cách tính; các ô còn lại chứa 0,90 ở cả ba cách (ví dụ R10 N = 4: [0,805; 0,919], [0,811; 0,935], [0,784; 0,935]). Điều này đúng cả với khoảng đã công bố: luật ô không đòi khoảng tin cậy dưới 0,90, mà đếm seed và realization.
- **S2-H2 (ngưỡng 1,02):** ô wv_L1 và wv_Q ở 10 dB (tỉ số 1,019) có khoảng chứa 1,02 ở cả ba cách (percentile [1,005; 1,034] và [1,007; 1,030]; t [1,000; 1,038] và [1,007; 1,034]); lần pass ở ngưỡng này là biên.
**Kết luận:** với 8 realization, ba cách tính cho cùng bức tranh; khoảng t rộng hơn nhưng không đảo kết luận chính (H2a, S1-H1, S2-H1 drift đều có khoảng dưới 1 ở mọi cách). Ba ô đổi đều là ô biên (cận trên sát 1).
## C2. Đối chiếu với anchor mean (B3d-Sa / B3d, c = 1)
| Setting | N = 4 | N = 16 |
|---|---|---|
| 10 dB | 0,806 [0,760; 0,852] | 0,674 [0,640; 0,711] |
| 0 dB | 0,925 [0,910; 0,941] | 0,887 [0,859; 0,913] |
| −5 dB | 0,980 [0,969; 0,990] | 0,965 [0,951; 0,978] |
Khoảng BCa và t cùng loại 1. Vậy so với anchor mean, SMC mean tốt hơn ở mọi ô theo khoảng tin cậy, nhưng chỉ vượt biên 0,90 ở 10 dB (và 0 dB N = 16); ở −5 dB lợi ích là 2–3,5%.
**Tỉ số band RMSE trên Oracle ở c = 0 (không drift):**
| Setting, N | calibrated sonic | correlation | phase-est. corr. | anchor mean | SMC mean |
|---|---|---|---|---|---|
| 10 dB, 4 | 1,565 | 1,205 | 1,190 | 1,049 | 0,985 |
| 10 dB, 16 | 1,816 | 1,296 | 1,293 | 1,076 | 1,016 |
| 0 dB, 4 | 1,291 | 1,186 | 1,172 | 1,039 | 0,993 |
| 0 dB, 16 | 1,390 | 1,239 | 1,207 | 1,058 | 1,032 |
| −5 dB, 4 | 1,146 | 1,154 | 1,148 | 1,029 | 1,006 |
| −5 dB, 16 | 1,198 | 1,175 | 1,156 | 1,027 | 1,014 |
Không drift, các tie tất định tốt nhất vẫn cao hơn Oracle 15–29% (calibrated sonic tới 82%), anchor mean 3–8%. Phần lớn lợi ích 8–22% của SMC mean so với tie tất định là phần sai số mà một ước lượng anchor làm trơn cũng loại được (đúng như referee R5 M1).
## Hệ quả cho bài
Báo trong Sec. 6.3 (lợi ích so với anchor mean với CI, mọi setting), Phụ lục C (BCa, t-interval, số kết luận đổi, bảng c = 0 so với Oracle) và abstract/kết luận (headline so với anchor mean cạnh 8–22%).

View File

@@ -0,0 +1,24 @@
# Khoảng tin cậy cho ít cụm (referee R5, M6) và đối chiếu với anchor mean (M1): khai báo trước khi tính
Ngày: **10/11/2026**. Nguồn: `docs/research/referee-reports/R5_opus_round1.md` (M1, M6). Script: `scripts/43_referee_r5_ci.py` (ngoài mọi lock và archive tái lập, chỉ đọc `runs.csv` và CSV ô đã lưu, không train). Đầu ra: `outputs/referee_r5/`. File này được băm SHA-256 (`referee-r5-ci.sha256`) trước lần chạy đầu; script kiểm hash.
**Exploratory, post hoc.** Không đổi verdict, ngưỡng, protocol hay số đã đăng ký. Kết quả âm hoặc null được báo như kết quả dương.
## C1. Khoảng tin cậy thay thế cho tỉ số chính
Với mỗi ô và cặp (ứng viên a, đối chứng b): r_i = trung bình band RMSE của a theo seed trong realization i, chia cho của b (8 realization). Ba khoảng 95% cho tỉ số của các trung bình (= tỉ số đã công bố):
1. **percentile bootstrap** (2000 lần, `default_rng(0)`; tái hiện khoảng đã công bố, kiểm tra trước: lệch ≤ 0,01 so với bảng đã có);
2. **BCa** (`scipy.stats.bootstrap`, `method="BCa"`, 9999 lần, `random_state=0`) trên thống kê tỉ số của hai trung bình;
3. **t-interval trên log r_i** (7 bậc tự do): exp(mean(log r_i) ± t_{0,975;7}·sd/√8). Đây là tỉ số trung bình hình học, khác nhẹ tỉ số của trung bình; báo cả hai giá trị điểm.
Ô: P2r H2a (R10, R0, Rm5; c = 1; N ∈ {4, 16}; B3d-Sa so với point tie tốt nhất của ô), P2r H2b (a) (8 ô rộng, N = 16; M2-Sa so với B3d-Sa), S1-H1 (R10, c = 1,5), S2-H1 drift (R10 dr_L1, c = 1), S2-H2 (14 cặp preset × regime, tỉ số M2-Sa/B3d-Sa trung bình theo N: dùng cả hai N gộp, so với 1,02).
**Cách đọc (cố định trước):** một kết luận "đổi" nếu một khoảng loại 1 (hoặc ngưỡng: 0,90 cho luật có biên về tỉ số, 1,02 cho S2-H2) mà một khoảng khác không loại, hoặc ngược lại. Báo số kết luận đổi giữa percentile và mỗi khoảng còn lại, và bảng tỉ số theo từng realization cho các ô H2a và H2b (cho hình/bảng bổ sung).
## C2. Đối chiếu với anchor mean (M1)
Tỉ số band RMSE của B3d-Sa so với B3d (anchor mean, trung bình posterior chỉ dùng anchor) ở c = 1, mọi regime P2r, N ∈ {4, 16}, cùng ba khoảng như C1; thêm tỉ số của cả hai với Oracle ở c = 0 (B3b, B3c, B3c-R, B3d, B3d-Sa chia Oracle). Mô tả; không có ngưỡng gộp.
## Báo cáo
`docs/research/referee-r5-ci-results.md` (tiếng Việt): mọi bảng, kể cả kết quả âm, kiểm tra trước, lệnh và thời gian chạy.

View File

@@ -0,0 +1 @@
accc1c5230c651958f2829fe745081133a81491f44b465cffa5d5fae5239c374 docs/research/referee-r5-ci.md

View File

@@ -0,0 +1,35 @@
# Kiểm độc lập Berkson và kiểm định cặp cho số giếng: kết quả
Ngày **10/11/2026**. Khai báo `docs/research/referee-r5-followups.md` (SHA-256 `d631cfad…`, băm 09:48:11 UTC trước khi tính). Script `scripts/45_referee_r5_followups.py` → `outputs/referee_r5/` (`f1_wells.csv`, `f1_summary.csv`, `f2_power.csv`, `f2_nstar.csv`, `meta_followups.json`). Lượt chạy `20261110-094831_referee_r5_followups` (16 phút, CPU, 8 worker cho F1). Exploratory; không đổi verdict.
## F1. Kiểm độc lập có lực (N = 16, 128 giếng mỗi ô)
| Setting, c | Spearman(\|e\|, σ_post) [95%] | Spearman(\|e\|, \|â\|) [95%] | CV của σ_post | độ phủ 90% |
|---|---|---|---|---|
| 0 dB, 1 | 0,31 [0,20; 0,44] | 0,01 [−0,17; 0,23] | 0,66 | 0,88 |
| 0 dB, 2 | 0,46 [0,29; 0,58] | 0,05 | 0,46 | 0,91 |
| half-anchor, 1 | 0,44 [0,28; 0,57] | 0,06 | 0,65 | 0,86 |
| half-anchor, 2 | 0,56 [0,34; 0,74] | 0,02 | 0,39 | 0,89 |
| 10 dB, 1 | 0,04 [−0,10; 0,21] | −0,00 | 0,82 | 0,93 |
| 10 dB, 2 | 0,18 [−0,01; 0,36] | 0,09 | 0,69 | 0,97 |
| two-anchor, 1 | 0,73 [0,65; 0,78] | −0,03 | 1,72 | 0,58 |
| two-anchor, 2 | 0,59 [0,46; 0,69] | 0,02 | 0,74 | 0,63 |
| −5 dB, 1 | 0,39 [0,17; 0,55] | 0,08 | 0,45 | 0,84 |
| −5 dB, 2 | 0,27 [0,17; 0,36] | 0,01 | 0,25 | 0,89 |
- **Độc lập bị bác ở 10/10 ô theo luật đã khai báo** (CV của σ_post > 0,25 ở 9 ô, trừ −5 dB c = 2 với 0,248; khoảng của ρ(|e|, σ_post) loại 0 từ trên ở 8 ô, trừ 10 dB c = 1 và c = 2; mỗi ô thỏa ít nhất một điều kiện). σ_post thay đổi giữa giếng từ 0,25 đến 1,72 lần giá trị trung bình, và sai số lớn đi cùng posterior rộng. Sai số của tie trung bình posterior vì vậy không độc lập với dữ liệu giếng, điều kiện của Mệnh đề tie(b); điều này phù hợp với việc không thấy sharpening.
- Độ phủ 90% của a_true bởi khoảng hạt: 0,84–0,97 trừ hai-anchor (0,58 và 0,63; posterior quá tự tin).
- Tương quan giữa |e| và |â| gần 0 ở mọi ô (khoảng chứa 0): không có phụ thuộc cấp một vào chính giá trị ước lượng.
## F2. n* cho kiểm định dấu, Wilcoxon và t cặp (mô phỏng lấy lại theo cụm; α = 0,05, công suất 0,8)
| Cell | σ_ref (ms) | dấu | Wilcoxon | t cặp | dấu (beta-binomial, đã công bố) |
|---|---|---|---|---|---|
| 10 dB, N = 16 | 0 / 0,5 / 1 / 1,5 / 2 | 8 / 8 / 16 / 24 / – | 6 / 6 / 10 / 16 / 24 | 4 / 6 / 8 / 12 / 20 | 5 / 5 / 11 / 23 / – |
| 0 dB, N = 16 | 0 / 1 / 2 / 3 | 8 / 16 / 30 / – | 6 / 8 / 20 / – | 4 / 8 / 16 / – | 5 / 13 / 37 / – |
| −5 dB, N = 16 | 0 / 1 / 2 / 3 | 16 / 24 / – / – | 8 / 16 / 30 / – | 8 / 12 / 24 / – | 11 / 30 / – / – |
| 10 dB, N = 4 | 0 / 1 / 1,5 | 30 / 40 / – | 8 / 24 / 40 | 6 / 24 / 40 | – |
- Kiểm định dùng độ lớn (Wilcoxon, t cặp) cần ít hơn kiểm định dấu cùng cách mô phỏng khoảng 25–50% số giếng, và t cặp thường ≤ Wilcoxon. Ở σ_ref ≥ 3 ms không cell nào N = 16 đạt công suất 0,8 với 40 giếng, giống kiểm định dấu; chỉ 0 dB N = 4 đạt ở 30 giếng. Kết luận "cần tham chiếu cỡ 1–2 ms và hàng chục giếng" không đổi.
- Số của kiểm định dấu theo mô phỏng cao hơn số beta-binomial đã công bố ở một số ô (ví dụ 10 dB N = 16, σ_ref = 0: 8 so với 5): hai phương pháp mô hình hoá tương quan trong realization khác nhau, và mô phỏng lấy lại từ cùng 8 cụm nên không có khoảng bất định riêng.
- Số giếng của bảng `tab:t3` (kiểm định dấu, beta-binomial) giữ nguyên; bài báo thêm bảng mô phỏng ở Phụ lục C và nói rõ hướng thay đổi.

View File

@@ -0,0 +1,22 @@
# Kiểm độc lập cho Berkson và kiểm định cặp cho số giếng (referee R5 M2, M4): khai báo trước khi tính
Ngày: **10/11/2026**. Exploratory, post hoc. Không đổi verdict, ngưỡng hay protocol. Script: `scripts/45_referee_r5_followups.py` (ngoài mọi lock và archive tái lập; chỉ đọc dữ liệu đã lưu, không train). Đầu ra: `outputs/referee_r5/`. File này được băm SHA-256 (`referee-r5-followups.sha256`) trước lần chạy đầu; script kiểm hash.
## F1. Kiểm độc lập có lực cho cấu trúc Berkson (M2)
Mệnh đề tie(b) cần sai số của tie ε độc lập với dữ liệu D tại giếng. Hiệp phương sai Cov(b* − b̂, b̂) = 0 đúng với mọi conditional mean nên không kiểm được điều này. Kiểm tra có lực: với một posterior đúng, độ lệch chuẩn posterior σ_post(D) thay đổi theo giếng, nên |e| tương quan với σ_post khi độc lập thất bại.
Đại lượng theo giếng train: offset trung bình cửa sổ a (ms) như `window_offsets` của `scripts/32_t2_mechanism.py` (nút K trong cửa sổ chấm điểm); e = a_true − a của B3d-Sa (SMC mean); σ_post = độ lệch chuẩn của a qua 1024 hạt; |â| = |a của SMC mean − 0|.
Ô: 5 regime × c ∈ {1, 2} × N = 16 (16 giếng train × 8 realization = 128 giếng mỗi ô).
Thống kê mỗi ô: (i) Spearman(|e|, σ_post); (ii) Spearman(|e|, |â|); (iii) hệ số biến thiên của σ_post giữa giếng; (iv) độ phủ 90% của a_true bởi khoảng hạt (5–95%). Khoảng 95% của (i), (ii) bằng bootstrap theo realization (2000 lần, `default_rng(0)`, tái chọn realization, tính lại Spearman gộp).
**Cách đọc cố định trước:** "độc lập bị bác" ở một ô nếu khoảng của (i) loại 0 từ trên (ρ > 0) *hoặc* (iii) > 0,25 (σ_post thay đổi đáng kể giữa giếng, nên σ_post(D) phụ thuộc D). Báo số ô theo từng loại. Không verdict.
## F2. Wilcoxon và t cặp cho số giếng mù cần thiết (M4)
Dùng `outputs/t3/indicators.csv.gz` (tỉ số band RMSE của SMC bank so với tie tất định tốt nhất cho từng giếng test, từng độ lệch tham chiếu σ_ref ∈ {0, 0,5, 1, 1,5, 2, 3, 4, 8} ms, 64 lần rút tham chiếu; ô R10/R0/Rm5 × N ∈ {4, 16}, c = 1). Với n giếng mù: chọn ⌈n/8⌉ realization ngẫu nhiên có hoàn lại (mỗi realization có 8 giếng test) và lấy 8 giếng của mỗi realization (cắt còn n), mỗi giếng một lần rút tham chiếu ngẫu nhiên; thống kê là log tỉ số theo giếng. Ba kiểm định một phía, α = 0,05, giả thiết "SMC bank tốt hơn": dấu (binomial), Wilcoxon signed-rank (`scipy.stats.wilcoxon`, `alternative="less"` trên log tỉ số), t cặp (`ttest_1samp`, `alternative="less"`). n ∈ {4, 6, 8, 10, 12, 16, 20, 24, 30, 40}, 1000 mô phỏng mỗi (ô, σ_ref, n), `default_rng(1)`. Công suất = tỉ lệ p < 0,05; n* = n nhỏ nhất đạt 0,8 (hoặc "–" nếu không đạt ở 40). Đối chiếu: n* của kiểm định dấu bằng cùng cách mô phỏng với n* beta-binomial đã công bố.
**Giới hạn đã biết:** chỉ có 8 realization (cụm), nên mô phỏng lấy lại từ cùng 64 giếng; công suất ở n lớn là ước lượng từ cùng một mẫu và không có khoảng bất định riêng. Mô phỏng không thay thế phân tích beta-binomial; nó kiểm xem kết luận về số giếng có đổi khi dùng kiểm định dùng độ lớn hay không.
## Báo cáo
`docs/research/referee-r5-followups-results.md` (tiếng Việt). Hệ quả cho bài (cố định trước): Sec. 6.4 (F1) và Sec. 6.6 / Bảng `tab:t3` (F2) báo kết quả; kết luận về số giếng được nêu theo kiểm định.

View File

@@ -0,0 +1 @@
d631cfad0fd378be05d50314e9279cf80ed8accfc20ae61999a84f33dd4ba4bc docs/research/referee-r5-followups.md

View File

@@ -0,0 +1,87 @@
# Referee 1 report (round 1) — Computers & Geosciences
Manuscript: *Label registration error in sparse-well seismic property learning: theory, a registration-aware benchmark, and the limits of field validation*
Referee profile: applied geophysicist, seismic reservoir characterization / QI (well ties, inversion, seismic-to-property prediction).
---
## 1. Summary and claimed contributions
The paper treats the well-tie error that places well-log labels on the seismic time axis as an error in the *time index* of the training label, rather than in its value, and asks what this does to a learned seismic-to-porosity predictor. Theoretically (Sec. 4, App. A) it shows that an independent ("classical") timing error convolves the MSE-optimal predictor with the error distribution, so the seismic band is attenuated by the characteristic function of the error; that without time anchors a network and its label alignment can drift together (absolute timing unidentified); that the error of a posterior-mean tie has Berkson rather than classical structure and *sharpens* instead of blurring; that a calibrated bank of posterior labels recovers the oracle population optimum but with a population gain only of fourth order in the tie error; and that scoring against a misregistered reference biases blind-well comparisons unless the reference error is below sigma/sqrt(2) of the tie error. Methodologically (Sec. 5) it defines RML_lambda, a tempered log-likelihood over a bank of labels, and shows that point-tie NLL, hard/soft shift losses and soft-DTW are special cases. Empirically it builds a synthetic benchmark from F3 geometry, rock physics, wavelet and a warp prior fitted to F3 markers, runs three hash-locked experiments (the first failed; the second, designed after the failure, showed that labels at the SMC posterior-mean warp beat the best point tie by 8–22% in band RMSE, and that the bank helps a further 2–11% when the posterior is wide; the third extends this and finds that the gain dies under a frequency-dependent wavelet phase and misses the margin under unit-dependent rock physics, and that a two-mode label error reverses the learned band polarity as predicted). Two pre-registered field tests (F3, 4 wells; Volve, 6 wells) failed their gates, and the authors argue, via a power analysis under their simulator, that neither could have detected the effect, and that Teapot Dome lacks adequate references. Claimed contributions: C1 theory, C2 benchmark package with scorer, C3 RML as a unifying family of baselines, C4 detectability conditions plus audits of public datasets.
## 2. Significance and fit for Computers & Geosciences
The fit is good. C&G readers will value: the released task package with hidden truth and a locked scorer; the reproduction package; the unification of shift-tolerant losses, soft-DTW and point-tie training under one loss; and two data-handling findings that every F3/Volve ML user should know — that the F3 "PHIE" at three of four wells is an exact linear transform of sonic (so most published "porosity prediction on F3" is sonic prediction), and that the Volve ST10010 trace headers carry a time scalar that shifts the cube 8 ms if read naively. The two-mode (cycle-skip) result — that a mis-tied subset of wells trains the network toward the wrong polarity in a predictable band, and that carrying both candidate ties fixes it — is the single most practitioner-relevant empirical result and is well presented.
What limits the significance for practitioners is that (i) the positive results come from one simulator in which the registration model is, in the nominal cells, the data-generating model, and the one realistic departure in wavelet phase removes the gain; (ii) the headline 8–22% improvement is largely a better tie estimator (SMC with a physical likelihood and phase estimate versus local correlation shifts), not the marginalization that the paper is about; (iii) the two field tests are limited as much by design choices as by the data; and (iv) the "limits of field validation" conclusion is derived for one scoring metric that is maximally sensitive to reference timing. These are the subjects of the major comments. The paper is unusually candid about its negative results and deviations, which I appreciate, and none of my comments require new field data.
## 3. Major comments
**M1. The synthetic benchmark is a best case for seismic-band skill, and the paper should say what in it is an inverse crime (Sec. 3.2, Sec. 6.2, Sec. 7 "One simulator").**
In the nominal cells the registration uses exactly the simulator's wavelet (a 128 ms zero-phase statistical wavelet up to a constant phase), its rock physics, its warp-prior family and its anchor-noise model (independent N(0, 7^2 ms) per anchor). Seismic is a deterministic function of porosity plus white Gaussian noise: no lithology or fluid confounder, no coloured or coherent noise, no multiples. The porosity field has in-band standard deviation of roughly 1.3 p.u. (from Table 1: band RMSE 0.426 at PCC 0.954 and sd ratio 0.945). The Oracle reaches band PCC 0.95; on F3 no method reaches 0.25. The S2 presets help, but they are narrow: the rock-physics preset only rescales the DT intercept per unit (no scatter in the phi–DT relation, which is the dominant real-world effect), and the anchor error structure is never varied even though the paper's own F3 audit says the anchors are horizon-tie picks whose errors are correlated with the seismic and across wells. The anchor noise model therefore favours the registration relative to F3. Two further points are unstated: whether the noise is independent across the nine traces of the 3x3 patch and whether the earth model varies laterally within the patch (if the model is laterally smooth and the noise independent, the effective SNR seen by the network is about 9.5 dB higher than the nominal "R10/R0/Rm5").
*Why it matters:* the benchmark is the only source of positive evidence; readers need to know how much of its headroom is inverse crime.
*What would resolve it:* a short table listing, for each simulator component, whether the registration knows it exactly, approximately, or not at all; the lateral model and noise correlation of the patch; one anchor-error stress (a per-well bias plus correlated pick error, e.g., a common horizon mis-pick) in S2 or in a disclosed arm; and a rock-physics preset with scatter around phi–DT rather than a unit intercept scaling. If these cannot be run, the abstract and Sec. 7 should state the inverse-crime nature of the nominal cells explicitly rather than only "one simulator".
**M2. The motivating magnitude of the timing error is a straw man, and the F3 anchors on which "F3-like drift" is calibrated are of unknown quality (Sec. 1 para. 3; Sec. 3.1; Fig. 1).**
"Integrating the sonic from the first log sample, as is common in learning studies, gives TWT that differs from the TD markers by up to 14–66 ms" is cited to nothing. No competent workflow integrates sonic from a single shallow anchor; a marker- or checkshot-calibrated tie leaves residuals of a few ms, which is also what the paper's own B3b/B3c-R show on the synthetic (RMS warp error 3.5–7 ms). The one-to-several-period error in the introduction and the "less than 7% of seismic-band variance" statement in Sec. 4.1 therefore describe a mistake, not a tie. Second, the "F3-like" drift level (c = 1) and sigma_a = 7 ms are calibrated on the F3 marker tables. The paper notes that a type-II fit gives sigma_a = 0.4 ms and that leave-one-anchor-out z^2 is 0.21: both say the markers are far smoother than independent picks would be, which suggests they were themselves generated from a smooth time–depth curve. Fig. 1 also shows at F06-1 a kink near 1030 ms common to all three TD sources relative to the markers, which points to a marker (or sonic) problem at that well; a −66 ms sonic offset changing by 45 ms within 500 ms of shallow unconsolidated section is a 9% velocity difference and deserves comment (washout? wrong datum?). Finally, "robust spread (MAD) ... 6.9 ms" — is this the raw MAD (then sigma is about 10 ms) or the scaled one?
*What would resolve it:* cite the learning studies that integrate from one anchor or drop the sentence; state the residual of a marker-calibrated tie as the realistic magnitude; say what the F3 markers are (did the authors check NLOG for genuine checkshot/VSP surveys for F02-1, F03-2, F03-4, F06-1?); discuss the F06-1 kink; and state how sensitive the warp prior (m_g, sigma_g, l) and hence c = 1 are to dropping F06-1.
**M3. The field tests are limited by design choices as much as by the data, and the paper attributes the lack of skill only to the data (Sec. 6.7; App. B; Sec. 7 "What the field cases show").**
(a) Nested LOWO on four wells trains a 64-channel dilated-CNN + bidirectional GRU on *two* wells of 126 samples. The simplest baseline (ridge on attributes, Table B.1) has the best band PCC on F3. The tie comparison was never carried through a model with a capacity matched to the data. (b) The input is "z-scored per channel within each well" (Sec. 5.5). On Volve the error is dominated by between-well porosity level (well means 8.5–17 p.u.), and per-well z-scoring discards exactly the relative amplitude information that would carry between-well impedance level. The "no method had blind-well skill" result is partly induced by preprocessing; a global (survey-wide) normalization arm is cheap and should be reported. (c) B1 (model-based impedance inversion with a well-interpolated LFM, then linear phi–impedance) has band PCC −0.02 against a label that is an exact function of DT, with RHOB itself a linear function of DT, so impedance is a deterministic function of the label. A model-based inversion with a negative in-band correlation to such a label has not been competently set up (wavelet? LFM? tie?), and the paper gives no details. (d) Several published F3 studies report high porosity-prediction skill; the paper should state plainly that those results are typically not blind-well and that the F3 label is a sonic transform, otherwise readers will see the discrepancy and distrust this paper's field numbers.
*What would resolve it:* a global-normalization arm on Volve (and F3); carrying the tie comparison through ridge/B0b or a small 1-D CNN on F3; full description of B1 and either a corrected B1 or a statement of why it fails; one paragraph relating to the F3 literature. I am not asking for new wells.
**M4. "The limits of field validation" rests on one scoring rule that is maximally sensitive to reference timing (Sec. 4.5, Sec. 6.6, Sec. 7, title, abstract).**
The ~1 ms reference requirement and the N* numbers (Table 9) are properties of scoring band RMSE above 6 Hz against a single point reference, with the 8–22% effect of the benchmark. The authors cite tolerance-aware metrics (Guillon et al. 2020; Mnih & Hinton 2012) in Sec. 2 and even score F3 against 64 posterior warps of the test well in App. B (c), but T3 uses neither. Practitioners validate ties and predictions with (i) bounded-lag or tolerance scores, (ii) scoring against the test well's own tie posterior (marginalizing the reference error, which Prop. 6 shows is additive and whose covariance with the prediction they could model), (iii) depth-domain or layer-averaged comparisons that are insensitive to few-ms shifts. Corollary 4 itself says shrinkage relaxes the condition. Also, VSP/checkshot references accurate to 1–2 ms after datum/static reconciliation are routine, so "field data lack them" (highlights) is a statement about the three public datasets examined, not about field validation.
*What would resolve it:* rerun T3 with at least one tolerance or posterior-marginalized scoring rule and report how N* changes; rephrase the title/abstract/conclusion from "limits of field validation" to the limits under point-reference band scoring on the public datasets examined.
**M5. The headline positive result is a better tie estimator, not marginalization, and the point-tie baselines are under-described (Sec. 6.2 H2a; Sec. 5.3; Table 3).**
B3d-Sa's 8–22% gain is "already present without drift" (ratios 0.81–0.88 at c = 0). At c = 0 the only differences between B3d-Sa and B3c/B3c-R are the tie estimator (SMC with a physical likelihood, profiled amplitude and a phase scan versus local NCC shifts): SMC warp RMSE 0.6 ms versus 3.5–4.2 ms for B3c-R at R10. The practical message — the quality of the tie algorithm dominates, and the bank adds 2–11% only when the posterior is wide — is buried under the RML framing. Moreover B3c ("B3b plus local shifts from synthetic–seismic correlation") is described in one line: window length, maximum shift, smoothing, and whether shifts are constrained to be monotone and to honour anchors are not given, so I cannot judge whether it is a competent stretch-and-squeeze baseline or a weak one. There is also no interpreter-style tie (anchors as knots, global phase and bulk-shift scan, interpolated stretch) among the point ties, which is what most practitioners actually use.
*What would resolve it:* state the finding up front; one table of warp RMSE and 90% coverage per tie method per regime at c in {0, 1}; a full description of B3c/B3c-R; and, if feasible, an interpreter-style point tie as a competitor. Note that the sigma_a arm (Table 5) shows the SMC tie itself, not only the bank, is fragile to a twofold error in sigma_a; this should be stated as a property of the tie estimator.
**M6. Where the predictors have skill in frequency does not match the blur mechanism, and this should be made explicit (Sec. 4.1 H1 limitations; Sec. 4.3 "Finite samples"; Sec. 6.5 S8).**
H1 only tests 6.8–22.5 Hz "where the MSE predictor has coherent power (72% of the in-band cross-spectrum)", while the F3 seismic peaks at 43–62 Hz. At 20 Hz a Gaussian tie error of 3 ms attenuates by 7% and of 1 ms by under 1%, so the population blur (C1) cannot produce the 8–22% band-RMSE gains observed at posterior widths of 0.6–2.5 ms; the paper says in passing that first-order label noise ("finite samples") is the operative term. The '7% of seismic-band variance retained at sigma = 8 ms' in Sec. 4.1 uses the F3 amplitude spectrum as proxy, but the predictors recover a band where the same error keeps about 36%. Readers will otherwise take C1 as the explanation of the empirical gains.
*What would resolve it:* show the cross-spectrum of Oracle predictions with the labels (where skill lives), state that no method exploits the 40–60 Hz band, quantify the first-order label-noise term for the H2a cells, and say that H1 verifies the blur law but that the main empirical gains are finite-sample effects on label noise and tie accuracy.
**M7. Pre-registration is self-certified; the wording should match (Sec. 6 opening; App. B "Protocol and deviations").**
The protocol of Exp. 1 was committed after its run, those of F3 and Volve after their runs, that of Exp. 3 during; the timing record is a time stamp inside a lock file written by the authors' own scripts. Hash-locking is good engineering, but "pre-registered" in the abstract and highlights implies an external record. Either deposit the protocols with an external timestamp (OSF, Zenodo) for the locked files that still exist, or use "hash-locked" in the abstract and state the self-certification there.
## 4. Minor comments
- m1. The submitted source contains editorial material that must not reach a referee or a reader: red TODO blocks (author list; Sec. 2 novelty todoblock referring to internal `docs/plan.md`; data/code DOIs; Teapot licence; Computer code availability; declarations; generative-AI statement). C&G requires the Computer code availability section.
- m2. Naming: the manuscript calls RML "registration-marginalized learning"; the benchmark README (Sec. 6) calls M2-Sa "regression with misregistered labels (RML)". Align.
- m3. Sec. 3.3 says "only F-11 T2 has a zero-offset VSP"; Sec. 6.7 says "Volve has check shots at two wells". Reconcile and name the wells.
- m4. Sec. 7 "closed 29–35% of that gap" versus Sec. 6.4 "30–35%".
- m5. Sec. 4.2 "4 wells of 16 anchors" versus Sec. 3.1 "9–11 anchors in the target window" (presumably 16 counts the extended window; say so).
- m6. Sec. 3.2 should state that the true warps are drawn with sigma_b = 19 ms (ML fit) while registration fixes sigma_b = 50 ms, and whether c scales b from 19 or 50.
- m7. Missing references a QI reader will expect: White & Hu (1998, *The Leading Edge*, "How accurate can a well tie be?") and White & Simm (2003, *First Break*, "Tutorial: Good practice in well ties") on well-tie accuracy and the stretch/phase trade-off; Stewart, Huddleston & Kan (1984, *Geophysics*) on sonic–seismic drift; Box & Lowrey (2003, *TLE*) on reconciling sonic with checkshots; Walden & White (1998) on wavelet estimation as a noisy input–output problem; and, for learned property prediction from few wells, Das & Mukerji (2020, *Geophysics*) and the Mustafa/Alfarraj/AlRegib TCN impedance work, since a TCN is used here.
- m8. Fig. 1 legend "DT model" versus text "a second set of model files": name the files/sources so that readers can reproduce the comparison.
- m9. Fig. 13 (F3 volume): strong vertical striping in (a) around crosslines 800–1000 and no lateral coherence; the 27–32 p.u. colour range shows the prediction barely varies. Either comment (per-trace prediction with per-well z-scoring) or drop the figure.
- m10. Table 7: 1/B_b values of 0.132 and "<0.001" are not meaningful (sharpening by exp(+2 pi^2 sigma^2 f^2) at sigma = 4–11 ms amplifies Oracle estimation noise). State that the Berkson bound is undefined at large sigma rather than tabulating it.
- m11. Abstract: "The first comparison failed, and the second was designed after that failure" appears before the comparisons are defined; readers cannot tell which comparison. Reorder.
- m12. Sec. 3.3: give the cube name (ST10010 ... PSDM ... FULL_T) and the header scalar value so the 8 ms fix is reproducible; state the SEG-Y reader used.
- m13. Sec. 3.1: give the mean and standard deviation of PHIE_DT in the window (about 30 p.u. judging from Fig. 13) so that band RMSE of 1.2 p.u. can be put in context.
- m14. Table 2 (positioning): "Reg. eval." is ticked for this work, but on field data no registration-aware evaluation was applied; qualify.
- m15. Sec. 5.5: the TCN selected the smallest budget (125) in every method; extend the candidate set downward or note that the boundary choice suggests over-fitting at the smallest budget.
- m16. Sec. 6.6: the critique of k-of-n gates is correct, but the gates were the authors' own; say so.
- m17. Lemma 5: with NLL cells of order one, lambda = 2/gamma = 20 is effectively the hard minimum; a sentence on how gamma = 0.1 was chosen for B4c would help.
- m18. Sec. 3.2: the OU correlation length of 2 ms is below the 4 ms sampling; say how the field is sampled and anti-aliased.
## 5. Questions to the authors
- Q1. Is the additive noise independent across the nine traces of the 3x3 patch, and does the earth model vary laterally within the patch? What is the effective SNR after patch averaging?
- Q2. What are the F3 "TD markers"? Were they picked individually, or derived from a smooth time–depth curve (the type-II sigma_a = 0.4 ms and leave-one-anchor-out z^2 = 0.21 suggest the latter)? Did you check NLOG for actual checkshot/VSP surveys at these four wells? What explains the F06-1 kink near 1030 ms?
- Q3. What happens on Volve (and F3) with survey-wide rather than per-well normalization of the seismic input, and with a per-well amplitude level retained as a feature?
- Q4. Please give the full specification of B3c (window length, maximum shift, smoothing, monotonicity, anchor honouring). Would an interpreter-style tie (anchors as knots, global phase/bulk scan, interpolated stretch) differ from B3b/B3c in warp RMSE?
- Q5. Where does the cross-spectrum between Oracle predictions and labels sit? Does any method exploit the 40–60 Hz band? If not, how do you reconcile 8–22% gains with sub-percent blur at the frequencies where skill lives?
- Q6. How do the N* values of Table 9 change under a bounded-lag tolerance score or under scoring against the test well's tie posterior?
- Q7. Teapot: the 6.6 ms per-well bulk residual resembles datum/static error. Did you try the survey datum, replacement velocity and elevation information before concluding that the reference cannot reach 1.5 ms?
- Q8. The bank helps most at R10tb, where the posterior is overconfident and Ctl-GP (a Gaussian jitter around the mean warp) matches M2-Sa at c = 1. Would a plain shift-jitter augmentation of the B3c-R labels — the cheapest practitioner option — obtain the same gain? Was it tried?
- Q9. Under the mixed-phase wavelet (wv_L1), would a two-parameter (constant + linear) phase in the SMC restore the posterior coverage and the gain? This determines whether the failure is fundamental or a model-capacity issue in the tie.
- Q10. How sensitive are the H2b results to lambda? The only ablation (lambda = 1 on F3, Table B.5) changes band RMSE by 1%; was lambda varied on the synthetic grid?
## 6. Recommendation
**Major revision.** The theory is sound as far as I checked it, the audits of F3 and Volve are valuable, the benchmark and reproduction packages are a genuine service, and the authors' candour about negative results is exemplary. But the paper's positive evidence comes from a simulator whose nominal cells are an inverse crime, its headline gain is a better tie estimator rather than the marginalization it advertises, its field tests are limited by design choices (model capacity, per-well normalization, an unexplained inversion baseline) that the text attributes only to the data, and its "limits of field validation" are derived for a single scoring rule. All of this can be fixed with reruns on existing data, added baselines/arms, and rewording; none requires new wells.
Confidence: **high** for the data-handling, baseline and field-validation comments (my area); **medium** for the theory, where I checked the main derivations and the numerical constants and found no error but did not verify every step of Appendix A.

View File

@@ -0,0 +1,71 @@
# Referee 1 — Round 2 response (referee discussion)
Manuscript: *Label registration error in sparse-well seismic property learning: theory, a registration-aware benchmark, and the limits of field validation*
I have read the reports of Referee 2 (statistician) and Referee 3 (ML/benchmark/reproducibility) in full and re-checked the passages they quote against the manuscript and the two READMEs.
---
## 1. Points of agreement
**Attribution of the headline H2a gain (R3-M1, R2-M5, my M5, my M1).** All three of us arrived independently at the same core issue: the 8–22% advantage of B3d-Sa over the "best point tie" is mostly present at c = 0, where the only error is anchor noise, so it measures a well-specified Bayesian tie against point ties that treat known-noisy anchors as exact, inside a simulator whose wavelet, rock physics and warp-prior family the registration shares. R3-M1 and R2-M5 strengthen my M5 by naming the missing control precisely: a point tie from the *same* model (MAP/mode warp, or a σ_a-aware GP smoother through the anchors), so that the only difference to B3d-Sa is mean-versus-mode and seismic conditioning. My M1 (inverse crime, anchor-noise model, patch SNR) and R3-M8 are the same complaint about the simulator; R3-M8's request for single-trace versus patch Oracle RMSE and the label's band floor is the right concrete deliverable. One nuance: R3 writes that B3d-Sa "is handed the true warp prior ... hyperparameters"; Sec. 5.1 says the hyperparameters are refitted by type-II MAP on the training anchors, with only σ_a and σ_b fixed. That does not weaken the point (same family, true σ_a, exact wavelet amplitude spectrum), but the authors will object to the wording and the editor should quote it accurately.
**Benchmark packaging (R3-M2).** I endorse this fully and it changes my view of contribution C2. I missed that the README ships the test truth ("Test truth is in the package because the generator is public anyway") while Sec. 8 and C2 say "hidden true warps and labels", and that `analyst.json` hands every submitter the true σ_a, the quantity the paper's own Discussion calls "the main risk". The second half of R3-M2 — σ_a-misspecified and prior-misspecified `analyst.json` variants as first-class settings — is cheap (data unchanged) and directly addresses my M1 request for an anchor-error stress.
**Pre-registration wording (R2-M7(d), R3-Q8, my M7).** Identical issue; R2's request for a single table of timing evidence per protocol is the cleanest fix and I adopt it.
**Rules are thresholds, not tests (R2-M3).** I agree with every sub-point. (a) is the most important: the "better" rule has no margin, and the paper computes null pass rates for the field gates (0.31, 0.11) but not for its own rule, on which S1-H2, S4-H2, S8-H2 and "44 of 52" rest. (b) dependent cells sharing eight realizations and nested well subsets: correct, and it also undermines the Spearman p-values. This is a stronger and better-argued version of my m16.
**The population bound cannot decide anything (R2-M1, R2-M2) and the frequency mismatch (my M6, R3-M5).** These are three views of one problem: the bounds are computed where the f^4-weighted distortion lives (67–72 Hz), nothing has been measured above 23 Hz, the Oracle has little coherent power there, and 1/B_b becomes vacuous (<0.001). R2-M1's "garden of forking paths" description of the 2x2x3 bound variants is fair; R2-m8's observation that the Berkson covariance test is a test of posterior-mean shrinkage that is expected by construction is a sharp point I had not made. R3-M5's direct S8-style Berkson experiment is the right way to turn the inference into a measurement; R2's demotion of the bound paragraph is the minimum if the authors decline.
**Ctl-GP should be promoted (R3-M6).** This coincides with my Q8 (plain shift-jitter augmentation). For a practitioner it is the most useful empirical result: a Gaussian bank with the posterior's mean and covariance matches the SMC bank at c = 1 and ties B3d-Sa, so "use any reasonable bank; particles only matter at extreme drift". It is currently buried under the "as run / as worded" discussion of S3-H1.
**Budgets (R3-M4).** I had only the TCN boundary (m15); R3's broader point that dev-selected budgets were shown wrong for the candidate and never checked for the competitors is right, and the budget-sensitivity table can be built from saved trajectories.
**H1 power (R2-M4).** Correct and I missed it: on 6.8–22.5 Hz, a network that learned no blur at all would give r ≈ 1.06 at 4 ms and ≈ 1.2 at 8 ms, inside the registered [0.5, 2]. The "within 1%" in the abstract is a post hoc description of a point estimate on a band where the prediction is near unity.
**Smaller agreements.** R2-M6 (four senses of "calibrated"; BK2 "contains the truth" is not calibration), R2-m2 (Cor. 3 proof: the sentence "Q has no zero inside the band" is at best ambiguous — it is true only for the open reversal interval — and the incompatibility of two-mode Berkson error with a generic oracle should be stated), R2-m13 (the Exp. 1 bank was 4–6% worse than its own mean at c = 0; the one place an uncalibrated bank did harm), R3-m4 (B3c-R borrows the candidate's SMC phase and cannot be run without it), R3-m21 (licence incompatibility of the combined F3+Volve tables must be settled), R2-m4 (shared horizon mis-picks are not reduced by sqrt(sum K_w); this is the correlated-anchor-error point of my M1). R3-m1, R2-m5, R3-m6/R2-m6, R3-m7 duplicate my m1, m5, m4 and the c = 0 clarification.
## 2. Points of disagreement or pushback
**R3-M2 option (a): a scoring service or sealed-truth archive.** Out of scope for a journal paper and not needed. The generator is public and deterministic, so truth cannot be "hidden" from anyone who wants it; a held-out seed set would be security by obscurity. Option (b) — drop "hidden truth" throughout, call it a controlled synthetic study with public truth and a reference scorer — is sufficient and honest. The editor should require (b) plus the σ_a-misspecified analyst variants, not (a).
**R2-M6(b): the G-C coverage clause "guaranteed the gate's failure independently of the accuracy condition".** Overstated. The gate failed on its accuracy clause as well (1/4 wells, Table B.3), and the authors say so. The coverage clause was a poor design and should be named one, but the sentence implying the field verdict was pre-determined by it is not supported by the table. Reword, do not reframe.
**R2-M5 / R2-M1 on the title and "registration-aware".** The benchmark *is* registration-aware (true warps known, labels scored in true time); the mis-attribution is in H2a, not in the title. I would not ask the authors to change the title on this ground.
**R3-M3, the scope of the fresh-realization rerun.** I support rerunning on fresh realizations (see item 3 below), but not R3's implication that all of Exp. 3 is contaminated. S2-H1 per axis, S4-H1 and S8-H1 were genuinely new predictions on cells that had not been trained before; S1-H1 and S3-H1 were near-certain extensions. The honest fix is R3's own suggestion of labelling each verdict as extension / non-inferiority / new prediction; the fresh-realization run is then needed mainly for the three new predictions and the S2 failures.
**R2-M3(e) on the bootstrap.** Valid, but no pass/fail decision in the paper is made from an interval; the counting rules decide. This is a presentation fix (state the bootstrap type, add a small-n caveat), not a decision-relevant flaw, and the editor should not let it compete for the authors' effort with items 1–4 below.
**What both other referees under-weight: the field tests.** Neither R2 nor R3 engages with *how* the field tests were run. From the practitioner side this is where the paper's negative results are most exposed to the charge of blaming the data: per-well z-scoring of the input removes the amplitude level that carries between-well porosity on Volve, which is exactly the error component that dominated; a 64-channel CNN–BiGRU is trained on two wells in the F3 nested design while ridge regression on attributes had the best band PCC; and the model-based inversion baseline B1 has negative in-band correlation with a label that is a deterministic function of impedance-controlling logs, with no details given. These are design choices, not data limits. The "limits of field validation" conclusion is likewise derived for one scoring rule (band RMSE at 6 Hz against a point reference) although the authors themselves cite tolerance-aware metrics and even score F3 against 64 posterior warps in App. B. I maintain my M3 and M4 as decision-relevant, and note that both can be addressed with reruns on existing data.
## 3. Issues I missed that the others caught
- **R3-M2 (truth not hidden; analyst.json gives true σ_a).** Decision-relevant: it concerns the C2 contribution as advertised.
- **R2-M3(a)–(b) (null pass rate of "better"; dependent cells).** Decision-relevant: the counts in the abstract rest on it; the fix is cheap (permutation within realization x seed).
- **R2-M4 (H1 has no power at 4–8 ms).** Relevant to the abstract wording only; reword.
- **R2-M1/M2 (bound used as test; "fourth order" outside its regime).** I had the frequency mismatch (M6) and the vacuous 1/B_b (m10), but R2 shows the bound paragraph should be demoted entirely. Relevant to abstract, Sec. 6.3, 7 and 8.
- **R3-M4 (budget confounding across all methods).** Fair-baseline issue; relevant because the benchmark reference table depends on it.
- **R3-M6 (Ctl-GP buried; as-run count never shown beside the as-worded count).** Relevant to what practitioners take away.
- **R2-m2, R2-m8, R2-m13, R3-m4, R3-m21.** Technical/editorial; not decision-relevant individually but should be fixed.
## 4. Consolidated top-5 requirements for acceptance (priority order)
1. **Fix the attribution and competitor set of H2a** (R3-M1, R2-M5, my M1/M5, R3-M4). Add a σ_a-aware point tie from the same anchor+seismic model (MAP/mode warp) and fully specify B3c/B3c-R; add a budget-sensitivity table from the saved 125/250/500 trajectories; rewrite the abstract to separate the c = 0 effect (a seismic-conditioned, σ_a-aware tie beats anchor-exact point ties) from the registration effect (c = 0 to c = 1: 0–7%); state that the nominal cells share the generator's wavelet, rock physics, prior family and σ_a. — *new short synthetic runs on the existing generator + rerun on existing data + reword.*
2. **Make the benchmark what it says it is** (R3-M2, R3-M8, my M1/Q1). Drop "hidden truth" or seal it (option (b) suffices); add σ_a-misspecified and prior-misspecified `analyst.json` variants as settings; document the lateral earth model and noise correlation across the 3x3 patch and report single-trace versus patch Oracle RMSE and the label's band floor. — *reword + cheap new setting on existing data.*
3. **Put the inference on an honest footing** (R2-M3, R2-M1, R2-M2, R2-M4, R3-M3). Report null pass probabilities of "improves" and "better" by permutation within realization x seed and per-realization summaries for the 44/52, 13/13, 91/100 counts; remove "9 of 11", "fourth order" and "within 1%" from the abstract or qualify them (frequency range; regime); demote the population-bound comparison to a descriptive post hoc paragraph with the registered variant only in the main text; label each Exp. 3 verdict as extension / non-inferiority / new prediction and, if feasible, rerun S2-H1, S4 and S8 on realizations generated after the lock. — *rerun on existing data + reword; the fresh-realization run is a new synthetic experiment (about 12 GPU-hours) and is strongly recommended rather than required.*
4. **Stop attributing the field failures only to the data** (my M3, M4). Report a survey-wide-normalization arm on Volve and F3 and carry the tie comparison through a capacity-matched model (ridge/B0b or a small 1-D CNN) on F3; describe B1 and correct it or explain its negative band PCC; rerun T3 with at least one tolerance or posterior-marginalized scoring rule and rephrase "limits of field validation" (title, abstract, Sec. 7–8) to the limits under point-reference band scoring on the public datasets examined. — *rerun on existing data + reword.*
5. **Wording of pre-registration and promotion of the practical result** (my M7, R2-M7, R3-Q8; R3-M6; R2-M6). Replace "pre-registered" by "hash-locked, self-timestamped" in abstract and highlights and add one table of timing evidence per protocol; show the as-run count beside the as-worded count wherever one appears; promote the Ctl-GP finding to the abstract and the "when to use a bank" paragraph; use "posterior-exact bank" / "contains the true warp" instead of "calibrated". — *reword only.*
Items 1–3 are the ones that determine whether the empirical core is trustworthy as a benchmark result; item 4 is what determines whether practitioners will trust the field conclusions; item 5 is presentation but the abstract currently depends on it.
## 5. Updated recommendation
**Major revision** (unchanged). Confidence **high** on items 1, 2 and 4 (practitioner and data-handling side) and **medium-to-high** on item 3, where I defer to R2 on the statistical detail but checked the arithmetic of the examples they give.
What changed after reading the other reports: the convergence of three independent readings on the H2a attribution moves it from one of my concerns to the single most important requirement, and R3-M2 lowers my assessment of the C2 contribution as currently packaged (a public-truth controlled study with a reference scorer, not a hidden-truth benchmark). R2's analysis of the rules and the bounds removes any temptation to read the "9 of 11" count or the Berkson-bound paragraph as evidence of mechanism. None of this pushes me toward rejection: every required item is a rerun on existing data, a short synthetic run, or rewording, and the paper's audits, reproducibility practice and candour remain real contributions that C&G should want once the claims are brought into line with the evidence. I would not accept a revision that only rewords item 1 without adding the same-model point tie, or that keeps "hidden truth".

View File

@@ -0,0 +1,170 @@
# Referee 2 report (round 1)
Manuscript: *Label registration error in sparse-well seismic property learning: theory, a registration-aware benchmark, and the limits of field validation*
Journal: Computers & Geosciences
Referee persona: statistician (measurement-error models, Bayesian inverse problems, UQ; experience with pre-registered studies)
---
## 1. Summary and claimed contributions
The paper treats the error of a well tie as an error in the *time index* of a training label rather than in its value, and asks what this does to a seismic-to-porosity regressor and to its evaluation. Theoretically (Sec. 4, App. A) it shows: (i) under an independence assumption the MSE-optimal predictor trained on misregistered labels is the oracle predictor convolved with the error distribution, so the seismic band is attenuated by the error's characteristic function (Prop. 1, Cor. 1-2); (ii) without time anchors a joint MAP objective over network and warps has a flat direction along a common shift (Prop. 2); (iii) a tie estimated from the data can have classical structure (blur) or Berkson structure (sharpening) in the time index, a posterior-mean tie being the natural Berkson case (Prop. 3); (iv) a bank of labels that represents the posterior exactly recovers the population optimum of the true labels, and the population gain over a point label is fourth order in the error (Prop. 4, Eq. rhostar); (v) a dispersion-ratio/coverage statement (Prop. 5); (vi) scoring against a misregistered reference biases band MSE by a method-dependent term, giving a tolerance condition $\sigma_r < \sigma/\sqrt2$ (Prop. 6, Cor. 4); and (vii) a two-mode error reverses the sign of the learned band in a predicted frequency interval (Cor. 3). A tempered log-likelihood over a bank of labels (RML$_\lambda$) is shown to contain point-tie NLL, hard/soft-min shift losses and soft-DTW as special cases (Lemmas 1-5). Empirically, on a synthetic benchmark built from F3 statistics with known true warps, three hash-locked experiments are reported: Exp. 1 failed its gate; Exp. 2 (new SMC tie posterior, new realizations) passed H2a (posterior-mean labels beat the best point tie by 8-22% in band RMSE) and H2b (bank gains further when the posterior is wide); Exp. 3 (100-cell plane, misspecification, anchor-free losses, second backbone, two-mode error) passed 9 of 11 verdicts, failing under unit-dependent rock physics and frequency-dependent wavelet phase. Exploratory analyses address the mechanism of the bank gain (Berkson structure found at $c=1$; a Gaussian control bank gets most of the gain) and the number of blind wells needed at a given reference error. Field tests on F3 (4 wells) and Volve (6 wells) failed their gates and are argued to have had no power; a Teapot Dome inventory found at most two wells with an independent time-depth reference. A task package with hidden truth and a scorer, and a clean-room reproduction package, are released.
Claimed contributions (C1-C4): the theory; the benchmark and locked rules; the RML family as a unifying description of baselines; and the detectability/scope analysis.
## 2. Significance and fit
The subject fits *Computers & Geosciences* well: a computational method question in applied geophysics, a released benchmark with a scorer, locked protocols, and a reproduction package. The conceptual move, carrying the classical/Berkson distinction to the time index of a label and deriving the resulting blur/sharpening of the learned predictor, is new in this literature as far as I can tell, and the paper is unusually honest about failed gates, deviations and post hoc analyses. The audit of the F3 porosity label (an exact linear transform of sonic slowness at three wells) is a useful public-service finding on its own.
Genuine strengths:
- Every proposition states its assumptions; I checked each proof in Appendix A and found the arguments correct under the stated assumptions (the few gaps are listed below and are repairable).
- Prop. 1 and Cor. 3 are actually tested, quantitatively, and the agreement (Fig. 2; Fig. 8, S8-H1) is convincing.
- Prop. 6 / Cor. 4 are correct, practical and well connected to the detectability analysis.
- Failures are reported as they stand; Exp. 2 is correctly labelled a deviation; both readings of the Exp. 3 verdict code are given.
- The benchmark and reproduction packages are well documented (benchmark/README.md, repro/README.md).
Weaknesses that determine my recommendation concern the inferential status of the pre-registered rules, the use made of the population bound, the applicability of the "fourth order" headline in the paper's own regime, the strength of the H1 verification as a *test*, and the looseness of some theory-experiment links. None of these invalidates the core results, but as written the paper overstates what the registered rules and the bounds establish.
## 3. Major comments
### M1. The population bound $\rho^\star$ (Eq. rhostar; Table h2b; Sec. 6.3 "Comparison with the population bound"; Sec. 7) is used as if it were a test, but it cannot decide anything, and its reported value depends on several unregistered choices.
*Passage.* Sec. 4.3: "no method can improve on the point label by more than this factor". Sec. 6.3: "The measured ratio is below [1/B_a] in 7 of the 8 wide cells ... below [1/B_b] in 3 of the 8 ... at the measured warp error ... in at most one". Abstract and Sec. 7 give the Berkson-bound reading as the headline.
*Problem.* (a) $\rho^\star$ is a population quantity for a point-label method that has converged to $\tilde m$ and a bank method that has converged to $m$. The networks are finite-sample estimates trained for 250 iterations on 4-16 wells with $\lambda = 0.37$ (effective bank size 3.5-28 of 64, Sec. 6.4(i)), i.e. far from the $\lambda \to 0$ regime where Prop. 4 applies. The paper itself says finite-sample effects "can outweigh the population bias". Then an observed ratio below the bound falsifies nothing, and a ratio above it confirms nothing. The registered bound is exceeded in 7/8 cells; the post hoc Berkson bound in 3/8 at $\sigma_{\rm post}$ and in $\le 1/8$ at the warp error; the Oracle-vs-PM ratios are below the (b) bound in "three or four ... depending on the estimator". No inference follows from any of these counts, yet the Discussion says "the bank gain is therefore no larger than removing a population sharpening ... could give". That sentence is not supported: Ctl-GP (a bank with no member linked to the seismic) obtains the same gain at $c=1$ (Sec. 6.4(ii)), which is a finite-sample augmentation effect that the bound does not describe at all.
(b) The bound has at least $2 \times 2 \times 3$ variants (structure (a)/(b); $\sigma = \sigma_{\rm post}$ or measured warp RMSE; base/60 Hz-capped/cross-spectrum estimator), of which only one was registered, and the paper reports whichever subset supports the paragraph in hand. This is a garden of forking paths around a post hoc quantity, placed next to a pre-registered result.
(c) The (b) bound is vacuous where the posterior is wide: $1/B_b < 0.001$ at R10tb, $c=2$, and 0.13-0.29 at the other $c=2$ cells (Table h2b), because $|Q|^{-2} = e^{4\pi^2\sigma^2 f^2}$ explodes at the frequencies (67-72 Hz) where the $f^4$-weighted distortion lives and where the Oracle's predictions are mostly estimation noise (only 27-29% of coherent band power lies above 25 Hz). A bound that says "a factor of 1000 is allowed" is not a bound.
*Why it matters.* The abstract, Sec. 6.3, Sec. 7 and the Conclusions all lean on the Berkson-bound reading to characterize the bank gain. Readers will take "within the population bound" as a mechanistic explanation; the paper's own control experiment says otherwise.
*Resolution.* Demote the bound comparison to a descriptive, clearly post hoc paragraph; state explicitly that neither bound constrains finite-sample gains, so no count of cells "below" or "above" is evidence for or against a mechanism; report the registered variant ($1/B_a$ at $\sigma_{\rm post}$) in the table and move the other variants to supplementary material with all 8 cells for each; remove from the abstract, Discussion and Conclusion any sentence that attributes the gain to "removing the population sharpening" (or make it a hypothesis). The honest summary is already in the paper: "an empirical regularity ... whose source is not identified".
### M2. The "fourth-order" headline is an asymptotic statement that does not hold in the paper's own regime.
*Passage.* Abstract: "its population gain over a point label is of fourth order in the tie error"; highlight 3; C1; Sec. 4.3; Conclusions.
*Problem.* The fourth-order statement is the leading term of $(1-e^{-x})^2$ and $(e^{x}-1)^2$ with $x = 2\pi^2\sigma^2 f^2$. The paper then shows that the $f^4$-weighted distortion is concentrated at 67-72 Hz, where at $\sigma = 2.5$ ms $x \approx 0.6$, and that the two integrands differ by factors of 1.5-4.6 at $\sigma = 1.5$-2.5 ms. When the two "fourth-order" bounds differ by a factor of 4, the leading term is not the term that matters. The headline therefore describes a regime ($\sigma f \ll 0.2$) that the experiments do not occupy, and the vacuous (b) values in Table h2b (M1c) are the visible consequence.
*Resolution.* State the result as "the population distortion vanishes to third order in $\sigma$ and is $O(\sigma^4)$ for $\sigma f \ll 1$; at F3-like posterior widths and the frequencies where the distortion lives, the leading-order term is not dominant and the classical and Berkson bounds differ by up to a factor of 4". Remove "fourth order" from the abstract and highlights, or qualify it there.
### M3. The pre-registered rules are deterministic thresholds, not tests; their null pass rates, the dependence across cells, and the small-sample bootstrap intervals are not addressed, so counts such as "9 of 11", "13/13", "44 of 52", "91 of 100" overstate the evidence.
*Passages.* Sec. 6 (rule "improves", rule "better"); Sec. 6.3 H2b (b) "Spearman ... is negative", "one-sided permutation $p < 0.001$"; Sec. 6.5 S1-H2 "pooled Spearman ... one-sided permutation within families, $p < 10^{-4}$", "$\rho = -0.66$ over the 100 cells"; S2-H2; Table benchverdicts "No family-wise correction"; all "95% bootstrap CI over realizations (2000 resamples)".
*Problems.*
(a) The rule "better" has no margin: lower band RMSE in $\ge 4/5$ seeds and $> 4/8$ realizations. Under no true difference and independence, $P(\ge 4/5) = 6/32 = 0.19$ and $P(\ge 5/8) = 93/256 = 0.36$; the joint null pass rate is of order 0.1-0.2. The paper computes exactly this quantity for the field gates (0.31 and 0.11, Sec. 6.6-6.7) and uses it to call them "not a test", but does not compute it for its own "better" rule, on which S1-H2, S2-H2 (partly), S4-H2, S8-H2 and the "44 of 52 wide cells" claim rest.
(b) All 100 S1 cells share the same 8 realizations, the same SMC particles and *nested* training subsets ($N = 2 \subset 4 \subset 8 \subset 16$). Cells are therefore strongly dependent, and "91 of 100", "13/13 families", and Spearman correlations "over the 100 cells" or "over all cells at $N = 16$" with permutation $p$-values treat dependent units as exchangeable. The $p$-values are not interpretable as stated.
(c) H2b criterion (b) ("the Spearman correlation ... is negative") has no magnitude or significance threshold: any negative sign passes. It should be reported as what it is.
(d) S2-H2 passes "$\le 1.02$ for all 14" with tabulated values of 1.020 (wv_L1) and 1.019 (wv_Q) at R10 (Table s2). A pass at the fourth decimal of a point estimate with no interval is a coin toss; a non-inferiority rule should bind on the upper confidence limit.
(e) Every 95% interval in the paper is a bootstrap over 8 realizations. With $n = 8$ the percentile bootstrap undercovers substantially; the type of bootstrap is not stated. Intervals such as [0.956, 0.979] (R0, $c=1$) look far more precise than 8 units can support, and several conclusions ("one with its interval clear of the bound") hinge on them.
(f) "No family-wise correction" is stated, but since the rules are not tests there is no error rate to correct. The paper should say what the multiplicity consists of (11 verdicts, several with OR-clauses, on dependent cells) and refrain from summing passes as if they were independent confirmations.
*Resolution.* Report the null pass probability of "improves" and "better" (by simulation under permuted method labels within realization x seed, which also respects the dependence); replace the counts over dependent cells by per-realization summaries (e.g. for each of the 8 realizations, the fraction of cells in which the direction holds) or by a mixed model with realization as a random effect; state the bootstrap type and add a sentence on its small-$n$ behaviour, or use a method with known small-sample properties (e.g. a paired $t$ on log-ratios over 8 realizations, which is at least honest about $n$); give S2-H2 to three decimals with an interval and say that two presets sit on the boundary; and rewrite "9 of 11 verdicts passed" so that the reader knows what a pass means.
### M4. The verification of Proposition 1 (H1) is presented as a 1% match, but the registered test could not have rejected "no blur" at $\sigma = 4$ or 8 ms.
*Passage.* Sec. 4.1 "Verification (H1)": "The hypothesis is rejected if $r \notin [0.5, 2]$"; abstract: "matched the predicted transfer to within 1% for errors of 4-16 ms".
*Problem.* Over the retained frequencies (6.8-22.5 Hz), $P_\sigma$ ranges 0.996-0.88 at $\sigma = 4$ ms and 0.99-0.60 at 8 ms. A network that learned *no* blur at all ($\hat H = 1$) would give $r \approx 1.06$ at 4 ms and roughly 1.2 at 8 ms, both well inside [0.5, 2]. The registered test therefore has no power against the most relevant alternative at the two smallest $\sigma$; it only bites at 16 and 32 ms. The "1%" is a post hoc description of the point estimate, and at 4 ms a 1% agreement in a band where the prediction is within 12% of unity is not strong evidence. At 32 ms the interval excludes 1 (9% weaker attenuation than predicted) on 4 frequencies; the authors say they have not identified the cause.
*Resolution.* Say in Sec. 4.1 and in the abstract that the registered tolerance was wide, give the $r$ that $\hat H \equiv 1$ would produce at each $\sigma$ (so the reader sees where the test has power), and describe the 1% agreement as a post hoc observation restricted to 7-23 Hz. Consider also reporting the frequency-wise discrepancy rather than only its geometric mean.
### M5. H2a is largely a tie-quality comparison, not a test of using registration uncertainty; the competitor set omits the point estimate of the same tie model.
*Passage.* Sec. 6.3, H2a: "At $c = 0$ the macro ratios are 0.81, 0.85 and 0.88, against 0.78-0.92 at $c = 1$. Part of the advantage therefore comes from the seismic-conditioned, phase-estimated tie itself, not from correcting drift."
*Problem.* At $c = 0$ the true warp is exact sonic integration; the point-tie competitors B3b/B3c are forced through anchors carrying $\N(0, 7^2)$ ms noise, whereas the SMC tie treats the anchors as noisy and uses the seismic likelihood with a re-estimated phase. The 12-19% gain at $c = 0$ is then the gain of a better registration model over a cruder one, and the "registration-aware" framing (title, C2) attaches to it only loosely. The registered zero-drift guard ("$\le 1.02$") was designed to detect harm at $c = 0$, not to attribute the gain to drift, so the design cannot separate "better tie model" from "posterior rather than point". The natural control, a MAP/posterior-mode point tie from the *same* SMC machinery, is absent. B3c-R (correlation tie with the SMC phase) is the closest competitor but is not the same model. Only H2b (bank vs. mean of the same posterior) isolates the role of uncertainty, and that gain is 2-11% at $c = 1$.
*Resolution.* State clearly in the abstract, Sec. 6.3 and Sec. 7 that H2a compares registration models and that the uncertainty-specific effect is H2b; if feasible, add the SMC MAP point tie as a disclosed (non-registered) competitor in the released reference table; and reconsider whether the title's "registration-aware" is the right description for the H2a result.
### M6. "Coverage" and "calibration" are used in four different senses, and gate G-C registered a coverage condition that the authors themselves describe as "a description, not a test" and had predicted would fail.
*Passages.* Prop. 4 ("Call a bank calibrated if ..."); Sec. 5.3 ("the posterior is miscalibrated", warp coverage); Sec. 6.3 ("calibration error", coverage of predictive intervals, $\xi$); Sec. 6.5 ("The protocol calls BK2 calibrated; it is calibrated only in the weaker sense that the truth is a member"); App. B G-C: "Coverage is the fraction of time samples ... These samples are strongly correlated, so coverage is a description, not a test. The protocol also states that better accuracy cannot compensate for failed coverage. Before the run we had recorded that the coverage condition would probably fail ... We kept the threshold."
*Problems.* (a) A bank that "contains the truth" is not calibrated in any accepted sense; the protocol's wording should simply be reported as a misnomer, not defended with "a weaker sense". The Prop. 4 definition (exact posterior representation for all integrable $G$) is "the bank *is* the posterior"; calling it "calibrated" invites confusion with interval coverage, which is what the rest of the paper means. (b) A gate condition acknowledged not to be a test, on 4 wells x 126 autocorrelated samples with a $\pm 0.05$ window that even a perfectly calibrated predictor would fail with substantial probability, and predicted to fail before the run, is not a coherent pre-registration: it guaranteed the gate's failure independently of the accuracy condition. Since the field cases are scope-bounding only, this does not change conclusions, but it should be stated as a design error rather than as a stringent gate. (c) Prop. 5(b)-(c) are "untested" (Limitations); the Table t4 analysis is post hoc and confounded with training length. Prop. 5 therefore decorates the coverage results rather than explaining them; this should be said where Prop. 5 is introduced, not only in the limitations.
*Resolution.* Use "posterior-exact bank" (or "exact bank") in Prop. 4 and reserve "calibrated/coverage" for intervals; say "contains the true warp" for BK2 throughout; in App. B, name the coverage clause of G-C a design error and explain that the gate was decided by the accuracy clause; in Sec. 4.4, add one sentence that parts (b)-(c) are not tested in this paper.
### M7. Several theory-experiment links are asserted as predictions when they are at most consistency checks; the label "pre-registered" needs qualification.
*Passages.* Sec. 6.1 "This is what Proposition 2 predicts" (B4a-B4d worse than B3b); Sec. 6.6 (crossings 3.6-4.3 ms "lie within 1 ms" of $\sigma/\sqrt2$); Sec. 6.5 (S1 regression $\mathrm{RMSE}^2 = \mathrm{RMSE}^2_{\rm Oracle} + \beta \sigma_{\rm post}^2$ "is the second-order dependence of the finite-sample heuristic"); abstract and Sec. 6 ("pre-registered"; "A third pre-registered experiment").
*Problems.* (a) Prop. 2 proves a flat direction of a joint MAP objective under (B). It does not predict that shift-bank losses are 38-53% worse than the label they start from (that is a finite-sample "fits noise" argument, not in the proposition), nor does it predict that soft-DTW/DILATE are 4-6% *better* than B3b at $N = 16$, nor the F3 outcome where all four B4 losses had the lowest band RMSE of any network (Table f3all). "Predicts" should become "is consistent with the non-identifiability of". (b) Cor. 4 gives $\sigma_r < \sigma/\sqrt2$ as *necessary* for $H = 1$ and says shrinkage relaxes it; any simulated crossing above or below $\sigma/\sqrt2$ is then compatible with the corollary, so "within 1 ms" is not a test. The paragraph already lists why the agreement can only be approximate; it should not open by presenting it as agreement. (c) The $\beta\sigma_{\rm post}^2$ fit with $R^2 = 0.29$-0.61 on dependent cells is a descriptive regression. (d) On pre-registration: Exp. 1's protocol was committed after the run; Exp. 3's during the runs, after post hoc analyses on the same test realizations had been inspected and with predictions formed accordingly; the field protocols after their runs; in each case the only timing evidence is a self-reported time stamp inside the lock. The paper discloses all of this in the body, but the abstract says "pre-registered" three times without qualification. For a reader who evaluates pre-registered work, "hash-locked before the run, self-timestamped, committed afterwards" is materially different from pre-registration with an external record.
*Resolution.* Soften the three "predicts/agrees" passages as indicated; in the abstract write "hash-locked (pre-specified) rules" and say that Exp. 3 reuses the test realizations of Exp. 2; in Sec. 6 add a short table of what evidence of timing exists for each protocol (lock time stamp, commit, tag) so that the reader does not have to assemble it from four places.
## 4. Minor comments
m1. Prop. 1 / App. A.1: $m(t) = \E[y(t)\mid X]$ is a random function; "the Fourier transform of $m(\cdot + d)$" and "frequency response" should be stated via the spectral representation of a second-order stationary process (or for $m \in L^2$ path-wise), consistent with the "Spectral statements assume second-order stationarity" remark. A one-line qualification suffices.
m2. Cor. 3 proof (App. A.6): "Q has no zero inside the band" is false for $Q = \cos(\pi f\Delta)$, which vanishes at $f = (2k+1)/(2\Delta)$; for $\Delta = 32$ ms these are 15.6 and 46.9 Hz, inside the seismic band. As the proof then notes, under structure (b) the identity $\hat m = Q\,\hat{\tilde m}$ forces $\hat m = 0$ at those zeros, i.e. a two-mode *Berkson* error is incompatible with a generic oracle. Restrict the corollary's (b) clause to the open reversal interval and state the incompatibility, or drop (b) from Cor. 3 (S8 tests only (a)).
m3. Prop. 2: "up to window-edge effects" is not negligible for the B4 losses: with 64-sample windows and shifts of $\pm 8$ samples, up to 12.5% of each window is edge. Quantify or add the caveat where Prop. 2 is applied to B4a-B4d.
m4. Prop. 2(c): the curvature $\sum_w K_w/\sigma_a^2$ assumes independent anchor errors across wells. On F3 the anchors are horizon-tie picks on the same volume; a horizon mis-pick is a shared error that adds to the common shift and is not reduced by $\sqrt{\sum K_w}$. Worth one sentence, since it bears on C4.
m5. Sec. 3.1 says each well has 9-11 anchors in the target window; the Prop. 2 example uses "4 wells of 16 anchors" (presumably the extended window). Make the example consistent or say which window.
m6. Notation overload: $P$ is the characteristic function and the number of SMC particles ($P = 1024$); $B$ is the band operator and the bound $B_a, B_b$; $S$ is a power spectrum and the bank size; $H$ is the shrinkage filter in Cor. 4 and $\hat H$ the measured transfer; $\kappa$ is the PCC factor in Cor. 1 and the variance inflation in Sec. 5.2. Rename at least $P$ (particles) and $B_a/B_b$.
m7. Fig. 4(b) (p2r_h2b): the x-axis label reads $1/B(\sigma_{\rm post})$ without the subscript $a$; the caption and Table h2b use $1/B_a$.
m8. Sec. 6.4(iv): "each 95% interval containing 0" does not establish zero correlation (Berkson); it fails to reject it. Since the classical prediction ($\Cov(\hat b - b^\star, b^\star) = 0$) is rejected ($-0.44$ to $-0.77$) while the Berkson prediction is not, say "classical rejected, Berkson not rejected", and give an equivalence margin for the pooled estimate ($-0.026$ [$-0.124$, 0.072]). Note also that for a shrinkage estimator $\hat b = \kappa b^\star + e$ the two covariances are $(\kappa - 1)\Var b^\star$ and $\kappa(1-\kappa)\Var b^\star - \Var e$, so the test is really a test of posterior-mean shrinkage, which is expected by construction.
m9. Table t3: ICC = 0.00 in three cells is an estimate at the boundary; say so, since $N^\star = 5$ depends on it.
m10. Sec. 6.3, Predictive uncertainty: the Gaussian formula $2\Phi(z\sqrt\xi) - 1$ gives 0.53 for the Oracle ($\xi = 0.189$) and 0.82 for B5 ($\xi = 0.662$) against observed 0.48 and 0.79; a sentence noting that the formula is only approximately satisfied would help the reader of Prop. 5.
m11. Sec. 4.3, "no method can improve on the point label by more than this factor": add "in population, if the point-label method converges to $\tilde m$ and the other to $m$"; as written it reads as a finite-sample statement (see M1).
m12. Table positioning: "Reg. eval." is checked for this work, but the field evaluations score against marker-calibrated sonic ties with unknown error (App. B). The checkmark holds for the synthetic scoring in true time and for Prop. 6; qualify it.
m13. Exp. 1 zero-drift guard: M2 was 4-6% *worse* than B3d (the mean warp of the same bank) at $c = 0$ (Fig. 3a, bottom row). That the bank hurt relative to its own mean when nothing needed correcting deserves a sentence; it is the one place where an (uncalibrated) bank did harm.
m14. Sec. 6, first paragraph: "Test labels were never used to choose a shift, checkpoint or hyperparameter" — but the "best competitor" in the cell rule is chosen by its test band RMSE. This is conservative for the candidate and fine, but say so explicitly to avoid an apparent contradiction.
m15. Sec. 5.2: the tempering $\gamma = 1/\kappa$ "variance inflation implied by the residual autocorrelation at the best anchor-only sample" and Sec. 5.5 $\lambda = 1/\tau_c$ are two separate heuristics for the same autocorrelation problem; a sentence relating them would help.
m16. Prop. 3 statement: the conditions after the enumerate ("If $p_t$ and $q_t$ do not depend on $t$ ..."; "If they depend on neither $t$ nor $X$ ...") apply to (a) and (b) separately; write them as two sentences, one per structure.
m17. Cor. 1: $\kappa(P)$ can be negative (Re $P < 0$), which is the two-mode case; the inequality $\kappa \le 1$ is correct but a reader may expect $0 \le \kappa$. One clause.
m18. Sec. 4.3, "Finite samples": "its conditional mean given $X$ vanishes" holds for $\delta y'$ only if $\delta$ is independent of $(X, y')$; under (b) $\varepsilon\tilde y'$ needs the analogous condition. State it.
m19. Table h1 / Fig. 2: the CI at 32 ms, [1.046, 1.143], excludes 1 on 4 frequencies (6.8-10 Hz). Since the P$\ge$0.1 rule discards most of the band at 32 ms, state the number of frequencies in the text as well as in the figure.
m20. App. B, G-C: Table f3gc caption notes identical coverage counts at F03-2 and F03-4 "by coincidence"; fine, but also note that the 80% and 90% columns at those wells (0.746/0.802) differ from each other by only 7 samples, which illustrates how little resolution 126 correlated samples give.
m21. Bibliography: Balakrishnan (1962) is cited for the spectral effect of sampling jitter; the citation is appropriate but please confirm the claim against the paper itself. Pauli et al. (2011) and Ribatet et al. (2012) are correctly cited for the magnitude adjustment of composite likelihoods; Berkson (1950), Fuller (1987), Carroll et al. (2006) are the right sources. Mnih & Hinton (2012) is well used. I found no misattributed citation.
m22. Highlights 2 and 3 state the Berkson sharpening and the calibrated-bank result as facts; both are population statements under a linear-Gaussian idealization, with the Berkson structure "found" only by the exploratory bulk-offset test. Hedge ("in a linear-Gaussian idealization", "in population").
m23. Eq. (rml) and Lemma 5: with $\gamma = 0.1$, $\lambda = 2/\gamma = 20$ depends on $D_{ij}$ being a per-sample NLL; say "with the cost scaled as a per-sample NLL".
## 5. Questions to the authors
Q1. What is the null pass probability of the rules "improves" and "better" under no true difference, estimated by permuting method labels within realization x seed, and how many of the 44/52, 13/13 and 16/30 counts survive a per-realization summary?
Q2. Why was the posterior mode (or MAP) of the SMC tie not among the point-tie competitors of H2a? Can you report H2a against it, at least as a disclosed addition in the reference table of the benchmark?
Q3. For the H1 test, what value of $r(\sigma)$ would a network with no blur ($\hat H \equiv 1$) have produced on the retained frequencies at $\sigma = 4, 8, 16, 32$ ms?
Q4. Which bootstrap (percentile, basic, BCa) produced the 95% intervals, and have you checked its coverage with 8 realizations (e.g. by subsampling development runs)?
Q5. In the T2 declaration, which variant of the Berkson bound (at $\sigma_{\rm post}$ vs. warp error; base vs. 60 Hz vs. cross-spectrum) was named as primary before computing? Please give all eight cells for each variant in a supplementary table.
Q6. In S8, what fraction of training windows assigns responsibility $> 0.5$ to the true member at the end of BK2 training, in each $\Delta$ and regime? This would turn the "re-registration" reading of the 0.92-1.00 transfer into a measurement.
Q7. In Exp. 1 the bank M2 was 4-6% worse than its own mean warp B3d at $c = 0$. How do you read this against Prop. 4 and Remark 1?
Q8. For S2-H2, what are the unrounded $\mathrm{M2\text{-}Sa}/\mathrm{B3d\text{-}Sa}$ values and intervals at wv_L1 and wv_Q (R10), and would the verdict change if the rule bound on the upper confidence limit?
Q9. Can the lock time stamps of Exp. 1, Exp. 3 and the field protocols be corroborated by any record outside the lock file (CI log, file-system metadata, an archived hash)?
Q10. Prop. 2(c): on F3, are the marker-horizon pick errors correlated across wells (shared horizon interpretation)? If so, what is the implied common-shift uncertainty?
## 6. Recommendation
**Major revision.** The theory is correctly proved under its assumptions and two parts of it (blur; two-mode reversal) are convincingly tested; the benchmark, the audit and the honesty about failures are real contributions. But the paper repeatedly lets post hoc quantities (the population bounds, the 1% match, the "fourth order" headline) carry conclusions that the registered rules do not support, and the rules themselves are thresholds with unreported null pass rates applied to dependent cells with small-$n$ bootstrap intervals. These are matters of presentation and of inference, not of the underlying work, and they can be fixed without new experiments (except, optionally, Q2 and Q6).
**Confidence: high** on the proofs, the measurement-error framing and the statistical points (I checked every proof and recomputed the small numerical examples); **medium** on the geophysical realism of the simulator and on whether the SMC tie is state of the art, which is outside my expertise.

View File

@@ -0,0 +1,73 @@
# Referee 2 — Round 2 response (referee discussion)
I have read R1 (applied geophysics / QI) and R3 (ML / benchmark / reproducibility) in full. My own IDs refer to R2_round1.md.
---
## 1. Points of agreement
**(a) The headline gain is a tie-model comparison, not a registration-uncertainty result.** R1-M5, R3-M1 and my M5 are the same issue, reached from three directions (practitioner: "the tie algorithm dominates"; benchmark fairness: "point ties do not use σ_a that the candidate is given"; statistics: "the zero-drift guard was designed to detect harm, not to attribute the gain to drift"). They strengthen each other. I endorse R3's concrete remedy (a σ_a-aware anchor smoother / the MAP warp of the same anchor+seismic model as a competitor) as the minimum; the external constrained-DTW tie that R1 and R3 both ask for is desirable but second-order, because the question the paper poses is "posterior vs point estimate of the *same* model", and that is what the MAP competitor isolates. R3-M1(iii) (split the c = 0 effect from the c = 0 → c = 1 increment, 0–7%) is exactly the restatement I asked for. R3-M1(iv) needs one correction: the nominal registration is *not* identical to the generator — Sec. 5.1 says the true warps are drawn with the ML fit σ_b = 19 ms while registration fixes σ_b = 50 ms, and the SMC targets a *tempered* likelihood (γ = 1/κ). So "well specified by construction" should read "well specified up to a wider bulk prior and a tempered likelihood"; this matters for R3-m13 (coverage 0.86–0.89 below nominal even in nominal cells) and for my M6 (the SMC bank is not the exact posterior of Prop. 4 even when the model is right).
**(b) Pre-registration is self-certified.** R1-M7, R3-Q8 and my M7(d) are the same point. Three referees independently asking for "hash-locked" instead of "pre-registered" in the abstract, plus an external timestamp where one still can be produced, should settle it.
**(c) Reuse of realizations 8–15 and the "9 of 11" count.** R3-M3 and my M3(b),(f) are the same issue. R3 adds something I did not: several Exp. 3 verdicts were near-certain *given what was already known on the same realizations* (S1-H1 interpolates between known passes; S3-H1 adds competitors known to lose; S2-H2 is a non-inferiority clause that passes if the bank does nothing). That is a sharper argument than my dependence argument and I adopt it. R3's remedy (rerun the Exp. 3 verdicts on fresh realizations 16–23, ~11.5 GPU-hours by the authors' own repro README) is the cleanest fix for my M3(b): it replaces dependent-cell counting with an actual out-of-sample confirmation. I move it into my top five.
**(d) The sharpening half of the theory is inferred, not measured; the bound lives where nothing is measured.** R3-M5, R1-M6 and my M1/M2/M4 converge. R1-M6 states it most usefully: skill lives at 7–23 Hz, where a Gaussian error of 1–3 ms attenuates by < 7%, so the population blur of C1 *cannot* produce the 8–22% gains, and the operative effect is first-order label noise in finite samples. That is the same conclusion as my M1 ("the bound constrains nothing here") and M2 ("fourth order does not apply in this regime") from the other side, and it makes the point without any statistics: the theory that is verified (blur at 7–23 Hz) is not the theory that is used to interpret H2b (sharpening at 60–70 Hz). On the remedy see §2(ii) below.
**(e) Ctl-GP and the as-run reading.** R3-M6 is a stronger version of what I used inside my M1 (Ctl-GP matching M2-Sa at c = 1 contradicts the "population sharpening" reading). I endorse: the as-run count (which makes S3-H1 fail) must appear wherever the as-worded count appears, and the Ctl-GP finding belongs in the abstract and the "When to use a bank" paragraph. It is also the practically useful result.
**(f) Abstract wording.** R3-M7 bullets 1–2 duplicate my M4 and M7 and add one I missed (see §3). R1-m10 ("state that the Berkson bound is undefined at large σ rather than tabulating <0.001") is my M1(c) in one line; R1-m5/R3-m8/my m5 (16 vs 9–11 anchors) and R1-m14/R3-M7/my m12 ("Reg. eval." tick) are duplicates. R3-m9 and my M3(e) (bootstrap over 8 realizations) duplicate.
**(g) Benchmark documentation.** R1-M1 and R3-M8 (lateral correlation of the earth model, independence of noise across the 3×3 patch, hence effective SNR; what the registration knows exactly) are outside my core area but I endorse them as required *documentation*; they are also needed to read the "Rm5 is closest to F3" mapping. R1-M1's point that the anchor-error structure (per-well bias, correlated horizon mis-picks) is never varied coincides with my m4 and Q10 (Prop. 2(c)'s curvature assumes independent anchor errors). Of the two, the documentation is required; the extra anchor-error stress is desirable.
**(h) Budgets.** R3-M4: I had noted the training-length confound only for the coverage analysis (T4). R3 is right that it is a fairness issue for the reference table, and the budget-sensitivity table is cheap since the 500-iteration trajectories exist. Endorse as "rerun on existing data".
## 2. Points of disagreement or pushback
**(i) R3-M5's proposed "Berkson S8" is not as clean as it looks, and its prediction does not apply as stated.** R3 proposes: fix the assigned warp, draw the true warp as assigned + independent Gaussian error, generate the data, and expect the transfer e^{+2π²σ²f²}. But the seismic is generated from the *true* warp, so once X is observed the error e is partially identified by X; the construction gives q(e | X) ≠ q(e). Prop. 3(b) then says only that m is m̃ filtered by an X-dependent kernel; the closed-form e^{+2π²σ²f²} requires q to depend on neither t nor X (Sec. 4.3, sentence after Prop. 3). The classical S8 construction works because δ is drawn independently of everything, which is trivial; a Berkson label error cannot be imposed independently of the seismic by fiat, which is precisely why the paper has to *infer* it from the posterior-mean estimator's shrinkage (Sec. 6.4(iv)). I therefore would not make a Berkson S8 a condition of acceptance. The cheap and clean alternative is to measure the transfer Ĥ(f) of B3d-Sa relative to the Oracle on the *saved* Exp. 2 test predictions, pooled as in S8, at R0/R0h/Rm5, c = 1, N = 16 (σ_post 1.5–2.6 ms), and report whether it exceeds 1 by the predicted 2–9% at 15–25 Hz. If it does, Highlight 2 stands; if the estimate is too noisy to tell, say so and soften Highlight 2 to "is predicted to sharpen". This is "rerun on existing data".
**(ii) R1-M4 goes too far in attributing "the limits of field validation" to the choice of scoring rule.** Three things. First, Prop. 6 is stated for band MSE against a point reference, and the paper says so; it is not claimed to hold for every score. Second, the remedies R1 proposes are not bias-free: a bounded-lag/tolerance score is a maximum over lags and is therefore an optimistic statistic whose null distribution depends on the lag range and the autocorrelation — the paper's own Volve diagnostic (free shift up to ±64 ms raises PCC to 0.40–0.82 with most shifts at the search limit) shows exactly why the authors declined to score that way; and scoring against the test well's own tie posterior only removes the bias if that posterior is calibrated, which the σ_a arm (Table 5) shows it is not when σ_a is mis-set. Third, R1's "VSP/checkshot references accurate to 1–2 ms are routine" is asserted, not shown, and the paper's own Volve numbers (marker-calibrated sonic within −2.4 to −0.8 ms of the VSP at F-11 T2) are consistent with it, not against it: the paper's claim is about the three public datasets examined, and that is what the title/abstract should say. I agree with R1's modest version: retitle/rephrase to "under point-reference band scoring on the public datasets examined", and rerun T3 with one tolerance score as a *sensitivity* arm, reporting its null pass rate alongside N*. I disagree that the tolerance score should replace the primary analysis.
**(iii) R1-M2 ("straw man") is half right.** The sentence "as is common in learning studies" is uncited and B3a (sonic from one shallow anchor) is a straw-man baseline; both should go or be cited. But the 28.6–36.5 ms deviations of the *distributed* OpendTect TD model from the markers, and the 15–41 ms offset of the second distributed model (Table 1, Fig. 1), are properties of data products that users download, not integration mistakes, so the motivation has a legitimate core. The right fix is the one neither R1 nor I asked for in round 1: state that the regime tested in the experiments is the posterior width 0.6–4 ms, not the tens of ms of the introduction, and that the introduction's numbers motivate the *existence* of the problem, not the effect sizes. R1's questions on the marker smoothness (type-II σ_a = 0.4 ms; leave-one-anchor-out z² = 0.21) are good and align with my Q10.
**(iv) R1-M3 (field tests limited by design: model capacity, per-well z-scoring, B1) is reasonable but should not gate acceptance.** The paper makes no field claim; it uses the field cases only to bound scope, and it already says the tests had no power. A survey-wide normalization arm on Volve is cheap and I would welcome it, with one caveat R1 does not state: if it restores blind-well skill, it does not by itself make the registration comparison informative — C3 (σ_a identified outside the test set) and C4 (number of wells) still fail by construction on both datasets. B1's negative band PCC is an embarrassment for a baseline that affects no claim; a paragraph of explanation suffices.
**(v) R3-M2 on "hidden truth" is correct, but the fix should not become a service obligation.** The factual inconsistency (manuscript: hidden; README: truth shipped) must be resolved, and for a journal benchmark the honest option is R3's (b): call it a controlled synthetic study with public truth and a reference scorer. Requiring a scoring service or sealed truth from an academic group is more than this journal usually asks and would not change the science. R3's cheaper request — ship `analyst.json` variants with σ_a and prior misspecified, since the data do not change — is the one that actually addresses the paper's own "main risk" and I endorse it.
**(vi) R3-M7, last bullet.** R3 wants "a pass would not have been evidence for it" qualified. I would go slightly further than R3: with null pass probabilities of 0.31 and 0.11, a pass would have been weak evidence, not none; the paper's own numbers support "weak", so write that.
**(vii) R1-m7 reference list.** The QI references (White & Hu 1998; White & Simm 2003; Stewart et al. 1984; Box & Lowrey 2003; Walden & White 1998) are reasonable additions for context; the TCN/impedance references are optional. None affects any claim; minor.
## 3. Issues I missed that the others caught
- **R3-M2 (truth is shipped; analyst.json reveals the true σ_a).** I compared the README to the manuscript only for the rules, not for the package contents. This is decision-relevant: it is a factual contradiction between manuscript and supplement, and the benchmark removes the uncertainty the paper calls decisive. Reword/repackage required.
- **R3-M7 bullet 1 ("all eight cells with a wide posterior" includes four c = 2 cells the paper itself flags as unstable and "not primary evidence").** I checked Table h2b and missed that the abstract counts them. Decision-relevant for the abstract; one sentence fixes it.
- **R1-M6 / R3-M5 (skill at 7–23 Hz vs the bound at 60–70 Hz).** I had the ingredients (my M2, M4) but not the direct consequence that the verified theory cannot explain the empirical gains at all. Decision-relevant: it determines how the theory is allowed to be connected to H2a/H2b in the Discussion.
- **R3-M4 (budget confound as a fairness issue; TCN at the grid edge).** I under-weighted this. Moderately relevant; cheap to address.
- **R1-M1 / R3-M8 (patch SNR, lateral model).** Not inference, but a benchmark user cannot interpret "R10" without it. Required documentation.
- **R1-m6 (truth σ_b = 19 ms vs registration σ_b = 50 ms).** Confirmed in Sec. 5.1; it qualifies "well-specified nominal cells" and should be stated in Sec. 3.2.
- **R3-m13 (warp coverage 0.86–0.89 below nominal in well-specified cells).** Supports my M6: the SMC bank is a tempered, not exact, posterior; Prop. 4's "calibrated bank" is an idealization even in the nominal cells, and the paper should say so where it reads H2b through Prop. 4.
- **R1-m1 / R3-m1 (red TODO blocks, empty mandatory C&G sections).** I treated these as editorial; they are the editor's call, but the Computer Code Availability section is mandatory and the Sec. 2 todoblock refers to internal files a reader cannot see.
- **R1-M2's MAD question (raw or scaled).** If 6.9 ms is the raw MAD, σ_a ≈ 10 ms, which changes the regime mapping; needs one clause.
Not decision-relevant in my view: R1-m9 (volume figure striping), R3-m14 (uncited bib entries), R1-M3(c) (B1), R3-m21 (licence; must be settled, but not a scientific matter).
## 4. Consolidated top-5 requirements for acceptance (priority order)
1. **Bring the abstract, highlights, Discussion and Conclusion down to what the registered rules support** [reword only]. Remove or qualify: "pre-registered" → "hash-locked (self-timestamped)"; "9 of 11" as a count (name the two failures, the genuinely new passes, and the as-run reading, R3-M6); "all eight wide cells" (four are unstable c = 2 cells); "within 1%" (add 7–23 Hz and that the registered tolerance was [0.5, 2]); "fourth order" (asymptotic only; the bounds differ by ×4 in the tested regime); any sentence attributing the bank gain to "removing the population sharpening" (the bound constrains no finite-sample gain, Ctl-GP matches M2-Sa); "hidden truth" (truth is shipped); "Berkson … sharpens" as established (it is inferred). Covers my M1, M2, M4, M7; R1-M6, R1-M7; R3-M3, M5, M6, M7, M2(wording).
2. **Restate H2a as a tie-model comparison and add the point estimate of the same tie model as a competitor** [rerun on existing data + a small number of new training runs on existing realizations]. Add the MAP/mode warp (or a σ_a-aware anchor smoother) of the same anchor+seismic model to the point-tie set in R10/R0/Rm5 at c ∈ {0, 1}; report the c = 0 effect and the c = 0 → c = 1 increment separately; give warp RMSE and coverage per tie method per regime; describe B3c/B3c-R fully. Covers my M5, R1-M5, R3-M1.
3. **Make the inference honest and, preferably, out-of-sample** [rerun on existing data; fresh realizations = new experiment, ~12 GPU-hours]. Report the null pass probabilities of "improves" and "better" (permute method labels within realization × seed); replace counts over dependent cells by per-realization summaries; state the bootstrap type and its small-n limits; give S2-H2 to three decimals with intervals; and rerun the Exp. 3 verdicts (at least S1-H1, S2-H1, S4, S8) on realizations 16–23 generated after the lock. Covers my M3, R3-M3, R3-M4 (budget table from saved trajectories).
4. **Document and repackage the benchmark so that it measures what the paper says** [reword/document + cheap regeneration of one input file]. A table of what the registration knows exactly / approximately / not at all (including σ_b = 19 vs 50 ms and the tempered likelihood); the lateral correlation of the earth model and the independence of noise across the 3×3 patch, with single-trace vs patch Oracle band RMSE; the status of the truth files; and `analyst.json` variants with σ_a and the prior misspecified as first-class settings. Covers R1-M1, R3-M2, R3-M8, R1-m6, my m4/Q10.
5. **Connect the theory to the experiments only where it is tested, and fix the terminology** [rerun on existing data + reword]. State that H1 verifies blur at 7–23 Hz only and that the bound/sharpening argument concerns 60–70 Hz where nothing is measured; measure the transfer of B3d-Sa relative to the Oracle from the saved Exp. 2 predictions (the cheap, well-posed version of R3-M5); soften "predicts" to "is consistent with" for Prop. 2 and Cor. 4; use one meaning each for "calibrated" (posterior-exact bank; interval coverage; "contains the true warp" for BK2) and name the G-C coverage clause a design error. Covers my M6, M7, m2; R1-M6; R3-M5, R3-m13.
Desirable but not required: a tolerance-score sensitivity arm for T3 with its null pass rate (R1-M4, my §2(ii)); a survey-wide normalization arm on Volve (R1-M3); an external DTW tie (R1-M5/R3-M1); an anchor-error stress with correlated picks (R1-M1).
## 5. Updated recommendation
**Major revision** (unchanged). Confidence **high** on the statistical and theoretical points, now also on the benchmark-packaging points after reading R3, which I had not examined; **medium** on the geophysical realism questions raised by R1-M1/M2, which I can follow but not adjudicate.
What changed: nothing in direction, two things in weight. R3-M2 (shipped truth, true σ_a handed to submitters) is a factual inconsistency I had not seen, and it raises the bar for the "benchmark" claim from "reword" to "repackage"; and R1-M6 together with R3-M5 sharpened my M1/M2 into a cleaner statement — the theory that is verified (blur at 7–23 Hz) is not the theory used to interpret the main empirical result (sharpening and a fourth-order bound at 60–70 Hz), so the Discussion must stop using the latter as explanation. Against that, R3's fresh-realization rerun is a cheap, decisive fix for my dependence concern, and R3's proposed Berkson S8 should not be required because the construction does not yield the independence that the closed-form prediction needs; the saved-prediction transfer measurement does the job. Nothing any referee found moves the paper toward rejection: the authors' candour is high, every required change is reword or a rerun on existing data, and the one new experiment (fresh realizations) costs half a day of GPU time.

View File

@@ -0,0 +1,137 @@
# Referee 3 — Round 1 review
Manuscript: *Label registration error in sparse-well seismic property learning: theory, a registration-aware benchmark, and the limits of field validation* (submitted to Computers & Geosciences)
Referee profile: ML-in-geoscience, benchmarks, reproducibility, fair baselines, leakage.
---
## 1. Summary and claimed contributions
The paper treats the well tie that places log-derived labels on seismic two-way time as an uncertain quantity, and studies what its error does to a learned seismic-to-porosity predictor. It argues that tie error is an error in the *time index* of the label rather than in its value. Under an independence assumption (classical structure) the MSE-optimal predictor is the oracle predictor convolved with the error distribution, so the seismic band is attenuated by the error's characteristic function (Prop. 1, verified to within 1% over 6.8–22.5 Hz in a controlled run). Without time anchors, a shared bulk shift of network and labels is unidentified (Prop. 2). A tie computed as a posterior mean is argued to have the opposite, Berkson, structure and to *sharpen* the predictor (Prop. 3); a calibrated bank of posterior labels recovers the oracle population optimum, but its gain over a point label is of fourth order in the tie error (Prop. 4). The authors define a tempered log-likelihood over a bank of labels (RML_λ) that contains point-tie NLL, hard/soft-min shift losses and soft-DTW as special cases. On a synthetic generator built from F3 statistics (D2) they run three pre-registered synthetic experiments: Experiment 1 (importance-weighted anchor posterior; gate failed), Experiment 2 (SMC tie posterior; posterior-mean labels beat the best point tie by 8–22% in band RMSE; a bank gains further when the posterior is wide; the gain disappears when σ_a is mis-set by a factor of two), and Experiment 3 (a "registration-aware benchmark" with 11 verdicts, 9 passing as worded; failures under rock-physics and wavelet-phase misspecification; a two-mode label error reverses the sign of the learned band as predicted). An exploratory power analysis finds that detecting such gains at blind wells needs a scoring reference accurate to about 1 ms. Pre-registered field tests on F3 (4 wells) and Volve (6 wells) failed, and the paper argues neither could have detected the effect; a Teapot Dome inventory found at most two wells with an independent time–depth reference. The claimed contributions are C1 theory, C2 a released benchmark with hidden truth and a locked scorer, C3 a baseline family, and C4 detectability conditions and scope-bounding field cases.
## 2. Significance and fit
The problem is real and under-studied: I agree with the authors that I know of no work that propagates tie uncertainty into the training of a property predictor, and the errors-in-variables framing (classical vs Berkson on the time index) is a genuinely useful lens that I have not seen applied in this setting. The reproducibility apparatus (hash-locked protocols, dev/test separation, a manifest-hashed derived-data package, a clean-room re-run of 12 stages, both readings of the verdict code) is well above the norm for this journal, and the honesty about failures and deviations is exemplary. The detectability analysis (Sec. 6.6) and the four field-test requirements in the Discussion are, in my view, the most practically valuable output for C&G readers: they explain why many published blind-well comparisons of tie or label-handling methods are uninformative.
The fit for C&G is good in principle (code, data, benchmark). However, the "benchmark" contribution (C2) is, as currently built, the authors' own simulator, the authors' own tie model, and the authors' own method family evaluated against point ties that do not use information the candidate is given. Several of the issues below go to whether what the benchmark measures is what the paper says it measures. I think the paper can be made acceptable, but it needs real work on baselines, on the benchmark packaging, and on the level of some claims.
## 3. Major comments
### M1. The competitor set is weak relative to the candidate, and the headline gain is largely a "knows-the-prior" effect
*Passages.* Abstract: "posterior-mean labels had 8–22% lower seismic-band RMSE than the best point tie"; Sec. 6.3 H2a paragraph: "Most of the gain is already present without drift. At c = 0 the macro ratios are 0.81, 0.85 and 0.88"; Fig. p2r_grid: B3b at c = 0 is 1.56–1.82× the Oracle; Sec. 6.3: "When B3d is added as a competitor, H2a holds at R10 (2/2 cells), holds in 1 of 2 cells at R0 and fails at Rm5".
*Problem.* At c = 0 there is no drift (Sec. 3.2: "c = 0 is perfect registration"), yet the "best point tie" is 15–80% worse than the Oracle. The only remaining error source at c = 0 is the N(0, 7² ms) anchor noise, which B3b/B3c treat as exact (marker-calibrated sonic "through the anchors"). B3d-Sa, by contrast, is handed the true σ_a = 7 ms, the true warp prior family and hyperparameters, and the exact generator wavelet (the registration's 128 ms statistical wavelet is the one used to synthesize the data; only its constant phase is estimated). The 8–22% headline gain is therefore mostly the gain of a correctly specified Bayesian smoother over point ties that overfit known-noisy anchors, and the authors' own secondary comparison shows that against B3d (the Exp. 1 posterior mean, which also knows σ_a) the advantage survives only at high SNR. The anchor-free losses B4a–d are additionally handicapped: they receive B3b labels (the second-worst tie), fixed γ = 0.1 / α = 0.5 that are never tuned on dev, and Exp. 1 budgets of 125 iterations for B4a/b. Their 38–53% deficit is then presented as confirmation of Prop. 2, but it is at least partly a budget/label/hyperparameter artefact.
*Why it matters.* The paper's central empirical claim is that *posterior-mean labels beat point ties*. In a benchmark meant for the community, "point tie" must be represented by what a competent practitioner would do with the same information: at minimum a tie that uses σ_a (e.g. a smoothing spline or GP through anchors with the known noise, or the MAP/mode warp of the same anchor+seismic model), and the strongest external tie method the paper itself reviews (a constrained DTW tie à la Herrera et al. with anchors; a Buland/Gunning-style MCMC tie, whose posterior mean would be a direct competitor). Without these, the benchmark mostly measures the gap between a well-specified Bayesian model and ad hoc ties inside the model's own simulator.
*What would resolve it.* (i) Add at least two independent strong point ties: a σ_a-aware anchor smoother/MAP warp of the same model (so that the only difference to B3d-Sa is mean-vs-mode and seismic conditioning), and one external method (constrained DTW with anchors). (ii) Report B4c/B4d on B3c-R labels with γ and α selected on dev, and with the 500-iteration arm already available. (iii) Rewrite the headline to separate the c = 0 effect ("a seismic-conditioned, σ_a-aware tie beats anchor-exact point ties even with no drift") from the registration effect ("the additional gain from c = 0 to c = 1 is 0–7%"); the second is the registration-aware claim and is much smaller. (iv) State in Sec. 3.2 and 6.5 that in the nominal cells the registration model equals the generator (same prior, same wavelet, same σ_a), so that S1/S3/S4/S8 are well-specified by construction and S2 is the only misspecified study.
### M2. "Hidden truth" is not hidden, and the benchmark gives the analyst the true σ_a
*Passages.* C2: "We release it as a task package with hidden truth and a scorer"; Sec. 8: "each with its inputs and its hidden true warps and labels"; benchmark README §3: "Test truth is in the package because the generator is public anyway; do not choose anything … from it"; README §1: anchors "t_k = true time + N(0, σ_a²), σ_a = 7 ms" and "the analyst's nominal knowledge (inputs/analyst.json): wavelet, warp prior, anchor noise, rock physics".
*Problem.* The manuscript says the truth is hidden; the supplementary README says it ships with the package, and the generator is public. There is thus no integrity mechanism at all: a submitter can read `truth/…/y_test`, and the scorer runs locally. Second, `analyst.json` hands every submitter the *true* σ_a, the true warp-prior hyperparameters and the true wavelet, while the paper's own Discussion says "the anchor uncertainty is the main risk" and "an estimate of σ_a from independent time–depth data … is a precondition". The benchmark therefore removes the very uncertainty that the paper identifies as decisive in the field. Third, the pass/fail rules in the scorer are defined relative to the authors' own point-tie implementations (B3b, B3c, B3c-R), so a submitter's verdict depends on the authors' baselines rather than on a method-agnostic reference.
*Why it matters.* The journal and readers will cite this as a benchmark. As packaged it is a controlled synthetic study with public truth and a reference scorer, which is still valuable but is a different object.
*What would resolve it.* Either (a) withhold test truth (keep dev truth), fix the generator seeds for 8–15 outside the public code path (or add a held-out set of realizations whose seeds are not released), and provide a scoring service or a sealed-truth archive with a published hash; or (b) drop "hidden truth" throughout and call the release what it is. In either case add σ_a-misspecified and prior-misspecified variants of `analyst.json` as first-class settings (cheap: the data are unchanged, only the analyst file differs), and make the primary benchmark score method-agnostic (band RMSE and band PCC relative to the Oracle ceiling per cell), with the H2a rule as a secondary derived verdict.
### M3. Reuse of the same eight test realizations across Experiment 2, the exploratory T2 study and Experiment 3, and the "9 of 11" headline
*Passages.* Sec. 6.5 "Pre-registration and deviation": "The experiment was designed after Experiment 2, after the field tests and after the post hoc analyses … and it reuses the test realizations 8–15"; "Two arms are disclosed additions … motivated by the exploratory analysis … which had already seen the test realizations"; Abstract and Conclusion: "passed 9 of its 11 verdicts".
*Problem.* The disclosure is complete, but the consequence is not analysed. Several Experiment 3 verdicts were near-certain given what was already known on these very realizations: S1-H1 (c = 1.5 at R10, sandwiched between the known c = 1 and c = 2 passes), S3-H1 (adds competitors already known from Exp. 1 to lose), S2-H2 and S4-H2 (non-inferiority or margin-free "better" rules). S2-H2 (≤ 1.02) passes trivially if the bank does nothing; S1-H2, S4-H2 and S8-H2 use "better" with no margin, which with 8 realizations × 5 seeds can pass on a 0.5% difference. Aggregating these with the genuinely new tests (S2-H1 per axis, S4-H1, S8-H1) into a single "9/11" count overstates the evidential weight, and no family-wise correction is applied. Experiment 3 also cannot be called a benchmark *result* independent of Experiment 2, as the Limitations admit.
*Why it matters.* The abstract leads with the count. A reader will take "9 of 11 pre-registered verdicts passed" as independent confirmatory evidence.
*What would resolve it.* The generator is deterministic and synthetic, and the full Experiment 3 ran in 11.5 h on two GPUs. Re-run the Experiment 3 grid (or at least S1-H1, S2-H1, S4, S8) on fresh realizations 16–23 that were generated after the lock, and report those as the benchmark result; keep 8–15 as the Exp. 2 link. Remove the count from the abstract, or replace it by a sentence that names the two failures and the two or three genuinely new passes. Mark each verdict in Table benchverdicts as "extension", "non-inferiority" or "new prediction", and add the per-realization ratios (8 numbers per cell) in a supplementary table.
### M4. Training-budget selection is confounded with label source, and the competitors' budgets are not shown to be adequate
*Passages.* Sec. 5.6: "The number of iterations is selected separately for each method from {125, 250, 500, 1000, 2000} by total RMSE on the development realizations"; Sec. 6.4(v): "B3d-Sa itself improved at 500 iterations in 7 of the 8 cells … so the budget selected on development data was not optimal for it"; Table benchdesign: B4a–d at 125, 125, 500, 250; TCN all at 125 ("the smallest candidate, and the candidate set was not extended"); Sec. 6.3 T4: Oracle 500, B3d-Sa 250, B5 125.
*Problem.* Selection by *total* RMSE on two development realizations with few wells (N not stated for the dev selection) is noisy, and the paper's own equal-budget arm shows the dev-selected budgets were wrong for the candidate. If they were wrong for the candidate, they may be wrong for B3b/B3c/B3c-R and B4a–d too, and in the direction that favours whichever method happened to get a longer budget. The TCN study is uninformative about architecture because every TCN method hit the lower edge of the grid. The "equal budgets" arm (500 only) mitigates this for the headline ratios, which is good, but it is a single alternative budget and is excluded from the cells "read from Experiment 2".
*Why it matters.* Fair-baseline concern: a benchmark whose reference results depend on a per-method budget chosen on two realizations will not be trusted.
*What would resolve it.* A budget-sensitivity table: for each method and each candidate budget, test-split band RMSE in the R10/R0/Rm5 c = 1 cells (the trajectories at 125/250/500 appear to be saved already). Extend the TCN candidate set below 125. State N and the number of dev wells used for selection. If feasible, select budgets per method by band RMSE on dev with ≥ 4 dev realizations (902–905 exist).
### M5. The theory's second half (Berkson sharpening, fourth-order gain near 70 Hz) is not tested where it matters
*Passages.* Highlights: "Misregistered labels blur the learned predictor; Berkson-type tie error sharpens it"; Sec. 4.1 H1: "the frequency-selection rule keeps only 6.8–22.5 Hz … the test says nothing above about 23 Hz"; Sec. 4.3: "the median frequency of the leading-order distortion is 67–72 Hz"; Sec. 6.4(iv): the Berkson structure is inferred from a covariance test on the bulk offset only.
*Problem.* The blur prediction is verified only at 7–23 Hz, where the predictor has coherent power; the paper then builds its population-bound argument (1/B_a vs 1/B_b, Table h2b) on behaviour at 60–70 Hz where nothing has been measured and where, by the paper's own admission, the Oracle has little coherent power and the sharpening estimate "amplifies the Oracle's own estimation error". The sharpening itself (transfer > 1) is never observed; it is inferred. The highlight presents it as an established effect.
*Why it matters.* The classical/Berkson distinction is the paper's most original theoretical point and drives the reinterpretation of H2b. S8 shows the authors know how to build a label error of known structure and measure its transfer; the same can be done for Berkson error.
*What would resolve it.* An S8-style study for structure (b): fix the *assigned* warp and draw the true warp as assigned + independent Gaussian error (labels then have Berkson error by construction), train the point-label method, and measure the transfer relative to the Oracle. The prediction is e^{+2π²σ²f²} over the usable band. Also restate the H1 claim in the abstract with its frequency range, and soften Highlight 2 to "is predicted to sharpen it".
### M6. The one disagreement between the locked verdict code and the locked wording is resolved in the authors' favour after the fact, and the as-run reading carries an important message
*Passages.* Sec. 6.5 "Two readings": "For S3-H1 it adds Ctl-GP to the competitors, whereas the statement names B3b, B3c, B3c-R and B4a–B4d. We did not edit the locked code. A separate script, outside the code hash, checks the lock and applies the statements as worded."; S3 paragraph: "As run, with Ctl-GP among the competitors, S3-H1 failed in every regime. At c = 1 Ctl-GP was the best competitor in every regime, and the ratio of B3d-Sa to it was 0.99–1.02".
*Problem.* Reporting both readings is right. But the "as worded" script was written after the results were known, and the paper's headline count uses the reading under which the verdict passes. More importantly, the as-run reading reveals that a *Gaussian* bank with the posterior's first two moments (Ctl-GP) matches or beats B3d-Sa everywhere at c = 1, i.e. the posterior-mean label has no advantage over the simplest possible bank, and the SMC bank's extra information matters only at the unstable c = 2. This is arguably the most useful finding for practitioners (use any reasonable bank; do not bother with particles unless drift is extreme), and it is buried.
*What would resolve it.* Give the as-run count wherever the as-worded count appears, or give neither. Promote the Ctl-GP result to the abstract and the "When to use a bank" paragraph. State explicitly that Ctl-GP was a disclosed addition motivated by an exploratory analysis that had seen the test set.
### M7. Claims that still run ahead of the evidence (collected)
Each of these is small, but together they shape the abstract.
- Abstract: "With 16 training wells, the bank gained further in all eight cells with a wide posterior." Four of those eight are c = 2 cells the paper flags as having an unstable, often multimodal posterior and "not primary evidence". Say "in all four wide cells at F3-like drift and in the four cells with an unstable posterior at c = 2".
- Abstract/Intro: "a controlled experiment matched the predicted transfer to within 1% for errors of 4–16 ms" — add "over 7–23 Hz".
- Table positioning, row "This work": "Reg. eval. ✓" is justified by Prop. 6 and T3; "UQ→train ✓" is justified. But "Tie UQ ✓" is a Buland/Gunning-style posterior that the paper itself says is not new; consider a footnote.
- Sec. 6.5 S2 paragraph: "When a shift between the simulator and the model raises the error of every method, a ratio rule dilutes a largely preserved label gain. This is a reading of a failed claim; it does not turn the verdict into a pass." Good — but the Discussion's "the gain of B3d-Sa in squared band RMSE was largely preserved" then reads as a pass-in-spirit. Keep one version.
- Sec. 6.7 "Neither test could have detected the effect": thresholds C1 (band PCC ≥ 0.468, R² ≥ 0.053) are taken from the synthetic cells that passed H2a; the paper says this is mechanical, but the conditions were formulated after both gates failed. The conclusion "the failure … is no evidence against the synthetic result" is defensible; "a pass would not have been evidence for it" is a stronger statement and should be qualified by the k-of-n false-positive rates the paper already gives.
### M8. The benchmark's earth model and noise structure are under-documented, and the effective SNR of the 3×3 input may be much higher than stated
*Passages.* Sec. 3.2: porosity is "a sum of two Ornstein–Uhlenbeck fields in stratigraphic coordinates (… correlation lengths 10 and 2 ms)"; "8 test wells at least 1 km from every other well"; "noise at a prescribed signal-to-noise ratio"; Sec. 5.6: input is "a 3×3 trace patch around the well"; Limitations: "Lateral heterogeneity … and non-stationary noise were not simulated".
*Problem.* The lateral correlation structure of the porosity field is not stated. If the field is laterally constant within a patch and the noise is independent per trace, the nine channels are nine noisy copies of the same signal and a network can average them, raising the effective SNR by about 9.5 dB; "R10" would then be an effective ~20 dB, and "Rm5" ~4.5 dB. Conversely, if the field has no lateral correlation, the 1 km separation of test wells is meaningless and "blind-well" difficulty is undefined. Either way a benchmark user needs to know, and the mapping of regimes to F3 ("Rm5 gives the posterior width closest to F3") depends on it.
*What would resolve it.* State the lateral model (correlation length of the OU fields in x–y, how the 3×3 traces are generated, whether noise is independent across the nine traces and across wells), report the single-trace vs patch Oracle band RMSE, and give the label's band standard deviation (the "no band content" floor used in Table f3all) for the synthetic cells so that ratios can be read against a floor.
## 4. Minor comments
- m1. The manuscript still contains visible red TODO blocks and notes (Sec. 2 todoblock, author list, licences, repository URL, DOIs, the empty "Computer code availability" section, "Draft, \today"). These must be removed or filled before the paper can be assessed as final. In particular the C&G code-availability fields are mandatory.
- m2. Sec. 8 Data availability says the benchmark package has "hidden true warps and labels"; the README says the truth is included. Make consistent (see M2).
- m3. Fig. p2r_h2b(b): axis label "1/B(σ_post)" — the table has two bounds; label as 1/B_a and say so in the caption.
- m4. Table methods: B3c-R is defined as "B3c with the SMC-estimated wavelet phase". Make clear that this competitor cannot be run without the candidate's SMC step, and that B3c-R therefore borrows from the candidate pipeline. Also B5 sits after the Experiment 3 additions; move it under ensembles.
- m5. Sec. 6.4 lists the mechanism tests in the order (iv), (v), (ii), (i), (iii). Renumber or explain the ordering.
- m6. Discussion: "closed 29–35% of that gap" vs Sec. 6.4(v): "30–35%".
- m7. Sec. 3.2 says c = 0 "is perfect registration", yet Fig. p2r_grid shows B3b at 1.56–1.82× the Oracle at c = 0. Add one sentence that anchors remain noisy at c = 0 so that point ties through anchors are not perfect.
- m8. Sec. 4.2 example: "With 4 wells of 16 anchors" — Table audit lists 9–11 anchors per well in the window. State which window the 16 refers to.
- m9. Sec. 5.7 and elsewhere: 95% bootstrap intervals over 8 realizations (2000 resamples). State the bootstrap type (percentile?) and note that with n = 8 these intervals are coarse; several pass/fail decisions (e.g. R10 N = 4 in Table h2a, CI [0.805, 0.922]) are decided by the seed/realization counting rule, not by the interval.
- m10. Lemma sdtw: with γ = 0.1 the implied λ = 20 is 50× the authors' own λ ≈ 0.37. Say whether γ was tuned on dev (it appears not) and discuss what γ would correspond to λ = 1/τ_c.
- m11. Table benchverdicts footnote d: S4-H2 "Recorded as uncertain" but the Prediction column says "pass^d". Clarify.
- m12. Table t3: define "ratio" as median over wells of per-well ratios (as text) in the caption; "ICC" should say beta-binomial intra-class correlation.
- m13. Sec. 6.3, Posterior quality: 90% coverage of the warp posterior is 0.86–0.89 with dense anchors, i.e. below nominal even in the nominal, well-specified cells. Comment on whether this is SMC degeneracy (ESS ≥ P/2 with 8 ESS moves) or the tempering γ = 1/κ.
- m14. refs.bib: lakshminarayanan2017, kendall2017, gneiting2007, ravasi2020pylops and li2026leakage are in the bibliography file but not cited; harmless if bibtex is used but check. The internal notes in the .bib indicate that Balakrishnan (1962) is cited without the text having been obtained and that Pauli et al. (2011) and Ribatet et al. (2012) were "not read in full"; either verify or replace with a textbook reference for the jitter result. The ^a (abstract-only) marking in Table positioning is good practice; extend the same marking to the text for di2023welltie and cordoba2025porosity where their contents are characterized.
- m15. Table positioning: "Soft-DTW, DILATE" row is cited as methods, not works; cite cuturi2017softdtw and leguen2019dilate in the row.
- m16. Sec. 3.3 Volve: the paper says the ST10010 headers carry an invalid time scalar that shifts samples by 8 ms. This is useful for other users; consider a footnote with the header field and the fix.
- m17. Fig. f3_volume is descriptive, shows a non-blind well, and supports no claim; if kept, say in one sentence why it is shown.
- m18. Sec. 6.1 H4: "ratio 9.9, 95% CI [8.3, 11.4]" — state what the CI is over (realizations).
- m19. Benchmark README §5, submission format: cells "count as complete with 8 realizations × 5 seeds" — say what happens to partial submissions in the verdict (they are "restricted", but the pass rule needs 5 seeds).
- m20. Repro README: the P3 (F3) phase ran on Windows with torch 2.11/cu128 and the rest on Linux torch 2.14/cu130; say whether the Windows results are reproducible on Linux to the stated tolerance, since the clean-room check does not retrain.
- m21. Licence: a synthetic dataset "derived" from F3 horizons, wavelet and warp prior inherits CC BY-SA 3.0 per the authors; the combined F3+Volve applicability tables are placed under CC BY-NC-SA 4.0. The authors flag the share-alike incompatibility themselves; this must be settled before publication, and the benchmark metadata should name the licence unambiguously.
## 5. Questions to the authors
- Q1. What is the lateral correlation structure of the D2 porosity field and of the noise across the nine traces of a patch? What is the Oracle band RMSE with a single centre trace vs the 3×3 patch at R10 and Rm5? (M8)
- Q2. Confirm that the entire gap between B3b/B3c and the Oracle at c = 0 is anchor noise treated as exact. What is the H2a ratio against a σ_a-aware point tie (the MAP/mode warp of the same anchor+seismic model, or a GP smoother through anchors with σ_a = 7 ms)? (M1)
- Q3. Were γ (soft-DTW), α (DILATE) and the ±8-sample band selected on dev? What are B4c/B4d on B3c-R labels at 500 iterations? (M1, M4)
- Q4. Will the test truth be withheld, and will `analyst.json` be offered in a version that does not reveal σ_a and the true prior hyperparameters? (M2)
- Q5. How many of the 11 Experiment 3 verdicts pass on fresh realizations 16–23? If the authors decline to run this, please give the per-realization ratio for each verdict so that readers can see the spread. (M3)
- Q6. For each method, what is the test-split band RMSE at each budget in {125, 250, 500}? Does the ranking B3d-Sa > B3c-R > B3c > B3b hold at every budget? (M4)
- Q7. Can the Berkson sharpening (transfer > 1) be demonstrated directly with an S8-style construction? (M5)
- Q8. The Experiment 3 protocol was committed during the runs and the lock time-stamp is self-reported. Can an external time stamp (OSF, Zenodo, a signed tag on a public host) be provided for the Experiment 3 lock and for the field protocols, or at least a statement of what the authors would do differently?
- Q9. Which value of N, and which dev realizations, were used for the per-method budget selection in Experiments 1–2?
## 6. Recommendation
**Major revision.** The problem, the error-structure framing, the detectability analysis and the reproducibility practice are strong and the paper is unusually honest about what failed. But the empirical core — "posterior-mean labels beat point ties" on a "registration-aware benchmark with hidden truth" — rests on a competitor set that does not use information the candidate is given, on a package whose truth is in fact public and which hands submitters the true σ_a, and on an Experiment 3 whose eight test realizations had already been seen; the sharpening half of the theory is inferred rather than measured. These are fixable with modest compute (fresh realizations, two stronger point ties, a Berkson S8 study, a budget-sensitivity table) and with rewording of the abstract.
Confidence: **high** on the experimental-design, benchmark-packaging and reproducibility points (M1–M4, M6, M8), where I read the full text, both READMEs and all figures; **medium** on the theory (M5), where I checked the proofs for plausibility and consistency with the stated assumptions but did not re-derive every bound.

View File

@@ -0,0 +1,75 @@
# Referee 3 — Round 2 (referee discussion)
Manuscript: *Label registration error in sparse-well seismic property learning: theory, a registration-aware benchmark, and the limits of field validation*
I read R1 (applied geophysicist / QI) and R2 (statistician / measurement error) in full. My round-1 IDs are R3-M1…M8.
---
## 1. Points of agreement
**The three reports converge on one issue: the H2a headline is a tie-quality comparison against under-informed point ties.** R1-M5, R2-M5 and my R3-M1 are the same finding, reached from three directions (practitioner: "a better tie estimator, not marginalization"; statistician: "the point estimate of the same tie model is absent"; benchmark: "the competitor does not use information the candidate is given"). R2's framing is the cleanest: only H2b isolates the role of uncertainty, and that gain is 2–11% at c = 1. R1 adds two things I did not: B3c is described in one line (window, max shift, smoothing, monotonicity, anchor honouring unknown), and no interpreter-style tie is among the competitors. This strengthens my M1 and makes it the editor's first requirement. The remedy all three ask for is the same: a MAP/mode point tie from the same SMC machinery (plus one external or interpreter-style tie), and an abstract that states the tie-quality finding up front.
**R1-M1 and my R3-M8 are the same issue** (lateral model, noise independence across the 3×3 patch, effective SNR), and R1-M1's "inverse crime" table is the right deliverable; it also subsumes R3-M1(iv). R1's extra asks (an anchor-error stress with correlated/biased picks; a rock-physics preset with φ–DT scatter) are well targeted: the paper's own F3 audit says the markers are horizon picks on the same seismic, so the independent N(0, 7²) anchor model is the most favourable assumption in the simulator. I endorse both as cheap S2-style additions.
**R2-M1 and my R3-M6 point at the same evidence (Ctl-GP) from different sides.** R2 shows the population bound cannot decide anything for finite-sample networks at λ = 0.37, and that the Ctl-GP result is a finite-sample augmentation effect the bound does not describe; I argued that the as-run S3-H1 reading (Ctl-GP matches B3d-Sa everywhere at c = 1) is the buried practitioner message. R2's "garden of forking paths" description of the 2×2×3 bound variants is accurate and I endorse the resolution (registered variant in the table, the rest to supplement, no mechanistic sentence in abstract/Discussion/Conclusion). R1-m10 and R2-M1(c) correctly note that 1/B_b values of 0.13 and <0.001 are not bounds.
**R2-M3 strengthens my R3-M3 and sharpens it.** I flagged the margin-free "better" rule and the trivial S2-H2 non-inferiority; R2 computes what I should have: a null pass rate of order 0.1–0.2 for "better", the dependence of all 100 S1 cells on the same 8 realizations and nested training subsets, and that S2-H2 passes at 1.020 and 1.019 against a bound of 1.02 with no interval. R2-M3(e) (percentile bootstrap over n = 8) is my m9 stated properly. R2's "summing passes as if they were independent confirmations" is exactly why I asked for the "9 of 11" to go.
**R1-M6, R2-M4 and my R3-M5 are the same issue in three parts.** R1: the predictors have skill at 7–23 Hz where a 1–3 ms error blurs by < 7%, so population blur cannot explain the 8–22% gains; R2: the registered H1 test had no power at σ = 4 or 8 ms (a no-blur network would give r ≈ 1.06 and ≈ 1.2, inside [0.5, 2]); me: the Berkson half is inferred, never measured, and the bound argument lives at 60–70 Hz where nothing is measured. Together these change the paper's story more than any single one: the theory is verified where it is weak (low f, small σ) and invoked where it is unverified (high f). R2-M4's "report the r that Ĥ ≡ 1 would give" is a reword-only fix; my direct Berkson S8-style test remains the only way to make Highlight 2 a measured fact.
**R1-M7, R2-M7(d) and my Q8 agree on pre-registration wording.** "Hash-locked, self-timestamped, committed afterwards" is not what "pre-registered" means to a reader; R2's short table of timing evidence per protocol is the right fix, and R1's suggestion to deposit the surviving lock files externally is cheap.
**R2-M6 (four senses of "calibrated"; the G-C coverage clause predicted to fail)**: I agree it was a design error that guaranteed the gate's failure; since the field cases are scope-bounding this is reword-only, but it should be named as such. R2-M7(a–c) (Prop. 2 "predicts" → "is consistent with"; the 3.6–4.3 ms crossings are not a test of a necessary condition; the βσ²_post fit is descriptive) are all correct; (a) also meshes with my M1(ii): the 38–53% B4 deficit is a budget/label/hyperparameter artefact as much as non-identifiability.
**R1-M2 (F3 marker provenance; type-II σ_a = 0.4 ms and leave-one-anchor-out z² = 0.21 imply the markers come from a smooth curve)** is a point I did not make and it matters for how "F3-like" c = 1 and σ_a = 7 ms are. I endorse the ask (check NLOG for genuine checkshots; F06-1 kink; sensitivity of the warp prior to dropping F06-1).
## 2. Points of disagreement or pushback
**R1-M4 (T3 should use tolerance or posterior-marginalized scoring; retitle away from "limits of field validation").** I agree with half and push back on half.
- A bounded-lag or tolerance score is insensitive to few-ms shifts *by construction*, and the effect the paper wants to detect is a few-ms registration effect in the seismic band. Scoring with a ±3 ms tolerance would remove the reference-error bias (R1's point) and also most of the signal (Prop. 1 says the methods differ exactly in the band a tolerance smooths over). Reporting N* under such a rule is a fair sensitivity, but it cannot replace the point-reference analysis, and it would very likely show *larger* N*, not smaller. R1 presents it as a route to relaxing the 1 ms requirement; I do not think that follows.
- Scoring against the test well's own tie posterior (R1's option ii) does not remove the bias of Prop. 6: the bias term 2∫Re[(1−Q_r)S_ŷy] is an expectation over the reference error, so averaging over posterior draws of the reference reproduces the same expected bias and only adds a spread estimate. The paper's App. B(c) already does this on F3 and gets 0.06–0.15 p.u. ranges — it quantifies uncertainty, it does not correct it. R1's option (iii), depth-domain or layer-averaged comparison, is an honest alternative but again measures a different (low-frequency) quantity.
- Where I agree with R1: "field data lack them" in the highlights is a statement about three public datasets, and the title/abstract should be scoped to "the public datasets examined" and "point-reference band scoring". That is reword-only and I now include it in my top 5. Also agreed: VSP/checkshot references at 1–2 ms are routine in industry data, so the paper's practical conclusion should be "needs a VSP-grade reference", not "cannot be done".
**R1-M2 ("the motivating magnitude is a straw man").** Partly fair, partly not. The uncited "as is common in learning studies" must be cited or dropped — agreed. But the paper's Sec. 3.1 also shows that the *distributed* OpendTect TD model deviates from the markers by up to 36.5 ms and that a second distributed model is offset by −15 to +41 ms; those are not single-anchor mistakes, they are the vendor-supplied ties an F3 ML user would pick up. So the one-to-several-period error is realistic for a user who takes the project files as given, which is the workflow the introduction describes. I would ask for the single-anchor sentence to be cited or removed and the magnitude argument to rest on the two distributed TD models, not for the motivation to be withdrawn.
**R1-M3(c) and (a) (B1 "not competently set up"; carry the tie comparison through ridge).** The B1 band PCC of −0.02 against a label that is a deterministic function of impedance is indeed suspicious and the one-line description is inadequate; I endorse a full description. But I would not require a "corrected B1" as a condition of acceptance: the paper claims nothing from B1, and the field section is scope-bounding. Likewise carrying the tie comparison through ridge on F3 is a reasonable, cheap robustness arm (the ridge has the best band PCC, 0.24), but with four wells and 126 correlated samples the result will be as descriptive as everything else in App. B. Request, do not require.
**R2-M2 ("remove 'fourth order' from the abstract and highlights").** I agree the headline describes a regime (σf ≪ 0.2) the experiments do not occupy and that the (b) bound explodes outside it. But the statement is a correct asymptotic result and is the reason the bank gain is expected to be small at narrow posteriors — which the data confirm (narrow cells: ratio ≈ 1). I would qualify it ("O(σ⁴) for σf ≪ 1; at F3-like widths and 60–70 Hz the leading term is not dominant") rather than remove it. Minor difference in degree.
**R2-m2 (Cor. 3 proof: "Q has no zero inside the band" is false).** Correct as a mathematical point: cos(πfΔ) vanishes at (2k+1)/(2Δ), i.e. 15.6 and 46.9 Hz for Δ = 32 ms, both in the seismic band. I think the authors meant the open reversal interval, where cos is strictly negative, but the sentence as written is wrong and the incompatibility of a two-mode Berkson error with a generic oracle should be stated. Minor; reword.
**Where the other two are silent and I hold my ground: R3-M2 (hidden truth; σ_a in `analyst.json`).** Neither R1 nor R2 opened the README's §3 ("Test truth is in the package"). This is not a nuance: the manuscript's C2, Sec. 8 and the Conclusion say "hidden truth" three times, and the package gives every submitter the quantity the Discussion calls "the main risk". It remains a required fix (either withhold or rename), and it is the one item that goes to whether the word "benchmark" in the title is earned.
**R3-M3 (fresh realizations for Exp. 3).** Neither R1 nor R2 asked for new realizations; R2 asks instead for null pass rates and per-realization summaries. I accept R2's remedy as the minimum, but note that the generator is deterministic and the full Exp. 3 ran in 11.5 h: re-running S1-H1, S2-H1, S4 and S8 on realizations 16–23 is cheaper than most of what R1 asks for, and it is the only way to call any Exp. 3 verdict a benchmark *result* rather than an extension on seen data. I keep it as a "strongly recommended; required if the paper keeps the verdict counts".
## 3. Issues I missed that the others caught
- **R2-M4 (H1 test power).** Missed. Decision-relevant for the abstract: "matched to within 1%" must become a post hoc description at 7–23 Hz with the no-blur r stated. Reword only.
- **R2-M3(a,b) (null pass rate of "better"; dependence of the 100 cells on 8 realizations and nested subsets).** I flagged the margin-free rule but did not quantify the null rate or name the nesting. Decision-relevant: it removes the evidential value of "44 of 52", "13/13", "91 of 100" as stated. Rerun on existing data (permutation within realization × seed; per-realization summaries).
- **R2-M3(d) (S2-H2 passes at 1.020 / 1.019 against 1.02).** Missed; a pass at the rounding boundary with no interval. Reword + report intervals.
- **R1-M3(b) (per-well z-scoring discards between-well amplitude level; on Volve the error is the between-well level).** I read Sec. 5.6 and called per-well normalization "fine" because it leaks no labels. R1 is right that it may *induce* the no-skill result on Volve. A survey-wide normalization arm is cheap and bears on whether "no method had blind-well skill" is a data property or a preprocessing choice. Moderately decision-relevant (the paper claims no field skill either way, but Sec. 6.7's C1 argument uses the no-skill finding).
- **R1-M2 (marker provenance; σ_a = 0.4 ms type-II and z² = 0.21 imply smooth-curve markers; F06-1 kink; MAD scaling).** Missed. Relevant to how "F3-like" the calibration is; rerun on existing data (prior sensitivity to dropping F06-1) + reword.
- **R1-Q8 (would a plain shift-jitter augmentation of B3c-R labels get the Ctl-GP gain?).** Missed and I think it is the single cheapest decisive control in the whole discussion: if a jitter bank around the *best point tie* matches M2-Sa at c = 1, the uncertainty-specific contribution is nil and the practical advice is "augment". New experiment, small.
- **R2-m2 (proof gap in Cor. 3(b))**, **R2-m8 (the covariance test is a test of shrinkage, expected by construction)**, **R2-m13 (Exp. 1 bank 4–6% worse than its own mean at c = 0)**, **R1-m6 (σ_b = 19 ms in the generator vs 50 ms in registration; which does c scale?)**: all missed; minor to moderate; reword or one sentence each. R1-m6 is worth more than a sentence if c scales the 50 ms value.
- **R2-M6(b) (G-C coverage clause guaranteed failure).** I treated G-C as an honest failed gate; R2 is right that one clause was known to fail before the run, which makes the gate uninformative by design. Reword only, but it should be said.
## 4. Consolidated top-5 the editor should REQUIRE (priority order)
1. **Fair point-tie competitors and the tie-quality reframing** (R1-M5, R2-M5, R3-M1; R1-Q4, R2-Q2). Add a MAP/mode point tie from the same SMC model and one interpreter-style/external tie as disclosed competitors in the reference table; fully specify B3c/B3c-R; give a per-method budget-sensitivity table (R3-M4); state in the abstract that H2a compares registration models and that the uncertainty-specific effect is H2b (2–11%). — **new experiment (small) + reword**.
2. **Inferential honesty of the rules, bounds and headlines** (R2-M1–M4, M7; R3-M3, M5, M7; R1-M6, M7). Report null pass rates of "improves"/"better" by within-realization permutation; replace cell counts over dependent cells with per-realization summaries; state the bootstrap type and its n = 8 behaviour; demote the population-bound comparison to a descriptive post hoc paragraph with the registered variant only; qualify "fourth order", "within 1%" (give the no-blur r), and "pre-registered" (timing-evidence table); drop or re-label "9 of 11". — **rerun on existing data + reword only**.
3. **Benchmark packaging must match the claims** (R3-M2, M8; R1-M1). Either withhold test truth (sealed archive + scoring service, or unreleased seeds) or stop calling it "hidden truth"; add `analyst.json` variants that do not reveal the true σ_a and prior; add the inverse-crime table (what the registration knows exactly/approximately/not at all), the lateral model and the noise structure of the 3×3 patch with the single-trace vs patch Oracle; make the primary score method-agnostic. — **reword + regenerate package (cheap)**; the σ_a-misspecified setting is a **new experiment (small)**.
4. **Separate what Experiment 3 adds from what it repeats** (R3-M3, R2-M3). Re-run S1-H1, S2-H1, S4 and S8 on fresh realizations generated after the lock and report those as the benchmark result; if the authors decline, every Exp. 3 verdict must be labelled extension / non-inferiority / new prediction with per-realization ratios, and all counts removed from the abstract. — **new experiment (≈ one GPU-day), or reword + rerun on existing data as the fallback**.
5. **Scope the field conclusions to what was actually tested** (R1-M3, M4; R2-M6; R1-M2). Add a survey-wide normalization arm on Volve (and F3) and describe or fix B1; report T3 under at least one tolerance score as a sensitivity (not a replacement); retitle/re-abstract "limits of field validation" to point-reference band scoring on the public datasets examined, and say VSP-grade references are the requirement; name the G-C coverage clause a design error; cite or drop "as is common" and rest the magnitude argument on the distributed TD models; give the F3 marker provenance and the warp-prior sensitivity to F06-1. — **rerun on existing data + reword only**.
Strongly recommended but not a condition: the direct Berkson S8-style test (R3-M5) and the shift-jitter augmentation of B3c-R labels (R1-Q8); together they would settle whether anything in the paper beyond tie quality and augmentation is at work.
## 5. Updated recommendation
**Major revision**, unchanged; confidence **high** (raised from high/medium: R2's proof check covers the part I rated myself medium on, and R1's geophysical reading covers the simulator realism I could not judge).
What changed after reading the others. First, the central weakness is now a three-referee consensus with a single, cheap remedy (item 1), which makes the revision path clearer than my round-1 report implied. Second, R2 raised the bar on presentation in a way I had under-weighted: the paper does not merely count passes generously, it repeatedly lets post hoc quantities (bounds, the 1% match, the fourth-order headline) carry conclusions the registered rules cannot support; most of that is reword-only, but it is extensive. Third, R1-M3(b) moved me on the field section: I had accepted "no method had blind-well skill on Volve" as a data property, and it may partly be a normalization choice, so the "neither test could have detected" argument needs that arm before it is used. Nothing moved me toward reject: the audit, the theory as proved, the reproduction package and the candour are real contributions, and every required item is fixable with existing data or modest compute. Nothing moved me toward minor either: as long as the package ships the truth and the true σ_a while the manuscript says "hidden truth" and "σ_a is the main risk", the benchmark claim is not yet earned.

View File

@@ -0,0 +1,183 @@
# Referee report R4 (round 1): contributions and storyline
Manuscript: *Uncertain well ties in learned seismic property prediction: theory, a benchmark with known timing, and requirements for blind-well tests* (draft of 10 November 2026). Journal: *Computers & Geosciences*.
Material read: `paper/main.tex` and all files in `paper/sections/` in include order, `paper/highlights.txt`, `paper/refs.bib`, the seven figures referenced in the text, `benchmark/README.md` and `repro/README.md`. Length and the red TODO boxes are ignored as instructed. Two web literature searches were run to judge the novelty claim (listed in Section 4). No other repository material was consulted.
Line numbers below refer to the `.tex` source files.
---
## 1. Summary
The paper treats the error of a well tie as an error in the *time index* of the training labels rather than in their values, and asks what that does to a seismic-to-porosity regressor, whether training on a tie posterior helps, and what a field test of the question would require. On the theory side it shows that timing errors independent of the data filter the MSE-optimal predictor by the characteristic function of the error (a blur of the seismic band), that the error of a posterior-mean tie has, in a linear-Gaussian idealization, the Berkson structure and therefore sharpens rather than blurs, that absolute timing is unidentified without anchors, that a calibrated bank of posterior labels recovers the oracle's population optimum with only a fourth-order gain over a single tie, and that a misregistered scoring reference biases a comparison of methods, with a necessary tolerance of σ/√2. A single tempered loss (RML) is used to express point-tie training, shift-tolerant losses, soft-DTW and bank training on one footing. On a synthetic generator calibrated to F3 statistics, a first experiment with an anchor-only posterior failed; a second with a sequential Monte Carlo (SMC) tie posterior found that labels at the posterior mean beat the best deterministic tie by 8–22% in seismic-band RMSE, and that a 64-member bank added 2–11% when the posterior was wide. A benchmark of 630 tasks with known true warps, five studies (drift–well-count grid, misspecification, alignment losses, backbone, two-mode error), 21 reference methods and a scorer is released; 9 of 11 locked verdicts passed, with failures under unit-dependent rock physics and a frequency-dependent wavelet phase. A rescoring analysis estimates that a blind-well sign test needs 5–18 wells with an exact reference and more than 40 with a 3 ms reference error. Field tests on F3 and Volve failed their pass rules, and the paper argues that they could not have detected the effect; a Teapot Dome attempt was stopped because no reference of sufficient accuracy exists.
---
## 2. Contributions as I perceive them
**C1. A measurement-error theory for labels placed by an uncertain tie (Sec. 5, App. A).**
(a) *Novelty.* The individual pieces are classical: the characteristic-function filter is the sampling-jitter result (Balakrishnan 1962) restated for a label index; classical versus Berkson error is textbook (Carroll et al. 2006); the identifiability ridge is elementary; the reference-bias proposition is a cross-spectrum identity. What is new is their assembly for this problem, in particular (i) the observation that a posterior-mean tie should produce Berkson-type error and hence *sharpen* the learned predictor, (ii) the fourth-order population bound on what a calibrated bank can gain over a point label, and (iii) the σ/√2 tolerance on the scoring reference. I found no prior work making these points for seismic property learning.
(b) *Evidence.* Prop. blur is tested directly and convincingly (Table `tab:h1`, Fig. `fig:h1`: r = 1.007–1.009 for σ = 4–16 ms over 6.8–22.5 Hz). Cor. twomode is tested directly and convincingly (Fig. `fig:bench_s8`, Table `tab:s8`: measured transfer −0.70/−0.49 against cosine −0.69/−0.49). Prop. ident is tested indirectly (warp RMSE 3.15 → 31.1 ms without anchors, Sec. 6.1 l. 59). Prop. tie(b) (Berkson sharpening) is *not* tested as a sharpening: the exploratory check in Sec. 6.4 (l. 207) only verifies the Berkson correlation structure of the bulk offset. Prop. bank is tested only through a bound comparison that the paper itself calls "not established" (Sec. 6.3 l. 161). Prop. coverage is admittedly untested (Table `tab:theory`).
(c) *Strength of claim.* Fair in the body; **over-firm in the abstract and highlights**, where "the error of a posterior-mean tie sharpens it" (`00_abstract.tex` l. 2) and "Berkson-type tie error sharpens it" (`highlights.txt` l. 2) read as findings rather than as an untested prediction. Note also that the only direct evidence in the paper runs the other way: in the nominal cells the SMC mean is *worse* than the Oracle by an amount that grows with posterior width (Sec. 6.5 l. 275), and the authors acknowledge that the Berkson heuristic predicts no such penalty.
**C2. A controlled test of training on a tie posterior, with a tie posterior that actually contracts (Secs. 4, 6.1–6.4).**
(a) *Novelty.* To my knowledge no published work feeds a time–depth posterior into the training of a property predictor and evaluates against known truth. The SMC tie posterior itself (anchor prior + profiled convolutional likelihood + tempering + ESS) is a competent construction but not a methodological novelty.
(b) *Evidence.* Table `tab:h2a` (ratios 0.78–0.92 at c = 1 with 95% CIs below 1 at 10 and 0 dB), Table `tab:h2b` (8/8 wide cells, Spearman −0.85), Fig. `fig:p2rgrid`. The negative results are reported with equal care: Experiment 1 failed (Fig. `fig:p2phase`), the σ_a arm failed both ways (Table `tab:sigmaa`), the advantage over the anchor mean vanishes at −5 dB.
(c) *Strength of claim.* The paper is honest that "this gain comes from a more accurate tie" (abstract), that most of it is present at c = 0, and that only the bank increment (2–11%) isolates uncertainty. Two things are nevertheless **under-controlled** (see Major 1 and 2): the deterministic competitors are not built from the same tie model by optimisation, so "posterior" is confounded with "better tie model"; and σ_a is known exactly, so the one failure mode that transfers to the field is excluded from every passing cell.
**C3. A benchmark with known true timing (Sec. 3.2, Sec. 6.5, `benchmark/README.md`).**
(a) *Novelty.* Genuine. Existing seismic learning benchmarks register labels to the seismic by construction (Sec. 2 l. 28 is accurate); none ships sparse well labels whose position must be estimated together with the true position.
(b) *Evidence.* 630 tasks, 45,200 reference runs, a scorer applying locked rules, a reproducible manifest, a self-test. The README is clear about formats and splits.
(c) *Strength of claim.* The *data* contribution is under-sold in the manuscript and under-described there (the package is described only in the intro bullet and the availability paragraph; see Major 6), while the *evaluation* contribution is over-sold: the pass rules have no margin for the bank claims and no multiplicity control, the "9 of 11" count sums dependent verdicts on the same eight realizations, and the "hidden truth" wording in `repro/README.md` l. 11 contradicts the manuscript and `benchmark/README.md` (Major 4, Minor 3).
**C4. Requirements for a field comparison of tie methods (Props. reference and tolerance; Sec. 6.6–6.7; App. B).**
(a) *Novelty.* The reference-bias proposition and the σ/√2 rule are new to this literature; the power analysis of blind-well counts is, as far as I know, the first of its kind for tie comparisons. The audit of the F3 wells (PHIE is an affine function of DT at three wells; the "check shots" are horizon picks) is a useful service to everyone who uses F3 for porosity learning.
(b) *Evidence.* Table `tab:t3`, the simulated crossings at 3.6–4.3 ms against σ/√2 = 3.0–5.1 ms, and the two field failures.
(c) *Strength of claim.* Sec. 6.6 labels the analysis "exploratory" and conditions it on "predictors of comparable skill" (l. 373); the Conclusions (l. 10) and Highlight 5 state "accurate to about 1 ms" as a general requirement. The number is derived from one simulator, one skill level and one error model (smooth, independent of the prediction); it should be presented as an order of magnitude from this simulator, not as a requirement.
**C5 (minor). The RML unification lemmas (Sec. 4.5, App. A).** Correct and tidy, but as the authors say, "a device for this comparison". The soft-DTW identity is neat; it is not load-bearing for any result.
---
## 3. Coherence of the storyline
The four-contribution frame of Sec. 1 is carried through Sec. 2 ("Position of this work"), Sec. 6 (opening paragraph), Sec. 7 ("What held") and Sec. 8. Cross-references between numbers in tables, figures and text are consistent wherever I checked (ratios in `tab:h2a` against `fig:p2rgrid`; exceptions counts "91 of 100", "nine exceptions, seven in the two-anchor setting", "44 of 52", "13 families" against the parenthesised and outlined cells of `fig:bench_s1`; the arithmetic of the examples in Sec. 5.1–5.3 and App. A). This is better than most submissions.
Places where the text drifts or two parts disagree:
1. **An experiment lives inside the Theory section.** Sec. 5.1 (l. 64–96) contains a full experiment with a pre-registered statistic, a table and a figure. Sec. 6's opening says "Three predictions of the theory are tested along the way: the blur (Section 5.1)". A reader who goes to Sec. 6 for the experiments does not find this one. Move the blur test to Sec. 6 (as "Experiment 0") or make Sec. 5 explicitly "Theory and its direct tests".
2. **The benchmark as a deliverable has no section.** Contribution 3 is "a benchmark … released as 630 tasks …" (Sec. 1 l. 14), but the main text never describes the package: what a task contains, what the analyst is told (`inputs/analyst.json` includes the true σ_a = 7 ms and the nominal wavelet, rock physics and warp prior), the submission format, the two scoring rules, the splits, and what a user may not do. All of that is in `benchmark/README.md` only. For *Computers & Geosciences* this is the most natural centre of the paper and should have a subsection (Sec. 3.3 or 6.5.0) and a table.
3. **Abstract/highlights firm up two claims that the body hedges.** (i) Berkson sharpening (see C1c). (ii) "~1 ms references" (see C4c). The body's own words are "exploratory" and "under the benchmark simulator" (Sec. 7 l. 47).
4. **Title and README titles disagree.** `repro/README.md` l. 3–5 names the manuscript *Label registration error in sparse-well seismic property learning: theory, a registration-aware benchmark, and the limits of field validation*; `benchmark/README.md` l. 1 is *A registration-aware benchmark for sparse-well seismic porosity learning*. The manuscript title is different. Harmonise.
5. **"Hidden truth" versus "truth is public".** `repro/README.md` l. 11: "630 synthetic tasks with hidden truth". Manuscript Sec. 1 l. 14 and Sec. 8 l. 13: "Because the truth is public, the package supports controlled comparisons, not blind evaluation". `benchmark/README.md` l. 49–51 agrees with the manuscript. Fix the repro README.
6. **Related-work gap 2 versus what was shown.** Sec. 2 l. 34: "None feeds a tie posterior into training and tests the result where the true registration is known (contribution 2)". What is actually established is narrower: labels at the posterior *mean* help, and the bank adds a little when wide. The gap statement is fine; make sure Sec. 7 "What held" uses the same two-part phrasing it uses elsewhere.
7. **Residual internal names.** `B_field.tex` l. 203 "its outcome is not evidence about RML in either direction" uses the loss acronym where the rest of the paper would say "the SMC bank". `C_record.tex` l. 36 and Sec. 7 use ρ⋆ with two subscripts that Sec. 5.3 introduces as "pre-registered" versus "post hoc" labels; the symbols table (`tab:symbols`) lists only ρ⋆.
8. **Experiment order versus design order.** The paper explains (Sec. 6 l. 6) that Experiment 3 was designed after the field tests, yet Sec. 6 presents it before them. That is defensible (the contributions, not the chronology, order the sections), but the reader should be told once more at the start of Sec. 6.7 that the four "conditions" (l. 404) were written after both field tests had failed; the sentence is there but easy to miss.
9. **"Benchmark calibrated to the F3 block" (abstract) versus "the misspecification levels are not calibrated to any field" (Sec. 7 l. 58).** Both are true of different things (statistics versus stress levels); say "built from F3 statistics" in the abstract to avoid the collision.
**Title.** The title fits what is delivered. If anything, "requirements for blind-well tests" promises more generality than Sec. 6.6 supports; "and what blind-well tests require" or "and the power of blind-well tests" would be closer to the evidence. I would not insist.
---
## 4. Related work
**Searches run.** (1) "well tie uncertainty propagated into training labels neural network seismic porosity prediction time-depth posterior" (general web). (2) "label noise OR noisy labels, temporal misalignment registration error regression time series Berkson" (general web). Search (1) returned nothing that feeds a tie posterior into property learning; the authors' "to our knowledge" stands as far as I can tell. Search (2) returned two directly relevant ML papers that the manuscript does not cite.
**Missing bodies of work.**
- *Temporally imprecise labels in machine learning.* Adams & Marlin, "Learning Time Series Detection Models from Temporally Imprecise Labels" (AISTATS 2017; arXiv:1611.02258) model label-timestamp error explicitly and marginalise over it; Nagaraj et al., "Learning under Temporal Label Noise" (ICLR 2025; arXiv:2402.04398) treat time-dependent label corruption and argue static noise-robust losses fail. These are the closest ML analogues of "an error in the time index of the label" and belong in Sec. 2 l. 19–22 beside Mnih & Hinton. The sentence "Work on noisy labels in machine learning mostly treats corrupted class labels" is true of the two surveys cited but no longer of the field.
- *Labels placed by an uncertain registration, medical imaging.* Atlas-based segmentation and registration-uncertainty propagation (e.g. Simpson et al. 2011/2012 probabilistic registration; Risholm et al. 2013 Bayesian registration uncertainty; Luo et al. 2019 on the applicability of registration uncertainty) is a mature literature on exactly the structural problem here: labels defined in one coordinate system transported by an uncertain map into another, with the uncertainty sometimes propagated into downstream training or evaluation. One paragraph would strengthen the positioning and would supply precedents for "propagate the posterior to new wells" (Sec. 7 l. 43).
- *Classical well-tie error analysis.* White & Simm (2003, *First Break*, "Tutorial: good practice in well ties") and Walden & White (1998, *Geophysical Prospecting*) give the standard treatment of tie quality, predictability and timing error; the manuscript's own bib comment (l. 193) says White & Simm was dropped for lack of a full text. A tutorial of that standing should be cited from its published record; it is the reference a *C&G* reader will expect in a paper about tie error.
- *Dynamic time warping for ties and multi-well ties.* Hale (2013) and Muñoz & Hale (2015) are the DTW-tie references most geophysicists know; Herrera & van der Baan is cited through its arXiv preprint with the *Geophysics* version as "abstract only" (`refs.bib` l. 259–268, 633–644). Cite the journal version as primary.
**Misdescriptions or weak points.**
- Sec. 2 l. 14: "for Thiebaud et al. 2024 we read the abstract only" and footnote a in `tab:positioning`: stating in the main text which references were read from abstracts is unusual and reads like an internal audit trail. Keep the marker in the table if the editors accept it; drop the parentheticals from the prose.
- `tab:positioning`: the "Reg. eval." column has a tick only for this work; Mnih & Hinton and Guillon et al. get "tol." Fine. But the "DL" column mixes "✓", "generic", "seg." and "bench.", four different kinds of answer in one column. Split into "Task" and "Learned?" or explain in the caption. Gunning & Glinsky (2006) appeared in *this journal*; worth saying.
- Sec. 2 l. 12: "In the field studies we read in full that work in time, a tie that is taken as given places the labels" is correct but leaves the reader unsure which of the fourteen citations were read in full. Either say which, or drop the qualifier.
---
## 5. Major comments
**M1. The headline comparison does not isolate the Bayesian tie from a better tie model (Sec. 6.3, Table `tab:h2a`; Sec. 4.6, Table `tab:methods`).**
The "best deterministic tie" is one of calibrated sonic, correlation tie, or correlation tie with the SMC-estimated phase. All three are local-correlation or anchor-interpolation ties. The SMC posterior uses a Matérn warp prior, anchors, a profiled convolutional likelihood and a tempering schedule. The natural control is the **MAP (or mode) warp of the same posterior model**, found by optimisation, trained on with S = 1. Without it, the 8–22% cannot be attributed to "a posterior" as opposed to "a better forward model and prior used in any estimator". The paper already says the gain "reflects a more accurate tie"; the missing control would say whether the posterior machinery buys anything over that model's point estimate (the difference between mean and MAP is also where Prop. tie's Berkson argument lives). The Gaussian bank result (Sec. 6.5 l. 321: the SMC mean is 0.99–1.02 of a bank with the same first two moments) suggests the answer may be "little", which would be a clean and useful finding. *Fix:* add a MAP-tie arm to Experiment 2 (or at least to the 10/0/−5 dB cells at c = 1) and to the reference methods of the benchmark; if that is not possible before resubmission, state in abstract, Sec. 6.3 and Sec. 7 that the comparison is between tie *models*, not between point and probabilistic estimation of the same model.
**M2. The anchor uncertainty is handed to every method, and the benchmark has no σ_a misspecification axis (Sec. 3.2 l. 56; Sec. 6.3 l. 106–108; `benchmark/README.md` l. 23–24, 60).**
The σ_a arm is the one failure the paper itself calls "the main risk for transfer to the field" (l. 107), and Sec. 7 item 2 makes "estimate σ_a from independent data" the first practical requirement. Yet in all 630 tasks `inputs/analyst.json` states σ_a = 7 ms exactly, and the misspecification study varies rock physics, wavelet and warp prior but not σ_a (acknowledged in Limitations, l. 63). A benchmark whose premise is uncertain ties should not give the analyst the one number that decides whether the posterior is calibrated. *Fix:* add a σ_a misspecification preset (data generated at 7 ms; analyst told 3.5 and 14 ms, or told a range), or remove σ_a from `analyst.json` and require methods to estimate it from the anchors. The Experiment 2 arm already contains the runs for the 10 dB cell; extending it to the benchmark grid is modest work and would make the S2 study cover the misspecification that matters most.
**M3. The abstract and highlights state Berkson sharpening as a finding, but no sharpening is observed anywhere in the paper (`00_abstract.tex` l. 2; `highlights.txt` l. 2; Sec. 5.3 l. 123–125; Sec. 6.4 l. 207).**
What is measured is (i) the Berkson *correlation structure* of the bulk-offset error of the SMC mean at c = 1 (exploratory, bulk offset only), and (ii) a gap between the SMC mean and the Oracle that grows with posterior width (Sec. 6.5 l. 275), which under exact Berkson error should not exist. The transfer function of the SMC-mean network relative to the Oracle was never estimated, although the machinery exists (the Ĥ estimator of Sec. 5.1 and Fig. `fig:bench_s8`). *Fix:* either estimate Ĥ for the SMC mean versus the Oracle at c = 1 in the three full-anchor settings (saved predictions suffice; no retraining) and report whether |Ĥ| exceeds 1 anywhere, or rewrite the abstract and highlight to "is predicted to sharpen" and move the sharpening claim out of the list of results.
**M4. The decision rules do not support "verdict" language; dependent outcomes are summed (Sec. 6 l. 8; Sec. 6.3 l. 127; Sec. 6.5 l. 220 and Table `tab:benchverdicts`).**
(a) The no-margin rule ("improves if its band RMSE is lower", pass if 4/5 seeds and >4/8 realizations) has a null pass probability well above 0.05 when seed means and realization means are each computed over the *same* eight realizations; the seed condition in particular is nearly automatic once the realization condition holds. The paper's own Sec. 6.6 makes this point about k-of-n rules for field tests but applies such rules to its synthetic verdicts. (b) The S2-H2 statement "≤ 1.02 for all 14 presets × settings" passes at a maximum of 1.020 (Sec. 6.5 l. 318: "0.984–1.020 at 10 dB"), i.e. at the threshold. (c) "Nine of the eleven verdicts passed" counts verdicts on the same realizations and SMC particles as if independent. (d) Spearman p-values over 100 cells (l. 278) and over 16 cells (l. 127) treat nested cells (N = 2 ⊂ 4 ⊂ 8 ⊂ 16, same realizations) as independent; the "one-sided permutation within families" helps for one of them. *Fix:* report the null pass probability of each rule under the actual dependence (a permutation of method labels within realization × seed would do), report effect sizes with their realization-level bootstrap CIs as the primary evidence (as the tables already do), and replace "9 of 11" with a sentence per study. Say explicitly that the margin rule's "or band PCC +0.05" disjunction makes it easier, not harder, to pass.
**M5. The pre-registration vocabulary outruns the record (Sec. 6 l. 6; App. C l. 8).**
The paper calls a rule "pre-registered when it was written into a protocol file whose SHA-256 hash was recorded before the main run", by the authors' own scripts; Experiment 3's protocol was committed during its runs, the field protocols after theirs, and Experiment 2 was "a new pre-registration, designed after the first failure". None of this is hidden, and the disclosure is commendable, but the word "pre-registered" carries a specific meaning (a time-stamped registration with a third party). *Fix:* use "hash-locked before the run" throughout and reserve "pre-registered" for a claim that was registered externally, or state once in Sec. 6 that all registrations are self-certified and then use "locked" consistently. Consider depositing the protocol hashes with the preprint or on OSF before resubmission, which would retroactively give them an external time stamp.
**M6. The released package and the reproduction package deserve a section in the body (Sec. 1 l. 14; Sec. 8 l. 13; `benchmark/README.md`; `repro/README.md`).**
See Sec. 3 item 2. For this journal, a table listing the task contents (`t_seis_ms`, `train_seis`, anchors, `analyst.json` fields), the splits, the scoring rules and the reference methods with their *paper names* is required reading, not supplementary. In addition: (i) the README uses repository codes (B3b, B3c-R, B3d-Sa, M2-Sa, Ctl-GP, PM2/BK2/HM2) and the paper uses descriptive names; the mapping exists only implicitly in the README's method table. Add an explicit two-column mapping in the README *and* in App. C. (ii) `repro/README.md` l. 11 says "hidden truth" (see Sec. 3 item 5). (iii) The repro README's pipeline table refers to "Sec. 6.1", "Sec. 6.7", "App. B" of the *old* manuscript structure; check every section pointer after the reorganisation. (iv) Code licence, deposit DOIs and the Volve/F3 licence combination are TODO; they must be settled before acceptance, and the combined-licence question in `repro/README.md` l. 50–53 (CC BY-SA 3.0 tables mixed with CC BY-NC-SA 4.0) is a real compatibility problem, not a formality.
**M7. The scaled-warp-prior misspecification barely misspecifies what the registration sees (Sec. 3.2 l. 65; Sec. 4.1 l. 14–16; Sec. 6.5 l. 317).**
Generation uses σ_b = 19 ms; registration fixes σ_b = 50 ms; the "mild" drift preset multiplies σ_b by 3, to 57 ms, which "exceeds the value fixed in the registration" by 14%. So on the bulk-offset axis the nominal cells are already misspecified in the conservative direction and the "misspecified" preset is nearly nominal for the registration. That the drift axis is the one that passed is therefore less informative than Table `tab:benchverdicts` suggests, and the Conclusions' "held … under the milder of two misspecified warp priors" (l. 8) should be qualified. *Fix:* report, for each warp preset, the ratio of the generating to the registration hyperparameters, and either add a preset in which the registration prior is *narrower* than the truth (the dangerous direction) or say that only the benign direction was tested.
**M8. Prop. tie(b) and the sharpening heuristic rest on assumptions the setting may not satisfy; state them where the claim is made (Sec. 5.3 l. 123–125, 143–144; App. A l. 101–116).**
(a) Berkson independence of ε from D given X is asserted for a linear-Gaussian model; the warp enters the time error through ∫DT e^{g}, so even for the bulk offset the time error is only approximately the posterior error of b when g has posterior spread. (b) The SMC target is tempered and the phase is a plug-in grid estimate, so û is not the posterior mean of any stated posterior. (c) On F3 the label is an affine function of the sonic that also defines the time axis (Sec. 3.1), so y and the error are not independent in either direction. The body says each of these somewhere, but the sentence "The Berkson structure is the natural idealization for a tie computed as a posterior mean" (l. 125) is what readers will quote. *Fix:* qualify that sentence in place and in the abstract; the self-consistency condition on S_m decaying faster than e^{−4π²σ²f²} (App. A l. 110) should be stated in Sec. 5.3 as well, since it is what makes the Gaussian Berkson transfer physically dubious at 60–70 Hz, where Sec. 5.3 l. 141 then evaluates it.
---
## 6. Minor comments
1. `00_abstract.tex` l. 2: "at three noise levels" — at −5 dB the ratio was 0.915/0.923, above the 0.90 margin, and the cells passed on PCC. The abstract's "8–22%" is correct as a range of ratios; say "by 8–22% (the smallest gains passing on correlation rather than RMSE)" or drop the −5 dB cells from the range.
2. `01_introduction.tex` l. 6: "up to 14–66 ms" is an odd construction ("up to" with a range); "by 14 to 66 ms, depending on the well".
3. `repro/README.md` l. 11 "hidden truth" (see M6 ii).
4. `03_data.tex` l. 35: "A second set of model files is offset from the check-shot tables" — the next sentence then says the check-shot tables *are* the markers. Say "from the markers" to avoid a one-sentence contradiction.
5. `03_data.tex` l. 54: "averaging over the patch can raise the effective SNR by up to a factor of nine in power" — only if the signal is identical across the nine traces, which it is not after lateral variation; say "at most".
6. `04_method.tex` l. 25: the tempering ω = 1/ν from residual autocorrelation "at the best anchor-only sample" — give the typical value of ω as you do for λ.
7. `04_method.tex` l. 60: τ_c ≈ 2.7–2.9 "samples" and λ ≈ 0.36–0.37 — fine, but then App. C l. 43 reports effective bank sizes of 3.5–28 of 64, which means the main-text bank loss is far from the λ → 0 regime that the theory (Prop. bank) analyses. Say this in Sec. 4.5, not only in Limitations.
8. `04_method.tex` l. 100: "Every method selected 125, the smallest candidate, and the candidate set was not extended" (TCN). A method that selects the edge of its grid has not been tuned; say so in Sec. 6.5 "backbone" rather than in App. C.
9. `05_theory.tex` l. 60: "keeps less than 7% of the seismic-band variance" — state that this uses the F3 *seismic* spectrum as weight, which is not the predictor's spectrum (Table `tab:bandspectra` shows the predictor's power sits below 25 Hz).
10. `05_theory.tex` Table `tab:theory`, row Prop. tie: "exploratory: Berkson at F3-like drift" — "structure consistent with Berkson for the bulk offset at c = 1 (exploratory)".
11. `05_theory.tex` l. 105: "(A3) holds exactly … for a fully convolutional network … and approximately for the CNN–GRU" — a bidirectional GRU is not shift-equivariant at window edges and its hidden state carries absolute position; "approximately" deserves one sentence of justification or a reference to the empirical ridge (the warp RMSE 31 ms without anchors is that evidence; cite it here).
12. `06_experiments.tex` l. 8: define "macro ratio" once (ratio of means, or mean of ratios?). Table `tab:p2` gives 0.735/0.716 = 1.027 while l. 17 says 1.025 for N = 4, so the two differ; say which is used.
13. `06_experiments.tex` l. 84: "by 8–9% at −5 dB" and Table `tab:h2a` "0.915, 0.923": consistent, but the sentence before ("beat the best deterministic tie in all three full-anchor settings") should say "under the margin rule, on PCC at −5 dB".
14. `06_experiments.tex` Table `tab:h2b`, footnote ‡: the pre-registered bound grid stops at 6 ms, so the entry at σ_post = 11.49 ms is evaluated at the grid edge; the caption explains, but the body's "7 of the 8 wide cells" (l. 159) uses that entry. State that the count is 6 of 7 interpretable cells plus one at the grid edge.
15. `06_experiments.tex` Fig. `fig:h2b`(b): only the classical bound is on the x-axis; the Berkson bound, which the text says is the applicable one, is not plotted. Add it (a second panel or hollow markers).
16. `06_experiments.tex` l. 164: "closed 27–46% of the gap" — from Fig. `fig:p2rgrid` the 0 dB cell reads (1.08−1.04)/(1.08−1.00) ≈ 50%; presumably rounding. Give the unrounded ratios in App. C.
17. `06_experiments.tex` l. 220 and Table `tab:benchverdicts`: "As worded / As coded" is an honest device, but a table of pass/fail without effect sizes invites the counting the authors elsewhere deprecate; add the ratio and CI columns, or point each row to its table.
18. `06_experiments.tex` l. 288: "A check that needs no truth is the disagreement between the SMC mean warp and a correlation tie built with the statistical wavelet, which we did not test" — the saved warps exist; the check is a table of warp differences in the nominal versus wavelet-phase cells and would take minutes. Do it.
19. `06_experiments.tex` l. 364: the reference-error model ε_ref = a + bx includes a stretch, whereas Prop. reference assumes a constant shift; the mismatch is acknowledged at l. 367 but the proposition's statement (App. A l. 220) should say "constant over the window" more prominently, and Sec. 6.6 should say what fraction of the 1.04 σ_ref RMS is stretch.
20. `06_experiments.tex` Table `tab:t3`: the "ICC" column has 0.00 for three cells and 0.45 for one; with eight realizations an ICC estimate of 0.00 is a truncation at zero, not a measurement. Say "≤ 0" or give the interval.
21. `06_experiments.tex` l. 370: "A one-sided sign test at α = 0.05 cannot reject at all with four wells, because its smallest attainable p-value is 1/16" — correct and worth a bold line in Sec. 7, since it alone disposes of the F3 pass rule.
22. `06_experiments.tex` l. 414: "152 wells inside the 3-D survey with density logs across a common target interval" — "inside" the survey outline or within its full-fold area? Specify.
23. `07_discussion.tex` Table `tab:lessons`: a strong table. Row "Anchor uncertainty halved or doubled": add that σ_post *decreased* under the wrong-by-a-factor-2 arm (0.92 ms at 14 ms versus 0.59 at 7 ms is an increase; 2.52 at 3.5 ms a larger one) — Table `tab:sigmaa` shows width does not order with σ_a monotonically, which deserves a comment.
24. `07_discussion.tex` l. 42: "Once the posterior exists, the bank adds little training cost: the network is evaluated once per window, and only the likelihood is evaluated for each of the 64 labels" — but the SMC posterior with 1024 particles × 8 slice moves per tempering step is the cost; give wall times (the repro README has them: minutes per well). Readers will want to know what the posterior costs relative to a correlation tie.
25. `07_discussion.tex` l. 49: "Check shots or a vertical seismic profile can in principle meet this requirement once their datum and statics are reconciled with the seismic; we did not test their accuracy." The Volve appendix does contain one such comparison (picks within −6.1 to +2.3 ms of the VSP; marker-calibrated sonic within −2.4 to −0.8 ms at F-11 T2, `B_field.tex` l. 157). Use it here as the one data point on reference accuracy you have.
26. `08_conclusion.tex` l. 10: "accurate to about 1 ms" — see C4c; "of the order of 1 ms in the simulated cases".
27. `A_proofs.tex` l. 85: "In a Gaussian approximation this conditional variance is at most the marginal variance of β, by the law of total variance" — correct; but the main text (Sec. 5.2 l. 105) says "the marginal spread … is at least as large", which reads as if it were an additional fact. Fine; just make the wording match.
28. `A_proofs.tex` l. 154 (Cor. twomode proof): "Q has no zero inside the open interval 1/(2Δ) < |f| < 3/(2Δ)" — correct for cos(πfΔ), whose zeros are at the interval's endpoints; but "at its zeros the identity forces m̂ = 0" is a strong statement about the oracle's spectrum at two specific frequencies and should be flagged as the self-consistency condition it is.
29. `A_proofs.tex` Prop. bank(b): calibration "for the window log-likelihood of every network … that depends on the data only through X" — in the actual training the network is not a fixed function of X but is being fitted on D's labels; the population statement is fine, but say "for a fixed θ".
30. `B_field.tex` l. 10: "No learned model beat a depth–time trend in total RMSE" is the single most important sentence about F3 for a practitioner and is buried in an appendix; one clause in Sec. 6.7 would be fair.
31. `B_field.tex` l. 116: "Nine of the other eleven variants had lower macro band RMSE than the SMC bank" — i.e. almost any change helps; this is strong evidence that F3 band RMSE is noise, and it supports the claim in Sec. 7 l. 54 that "the F3 band score was insensitive to the timing of the labels" better than the two contrasts cited there.
32. `B_field.tex` l. 155: "Its trace headers carry an invalid time scalar that standard readers apply to the start time, which shifts every sample 8 ms late" — valuable; put it in a footnote in Sec. 3 or the Volve data availability so other users find it.
33. `C_record.tex` l. 46: the λ → 0 arm "kept 55–63% of the gain of the SMC bank over the SMC mean" at c = 1, and MSE on the mean label was 7.6–10% *worse* than the λ → 0 bank. The second result is interesting (the mean label is not the λ → 0 bank in finite samples, contrary to the population statement of Prop. bank(a)) and deserves one sentence in Sec. 6.4 rather than only here.
34. `refs.bib`: entries `gneiting2007scoringrules`, `kendall2017uncertainties`, `lakshminarayanan2017deepensembles`, `ravasi2020pylops` are never cited. CRPS (Sec. 4.7) should cite Gneiting & Raftery; the deep-ensemble σ² = mean σ_s² + Var μ_s formula (Sec. 4.5 l. 100) should cite Lakshminarayanan et al.; if PyLops is used for the impedance inversion baseline, cite it. `herrera2012automatedtie` is an arXiv preprint cited as primary over the *Geophysics* paper. `pauli2011composite` and `ribatet2012composite` carry "not read in full" annotations; the composite-likelihood magnitude adjustment is standard and can be cited from Varin, Reid & Firth (2011, *Statistica Sinica*) instead.
35. `tab:methods` footnote †: the composite-loss weights (0.60, 0.05, 0.10, 0.10, 0.20) have no provenance; say where they come from (a thesis baseline? a prior paper?).
36. Figures: `p2_h1.pdf`(a) is clear; `p2_phase.pdf` would benefit from the Oracle ratio in a corner of each cell; `p2r_grid.pdf` colour scale clipped at 2.0 while cells reach 3.15 — print the clipped cells in a different colour or add a note in the cell; `bench_s1.pdf` is dense but legible; `bench_s8.pdf` is excellent; `td_drift.pdf` could mark the anchors used (the 9–11 per well).
37. Notation: σ_post is defined as w_90/3.29 averaged over the window and wells (Sec. 4.3 l. 36) but is used both for a cell (Table `tab:h2b`) and for a single well (Volve). Say which averaging applies at each use.
38. Throughout: "SMC mean" and "SMC bank" are good names; "Phase-est. corr." in tables versus "phase-estimated correlation" in text is fine; "anchor mean" (a posterior mean of the anchor posterior) could be confused with "mean anchor"; consider "anchor-posterior mean".
---
## 7. Scores (1 poor – 5 excellent)
- **Novelty: 4.** The framing (time-index label error, Berkson posterior-mean tie, reference tolerance) and the benchmark are new in this literature; the mathematical ingredients are classical and two relevant ML literatures are missed.
- **Technical soundness: 4.** The proofs are correct as far as I checked and the experiments are carefully controlled; the pass rules, dependent "verdict" counts and the missing MAP-tie control are the weak points.
- **Consistency of claims with evidence: 4.** The body is unusually scrupulous; the abstract, highlights and conclusions firm up two claims (Berkson sharpening; "about 1 ms") beyond what was shown, and "9 of 11" invites a reading the authors elsewhere reject.
- **Clarity and organization: 3.** Individual paragraphs are clear, but the paper is very long and heavily nested; an experiment sits in the Theory section, the released package has no section, and the reader must hold many hedged partial results at once.
- **Storyline coherence with the stated contributions: 4.** The four-contribution frame is carried through consistently; the drifts are at the level of emphasis and of supplementary documents (titles, "hidden truth"), not of substance.
- **Reproducibility: 4.** Hash-locked protocols, manifests, a clean-room verification and a scorer are exemplary in design; nothing is yet deposited, the code licence is undecided, and the combined F3/Volve licence is unresolved.
- **Relevance to *Computers & Geosciences*: 4.** A benchmark, a scorer and a reproduction package are squarely within scope and the audit of F3 is useful to the readership; the paper currently reads more like a statistics paper with software attached than a *C&G* paper with statistics attached, which the restructuring under M6 would fix.
---
## 8. Recommendation
**Major revision. Confidence: high.**
The deciding issues are:
1. **M1** — the headline 8–22% gain compares a Bayesian tie model against cruder deterministic ties, so the claimed role of the *posterior* is confounded with a better tie *model*; a MAP-tie arm (or an explicit retreat of the claim) is needed.
2. **M2** — the benchmark hands every method the true anchor uncertainty, the one parameter whose misspecification the paper itself identifies as the main field risk; the misspecification study should include it.
3. **M3/M4** — the abstract and highlights state Berkson sharpening as a finding and "about 1 ms" as a requirement, and the verdict counting sums dependent, margin-free pass rules; both should be brought in line with the body's own, more careful, language.
What is done well, and should be kept: the frank reporting of every failure with its cause and lesson (Table `tab:lessons`), the F3 well audit, the direct tests of the blur and the two-mode reversal, the reference-bias proposition and its worked example, and the reproducibility apparatus. With M1–M4 and M6 addressed, and M5, M7, M8 and the related-work additions handled in text, this would be a strong contribution to the journal.

View File

@@ -0,0 +1,251 @@
# Referee report R5 (round 1)
**Manuscript:** *Uncertain well ties in learned seismic property prediction: theory, a benchmark with known timing, and requirements for blind-well tests*
**Journal:** Computers & Geosciences
**Material read:** `paper/main.tex` and all included sections (00–08, A, B, C) in order, `paper/highlights.txt`, `paper/refs.bib` (as cited), the seven figures referenced in the text (rendered with Ghostscript), `benchmark/README.md`, `repro/README.md`.
**Web searches used (3):**
1. "well tie time-depth uncertainty propagated into machine learning porosity prediction training labels". No prior work found that feeds tie uncertainty into training. This supports the novelty statement.
2. "core-to-log depth matching misalignment training labels machine learning petrophysics dynamic time warping". This found a close petrophysical analogue that the paper does not discuss (depth-shifting core to log before training ML models; Ezenkwu et al., *Petrophysics* 2023; RDDTW, *Petrophysics* 2024; a 2019 AAPG ACE abstract on DTW depth-shifting for ML training sets).
3. "learning from misaligned labels registration noise segmentation OpenStreetMap…". This found Fobi et al. (ACM COMPASS 2020, arXiv:2005.13180) and MapRepair (arXiv:2007.12470), later work in the line of Mnih & Hinton (2012).
---
## 1. Summary
The paper studies what happens when the training labels of a seismic-to-porosity network are placed in two-way time by an uncertain well tie. It frames tie error as an error in the *time index* of the label. It derives (Sec. 5, App. A) the following results:
- A timing error independent of the data convolves the MSE-optimal predictor with the error density (Prop. 1).
- Without anchors, absolute timing is not identified for shift-equivariant networks (Prop. 2).
- Classical and Berkson structures of the tie error predict blur and sharpening respectively (Prop. 3).
- A calibrated bank of posterior labels has the oracle's population optimum, but its population gain over a single tie is of fourth order in the tie error (Prop. 4, Eq. 9).
- A two-mode error reverses the sign of part of the band (Cor. 3).
- A misregistered blind-well reference biases method comparisons. To leading order, the reference error must satisfy σ_ref < σ/√2 (Prop. 6, Cor. 4).
A unifying tempered loss (RML_λ) is used to put point-tie training, shift-tolerant losses, soft-DTW and posterior banks on one footing. Experiments use a synthetic generator built from F3 statistics. Experiment 1 (anchor-posterior banks) failed. Experiment 2 was redesigned after that failure and uses an SMC tie posterior. It reports that labels at the SMC posterior-mean warp reduce seismic-band RMSE by 8–22% against the best deterministic tie, and that training on a 64-particle bank adds 2–11% when the posterior is wide. Experiment 3 maps where these results stop: drift × well count, three misspecification axes, anchor-free losses, a second backbone, and a two-mode error. A detectability analysis rescores saved predictions against perturbed references and estimates how many blind wells are needed. Two field tests, F3 and Volve, both failed their pass rules. The authors argue that neither could have detected the effect. A Teapot Dome inventory was stopped because no adequate reference existed. The benchmark (630 tasks, truth public, 45,200 reference runs, scorer) and a reproduction package are announced.
## 2. Contributions as I perceive them
### C1. Theory of tie error in training labels
(a) *Novelty.* Moderate. The ingredients are classical: errors-in-variables (Carroll et al.), Berkson vs classical error, sampling jitter (Balakrishnan 1962), and the degradation of synthetic–seismic coherence by misties in the well-tie literature (White 1980; Walden & White 1984, not cited). The proofs are short and elementary. The value lies in transposing these ideas to the time index of a learned label and in deriving consequences specific to the problem: Berkson sharpening, the fourth-order bank gain, the two-mode band reversal, and the reference tolerance. Corollary 4 and Proposition 6 are the most practically useful results.
(b) *Evidence.*
- Prop. 1 is confirmed in a controlled experiment (Table 5, Fig. 1): r = 1.009/1.009/1.007 at 4/8/16 ms. The test covers only 6.8–22.5 Hz, and A1 holds there by construction.
- Cor. 3 is confirmed (Table 13, Fig. 5): the measured transfer of the midpoint label matches cos(πfΔ) closely.
- Prop. 2 is supported only indirectly (anchor removal, Sec. 6.1).
- Prop. 3 (Berkson sharpening) is *contradicted* where testable: App. C, "Analyses added after review", reports blur (geometric-mean transfer 0.65–0.99), with six of ten intervals excluding 1 from below and none from above.
- Prop. 4 does not explain the main empirical bank gain. Measured gains exceed the classical bound in 7/8 wide cells (Table 7), and the authors call the gain "an empirical regularity … whose source is not identified".
- Prop. 5 (coverage) is untested.
- Prop. 6/Cor. 4 are checked approximately in an exploratory rescoring (crossings 3.6/3.8/4.3 ms against σ/√2 = 3.0/4.1/5.1 ms).
(c) *Claim strength vs evidence.* Mostly appropriate in the body, where Table 3 is an honest summary. However, the abstract, the highlights ("Berkson-type error should sharpen it") and the Introduction/Conclusion ("no sharpening was detected") understate a negative result. Where the test had power, the network trained on posterior-mean labels was *blurred*, which is the opposite of the prediction. See M2.
### C2. A controlled test of training on a tie posterior
(a) *Novelty.* Genuine. I am not aware of, and my search did not find, prior work that trains a seismic property predictor on samples from a tie posterior and evaluates it against the true registration. The RML_λ unification is, by the authors' own description, a device. Its lemmas are near-tautological (S = 1 gives the NLL; log-sum-exp sandwich; soft-DTW as a soft-min over paths), so I do not count it as a contribution.
(b) *Evidence.* Table 6 (posterior-mean claim), Table 7 (bank claim), Table 8 (σ_a arm), Fig. 3 and Fig. 4. The design is careful: methods differ only in labels, budgets come from development realizations, rules are locked before the runs, and Experiment 2 uses fresh realizations. The bank claim at N = 16 is well supported: all eight wide-cell intervals lie below 1 (Table 7), and the effect extends across the 100-cell grid (Fig. 6b).
(c) *Claim strength.* The posterior-mean headline (8–22%) is measured against a competitor set that is weaker than the text suggests. See M1. In Fig. 4b, the calibrated sonic, which interpolates anchors with 7 ms pick noise, sits at 1.82 times the Oracle at 10 dB *with zero drift*. The anchor-only posterior mean, the natural "smoothed" point tie with the correct σ_a, is at 1.08 there. Against the anchor mean, the advantage holds only at 10 dB (Table 6, last column). This qualifier is in the Introduction but not in the abstract or highlights. The "2–11%" bank increment is real, but most of it is reproduced by a Gaussian bank with the posterior's first two moments (Sec. 6.4; App. C). "Training on samples from the posterior" therefore overstates what was shown to matter; "label augmentation at the posterior's spread" fits the evidence better at c = 1.
### C3. A benchmark with known timing
(a) *Novelty.* Real within geoscience ML. Existing benchmarks register labels by construction (F3 facies, OpenFWI, FaultSeg3D), and none supplies sparse well labels with an uncertain tie together with the true tie.
(b) *Evidence.* Tables 2, 11 and 12; the README; manifests; the scorer; reference results.
(c) *Claim strength.* Appropriately hedged: the truth is public, so the package is "for controlled comparisons, not blind evaluation". Two limitations reduce its value as a benchmark, and the abstract and conclusion should state them.
- The single most decisive stress found in the paper, a misspecified anchor uncertainty (Table 8), *cannot be tested*, because `analyst.json` gives the true σ_a = 7 ms in every task. See M5.
- The nominal tasks use the registration's own rock physics, wavelet family and warp-prior family, and the training AI log is computed with the nominal rock physics. A method that has the generator's likelihood is close to an oracle posterior on most tasks.
### C4. Requirements for a field test
(a) *Novelty.* Good. The observation that reference error biases rather than merely adds variance (Prop. 6), and the √2 tolerance (Cor. 4), are useful and, to my knowledge, not stated before in this form for blind-well validation of learned predictors. The F3 well audit (Table 1: PHIE is a linear function of DT at three wells; the "check shots" are horizon-tie markers) is a valuable service to the many studies that use F3.
(b) *Evidence.* Table 14 (exploratory), Sec. 6.7, App. B.
(c) *Claim strength.* The requirements ("≈1 ms", "5–18 wells") are presented as general guidance but are conditional on several things: the effect size of the synthetic benchmark (81–97% per-well win rate), a *sign test* (the least powerful paired test), a smooth reference-error model, and ICCs estimated from 8 clusters with no uncertainty attached. See M4.
## 3. Coherence of the storyline
The four-contribution structure is now followed consistently: abstract, Introduction (contribution list and roadmap), Related Work (four-gap Position paragraph), the openings of Sec. 3/5/6, Discussion ("What held") and Conclusions. The title fits the content. One mismatch remains: Experiment 3 is labelled as serving "contribution 3", but its results (misspecification failures, extension to c = 1.5, TCN) are results about training on a tie posterior (contribution 2). Contribution 3 is the released artefact. This is a framing issue, not an error.
The main disagreements between parts are these:
1. **Sharpening.** The abstract presents the Berkson prediction as part of the theory, with no outcome. The Introduction and Conclusion say "not detected". Sec. 6.4 and App. C show blur where the test had power. The highlight "Berkson-type error should sharpen it" reads as an endorsed result. (M2)
2. **Competitor strength.** The abstract gives 8–22% against the best deterministic tie and attributes it to "a more accurate tie model". It omits that against the anchor-only posterior mean the gain held fully only at 10 dB (0/2 cells at −5 dB). The Introduction states this. (M1)
3. **Bank gain and theory.** The abstract places "population gain … fourth order" next to "training on samples from the posterior added 2–11%". A reader will infer that the theory accounts for the gain. The body says it does not, because the gains exceed the classical bound and are unexplained, and the tested bank was neither calibrated nor near λ → 0 (effective members 3.5–28 of 64). (M3)
4. **Misspecification failures.** The abstract omits that under a frequency-dependent wavelet phase the posterior was confidently wrong (cov90 = 0.10–0.17) and *worse* than a cruder tie, and that a truth-free check did not reveal it. For a practitioner this is arguably the most actionable finding in the paper.
5. The power-analysis numbers in the abstract are stated without their conditioning on the benchmark effect size and on a sign test.
## 4. Related work
The section is extensive and generally accurate. In the places I could check (Mnih & Hinton 2012; Adams & Marlin 2017; Luo et al. 2019; Balakrishnan 1962; Buland & Omre 2003; Gunning & Glinsky 2006), the descriptions are fair. Missing bodies of work:
- **Age–depth model uncertainty in paleoclimate and geochronology.** This is the closest structural analogue and is absent. A monotone depth→time map is anchored by noisy dates. Bayesian age–depth models produce posterior ensembles (e.g. Haslett & Parnell 2008, *JRSS-C*; Blaauw & Christen 2011, *Bayesian Analysis*, "Bacon"). Those ensembles are propagated into downstream regression and spectral analysis (e.g. McKay, Emile-Geay & Khider 2021, *Geochronology*, geoChronR). The attenuation of high-frequency variance by age errors is documented (e.g. Comboul et al. 2014, *Climate of the Past*). The paper's warp prior + anchors + bank is formally the same construction, and Prop. 1 has a direct counterpart there. At minimum this must be cited and the difference stated (a learned predictor, and a Berkson-type estimated tie).
- **Well-tie coherence and timing error.** White (1980, *Geophys. Prospect.*, partial coherence matching) and Walden & White (1984, *Geophys. Prospect.*) analyse how misties and stretch reduce high-frequency coherence between synthetic and seismic. This is the well-tie precedent for Prop. 1 and Cor. 4 and is more relevant than sampling jitter.
- **Core-to-log depth matching for ML training sets.** In petrophysics, core labels are depth-shifted to logs, by DTW, constrained DTW, correlation-optimized warping or learned methods, before log-to-core models are trained (e.g. Ezenkwu et al., *Petrophysics* 64(1), 2023; RDDTW, *Petrophysics* 2024). The problem is the same registration problem in depth, and the community treats the shift as exact.
- **Marginalizing over alignments in sequence learning.** CTC (Graves et al. 2006) and HMM-based training marginalize the likelihood over monotone alignments. This is the λ = 1 case of RML and the best-known precedent for the soft-DTW identity. One sentence suffices.
- **Misaligned labels in remote sensing after Mnih & Hinton.** Fobi et al. (2020) correct misregistered OSM footprints with an alignment network before segmentation, and MapRepair (2020) does so jointly.
- **Bayesian inversion with uncertain layer times**, in this journal: Gunning & Glinsky (2004, *Computers & Geosciences* 30, 619–636, "Delivery") carry time uncertainty through model-based inversion. It is worth contrasting with "no learning step uses the posterior".
Minor misdescription risk: Table 4 lists DILATE under "RML with anchor-free banks" (Sec. 4.7 opening), but DILATE adds a temporal-distortion term and is not an instance of RML. Say "related to" instead.
## 5. Major comments
**M1. The headline posterior-mean gain is measured against a weak competitor set; the same-information point tie is missing.**
*Location:* Abstract; Introduction, paragraph after the contributions; Sec. 6.3, Table 6; Fig. 4; Conclusions, paragraph 2; highlights.
*Why it matters:* At c = 0, where the true warp has no drift, the calibrated sonic is 1.82× the Oracle at 10 dB, N = 16 (Fig. 4b), and the correlation ties are 1.29–1.30×. This is the cost of passing exactly through anchors with 7 ms pick noise, or of maximizing local correlation without a prior. A careful analyst who knows σ_a would fit a smooth drift by least squares. That is essentially the anchor-only GP posterior mean, which sits at 1.08× at c = 0. The text concedes that most of the gain is present at c = 0 and that this is "a comparison between tie models", and the Introduction says the advantage over the anchor mean "held fully only at the highest SNR". The abstract, highlights and conclusions still report 8–22% against the weaker set without that qualifier. "With dense anchors of known uncertainty" does not tell the reader that the competitors were not given that uncertainty.
*Fix:*
(i) In the abstract and conclusions, report the comparison against the anchor-only posterior mean alongside the 8–22%: holds at 10 dB, 1/2 cells at 0 dB, 0/2 at −5 dB with ratios 0.98/0.97. Or define the headline competitor as the best of the deterministic ties *and* the anchor mean.
(ii) Add, or explicitly justify omitting, a point tie that uses the same information as the SMC posterior: the MAP warp of the same tempered target, or an anchor-only least-squares drift fit with known σ_a and no exact interpolation. This needs only registration runs plus training of one method per cell, on existing realizations.
(iii) In Sec. 4.8/Table 4, state plainly that the calibrated sonic interpolates noisy anchors exactly, and give its c = 0 penalty.
**M2. The sharpening prediction (Prop. 3b) was contradicted, not merely "not detected", and the Berkson "test" cannot establish the structure that Prop. 3b needs.**
*Location:* Abstract (sentence 3); highlight 2; Introduction, contribution 1 ("this sharpening was not detected"); Table 3; Sec. 5.3 last sentence; Sec. 6.4 first two bullets; Conclusions, paragraph 1; App. C "Sharpening".
*Why it matters:*
(a) App. C reports intervals excluding 1 *from below* in six of ten cells and from above in none, with predicted values of 1.003–1.214. That is evidence against the prediction in the regime tested.
(b) The evidence for "Berkson structure of the bulk offset" is Cov(b⋆ − b̂, b̂) ≈ 0. For any conditional mean b̂ = E[b⋆ | D], this covariance is zero *by construction*, whatever the dependence structure. The check therefore shows only that the SMC mean behaves like a posterior mean. Prop. 3(b) requires the error to be *independent* of D given X. That fails whenever the posterior variance depends on the data, for example a wider posterior where the seismic is weak, which is exactly the heteroscedastic situation of a nonlinear tie. The observed blur is consistent with that failure.
*Fix:* Reword the abstract, highlights, Introduction and Conclusion to "predicted to sharpen in a linear-Gaussian model; where testable, the trained network was instead blurred relative to the Oracle". In Sec. 5.3/6.4, state that zero covariance with b̂ is implied by mean-unbiasedness and is not a test of independence. Add a test of independence that has power, for example whether |b⋆ − b̂| or the per-well posterior width correlates with seismic quality or with b̂ (a heteroscedasticity check). Drop "Berkson-type error should sharpen it" from the highlights.
**M3. The tested bank is not the object the theory analyses, and the theory does not account for the observed bank gain; the abstract implies otherwise.**
*Location:* Abstract (sentences 4 and 7); Introduction, contribution 1; Sec. 4.6 (λ = 1/τ_c, effective members 3.5–28/64); Table 7; Discussion "Where the bank gain comes from"; App. C "Tempering limit".
*Why it matters:* Prop. 4 concerns a *calibrated* bank at λ → 0. All locked experiments use λ ≈ 0.37, where the loss is closer to soft re-registration (Remark 1). The SMC bank is tempered, finite and not shown to be calibrated. Its warp coverage is 0.53 in the setting with the largest gain (two-anchor, Table 7). The measured gains exceed the classical population bound in 7/8 wide cells, and a Gaussian two-moment bank reproduces most of them. The theory therefore neither predicts the size of the gain nor identifies its mechanism, as the authors candidly state. The exploratory λ → 0 arm (App. C) usefully shows that part of the gain survives without finite tempering, but it is exploratory and was declared after all verdicts.
*Fix:* In the abstract, separate the theoretical statement from the empirical gain. For example: "In population, a calibrated bank can gain only a fourth-order amount; the measured bank gains exceeded this bound for classical error and were largely reproduced by a Gaussian bank with the posterior's first two moments, so their source is not identified." Move the λ → 0 result from App. C into Sec. 6.4 as a labelled exploratory bullet, since it bears directly on whether Prop. 4 is relevant.
**M4. The field-test requirements are conditional on choices that the abstract and the Discussion do not state.**
*Location:* Abstract (last sentence); highlight 5; Sec. 6.6; Table 14; Discussion "Practical advice: comparing tie methods", items 1–2; Conclusions, paragraph 4.
*Why it matters:* The numbers depend on four choices.
(i) The effect size is that of the benchmark, where the bank wins at 81–97% of wells. Any realistic field effect is likely smaller.
(ii) The *sign test* discards magnitude. A paired test on per-well log band-RMSE ratios (a t-test, or Wilcoxon signed-rank, which the paper itself cites via Demšar 2006) would need fewer wells at the same reference error.
(iii) The beta-binomial ICCs are estimated from 8 clusters, some truncated at 0, and n_b⋆ has no uncertainty attached.
(iv) The reference error is smooth and independent of the predictions.
Further, the paper does not discuss evaluation designs that relax the reference requirement. Examples are scoring against the reference *posterior* rather than a point reference (done only as a sensitivity on F3, App. B(c)), restricting the score to frequencies where Q_ref ≈ 1, or correcting the bias of Eq. (14) when σ_ref is known.
*Fix:*
- State in the abstract and highlights "for effects of the size found in the benchmark and a sign test".
- Add the Wilcoxon or paired-t n_b⋆ to Table 14.
- Give a range of n_b⋆ over plausible ICCs, for example by bootstrapping the realizations.
- Add a short paragraph on alternative scoring designs and on whether the √2 tolerance applies to them.
**M5. The released benchmark omits the paper's most decisive stress and needs a clearer statement of what it can and cannot rank.**
*Location:* Sec. 3.3; Table 2; Conclusions; `benchmark/README.md` §1, §7.
*Why it matters:* Table 8 shows that misstating σ_a by a factor of two removes the advantage, and the Discussion calls this "the main risk". The package fixes σ_a at its true value in `analyst.json` for all 630 tasks. In the nominal tasks the analyst file and the training AI log also embody the generator's own rock physics and wavelet family. Methods that exploit the full nominal likelihood are therefore favoured by construction. A benchmark that releases this setting as the reference task risks rewarding exactly the overconfidence that Sec. 6.5 shows to fail under wavelet misspecification.
*Fix:* Add at least one task family with a misstated σ_a in `analyst.json` (e.g. 3.5 and 14 ms, mirroring Table 8). The data already exist; only the analyst file changes. If that is not possible, state the omission in the abstract or in the conclusion's sentence on the benchmark, not only in Sec. 3.3 and the README. Also report in Table 2 the number of *independent* test realizations (8). Note that with 8 realizations a submitted method's bootstrap interval will be wide and its no-margin "pass" will occur by chance with probability up to 0.36.
**M6. Statistical inference rests on 8 realizations with percentile-bootstrap intervals, which the paper calls the primary evidence.**
*Location:* Sec. 4.9 (2000-resample bootstrap over realizations); Sec. 6 opening; Tables 6–8, 11, 13; App. C "Decision rules under permutation".
*Why it matters:* The authors handle the rules honestly. They disclose the no-margin null pass probability (up to 0.36) and the margin rule's 0.004–0.10, and they decline to sum verdicts. They then make the bootstrap interval "the primary evidence". With n = 8 clusters, percentile bootstrap intervals of a ratio of means are known to under-cover, often substantially. Several conclusions rest on intervals that barely exclude 1 or the threshold: −5 dB bank ratio [0.966, 0.995]; the Berkson-bound margins of 0.002–0.003 in Table 7, which the text correctly calls "inside the interval"; S2-H2 at exactly 1.020. Experiment 3's 100 cells share realizations and particles, so its counts (91/100, 44/52) are not independent evidence. The paper says so for the verdicts but not for the counts.
*Fix:*
- Replace or complement the percentile bootstrap with an interval suited to few clusters, e.g. a t-interval on per-realization log ratios with 7 df, or BCa, and report how many conclusions change.
- Show per-realization ratios, e.g. as dots in Fig. 3 or in a supplementary table, for the key cells (Tables 6 and 7).
- Add a sentence that the grid counts in Sec. 6.5 are descriptive for the same dependence reason.
## 6. Minor comments
1. *01_introduction.tex, paragraph 2.* "Label timing errors of one to several periods are therefore realistic." The 14–66 ms figures compare *uncalibrated* single-anchor sonic integration with the markers. After the marker calibration that any practitioner applies, the relevant residual error is a few ms. By the paper's own numbers it is 3.85 ms for the correlation tie at c = 1 (Sec. 6.2) and σ_a ≈ 7 ms for the markers themselves. That is still significant (Table 5: 4 ms raises band RMSE by 38%), but it is a fraction of a period. Rephrase and quote the residual error.
2. *00_abstract.tex.* "matched the predicted blur to within 1%": add "(point estimates; 95% intervals within 4%)", and say that A1 holds by construction in this test.
3. *00_abstract.tex / 01_introduction.tex.* "Its population gain over a single tie is of fourth order" holds for a *zero-mean* tie error. For a biased point tie (μ_δ ≠ 0), |1 − P|² is second order (Eq. 2). Say "over the posterior-mean tie" or "for a zero-mean error".
4. *06_experiments.tex, Sec. 6.3 paragraph 1, last sentence.* "A Gaussian bank … with no link to the seismic came within 1–2% of the SMC mean at c = 1." The Gaussian bank's mean and covariance come from the seismic-conditioned SMC, so it is linked to the seismic. Say "whose members are not conditioned on the seismic individually". The 1–2% holds only for the full-anchor settings: in the two-anchor setting Gaussian/SMC mean is 0.904–0.954 (Sec. 6.4; App. C). Add the qualifier.
5. *06_experiments.tex, Table 8.* With σ_a^reg = 3.5 ms (over-trusting the anchors), σ_post *increases* to 2.52 ms from 0.59 ms. This is counter-intuitive and unexplained. I suspect the type-II MAP refit inflates σ_g to absorb anchor noise as drift. Explain it.
6. *06_experiments.tex, Sec. 6.1 "Anchor-free losses fitted noise…".* Prop. 2 predicts non-identified absolute timing. It does not predict that anchor-free losses will be *worse* than their starting labels. "This is what Proposition 2 predicts" overstates the link, especially since on F3 these losses were the best networks (App. B). Use "consistent with".
7. *03_data.tex, Sec. 3.2.* "Under the F3 warp prior, the −5 dB setting gives the posterior width closest to F3 (Section 6.3)." Section 6.3 does not contain this comparison. It appears in the Discussion (practical advice, item 2) and App. B. Fix the reference.
8. *03_data.tex, Sec. 3.2.* The SNR is nominal per trace. The network sees nine traces with independent noise (up to +9.5 dB), while the tie likelihood uses one trace. State this asymmetry where the settings are named, because "−5 dB" is read by field readers as the network's SNR.
9. *04_method.tex, Sec. 4.8.* "the anchor-free losses are RML with anchor-free banks". DILATE is not (see §4).
10. *04_method.tex, Sec. 4.7.* Different methods have different selected budgets (Oracle 500, SMC mean 250, calibrated-sonic ensemble 125). The equal-budget check (App. C) is reassuring. Mention it in Sec. 4.7, not only in the appendix.
11. *05_theory.tex, Sec. 5.1.* "σ = 8 ms keeps less than 7% of the seismic-band variance": state the spectrum and the integral used. The next sentence correctly notes that the predictor's spectrum is different, so the 7% figure applies to no object in the experiments. Consider removing it.
12. *05_theory.tex, Table 3, row Prop. 2.* "anchors removed: warp error about ten times larger." That ablation removes anchors from the *registration posterior*. No network is involved, so it tests the prior's bulk spread, not the network–alignment ridge of Prop. 2(a). Reword.
13. *06_experiments.tex, Sec. 6.5 "posterior-mean advantage holds…".* The fit RMSE²_SMC = RMSE²_Oracle + ϑσ²_post with R² = 0.29–0.61 adds little. Either drop it or test it against the second-order heuristic of Sec. 5.3, which predicts the opposite sign under Berkson error.
14. *06_experiments.tex, Table 12.* The "bank/mean" column averages over N while the ratio columns are per N; the caption says so, but a per-N value would be clearer given that S2-H2 passes at exactly 1.020.
15. *06_experiments.tex, Sec. 6.7.* "With independent wells the two pass rules succeed with probability 0.31 … and 0.11": say "under the null of no difference" in the sentence itself.
16. *07_discussion.tex, practical advice (training), item 4.* "The bank is the safer choice" above 1.5 ms. Given that a Gaussian bank came within 2.5%, add that a cheaper Gaussian bank captured most of the gain at c = 1.
17. *07_discussion.tex, Limitations.* Add that the decisive σ_a stress was tested in one setting only (10 dB, c = 1, where the posterior is narrow). Its effect at −5 dB, where the posterior is wide and F3-like, is unknown.
18. *02_related.tex, Table 4.* The "bench." entry sits in the DL column. A separate column, or a footnote, would be cleaner.
19. *benchmark/README.md §6.* M2-Sa is described as "regression with misregistered labels (RML)", while the paper uses "registration-marginalized learning". Harmonize.
20. *benchmark/README.md §2 (S8).* "which one is true is hidden (`truth/…/two_mode_side`)" contradicts the release of `truth/`. Say "stored in the truth files".
21. *repro/README.md §6.* The README reports "9/11 pass", while the paper (Sec. 6.5) explicitly declines to count verdicts. Align.
22. *repro/README.md §4–5.* The analyses added after review (Sec. 6.4 sharpening bullet, the permutation nulls in Sec. 6, the truth-free check in Sec. 6.5, the App. C λ → 0 arm, Table 15 band spectra) are "not in the archives or a verify stage". These numbers appear in the paper. Include them in the clean-room check before submission, or flag them in the text.
23. *repro/README.md.* The phase codes used there (P2, P2r, protocol_bench, T2, T3, T4) are not mapped to the paper's names in Table 16 (`tab:codes`). Add the phase mapping to Table 16.
24. *paper/figures/f3_volume.pdf* is in the figure folder but not referenced. Remove it or reference it in App. B ("Predicted volume").
25. *Sec. 6.2.* "labels at its mean warp were close to the oracle": give the number.
26. *General.* The prose is precise but very dense. Many paragraphs pack 4–6 qualified numbers, and the reader must hold many method names and rules in mind. A one-page "reading guide" table (claim → rule → table → status: confirmatory/exploratory/post hoc) near the start of Sec. 6 would help greatly. Table 3 already does this for the theory.
## 7. Scores (1 = poor, 5 = excellent)
| Criterion | Score | Justification |
|---|---|---|
| Novelty | 3 | Training on a tie posterior and the reference-tolerance result are new for this field, but the theory recombines classical results, and the closest analogue (age–depth uncertainty) is not discussed. |
| Technical soundness | 3 | The proofs I checked (Props. 1, 4 and 6, Cors. 3 and 4) are correct, and the experimental design is careful. However, the headline competitor set is weak, the Berkson check cannot test independence, and few-cluster bootstrap intervals carry the primary evidence. |
| Consistency of claims with evidence | 3 | The body is unusually candid about failures and post hoc status. The abstract and highlights still understate the contradicted sharpening prediction, the anchor-mean qualifier and the conditioning of the power analysis. |
| Clarity and organization | 3 | The organization is logical and every number I checked against its table matched. The text is very dense and hedged, which makes the main message harder to extract than necessary. |
| Storyline coherence with stated contributions | 4 | The four contributions are followed from abstract to conclusion. The only mismatches are Experiment 3's attribution to contribution 3 and the abstract's juxtaposition of theory and bank gain. |
| Reproducibility | 4 | Locked protocols, hashes, a clean-room verification and a scorer are exemplary. Deposits are pending, the review-stage analyses are outside the verification, and the training stages need GPU-days. |
| Relevance to *Computers & Geosciences* | 4 | Highly relevant to computational geoscience ML practice, and the benchmark, audit and validation guidance fit the journal well. |
## 8. Recommendation
**Major revision.** Confidence: **medium–high.**
The paper is careful, honest about its failures and post hoc analyses, and its numbers are internally consistent: every value I checked in the abstract, Introduction, Discussion and Conclusions matched its table. The decision rules are disclosed with their null pass rates, and verdicts are not summed. These are real strengths. The deciding issues are:
1. **(M1)** The headline 8–22% gain is measured against deterministic ties that ignore the known anchor uncertainty (1.82× the Oracle at zero drift). Against the anchor-only posterior mean the gain holds only at 10 dB, and this is absent from the abstract. A same-information point tie is missing.
2. **(M2)** The Berkson-sharpening prediction was contradicted where testable, yet it is advertised in the highlights and described as "not detected". The covariance check cannot establish the required independence.
3. **(M3)** The theory analyses a calibrated λ → 0 bank. The experiments use a tempered, uncalibrated bank whose gain exceeds the theoretical bound and is largely reproduced by a two-moment Gaussian bank. The abstract should not imply that theory and experiment agree.
4. **(M4/M5)** The field requirements are conditional on the benchmark effect size and a sign test, and the released benchmark cannot test the stress (σ_a) that the paper identifies as decisive.
Items M1 (abstract and an added competitor), M2, M3 and M4 can be addressed mostly by rewording and by analyses on existing data, plus one additional point-tie arm. None requires new realizations.
---
## 9. Response to the previous round
*(Written after Sections 1–8 were completed and saved. Scores above were not changed.)*
R4's report (`R4_contrib_round1.md`) was read only at this point. The table assesses whether the current manuscript addresses each of R4's major comments and its most important minor comments.
### 9.1 Major comments of R4
| R4 item | Topic | Judgement | Justification |
|---|---|---|---|
| M1 | Headline gain does not isolate the posterior from a better tie model; MAP arm needed | **Partly** | No MAP or same-model point-tie arm was added. The claim was retreated in Sec. 6.3 and the Conclusions ("a comparison between tie models"), and the abstract says the gain "comes from a more accurate tie model". My M1 adds that even the anchor-mean qualifier is missing from the abstract. |
| M2 | σ_a given to every method; no σ_a misspecification axis in the benchmark | **Not addressed** | The omission is now stated more prominently (Sec. 3.3, README §1/§7, Limitations), but no preset was added and σ_a was not removed from `analyst.json`. This is my M5. |
| M3 | Berkson sharpening stated as a finding; estimate Ĥ for SMC mean vs Oracle | **Partly** | The Ĥ analysis was done (App. C, Sec. 6.4) and the abstract now says "predicted to sharpen". The analysis found *blur* (six intervals below 1), yet the text says "not detected" and highlight 2 still says "should sharpen it". This is my M2. |
| M4 | Decision rules and "verdict" counting | **Addressed** | Null pass rates under permutation are now reported (App. C), the "or" weakening is stated (Sec. 6), "9 of 11" is gone from the paper, bootstrap intervals are declared primary, and S2-H2's marginal pass is flagged. Residues: `repro/README.md` still says "9/11 pass", the 100-cell Spearman ignores nesting, and few-cluster bootstrap coverage remains (my M6). |
| M5 | "Pre-registration" vocabulary | **Addressed** | "Hash-locked" is defined in Sec. 6, the text states that these are not pre-registrations in the usual sense, and App. C gives lock and commit timing per protocol. No external deposit was made; R4 offered that only as an option. |
| M6 | Package needs a section; README codes, "hidden truth", pointers, licences | **Addressed** | Sec. 3.3 and Table 2 describe the package, Table 16 maps names to codes, "hidden truth" is removed and README titles are harmonized, and the section pointers in `repro/README.md` match the current structure. Licences and DOIs remain TODO (out of scope here). Phase codes are not mapped (my minor 23). |
| M7 | Scaled warp prior tests only the benign direction | **Addressed** | Sec. 6.5 gives 57 vs 50 ms (1.14×) and states that only the benign direction was tested. The Conclusions say "tested mainly the benign direction", and the Limitations and README note that a narrower registration prior was not tested. No narrow-prior preset was added; disclosure was one of R4's options. |
| M8 | State the assumptions of Prop. 3(b) where it is made | **Addressed** | Sec. 5.3 now calls Berkson "an idealization" and lists the three departures (tempered target with plug-in phase, nonlinearity through e^g, F3 label–axis coupling). The self-consistency condition on S_m is stated in Sec. 5.3 as well as in App. A. |
**Tally for R4 M1–M8: 5 addressed (M4, M5, M6, M7, M8), 2 partly (M1, M3), 1 not addressed (M2).** I disagree with none of R4's major comments.
### 9.2 Selected minor comments of R4
| R4 minor | Judgement | Justification |
|---|---|---|
| 1. −5 dB cells pass on PCC, not RMSE | Partly | Stated in Sec. 6.3; the abstract's "8–22% … at three noise levels" still does not say it. |
| 4. "offset from the check-shot tables" contradiction | Addressed | Now "offset from the markers". |
| 6. Give typical value of tie tempering ω | Not addressed | Sec. 4.2 still gives no value of ω. |
| 7. λ far from the λ → 0 regime, say in Sec. 4 | Addressed | Sec. 4.6 now states effective members 3.5–28 of 64. |
| 8. TCN at grid edge, say in main text | Addressed | Sec. 4.7 and Limitations. |
| 9. "7% of seismic-band variance" weighting | Addressed | Sec. 5.1 states the weighting and points to Table 15 (my minor 11 still suggests removing the number). |
| 11. Justify (A3) "approximately" for a bidirectional GRU | Not addressed | Sec. 5.2 still says "approximately for the CNN–GRU used here" with no justification. I missed this; I agree with R4. |
| 14. "7 of 8" uses the grid-edge cell | Addressed | The text now separates the grid-edge cell. |
| 15. Plot the Berkson bound in Fig. 4(b) | Not addressed | Only the caption mentions ρ⋆_Bk. |
| 17. Effect sizes in the verdict table | Partly | The text says to read each verdict with its table, but Table 10 still has no ratio or pointer columns. |
| 18. Run the truth-free SMC-vs-correlation check | Addressed | Done (App. C). It is informative: the check did not flag the wavelet failure. |
| 19. Stretch share of the reference error | Partly | The stretch is acknowledged; its share (b-term ≈ 1/12 of the variance) is not stated. |
| 20. ICC "0.00" is a truncation | Addressed | Table 14 now shows "≤ 0". |
| 23. σ_post not monotone in σ_a | Not addressed | Same as my minor 5; still unexplained. |
| 24. Cost of the posterior | Addressed | Discussion item 4 gives a median of 7 min per cell for the phase fit and 11 s per well for SMC. |
| 25. Use the Volve VSP comparison | Addressed | Discussion, field advice item 1. |
| 26. "about 1 ms" → "order of 1 ms in simulations" | Addressed | In the body and Conclusions. The abstract and highlight 5 remain unconditioned (my M4). |
| 30. F3 trend beats networks: say in Sec. 6.7 | Addressed | Sec. 6.7, first paragraph. |
| 33. MSE on mean label worse than λ → 0 bank: say in Sec. 6.4 | Partly | Only in App. C and the Limitations; not in Sec. 6.4 (cf. my M3 fix). |
| 34. Uncited bib entries and composite-likelihood citation | Partly | Kendall, Lakshminarayanan, Gneiting and PyLops are now cited, and Herrera 2014 was added. Pauli/Ribatet (annotated "not read in full") remain instead of Varin et al. 2011. |
| 35. Composite-loss weight provenance | Addressed | Table 4 footnote. |
| 36. Clipped colour scale in Fig. 4 | Addressed | Caption notes 3.15. |
| Sec. 3 item 1: experiment inside the Theory section | Not addressed | The blur test remains in Sec. 5.1, but the Sec. 6 opening now points to it. I consider this acceptable. |
| Sec. 3 item 9: "calibrated to F3" vs "not calibrated" | Addressed | Abstract now says "built from F3 statistics". |
### 9.3 Notes prompted by reading R4
- I missed R4 minor 11 (justifying (A3) for a bidirectional GRU) and R4 minor 6 (no value given for ω). I agree with both.
- R4 M4(d) notes that the Spearman correlation over the 100 grid cells treats nested N-subsets on the same realizations as independent. My M6 covers the dependence of the grid *counts* but not this p-value specifically. The −0.66 over 100 cells (Sec. 6.5) should carry no p-value, or a within-family permutation like the one used for the −0.47.
- R4's M1 and M3 have since been acted on partly, and in a way that sharpens my own M1 and M2. The MAP arm is still missing, but the Gaussian-bank and λ → 0 analyses added since R4 show that the *posterior* adds little beyond its first two moments at c = 1. The Ĥ analysis that R4 requested turned out *against* the sharpening prediction. The revision reported these results candidly in the appendix and the body but did not carry them into the abstract or highlights.

View File

@@ -0,0 +1,85 @@
# Mô phỏng phản biện: ba referee của *Computers & Geosciences* (04/11/2026)
Theo yêu cầu của người dùng (04/11/2026): đóng vai ba referee của venue, review độc lập rồi phản biện chéo, bỏ qua vấn đề độ dài. Tài liệu này là biên bản của biên tập viên xử lý (handling editor, do phiên chính đóng vai). Sáu bản báo cáo gốc (tiếng Anh) nằm trong `docs/research/referee-reports/` (`R{1,2,3}_round{1,2}.md`, 21.300 từ).
## 1. Cách làm
- Ba subagent Fable, mỗi người một chuyên môn và một thái độ nghi ngờ riêng:
- **R1**: nhà địa vật lý ứng dụng (QI, well tie, inversion, dự đoán tính chất từ địa chấn).
- **R2**: nhà thống kê (mô hình sai số đo classical/Berkson, bài toán nghịch Bayes, nghiên cứu pre-registered).
- **R3**: nhà nghiên cứu ML địa khoa học (benchmark, baseline công bằng, rò rỉ, tái lập).
- Mỗi referee chỉ được đọc những gì referee thật được đọc: `paper/main.tex`, 11 file section, `highlights.txt`, `refs.bib`, 8 hình, và hai tài liệu bổ sung `benchmark/README.md`, `repro/README.md`. Không đọc `docs/`, `AGENTS.md`, `outputs/`, `configs/`, code.
- Vòng 1: review độc lập theo cấu trúc chuẩn (tóm tắt, ý nghĩa, major, minor, câu hỏi, khuyến nghị, độ tin cậy). Vòng 2: mỗi người đọc hai bản còn lại, nêu đồng ý, phản bác, điều mình bỏ sót, top-5 yêu cầu hợp nhất, khuyến nghị cập nhật.
- Biên tập viên (phiên chính) có quyền đọc `outputs/` và đã dùng nó để kiểm chứng các khẳng định thực tế quyết định mức độ nghiêm trọng (mục 4).
Bản thảo được review là bản sau đợt rà soát chống hallucination (commit bbdb829, 69 trang).
## 2. Kết quả
| Referee | Vòng 1 | Vòng 2 | Độ tin cậy sau vòng 2 |
|---|---|---|---|
| R1 (địa vật lý) | Major revision | Major revision | cao (dữ liệu, baseline, field); trung bình–cao (thống kê) |
| R2 (thống kê) | Major revision | Major revision | cao (chứng minh, thống kê, đóng gói); trung bình (hiện thực địa vật lý) |
| R3 (ML/benchmark) | Major revision | Major revision | cao (tăng từ cao/trung bình) |
Cả ba đều nói rõ: **không có gì đẩy bài về phía reject**. Điểm mạnh được cả ba công nhận: lý thuyết chứng minh đúng dưới giả thiết đã nêu (R2 kiểm từng dòng App. A); hai phần lý thuyết được kiểm thực sự (blur ở 7–23 Hz; đảo cực hai mode S8); audit nhãn F3 (PHIE_DT là biến đổi tuyến tính của sonic) và header Volve (dịch 8 ms) là phát hiện có ích công cộng; gói tái lập và khóa hash vượt chuẩn của venue; sự thẳng thắn về gate thất bại và deviation. Cũng không ai coi hai field gate thất bại là điểm yếu.
## 3. Những điểm hội tụ (ba hoặc hai referee cùng nêu độc lập)
| # | Vấn đề | ID | Bản chất |
|---|---|---|---|
| C1 | **Mức cải thiện 8–22% của H2a chủ yếu là so sánh chất lượng tie, không phải so sánh "dùng bất định hay không".** Ở c = 0 (không drift), B3d-Sa đã thắng 12–19%; sai số duy nhất còn lại là nhiễu anchor N(0, 7²) mà B3b/B3c coi là chính xác, trong khi SMC biết σ_a, dùng likelihood địa chấn và ước lượng phase. Thiếu đối chứng tự nhiên: ước lượng điểm (MAP/mode) của *cùng* mô hình SMC. Chỉ H2b cô lập vai trò của bất định, và mức đó là 2–11% ở c = 1. | R1-M5, R2-M5, R3-M1 | thiếu baseline; diễn giải |
| C2 | **"Hidden truth" không ẩn; `analyst.json` trao σ_a thật.** Bản thảo (Sec. 1 C2, Sec. 8) nói "hidden true warps and labels"; `benchmark/README.md` §3 nói "Test truth is in the package because the generator is public anyway"; `analyst.json` ghi `sigma_a_ms: 7.0`, đúng giá trị thật, trong khi Discussion gọi σ_a là "the main risk". | R3-M2 (R1, R2 công nhận ở vòng 2) | mâu thuẫn thực tế; đóng gói |
| C3 | **Các luật pass là ngưỡng tất định, không phải kiểm định; xác suất pass dưới null không được báo; các ô phụ thuộc nhau.** Luật *better* không có biên: P(≥4/5 seed) = 0.19, P(≥5/8 realization) = 0.36, pass ngẫu nhiên cỡ 0.1–0.2. 100 ô S1 dùng chung 8 realization, cùng particle SMC và tập huấn luyện lồng nhau (N = 2 ⊂ 4 ⊂ 8 ⊂ 16), nên "91/100", "13/13", "44/52" và các p-value Spearman không diễn giải được như đã viết. S2-H2 pass ở 1.020 và 1.019 so với ngưỡng 1.02, không có khoảng tin cậy. "9/11" cộng các verdict không độc lập; vài verdict gần như chắc chắn trước khi chạy (S1-H1 nội suy giữa c = 1 và c = 2 đã pass; S3-H1 thêm đối thủ đã biết thua). | R2-M3, R3-M3 | suy luận |
| C4 | **Lý thuyết được kiểm ở chỗ nó yếu, và được viện dẫn ở chỗ chưa kiểm.** H1 chỉ kiểm blur ở 6.8–22.5 Hz; ở đó sai số 1–3 ms chỉ làm suy giảm < 7%, nên blur quần thể không giải thích được mức cải thiện 8–22%. Kiểm định H1 đăng ký ([0.5, 2]) không có lực ở σ = 4, 8 ms: mạng không học blur gì cũng cho r ≈ 1.06 và 1.2. Lập luận bound 1/B_a, 1/B_b và "sharpening Berkson" sống ở 60–70 Hz, nơi không đo gì và Oracle chủ yếu là nhiễu ước lượng; 1/B_b < 0.001 ở R10tb c = 2 không còn là bound. Bound quần thể không ràng buộc gain hữu hạn mẫu, và Ctl-GP (bank Gauss không gắn với địa chấn) đạt cùng gain ở c = 1 mâu thuẫn với cách đọc "removing population sharpening". "Fourth order" là khai triển bậc đầu cho σf ≪ 1, không đúng ở regime bài đang xét (x ≈ 0.6 tại 70 Hz, σ = 2.5 ms). | R1-M6, R2-M1, R2-M2, R2-M4, R3-M5 | diễn giải; abstract |
| C5 | **"Pre-registered" là tự chứng nhận.** Protocol Exp. 1 commit sau khi chạy, Exp. 3 trong khi chạy, F3/Volve sau khi chạy; bằng chứng thời gian duy nhất là timestamp trong lock file do script của tác giả ghi. Abstract dùng "pre-registered" ba lần không kèm hạn định. | R1-M7, R2-M7(d), R3-Q8 | từ ngữ |
| C6 | **Kết quả Ctl-GP bị chôn.** Theo cách đọc as-run của S3-H1, một bank Gauss với mean và covariance của posterior ngang B3d-Sa ở mọi regime tại c = 1; particle SMC chỉ hơn ở c = 2 không ổn định. Đây là thông điệp hữu ích nhất cho người dùng thực tế, nhưng chỉ xuất hiện trong đoạn "two readings". Đếm as-worded (9/11) xuất hiện ở abstract mà không kèm as-run. | R3-M6, R2-M1, R1-Q8 | trình bày |
| C7 | **Mô hình simulator chưa đủ tài liệu; các ô nominal là "inverse crime" một phần.** Chưa nói trường độ rỗng có biến thiên ngang trong patch 3×3 không và nhiễu có độc lập giữa 9 trace không (nếu trường phẳng và nhiễu độc lập, SNR hiệu dụng cao hơn danh định ≈ 9.5 dB). Registration dùng cùng họ prior warp, σ_a thật, wavelet thật (trừ phase hằng). Mô hình nhiễu anchor độc lập là giả thiết thuận lợi nhất, trong khi audit F3 nói marker là pick horizon trên cùng địa chấn. R2 chỉnh R3: không "trùng generator hoàn toàn" vì σ_b = 19 ms (sinh) so với 50 ms (registration) và likelihood được tempered. | R1-M1, R3-M8, R3-M1(iv), R1-m6 | tài liệu; thiết kế |
| C8 | **Budget huấn luyện.** Chọn trên 2 realization dev theo total RMSE; nhánh 500 vòng cho thấy sai với ứng viên (7/8 ô) nên có thể sai với đối thủ; mọi TCN chạm mép lưới 125. | R3-M4 (R1-m15, R2 tán thành) | công bằng baseline |
| C9 | **Thuật ngữ "calibrated" dùng bốn nghĩa**; BK2 "chứa warp thật" không phải calibrated; điều kiện coverage của G-C đã được dự đoán sẽ fail. | R2-M6 (R1, R3 tán thành phần từ ngữ) | thuật ngữ |
Lỗi chứng minh nhỏ nhưng thật (R2-m2, R3 xác nhận): câu "Q has no zero inside the band" trong chứng minh Cor. 3 sai với Q = cos(πfΔ): với Δ = 32 ms, không điểm ở 15.6 và 46.9 Hz, trong dải. Cần giới hạn về khoảng đảo cực mở và nói rõ sai số Berkson hai mode không tương thích với oracle tổng quát (hoặc bỏ phần (b) khỏi Cor. 3; S8 chỉ kiểm (a)).
## 4. Điều biên tập viên đã kiểm chứng bằng `outputs/` và nguồn
- **C2 đúng về thực tế.** `outputs/bench/package/` có thư mục `truth/`; `inputs/analyst.json` có `anchors.sigma_a_ms = 7.0`. Bản thảo nói "hidden" ở Sec. 1 (C2) và Sec. 8. Đây là mâu thuẫn tác giả phải sửa trước khi nộp, bất kể lựa chọn nào.
- **R2 đúng về σ_b.** Sec. 5.1: warp thật được rút từ fit ML (σ_b = 19 ms); registration cố định σ_b = 50 ms. Cách nói "well-specified by construction" của R3 cần hạn định.
- **R3 hơi quá lời ở một điểm.** R3 viết B3d-Sa "được trao hyperparameter prior thật"; Sec. 5.1 nói (m_g, σ_g, ℓ) được fit lại bằng MAP-II trên anchor của giếng huấn luyện, chỉ σ_a và σ_b cố định. R1 đã phát hiện và chỉnh ở vòng 2. Điểm cốt lõi (cùng họ prior, σ_a thật, phổ wavelet thật) vẫn đứng.
- **Các con số thống kê của R2 tự kiểm được**: 6/32 = 0.1875, 93/256 = 0.363; x = 2π²σ²f² = 2π²(0.0025)²(70)² ≈ 0.60; cos(πfΔ) = 0 tại f = (2k+1)/(2Δ) = 15.625, 46.875 Hz với Δ = 32 ms. Đúng.
## 5. Bất đồng giữa các referee và phán quyết của biên tập viên
| Vấn đề | Lập trường | Phán quyết |
|---|---|---|
| Cách sửa "hidden truth" | R3: giấu truth (seed không công bố, scoring service hoặc archive niêm phong) *hoặc* đổi tên. R1, R2: scoring service quá tầm một bài báo và không đổi khoa học; generator công khai nên "ẩn" chỉ là che giấu. | **Đổi tên**: "controlled synthetic study with public truth and a reference scorer"; bỏ "hidden truth" ở mọi chỗ. Thêm các biến thể `analyst.json` với σ_a và prior sai (dữ liệu không đổi) như setting chính thức: rẻ và đúng vào "main risk" của chính bài. |
| Kiểm trực tiếp sharpening Berkson ("S8 kiểu Berkson", R3-M5) | R2 phản bác: không thể áp sai số Berkson độc lập với địa chấn bằng cách rút warp thật = warp gán + nhiễu, vì địa chấn sinh từ warp thật nên q(e\|X) ≠ q(e); dạng đóng của Prop. 3(b) không áp dụng. | **Theo R2**: không yêu cầu S8 Berkson. Thay bằng đo hàm truyền Ĥ(f) của B3d-Sa so với Oracle trên dự đoán test đã lưu của Exp. 2 (R0/R0h/Rm5, c = 1, N = 16; σ_post 1.5–2.6 ms), hỏi có vượt 1 khoảng 2–9% ở 15–25 Hz không. Nếu không phân biệt được, highlight 2 phải thành "is predicted to sharpen". |
| T3 nên dùng điểm số có dung sai hoặc marginal hóa theo posterior của giếng test (R1-M4) | R2, R3: điểm có dung sai làm mất đúng tín hiệu cần phát hiện (hiệu ứng vài ms trong dải); marginal hóa theo posterior không bỏ được bias của Prop. 6 (bias là kỳ vọng theo sai số tham chiếu); App. B(c) đã làm và chỉ cho spread. | **Nhánh độ nhạy, không thay phân tích chính**: chạy T3 với một điểm số dung sai, báo cả xác suất pass dưới null. Giới hạn claim: "under point-reference band scoring on the public datasets examined"; kết luận thực tế là "cần tham chiếu cấp VSP", không phải "không thể làm". Giữ tiêu đề. |
| Field test bị giới hạn bởi thiết kế (R1-M3): z-score theo giếng, dung lượng mô hình, B1 có PCC âm | R2, R3: bài không claim gì về field; kể cả khôi phục được skill, C3 (σ_a) và C4 (số giếng) vẫn fail; B1 không đỡ claim nào. R3 đồng ý z-score theo giếng có thể *gây ra* kết quả không skill trên Volve, vì sai số ở đó là chênh mức giữa giếng. | **Yêu cầu một phần**: mô tả đầy đủ B1 (bắt buộc; sửa thì tùy); nhánh chuẩn hóa toàn survey trên Volve và F3 là rẻ và liên quan tới lập luận C1 ở Sec. 6.7 → khuyến nghị mạnh (post hoc, khai báo trước). Ridge/B0b cho so sánh tie trên F3: tùy chọn. |
| Chạy lại Exp. 3 trên realization 16–23 (R3-M3) | R2 nhận làm cách sửa sạch nhất cho vấn đề phụ thuộc. R1: chỉ cần cho ba dự đoán mới (S2-H1, S4-H1, S8-H1) và hai thất bại S2; S1-H1, S3-H1 là mở rộng gần chắc chắn. | **Khuyến nghị mạnh; bắt buộc nếu giữ bất kỳ đếm verdict nào**. Chạy S1-H1, S2-H1, S4, S8 trên 16–23 (≈ 12 giờ GPU). Nếu không, gắn nhãn mỗi verdict là extension / non-inferiority / new prediction, cho tỷ số theo từng realization, và bỏ mọi đếm khỏi abstract. |
| Điều kiện coverage của G-C "bảo đảm gate fail bất kể độ chính xác" (R2-M6b) | R1: gate cũng fail ở điều kiện độ chính xác (1/4 giếng), nên không phải định trước. | **Theo R1 về sự kiện, theo R2 về từ ngữ**: gọi điều kiện coverage là lỗi thiết kế, nói gate quyết định bởi điều kiện độ chính xác. |
| "Fourth order" bỏ (R2) hay hạn định (R3) | R3: mệnh đề tiệm cận đúng và giải thích vì sao gain nhỏ khi posterior hẹp (đúng với dữ liệu). | **Hạn định**: "O(σ⁴) for σf ≪ 1; at F3-like widths and 60–70 Hz the leading term is not dominant and the two bounds differ by up to a factor of 4". |
| Tiêu đề "registration-aware" (R2 gợi ý xem lại) | R1: benchmark *là* registration-aware (warp thật biết, chấm trong thời gian thật); lỗi quy kết nằm ở H2a. | **Giữ tiêu đề.** |
| Động cơ "14–66 ms" là straw man (R1-M2) | R2, R3: câu "as is common in learning studies" không có trích dẫn phải bỏ hoặc cite; nhưng độ lệch 28.6–36.5 ms của mô hình TD OpendTect phân phối kèm dữ liệu và −15 đến +41 ms của bộ file thứ hai là tính chất của sản phẩm dữ liệu tải về, không phải lỗi tích phân. | **Nửa chừng**: bỏ hoặc cite câu "as is common"; đặt lập luận độ lớn trên hai mô hình TD phân phối; nói rõ regime được kiểm là độ rộng posterior 0.6–4 ms và hàng chục ms chỉ nói lên sự tồn tại của vấn đề. Trả lời câu hỏi nguồn gốc marker F3 (σ_a type-II = 0.4 ms, z² = 0.21 gợi ý marker từ đường cong trơn; kink F06-1 gần 1030 ms; MAD thô hay đã scale). |
## 6. Thư quyết định hợp nhất (những gì biên tập viên sẽ yêu cầu)
Phân loại: **[W]** chỉ sửa chữ; **[E]** chạy lại trên dữ liệu/dự đoán đã có (ngoài lock, CPU hoặc ít GPU); **[N]** thí nghiệm mới trên generator sẵn có (protocol mới, deviation ghi rõ).
1. **Quy kết lại H2a và bổ sung đối thủ cùng mô hình** (C1). [N] Thêm ước lượng điểm MAP/mode của cùng mô hình SMC (hoặc GP smoother qua anchor biết σ_a) như đối thủ được khai báo, ở R10/R0/Rm5, c ∈ {0, 1}; [N nhỏ] bank jitter Gauss quanh nhãn B3c-R (R1-Q8): nếu ngang M2-Sa ở c = 1 thì phần đóng góp riêng của bất định là không và lời khuyên thực tế là "augment"; [W] abstract tách hiệu ứng c = 0 (tie biết σ_a, có điều kiện địa chấn thắng tie coi anchor là chính xác) khỏi hiệu ứng registration (c = 0 → 1: 0–7%); [W] mô tả đầy đủ B3c/B3c-R (cửa sổ, shift tối đa, làm trơn, đơn điệu, tôn trọng anchor); [E] bảng warp RMSE và coverage theo phương pháp tie, regime, c.
2. **Đưa suy luận về đúng chỗ** (C3, C4, C5, C6). [E] Xác suất pass dưới null của *improves* và *better* bằng hoán vị nhãn phương pháp trong từng realization × seed; tóm tắt theo realization thay cho đếm ô phụ thuộc; nêu loại bootstrap và giới hạn n = 8; S2-H2 ba chữ số với khoảng. [W] Abstract/highlights: "pre-registered" → "hash-locked (pre-specified)" kèm bảng bằng chứng thời gian từng protocol; bỏ "9 of 11" như một đếm (nêu hai thất bại, các pass thực sự mới, và cách đọc as-run); "all eight wide cells" → nói bốn ô c = 2 không ổn định; "within 1%" → kèm 7–23 Hz, dung sai [0.5, 2] và r của mạng không blur; "fourth order" hạn định; bỏ mọi câu quy gain cho "removing the population sharpening"; đưa Ctl-GP lên abstract và đoạn "when to use a bank"; đếm as-run đứng cạnh as-worded ở mọi chỗ. [E] Đo hàm truyền B3d-Sa/Oracle từ dự đoán đã lưu (mục 5); nếu không thấy > 1 thì highlight 2 → "is predicted to sharpen". Hạ bound quần thể xuống đoạn mô tả post hoc, chỉ giữ biến thể đã đăng ký (1/B_a tại σ_post) trong thân bài, các biến thể khác đủ 8 ô vào phụ lục.
3. **Đóng gói benchmark đúng với lời nói** (C2, C7, C8). [W] Bỏ "hidden truth"; gọi là controlled synthetic study with public truth. [N nhỏ] Biến thể `analyst.json` với σ_a và prior sai. [W/E] Bảng "registration biết chính xác / xấp xỉ / không biết" từng thành phần simulator (gồm σ_b 19 so với 50 ms và likelihood tempered); mô hình ngang và cấu trúc nhiễu của patch 3×3, kèm Oracle một trace so với 3×3 và sàn band của nhãn. [E] Bảng độ nhạy budget từ quỹ đạo đã lưu (125/250/500) cho mỗi phương pháp, nếu quỹ đạo cho phép; mở rộng lưới TCN xuống dưới 125 hoặc ghi nhận mép lưới.
4. **Tách phần Exp. 3 thêm mới khỏi phần lặp lại** (C3). [N, ≈ 12 giờ GPU] S1-H1, S2-H1, S4, S8 trên realization 16–23 sinh sau lock; nếu không, [W] gắn nhãn từng verdict và bỏ đếm khỏi abstract.
5. **Giới hạn kết luận field về đúng cái đã thử** (R1-M3, M4, M2; C9). [E] Nhánh chuẩn hóa toàn survey trên Volve (và F3); [W] mô tả B1 đầy đủ; [E] T3 với một điểm dung sai như nhánh độ nhạy kèm null pass rate; [W] abstract/Sec. 7–8/highlight 5 giới hạn "limits of field validation" về point-reference band scoring trên các dataset công khai đã xét, và nói yêu cầu là tham chiếu cấp VSP; gọi điều kiện coverage G-C là lỗi thiết kế; một nghĩa cho "calibrated" (posterior-exact bank; interval coverage; BK2 "contains the true warp"); Prop. 2 "predicts" → "is consistent with"; sửa câu "Q has no zero" trong chứng minh Cor. 3; cite hoặc bỏ "as is common"; nguồn gốc marker F3 và độ nhạy prior khi bỏ F06-1.
Việc biên tập bắt buộc nhưng không phải khoa học: xóa mọi todoblock/TODO đỏ (danh sách tác giả, novelty todoblock trỏ tới `docs/plan.md`, DOI, licence Teapot), điền mục Computer Code Availability (bắt buộc ở C&G), thống nhất tên RML giữa bài và README, chốt licence cho bảng F3+Volve kết hợp (share-alike không tương thích), 1/B(σ_post) trên trục Fig. 4(b) thiếu chỉ số a, chú thích Table t3 (ratio, ICC), Table benchverdicts S4-H2 pass^d so với footnote.
## 7. Đối chiếu với ràng buộc của dự án
- Mọi mục [E] và [N] đều nằm **ngoài các lock** (`protocol_p2r`, `protocol_f3`, `protocol_volve`, `protocol_bench`). Không sửa protocol hay code bị khóa; chúng là nhánh post hoc / deviation được khai báo trước khi tính (như T2: khai báo và hash trong `docs/research/`), và bài phải nói rõ như vậy. Không mục nào dùng nhãn test để chọn gì.
- Mục [N] 1 (MAP tie + jitter bank) và 4 (realization 16–23) cần GPU: ước lượng 1–2 ngày GPU cho mục 1 (vài trăm run huấn luyện 125–250 vòng ở 3 regime × 2 c × 2 N × 5 seed × 8 realization) và ≈ 0.5 ngày cho mục 4. Realization 16–23 chưa tồn tại; generator tất định theo rid, nên sinh được sau lock và ghi fingerprint.
- Lịch mức B còn 10 ngày (hạn 14/11/2026). Mục [W] và [E] làm được trong 2–3 ngày; mục [N] cạnh tranh với thời gian viết. Thứ tự cắt nếu thiếu thời gian: giữ 1[W], 2, 3[W], 5[W] (chi phí thấp, quyết định độ tin cậy của abstract); mục 4 chạy nền; mục 1[N] là mục đắt nhất nhưng là yêu cầu số một của cả ba referee, và R1 nói rõ sẽ không chấp nhận bản sửa chỉ đổi chữ ở mục này.
- Các mục referee nêu mà đợt rà soát 04/11 (`paper-audit.md`) đã sửa một phần: cách nói "tagged" của Exp. 1 (nay "hash-locked"), nhưng abstract vẫn còn "pre-registered" ba lần; "all eight wide cells" đã có chú thích ở Sec. 6.3 nhưng chưa ở abstract. Hai lỗi của bài mà referee không bắt được và audit đã sửa (TD models, MAP-II) cho thấy hai lớp kiểm tra bổ sung cho nhau.
## 8. Giới hạn của mô phỏng
Ba referee là mô hình ngôn ngữ cùng một họ, nên có thể cùng thiên lệch (ví dụ cùng nhấn vào thống kê suy luận hơn referee địa vật lý thật). Họ không có bản PDF biên dịch mà đọc nguồn LaTeX, nên không thấy lỗi dàn trang. Họ đọc README của benchmark và repro, điều referee thật có thể bỏ qua. Các ước lượng chi phí GPU ở mục 7 là của biên tập viên, không phải của referee.

View File

@@ -0,0 +1,45 @@
# Chuyển sang server mới
Ngày viết: **30/10/2026** (server H200 sắp bị thu hồi). Remote: `https://gitea.vts-ai.space/lamlvh/ML-Porosity`, nhánh `main`.
**Cách chuyển:** sync nguyên thư mục repo sang server mới (quyết định của người dùng, 30/10 khoảng 01:30 UTC). Git chỉ giữ code, config, docs và paper như bình thường; không đưa thêm file lớn lên gitea.
## 1. Có trong git
- Toàn bộ code, config, test, docs, paper; `configs/protocol_bench.{yaml,sha256,lock.json}` (khoá 29/10 14:39 UTC).
- Không có gì trong `outputs/`. Khoảng 600 MB output từng được `git add -f` và push lúc 30/10 01:05–01:15 UTC, theo 13 commit. Theo yêu cầu của người dùng, lịch sử đã được viết lại và force-push lúc khoảng 01:40 UTC: `main` = 381b5ff, chỉ code và docs.
## 2. Không có trong git (đi theo bản sync thư mục)
Danh sách từng file của `outputs/`, kèm sha256 (21.987 file, tạo 30/10 khoảng 02:20 UTC sau khi mọi chạy P6 đã xong, gồm cả `outputs/bench/s1`): `docs/research/unpushed_outputs.sha256`. Sau khi sync, kiểm tra bằng `sha256sum -c --quiet docs/research/unpushed_outputs.sha256`.
| Đường dẫn | Dung lượng | Vai trò |
|---|---|---|
| `outputs/bench/s1/` | khoảng 0,2 GB | Kết quả S1 (train cells, npz); `summarize` cần. |
| `outputs/bench/posterior/**/*_particles.npz` | 8,6 GB (784 file) | Particle SMC của P6; cần khi chạy thêm stage train. `summarize` chỉ đọc csv. |
| `outputs/bench/dev/posterior/**/*.npz` | 0,12 GB | Chỉ dùng cho dev. |
| `outputs/p2r/**` (npz) | 8,2 GB | Trong đó 102 artifact tham chiếu (1,4 GB, khoá `p2r_reference` của lock) được `freeze(check=True)` kiểm tra trước mọi stage posterior/train chính của P6. |
| `outputs/p3/**`, `outputs/p4/**`, `outputs/p2/**` (npz) | 5,2 + 4,7 + 2,4 GB | Lịch sử; P2/P3/P4 không chạy lại. |
| `outputs/p4x/` | 0,09 GB | Bản ghi P4x đã bỏ; không trích dẫn. |
| `data/Volve/` | 165 GB | Hash ở `data_manifest/volve.json`. P6 không dùng. |
| `data/F3_Demo_2023/` | 9,4 GB | Hash ở `data_manifest/f3_demo_2023.json`. P6 không dùng: bộ sinh D2 chỉ đọc `outputs/d2/horizon_grid.npz` và `outputs/wavelets.npz`. |
| `data/Teapot/` | 1,8 GB | Teapot đã dừng. |
| `data/NLOG/` | 0,03 GB | Hash ở `data_manifest/nlog.json`. |
| `refs/*.pdf` | khoảng 0,4 GB | Bản quyền nhà xuất bản; chỉ giữ cục bộ. |
| `logs/*.out`, `logs/runs/`, `logs/p2r_resume_*`, `logs/p6_*` | nhỏ | Log thô (`logs/index.csv` có trong git). |
| `.venv/` | | Tạo lại theo `README.md` nếu đường dẫn Python khác. |
## 3. Sau khi sync
- Kiểm tra dữ liệu: `python scripts/00_data_manifest.py --check` và lệnh `sha256sum -c` ở trên.
- Lock ghi torch 2.14.0+cu130. Nếu môi trường mới khác, `freeze(check=True)` báo lệch ở khoá `environment`. Khi đó **không** sửa lock: mọi lần chạy thêm phải là một phiên bản protocol mới, có ghi deviation. `summarize` không gọi `freeze(check=True)`.
- Các session tmux (`p6_*`) không đi theo bản sync. Mọi driver P6 đã xong lúc 02:16 UTC 30/10 và supervisor đã dừng (xem `docs/plan.md` §12 ý 26); không có gì cần resume. Summarize đã chạy trên server mới ngày 02/11/2026 (lock và sha256 của `outputs/bench/` khớp trước khi chạy; `docs/plan.md` §12 ý 28).
- `outputs/bench/package/` (S7, 02/11/2026, khoảng 845 MB) sinh sau bản sync nên không có trong `unpushed_outputs.sha256`. Không cần chép sang máy khác: chạy `scripts/37_bench_package.py generate` để sinh lại; lệnh này so sha256 nội dung với `benchmark/MANIFEST.json` (trong git). Sau đó chạy `tables` (cần `outputs/p2r` và `outputs/bench`).
## 4. Chuyển sang máy thứ ba (04/11/2026)
Máy hiện tại (`ssh-idp-lab-v2-0`, 2 × H200) có git ở `423a333`, còn `outputs/`, `data/` và `refs/` lấy từ bản chụp ngày 30/10. Kiểm tra ngày 04/11: 21.987/21.987 file của `unpushed_outputs.sha256` khớp sha256; F3, NLOG và Volve đủ file, đúng kích thước theo `data_manifest/*.json` (chưa băm lại). Thiếu các file sinh ra trên server trước ngày 02/11, ngoài git:
- **Đã sinh lại ngày 04/11 (khớp từng byte):** `outputs/bench/summary/` (`34_run_bench.py summarize`, rồi `36_bench_verdicts.py`), `outputs/bench/package/` (`37_bench_package.py generate`: 1.260 hash nội dung khớp `benchmark/MANIFEST.json`; `tables`: `benchmark/reference/` không đổi so với git; `selftest` PASS) và `outputs/repro/*.tar.gz` (`39_repro_package.py build`: `repro/MANIFEST.json` không đổi, gồm sha256 của cả 5 archive và của 22 file trong `outputs/bench/summary/`). `paper/main.pdf` đã build lại (68 trang, không có tham chiếu thiếu, bibtex không warning). Log ở `logs/runs/20261104-*`.
- **Môi trường:** `.venv` (system-site-packages trên `/opt/conda`) lệch lock `protocol_bench` ở numpy (2.5.3 so với 2.5.4), và thiếu tabulate cùng segyio. Đã cài vào `.venv` đúng các phiên bản đã khoá: `numpy==2.5.4 tabulate==0.10.0 segyio==1.9.14`.
- **Còn thiếu, cần người dùng chép từ máy cũ:** 7 PDF tải tay ngày 02/11 (`refs/{lim2025awsm,lim2025bootnet,li2024bpinn,guillon2020gtmetrics,castagna2026quality,rizzuti2024waveletflows,rizzuti2025uhr}.pdf`); `outputs_thesis/` (7 artifact, `data_manifest/thesis_outputs.json`; có lẽ chỉ từng có trên máy Windows); log thô ngày 02/11 (`logs/runs/20261102-*`, `logs/*.out`) và log P3 của máy Windows (chỉ là bản ghi).

View File

@@ -0,0 +1,205 @@
# T2 — Cơ chế của lợi ích bank (exploratory): khai báo trước
Ngày viết: **29/10/2026** (lịch gốc ở `docs/plan.md` §6.1 là 1/11/2026; làm sớm). Trạng thái: **exploratory, khai báo trước** (pre-declaration). Tài liệu này được viết và băm SHA-256 (`t2-mechanism.sha256`) **trước** khi tính bất kỳ đại lượng mới nào trên `outputs/p2r/` cho T2. Không sửa sau khi băm; thay đổi phải ghi thành mục "Deviation" có ngày ở cuối tài liệu kèm một dòng hash mới.
Liên quan: `docs/plan.md` §12 ý 22 (quyết định 3: T2 exploratory) và ý 24 (câu hỏi đổi ngày 29/10), `docs/research/pivot-theory-benchmark.md` §2.1 hàng T2 và §6, `docs/theory.md` §6 (Mệnh đề 3–6, Nhận xét 1, Hệ quả 3), `paper/sections/06_experiments.tex` mục 6.3–6.4 (todoblock T2), `configs/protocol_p2r.yaml` (khóa; không đụng).
---
## 0. Trạng thái, phạm vi và công bố những gì đã xem
### 0.1 Tính chất
1. **Exploratory.** T2 được thiết kế **sau khi** đã thấy toàn bộ kết quả P2r (H2a, H2b, nhánh σ_a, H3 mô tả) và phân tích post hoc ngày 29/10/2026 (mục 0.2). Vì vậy không kết quả nào của T2 là confirmatory; không kết quả nào thay đổi H2a, H2b, σ_a arm hay bất kỳ số đã đăng ký nào của `protocol_p2r`; không giao thức khóa nào bị đụng. Trong bài, T2 là "mechanism analysis (exploratory)" ở mục 6.4.
2. **Dữ liệu.** Chỉ dùng realization 8–15 của P2r, với bank SMC đã có (`outputs/p2r/posterior/<regime>/r<rid>_c<c>_n<N>_s0_particles.npz`, key `<well>/estR/g_acf`, mảng (1024, 390): hạt u = [b, g(389 nút lưới warp)], t(τ) = `R.grid.t_of_tau(U[:, 0], U[:, 1:], tau=R.tau_fine)` như `scripts/15_diag_train.py` `run_cell`), dự đoán đã lưu (`outputs/p2r/train/<regime>/cells/*.npz`, `*.csv`, `*_diag.csv`) và tổng hợp đã đăng ký (`outputs/p2r/summary/`). Không sinh realization mới. `outputs/p2r/` là **chỉ đọc**; mọi đầu ra của T2 ghi vào `outputs/t2/`.
3. **Nhãn test** chỉ dùng để chấm điểm theo đúng metric đã đăng ký (`run_d2.evaluate`, band RMSE với f_c = 6 Hz). Mọi ô, đại lượng, ước lượng và luật quyết định được cố định trong tài liệu này trước khi tính; không chọn gì theo kết quả.
### 0.2 Công bố (disclosure): những gì đã được xem ngày 29/10/2026, trước khai báo này
Các số dưới đây được **chép lại** từ file đã có (`outputs/p2r/posthoc/bound.csv`, `meta.json`; `outputs/p2r/summary/h2b.csv`, `sigma_post.csv`), không tính lại. Chúng là lý do T2 đổi câu hỏi (plan §12 ý 24), nên người đọc phải biết chúng đã được xem trước khi năm phép kiểm được viết ra.
**Bảng A. N = 16, tất cả ô (regime, c). rml_pm = tỉ số band RMSE M2-Sa/B3d-Sa đã đăng ký (H2b) với CI 95%; o_pm = Oracle/B3d-Sa; rml_o = M2-Sa/Oracle; gap_closed = (pm − rml)/(pm − oracle).**
| Ô | wide | σ_post (ms) | warp RMSE B3d-Sa (ms) | rml_pm [CI] | o_pm | rml_o | gap_closed |
| --- | --- | --- | --- | --- | --- | --- | --- |
| R10 c=0 | không | 0.283 | 0.211 | 0.994 [0.975, 1.014] | 0.984 | 1.010 | 0.382 |
| R10tb c=0 | không | 0.310 | 0.231 | 0.990 [0.968, 1.012] | 0.986 | 1.004 | 0.740 |
| R0 c=0 | không | 0.616 | 0.442 | 0.993 [0.978, 1.008] | 0.969 | 1.024 | 0.239 |
| R0h c=0 | không | 0.689 | 0.498 | 0.999 [0.983, 1.012] | 0.972 | 1.027 | 0.045 |
| Rm5 c=0 | không | 0.914 | 0.681 | 1.003 [0.988, 1.017] | 0.986 | 1.017 | −0.210 |
| R10 c=1 | không | 0.588 | 0.629 | 1.004 [0.994, 1.017] | 0.996 | 1.008 | −1.069 |
| R0 c=1 | **có** | 1.527 | 1.862 | 0.967 [0.956, 0.979] | 0.927 | 1.043 | 0.447 |
| R0h c=1 | **có** | 1.717 | 2.364 | 0.970 [0.953, 0.989] | 0.919 | 1.056 | 0.370 |
| R10tb c=1 | **có** | 1.916 | 4.784 | 0.890 [0.866, 0.915] | 0.758 | 1.174 | 0.455 |
| Rm5 c=1 | **có** | 2.559 | 2.911 | 0.982 [0.966, 0.995] | 0.933 | 1.052 | 0.275 |
| R10 c=2 | không | 1.181 | 0.997 | 0.987 [0.972, 1.002] | 0.974 | 1.013 | 0.513 |
| R0 c=2 | **có** | 2.792 | 2.719 | 0.952 [0.940, 0.962] | 0.899 | 1.059 | 0.477 |
| Rm5 c=2 | **có** | 3.955 | 3.924 | 0.964 [0.953, 0.977] | 0.909 | 1.061 | 0.395 |
| R0h c=2 | **có** | 4.176 | 4.102 | 0.904 [0.889, 0.925] | 0.853 | 1.060 | 0.652 |
| R10tb c=2 | **có** | 11.489 | 19.081 | 0.667 [0.615, 0.713] | 0.408 | 1.634 | 0.563 |
Tóm tắt đã ghi ở plan §12 ý 24: Oracle tốt hơn B3d-Sa 7–8% ở R0, R0h, Rm5 (c = 1, N = 16; o_pm 0.927, 0.919, 0.933) và 24% ở R10tb; ở c = 0 Oracle vẫn tốt hơn 1–3% dù sai số warp SMC chỉ 0.2–0.7 ms; M2-Sa đóng 27–46% khoảng cách B3d-Sa–Oracle ở c = 1 (39–65% ở c = 2) và không ô rộng nào đạt mức Oracle.
**Bảng B. Mọi cận đã xem (N = 16), tại σ_post. bound_post = 1/B_a đã đăng ký (nội suy trên lưới blur; tại R10tb c=2 kẹp ở 6 ms); a_exact = 1/B_a tính đúng tại σ_post; b = 1/B_b (Berkson, plug-in); b60 = b giữ hệ số ở 60 Hz; a_spec, b_spec = ρ* từ phổ chéo với nhãn thật.**
| Ô | 1/B_a đăng ký | a_exact | b | b60 | a_spec | b_spec |
| --- | --- | --- | --- | --- | --- | --- |
| R10 c=0 | 1.001 | 1.000 | 1.000 | 1.000 | 1.000 | 1.000 |
| R10tb c=0 | 1.001 | 1.000 | 1.000 | 1.000 | 1.000 | 1.000 |
| R0 c=0 | 1.001 | 1.001 | 0.999 | 0.999 | 1.000 | 1.000 |
| R0h c=0 | 1.001 | 1.001 | 0.998 | 0.999 | 1.000 | 1.000 |
| Rm5 c=0 | 1.002 | 1.002 | 0.997 | 0.998 | 1.000 | 1.000 |
| R10 c=1 | 1.000 | 1.001 | 0.998 | 0.999 | 1.000 | 0.999 |
| R0 c=1 | 0.999 | 0.999 | 0.982 | 0.991 | 0.994 | 0.990 |
| R0h c=1 | 0.996 | 0.996 | 0.972 | 0.986 | 0.991 | 0.984 |
| R10tb c=1 | 0.964 | 0.966 | 0.893 | 0.953 | 0.960 | 0.921 |
| Rm5 c=1 | 1.000 | 1.000 | 0.904 | 0.958 | 0.985 | 0.952 |
| R10 c=2 | 0.994 | 0.996 | 0.984 | 0.993 | 0.993 | 0.990 |
| R0 c=2 | 0.968 | 0.968 | 0.768 | 0.911 | 0.957 | 0.833 |
| Rm5 c=2 | 0.980 | 0.980 | 0.285 | 0.776 | 0.955 | 0.447 |
| R0h c=2 | 0.910 | 0.910 | 0.132 | 0.604 | 0.893 | 0.191 |
| R10tb c=2 | 0.634 | 0.481 | 0.000 | 0.000 | 0.476 | 0.000 |
**Bảng C. Cùng các cận, tại sai số warp RMS của B3d-Sa trên giếng train (bound_warp = 1/B_a; b, b60, a_spec, b_spec như trên).**
| Ô | 1/B_a | b | b60 | a_spec | b_spec |
| --- | --- | --- | --- | --- | --- |
| R10 c=0 | 1.001 | 1.000 | 1.000 | 1.000 | 1.000 |
| R10tb c=0 | 1.001 | 1.000 | 1.000 | 1.000 | 1.000 |
| R0 c=0 | 1.001 | 0.999 | 1.000 | 1.000 | 1.000 |
| R0h c=0 | 1.001 | 0.999 | 1.000 | 1.000 | 1.000 |
| Rm5 c=0 | 1.001 | 0.998 | 0.999 | 1.000 | 1.000 |
| R10 c=1 | 1.000 | 0.998 | 0.999 | 0.999 | 0.999 |
| R0 c=1 | 0.994 | 0.961 | 0.981 | 0.988 | 0.976 |
| R0h c=1 | 0.982 | 0.894 | 0.955 | 0.974 | 0.927 |
| R10tb c=1 | 0.710 | 0.017 | 0.258 | 0.703 | 0.025 |
| Rm5 c=1 | 0.996 | 0.820 | 0.933 | 0.979 | 0.902 |
| R10 c=2 | 0.999 | 0.991 | 0.996 | 0.996 | 0.995 |
| R0 c=2 | 0.971 | 0.794 | 0.920 | 0.960 | 0.853 |
| Rm5 c=2 | 0.980 | 0.301 | 0.783 | 0.956 | 0.466 |
| R0h c=2 | 0.913 | 0.154 | 0.626 | 0.897 | 0.221 |
| R10tb c=2 | 0.634 | 0.000 | 0.000 | 0.396 | 0.000 |
**Số đếm đã ghi** (`meta.json`, 8 ô rộng ở N = 16; "vượt" = rml_pm thấp hơn cận; trong ngoặc: cả mép trên CI thấp hơn cận): classical tại σ_post 7/8 (6), tại sai số warp 6/8 (4); a_exact tại σ_post 7/8 (6); Berkson b tại σ_post 3/8 (1; R0, R0h, R10tb, đều c = 1), tại sai số warp 0/8; b60 tại σ_post 3/8 (2), tại sai số warp 1/8 (1; R0 c=1); a_spec tại σ_post 5/8 (3), tại sai số warp 3/8 (1); b_spec tại σ_post 3/8 (2), tại sai số warp 1/8 (0). Tỉ số (b)/(a) của tích phân méo: 1.5–1.7 tại σ = 1.5 ms, 2.1–2.6 tại 2 ms, 3.3–4.6 tại 2.5 ms; tần số trung vị có trọng số f⁴ 67–72 Hz.
**Cũng đã tính từ cùng các dự đoán này:** T4 (`scripts/30_t4_coverage.py` → `outputs/t4/`: ξ, coverage, phân tách theo ngân sách; plan §12 ý 24) và T3 (`scripts/27_t3_power.py` → `outputs/t3/`: N*, power, tỉ số trung vị theo σ_ref; `applicability-results.md`). Cả hai không dùng responsibilities, bank đối chứng, thống kê đa mode hay hiệp phương sai offset; các đại lượng của năm phép kiểm dưới đây **chưa được tính** ở bất kỳ đâu trước tài liệu này. Những gì đã tính trên dev P2 (900/901) về λ ∈ {1, 3, ∞} (`outputs/p2/diag/train/`, M2@k và M2-Sa@k, dùng để chọn λ = 1/τ_c giữ nguyên) cũng đã được xem; T2 không chọn lại λ.
---
## 1. Câu hỏi và ba cơ chế
**Câu hỏi (đổi ngày 29/10/2026):** sau khi trừ hiệu chỉnh quần thể của cấu trúc Berkson (cận 1/B_b), lợi ích của bank (M2-Sa so với B3d-Sa) còn phần nào không, và nếu còn thì cơ chế gì tạo ra nó? Ba ứng viên, mỗi ứng viên kèm hệ quả quan sát được mà nó dự đoán:
- **(a) Tăng cường nhãn / regularization.** Bank làm mạng không nhớ được một nhãn lệch duy nhất; phương sai học được hấp thụ độ trải của bank. Hệ quả: một bank **không mang thông tin** về warp nào khớp với seismic, chỉ có cùng độ rộng và cùng cấu trúc tương quan (phép kiểm ii), phải cho lợi ích gần bằng M2-Sa.
- **(b) Lệch của warp trung bình khi posterior đa mode.** Khi posterior có hai mode (cycle skip), warp trung bình nằm giữa hai mode và nhãn của nó sai ở mọi mode (Hệ quả 3); bank giữ cả hai mode. Hệ quả: lợi ích tập trung ở các đơn vị (regime, c, rid) có giếng đa mode (phép kiểm iii).
- **(c) Tái đăng ký ngầm qua responsibilities.** Với λ > 0, gradient của RML là NLL có trọng số r_{w,j,s} = softmax_s(log π_s + λ ℓ_{w,j,s}) (Bổ đề 3; Nhận xét 1): mạng dùng chung giữa các giếng dồn trọng số về các hạt mà nhãn khớp với dự đoán nhất quán liên giếng. Hệ quả: warp có trọng số r gần warp thật hơn warp trung bình (phép kiểm i), ở λ của giao thức.
Hai phép kiểm còn lại không phân biệt (a)/(b)/(c) mà định vị câu hỏi: **(iv)** quyết định cấu trúc sai số của tie trung bình posterior (Berkson hay classical), tức cận nào (1/B_b hay 1/B_a) áp dụng cho B3d-Sa; **(v)** tách phần của khoảng cách B3d-Sa–Oracle do số vòng lặp (250 so với 500) khỏi phần do sai số nhãn.
Ba cơ chế không loại trừ nhau. Một kết quả "không cơ chế nào" cũng là kết quả và sẽ được báo cáo như vậy.
---
## 2. Thiết lập chung (tái dựng đúng `scripts/15 run_cell`)
- **Giao thức và kiểm tra hash.** `P = run_d2.load_protocol(check=True)` (protocol_p2, nguồn của backbone, optimizer, cửa sổ, chuẩn hóa nhãn, f_c); `run_d2.check_rids([8..15], P)` phải trả về protocol_p2r khớp SHA-256 (như scripts 14/15). Regime (snr_db, anchor_density) đọc từ `configs/d2_synth_p2r.yaml` như `scripts/run_p2r_main.sh`.
- **Realization và giếng.** `R = D2Realization(cfg, rid, hg, WarpHyper(**prior["hyper"]), wav)`; train = `R.pool[:N]`, test = `R.test` (8 giếng); `obs = R.observe(w, c, snr, σ_a = 7, density)`; test quan sát ở cùng SNR với anchor đầy đủ (không dùng anchor test). Input `X = zscore_patch(seis, R.main)`; nhãn test `yt = 100·y_true`.
- **Đăng ký.** `out = register(R, obs, reg_settings(P), reg_seed = 0)`; kiểm `out["phase"] == phase0` của `r<rid>_c<c>_n<N>_s0_phase.json`; wavelet pha R: `phase_wavelet(phase_basis(statistical_wavelet(...), fac), phase_R)`; `t_b3b = tie_b3b`, `t3c = tie_b3c` (B3c-R) như run_cell.
- **Bank SMC.** `U = smc["<well>/estR/g_acf"]`; `Tf = R.grid.t_of_tau(U[:, 0], U[:, 1:], tau=R.tau_fine)` (1024, 3101); warp trung bình B3d-Sa `tm = warp_mean(Tf, 0)` (đều trên 1024 hạt); tập con 64 thành viên `sub = np.random.default_rng([0, i, 29]).choice(1024, 64, replace=False)` (i = chỉ số giếng train); nhãn `labels_for_warps(R.tau_fine, antialias(phi_log, 0.5, 4), T, R.t_main)`; thành viên không hợp lệ (nhãn không hữu hạn) thay bằng thành viên hợp lệ đầu tiên và log π = −∞; π đều trên thành viên hợp lệ. Nhãn chuẩn hóa `(Y − m0)/s0` với `out["norm"]`.
- **Huấn luyện.** `train_predict(X, Xte, spec, tcfg, seed, budgets, device)` với `tcfg = P.training.model | P.training.optimizer` (CNNGRUHetero d = 64, dropout 0.05, Adam 5e-3, grad clip 5, full batch, cửa sổ 64 mẫu bắt đầu 0, 2, …, 62: 32 cửa sổ/giếng); λ = `out["lam"]` = 1/τ_c của ô; seed 0–4; ngân sách khóa: Oracle 500, B3d-Sa 250, M2-Sa 250. Dự đoán về p.u.: μ = 100(μ̂ s0 + m0), σ = 100 σ̂ s0; chấm bằng `run_d2.evaluate(yt, μ, σ, f_c = 6)` → `band_rmse` theo giếng test.
- **Thống kê.** Trung bình ô = trung bình trên realization × seed × giếng test. Tỉ số = tỉ số hai trung bình ô. CI 95% = bootstrap trên realization (2000 lần, `np.random.default_rng(0)`, như `scripts/13 boot`): lấy mẫu lại 8 realization có hoàn lại, trung bình theo realization rồi tỉ số/hiệu. Hiệu ghép cặp = trung bình trên realization của (hiệu theo realization). "Majority" = tỉ lệ > 0.5.
- **Sai số warp.** `warp_errors(t_of_tau[None], R.tau_fine, o["t_of_tau_true"], R.t_main)["warp_rmse_ms"]`: RMSE trên 126 mẫu của t_main của τ(t) − τ_true(t), với τ(t) = nghịch đảo của t(τ) (`invert_warps`). Đây là đại lượng ở cột `B3d-Sa_warp_rmse_ms` của `_diag.csv` (sẽ đối chiếu).
- **Tập nút cửa sổ theo τ** (cho iii, iv): K_w = {k : t_b3b(τ_k) ∈ [600, 1100] ms} trên lưới warp τ_k (bước 4 ms), xác định từ tie anchor B3b (chỉ dữ liệu), dùng chung cho mọi phương pháp và hạt của giếng đó.
- **Ô.** WIDE16 = 8 ô có `wide = True` ở N = 16 trong `h2b.csv`: R0 c=1, R0h c=1, R10tb c=1, Rm5 c=1, R0 c=2, Rm5 c=2, R0h c=2, R10tb c=2. NARROW16 = R10 c=0, R0 c=0, Rm5 c=0 (N = 16). Phép kiểm (i), (ii), (v): WIDE16 ∪ NARROW16 (11 ô × 8 realization = 88 cell-realization). Phép kiểm (iii), (iv): cả 30 ô (5 regime × c ∈ {0, 1, 2} × N ∈ {4, 16}); luật quyết định chỉ dùng các ô nêu trong từng phép kiểm. Ô c = 2 mang cờ "unstable posterior" như P2r.
- **Thay đổi code.** Thêm **bổ sung** vào `ml_porosity/models/bank_train.py`: tham số `on_budget=None` của `train_predict`, gọi `on_budget(step, model)` ngay sau khi lấy dự đoán tại mỗi ngân sách; mặc định `None` giữ đường chạy cũ nguyên vẹn. Thêm helper thuần `responsibilities(mu, sigma, Y, logpi, starts, win, lam)` vào `ml_porosity/losses/rml.py` (không đổi ngữ nghĩa hàm nào). `pytest tests/test_losses.py tests/test_models.py` chạy trước và sau (trước: 24 pass, 29/10 12:3x UTC).
- **Tái lập (self-check).** Ô R0, rid 8, c = 1, N = 16, seed 0: band RMSE theo giếng test của M2-Sa(250), B3d-Sa(250), Oracle(500) huấn luyện lại so với `outputs/p2r/train/R0/cells/r8_c1_n16.csv`; báo sai lệch tuyệt đối lớn nhất (mục tiêu ~1e-4; GPU/GRU không tất định và torch đã đổi phiên bản, nên sai lệch thực đo được sẽ được ghi nguyên). Thêm: `B3d-Sa_warp_rmse_ms` và `M2-Sa_n_valid` theo giếng của `_diag.csv` phải khớp giá trị tính lại tới 1e-9 (CPU). Trên cả 88 cell-realization, sai lệch band RMSE giữa bản huấn luyện lại và bản đã đăng ký (Oracle 500, B3d-Sa 250, M2-Sa 250) được ghi (trung bình, lớn nhất) làm thước đo bất định tính; mọi tỉ số của T2 được báo cả hai cách: mẫu số đã đăng ký và mẫu số huấn luyện lại trong cùng phiên.
Các ngân sách [250, 500] trong một quỹ đạo: `train_predict` lấy dự đoán tại từng bước của `budgets` trên một quỹ đạo (tương đương huấn luyện riêng từng ngân sách; docstring của module). Callback tại bước 250 lấy responsibilities trước khi quỹ đạo tiếp tục.
Mỗi cell-realization, mỗi seed, huấn luyện 6 mạng: M2-Sa (λ giao thức) [250, 500] (callback tại 250), M2-Sa@1 [250] (callback), M2-Sa@3 [250] (callback), B3d-Sa [250, 500], Oracle [250, 500], Control [250]. Tổng 88 × 5 × 6 = 2.640 mạng.
---
## 3. Năm phép kiểm
### (i) Sai số warp có trọng số responsibility so với warp trung bình
**Ô:** WIDE16 ∪ NARROW16. **Mạng:** M2-Sa cuối huấn luyện (bước 250) với λ giao thức; chẩn đoán đã khai báo tại λ ∈ {1, 3} (M2-Sa@1, M2-Sa@3 của `scripts/15`: cùng bank, cùng π, cùng ngân sách 250). Seed 0–4.
**Đại lượng (theo giếng train w, trên input train X, mạng ở chế độ eval):**
- ℓ_{w,j,s} = `window_loglik(μ, σ, Y_norm, starts, 64)` trên 32 cửa sổ cố định; r_{w,j,s} = softmax_s(log π_{w,s} + λ ℓ_{w,j,s}).
- Trọng số theo thành viên r̄_{w,s} = mean_j r_{w,j,s}; trọng số theo mẫu r_{w,i,s} = trung bình của r_{w,j,s} trên các cửa sổ j chứa mẫu i.
- E_r: sai số warp của T_r(τ) = Σ_s r̄_{w,s} T_s(τ) (`warp_mean(Tf[sub], log r̄)`).
- E_r,win: RMSE trên t_main của Σ_s r_{w,i,s} τ_s(t_i) − τ_true(t_i), với τ_s(t) = `invert_warps(Tf[sub], tau_fine, t_main)`.
- E_64: sai số warp của warp trung bình đều trên cùng 64 thành viên (`warp_mean(Tf[sub], 0)`). **So sánh chính** (cùng bank; chỉ khác trọng số).
- E_1024: sai số warp của `warp_mean(Tf, 0)` (warp của B3d-Sa). So sánh phụ.
- ē_r = Σ_s r̄_s e_s và ē_u = Σ_{s hợp lệ} e_s / S_ok, với e_s = RMSE trên t_main của τ_s(t) − τ_true(t) (sai số từng thành viên).
- S_eff = 1/Σ_s r̄_s², H = −Σ_s r̄_s log r̄_s (nat; tối đa log 64 = 4.159); S_eff theo cửa sổ (trung bình trên j) và max_s r_{w,j,s} trung bình.
**Tổng hợp:** Δ_r = E_r − E_64 (chính), Δ_r,1024 = E_r − E_1024, Δ_win = E_r,win − E_64, Δ_e = ē_r − ē_u; theo ô: trung bình trên (rid, seed, giếng) với CI bootstrap trên realization; tỉ lệ (rid, seed, giếng) có Δ < 0.
**Luật quyết định (tại λ giao thức):** một ô "có (c)" nếu tỉ lệ (rid, seed, giếng) có Δ_r < 0 vượt 0.5 **và** CI 95% của Δ_r nằm hoàn toàn dưới 0. **Bằng chứng cho (c)** nếu ≥ 5/8 ô rộng "có (c)". Nếu điều đó chỉ xảy ra tại λ ∈ {1, 3}: ghi "(c) khả dụng nhưng không phải điều phương pháp của giao thức làm" (không claim về λ; `protocol_p2r` wording.forbidden). Nếu không ô rộng nào đạt: không bằng chứng cho (c). Ô hẹp được báo cáo để đối chiếu (kỳ vọng Δ ≈ 0 vì các thành viên gần trùng nhau). Δ_e và S_eff là mô tả: S_eff gần 64 nghĩa là responsibilities gần đều (RML gần trung bình theo π, Mệnh đề 4), S_eff nhỏ nghĩa là gần hard-min.
**Ý nghĩa:** E_r < E_64 cho thấy responsibilities mang thông tin về warp thật vượt ngoài posterior, tức có tái đăng ký. Đây là điều kiện cần cho (c) là nguồn của lợi ích, không phải điều kiện đủ.
### (ii) Bank nhiễu GP ngẫu nhiên (đối chứng cho (a))
**Ô:** WIDE16 ∪ NARROW16. **Xây bank đối chứng theo giếng train:** T_grid = `R.grid.t_of_tau(U[:, 0], U[:, 1:])` (1024 × 389, trên lưới warp); T̄ = trung bình theo hạt; C = hiệp phương sai thực nghiệm (ddof 0, 389 × 389) của T_grid quanh T̄. Phân rã C = V diag(λ) Vᵀ, cắt λ⁺ = max(λ, 0). Nhiễu η_s = V diag(√λ⁺) z_s, z_s ~ N(0, I_389), `rng = np.random.default_rng([0, i, 2029])`, rút tuần tự. SD biên của η tại mỗi nút bằng SD của hạt tại nút đó (đúng tới phần cắt), và tương quan theo τ là tương quan của tập hạt; đó là nghĩa của "cùng độ rộng, cùng cấu trúc tương quan, không mang thông tin về warp nào khớp seismic" (phân phối Gauss cùng hai mômen đầu, mất mọi cấu trúc cao hơn như đa mode và mất liên hệ giữa hạt với seismic). Chấp nhận một lần rút nếu diff(T̄ + η_s) > 0.05 ms tại mọi nút (t(τ) tăng ngặt); nếu không thì rút lại, tối đa 1.280 lần cho 64 thành viên; số lần loại được ghi. Nếu không đủ 64 thành viên, giếng dùng **phương án dự phòng** rút Gauss trong không gian u = [b, g] (ū, C_u từ hạt; đơn điệu theo cấu trúc) và được gắn cờ. t_s trên tau_fine = `np.interp(tau_fine, grid.tau, T̄ + η_s)` (như `D2Realization.observe` làm với warp thật). Nhãn và thành viên không hợp lệ xử lý như bank SMC (mục 2). Báo thêm: SD biên của bank đối chứng so với SD của hạt tại các nút K_w (tỉ số), sai số warp trung bình thành viên ē_ctl so với ē_u của 64 thành viên SMC.
**Huấn luyện:** RML, λ = `out["lam"]`, π đều, ngân sách 250, seed 0–4, chấm trên 8 giếng test như M2-Sa.
**Tỉ số theo ô (CI bootstrap trên realization):** ρ_ctl = Control/B3d-Sa (mẫu số đã đăng ký), ρ_rml = M2-Sa/B3d-Sa (đã đăng ký; bằng tỉ số H2b), ρ_ctl,rml = Control/M2-Sa (đã đăng ký); phiên bản mẫu số huấn luyện lại trong phiên cho cả ba (độ nhạy với bất định tính); hiệu ghép cặp D_ctl = band RMSE(Control) − band RMSE(M2-Sa) theo realization (trung bình trên seed, giếng) với CI.
**Luật quyết định theo ô rộng:** (A) "nhất quán với (a)" nếu CI(ρ_ctl) nằm dưới 1 **và** CI(D_ctl) chứa 0; (B) "chống (a)" nếu CI(ρ_ctl) chứa 1 trong khi CI(ρ_rml) nằm dưới 1; (C) "(a) một phần" nếu CI(ρ_ctl) nằm dưới 1 và CI(D_ctl) nằm trên 0 (đối chứng có lợi nhưng kém M2-Sa); (D) còn lại: không xác định. Kết luận chung = loại chiếm đa số trong 8 ô rộng, báo kèm số đếm từng loại. Ô hẹp: kỳ vọng ρ_ctl ≈ 1; nếu CI(ρ_ctl) nằm trên 1.02 ở ô hẹp thì ghi "bank nhiễu có hại khi posterior hẹp" (mô tả).
### (iii) Tách theo đa mode (cho (b))
**Thống kê đa mode (theo giếng train, cố định trước):** offset trung bình cửa sổ của từng hạt a_s = mean_{k ∈ K_w} (t_s(τ_k) − τ_k), s = 1..1024 (ms). Khớp Gaussian mixture 1 và 2 thành phần (`sklearn.mixture.GaussianMixture`, sklearn 1.9.1, `covariance_type="full"`, `n_init=5`, `random_state=0`, `reg_covar=1e-6`) trên a_s; ΔBIC = BIC₁ − BIC₂. Giếng **đa mode** nếu ΔBIC > 10 **và** |μ₁ − μ₂| > 4 ms (một mẫu) **và** min(w₁, w₂) ≥ 0.1. Lý do chọn a_s thay cho b = U[:, 0] (gợi ý trong todoblock): b là offset tại τ = 100 ms, đầu trên của miền log, ngoài cửa sổ chấm điểm 600–1100 ms; nhãn trong cửa sổ phụ thuộc t(τ) trong cửa sổ, và a_s cũng là đại lượng của phép kiểm (iv). Thống kê trên b được tính và báo cáo như **phụ**, không dùng trong luật.
**Đơn vị và nhóm:** đơn vị = (regime, c, rid) ở N = 16; m_u = tỉ lệ giếng đa mode trong 16 giếng train. Nhóm "đa mode" nếu m_u ≥ 0.25 (≥ 4 giếng); độ nhạy: m_u > 0 (≥ 1 giếng). Tỉ lệ m_u cũng được báo theo ô cho cả 30 ô (mô tả; kỳ vọng cao nhất ở R10tb c = 2, ô có cờ đa mode trong `protocol_p2r`).
**Đại lượng:** ρ_u = trung bình trên seed × giếng test của band RMSE(M2-Sa) chia cho cùng đại lượng của B3d-Sa, từ dự đoán đã lưu (không huấn luyện lại); dùng log ρ_u.
**So sánh (64 đơn vị của 8 ô rộng):** D = mean log ρ_u (đa mode) − mean log ρ_u (đơn mode): (1) không hiệu chỉnh; (2) **hiệu chỉnh theo ô** (chính): hiệu trong ô, trung bình trên các ô có cả hai nhóm với trọng số n₁n₂/(n₁ + n₂). CI: bootstrap đơn vị trong từng ô (2000, rng 0). Thêm: Spearman giữa m_u và log ρ_u trên 64 đơn vị và trong từng ô.
**Luật quyết định:** bằng chứng cho (b) nếu D hiệu chỉnh < 0 với CI không chứa 0 (lợi ích lớn hơn ở nhóm đa mode). Nếu không ô rộng nào có cả hai nhóm (nhóm trùng với ô), phép tách bị trộn với ô: không rút kết luận, chỉ báo m_u theo ô và D không hiệu chỉnh kèm cảnh báo. Nếu không đơn vị nào đa mode: "(b) không kiểm được trên P2r; không bằng chứng".
### (iv) Kiểm hiệp phương sai Berkson so với classical (quyết định cận nào áp dụng)
**Đại lượng theo giếng train (trên K_w):** offset thật a*_w = mean_k (t_true(τ_k) − τ_k); offset gán â^m_w = mean_k (t_m(τ_k) − τ_k) với m ∈ {B3d-Sa: `warp_mean(Tf, 0)`; B3c-R: t3c; B3b: t_b3b}; sai số e^m_w = â^m_w − a*_w. (Tương đương định nghĩa theo t trong `docs/theory.md` §6.1 tới dấu và tới hiệu ứng biên; hệ số tương quan không đổi dấu khi đổi dấu cả hai đại lượng.)
**Thống kê thô (như bài mục 4.3):** r_C = corr(e, a*) (classical dự đoán 0), r_B = corr(e, â) (Berkson dự đoán 0), V = Var(â)/Var(a*) (classical > 1, Berkson < 1); gộp 8 realization × N giếng cho mỗi ô. Ghi chú về lực: a* biến thiên giữa giếng với SD = c · σ_b = c · 19.4 ms (prior F3 của generator; `outputs/p2/warp_prior_f3.json`), trong khi σ_e ≈ 1–5 ms, nên |r| ≤ σ_e/σ_a* ≈ 0.05–0.25 với SE ≈ 0.09 tại n = 128: thống kê thô có lực thấp ở c = 1 và **suy biến ở c = 0** (a* ≡ 0; Cov(e, a*) = 0 tầm thường). Vì vậy c = 0 được báo nhưng không dùng trong luật.
**Thống kê neo theo anchor (chính):** a*'_w = a*_w − â^{B3b}_w, â'_w = â^m_w − â^{B3b}_w (cùng e). r'_C = corr(e, a*'), r'_B = corr(e, â'), V' = Var(â')/Var(a*'). Lý do: â^{B3b} là hàm của dữ liệu (chỉ anchor); trừ nó giữ nguyên e và đưa biến thiên của "giá trị thật" về thang sai số anchor (σ_a/√n_k ≈ 2–3 ms), cùng bậc với σ_e, nên tương quan có thể phát hiện được. Dưới Berkson (a* − â độc lập với dữ liệu): r'_B = 0 **chính xác** và Cov(e, a*') = −Var(e) < 0. Dưới classical (e độc lập với a*): Cov(e, a*') = −Cov(e, n_B) với n_B = â^{B3b} − a* (nhiễu anchor), bằng 0 chỉ khi thêm e ⊥ n_B; điều này hợp lý cho tie chỉ dùng seismic, **không bảo đảm** cho B3d-Sa (dùng anchor) và B3c-R (khởi từ B3b). Hệ quả cho cách đọc: với B3d-Sa, thống kê quyết định là r'_B (0 ⇔ trọng số tương đối anchor/seismic của posterior đúng ⇔ Berkson; r'_B > 0 ⇔ seismic được tin quá; r'_B < 0 ⇔ tin chưa đủ); r'_C < 0 không phân biệt được hai cấu trúc cho B3d-Sa và chỉ được báo.
**CI:** bootstrap cụm trên realization (lấy mẫu lại 8 realization có hoàn lại, giữ nguyên mọi giếng của realization; 2000 lần, rng 0); CI phân vị 95%.
**Độ nhạy theo mẫu:** cùng các tương quan với đại lượng theo nút (t_m(τ_k) − τ_k, t_true(τ_k) − τ_k, hiệu, và phiên bản neo theo anchor theo nút) gộp trên k ∈ K_w, giếng, realization; cùng bootstrap cụm.
**Luật quyết định theo ô (c ≥ 1) và phương pháp, trên thống kê neo:** "Berkson" nếu CI(r'_B) chứa 0 và CI(r'_C) không chứa 0; "classical" nếu CI(r'_C) chứa 0 và CI(r'_B) không chứa 0; còn lại "neither" (ghi rõ "không lực" nếu cả hai chứa 0, "không cấu trúc nào" nếu cả hai không chứa 0). Ô dùng cho kết luận: bốn ô rộng c = 1, N = 16 (R0, R0h, R10tb, Rm5) và bản gộp mọi ô c = 1 (5 regime × 2 N; bootstrap cụm trên realization). Kết quả thô được báo với cùng luật, làm đối chiếu. **Hệ quả:** ở ô kết luận "Berkson" cho B3d-Sa, cận 1/B_b (cột `bound_post_b`, Bảng B) là cận áp dụng; "classical" → 1/B_a; "neither" → không cận nào được claim cho ô đó. Điều này chỉ làm rõ cách đọc Bảng `tab:h2b`, không đổi số nào.
### (v) B3d-Sa và M2-Sa ở ngân sách của Oracle (500 vòng lặp)
**Ô:** WIDE16 ∪ NARROW16. **Huấn luyện lại** B3d-Sa, M2-Sa (λ giao thức) và Oracle với ngân sách [250, 500] trên một quỹ đạo, seed 0–4, spec y hệt bản đã đăng ký (mục 2).
**Tỉ số theo ô (trung bình ô; CI bootstrap trên realization):** Oracle(500)/B3d-Sa(500); B3d-Sa(500)/B3d-Sa(250) (cả hai huấn luyện lại; và so với B3d-Sa(250) đã đăng ký); M2-Sa(500)/B3d-Sa(500); Oracle(250)/B3d-Sa(250); M2-Sa(250)/B3d-Sa(250) (tái lập tỉ số H2b trong phiên); Oracle(500)/B3d-Sa(250) (tái lập o_pm, Bảng A). Thêm band PCC cho cùng các cặp.
**Cách đọc (không phải gate):** phần của khoảng cách B3d-Sa–Oracle do số vòng lặp = 1 − [1 − Oracle(500)/B3d-Sa(500)]/[1 − Oracle(500)/B3d-Sa(250)] khi cả hai tỉ số dưới 1; phần còn lại ở cùng ngân sách được quy cho sai số nhãn (và bất định tính, theo thước đo ở mục 2). Nếu B3d-Sa(500) kém B3d-Sa(250) (tỉ số > 1 với CI trên 1), ngân sách 250 đã chọn trên dev là phù hợp và khoảng cách không do thiếu vòng lặp. M2-Sa(500)/B3d-Sa(500) so với tỉ số H2b: lợi ích bank còn hay mất ở ngân sách dài hơn, chỉ báo cáo. Các so sánh đã đăng ký ở 250 vẫn là số được báo trong bài; (v) là bổ sung mô tả.
---
## 4. Báo cáo, claim cấm, ngân sách, đầu ra
**Báo cáo bất kể chiều kết quả:** mọi bảng của mục 3 với ước lượng và CI theo ô, tỉ lệ (rid, seed, giếng) cho (i), số đếm loại (A)–(D) cho (ii), m_u theo ô và D cho (iii), verdict theo ô và phương pháp cho (iv), các tỉ số của (v); sai lệch tái lập; số lần loại/cờ dự phòng của bank đối chứng; thời gian chạy và lệnh. Kết quả âm hoặc null được báo như kết quả dương.
**Claim cấm** (plan §10; `protocol_p2r` wording.forbidden; thêm cho T2): không câu nào confirmatory; không đổi H2a/H2b/σ_a arm hay bất kỳ số đã đăng ký; không "mechanism proven" / "cơ chế đã được chứng minh" (chỉ "consistent with" / "against", exploratory); không claim λ khác tốt hơn λ giao thức (M2-Sa@1, @3 chỉ là chẩn đoán responsibilities); không claim calibration; không ngoại suy sang field; không gọi lợi ích "vượt cận" nếu (iv) không cho Berkson và tỉ số không dưới 1/B_b; ô c = 2 giữ cờ unstable.
**Tài nguyên:** GPU cuda:0 (trống lúc 12:28 UTC 29/10; chọn lại nếu tình trạng đổi), 4 worker, `OMP/MKL/OPENBLAS/NUMEXPR_NUM_THREADS = 2`; ước tính: giai đoạn huấn luyện 88 cell-realization × (đăng ký ≈ 1–2 phút + 30 mạng ≈ 2–3 phút) ≈ 1.5–2 h với 4 worker; (iii), (iv) chỉ CPU, 240 cell-realization, ≈ 15–30 phút. Mọi lần chạy qua `scripts/runlog.sh -n t2_<stage>`; lần chạy dài tách bằng `setsid nohup`, log `logs/t2_<stage>.out`.
**Đầu ra:** `scripts/32_t2_mechanism.py` (`--tests i ii iii iv v`, `--device`, `--workers`, `--out-dir` mặc định `outputs/t2`, resume theo (giai đoạn, cell-realization)); `outputs/t2/cells/<regime>_r<rid>_c<c>_n16.csv` (metric test của mọi mạng huấn luyện lại), `_resp.csv` (i), `_ctl.csv` (ii); `outputs/t2/iii/`, `outputs/t2/iv/` theo cell-realization; tổng hợp `test_i.csv`, `test_ii.csv`, `test_iii.csv`, `test_iv.csv`, `test_v.csv`, `selfcheck.json`, `meta.json`, `summary.md`, `figures/*.pdf` (nhãn tiếng Anh, `ml_porosity.eval.figstyle`); tài liệu kết quả `docs/research/t2-results.md` (tiếng Việt). Không ghi vào `outputs/p2r/`, không sửa `configs/*`, `scripts/14`, `15`, `18`, `synth_d2.py`, bài, `docs/plan.md`, `AGENTS.md`, `report.html` (orchestrator đồng bộ).
---
## Deviation
(Trống lúc băm. Mọi thay đổi sau khi băm ghi ở đây, có ngày, kèm một dòng hash mới trong `t2-mechanism.sha256`.)

View File

@@ -0,0 +1 @@
f04e660792faf301c9f433347a5d1258bded098bb9a7ec05f808823f4efb2b87 t2-mechanism.md # hashed 2026-10-29T12:39:35Z before any T2 computation

225
docs/research/t2-results.md Normal file
View File

@@ -0,0 +1,225 @@
# Kết quả T2 — cơ chế của lợi ích bank (exploratory) — 29/10/2026
Khai báo trước: `t2-mechanism.md` (SHA-256 `f04e6607…` trong `t2-mechanism.sha256`, băm 12:39:35 UTC 29/10/2026 trước mọi phép tính; bản sao byte `outputs/t2/declaration_v1.md`). **Exploratory, không confirmatory**: không số nào ở đây thay đổi H2a, H2b, nhánh σ_a hay bất kỳ số đã đăng ký nào của `protocol_p2r`; `outputs/p2r/` chỉ đọc. Script: `scripts/32_t2_mechanism.py` → `outputs/t2/` (`test_i.csv` … `test_v.csv`, `test_iv_persample.csv`, `test_iii_*.csv`, `selfcheck.json`, `meta.json`, `summary.md`, `figures/t2_{i,ii,iii,iv,v}_*.pdf`). Mọi CI là bootstrap 95% trên realization (2000 lần, `rng(0)`), như khai báo §2.
**Tóm tắt một đoạn.** (iv) Sai số của tie trung bình posterior (B3d-Sa) ở c = 1 có cấu trúc **Berkson** trong cả bốn ô rộng N = 16 và trong hai tập gộp c = 1, nên cận quần thể áp dụng cho B3d-Sa là 1/B_b; so với cận đó, tỉ số H2b chỉ thấp hơn ở tối đa 3/8 ô tại σ_post với lề ≤ 0.015 (hai ô ≤ 0.003) và ở 0/8 ô tại sai số warp đo được, tức **không xác lập được lợi ích vượt hiệu chỉnh quần thể của cấu trúc Berkson**. (v) Ở cùng ngân sách 500 vòng lặp, Oracle chỉ còn hơn B3d-Sa 4.3–5.6% ở R0, R0h, Rm5 (c = 1): khoảng 30–35% khoảng cách đã đăng ký (7–8%) là do số vòng lặp; lợi ích bank còn ở ngân sách 500 nhưng nhỏ hơn (R0, R0h: 2%). Về cơ chế: (i) responsibilities của RML tái đăng ký nhãn train (warp có trọng số r gần warp thật hơn warp trung bình ở 8/8 ô rộng, giảm 13–40% sai số warp) — (c) có thật như một hiện tượng; nhưng (ii) một bank nhiễu GP **không mang thông tin ngoài hai mômen đầu của posterior** thu được phần lớn lợi ích ở c = 1 (3/4 ô loại A), nên lợi ích ở c = 1 chủ yếu là tăng cường nhãn (a); ở c = 2 (posterior không ổn định) bank SMC hơn bank đối chứng (3/4 ô loại C), nơi thông tin của posterior có đóng góp; (iii) không có bằng chứng cho (b) theo luật chính. Tất cả là exploratory.
## 0. Lệnh, tài nguyên và thời gian chạy
| Giai đoạn | Lệnh (qua `scripts/runlog.sh`) | Thiết bị | Wall | Ghi chú |
| --- | --- | --- | --- | --- |
| particles (iii, iv) | `scripts/32_t2_mechanism.py --tests iii iv --workers 4` (`CUDA_VISIBLE_DEVICES=`) | CPU | 0:06:46 | 240/240 cell-realization |
| train (i, ii, v), lần 1 | `--tests i ii v --device cuda:0 --workers 4` | cuda:0 | 0:09:11 (dừng) | 13/88 xong; dừng chủ động (SIGTERM cả nhóm tiến trình) để chia sang hai GPU theo yêu cầu điều phối; 13 file đã xong được kiểm (360 dòng mỗi file) và giữ lại |
| train, lần 2a | `--tests i ii v --device cuda:0 --workers 4 --rids 8 9 10 11` | cuda:0 | 0:17:52 | 36 job, ~120 s/job |
| train, lần 2b | `--tests i ii v --device cuda:1 --workers 3 --rids 12 13 14 15` | cuda:1 | 0:25:28 | 39 job, ~125 s/job; 3 worker vì cuda:1 chỉ còn 4.5 GB trống |
| summary | `--tests summary` (`CUDA_VISIBLE_DEVICES=`) | CPU | 0:02:27 | bảng, hình, self-check |
Tổng thời gian từ lần khởi chạy đầu đến hết summary: 12:48–13:27 UTC (≈ 38 phút); thời gian worker huấn luyện ≈ 2.9 worker-giờ (2.640 mạng); mỗi worker giữ 710 MiB GPU. Trong lúc chạy, một job của người dùng khác (`gpu_hold.py` + hai tiến trình SFT) chiếm ≈ 135 GB trên mỗi GPU; **không có OOM**, không job nào thất bại, không đụng tiến trình của người khác. Biến môi trường `OMP/MKL/OPENBLAS/NUMEXPR/NUMBA_NUM_THREADS = 2`. Log: `logs/t2_particles.out`, `logs/t2_train.out`, `logs/t2_train_a.out`, `logs/t2_train_b.out`; `logs/runs/20261029-12*_t2_*`, `20261029-132408_t2_summary`.
Thay đổi code (bổ sung, không đổi đường chạy mặc định): `ml_porosity/models/bank_train.py` thêm tham số `on_budget=None` cho `train_predict` (callback `on_budget(step, model)` sau dự đoán tại mỗi ngân sách); `ml_porosity/losses/rml.py` thêm helper thuần `responsibilities(...)`. `pytest tests/test_losses.py tests/test_models.py`: 24 pass trước và sau.
## 1. Tái lập (self-check; `outputs/t2/selfcheck.json`)
Band RMSE theo (ô, realization, seed, giếng test) của Oracle(500), B3d-Sa(250), M2-Sa(250) huấn luyện lại so với `outputs/p2r/train/<regime>/cells/*.csv`: **10.560 dòng, sai lệch tuyệt đối lớn nhất 0.0** (trung bình 0.0; sai lệch tương đối của trung bình ô 0.0). Ô R0 r8 c1 n16 seed 0: 0.0 cho cả ba phương pháp (B3d-Sa 0.7274, M2-Sa 0.7154, Oracle 0.7246 p.u., trùng số đã đăng ký). `B3d-Sa_warp_rmse_ms`, `M2-Sa_n_valid` và λ theo giếng khớp `_diag.csv` tới 0.0. Huấn luyện trên H200 với torch 2.14.0+cu130 vì vậy tất định ở đây; mọi tỉ số "mẫu số huấn luyện lại" trùng "mẫu số đã đăng ký".
## 2. Phép kiểm (i): warp có trọng số responsibility so với warp trung bình
E (ms) = sai số warp RMS trên cửa sổ chính (giếng train), trung bình trên realization × seed × giếng. E_64: warp trung bình đều của 64 thành viên bank; E_1024: warp của B3d-Sa; E_r: Σ_s r̄_s T_s; E_r,win: trọng số theo mẫu; Δ_r = E_r − E_64 (chính); Δ_e = ē_r − ē_u (sai số thành viên có trọng số r trừ trung bình đều); S_eff = 1/Σ r̄²; H = entropy (nat, tối đa 4.16). Ngân sách 250 (cuối huấn luyện).
| Ô | wide | E_64 | E_1024 | E_r | E_r,win | Δ_r [CI] | tỉ lệ Δ_r<0 | Δ_e [CI] | S_eff | H | (c) | Δ_r λ=1 | S_eff λ=1 | Δ_r λ=3 | S_eff λ=3 |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| R0 c=1 | có | 1.86 | 1.86 | 1.38 | 1.24 | -0.480 [-0.670, -0.316] | 0.83 | -0.74 [-0.89, -0.63] | 15.2 | 2.84 | có | -0.535 [-0.765, -0.324] | 4.5 | -0.536 [-0.770, -0.303] | 2.7 |
| R0h c=1 | có | 2.39 | 2.36 | 1.84 | 1.70 | -0.547 [-0.796, -0.350] | 0.82 | -0.87 [-1.16, -0.62] | 14.3 | 2.70 | có | -0.573 [-0.793, -0.384] | 4.5 | -0.600 [-0.816, -0.387] | 2.7 |
| R10tb c=1 | có | 4.86 | 4.79 | 3.05 | 2.87 | -1.808 [-2.222, -1.439] | 0.89 | -2.01 [-2.37, -1.66] | 27.8 | 3.13 | có | -1.934 [-2.331, -1.567] | 11.6 | -1.967 [-2.331, -1.601] | 4.3 |
| Rm5 c=1 | có | 2.92 | 2.91 | 2.35 | 2.20 | -0.572 [-0.752, -0.369] | 0.80 | -1.13 [-1.37, -0.86] | 9.7 | 2.25 | có | -0.628 [-0.788, -0.432] | 3.1 | -0.520 [-0.671, -0.353] | 2.1 |
| R0 c=2 | có | 2.74 | 2.71 | 2.04 | 1.78 | -0.702 [-0.890, -0.524] | 0.80 | -1.43 [-1.64, -1.20] | 6.5 | 1.89 | có | -0.662 [-0.883, -0.457] | 2.4 | -0.579 [-0.796, -0.364] | 2.1 |
| Rm5 c=2 | có | 3.94 | 3.91 | 3.44 | 3.27 | -0.494 [-0.645, -0.301] | 0.67 | -1.69 [-1.89, -1.48] | 3.5 | 1.20 | có | -0.398 [-0.566, -0.185] | 1.9 | -0.275 [-0.433, -0.086] | 1.7 |
| R0h c=2 | có | 4.15 | 4.09 | 2.67 | 2.27 | -1.485 [-1.743, -1.229] | 0.84 | -2.62 [-2.88, -2.36] | 4.8 | 1.56 | có | -1.298 [-1.611, -0.955] | 2.8 | -1.388 [-1.673, -1.068] | 1.9 |
| R10tb c=2 | có | 19.33 | 19.08 | 11.71 | 11.24 | -7.620 [-9.204, -6.226] | 0.81 | -9.75 [-11.66, -7.73] | 9.4 | 1.67 | có | -8.087 [-9.538, -6.768] | 3.9 | -8.113 [-9.335, -6.843] | 2.2 |
| R10 c=0 | không | 0.21 | 0.21 | 0.21 | 0.21 | -0.005 [-0.007, -0.002] | 0.60 | -0.02 [-0.02, -0.02] | 52.6 | 4.03 | có | -0.007 [-0.011, -0.001] | 33.7 | 0.001 [-0.004, 0.007] | 13.1 |
| R0 c=0 | không | 0.45 | 0.44 | 0.41 | 0.40 | -0.035 [-0.044, -0.027] | 0.66 | -0.12 [-0.13, -0.11] | 38.1 | 3.76 | có | -0.039 [-0.055, -0.019] | 17.4 | 0.018 [-0.018, 0.060] | 6.4 |
| Rm5 c=0 | không | 0.69 | 0.68 | 0.63 | 0.62 | -0.055 [-0.089, -0.026] | 0.59 | -0.22 [-0.25, -0.19] | 31.6 | 3.59 | có | 0.023 [-0.044, 0.095] | 13.8 | 0.251 [0.168, 0.333] | 5.7 |
**Luật đã khai báo:** ô "có (c)" nếu tỉ lệ (rid, seed, giếng) có Δ_r < 0 vượt 0.5 và CI của Δ_r dưới 0; bằng chứng cho (c) nếu ≥ 5/8 ô rộng. **Kết quả: 8/8 ô rộng tại λ giao thức → bằng chứng cho (c)** (cũng 8/8 tại λ = 1 và λ = 3). Độ lớn: warp có trọng số r giảm sai số warp 13–40% so với warp trung bình (R0 c=1: 1.86 → 1.38 ms; R10tb c=1: 4.86 → 3.05; R0h c=2: 4.15 → 2.67; R10tb c=2: 19.3 → 11.7; Rm5 c=2: 3.94 → 3.44). Phiên bản theo mẫu E_r,win còn thấp hơn. Δ_e âm ở mọi ô: responsibilities dồn về các thành viên gần warp thật hơn. S_eff tại λ giao thức là 3.5–28 trên 64 (R10tb c=1 cao nhất, Rm5 c=2 thấp nhất): RML ở λ = 1/τ_c **không** ở gần giới hạn λ → 0 (trung bình theo π, Mệnh đề 4) mà có responsibilities tập trung. Tại λ = 1 và 3, Δ_r trong ô rộng tương đương, S_eff 1.7–12; ở ô hẹp λ = 3 làm xấu warp (Rm5 c=0: +0.25 ms [0.17, 0.33]; R0 c=0: +0.02) nên không có cơ sở nói λ lớn hơn tốt hơn; không claim về λ. Ô hẹp tại λ giao thức: |Δ_r| ≤ 0.06 ms (luật cơ học cho "có" nhưng độ lớn không đáng kể so với sai số warp 0.2–0.7 ms). Ở bước 500 (mô tả, không khai báo trước) Δ_r gần như không đổi còn S_eff giảm (R0 c=1: 15.2 → 5.8): responsibilities sắc dần theo huấn luyện.
**Cách đọc.** E_r < E_64 là tính chất in-sample của responsibilities trên giếng train: thành viên gần dự đoán của mạng (dùng chung 16 giếng) thì gần warp thật hơn, tức mạng mang thông tin về warp và tái đăng ký nhãn trong lúc huấn luyện (Nhận xét 1). Đây là điều kiện cần để (c) là nguồn của lợi ích trên giếng test, không phải điều kiện đủ, và không đo được phần lợi ích test do (c).
## 3. Phép kiểm (ii): bank nhiễu GP đối chứng
Bank đối chứng: 64 warp T̄ + η_s, η_s ~ GP với hiệp phương sai thực nghiệm của 1024 hạt trên lưới warp (§3 ii của khai báo). Trên 1.408 giếng × 64 thành viên: 7 lần rút bị loại vì không đơn điệu, **0 giếng dùng phương án dự phòng**; SD biên của bank đối chứng bằng 0.98–0.99 SD của hạt; sai số warp của từng thành viên đối chứng bằng 1.00–1.03 lần của thành viên SMC (bank đối chứng "xa sự thật" ngang bank SMC). Huấn luyện RML, λ = 1/τ_c, π đều, 250 vòng lặp, seed 0–4; D_ctl = band RMSE(Control) − band RMSE(M2-Sa) theo realization.
| Ô | wide | Control/B3d-Sa [CI] | M2-Sa/B3d-Sa (H2b) [CI] | Control/M2-Sa [CI] | D_ctl (p.u.) [CI] | SD ctl/hạt | sai số thành viên ctl / SMC (ms) | loại |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| R0 c=1 | có | 0.987 [0.972, 1.003] | 0.967 [0.955, 0.979] | 1.021 [1.014, 1.027] | 0.016 [0.011, 0.022] | 0.978 | 2.47 / 2.43 | B: against (a) |
| R0h c=1 | có | 0.970 [0.955, 0.985] | 0.970 [0.952, 0.989] | 1.000 [0.990, 1.011] | 0.000 [-0.008, 0.009] | 0.984 | 3.08 / 3.01 | A: consistent with (a) |
| R10tb c=1 | có | 0.904 [0.879, 0.930] | 0.890 [0.867, 0.915] | 1.016 [0.996, 1.037] | 0.009 [-0.002, 0.022] | 0.992 | 5.21 / 5.16 | A: consistent with (a) |
| Rm5 c=1 | có | 0.984 [0.975, 0.994] | 0.982 [0.967, 0.994] | 1.003 [0.992, 1.018] | 0.003 [-0.009, 0.018] | 0.982 | 3.87 / 3.85 | A: consistent with (a) |
| R0 c=2 | có | 0.969 [0.959, 0.978] | 0.952 [0.941, 0.963] | 1.018 [1.009, 1.028] | 0.014 [0.007, 0.022] | 0.980 | 4.05 / 3.97 | C: partial (a) |
| Rm5 c=2 | có | 0.973 [0.961, 0.985] | 0.964 [0.953, 0.976] | 1.010 [0.999, 1.021] | 0.011 [-0.001, 0.024] | 0.978 | 5.60 / 5.57 | A: consistent with (a) |
| R0h c=2 | có | 0.944 [0.933, 0.956] | 0.904 [0.889, 0.924] | 1.044 [1.023, 1.060] | 0.036 [0.019, 0.046] | 0.981 | 6.03 / 5.89 | C: partial (a) |
| R10tb c=2 | có | 0.753 [0.709, 0.791] | 0.667 [0.614, 0.713] | 1.129 [1.085, 1.188] | 0.097 [0.068, 0.130] | 0.999 | 22.28 / 21.81 | C: partial (a) |
| R10 c=0 | không | 0.994 [0.976, 1.012] | 0.994 [0.974, 1.014] | 1.000 [0.990, 1.013] | 0.000 [-0.005, 0.006] | 0.987 | 0.35 / 0.35 | D: undetermined |
| R0 c=0 | không | 0.994 [0.982, 1.006] | 0.993 [0.980, 1.009] | 1.002 [0.989, 1.015] | 0.001 [-0.008, 0.012] | 0.990 | 0.73 / 0.73 | D: undetermined |
| Rm5 c=0 | không | 0.998 [0.988, 1.007] | 1.003 [0.988, 1.017] | 0.995 [0.979, 1.008] | -0.006 [-0.023, 0.008] | 0.994 | 1.10 / 1.09 | D: undetermined |
**Luật đã khai báo:** (A) CI(Control/B3d-Sa) < 1 và CI(D_ctl) ∋ 0; (B) CI(Control/B3d-Sa) ∋ 1 trong khi M2-Sa có lợi; (C) đối chứng có lợi nhưng kém M2-Sa; kết luận chung = loại chiếm đa số trong 8 ô rộng. **Kết quả: A 4, C 3, B 1 — không loại nào quá bán; loại A chiếm đa số tương đối.** Bank đối chứng có lợi (CI < 1) ở 7/8 ô rộng. Ở c = 1 nó bằng M2-Sa ở 3/4 ô (R0h 0.970 so với 0.970; R10tb 0.904 so với 0.890; Rm5 0.984 so với 0.982) và kém một chút ở R0 (0.987 [0.972, 1.003] so với 0.967; D_ctl = +0.016 p.u. [0.011, 0.022]; loại B theo luật, nhưng ở sát ranh giới). Ở c = 2 đối chứng có lợi nhưng kém M2-Sa rõ (R0 0.969 so với 0.952; R0h 0.944 so với 0.904; R10tb 0.753 so với 0.667; Rm5 c=2 loại A). Ô hẹp: 0.994–0.998, không có hại.
**Cách đọc.** Phần lớn lợi ích ở c = 1 có được với một bank chỉ mang độ rộng và tương quan của posterior, không mang thông tin về hạt nào khớp seismic: nhất quán với (a) tăng cường nhãn. Phần vượt của M2-Sa so với đối chứng xuất hiện ở c = 2 (posterior không ổn định, nhiều giếng đa mode, Bảng (iii)) và nhẹ ở R0 c=1: ở đó bank SMC mang thông tin ngoài hai mômen đầu (đa mode, liên hệ hạt–seismic) mà đối chứng không có, phù hợp với (c) và/hoặc (b) đóng góp thêm. Lưu ý đối chứng không phải "không thông tin": hiệp phương sai posterior đã mã hóa ràng buộc của seismic lên độ rộng.
## 4. Phép kiểm (iii): tách theo đa mode
Thống kê theo giếng train (khai báo §3 iii): GMM 2 so với 1 thành phần trên offset trung bình cửa sổ của hạt a_s; đa mode nếu ΔBIC > 10, |μ₁ − μ₂| > 4 ms, min w ≥ 0.1. m_u = tỉ lệ giếng đa mode trong đơn vị (regime, c, rid). Cột `m_u (b)` là thống kê phụ trên b = U[:, 0] (không dùng trong luật).
| Ô (N=16) | m_u (a_s) | m_u (b) | đơn vị m_u ≥ 0.25 | đơn vị m_u > 0 | SD posterior của a_s (ms) |
| --- | --- | --- | --- | --- | --- |
| R0 c=0 | 0.000 | 0.000 | 0 | 0 | 0.410 |
| R0 c=1 | 0.047 | 0.055 | 0 | 6 | 0.850 |
| R0 c=2 | 0.070 | 0.203 | 1 | 5 | 1.530 |
| R0h c=0 | 0.000 | 0.000 | 0 | 0 | 0.430 |
| R0h c=1 | 0.078 | 0.055 | 0 | 6 | 1.040 |
| R0h c=2 | 0.188 | 0.219 | 3 | 7 | 2.520 |
| R10 c=0 | 0.000 | 0.000 | 0 | 0 | 0.150 |
| R10 c=1 | 0.008 | 0.836 | 0 | 1 | 0.240 |
| R10 c=2 | 0.008 | 0.695 | 0 | 1 | 0.530 |
| R10tb c=0 | 0.000 | 0.000 | 0 | 0 | 0.150 |
| R10tb c=1 | 0.148 | 0.336 | 2 | 8 | 1.730 |
| R10tb c=2 | 0.508 | 0.195 | 8 | 8 | 11.550 |
| Rm5 c=0 | 0.000 | 0.000 | 0 | 0 | 0.680 |
| Rm5 c=1 | 0.070 | 0.008 | 0 | 6 | 1.540 |
| Rm5 c=2 | 0.039 | 0.047 | 0 | 4 | 2.100 |
Đa mode theo a_s hiếm ngoài R10tb c=2 (m_u = 0.51; 8/8 đơn vị có m_u ≥ 0.25) và R0h c=2 (0.19; 3/8); ở c = 1 tối đa 0.15 (R10tb) và không đơn vị nào đạt 0.25 ngoài R10tb c=1 (2/8). Thống kê trên b cho tỉ lệ cao ở R10 c=1,2 (0.84, 0.70) dù posterior ở cửa sổ hẹp (SD a_s 0.24–0.53 ms): b là offset tại τ = 100 ms, ngoài cửa sổ, nên không phản ánh đa mode của nhãn; điều này ủng hộ lựa chọn a_s làm thống kê chính.
So sánh log ρ_u = log(band RMSE M2-Sa / B3d-Sa) theo đơn vị (dự đoán đã đăng ký) giữa nhóm đa mode và đơn mode, 64 đơn vị của 8 ô rộng:
| nhóm | n đa mode | n đơn mode | ô có cả hai nhóm | D không hiệu chỉnh [CI] | D hiệu chỉnh theo ô [CI] | Spearman(m_u, log ρ_u) | kết luận |
| --- | --- | --- | --- | --- | --- | --- | --- |
| m_u ≥ 0.25 (chính) | 14 | 50 | 3 | -0.235 [-0.323, -0.181] | -0.012 [-0.043, 0.020] | -0.71 | no evidence for (b) |
| m_u > 0 (độ nhạy) | 50 | 14 | 6 | -0.091 [-0.112, -0.070] | -0.017 [-0.031, -0.000] | -0.71 | evidence for (b) |
Spearman trong từng ô và số đơn vị theo nhóm:
| Ô | Spearman trong ô | đơn vị m_u ≥ 0.25 | đơn vị m_u > 0 |
| --- | --- | --- | --- |
| R0 c=1 | 0.130 | 0 | 6 |
| R0 c=2 | -0.200 | 1 | 5 |
| R0h c=1 | -0.620 | 0 | 6 |
| R0h c=2 | -0.880 | 3 | 7 |
| R10tb c=1 | 0.230 | 2 | 8 |
| R10tb c=2 | -0.270 | 8 | 8 |
| Rm5 c=1 | -0.940 | 0 | 6 |
| Rm5 c=2 | 0.460 | 0 | 4 |
**Luật đã khai báo:** bằng chứng cho (b) nếu D hiệu chỉnh theo ô < 0 với CI không chứa 0, nhóm m_u ≥ 0.25. **Kết quả: không có bằng chứng cho (b)** (D hiệu chỉnh −0.012 [−0.043, +0.020]; chỉ 3 ô có cả hai nhóm). Độ nhạy m_u > 0: D hiệu chỉnh −0.017 [−0.031, −0.0002], sát 0, "evidence for (b)" theo luật cơ học nhưng ở mức biên. D không hiệu chỉnh (−0.23) và Spearman −0.71 trên 64 đơn vị bị trộn với ô: R10tb c=2 vừa đa mode nhất vừa có lợi ích lớn nhất (vì σ_post 11.5 ms), còn Spearman trong ô đổi dấu giữa các ô. Kết luận: trên P2r, (b) nhiều nhất là đóng góp nhỏ; phép tách có ít lực vì đa mode hiếm ngoài ô không ổn định.
## 5. Phép kiểm (iv): Berkson hay classical
Offset trung bình cửa sổ theo giếng train trên tập nút K_w (từ tie anchor B3b): a* (thật), â^m (phương pháp), e = â^m − a*. Thống kê **neo theo anchor** (chính): â′ = â^m − â^{B3b}, a*′ = a* − â^{B3b}; Berkson dự đoán r′_B = corr(e, â′) = 0 và r′_C = corr(e, a*′) < 0; classical (với e ⊥ nhiễu anchor) dự đoán r′_C = 0 và r′_B > 0. Thống kê **thô** (r_B = corr(e, â), r_C = corr(e, a*)) như bài mục 4.3, lực thấp vì SD(a*) = c·19.4 ms ≫ SD(e). CI: bootstrap cụm trên realization. Ô kết luận: bốn ô rộng c = 1, N = 16 và hai tập gộp c = 1.
| Ô | pp | n giếng | SD e (ms) | SD a*′ (ms) | r′_B = corr(e, â′) [CI] | r′_C = corr(e, a*′) [CI] | Var(â′)/Var(a*′) | kết luận (neo) | r_B thô [CI] | r_C thô [CI] | kết luận thô |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| R0 c=1 N=16 | B3d-Sa | 128 | 1.400 | 2.670 | 0.017 [-0.138, 0.210] | -0.508 [-0.580, -0.391] | 0.740 | Berkson | 0.205 [0.104, 0.310] | 0.171 [0.076, 0.275] | neither (no structure) |
| R0 c=1 N=16 | B3c-R | 128 | 2.300 | 2.670 | 0.321 [0.189, 0.465] | -0.586 [-0.667, -0.453] | 0.730 | neither (no structure) | 0.255 [0.098, 0.397] | 0.201 [0.044, 0.345] | neither (no structure) |
| R0h c=1 N=16 | B3d-Sa | 128 | 2.000 | 3.620 | -0.035 [-0.140, 0.085] | -0.580 [-0.668, -0.427] | 0.660 | Berkson | 0.145 [-0.029, 0.288] | 0.096 [-0.058, 0.242] | neither (no power) |
| R0h c=1 N=16 | B3c-R | 128 | 2.340 | 3.620 | -0.019 [-0.179, 0.160] | -0.662 [-0.768, -0.507] | 0.560 | Berkson | 0.138 [0.019, 0.261] | 0.081 [-0.047, 0.216] | classical |
| R10tb c=1 N=16 | B3d-Sa | 128 | 5.680 | 13.800 | -0.027 [-0.157, 0.077] | -0.436 [-0.520, -0.334] | 0.810 | Berkson | -0.004 [-0.143, 0.120] | -0.146 [-0.293, -0.012] | Berkson |
| R10tb c=1 N=16 | B3c-R | 128 | 11.740 | 13.800 | -0.193 [-0.302, -0.097] | -0.925 [-0.942, -0.904] | 0.150 | neither (no structure) | -0.041 [-0.098, 0.019] | -0.332 [-0.407, -0.254] | Berkson |
| Rm5 c=1 N=16 | B3d-Sa | 128 | 1.970 | 2.670 | -0.052 [-0.264, 0.177] | -0.771 [-0.829, -0.682] | 0.410 | Berkson | 0.106 [-0.064, 0.268] | 0.057 [-0.110, 0.219] | neither (no power) |
| Rm5 c=1 N=16 | B3c-R | 128 | 3.060 | 2.670 | 0.551 [0.463, 0.639] | -0.637 [-0.702, -0.513] | 0.850 | neither (no structure) | 0.210 [0.026, 0.339] | 0.137 [-0.048, 0.272] | classical |
| R10 c=1 N=16 | B3d-Sa | 128 | 0.460 | 2.670 | -0.161 [-0.231, -0.127] | -0.327 [-0.414, -0.212] | 0.920 | neither (no structure) | 0.122 [-0.088, 0.212] | 0.111 [-0.095, 0.196] | neither (no power) |
| R10 c=1 N=16 | B3c-R | 128 | 1.510 | 2.670 | 0.076 [-0.033, 0.219] | -0.501 [-0.590, -0.363] | 0.750 | Berkson | 0.158 [-0.099, 0.371] | 0.121 [-0.124, 0.339] | neither (no power) |
| gộp mọi ô c=1 (5 regime × 2 N) | B3d-Sa | 800 | 3.010 | 6.590 | -0.042 [-0.126, 0.049] | -0.493 [-0.561, -0.402] | 0.760 | Berkson | 0.091 [-0.006, 0.216] | 0.013 [-0.095, 0.141] | neither (no power) |
| gộp mọi ô c=1 (5 regime × 2 N) | B3c-R | 800 | 5.440 | 6.590 | -0.089 [-0.155, -0.015] | -0.869 [-0.898, -0.829] | 0.250 | neither (no structure) | 0.055 [-0.018, 0.125] | -0.085 [-0.171, -0.005] | Berkson |
| gộp 4 ô rộng c=1, N=16 | B3d-Sa | 512 | 3.240 | 7.440 | -0.026 [-0.124, 0.072] | -0.458 [-0.529, -0.376] | 0.790 | Berkson | 0.059 [-0.012, 0.151] | -0.022 [-0.098, 0.073] | neither (no power) |
| gộp 4 ô rộng c=1, N=16 | B3c-R | 512 | 6.310 | 7.440 | -0.086 [-0.163, -0.004] | -0.887 [-0.912, -0.851] | 0.210 | neither (no structure) | 0.046 [-0.006, 0.100] | -0.112 [-0.182, -0.049] | Berkson |
Ô c = 2 (cờ unstable posterior), N = 16:
| Ô | pp | n giếng | SD e (ms) | SD a*′ (ms) | r′_B = corr(e, â′) [CI] | r′_C = corr(e, a*′) [CI] | Var(â′)/Var(a*′) | kết luận (neo) | r_B thô [CI] | r_C thô [CI] | kết luận thô |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| R0 c=2 N=16 | B3d-Sa | 128 | 1.620 | 2.750 | -0.218 [-0.326, -0.093] | -0.741 [-0.788, -0.673] | 0.470 | neither (no structure) | 0.105 [-0.031, 0.245] | 0.085 [-0.051, 0.238] | neither (no power) |
| R0 c=2 N=16 | B3c-R | 128 | 2.290 | 2.750 | 0.248 [0.100, 0.408] | -0.636 [-0.713, -0.520] | 0.630 | neither (no structure) | 0.194 [-0.017, 0.354] | 0.166 [-0.042, 0.326] | neither (no power) |
| R0h c=2 N=16 | B3d-Sa | 128 | 2.690 | 4.000 | -0.263 [-0.367, -0.146] | -0.827 [-0.875, -0.772] | 0.340 | neither (no structure) | 0.170 [-0.016, 0.307] | 0.137 [-0.047, 0.276] | neither (no power) |
| R0h c=2 N=16 | B3c-R | 128 | 2.910 | 4.000 | -0.072 [-0.252, 0.098] | -0.774 [-0.851, -0.656] | 0.400 | Berkson | 0.154 [-0.027, 0.320] | 0.118 [-0.061, 0.298] | neither (no power) |
| R10 c=2 N=16 | B3d-Sa | 128 | 0.630 | 2.750 | -0.228 [-0.289, -0.140] | -0.441 [-0.510, -0.319] | 0.850 | neither (no structure) | 0.040 [-0.149, 0.180] | 0.032 [-0.158, 0.169] | neither (no power) |
| R10 c=2 N=16 | B3c-R | 128 | 1.540 | 2.750 | 0.052 [-0.054, 0.181] | -0.516 [-0.626, -0.379] | 0.740 | Berkson | 0.120 [-0.133, 0.332] | 0.100 [-0.148, 0.305] | neither (no power) |
| R10tb c=2 N=16 | B3d-Sa | 128 | 20.290 | 26.590 | -0.112 [-0.213, -0.030] | -0.826 [-0.859, -0.793] | 0.320 | neither (no structure) | 0.048 [-0.054, 0.142] | -0.209 [-0.327, -0.086] | Berkson |
| R10tb c=2 N=16 | B3c-R | 128 | 26.160 | 26.590 | -0.049 [-0.222, 0.102] | -0.991 [-0.993, -0.987] | 0.020 | Berkson | -0.016 [-0.107, 0.061] | -0.345 [-0.422, -0.247] | Berkson |
| Rm5 c=2 N=16 | B3d-Sa | 128 | 2.310 | 2.750 | -0.130 [-0.327, 0.045] | -0.898 [-0.928, -0.862] | 0.200 | Berkson | 0.087 [-0.100, 0.255] | 0.058 [-0.126, 0.228] | neither (no power) |
| Rm5 c=2 N=16 | B3c-R | 128 | 3.060 | 2.750 | 0.503 [0.371, 0.619] | -0.697 [-0.742, -0.620] | 0.690 | neither (no structure) | 0.173 [-0.007, 0.309] | 0.135 [-0.055, 0.279] | neither (no power) |
N = 4, c = 1 (CI rộng, 32 giếng):
| Ô | pp | r′_B [CI] | r′_C [CI] | kết luận (neo) |
| --- | --- | --- | --- | --- |
| R0 c=1 N=4 | B3d-Sa | 0.055 [-0.707, 0.611] | -0.688 [-0.883, -0.395] | Berkson |
| R0 c=1 N=4 | B3c-R | 0.004 [-0.465, 0.616] | -0.741 [-0.891, -0.511] | Berkson |
| R0h c=1 N=4 | B3d-Sa | 0.003 [-0.447, 0.233] | -0.661 [-0.833, -0.362] | Berkson |
| R0h c=1 N=4 | B3c-R | -0.094 [-0.461, 0.401] | -0.679 [-0.856, -0.225] | Berkson |
| R10 c=1 N=4 | B3d-Sa | 0.141 [-0.588, 0.498] | -0.439 [-0.676, -0.082] | Berkson |
| R10 c=1 N=4 | B3c-R | -0.220 [-0.542, 0.231] | -0.571 [-0.723, -0.393] | Berkson |
| R10tb c=1 N=4 | B3d-Sa | -0.183 [-0.355, 0.005] | -0.667 [-0.818, -0.381] | Berkson |
| R10tb c=1 N=4 | B3c-R | -0.221 [-0.357, -0.126] | -0.861 [-0.939, -0.722] | neither (no structure) |
| Rm5 c=1 N=4 | B3d-Sa | 0.143 [-0.284, 0.566] | -0.864 [-0.930, -0.607] | Berkson |
| Rm5 c=1 N=4 | B3c-R | 0.465 [0.002, 0.829] | -0.760 [-0.862, -0.625] | neither (no structure) |
Độ nhạy theo mẫu (offset theo nút, gộp ≈ 15.700 mẫu mỗi ô, N = 16, c = 1):
| Ô (N=16, c=1) | pp | n mẫu | r′_B [CI] | r′_C [CI] | kết luận (neo) | kết luận thô |
| --- | --- | --- | --- | --- | --- | --- |
| R10 | B3d-Sa | 15689 | -0.014 [-0.088, 0.038] | -0.162 [-0.229, -0.075] | Berkson | neither (no power) |
| R10 | B3c-R | 15689 | 0.192 [0.123, 0.251] | -0.559 [-0.591, -0.520] | neither (no structure) | classical |
| R0 | B3d-Sa | 15689 | 0.055 [-0.047, 0.159] | -0.369 [-0.412, -0.319] | Berkson | classical |
| R0 | B3c-R | 15689 | 0.449 [0.398, 0.489] | -0.590 [-0.614, -0.558] | neither (no structure) | classical |
| Rm5 | B3d-Sa | 15689 | 0.024 [-0.095, 0.148] | -0.563 [-0.619, -0.489] | Berkson | neither (no power) |
| Rm5 | B3c-R | 15689 | 0.625 [0.602, 0.655] | -0.622 [-0.647, -0.589] | neither (no structure) | classical |
| R0h | B3d-Sa | 15683 | 0.024 [-0.069, 0.111] | -0.503 [-0.564, -0.429] | Berkson | neither (no power) |
| R0h | B3c-R | 15683 | 0.331 [0.280, 0.383] | -0.536 [-0.586, -0.477] | neither (no structure) | classical |
| R10tb | B3d-Sa | 15707 | -0.023 [-0.110, 0.056] | -0.502 [-0.551, -0.435] | Berkson | Berkson |
| R10tb | B3c-R | 15707 | 0.108 [0.067, 0.146] | -0.857 [-0.879, -0.826] | neither (no structure) | Berkson |
**Kết quả cho B3d-Sa (luật đã khai báo).** **Berkson ở cả bốn ô rộng c = 1, N = 16** (r′_B = 0.017, −0.035, −0.027, −0.052 với CI chứa 0; r′_C = −0.44 … −0.77 với CI xa 0), ở hai tập gộp c = 1 (wide16: r′_B = −0.026 [−0.124, 0.072]; mọi ô c = 1: −0.042 [−0.126, 0.049]), ở cả 5 regime tại N = 4 và trong phiên bản theo mẫu (5/5 regime c = 1). Tỉ số phương sai Var(â′)/Var(a*′) = 0.41–0.81 < 1: offset của warp trung bình **ít phân tán hơn** offset thật quanh tie anchor, đúng như co rút kiểu Berkson. Ở ô hẹp R10 c=1: "neither" vì r′_B = −0.16 [−0.23, −0.13] (sai số chỉ 0.46 ms; hiệu chỉnh theo seismic hơi nhỏ so với cần thiết). Ở c = 2: "neither (no structure)" với r′_B âm (−0.11 … −0.26): sai số của warp trung bình tương quan âm với chính phần hiệu chỉnh theo seismic, tức ở posterior không ổn định warp trung bình không còn là trung bình có điều kiện đúng; nhất quán với cờ unstable và với việc B3d-Sa thua đối chứng ở (ii). **B3c-R:** "neither" ở hầu hết ô (r′_B dương mạnh ở R0, Rm5: 0.32, 0.55 — dịch theo tương quan thêm sai số tương quan với chính nó), chỉ R0h ra Berkson với CI rộng; đúng như cảnh báo trong khai báo, phiên bản neo không sạch cho B3c-R (sai số chứa nhiễu anchor) nên không rút kết luận cấu trúc cho B3c-R. **Thô:** chủ yếu "no power" như dự đoán; R0 c=1 (B3d-Sa) cho cả hai tương quan thô dương (0.21, 0.17) → một thành phần nhỏ tỉ lệ với offset thật (hệ số ≈ 0.012, tức ≈ 0.2 ms ở offset 20 ms) không nằm trong cả hai lý tưởng hóa; R10tb thô ra Berkson.
**Hệ quả cho Bảng `tab:h2b`.** Với B3d-Sa ở c = 1, cận áp dụng là **1/B_b**. Đối chiếu tỉ số H2b đã đăng ký với 1/B_b (Bảng B, C của khai báo): tại σ_post thấp hơn cận ở R0 (0.967 < 0.982), R0h (0.970 < 0.972) và R10tb (0.890 < 0.893), không ở Rm5 (0.982 > 0.904); tại sai số warp đo được: 0/4. Hai lề ≤ 0.003 nằm trong CI của tỉ số. Ở c = 2 không cấu trúc nào được xác lập nên **không claim cận nào**. Kết luận: không xác lập được lợi ích vượt hiệu chỉnh quần thể của cấu trúc Berkson; cách đọc "vượt cận classical ở 7/8 ô" không áp dụng cho B3d-Sa.
## 6. Phép kiểm (v): ngân sách 500
Huấn luyện lại B3d-Sa (PM), M2-Sa (RML) và Oracle (O) với ngân sách [250, 500] trên một quỹ đạo, seed 0–4; tỉ số của trung bình ô band RMSE. Cột "đã đăng ký" lấy từ `outputs/p2r` (trùng số huấn luyện lại, mục 1). Phần khoảng cách do số vòng lặp = 1 − [1 − O(500)/PM(500)]/[1 − O(500)/PM(250)].
| Ô | O(500)/PM(250) đã đăng ký | O(500)/PM(500) [CI] | O(250)/PM(250) [CI] | PM(500)/PM(250) [CI] | RML(250)/PM(250) (H2b) | RML(500)/PM(500) [CI] | RML(500)/RML(250) | O(500)/O(250) | phần khoảng cách do số vòng lặp |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| R0 c=1 | 0.927 | 0.949 [0.930, 0.965] | 0.945 [0.932, 0.956] | 0.977 [0.971, 0.984] | 0.967 | 0.980 [0.966, 0.994] | 0.990 | 0.981 | 0.300 |
| R0h c=1 | 0.919 | 0.944 [0.920, 0.967] | 0.939 [0.922, 0.953] | 0.973 [0.962, 0.985] | 0.970 | 0.981 [0.970, 0.994] | 0.984 | 0.979 | 0.310 |
| R10tb c=1 | 0.758 | 0.745 [0.702, 0.795] | 0.765 [0.712, 0.818] | 1.017 [0.999, 1.034] | 0.890 | 0.887 [0.869, 0.910] | 1.014 | 0.990 | -0.050 |
| Rm5 c=1 | 0.933 | 0.957 [0.942, 0.971] | 0.954 [0.943, 0.967] | 0.976 [0.970, 0.982] | 0.982 | 0.986 [0.974, 1.000] | 0.980 | 0.978 | 0.350 |
| R0 c=2 | 0.899 | 0.924 [0.908, 0.937] | 0.923 [0.906, 0.941] | 0.973 [0.963, 0.983] | 0.952 | 0.962 [0.952, 0.971] | 0.983 | 0.974 | 0.240 |
| Rm5 c=2 | 0.909 | 0.924 [0.909, 0.939] | 0.932 [0.918, 0.947] | 0.984 [0.974, 0.993] | 0.964 | 0.966 [0.957, 0.974] | 0.986 | 0.976 | 0.160 |
| R0h c=2 | 0.853 | 0.871 [0.854, 0.887] | 0.874 [0.855, 0.894] | 0.980 [0.973, 0.987] | 0.904 | 0.913 [0.898, 0.928] | 0.989 | 0.977 | 0.120 |
| R10tb c=2 | 0.408 | 0.414 [0.387, 0.446] | 0.410 [0.384, 0.440] | 0.985 [0.976, 0.993] | 0.667 | 0.687 [0.632, 0.733] | 1.014 | 0.995 | 0.010 |
| R10 c=0 | 0.984 | 0.985 [0.961, 1.009] | 0.992 [0.969, 1.010] | 0.999 [0.986, 1.013] | 0.994 | 0.989 [0.981, 0.997] | 0.994 | 0.992 | 0.080 |
| R0 c=0 | 0.969 | 0.991 [0.984, 0.999] | 0.994 [0.983, 1.007] | 0.978 [0.968, 0.988] | 0.993 | 0.995 [0.986, 1.004] | 0.981 | 0.975 | 0.720 |
| Rm5 c=0 | 0.986 | 1.006 [0.994, 1.017] | 1.006 [0.991, 1.021] | 0.980 [0.975, 0.986] | 1.003 | 1.002 [0.993, 1.012] | 0.979 | 0.980 | — |
**Kết quả.** B3d-Sa tốt hơn ở 500 vòng lặp trong 7/8 ô rộng (PM(500)/PM(250) = 0.973–0.985, CI dưới 1; R10tb c=1: 1.017 [0.999, 1.034]); ngân sách 250 chọn trên dev (R10, c = 1) không tối ưu cho B3d-Sa ở các ô này. Ở cùng ngân sách 500, Oracle hơn B3d-Sa 5.1%, 5.6%, 4.3% ở R0, R0h, Rm5 (c = 1) thay vì 7.3%, 8.1%, 6.7%: **29–35% khoảng cách B3d-Sa–Oracle đã đăng ký ở c = 1 là do số vòng lặp**, phần còn lại (≈ 4–6%) quy cho sai số nhãn; ở R10tb c=1 khoảng cách không đổi (−5%), ở c = 2 phần do số vòng lặp 1–24%. Ở ô hẹp c = 0, khoảng cách 1–3% đã đăng ký gần như biến mất khi cùng ngân sách (O(500)/PM(500) = 0.991, 0.985, 1.006; phần do số vòng lặp 0.72 ở R0). Lợi ích bank ở cùng ngân sách 500 **còn nhưng nhỏ hơn** ở R0, R0h (RML(500)/PM(500) = 0.980 [0.966, 0.994], 0.981 [0.970, 0.994] so với 0.967, 0.970 đã đăng ký), gần như không đổi ở R10tb c=1 (0.887) và Rm5 c=1 (0.986 [0.974, 1.000]), và ở c = 2 là 0.962, 0.913, 0.687, 0.966. M2-Sa cũng tốt hơn ở 500 (0.98–0.99) trừ R10tb (1.014). Các so sánh đã đăng ký ở 250 vẫn là số được báo trong bài; (v) chỉ bổ sung mô tả.
## 7. Tổng hợp
Năm phép kiểm cùng nói rằng: (1) nhãn tại warp trung bình posterior có sai số cấu trúc Berkson ở c = 1 (iv), nên cận quần thể áp dụng cho B3d-Sa là 1/B_b, và so với cận này lợi ích H2b không vượt hiệu chỉnh quần thể (tối đa 3/8 ô tại σ_post với lề ≤ 0.015, 0/8 tại sai số warp); (2) khoảng cách B3d-Sa–Oracle đã đăng ký gồm khoảng một phần ba do số vòng lặp và phần còn lại 4–6% do sai số nhãn ở c = 1 (v), và lợi ích bank còn ở cùng ngân sách nhưng nhỏ hơn; (3) về cơ chế của phần lợi ích hữu hạn mẫu, tái đăng ký ngầm (c) có thật như hiện tượng trên giếng train ở 8/8 ô rộng (i), nhưng một bank chỉ mang hai mômen đầu của posterior thu được phần lớn lợi ích ở c = 1 (ii), nên lợi ích ở c = 1 được giải thích chủ yếu bằng tăng cường nhãn (a) mà không cần (c); thông tin riêng của bank SMC (và theo đó (c), có thể cả (b)) chỉ cần đến ở c = 2, nơi posterior không ổn định và đa mode, còn tách theo đa mode không cho bằng chứng cho (b) theo luật chính (iii). Cả (a) lẫn (c) là hiệu ứng mẫu hữu hạn, phù hợp với lập luận heuristic ở `docs/theory.md` §6.5 rằng với ít giếng hiệu ứng mẫu hữu hạn có thể lấn sai lệch quần thể. Không kết luận nào ở đây là confirmatory; không "cơ chế nào được chứng minh"; H2a, H2b và mọi số đã đăng ký giữ nguyên.
## 8. Giới hạn
- Exploratory: thiết kế sau khi đã thấy P2r và phân tích post hoc 29/10 (công bố ở khai báo §0.2); realization 8–15 dùng lại; không có realization mới nên không thể xác nhận.
- Huấn luyện lại tất định trên máy và torch hiện tại (sai lệch 0.0), nhưng điều đó không bảo đảm trên GPU/phiên bản khác; mọi tỉ số được báo với cả mẫu số đã đăng ký và mẫu số huấn luyện lại (ở đây trùng nhau).
- (i) là đại lượng in-sample trên giếng train; phụ thuộc λ: tại λ = 1, 3 hiện tượng tương tự nhưng ở ô hẹp λ = 3 làm xấu warp; không claim về λ (giữ λ = 1/τ_c như giao thức).
- (ii) bank đối chứng dùng hiệp phương sai posterior nên vẫn mang thông tin về độ rộng do seismic đặt; "không thông tin" chỉ theo nghĩa ngoài hai mômen đầu. Luật "đa số" không cho loại quá bán (4/8 A).
- (iii) đa mode hiếm ngoài R10tb c=2 nên lực thấp; nhóm trộn với ô; thống kê chính a_s thay cho b đã được lý giải trước khi tính.
- (iv) phiên bản neo chỉ sạch cho giả thuyết Berkson; phía classical cần thêm e ⊥ nhiễu anchor, không đúng cho B3c-R; c = 0 suy biến; c = 2 không ổn định; phiên bản thô ít lực và ở R0 c=1 lộ một thành phần tỉ lệ nhỏ không nằm trong hai lý tưởng hóa.
- (v) một quỹ đạo cho hai ngân sách (tương đương huấn luyện riêng theo docstring của `bank_train`); không chọn lại ngân sách; số đã đăng ký ở 250 giữ nguyên.
## 9. Deviation so với khai báo
Không có deviation phân tích: mọi ô, đại lượng, ước lượng và luật quyết định đúng như `t2-mechanism.md` (hash không đổi). Ghi chú tài nguyên và bổ sung mô tả:
1. Giai đoạn huấn luyện chạy lần đầu trên cuda:0 với 4 worker (như khai báo), bị dừng chủ động ở 13/88 theo yêu cầu điều phối rồi chạy lại chia theo realization trên cuda:0 (4 worker, rid 8–11) và cuda:1 (3 worker, rid 12–15). Khai báo cho phép chọn lại GPU khi tình trạng đổi; kết quả tất định nên cách chia không ảnh hưởng (mục 1).
2. Responsibilities của M2-Sa còn được lưu ở bước 500 (mô tả; không khai báo trước; không dùng trong luật nào).
3. Luật kết luận chung của (ii) ("loại chiếm đa số") không cho loại nào quá bán; báo số đếm từng loại và loại chiếm đa số tương đối.

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,192 @@
# Khảo sát nơi nộp bài (12/11/2026)
Câu hỏi của người dùng: ưu tiên **được duyệt nhanh nhất**, ranking không quan trọng; khảo sát guide for authors và các bài đã đăng có thí nghiệm không thành công để chốt một nơi nộp. Kết luận ban đầu ở §4 (`docs/plan.md` §12 ý 49).
> **Cập nhật cùng ngày (§6, `docs/plan.md` §12 ý 50):** người dùng chỉ nộp nơi **miễn phí** và bỏ *Earth Science Informatics* vì điều khoản phạm vi về kỹ thuật dầu khí. Quyết định cuối: ***Geoenergy Science and Engineering*** (Elsevier); dự phòng *Computers & Geosciences*. §4 là quyết định cũ, giữ lại làm hồ sơ.
**Cách làm.** Bốn subagent khảo sát song song tám nơi (mỗi agent hai nơi), cùng một bản tóm tắt bài và cùng quy tắc: không bịa; mọi DOI kiểm trên Crossref API (đúng tạp chí, năm); nguồn chính thức tách khỏi nguồn tổng hợp; không gửi thông tin cá nhân hay tên dự án ra ngoài; không giả user agent. ScienceDirect, KeAi, AGU, Wiley và GeoScienceWorld chặn truy cập trực tiếp (403), nên phần lớn trang chính sách được đọc qua bản lưu Wayback của chính trang đó (ngày bản lưu ghi trong file tạm của từng agent). Phiên chính kiểm lại trực tiếp: điều khoản phạm vi và tốc độ của *Earth Science Informatics* (trang Springer, 12/11/2026) và DOI của bốn bài tiền lệ quan trọng nhất. **Mọi bài tiền lệ chỉ đọc phần tóm tắt**, trừ Jover-Alfaro et al. 2026 (đọc toàn văn) và Li et al. 2026, Patidar et al. 2026, Wu & Stewart 2023 (tóm tắt và một phần toàn văn).
## 1. Bảng so sánh
Tốc độ: số chính thức của tạp chí nếu có; "Crossref" là trung vị tự tính từ ngày nhận/chấp nhận trong metadata Crossref (không chính thức).
| Nơi | Đầu tiên quyết định | Đến chấp nhận | Phí | Độ dài | Code/dữ liệu lúc nộp | Thái độ với kết quả âm | Rủi ro chính |
|---|---|---|---|---|---|---|---|
| ***Earth Science Informatics*** (Springer, hybrid, SCIE, JIF 4.2) | **7 ngày** (trung vị, trang tạp chí) | **≈ 110 ngày** (Crossref 2025, n = 431; 113,5 ngày năm 2026) | **0** (đường thuê bao); OA US$3 990 | không giới hạn; supplement nộp dạng Online Resource | bắt buộc Data Availability Statement; chia sẻ "strongly encouraged" | không có chính sách; nhiều bài 2025–26 lấy thất bại làm kết quả chính | điều khoản phạm vi nhắc "petroleum engineering may fall outside"; abstract ≤ 250 từ (đang 269) |
| *Frontiers in Earth Science* (SCIE, JIF 2.3) | phản biện vòng 1 khoảng 10 ngày | trung bình nền tảng 96 ngày (2025; không riêng tạp chí) | CHF 3 150 (A-type), không thu nếu bị từ chối | 12 000 từ; phụ lục dài sang supplement | DAS bắt buộc; code "strongly encouraged" | **chính sách nhận "disconfirming results"**; chấm tính đúng, không chấm tầm quan trọng | phí cao; tên phản biện được công bố |
| *JGR: Machine Learning and Computation* (AGU, gold OA, chưa có IF) | 36 ngày (2024); trung vị 45–58 ngày (Q2 2025) | 126 ngày (2024); chấp nhận 32% | US$2 750 bắt buộc | 25 PU (bản rút gọn ≈ 20,5 PU) | **dữ liệu và code phải công khai lúc phản biện** | không có chính sách; tiền lệ tốt | abstract < 250 từ, Key Points, Plain Language Summary, Open Research |
| *Geophysical Prospecting* (EAGE/Wiley) | < 60 ngày (bài được gửi phản biện) | "< 120 ngày đến xuất bản" với một vòng sửa | 0; OA US$4 150 | không giới hạn ("less is more") | lưu dữ liệu công khai; DAS bắt buộc | hướng dẫn biên tập khuyến khích nói thẳng giới hạn | **chỉ cho một vòng major revision**; phản biện giả lập cho major |
| *Computers & Geosciences* (Elsevier, IF 4.1) | 13 ngày | 171 ngày | 0; OA US$3 870 | 5 500 từ (+10%) theo Guide PDF; trang chủ ghi 5 000 | **repo code công khai bắt buộc**, thiếu là desk reject | không có chính sách; tiền lệ ghép kết quả âm với công cụ sửa | phạm vi mới loại "benchmark or comparison papers lacking novelty…" và bài thuần giải tích |
| *Applied Computing and Geosciences* (Elsevier OA, IF 4.0) | 4 ngày | 164 ngày | US$2 230 bắt buộc | 5 000 từ (bản rút gọn dư khoảng 2%) | code mở hoặc desk reject | không có chính sách; tiền lệ RML/coverage gần nhất | guide 2024 chỉ nêu giấy phép CC BY-NC-ND; có đường chuyển bài từ C&G |
| *Artificial Intelligence in Geosciences* (KeAi, OA, ESCI, IF 5.4) | 18 ngày (số 2025) | 194 ngày (2025); bài benchmark Barros 2026 khoảng 12 tháng | US$1 100 | không giới hạn | khuyến khích mở code, dữ liệu, nhãn | không có chính sách | chậm; ESCI |
| *Geophysics* (SEG, IF 3.2) | không công bố | ≈ 250 ngày (Crossref 2025) | US$325/trang nếu không tác giả nào là hội viên SEG (≈ US$3 250–3 600) | ≈ 10 trang | DAS; code được phản biện | không có chính sách | chậm nhất; phản biện ẩn danh hai chiều |
## 2. Bài tiền lệ có thí nghiệm không thành công
Chỉ liệt kê các bài gần chủ đề nhất; danh sách đầy đủ trong báo cáo của từng agent (file tạm trong scratchpad, không đưa vào git).
**Earth Science Informatics**
- Mohammed Ali, Dashty & Ameen (2026), "Are machine learning permeability models predicting rock properties or reproducing equations? Core validation evidence from the Teapot Dome field", 19(8):118, doi:10.1007/s12145-026-02173-z. Random forest đạt R² = 1,00 trên nhãn sinh từ công thức thực nghiệm, nhưng chính các công thức đó có R² = −1,44 so với core; bài đề xuất quy trình kiểm định năm yêu cầu. Gần nhất với phát hiện PHIE_DT là hàm của sonic ở F3, và là bài petrophysics được nhận dù có điều khoản phạm vi.
- Wang et al. (2026), "A lag-controlled residual benchmark for graph-based geospatial modelling of vegetation productivity", 19(10):169, doi:10.1007/s12145-026-02232-5. Mô hình lag-1 đơn giản thắng mọi mô hình đồ thị; tương tự Volve (một hằng số thắng mọi mạng).
- Jover-Alfaro, Arias-Antúnez & Mateo-Cortés (2026), "Forecasting earthquakes by Machine Learning techniques: lights and shadows", 19(2):24, doi:10.1007/s12145-026-02078-x (đọc toàn văn). Độ chính xác trên 97% của bài gốc là do rò rỉ dữ liệu; chia theo thời gian còn 0,21.
- Có đăng bài cùng chủ đề (kết quả dương): Jahanjooy et al. (2025), tie giếng bằng DTW mờ, doi:10.1007/s12145-025-01697-0; Lima et al. (2025), phương pháp đánh giá học sâu phân loại tướng địa chấn trên F3, doi:10.1007/s12145-025-02024-3.
**Frontiers in Earth Science**
- Patidar, Singh & Dewangan (2026), 14:1915184, doi:10.3389/feart.2026.1915184. Ba giếng mù; khoảng 90% chỉ phủ 25–33%; tác giả nêu đây là giới hạn và cần kiểm định thêm. Tương tự F3 under-coverage.
- Li et al. (2026), 14:1910345, doi:10.3389/feart.2026.1910345 (đã trích trong bài). Chia patch ngẫu nhiên trên F3 rò rỉ không gian; mức lợi 0,181 mIoU giảm còn khoảng 0,09 khi chia theo khối.
- Wu & Stewart (2023), 11:1082435, doi:10.3389/feart.2023.1082435. Có mục "Limitation test": mạng nhạy với thay đổi wavelet; tương tự lỗi pha wavelet.
**JGR: Machine Learning and Computation**
- Oladeji, Parsekian & Grana (2024), 1(3):e2024JH000197, doi:10.1029/2024JH000197. Ước lượng nhiễu quá thấp gây phân loại sai; tương tự σ_a khai báo sai.
- Selz & Craig (2026), 3(3):e2025JH001180, doi:10.1029/2025JH001180. Thất bại là kết quả chính.
**Geophysical Prospecting**
- Heidari et al. (2023), 71(3):443–455, doi:10.1111/1365-2478.13312. Mô hình nhiễu khai báo sai trong nghịch đảo porosity xác suất cho posterior lệch và quá tự tin; tương tự σ_a.
- Pirogova et al. (2019), 67(7):1778–1797, doi:10.1111/1365-2478.12796. Mọi phương pháp ước lượng Q đều không tin cậy khi môi trường không 1D.
**Computers & Geosciences / Applied Computing and Geosciences**
- Baddeley et al. (2025), C&G 204:105965, doi:10.1016/j.cageo.2025.105965. Kết quả âm là tựa bài, đi kèm thuật toán sửa và cận sai số.
- Shakir & Abushaikha (2026), ACAGS 32:100422, doi:10.1016/j.acags.2026.100422. RML, báo cáo coverage, posterior VAE quá tự tin.
- Không tìm thấy bài C&G nào có kết quả chính là kiểm định giếng mù hoặc thực địa thất bại.
**Geophysics**
- Wuestefeld et al. (2018), 83(4):KS35–KS47, doi:10.1190/geo2017-0317.1. Benchmark tổng hợp; không phương pháp nào định vị đúng mọi sự kiện.
- Grana, Azevedo & Liu (2020), 85(4):WA41–WA52, doi:10.1190/geo2019-0405.1. RNN chính xác hơn nhưng có thể ước lượng thấp bất định.
## 3. Đọc kết quả
- Nhanh nhất đến chấp nhận: *Earth Science Informatics* (≈ 110 ngày, Crossref), *Frontiers* (≈ 96 ngày, số nền tảng), *JGR-MLC* (126 ngày), *Geophysical Prospecting* (< 120 ngày đến xuất bản nếu chỉ một vòng). *C&G*, *ACAGS*, *AIG* khoảng 5,5–6,5 tháng; *Geophysics* khoảng 8 tháng.
- Dễ nhận kết quả âm nhất về chính sách: *Frontiers* (nêu rõ). Về tiền lệ gần chủ đề: *Earth Science Informatics* (ba bài 2026 lấy thất bại kiểm định làm kết quả chính, trong đó một bài petrophysics trên Teapot Dome).
- Không chặn ở khâu nộp vì chưa có repo công khai: *ESI*, *Frontiers*, *GP* (chỉ cần Data Availability Statement). *C&G*, *ACAGS*, *JGR-MLC* chặn. Repo công khai và lưu trữ Zenodo vẫn cần người dùng làm, và vẫn nên làm vì đóng góp 3 là benchmark.
- Rủi ro của *GP*: chỉ cho một vòng major revision, trong khi ba vòng phản biện giả lập đều cho major.
## 4. Quyết định ban đầu (thay bằng §6)
**Nộp *Earth Science Informatics*, loại bài Research article; dự phòng *Frontiers in Earth Science* (Original Research, mục Georeservoirs hoặc Geoinformatics).**
Lý do: nhanh và rẻ nhất trong các nơi đủ chuẩn (quyết định đầu tiên trung vị 7 ngày, chấp nhận khoảng 3,7 tháng, không phí theo đường thuê bao); không giới hạn độ dài và nhận supplement dài; có tiền lệ gần nhất cho bài lấy thất bại kiểm định làm kết quả; SCIE. Rủi ro phạm vi (điều khoản "petroleum engineering") xử lý bằng cách trình bày bài như phương pháp luận đánh giá: sai số đăng ký nhãn trong dữ liệu huấn luyện, benchmark có đáp án và lệnh chấm, gói tái lập, yêu cầu cho kiểm định giếng mù. Nếu bị từ chối vì phạm vi, câu trả lời thường đến trong khoảng một tuần, rồi chuyển sang *Frontiers*.
Việc cần làm để nộp ESI (chưa làm):
1. Chuyển `paper_cg/main.tex` sang template Springer Nature LaTeX (`sn-jnl`); file nguồn chỉnh sửa được phải nộp kèm.
2. Rút abstract xuống ≤ 250 từ (hiện 269; abstract của `paper/` và bản nộp phải giữ giống nhau). Từ khóa 4–6 (hiện 6).
3. Phần khai báo theo Springer: Funding, Competing interests, Data/Code availability, Author contributions; ghi việc dùng mô hình ngôn ngữ lớn trong Methods.
4. Supplement nộp dạng Online Resource (xuất bản nguyên trạng).
5. Cover letter nêu rõ đóng góp cho tin học địa khoa học (đánh giá, benchmark, tái lập).
6. Phần của người dùng: danh sách tác giả và khai báo, repo công khai, lưu trữ Zenodo và giấy phép.
## 5. Chưa kiểm được
- Trang hiện hành của Geophysics, AIG và ACAGS (chỉ có bản lưu Wayback; guide ACAGS mới nhất là 03/2024).
- Tỉ lệ chấp nhận của ESI, C&G, ACAGS, AIG, GP (không công bố).
- Tốc độ riêng của *Frontiers in Earth Science* (chỉ có số toàn nền tảng).
- Thời điểm ESI thêm điều khoản phạm vi và mức độ áp dụng.
- Số trung vị tốc độ của ESI và Geophysics tự tính từ Crossref, không phải số chính thức (trừ 7 ngày của ESI).
- Hầu hết bài tiền lệ chỉ đọc tóm tắt.
## 6. Vòng hai: chỉ nơi miễn phí (12/11/2026)
Yêu cầu của người dùng: "chỉ nộp ở đâu miễn phí, bỏ Earth Science Informatics do loại kỹ thuật dầu khí". Trong tám nơi ở §1, chỉ *C&G* và *Geophysical Prospecting* miễn phí cho mọi tác giả (*Geophysics* thu US$325/trang nếu không tác giả nào là hội viên SEG). Hai subagent khảo sát thêm tám tạp chí có đường nộp không phí hoặc có thể miễn phí, cùng quy tắc như §1. Phiên chính tính trung vị từ ngày nhận đến ngày chấp nhận trong metadata Crossref (chỉ Wiley và Springer ghi các ngày này; Elsevier, OUP và SEG không ghi). Phiên chính cũng tự kiểm lại trang của *Mathematical Geosciences* và *Acta Geophysica* (Springer, 12/11/2026), bản lưu Wayback trang chủ *Geoenergy Science and Engineering* (25/08/2025, bản lưu duy nhất từ 2025), và sáu DOI tiền lệ trên Crossref. Ghi chú thô của subagent nằm trong scratchpad, không đưa vào git.
**Bị loại vì có phí:**
- *Petroleum Science*: thu APC từ 01/01/2026 (US$1 100–2 830 cho tác giả ngoài Trung Quốc).
- *Journal of Geophysics and Engineering*: OA, APC US$1 550.
- *Interpretation*: US$325/trang bắt buộc nếu không tác giả nào là hội viên SEG hoặc AAPG.
- *Frontiers*, *JGR-MLC*, *ACAGS*, *AIG*: APC (§1).
**Các nơi miễn phí còn lại.** Cột "Đến chấp nhận" lấy số chính thức của tạp chí nếu có; nếu không có thì là trung vị từ ngày nhận đến ngày chấp nhận theo Crossref (không chính thức). Hai loại số này không đo hoàn toàn giống nhau.
| Nơi (miễn phí theo đường thuê bao) | Đầu tiên quyết định | Đến chấp nhận | Phạm vi với dầu khí | Code lúc nộp | Rủi ro chính |
|---|---|---|---|---|---|
| ***Geoenergy Science and Engineering*** (Elsevier, IF 4.6; trước là *J. Petroleum Science and Engineering*) | 27 ngày | **135 ngày** (trang tạp chí, bản lưu 25/08/2025) | ghi rõ "application of artificial intelligence, machine learning and data analytics in energy industry; and sustainable hydrocarbon exploration and production" | không bắt buộc; cần câu khai báo dữ liệu | độc giả thiên kỹ thuật và chuyển dịch năng lượng; bài nặng lý thuyết địa vật lý có thể bị xem là ngoài trọng tâm; số tốc độ đã cũ 15 tháng |
| *Computers & Geosciences* (Elsevier, IF 4.1) | 13 ngày | 171 ngày (trang tạp chí, 17/10/2026) | không loại | **repo công khai bắt buộc** | phạm vi mới loại bài benchmark thiếu novelty và bài thuần giải tích |
| *Geophysical Prospecting* (Wiley/EAGE) | < 60 ngày (chính thức) | 184 ngày (Crossref 2025, n = 121; 186 năm 2026) | nhận | không | thường chỉ một vòng major revision |
| *Journal of Applied Geophysics* (Elsevier, IF 2.6) | 9 ngày | 192 ngày (trang tạp chí, 17/10/2026) | thăm dò là phần phụ ("related topical research") | không | trọng tâm môi trường, công trình, thủy văn |
| *Acta Geophysica* (Springer, IF 2.4) | 17 ngày | 193 ngày (Crossref 2025; 191 năm 2026) | nhận thăm dò và ML | không | **không nhận** "Modeling studies without proper calibration and substantial real-data validation" |
| *Mathematical Geosciences* (Springer/IAMG, IF 4.1) | **7 ngày** | 233 ngày (Crossref 2025; 227 năm 2026) | không loại; nêu ML và tài nguyên | không | chậm đến chấp nhận; khoảng 5 500 từ; abstract 150–250 từ |
| *Computational Geosciences* (Springer, IF 2.1) | 22 ngày | 251 ngày (Crossref 2025; 153 năm 2026) | địa vật lý chỉ "also be considered" | không | trọng tâm mô phỏng dòng chảy ngầm |
| *Pure and Applied Geophysics*, *Natural Resources Research* (Springer) | chưa kiểm | 194 / 173 ngày (Crossref 2025) | chưa kiểm | chưa kiểm | không khảo sát chi tiết |
**Tiền lệ (DOI kiểm trên Crossref; chỉ đọc tóm tắt hoặc chỉ tựa):**
- *Geoenergy Science and Engineering*:
- Luo & Ranazzi (2024), 243:213298, doi:10.1016/j.geoen.2024.213298. Cross-validation thông thường "fail[s] to work well" khi đồng hóa dữ liệu vỉa (tóm tắt).
- Durga Kannaiah & Maurya (2023), "Machine learning approaches for formation matrix volume prediction from well logs: insights and lessons learned", 229:212086, doi:10.1016/j.geoen.2023.212086 (chỉ tựa).
- Zhang, Liu & Cao (2024), "Applying transfer learning to address data scarcity: A case study on LWD gamma ray depth-lag remediation from Volve to another gasfield", 242:213231, doi:10.1016/j.geoen.2024.213231 (chỉ tựa; chủ đề gần nhất với bài ta: sửa độ lệch độ sâu giữa các log).
- Tạp chí tiền thân *Journal of Petroleum Science and Engineering* (bổ sung 13/11/2026, tìm qua OpenAlex; DOI và metadata kiểm trên Crossref):
- Tunkiel, Sui & Wiktorski (2021), "Reference dataset for rate of penetration benchmarking", 196:108069, doi:10.1016/j.petrol.2020.108069. Bộ benchmark công khai từ Volve kèm kết quả tham chiếu, viết vì các bài ML báo R² tới 0,996 mà không ai kiểm lại được (tóm tắt). Giống đóng góp 3–4 của bài ta.
- Male & Duncan (2019), "Lessons for Machine Learning from the Analysis of Porosity-Permeability Transforms for Carbonate Reservoirs", doi:10.1016/j.petrol.2019.106825. Kiểm định giếng mù bằng cross-validation; thêm thông tin thạch học "does not greatly improve" (kết quả null), kèm bài học cho ML (tóm tắt).
- Wu et al. (2022), "Improved seismic well tie by integrating variable-size window resampling with well-tie net", 208:109368, doi:10.1016/j.petrol.2021.109368: well tie nằm trong phạm vi tạp chí (kết quả dương; chỉ TLDR).
- Nhận xét (13/11/2026): không tìm thấy bài GSE/JPSE nào mà kết quả chính là phương pháp thất bại trên dữ liệu thật như bài ta. Phần lớn bài ML ở đây báo kết quả dương (ví dụ dự báo sản lượng Volve R² > 0,94, doi:10.1016/j.petrol.2021.109468). Tiền lệ gần nhất là loại bài benchmark/phương pháp luận (Tunkiel và cộng sự) và loại "cách thông thường hỏng, đây là cách sửa" (Luo & Ranazzi). Cover letter nên trình bày bài theo hai khuôn này. OpenAlex chỉ có tóm tắt cho khoảng 1/3 số bài Elsevier, nên tìm kiếm chưa đầy đủ.
- *Mathematical Geosciences*: Carvalho et al. (2026), benchmark ML phân loại thạch học từ log giếng, doi:10.1007/s11004-026-10300-1; mô hình không theo ngữ cảnh thắng phần lớn mô hình sâu và bài toán "is still not solved" (tóm tắt).
- *Journal of Applied Geophysics*:
- Vecherin et al. (2022), 204:104735, doi:10.1016/j.jappgeo.2022.104735. Tín hiệu đo "not always within the predicted ranges of variability", tức under-coverage (tóm tắt).
- Babikir et al. (2026), 250:106224, doi:10.1016/j.jappgeo.2026.106224 (F3, kết quả dương).
**Quyết định cuối: nộp *Geoenergy Science and Engineering* (Research article); dự phòng *Computers & Geosciences*.** (Thay bằng §7 ngày 13/11/2026: *Geophysical Prospecting*.)
Lý do chọn *Geoenergy Science and Engineering*:
- Thời gian đến chấp nhận ngắn nhất trong các nơi miễn phí (135 ngày; nơi kế tiếp là C&G với 171 ngày).
- Phạm vi ghi rõ thăm dò hydrocarbon và học máy, nên không vướng vấn đề đã loại ESI.
- Không bắt buộc repo code công khai lúc nộp, không giới hạn số từ, abstract tối đa 500 từ.
- Cùng nhà xuất bản Elsevier, nên bản `paper_cg/` (template CAS) dùng gần như nguyên trạng; guide 2024 cho nộp lần đầu theo "Your Paper Your Way".
Rủi ro:
- Số tốc độ là của tháng 08/2025, không có bản lưu mới hơn.
- Có thể bị trả về vì bài thiên lý thuyết và địa vật lý; khi đó quyết định đầu tiên đến trong khoảng 4 tuần.
- Tiền lệ "lấy thất bại làm kết quả chính" ở đây yếu hơn ESI (một bài có tóm tắt, một bài chỉ có tựa).
- Cover letter nên nêu ứng dụng cho đặc trưng hóa vỉa (dự báo porosity từ địa chấn), yêu cầu kiểm định giếng mù cho các dự án thăm dò, và benchmark tái lập được.
Lý do dự phòng là C&G: nhanh thứ hai (171 ngày, số tháng 10/2026), và bản `paper_cg/` đã viết đúng guide của C&G. Điều kiện là có repo code công khai trước khi nộp. Nếu lúc đó chưa có repo công khai thì dùng *Journal of Applied Geophysics* (192 ngày, không bắt buộc code).
Việc cần làm để nộp *Geoenergy Science and Engineering* (chưa làm):
1. Giữ template Elsevier CAS của `paper_cg/`. Abstract 269 từ < 500 nên không cần cắt; highlights 5 dòng ≤ 85 ký tự đã đạt.
2. Chọn 4–6 từ khóa theo AGI GeoRef Thesaurus (theo guide 2024; chưa đối chiếu sáu từ khóa hiện có).
3. Đổi mục "Computer code availability" (yêu cầu riêng của C&G) thành "Code and data availability". Giữ các khai báo Elsevier đã có (CRediT, competing interest, generative AI).
4. Viết cover letter theo hướng đặc trưng hóa vỉa.
5. Đọc lại guide for authors hiện hành của GSE lúc nộp (bản đọc được mới nhất là 01/2024).
6. Phần của người dùng: tác giả và khai báo, DOI Zenodo (không bắt buộc, nhưng nên có cho benchmark).
**Chưa kiểm được ở vòng hai:**
- Số tốc độ của GSE sau 08/2025.
- GSE và JAG thuộc SCIE hay ESCI.
- Tỉ lệ chấp nhận của mọi nơi.
- Guide của GSE và JAG mới hơn 01/2024.
- Elsevier có cho chuyển bài từ GSE sang C&G không (Article Transfer Service).
- Tiền lệ của GSE và JAG phần lớn chỉ có tựa.
## 7. Vòng ba: chỉ giữ nơi có tiền lệ "phương pháp thất bại trên dữ liệu thật" (13/11/2026)
Yêu cầu của người dùng: "kiểm tra venue-survey và chỉ chọn những nơi có bài có kết quả chính là phương pháp thất bại trên dữ liệu thật". Vẫn chỉ xét nơi miễn phí (§6). Phiên chính đọc lại tóm tắt các tiền lệ ở §2 và §6 (OpenAlex, 13/11) và tìm thêm trong *Geophysical Prospecting*, *Journal of Applied Geophysics* và *Mathematical Geosciences* bằng 12 cụm từ thất bại ("does not improve", "fails to", "unreliable", "overconfident", "blind well", ...; 529 bài từ 2015, sàng theo tóm tắt). Lượt tìm cùng kiểu cho *C&G*, *Computational Geosciences*, *Acta Geophysica* và GSE/JPSE không chạy được vì OpenAlex hết hạn mức trong ngày; với các nơi này chỉ dùng tiền lệ đã có ở §2 và §6. Tiêu chí: dữ liệu đo thật (thực địa, giếng hoặc phòng thí nghiệm), và việc phương pháp thất bại là kết quả chính (trong tựa hoặc là kết luận chính của tóm tắt), không chỉ là một câu hạn chế.
| Nơi | Tiền lệ đạt tiêu chí (chỉ đọc tóm tắt) | Kết luận |
|---|---|---|
| ***Geophysical Prospecting*** | Pirogova et al. (2019), doi:10.1111/1365-2478.12796: VSP và log thật ở Otway; "all considered methods of Q estimation are unreliable" khi môi trường lệch khỏi 1D, và bơm CO2 không gây suy giảm phát hiện được. Kết quả âm của cross-property DEM trên dữ liệu đá chứa đo trong phòng thí nghiệm (2022, doi:10.1111/1365-2478.13233): "The results indicate the incapability of the cross-property differential effective medium model". Gần chủ đề nhất: Heidari et al. (2023), doi:10.1111/1365-2478.13312, nghịch đảo porosity xác suất trên dữ liệu thật của một mỏ carbonate ở Iran; mô hình nhiễu khai báo sai cho mô hình lệch với bất định thấp (kèm cách sửa). | **Đạt** |
| *Mathematical Geosciences* | Carvalho et al. (2026), doi:10.1007/s11004-026-10300-1: benchmark trên log giếng công khai (FORCE, Geolink); mô hình sâu theo ngữ cảnh không thắng mô hình nông, bài toán "is still not solved". Thêm: phân tích động đất kích thích ở Groningen (2023, doi:10.1007/s11004-023-10081-x), mô hình rate-and-state hiện hành "fail to capture inter-event interaction" trên catalogue thật (kèm mô hình sửa). | **Đạt** (khuôn benchmark gần bài ta nhất) |
| *Computers & Geosciences* | Baddeley et al. (2025), doi:10.1016/j.cageo.2025.105965: dữ liệu mỏ vàng Murchison thật; kết quả âm nằm ở tựa ("unstable"), kèm thuật toán sửa. | **Đạt**, nhưng vẫn bắt buộc repo code công khai lúc nộp |
| *Journal of Applied Geophysics* | Vecherin et al. (2022): tín hiệu đo nằm ngoài khoảng dự báo chỉ là một câu, không phải kết quả chính; thẩm định bốn mô hình trộn điện trở trên dữ liệu thực địa (2024, doi:10.1016/j.jappgeo.2024.105572) có phần thất bại nhưng kết luận là chọn mô hình. | Không đạt (yếu) |
| *Geoenergy Science and Engineering* (và JPSE) | Không có bài nào trong GSE (§6, 13/11). Male & Duncan (2019) là kết quả null trên dữ liệu thật nhưng in ở JPSE, tạp chí tiền thân; Luo & Ranazzi (2024) là "cách thông thường hỏng, đây là cách sửa". | **Không đạt** |
| *Acta Geophysica*, *Computational Geosciences* | Không tìm thấy (lượt tìm chưa đầy đủ, xem trên). | Không đạt |
| Có tiền lệ mạnh nhưng bị loại | ESI (người dùng bỏ); *Frontiers*, *JGR-MLC* (APC). | Không xét |
**Quyết định (13/11/2026, thay quyết định GSE ở §6): nộp *Geophysical Prospecting* (EAGE/Wiley, Original article; miễn phí theo đường thuê bao). Dự phòng *Mathematical Geosciences*. *C&G* chỉ dùng nếu đã có repo code công khai.**
Lý do:
- Trong ba nơi đạt tiêu chí, GP nhanh nhất không cần điều kiện thêm: < 60 ngày đến quyết định đầu tiên (chính thức), 184 ngày từ nhận đến chấp nhận (Crossref 2025, n = 121). C&G nhanh hơn (171 ngày) nhưng cần repo công khai và phạm vi mới loại bài benchmark thiếu novelty; MG chậm hơn (233 ngày).
- Tiền lệ của GP vừa là thất bại trên dữ liệu thật (Pirogova; DEM 2022), vừa gần chủ đề nhất (Heidari: porosity xác suất, mô hình nhiễu khai báo sai trên dữ liệu thật, giống trục σ_a của bài ta).
- Không giới hạn số từ, không bắt buộc repo code; cần Data Availability Statement (§1).
Rủi ro:
- GP thường chỉ cho một vòng major revision (§1). Ba phản biện giả lập đều cho major revision, nên bản nộp phải đã xử lý các điểm chính trong `docs/research/referee-reports/` (phần lớn đã làm ở plan §12 ý 43–46).
- Bài dài: dùng bản rút gọn `paper_cg/` (17 trang + supplement) và đổi sang định dạng của GP (Wiley). Chưa đọc được guide hiện hành của GP (trang Wiley trả 403; Wayback bị chặn trong phiên này), nên giới hạn abstract, từ khóa và định dạng lần nộp đầu cần kiểm lúc nộp.
- Số Crossref là trung vị không chính thức; mọi tiền lệ ở đây chỉ đọc tóm tắt.
Dự phòng *Mathematical Geosciences*: tiền lệ benchmark gần nhất (Carvalho et al. 2026), 7 ngày đến quyết định đầu tiên; bản `paper_cg/` có thân bài 5 099 từ, vừa với khoảng 5 500 từ, nhưng abstract 269 từ phải cắt xuống ≤ 250.
Việc cần làm để nộp GP (chưa làm):
1. Đọc guide for authors hiện hành của GP (định dạng, abstract, từ khóa, supplement, DAS).
2. Chuyển `paper_cg/main.tex` từ template Elsevier CAS sang định dạng GP chấp nhận; bỏ các mục chỉ Elsevier cần (highlights, "Computer code availability" theo kiểu C&G) nếu GP không yêu cầu; viết Data Availability Statement.
3. Cover letter: nêu đây là nghiên cứu lý thuyết và benchmark về sai số buộc giếng (well tie) trong dự báo porosity từ địa chấn, có hai trường hợp thực địa thất bại, và yêu cầu cho kiểm định giếng mù.
4. Phần của người dùng: tác giả, khai báo, DOI Zenodo.
**Cập nhật 16/11/2026:** mục 1–2 ở trên đã làm. Guide GP đọc qua bản Wayback 10/12/2025 (guide ngày 19/07/2022; trang live trả 403), chi tiết trong `docs/research/gp-style-survey.md`. Bản nộp GP nằm ở `paper_gp/` (`main.tex`, `supplement.tex` = Supporting Information, `README.md` có checklist); `paper_cg/` giữ làm bản dự phòng C&G. Mục 3–4 vẫn chờ người dùng.
**Cập nhật 16/11/2026 (sau đó):** người dùng bỏ `paper_cg/` khỏi working tree (không khôi phục; bản đã commit ở `883dccf`). Nếu quay lại C&G thì phải dựng lại bản CAS từ `paper_gp/` hoặc từ git (`docs/plan.md` §12 ý 56).

File diff suppressed because it is too large Load Diff

View File

@@ -29,7 +29,7 @@ Ngày 26/10/2026. Tài liệu này viết phần lý thuyết mà [plan.md](plan
**Giả thiết.** **Giả thiết.**
- (A1) Với mọi t, δ(t) độc lập với (X, y(·)) và có phân phối p_t. - (A1) Với mọi t, δ(t) độc lập với (X, y(·)) và có phân phối p_t.
- (A2) E[y(t)²] < ∞. - (A2) sup_t E[y(t)²] < ∞ (dưới giả thiết dừng thì tương đương E[y(t)²] < ∞; cần cho Fubini trong chứng minh).
**Mệnh đề 1.** Predictor tối ưu MSE cho nhãn quan sát là **Mệnh đề 1.** Predictor tối ưu MSE cho nhãn quan sát là
@@ -195,7 +195,7 @@ Gọi δ(t) = τ̄(t) − τ(t) là sai số của warp trung bình. Nếu poste
- 𝓛_w là log-likelihood Gaussian trên các cửa sổ. Với RML, áp cùng phép dịch cho mọi mẫu warp trong bank; lập luận không đổi. - 𝓛_w là log-likelihood Gaussian trên các cửa sổ. Với RML, áp cùng phép dịch cho mọi mẫu warp trong bank; lập luận không đổi.
**Giả thiết (B): lớp mô hình đóng dưới phép dịch đầu ra.** Với mỗi θ và mỗi β (bội của Δt, |β| ≤ β_max), tồn tại θ' sao cho μ_θ'(X) = T_β μ_θ(X) và σ_θ'(X) = T_β σ_θ(X). **Giả thiết (B): lớp mô hình đóng dưới phép dịch đầu ra.** Với mỗi θ và mỗi β (bội của Δt, |β| ≤ β_max), tồn tại θ' sao cho μ_θ'(X) = T_β μ_θ(X) và σ_θ'(X) = T_β σ_θ(X).
- Đúng chính xác khi lớp mô hình chứa phép dịch đầu ra. Ví dụ: mạng tích chập hoàn toàn có tầng cuối đủ rộng để dời tap kernel đi c mẫu. - Đúng chính xác khi lớp mô hình chứa phép dịch đầu ra. Ví dụ: mạng tích chập hoàn toàn có kernel tầng cuối rộng hơn phần trọng số nó dùng ít nhất β_max mẫu mỗi bên (sai khác chỉ ở mép cửa sổ).
- Đúng xấp xỉ với CNN–biGRU. - Đúng xấp xỉ với CNN–biGRU.
- Trong mọi trường hợp, chỉ đúng tới hiệu ứng biên của cửa sổ hữu hạn. - Trong mọi trường hợp, chỉ đúng tới hiệu ứng biên của cửa sổ hữu hạn.
@@ -213,6 +213,7 @@ Gọi δ(t) = τ̄(t) − τ(t) là sai số của warp trung bình. Nếu poste
\operatorname{sd}(\beta)\approx\Big(\frac{\sum_wK_w}{\sigma_a^2}+\frac{N}{\sigma_b^2}\Big)^{-1/2}\approx\frac{\sigma_a}{\sqrt{\sum_wK_w}} . \operatorname{sd}(\beta)\approx\Big(\frac{\sum_wK_w}{\sigma_a^2}+\frac{N}{\sigma_b^2}\Big)^{-1/2}\approx\frac{\sigma_a}{\sqrt{\sum_wK_w}} .
\] \]
- sd(β) ở đây là độ trải dọc ridge khi giữ các tham số khác cố định (nghịch đảo căn độ cong). Độ trải biên duyên, có lấy tích phân qua drift của từng giếng, không nhỏ hơn giá trị này (luật phương sai toàn phần).
- Ví dụ có anchor: 4 giếng × 16 anchor với σ_a = 7 ms cho sd(β) ≈ 0.9 ms. - Ví dụ có anchor: 4 giếng × 16 anchor với σ_a = 7 ms cho sd(β) ≈ 0.9 ms.
- Nếu chỉ có prior σ_b = 50 ms (giá trị trong protocol P2), sd(β) ≈ 50/√N: 35 ms với N = 2 và 12.5 ms với N = 16. - Nếu chỉ có prior σ_b = 50 ms (giá trị trong protocol P2), sd(β) ≈ 50/√N: 35 ms với N = 2 và 12.5 ms với N = 16.
- Cả hai đều lớn so với chu kỳ trong băng seismic. Theo nhận xét cuối mục 1.1, dịch chung β nhân thành phần tần số f của PCC với cos(2πfβ), và cos(2π · 20 Hz · 12.5 ms) = 0. - Cả hai đều lớn so với chu kỳ trong băng seismic. Theo nhận xét cuối mục 1.1, dịch chung β nhân thành phần tần số f của PCC với cos(2πfβ), và cos(2π · 20 Hz · 12.5 ms) = 0.
@@ -421,7 +422,7 @@ Giả thiết (A2) cho y và ỹ.
**Ý nghĩa.** **Ý nghĩa.**
- (a) là cấu trúc classical của mô hình sai số đo (sai số độc lập với giá trị thật); (b) là cấu trúc Berkson (sai số độc lập với giá trị được gán). Ở đây sai số nằm ở chỉ số thời gian của nhãn, và hai cấu trúc làm lệch predictor học được theo hai chiều ngược nhau: (a) làm mờ predictor và nới rộng phương sai học được; (b) làm sắc predictor và thu hẹp phương sai. - (a) là cấu trúc classical của mô hình sai số đo (sai số độc lập với giá trị thật); (b) là cấu trúc Berkson (sai số độc lập với giá trị được gán). Ở đây sai số nằm ở chỉ số thời gian của nhãn, và hai cấu trúc làm lệch predictor học được theo hai chiều ngược nhau: (a) làm mờ predictor và nới rộng phương sai học được; (b) làm sắc predictor và thu hẹp phương sai.
- Tie lấy bằng trung bình posterior, û = E[u* | D], là lý tưởng hoá tự nhiên của (b): E[u* − û | D] = 0 theo cách dựng, và trong mô hình tuyến tính–Gauss u* − û độc lập với D. Với offset b của warp, sai số thời gian bằng sai số posterior của b nên thừa hưởng tính chất này; với drift thì chỉ gần đúng, khi posterior hẹp. - Tie lấy bằng trung bình posterior, û = E[u* | D], là lý tưởng hoá tự nhiên của (b): E[u* − û | D] = 0 theo cách dựng, và trong mô hình tuyến tính–Gauss u* − û độc lập với D. Với offset b của warp, sai số thời gian bằng sai số posterior của b nên thừa hưởng tính chất này; với drift thì chỉ gần đúng, khi posterior hẹp.
- Tie khớp theo cách khác (ví dụ cực đại tương quan synthetic–seismic) có thể theo một trong hai cấu trúc hoặc không theo cấu trúc nào. Trên dữ liệu synthetic phân biệt được: với offset, classical nghĩa là Cov(b̂ − b*, b*) = 0, Berkson nghĩa là Cov(b* − b̂, b̂) = 0. - Tie khớp theo cách khác (ví dụ cực đại tương quan synthetic–seismic) có thể theo một trong hai cấu trúc hoặc không theo cấu trúc nào. Trên dữ liệu synthetic phân biệt được: với offset, classical kéo theo Cov(b̂ − b*, b*) = 0, Berkson kéo theo Cov(b* − b̂, b̂) = 0 (điều kiện cần, dùng làm phép kiểm ở T2).
### 6.2 Mệnh đề 4 (bank hiệu chỉnh) ### 6.2 Mệnh đề 4 (bank hiệu chỉnh)
@@ -433,12 +434,12 @@ Do đó giới hạn λ → 0 của RML (Bổ đề 2) có cùng nghiệm tối
**Lưu ý.** **Lưu ý.**
- Hiệu chỉnh là lý tưởng hoá; nó đúng với mẫu posterior chính xác khi S → ∞. Dưới giả thiết này, lấy biên theo posterior khử sai lệch quần thể của cả hai cấu trúc. - Hiệu chỉnh là lý tưởng hoá; nó đúng với mẫu posterior chính xác khi S → ∞. Dưới giả thiết này, lấy biên theo posterior khử sai lệch quần thể của cả hai cấu trúc.
- Warp trung bình không có tính chất này. B3d-Sa học nhãn tại warp trung bình ū, không phải nhãn trung bình. Khai triển y^u quanh ū: ȳ − y^{ū} = ½ Σ_s π_s (u_s − ū)ᵀ ∇²_u y^{ū} (u_s − ū) + O(‖u_s − ū‖³), nên hai nhãn chỉ trùng nhau tới bậc một theo độ trải posterior. Nếu sai số thời gian của warp trung bình theo (b), tối ưu quần thể của B3d-Sa bị làm sắc bởi 1/Q, còn của nhãn trung bình thì đúng. - Warp trung bình không có tính chất này. B3d-Sa học nhãn tại warp trung bình ū, không phải nhãn trung bình. Khai triển hình thức y^u quanh ū (u chứa hàm drift g): ȳ − y^{ū} = ½ Σ_s π_s (u_s − ū)ᵀ ∇²_u y^{ū} (u_s − ū) + O(Σ_s π_s ‖u_s − ū‖³), nên hai nhãn chỉ trùng nhau tới bậc một theo độ trải posterior. Nếu sai số thời gian của warp trung bình theo (b), tối ưu quần thể của B3d-Sa bị làm sắc bởi 1/Q, còn của nhãn trung bình thì đúng.
### 6.3 Hệ quả 3 (hai mode) và Nhận xét 1 (λ > 0) ### 6.3 Hệ quả 3 (hai mode) và Nhận xét 1 (λ > 0)
- **Hệ quả 3.** Cho sai số (δ dưới (a), ε dưới (b)) hằng trên cửa sổ, bằng ±Δ/2 với xác suất ½ mỗi bên, độc lập với X. Khi đó P = Q = cos(πfΔ), và dưới cả hai cấu trúc hệ số truyền từ m sang m̃ âm khi 1/(2Δ) < |f| < 3/(2Δ): ở đó nhãn điểm kéo mạng về sai dấu. Sai số Gauss cùng phương sai Δ²/4 có P = e^{−π²Δ²f²/2} > 0 ở mọi tần số. Nhãn trung bình của bank hiệu chỉnh có hệ số truyền 1. Dưới (a), bank gồm nhãn điểm dịch ±Δ/2 với trọng số bằng nhau có hệ số truyền cos²(πfΔ) ≥ 0. - **Hệ quả 3.** Cho sai số (δ dưới (a), ε dưới (b)) hằng trên cửa sổ, bằng ±Δ/2 với xác suất ½ mỗi bên, độc lập với (X, y) dưới (a) và với D dưới (b). Khi đó P = Q = cos(πfΔ), và dưới cả hai cấu trúc hệ số truyền từ m sang m̃ âm khi 1/(2Δ) < |f| < 3/(2Δ): ở đó nhãn điểm kéo mạng về sai dấu. Sai số Gauss cùng phương sai Δ²/4 có P = e^{−π²Δ²f²/2} > 0 ở mọi tần số. Nhãn trung bình của bank hiệu chỉnh có hệ số truyền 1. Dưới (a), lấy bank gồm nhãn điểm dịch ±Δ/2 với trọng số bằng nhau: tối ưu quần thể của MSE trên nhãn trung bình của nó, cũng là của RML trên bank này khi λ → 0, có hệ số truyền cos²(πfΔ) ≥ 0. Bank này chứa nhãn tại warp thật nhưng không hiệu chỉnh: trọng số ½–½ không phải xác suất posterior của hai thành viên (nếu hiệu chỉnh thì hệ số truyền là 1 theo Mệnh đề 4(a)). Dưới (b), m̂ = Q·m̂̃, nên hệ số truyền 1/Q chỉ xác định ở nơi Q ≠ 0; Q không có không điểm trong dải đảo, và tại không điểm của Q thì m̂ = 0.
- Đảo pha là tính chất của sai số đa mode mà một tóm tắt Gauss che mất. Nếu hai mode cách nhau một chu kỳ trội, Δ = 1/f_0, dải đảo là f_0/2 < |f| < 3f_0/2. Seismic F3 có đỉnh gần 60 Hz, nên dải đảo là 30–90 Hz. Bước nhảy chu kỳ cho sai số kiểu này; ở c = 2 posterior SMC đa mode. Trong ví dụ này, bank đặt tâm tại nhãn điểm chỉ khử đảo dấu bằng cách làm suy giảm thêm băng. - Đảo pha là tính chất của sai số đa mode mà một tóm tắt Gauss che mất. Nếu hai mode cách nhau một chu kỳ trội, Δ = 1/f_0, dải đảo đầu tiên là f_0/2 < |f| < 3f_0/2 (các dải đảo sau bắt đầu từ 5f_0/2). Seismic F3 có đỉnh gần 60 Hz, nên dải đảo là 30–90 Hz. Bước nhảy chu kỳ cho sai số kiểu này; ở c = 2 posterior SMC đa mode. Trong ví dụ này, bank đặt tâm tại nhãn điểm chỉ khử đảo dấu bằng cách làm suy giảm thêm băng.
- **Nhận xét 1.** Mệnh đề 4 chỉ nói về giới hạn λ → 0. Khai triển hàm sinh cumulant: RML_λ = −(1/n)[Σ_s π_s ℓ_s + (λ/2) Var_π(ℓ) + O(λ²)]. Số hạng thứ hai thưởng cho predictor khớp một số thành viên của bank tốt hơn hẳn các thành viên khác. Với λ > 0, responsibilities của Bổ đề 3 dồn trọng số về các thành viên khớp với mạng hiện tại, tức một kiểu tái đăng ký ngầm, và nghiệm tối ưu quần thể nói chung không còn là (m, Var(y | X)). - **Nhận xét 1.** Mệnh đề 4 chỉ nói về giới hạn λ → 0. Khai triển hàm sinh cumulant: RML_λ = −(1/n)[Σ_s π_s ℓ_s + (λ/2) Var_π(ℓ) + O(λ²)]. Số hạng thứ hai thưởng cho predictor khớp một số thành viên của bank tốt hơn hẳn các thành viên khác. Với λ > 0, responsibilities của Bổ đề 3 dồn trọng số về các thành viên khớp với mạng hiện tại, tức một kiểu tái đăng ký ngầm, và nghiệm tối ưu quần thể nói chung không còn là (m, Var(y | X)).
### 6.4 Bank được lợi tối đa bao nhiêu (ρ*) ### 6.4 Bank được lợi tối đa bao nhiêu (ρ*)
@@ -458,12 +459,12 @@ Do đó giới hạn λ → 0 của RML (Bổ đề 2) có cùng nghiệm tối
Ký hiệu: phương pháp j dự báo trung bình μ và phương sai s² ở mọi mẫu test; v_j = E s², w_j = E(y − μ)², ξ_j = v_j / w_j, kỳ vọng lấy trên mẫu test. ξ = 1 nghĩa là phương sai dự báo khớp sai số bình phương trung bình. `scripts/30_t4_coverage.py` ghi ξ ở cột `kappa`. Ký hiệu: phương pháp j dự báo trung bình μ và phương sai s² ở mọi mẫu test; v_j = E s², w_j = E(y − μ)², ξ_j = v_j / w_j, kỳ vọng lấy trên mẫu test. ξ = 1 nghĩa là phương sai dự báo khớp sai số bình phương trung bình. `scripts/30_t4_coverage.py` ghi ξ ở cột `kappa`.
- (a) Với mọi j và O: ξ_j − ξ_O = (Δv − ξ_O Δw) / w_j, với Δv = v_j − v_O, Δw = w_j − w_O. - (a) Với mọi j và O: ξ_j − ξ_O = (Δv − ξ_O Δw) / w_j, với Δv = v_j − v_O, Δw = w_j − w_O.
- (b) Cho y dừng và (A1) với P thực, 0 ≤ P ≤ 1. So nhãn điểm tại tối ưu quần thể (μ = m̃, s² = Var(ỹ | X)) với Oracle tại tối ưu (μ = m, s² = Var(y | X)). Khi đó ξ_O = 1 và ξ_j − ξ_O = (2 / w_j) ∫ P(1 − P) S_m df ≥ 0. - (b) Cho m và y đồng dừng, và (A1) với p_t ≡ p, P thực, 0 ≤ P ≤ 1. So nhãn điểm tại tối ưu quần thể (μ = m̃, s² = Var(ỹ | X)) với Oracle tại tối ưu (μ = m, s² = Var(y | X)). Khi đó ξ_O = 1 và ξ_j − ξ_O = (2 / w_j) ∫ P(1 − P) S_m df ≥ 0.
- (c) Dưới cấu trúc (b) của Mệnh đề 3, với q_t không phụ thuộc t và y dừng, nhãn điểm tại tối ưu quần thể có ξ_j ≤ 1. Bank hiệu chỉnh có ξ_j = 1. - (c) Dưới cấu trúc (b) của Mệnh đề 3, với q_t không phụ thuộc t và y dừng, nhãn điểm tại tối ưu quần thể có ξ_j ≤ 1. Bank hiệu chỉnh tại tối ưu quần thể λ → 0 của Mệnh đề 4 có ξ = 1.
- Nếu y − μ = sZ/√ξ với Z chuẩn tắc độc lập với s, khoảng μ ± z·s phủ với xác suất 2Φ(z√ξ) − 1, tăng theo ξ. - Nếu y − μ = sZ/√ξ với Z chuẩn tắc độc lập với s, khoảng μ ± z·s phủ với xác suất 2Φ(z√ξ) − 1, tăng theo ξ.
**Ý nghĩa và T4 (post hoc, bài mục 6.3, Bảng `tab:t4`).** **Ý nghĩa và T4 (post hoc, bài mục 6.3, Bảng `tab:t4`).**
- (a) là đồng nhất thức, đúng cho mọi ensemble hữu hạn: j phủ nhiều hơn Oracle khi phương sai dự báo vượt Oracle quá ξ_O lần phần sai số bình phương dư. (b) và (c) là giới hạn quần thể: classical làm rộng khoảng của nhãn điểm, Berkson làm hẹp, bank hiệu chỉnh khớp Oracle. - (a) là đồng nhất thức, đúng cho mọi ensemble hữu hạn: j phủ nhiều hơn Oracle khi phương sai dự báo vượt Oracle quá ξ_O lần phần sai số bình phương dư. (b) và (c) là giới hạn quần thể (bank ở λ → 0): classical làm rộng khoảng của nhãn điểm, Berkson làm hẹp, bank hiệu chỉnh khớp Oracle.
- Ở ô R10, c = 1, N = 16, mọi ensemble đều quá hẹp: ξ là 0,19 ở Oracle và tối đa 0,66 (B5). Vì ξ_O nhỏ, chỉ cần dư một chút phương sai là phủ nhiều hơn Oracle. - Ở ô R10, c = 1, N = 16, mọi ensemble đều quá hẹp: ξ là 0,19 ở Oracle và tối đa 0,66 (B5). Vì ξ_O nhỏ, chỉ cần dư một chút phương sai là phủ nhiều hơn Oracle.
- Độ dài huấn luyện và nguồn nhãn lẫn nhau: B3c-R học 500 vòng lặp (như Oracle) đạt cùng ξ với B3d-Sa ở 250 vòng. Trên dev của Thí nghiệm 1, coverage90 của Oracle đơn lẻ giảm 0,47 → 0,23 → 0,10 sau 125/500/2000 vòng lặp. Vì vậy (b) và (c) **chưa được kiểm**. Không claim hiệu chỉnh. - Độ dài huấn luyện và nguồn nhãn lẫn nhau: B3c-R học 500 vòng lặp (như Oracle) đạt cùng ξ với B3d-Sa ở 250 vòng. Trên dev của Thí nghiệm 1, coverage90 của Oracle đơn lẻ giảm 0,47 → 0,23 → 0,10 sau 125/500/2000 vòng lặp. Vì vậy (b) và (c) **chưa được kiểm**. Không claim hiệu chỉnh.
@@ -472,14 +473,14 @@ Ký hiệu: phương pháp j dự báo trung bình μ và phương sai s² ở m
Thiết lập: reference ở giếng blind là y_ref(t) = y(t + ε_r), với ε_r hằng trên cửa sổ, độc lập với dự đoán ŷ và với nhãn thật y, có hàm đặc trưng Q_r; ŷ và y đồng dừng với phổ chéo S_{ŷy}. Thiết lập: reference ở giếng blind là y_ref(t) = y(t + ε_r), với ε_r hằng trên cửa sổ, độc lập với dự đoán ŷ và với nhãn thật y, có hàm đặc trưng Q_r; ŷ và y đồng dừng với phổ chéo S_{ŷy}.
- **Mệnh đề 6.** E|B(ŷ − y_ref)|² = E|B(ŷ − y)|² + 2 ∫_{|f|≥f_c} Re[(1 − Q_r(f)) S_{ŷy}(f)] df. - **Mệnh đề 6.** E|B(ŷ − y_ref)|² = E|B(ŷ − y)|² + 2 ∫_{|f|≥f_c} Re[(1 − Q_r(f)) S_{ŷy}(f)] df.
- Với sai số đối xứng, 0 ≤ 1 − Q_r ≤ 2, nên reference phạt sự khớp trong băng với nhãn thật. Số hạng thêm phụ thuộc phương pháp, nên có thể đảo thứ hạng hai phương pháp, và không triệt tiêu khi lấy trung bình qua giếng: thêm giếng blind giảm phương sai của phép so sánh, không giảm độ lệch. - Với sai số đối xứng, 0 ≤ 1 − Q_r ≤ 2, nên reference phạt sự khớp trong băng với nhãn thật. Số hạng thêm phụ thuộc phương pháp, nên có thể đảo thứ hạng hai phương pháp, và không triệt tiêu khi lấy trung bình qua giếng: thêm giếng blind giảm phương sai của phép so sánh, không giảm độ lệch.
- **Hệ quả 4.** Với hai phương pháp A và B, gọi G là lợi thế band MSE thật của A và G_r là lợi thế đo với y_ref. Khi đó G_r − G = 2 ∫_{|f|≥f_c} Re[(1 − Q_r)(S_{ŷ_B y} − S_{ŷ_A y})] df. - **Hệ quả 4.** Với hai phương pháp 1 và 2 (bài đổi tên từ A, B ngày 02/11/2026 vì B là toán tử băng), gọi G là lợi thế band MSE thật của phương pháp 1 và G_r là lợi thế đo với y_ref. Khi đó G_r − G = 2 ∫_{|f|≥f_c} Re[(1 − Q_r)(S_{ŷ_2 y} − S_{ŷ_1 y})] df.
- Lấy ŷ_A = Hm và ŷ_B = HPm với các bộ lọc thực 0 ≤ H, P ≤ 1 (A học Oracle, B học tối ưu bị mờ của (a), cả hai bị co bởi cùng hệ số mẫu hữu hạn H). Khi đó G = ∫ H(1 − P)[2 − H(1 + P)] S_m df ≥ 0 và G_r = ∫ H(1 − P)[2Q_r − H(1 + P)] S_m df. - Lấy ŷ_1 = Hm và ŷ_2 = HPm với các bộ lọc thực 0 ≤ H, P ≤ 1 (phương pháp 1 học Oracle, phương pháp 2 học tối ưu bị mờ của (a), cả hai bị co bởi cùng hệ số mẫu hữu hạn H). Khi đó G = ∫ H(1 − P)[2 − H(1 + P)] S_m df ≥ 0 và G_r = ∫ H(1 − P)[2Q_r − H(1 + P)] S_m df.
- Với H = 1 và sai số Gauss trung bình 0 có độ lệch chuẩn σ (tie của nhãn điểm) và σ_r (reference): 2Q_r − 1 − P = 2π²f²(σ² − 2σ_r²) + O(f⁴). Ở bậc dẫn, **lợi thế đo được cùng dấu với lợi thế thật chỉ khi σ_r < σ/√2**. - Với H = 1 và sai số Gauss trung bình 0 có độ lệch chuẩn σ (tie của nhãn điểm) và σ_r (reference): 2Q_r − 1 − P = 2π²f²(σ² − 2σ_r²) + O(f⁴). Vì vậy **lợi thế đo được chỉ có thể cùng dấu với lợi thế thật khi σ_r < σ/√2**. Điều kiện này cần ở mọi bậc, không chỉ bậc dẫn: nếu σ_r ≥ σ/√2 thì 2Q_r − 1 − P ≤ −(1 − e^{−π²σ²f²})² ≤ 0 ở mọi f, nên G_r ≤ 0 (H = 1). Nó không đủ: điểm đổi dấu thật nằm dưới σ/√2 (kiểm độc lập 02/11/2026, docs/plan.md §12 mục 32).
- Co rút nới điều kiện này, vì 2Q_r − H(1 + P) tăng khi H giảm. Nếu B quá sắc, như dưới (b), với ŷ_B = HKm và K ≥ 1, thì G_r − G = 2 ∫ H(K − 1)(1 − Q_r) S_m df ≥ 0: reference phóng đại lợi thế của A. - Co rút nới điều kiện này, vì 2Q_r − H(1 + P) tăng khi H giảm. Nếu phương pháp 2 quá sắc, như dưới (b), với ŷ_2 = HKm và K ≥ 1, thì G_r − G = 2 ∫ H(K − 1)(1 − Q_r) S_m df ≥ 0: reference phóng đại lợi thế của phương pháp 1.
- Độc lập giữa ε_r và dự đoán hợp lý với reference từ checkshot hoặc VSP. Reference tie bằng khớp synthetic–seismic phụ thuộc cùng seismic với dự đoán, và sai số của nó thêm một số hạng hiệp phương sai vào công thức của Mệnh đề 6. - Độc lập giữa ε_r và dự đoán hợp lý với reference từ checkshot hoặc VSP. Reference tie bằng khớp synthetic–seismic phụ thuộc cùng seismic với dự đoán, và sai số của nó thêm một số hạng hiệp phương sai vào công thức của Mệnh đề 6.
**Kiểm bằng mô phỏng (T3, exploratory; bài mục 6.5, Bảng `tab:t3`; `scripts/27_t3_power.py`).** **Kiểm bằng mô phỏng (T3, exploratory; bài mục 6.6 (trước 02/11/2026 là 6.5), Bảng `tab:t3`; `scripts/27_t3_power.py`).**
- Ở ba ô N = 16, tỉ số band RMSE trung vị M2-Sa/đối thủ cắt 1 ở σ_ref = 3,6–4,3 ms, so với σ/√2 = 3,0/4,1/5,1 ms (sai số warp RMS của B3c-R trên giếng train là 4,2/5,8/7,3 ms ở R10/R0/Rm5): cùng thứ tự, lệch không quá 1 ms. - Ở ba ô N = 16, tỉ số band RMSE trung vị M2-Sa/đối thủ cắt 1 ở σ_ref = 3,6–4,3 ms, so với σ/√2 = 3,0/4,1/5,1 ms (sai số warp RMS của B3c-R trên giếng train là 4,2/5,8/7,3 ms ở R10/R0/Rm5): cùng thứ tự, lệch không quá 1 ms. Nội suy tuyến tính cho 3,6/3,8/4,3 ms: dưới σ/√2 ở R0 và Rm5, trên 0,6 ms ở R10; điều đó không mâu thuẫn với Hệ quả 4 vì co rút (H < 1) nới điều kiện và M2-Sa không phải Oracle.
- Với reference chính xác, sign test một phía (α = 0,05) đạt power 0,8 với 5–18 giếng blind ở 5/6 ô (ô R10, N = 4 không đạt vì ICC 0,45). Ở σ_ref = 1 ms, bốn ô cần 11–30 giếng; ở 2 ms chỉ R0 còn trong 40 giếng (23 và 37); từ 3 ms trở lên không ô nào đạt. - Với reference chính xác, sign test một phía (α = 0,05) đạt power 0,8 với 5–18 giếng blind ở 5/6 ô (ô R10, N = 4 không đạt vì ICC 0,45). Ở σ_ref = 1 ms, bốn ô cần 11–30 giếng; ở 2 ms chỉ R0 còn trong 40 giếng (23 và 37); từ 3 ms trở lên không ô nào đạt.
- Luật k-of-n của hai gate field không phải phép kiểm: khi không có khác biệt thật và giếng độc lập, nó vẫn đạt với xác suất 5/16 = 0,31 (n = 4) và 7/64 = 0,11 (n = 6). - Luật k-of-n của hai gate field không phải phép kiểm: khi không có khác biệt thật và giếng độc lập, nó vẫn đạt với xác suất 5/16 = 0,31 (n = 4) và 7/64 = 0,11 (n = 6).

View File

@@ -152,3 +152,85 @@ run_id,parent,name,status,exit_code,start,end,wall_s,wall,device,git,dirty,code_
20261029-012825_p4_train_sensitivity,,p4_train_sensitivity,ok,0,2026-10-29T01:28:25+00:00,2026-10-29T02:21:04+00:00,3159.2,0:52:39,cuda:0,7da6b077b6e3,True,984655c40e2413fc,runlog,.venv/bin/python scripts/24_run_volve.py train --device cuda:0 --workers 8 --arms sensitivity 20261029-012825_p4_train_sensitivity,,p4_train_sensitivity,ok,0,2026-10-29T01:28:25+00:00,2026-10-29T02:21:04+00:00,3159.2,0:52:39,cuda:0,7da6b077b6e3,True,984655c40e2413fc,runlog,.venv/bin/python scripts/24_run_volve.py train --device cuda:0 --workers 8 --arms sensitivity
20261029-022117_p4_summarize_all,,p4_summarize_all,ok,0,2026-10-29T02:21:17+00:00,2026-10-29T02:21:36+00:00,18.7,0:00:19,cpu,7da6b077b6e3,True,984655c40e2413fc,runlog,.venv/bin/python scripts/24_run_volve.py summarize --device cpu --workers 4 --arms all 20261029-022117_p4_summarize_all,,p4_summarize_all,ok,0,2026-10-29T02:21:17+00:00,2026-10-29T02:21:36+00:00,18.7,0:00:19,cpu,7da6b077b6e3,True,984655c40e2413fc,runlog,.venv/bin/python scripts/24_run_volve.py summarize --device cpu --workers 4 --arms all
20261029-040703_p4x_summarize_partial,,p4x_summarize_partial,ok,0,2026-10-29T04:07:03+00:00,2026-10-29T04:07:10+00:00,7.1,0:00:07,,7da6b077b6e3,True,9b97ea3ba76b1136,runlog,/home/jovyan/lamlvh/ML-Porosity/.venv/bin/python exploratory/p4x_volve.py summarize 20261029-040703_p4x_summarize_partial,,p4x_summarize_partial,ok,0,2026-10-29T04:07:03+00:00,2026-10-29T04:07:10+00:00,7.1,0:00:07,,7da6b077b6e3,True,9b97ea3ba76b1136,runlog,/home/jovyan/lamlvh/ML-Porosity/.venv/bin/python exploratory/p4x_volve.py summarize
20261029-124821_t2_particles,,t2_particles,ok,0,2026-10-29T12:48:21+00:00,2026-10-29T12:55:07+00:00,405.9,0:06:46,,0cfe202a8b5a,True,6fc54aafba932674,runlog,/home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/32_t2_mechanism.py --tests iii iv --workers 4
20261029-124821_t2_train,,t2_train,interrupted,-15,2026-10-29T12:48:21+00:00,2026-10-29T12:57:32+00:00,551.2,0:09:11,cuda:0,0cfe202a8b5a,True,6fc54aafba932674,runlog,/home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/32_t2_mechanism.py --tests i ii v --device cuda:0 --workers 4
20261029-125820_t2_train_a,,t2_train_a,ok,0,2026-10-29T12:58:20+00:00,2026-10-29T13:16:13+00:00,1072.1,0:17:52,cuda:0,0cfe202a8b5a,True,d5ffd3022ad63893,runlog,/home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/32_t2_mechanism.py --tests i ii v --device cuda:0 --workers 4 --rids 8 9 10 11
20261029-125820_t2_train_b,,t2_train_b,ok,0,2026-10-29T12:58:20+00:00,2026-10-29T13:23:49+00:00,1528.1,0:25:28,cuda:1,0cfe202a8b5a,True,d5ffd3022ad63893,runlog,/home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/32_t2_mechanism.py --tests i ii v --device cuda:1 --workers 3 --rids 12 13 14 15
20261029-132408_t2_summary,,t2_summary,ok,0,2026-10-29T13:24:08+00:00,2026-10-29T13:26:35+00:00,147.4,0:02:27,,0cfe202a8b5a,True,01ca5e31bfcacc2a,runlog,/home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/32_t2_mechanism.py --tests summary
20261029-132859_bench_dev_smoke_r902,,bench_dev_smoke_r902,ok,0,2026-10-29T13:28:59+00:00,2026-10-29T13:31:37+00:00,157.8,0:02:38,cuda:1,0cfe202a8b5a,True,b988c8d625db1fb0,runlog,.venv/bin/python scripts/34_run_bench.py posterior train --dev --studies S1 --rids 902 --regimes R10 --drift 1 --n-train 4 --seeds 0 --device cuda:1 --workers 1 --gpu-mem-gb 2
20261029-130144_bench_gen_smc_rid902,,bench_gen_smc_rid902,ok,0,2026-10-29T13:01:44+00:00,2026-10-29T13:34:15+00:00,1950.7,0:32:31,cuda:1,0cfe202a8b5a,True,915234d81957318d,runlog,/home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/33_bench_generator_qc.py --rid 902 --skip-qc --smc --device cuda:1 --regimes R10 Rm5 --n-train 4 --particles 1024 --gpu-mem-gb 2
20261029-133329_bench_repro_r8,,bench_repro_r8,ok,0,2026-10-29T13:33:29+00:00,2026-10-29T13:37:18+00:00,228.2,0:03:48,cuda:1,0cfe202a8b5a,True,bb548925ace61986,runlog,.venv/bin/python scripts/34_run_bench.py repro --device cuda:1 --workers 1 --gpu-mem-gb 3
20261029-134258_bench_dev_smoke_s8,,bench_dev_smoke_s8,ok,0,2026-10-29T13:42:58+00:00,2026-10-29T13:43:55+00:00,57.0,0:00:57,cuda:1,0cfe202a8b5a,True,d39fff13e52542d0,runlog,.venv/bin/python scripts/34_run_bench.py train --dev --studies S8 --rids 902 --regimes R10 --n-train 4 --seeds 0 --device cuda:1 --workers 1
20261029-134525_bench_dev_smoke_s34_post,,bench_dev_smoke_s34_post,ok,0,2026-10-29T13:45:25+00:00,2026-10-29T13:48:25+00:00,179.7,0:03:00,cuda:1,0cfe202a8b5a,True,80aee9582b02e6a1,runlog,.venv/bin/python scripts/34_run_bench.py posterior --dev --studies S1 --rids 903 --regimes R10 --drift 1 --n-train 4 --device cuda:1 --workers 1 --gpu-mem-gb 2
20261029-134825_bench_dev_smoke_s34_train,,bench_dev_smoke_s34_train,ok,0,2026-10-29T13:48:25+00:00,2026-10-29T13:49:56+00:00,91.1,0:01:31,cuda:1,0cfe202a8b5a,True,180f5354143361ce,runlog,.venv/bin/python scripts/34_run_bench.py train --dev --studies S3 S4 --rids 903 --regimes R10 --drift 1 --n-train 4 --seeds 0 --device cuda:1 --workers 1
20261029-131331_bench_cal_smc_rid903,,bench_cal_smc_rid903,ok,0,2026-10-29T13:13:31+00:00,2026-10-29T13:51:09+00:00,2257.4,0:37:37,cuda:0,0cfe202a8b5a,True,d4161e1bad992af2,runlog,.venv/bin/python scripts/33_bench_generator_qc.py --rid 903 --skip-qc --smc --device cuda:0 --regimes R10 Rm5 --n-train 4 --particles 1024 --gpu-mem-gb 2 --presets cand_rp_a cand_rp_b cand_rp_c cand_wv_a cand_wv_b cand_wv_c cand_wv_d cand_wv_e cand_dr_h cand_dr_s cand_dr_hs cand_dr_s2
20261029-135351_bench_status,,bench_status,ok,0,2026-10-29T13:53:51+00:00,2026-10-29T13:53:54+00:00,3.0,0:00:03,cuda:0,0cfe202a8b5a,True,b94e242cb0842a56,runlog,.venv/bin/python scripts/34_run_bench.py status --device cuda:0 --workers 4 --threads 2 --gpu-mem-gb 6 --studies S8 --dev
20261029-133932_bench_cal_smc_rid904,,bench_cal_smc_rid904,ok,0,2026-10-29T13:39:32+00:00,2026-10-29T14:04:35+00:00,1503.1,0:25:03,cuda:0,0cfe202a8b5a,True,b589912958c89ef3,runlog,.venv/bin/python scripts/33_bench_generator_qc.py --rid 904 --skip-qc --smc --device cuda:0 --regimes R10 Rm5 --n-train 4 --particles 1024 --gpu-mem-gb 2 --presets rp_L1 rp_L2 wv_L1 wv_L2 wv_Q dr_L1 dr_L2
20261029-133619_bench_cal_smc_rid902b,,bench_cal_smc_rid902b,ok,0,2026-10-29T13:36:19+00:00,2026-10-29T14:05:35+00:00,1755.8,0:29:16,cuda:1,0cfe202a8b5a,True,ab1b54d59886b91e,runlog,.venv/bin/python scripts/33_bench_generator_qc.py --rid 902 --skip-qc --smc --device cuda:1 --regimes R10 Rm5 --n-train 4 --particles 1024 --gpu-mem-gb 2 --presets cand_rp_c cand_rp_d cand_wv_a cand_wv_b cand_wv_d cand_wv_e cand_wv_f cand_wv_g cand_wv_h cand_dr_hs cand_dr_s2
20261029-133933_bench_cal_smc_rid905,,bench_cal_smc_rid905,ok,0,2026-10-29T13:39:33+00:00,2026-10-29T14:06:24+00:00,1611.3,0:26:51,cuda:1,0cfe202a8b5a,True,b589912958c89ef3,runlog,.venv/bin/python scripts/33_bench_generator_qc.py --rid 905 --skip-qc --smc --device cuda:1 --regimes R10 Rm5 --n-train 4 --particles 1024 --gpu-mem-gb 2 --presets rp_L1 rp_L2 wv_L1 wv_L2 wv_Q dr_L1 dr_L2
20261029-133330_bench_dev_budgets_tcn,,bench_dev_budgets_tcn,ok,0,2026-10-29T13:33:30+00:00,2026-10-29T14:37:24+00:00,3833.3,1:03:53,cuda:0,0cfe202a8b5a,True,bb548925ace61986,runlog,.venv/bin/python scripts/34_run_bench.py dev-budgets --device cuda:0 --workers 1 --gpu-mem-gb 4
20261029-143914_bench_lock,,bench_lock,ok,0,2026-10-29T14:39:14+00:00,2026-10-29T14:39:21+00:00,6.9,0:00:07,cuda:0,0cfe202a8b5a,True,0e0956f31f33d3ee,runlog,.venv/bin/python scripts/34_run_bench.py lock --device cuda:0 --workers 4 --threads 2 --gpu-mem-gb 6 --studies S1 S2 S3 S4 S8
20261029-144311_bench_posterior_S2_cuda1,,bench_posterior_S2_cuda1,interrupted,-15,2026-10-29T14:43:11+00:00,2026-10-29T15:26:55+00:00,2624.6,0:43:45,cuda:1,0cfe202a8b5a,True,ba88b1f22934cb8d,runlog,.venv/bin/python scripts/34_run_bench.py posterior --device cuda:1 --workers 3 --threads 2 --gpu-mem-gb 2 --studies S2
20261029-144311_bench_posterior_S1_cuda0,,bench_posterior_S1_cuda0,interrupted,-15,2026-10-29T14:43:11+00:00,2026-10-29T15:26:55+00:00,2624.6,0:43:45,cuda:0,0cfe202a8b5a,True,ba88b1f22934cb8d,runlog,.venv/bin/python scripts/34_run_bench.py posterior --device cuda:0 --workers 3 --threads 2 --gpu-mem-gb 2 --studies S1 --regimes R10 Rm5 R0h
20261029-144311_bench_train_S3_S4_S8_cuda1,,bench_train_S3_S4_S8_cuda1,interrupted,-15,2026-10-29T14:43:11+00:00,2026-10-29T15:26:55+00:00,2624.6,0:43:45,cuda:1,0cfe202a8b5a,True,ba88b1f22934cb8d,runlog,.venv/bin/python scripts/34_run_bench.py train --device cuda:1 --workers 2 --threads 2 --gpu-mem-gb 6 --studies S3 S4 S8
20261029-144311_bench_posterior_S1_cuda1,,bench_posterior_S1_cuda1,interrupted,-15,2026-10-29T14:43:11+00:00,2026-10-29T15:26:56+00:00,2625.2,0:43:45,cuda:1,0cfe202a8b5a,True,ba88b1f22934cb8d,runlog,.venv/bin/python scripts/34_run_bench.py posterior --device cuda:1 --workers 1 --threads 2 --gpu-mem-gb 2 --studies S1 --regimes R0 R10tb
20261029-154110_bench_posterior_S2_cuda0,,bench_posterior_S2_cuda0,interrupted,-1,2026-10-29T15:41:10+00:00,2026-10-29T16:06:44+00:00,1534.2,0:25:34,cuda:0,0cfe202a8b5a,True,ba88b1f22934cb8d,runlog,.venv/bin/python scripts/34_run_bench.py posterior --device cuda:0 --workers 2 --threads 2 --gpu-mem-gb 2 --studies S2
20261029-154110_bench_train_S3_S4_S8_cuda0,,bench_train_S3_S4_S8_cuda0,interrupted,-1,2026-10-29T15:41:10+00:00,2026-10-29T16:07:30+00:00,1580.1,0:26:20,cuda:0,0cfe202a8b5a,True,ba88b1f22934cb8d,runlog,.venv/bin/python scripts/34_run_bench.py train --device cuda:0 --workers 2 --threads 2 --gpu-mem-gb 6 --studies S3 S4 S8
20261029-160659_bench_posterior_S2_cuda1,,bench_posterior_S2_cuda1,ok,0,2026-10-29T16:06:59+00:00,2026-10-29T21:04:21+00:00,17841.6,4:57:22,cuda:1,0cfe202a8b5a,True,ba88b1f22934cb8d,runlog,.venv/bin/python scripts/34_run_bench.py posterior --device cuda:1 --workers 6 --threads 2 --gpu-mem-gb 2 --studies S2
20261029-160659_bench_posterior_S1_cuda0,,bench_posterior_S1_cuda0,ok,0,2026-10-29T16:06:59+00:00,2026-10-29T21:39:32+00:00,19952.6,5:32:33,cuda:0,0cfe202a8b5a,True,ba88b1f22934cb8d,runlog,.venv/bin/python scripts/34_run_bench.py posterior --device cuda:0 --workers 5 --threads 2 --gpu-mem-gb 2 --studies S1 --regimes R10 Rm5 R0
20261029-160659_bench_posterior_S1_cuda1,,bench_posterior_S1_cuda1,interrupted,-15,2026-10-29T16:06:59+00:00,2026-10-29T22:26:15+00:00,22755.5,6:19:16,cuda:1,0cfe202a8b5a,True,ba88b1f22934cb8d,runlog,.venv/bin/python scripts/34_run_bench.py posterior --device cuda:1 --workers 2 --threads 2 --gpu-mem-gb 2 --studies S1 --regimes R0h R10tb
20261029-210421_bench_train_S2_cuda1,,bench_train_S2_cuda1,ok,0,2026-10-29T21:04:21+00:00,2026-10-30T00:12:09+00:00,11268.3,3:07:48,cuda:1,0cfe202a8b5a,True,ba88b1f22934cb8d,runlog,.venv/bin/python scripts/34_run_bench.py train --device cuda:1 --workers 6 --threads 2 --gpu-mem-gb 2 --studies S2
20261029-222635_bench_posterior_S1_cuda1,,bench_posterior_S1_cuda1,interrupted,-15,2026-10-29T22:26:35+00:00,2026-10-30T00:16:37+00:00,6602.4,1:50:02,cuda:1,0cfe202a8b5a,True,ba88b1f22934cb8d,runlog,.venv/bin/python scripts/34_run_bench.py posterior --device cuda:1 --workers 6 --threads 2 --gpu-mem-gb 2 --studies S1 --regimes R0h R10tb
20261030-001657_bench_posterior_S1_cuda1,,bench_posterior_S1_cuda1,ok,0,2026-10-30T00:16:57+00:00,2026-10-30T00:38:49+00:00,1311.6,0:21:52,cuda:1,0cfe202a8b5a,True,ba88b1f22934cb8d,runlog,.venv/bin/python scripts/34_run_bench.py posterior --device cuda:1 --workers 10 --threads 2 --gpu-mem-gb 2 --studies S1 --regimes R0h R10tb
20261029-160738_bench_train_S3_S4_S8_cuda0,,bench_train_S3_S4_S8_cuda0,ok,0,2026-10-29T16:07:38+00:00,2026-10-30T00:58:19+00:00,31840.7,8:50:41,cuda:0,0cfe202a8b5a,True,ba88b1f22934cb8d,runlog,.venv/bin/python scripts/34_run_bench.py train --device cuda:0 --workers 4 --threads 2 --gpu-mem-gb 6 --studies S3 S4 S8
20261030-003849_bench_train_S1_cuda1,,bench_train_S1_cuda1,interrupted,-15,2026-10-30T00:38:49+00:00,2026-10-30T01:01:59+00:00,1390.2,0:23:10,cuda:1,0cfe202a8b5a,True,ba88b1f22934cb8d,runlog,.venv/bin/python scripts/34_run_bench.py train --device cuda:1 --workers 10 --threads 2 --gpu-mem-gb 2 --studies S1 --regimes R0h R10tb
20261029-213932_bench_train_S1_cuda0,,bench_train_S1_cuda0,interrupted,-15,2026-10-29T21:39:32+00:00,2026-10-30T01:02:37+00:00,12185.3,3:23:05,cuda:0,0cfe202a8b5a,True,ba88b1f22934cb8d,runlog,.venv/bin/python scripts/34_run_bench.py train --device cuda:0 --workers 5 --threads 2 --gpu-mem-gb 2 --studies S1 --regimes R10 Rm5 R0
20261030-010257_bench_posterior_S1_cuda0,,bench_posterior_S1_cuda0,ok,0,2026-10-30T01:02:57+00:00,2026-10-30T01:03:12+00:00,14.4,0:00:14,cuda:0,0cfe202a8b5a,True,ba88b1f22934cb8d,runlog,.venv/bin/python scripts/34_run_bench.py posterior --device cuda:0 --workers 14 --threads 2 --gpu-mem-gb 2 --studies S1 --regimes R0h
20261030-010257_bench_posterior_S1_cuda1,,bench_posterior_S1_cuda1,ok,0,2026-10-30T01:02:57+00:00,2026-10-30T01:03:12+00:00,14.4,0:00:14,cuda:1,0cfe202a8b5a,True,ba88b1f22934cb8d,runlog,.venv/bin/python scripts/34_run_bench.py posterior --device cuda:1 --workers 14 --threads 2 --gpu-mem-gb 2 --studies S1 --regimes R10tb
20261030-010257_bench_posterior_S1_cuda0-2,,bench_posterior_S1_cuda0,ok,0,2026-10-30T01:02:57+00:00,2026-10-30T01:03:12+00:00,14.6,0:00:15,cuda:0,0cfe202a8b5a,True,ba88b1f22934cb8d,runlog,.venv/bin/python scripts/34_run_bench.py posterior --device cuda:0 --workers 8 --threads 2 --gpu-mem-gb 2 --studies S1 --regimes R10 Rm5 R0
20261030-010312_bench_train_S1_cuda1,,bench_train_S1_cuda1,ok,0,2026-10-30T01:03:12+00:00,2026-10-30T01:50:38+00:00,2846.3,0:47:26,cuda:1,0cfe202a8b5a,True,ba88b1f22934cb8d,runlog,.venv/bin/python scripts/34_run_bench.py train --device cuda:1 --workers 14 --threads 2 --gpu-mem-gb 2 --studies S1 --regimes R10tb
20261030-010312_bench_train_S1_cuda0,,bench_train_S1_cuda0,interrupted,-15,2026-10-30T01:03:12+00:00,2026-10-30T01:53:00+00:00,2988.2,0:49:48,cuda:0,0cfe202a8b5a,True,ba88b1f22934cb8d,runlog,.venv/bin/python scripts/34_run_bench.py train --device cuda:0 --workers 14 --threads 2 --gpu-mem-gb 2 --studies S1 --regimes R0h
20261030-015319_bench_posterior_S1_cuda1,,bench_posterior_S1_cuda1,ok,0,2026-10-30T01:53:19+00:00,2026-10-30T01:53:31+00:00,12.0,0:00:12,cuda:1,381b5ffb0620,True,ba88b1f22934cb8d,runlog,.venv/bin/python scripts/34_run_bench.py posterior --device cuda:1 --workers 16 --threads 2 --gpu-mem-gb 2 --studies S1 --regimes R0h
20261030-010312_bench_train_S1_cuda0-2,,bench_train_S1_cuda0,ok,0,2026-10-30T01:03:12+00:00,2026-10-30T01:57:20+00:00,3247.9,0:54:08,cuda:0,0cfe202a8b5a,True,ba88b1f22934cb8d,runlog,.venv/bin/python scripts/34_run_bench.py train --device cuda:0 --workers 8 --threads 2 --gpu-mem-gb 2 --studies S1 --regimes R10 Rm5 R0
20261030-015331_bench_train_S1_cuda1,,bench_train_S1_cuda1,interrupted,-15,2026-10-30T01:53:31+00:00,2026-10-30T01:58:21+00:00,289.6,0:04:50,cuda:1,381b5ffb0620,True,ba88b1f22934cb8d,runlog,.venv/bin/python scripts/34_run_bench.py train --device cuda:1 --workers 16 --threads 2 --gpu-mem-gb 2 --studies S1 --regimes R0h
20261030-015840_bench_posterior_S1_cuda1,,bench_posterior_S1_cuda1,ok,0,2026-10-30T01:58:40+00:00,2026-10-30T01:58:53+00:00,13.7,0:00:14,cuda:1,381b5ffb0620,True,ba88b1f22934cb8d,runlog,.venv/bin/python scripts/34_run_bench.py posterior --device cuda:1 --workers 16 --threads 2 --gpu-mem-gb 2 --studies S1 --regimes R0h
20261030-015854_bench_train_S1_cuda1,,bench_train_S1_cuda1,ok,0,2026-10-30T01:58:54+00:00,2026-10-30T02:16:17+00:00,1043.7,0:17:24,cuda:1,381b5ffb0620,True,ba88b1f22934cb8d,runlog,.venv/bin/python scripts/34_run_bench.py train --device cuda:1 --workers 16 --threads 2 --gpu-mem-gb 2 --studies S1 --regimes R0h
20261102-020220_bench_summarize,,bench_summarize,ok,0,2026-11-02T02:02:20+00:00,2026-11-02T02:02:49+00:00,29.4,0:00:29,cuda:0,2e4f618947c4,True,ba88b1f22934cb8d,runlog,.venv/bin/python scripts/34_run_bench.py summarize --device cuda:0 --workers 4 --threads 2 --gpu-mem-gb 6 --studies S1 S2 S3 S4 S8
20261102-020738_bench_verdicts,,bench_verdicts,ok,0,2026-11-02T02:07:38+00:00,2026-11-02T02:07:47+00:00,8.7,0:00:09,,2e4f618947c4,True,f7a25a280cf5e0e6,runlog,/home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/36_bench_verdicts.py
20261102-020804_bench_verdicts,,bench_verdicts,ok,0,2026-11-02T02:08:04+00:00,2026-11-02T02:08:13+00:00,9.0,0:00:09,,2e4f618947c4,True,862a5c2f37ff3586,runlog,/home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/36_bench_verdicts.py
20261102-022806_bench_package_tables,,bench_package_tables,ok,0,2026-11-02T02:28:06+00:00,2026-11-02T02:28:24+00:00,18.4,0:00:18,,2e4f618947c4,True,0ae7d821416ef8af,runlog,/home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/37_bench_package.py tables
20261102-022758_bench_package_generate,,bench_package_generate,ok,0,2026-11-02T02:27:58+00:00,2026-11-02T02:30:19+00:00,140.9,0:02:21,,2e4f618947c4,True,0ae7d821416ef8af,runlog,/home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/37_bench_package.py generate
20261102-023050_bench_package_selftest,,bench_package_selftest,failed,1,2026-11-02T02:30:50+00:00,2026-11-02T02:31:01+00:00,10.3,0:00:10,,2e4f618947c4,True,0ae7d821416ef8af,runlog,/home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/37_bench_package.py selftest
20261102-023112_bench_package_selftest,,bench_package_selftest,ok,0,2026-11-02T02:31:12+00:00,2026-11-02T02:31:25+00:00,12.9,0:00:13,,2e4f618947c4,True,c03b0775b199945d,runlog,/home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/37_bench_package.py selftest
20261102-023145_bench_package_regenerate,,bench_package_regenerate,ok,0,2026-11-02T02:31:45+00:00,2026-11-02T02:33:52+00:00,127.0,0:02:07,,2e4f618947c4,True,c03b0775b199945d,runlog,/home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/37_bench_package.py generate
20261104-042853_bench_summarize,,bench_summarize,failed,1,2026-11-04T04:28:53+00:00,2026-11-04T04:29:28+00:00,35.6,0:00:36,,423a333ae9da,False,bc14c15fd6a3cb25,runlog,/home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/34_run_bench.py summarize
20261104-043002_bench_summarize,,bench_summarize,ok,0,2026-11-04T04:30:02+00:00,2026-11-04T04:30:35+00:00,32.6,0:00:33,,423a333ae9da,True,bc14c15fd6a3cb25,runlog,/home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/34_run_bench.py summarize
20261104-043043_bench_verdicts,,bench_verdicts,ok,0,2026-11-04T04:30:43+00:00,2026-11-04T04:30:52+00:00,9.9,0:00:10,,423a333ae9da,True,bc14c15fd6a3cb25,runlog,/home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/36_bench_verdicts.py
20261104-043106_bench_package_generate,,bench_package_generate,ok,0,2026-11-04T04:31:06+00:00,2026-11-04T04:33:22+00:00,136.3,0:02:16,,423a333ae9da,True,bc14c15fd6a3cb25,runlog,/home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/37_bench_package.py generate
20261104-043322_bench_package_tables,,bench_package_tables,ok,0,2026-11-04T04:33:22+00:00,2026-11-04T04:33:41+00:00,18.9,0:00:19,,423a333ae9da,True,bc14c15fd6a3cb25,runlog,/home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/37_bench_package.py tables
20261104-043341_bench_package_selftest,,bench_package_selftest,ok,0,2026-11-04T04:33:41+00:00,2026-11-04T04:33:57+00:00,15.7,0:00:16,,423a333ae9da,True,bc14c15fd6a3cb25,runlog,/home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/37_bench_package.py selftest
20261104-043403_repro_build,,repro_build,ok,0,2026-11-04T04:34:03+00:00,2026-11-04T04:37:08+00:00,185.0,0:03:05,,423a333ae9da,True,bc14c15fd6a3cb25,runlog,/home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/39_repro_package.py build
20261109-091152_lambda_limit,,lambda_limit,interrupted,-15,2026-11-09T09:11:52+00:00,2026-11-09T10:01:08+00:00,2956.2,0:49:16,cuda:0,df5cb937e850,True,b7df7f480f207561,runlog,/home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/41_lambda_limit.py --stage all --workers 4 --device cuda:0
20261110-040642_lambda_limit_resume,,lambda_limit_resume,ok,0,2026-11-10T04:06:42+00:00,2026-11-10T04:15:58+00:00,556.5,0:09:16,cuda:0,df5cb937e850,True,b7df7f480f207561,runlog,/home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/41_lambda_limit.py --stage all --workers 4 --device cuda:0
20261110-084123_referee_r4_b2,,referee_r4_b2,ok,0,2026-11-10T08:41:23+00:00,2026-11-10T08:41:50+00:00,26.9,0:00:27,,894fbdfc59d9,False,6ac423af8e33664a,runlog,.venv/bin/python scripts/42_referee_r4.py --stage b2
20261110-084208_referee_r4_b2,,referee_r4_b2,ok,0,2026-11-10T08:42:08+00:00,2026-11-10T08:42:20+00:00,12.6,0:00:13,,894fbdfc59d9,True,68ded7f65cca1dd5,runlog,.venv/bin/python scripts/42_referee_r4.py --stage b2
20261110-084224_referee_r4_b1,,referee_r4_b1,ok,0,2026-11-10T08:42:24+00:00,2026-11-10T08:44:28+00:00,123.3,0:02:03,,894fbdfc59d9,True,68ded7f65cca1dd5,runlog,.venv/bin/python scripts/42_referee_r4.py --stage b1
20261110-084440_referee_r4_b3,,referee_r4_b3,ok,0,2026-11-10T08:44:40+00:00,2026-11-10T08:46:15+00:00,95.7,0:01:36,,894fbdfc59d9,True,68ded7f65cca1dd5,runlog,.venv/bin/python scripts/42_referee_r4.py --stage b3 --workers 12
20261110-093701_referee_r5_ci,,referee_r5_ci,failed,1,2026-11-10T09:37:01+00:00,2026-11-10T09:37:10+00:00,9.6,0:00:10,,894fbdfc59d9,True,99ed46a6e76df0bd,runlog,.venv/bin/python scripts/43_referee_r5_ci.py
20261110-093717_referee_r5_ci,,referee_r5_ci,ok,0,2026-11-10T09:37:17+00:00,2026-11-10T09:37:27+00:00,9.8,0:00:10,,894fbdfc59d9,True,dd015c977fb3cc3a,runlog,.venv/bin/python scripts/43_referee_r5_ci.py
20261110-094635_point_tie_arm,,point_tie_arm,ok,0,2026-11-10T09:46:35+00:00,2026-11-10T10:03:59+00:00,1043.8,0:17:24,cuda:0,894fbdfc59d9,True,9fc48760979c2776,runlog,.venv/bin/python scripts/44_point_tie_arm.py --stage all --workers 4 --device cuda:0
20261110-094831_referee_r5_followups,,referee_r5_followups,ok,0,2026-11-10T09:48:31+00:00,2026-11-10T10:04:29+00:00,958.0,0:15:58,,894fbdfc59d9,True,1fdaeff5a40aca2e,runlog,.venv/bin/python scripts/45_referee_r5_followups.py --workers 8
20261110-100757_repro_build_review,,repro_build_review,ok,0,2026-11-10T10:07:57+00:00,2026-11-10T10:11:35+00:00,217.4,0:03:37,,894fbdfc59d9,True,daa99fce97aecf29,runlog,.venv/bin/python scripts/39_repro_package.py build
20261110-101143_repro_verify_review,,repro_verify_review,failed,1,2026-11-10T10:11:43+00:00,2026-11-10T10:12:27+00:00,43.7,0:00:44,,894fbdfc59d9,True,daa99fce97aecf29,runlog,.venv/bin/python scripts/39_repro_package.py verify --only referee_r4_b1 referee_r4_b2 referee_r5_ci referee_r5_f2 lambda_limit_summary point_tie_summary --work outputs/repro/work_review
20261110-101556_repro_verify_review,,repro_verify_review,interrupted,-1,2026-11-10T10:15:56+00:00,2026-11-10T10:18:41+00:00,165.0,0:02:45,,894fbdfc59d9,True,daa99fce97aecf29,runlog,.venv/bin/python scripts/39_repro_package.py verify --work /home/jovyan/lamlvh/ML-Porosity/outputs/repro/work_full
20261110-101921_bench_package_generate_sa,,bench_package_generate_sa,ok,0,2026-11-10T10:19:21+00:00,2026-11-10T10:21:45+00:00,143.4,0:02:23,,894fbdfc59d9,True,d0e78bf7f8eaeb3b,runlog,.venv/bin/python scripts/37_bench_package.py generate --update-manifest
20261110-102154_bench_package_tables_sa,,bench_package_tables_sa,ok,0,2026-11-10T10:21:54+00:00,2026-11-10T10:22:12+00:00,18.1,0:00:18,,894fbdfc59d9,True,d0e78bf7f8eaeb3b,runlog,.venv/bin/python scripts/37_bench_package.py tables
20261110-102213_bench_package_selftest_sa,,bench_package_selftest_sa,ok,0,2026-11-10T10:22:13+00:00,2026-11-10T10:22:26+00:00,13.3,0:00:13,,894fbdfc59d9,True,d0e78bf7f8eaeb3b,runlog,.venv/bin/python scripts/37_bench_package.py selftest
20261110-102332_repro_build_review2,,repro_build_review2,ok,0,2026-11-10T10:23:32+00:00,2026-11-10T10:26:24+00:00,172.6,0:02:53,,894fbdfc59d9,True,d0e78bf7f8eaeb3b,runlog,.venv/bin/python scripts/39_repro_package.py build
20261110-102624_repro_verify_review,,repro_verify_review,ok,0,2026-11-10T10:26:24+00:00,2026-11-10T11:07:40+00:00,2475.5,0:41:16,,894fbdfc59d9,True,d0e78bf7f8eaeb3b,runlog,.venv/bin/python scripts/39_repro_package.py verify --work /home/jovyan/lamlvh/ML-Porosity/outputs/repro/work_full
20261111-102849_r6_cheap,,r6_cheap,failed,1,2026-11-11T10:28:49+00:00,2026-11-11T10:28:53+00:00,3.8,0:00:04,,760dbfea4f27,True,83808667c4f826db,runlog,/home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/48_r6_cheap.py
20261111-102901_r6_cheap,,r6_cheap,ok,0,2026-11-11T10:29:01+00:00,2026-11-11T10:29:20+00:00,18.6,0:00:19,,760dbfea4f27,True,7882eccc64b34c2e,runlog,/home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/48_r6_cheap.py
20261111-102931_r6_cheap,,r6_cheap,ok,0,2026-11-11T10:29:31+00:00,2026-11-11T10:29:48+00:00,16.3,0:00:16,,760dbfea4f27,True,2f3479713b34bd94,runlog,/home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/48_r6_cheap.py
20261111-102740_r6_cputest,,r6_cputest,interrupted,-1,2026-11-11T10:27:40+00:00,2026-11-11T10:33:12+00:00,332.1,0:05:32,cpu,760dbfea4f27,True,e43f32e225b52582,runlog,/home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/14_diag_posterior.py --rids 16 --c 1 --n 4 --seeds 0 --particles 1024 --wavelets estR --device cpu --workers 1 --snr 10 --anchor-density full --out-dir outputs/replication/posterior/R10
20261111-102740_r6_hyper,,r6_hyper,interrupted,-1,2026-11-11T10:27:40+00:00,2026-11-11T10:33:12+00:00,332.1,0:05:32,,760dbfea4f27,True,e43f32e225b52582,runlog,/home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/47_r6_fixed_hyper.py --stage hyper
20261116-024530_bank_size,,bank_size,ok,0,2026-11-16T02:45:30+00:00,2026-11-16T03:48:34+00:00,3784.5,1:03:04,cuda:0,d0d2cd3c82e0,True,8176298c87dcb902,runlog,/home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/49_bank_size.py --stage all --workers 4 --device cuda:0
1 run_id parent name status exit_code start end wall_s wall device git dirty code_sha source cmd
152 20261029-012825_p4_train_sensitivity p4_train_sensitivity ok 0 2026-10-29T01:28:25+00:00 2026-10-29T02:21:04+00:00 3159.2 0:52:39 cuda:0 7da6b077b6e3 True 984655c40e2413fc runlog .venv/bin/python scripts/24_run_volve.py train --device cuda:0 --workers 8 --arms sensitivity
153 20261029-022117_p4_summarize_all p4_summarize_all ok 0 2026-10-29T02:21:17+00:00 2026-10-29T02:21:36+00:00 18.7 0:00:19 cpu 7da6b077b6e3 True 984655c40e2413fc runlog .venv/bin/python scripts/24_run_volve.py summarize --device cpu --workers 4 --arms all
154 20261029-040703_p4x_summarize_partial p4x_summarize_partial ok 0 2026-10-29T04:07:03+00:00 2026-10-29T04:07:10+00:00 7.1 0:00:07 7da6b077b6e3 True 9b97ea3ba76b1136 runlog /home/jovyan/lamlvh/ML-Porosity/.venv/bin/python exploratory/p4x_volve.py summarize
155 20261029-124821_t2_particles t2_particles ok 0 2026-10-29T12:48:21+00:00 2026-10-29T12:55:07+00:00 405.9 0:06:46 0cfe202a8b5a True 6fc54aafba932674 runlog /home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/32_t2_mechanism.py --tests iii iv --workers 4
156 20261029-124821_t2_train t2_train interrupted -15 2026-10-29T12:48:21+00:00 2026-10-29T12:57:32+00:00 551.2 0:09:11 cuda:0 0cfe202a8b5a True 6fc54aafba932674 runlog /home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/32_t2_mechanism.py --tests i ii v --device cuda:0 --workers 4
157 20261029-125820_t2_train_a t2_train_a ok 0 2026-10-29T12:58:20+00:00 2026-10-29T13:16:13+00:00 1072.1 0:17:52 cuda:0 0cfe202a8b5a True d5ffd3022ad63893 runlog /home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/32_t2_mechanism.py --tests i ii v --device cuda:0 --workers 4 --rids 8 9 10 11
158 20261029-125820_t2_train_b t2_train_b ok 0 2026-10-29T12:58:20+00:00 2026-10-29T13:23:49+00:00 1528.1 0:25:28 cuda:1 0cfe202a8b5a True d5ffd3022ad63893 runlog /home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/32_t2_mechanism.py --tests i ii v --device cuda:1 --workers 3 --rids 12 13 14 15
159 20261029-132408_t2_summary t2_summary ok 0 2026-10-29T13:24:08+00:00 2026-10-29T13:26:35+00:00 147.4 0:02:27 0cfe202a8b5a True 01ca5e31bfcacc2a runlog /home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/32_t2_mechanism.py --tests summary
160 20261029-132859_bench_dev_smoke_r902 bench_dev_smoke_r902 ok 0 2026-10-29T13:28:59+00:00 2026-10-29T13:31:37+00:00 157.8 0:02:38 cuda:1 0cfe202a8b5a True b988c8d625db1fb0 runlog .venv/bin/python scripts/34_run_bench.py posterior train --dev --studies S1 --rids 902 --regimes R10 --drift 1 --n-train 4 --seeds 0 --device cuda:1 --workers 1 --gpu-mem-gb 2
161 20261029-130144_bench_gen_smc_rid902 bench_gen_smc_rid902 ok 0 2026-10-29T13:01:44+00:00 2026-10-29T13:34:15+00:00 1950.7 0:32:31 cuda:1 0cfe202a8b5a True 915234d81957318d runlog /home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/33_bench_generator_qc.py --rid 902 --skip-qc --smc --device cuda:1 --regimes R10 Rm5 --n-train 4 --particles 1024 --gpu-mem-gb 2
162 20261029-133329_bench_repro_r8 bench_repro_r8 ok 0 2026-10-29T13:33:29+00:00 2026-10-29T13:37:18+00:00 228.2 0:03:48 cuda:1 0cfe202a8b5a True bb548925ace61986 runlog .venv/bin/python scripts/34_run_bench.py repro --device cuda:1 --workers 1 --gpu-mem-gb 3
163 20261029-134258_bench_dev_smoke_s8 bench_dev_smoke_s8 ok 0 2026-10-29T13:42:58+00:00 2026-10-29T13:43:55+00:00 57.0 0:00:57 cuda:1 0cfe202a8b5a True d39fff13e52542d0 runlog .venv/bin/python scripts/34_run_bench.py train --dev --studies S8 --rids 902 --regimes R10 --n-train 4 --seeds 0 --device cuda:1 --workers 1
164 20261029-134525_bench_dev_smoke_s34_post bench_dev_smoke_s34_post ok 0 2026-10-29T13:45:25+00:00 2026-10-29T13:48:25+00:00 179.7 0:03:00 cuda:1 0cfe202a8b5a True 80aee9582b02e6a1 runlog .venv/bin/python scripts/34_run_bench.py posterior --dev --studies S1 --rids 903 --regimes R10 --drift 1 --n-train 4 --device cuda:1 --workers 1 --gpu-mem-gb 2
165 20261029-134825_bench_dev_smoke_s34_train bench_dev_smoke_s34_train ok 0 2026-10-29T13:48:25+00:00 2026-10-29T13:49:56+00:00 91.1 0:01:31 cuda:1 0cfe202a8b5a True 180f5354143361ce runlog .venv/bin/python scripts/34_run_bench.py train --dev --studies S3 S4 --rids 903 --regimes R10 --drift 1 --n-train 4 --seeds 0 --device cuda:1 --workers 1
166 20261029-131331_bench_cal_smc_rid903 bench_cal_smc_rid903 ok 0 2026-10-29T13:13:31+00:00 2026-10-29T13:51:09+00:00 2257.4 0:37:37 cuda:0 0cfe202a8b5a True d4161e1bad992af2 runlog .venv/bin/python scripts/33_bench_generator_qc.py --rid 903 --skip-qc --smc --device cuda:0 --regimes R10 Rm5 --n-train 4 --particles 1024 --gpu-mem-gb 2 --presets cand_rp_a cand_rp_b cand_rp_c cand_wv_a cand_wv_b cand_wv_c cand_wv_d cand_wv_e cand_dr_h cand_dr_s cand_dr_hs cand_dr_s2
167 20261029-135351_bench_status bench_status ok 0 2026-10-29T13:53:51+00:00 2026-10-29T13:53:54+00:00 3.0 0:00:03 cuda:0 0cfe202a8b5a True b94e242cb0842a56 runlog .venv/bin/python scripts/34_run_bench.py status --device cuda:0 --workers 4 --threads 2 --gpu-mem-gb 6 --studies S8 --dev
168 20261029-133932_bench_cal_smc_rid904 bench_cal_smc_rid904 ok 0 2026-10-29T13:39:32+00:00 2026-10-29T14:04:35+00:00 1503.1 0:25:03 cuda:0 0cfe202a8b5a True b589912958c89ef3 runlog .venv/bin/python scripts/33_bench_generator_qc.py --rid 904 --skip-qc --smc --device cuda:0 --regimes R10 Rm5 --n-train 4 --particles 1024 --gpu-mem-gb 2 --presets rp_L1 rp_L2 wv_L1 wv_L2 wv_Q dr_L1 dr_L2
169 20261029-133619_bench_cal_smc_rid902b bench_cal_smc_rid902b ok 0 2026-10-29T13:36:19+00:00 2026-10-29T14:05:35+00:00 1755.8 0:29:16 cuda:1 0cfe202a8b5a True ab1b54d59886b91e runlog .venv/bin/python scripts/33_bench_generator_qc.py --rid 902 --skip-qc --smc --device cuda:1 --regimes R10 Rm5 --n-train 4 --particles 1024 --gpu-mem-gb 2 --presets cand_rp_c cand_rp_d cand_wv_a cand_wv_b cand_wv_d cand_wv_e cand_wv_f cand_wv_g cand_wv_h cand_dr_hs cand_dr_s2
170 20261029-133933_bench_cal_smc_rid905 bench_cal_smc_rid905 ok 0 2026-10-29T13:39:33+00:00 2026-10-29T14:06:24+00:00 1611.3 0:26:51 cuda:1 0cfe202a8b5a True b589912958c89ef3 runlog .venv/bin/python scripts/33_bench_generator_qc.py --rid 905 --skip-qc --smc --device cuda:1 --regimes R10 Rm5 --n-train 4 --particles 1024 --gpu-mem-gb 2 --presets rp_L1 rp_L2 wv_L1 wv_L2 wv_Q dr_L1 dr_L2
171 20261029-133330_bench_dev_budgets_tcn bench_dev_budgets_tcn ok 0 2026-10-29T13:33:30+00:00 2026-10-29T14:37:24+00:00 3833.3 1:03:53 cuda:0 0cfe202a8b5a True bb548925ace61986 runlog .venv/bin/python scripts/34_run_bench.py dev-budgets --device cuda:0 --workers 1 --gpu-mem-gb 4
172 20261029-143914_bench_lock bench_lock ok 0 2026-10-29T14:39:14+00:00 2026-10-29T14:39:21+00:00 6.9 0:00:07 cuda:0 0cfe202a8b5a True 0e0956f31f33d3ee runlog .venv/bin/python scripts/34_run_bench.py lock --device cuda:0 --workers 4 --threads 2 --gpu-mem-gb 6 --studies S1 S2 S3 S4 S8
173 20261029-144311_bench_posterior_S2_cuda1 bench_posterior_S2_cuda1 interrupted -15 2026-10-29T14:43:11+00:00 2026-10-29T15:26:55+00:00 2624.6 0:43:45 cuda:1 0cfe202a8b5a True ba88b1f22934cb8d runlog .venv/bin/python scripts/34_run_bench.py posterior --device cuda:1 --workers 3 --threads 2 --gpu-mem-gb 2 --studies S2
174 20261029-144311_bench_posterior_S1_cuda0 bench_posterior_S1_cuda0 interrupted -15 2026-10-29T14:43:11+00:00 2026-10-29T15:26:55+00:00 2624.6 0:43:45 cuda:0 0cfe202a8b5a True ba88b1f22934cb8d runlog .venv/bin/python scripts/34_run_bench.py posterior --device cuda:0 --workers 3 --threads 2 --gpu-mem-gb 2 --studies S1 --regimes R10 Rm5 R0h
175 20261029-144311_bench_train_S3_S4_S8_cuda1 bench_train_S3_S4_S8_cuda1 interrupted -15 2026-10-29T14:43:11+00:00 2026-10-29T15:26:55+00:00 2624.6 0:43:45 cuda:1 0cfe202a8b5a True ba88b1f22934cb8d runlog .venv/bin/python scripts/34_run_bench.py train --device cuda:1 --workers 2 --threads 2 --gpu-mem-gb 6 --studies S3 S4 S8
176 20261029-144311_bench_posterior_S1_cuda1 bench_posterior_S1_cuda1 interrupted -15 2026-10-29T14:43:11+00:00 2026-10-29T15:26:56+00:00 2625.2 0:43:45 cuda:1 0cfe202a8b5a True ba88b1f22934cb8d runlog .venv/bin/python scripts/34_run_bench.py posterior --device cuda:1 --workers 1 --threads 2 --gpu-mem-gb 2 --studies S1 --regimes R0 R10tb
177 20261029-154110_bench_posterior_S2_cuda0 bench_posterior_S2_cuda0 interrupted -1 2026-10-29T15:41:10+00:00 2026-10-29T16:06:44+00:00 1534.2 0:25:34 cuda:0 0cfe202a8b5a True ba88b1f22934cb8d runlog .venv/bin/python scripts/34_run_bench.py posterior --device cuda:0 --workers 2 --threads 2 --gpu-mem-gb 2 --studies S2
178 20261029-154110_bench_train_S3_S4_S8_cuda0 bench_train_S3_S4_S8_cuda0 interrupted -1 2026-10-29T15:41:10+00:00 2026-10-29T16:07:30+00:00 1580.1 0:26:20 cuda:0 0cfe202a8b5a True ba88b1f22934cb8d runlog .venv/bin/python scripts/34_run_bench.py train --device cuda:0 --workers 2 --threads 2 --gpu-mem-gb 6 --studies S3 S4 S8
179 20261029-160659_bench_posterior_S2_cuda1 bench_posterior_S2_cuda1 ok 0 2026-10-29T16:06:59+00:00 2026-10-29T21:04:21+00:00 17841.6 4:57:22 cuda:1 0cfe202a8b5a True ba88b1f22934cb8d runlog .venv/bin/python scripts/34_run_bench.py posterior --device cuda:1 --workers 6 --threads 2 --gpu-mem-gb 2 --studies S2
180 20261029-160659_bench_posterior_S1_cuda0 bench_posterior_S1_cuda0 ok 0 2026-10-29T16:06:59+00:00 2026-10-29T21:39:32+00:00 19952.6 5:32:33 cuda:0 0cfe202a8b5a True ba88b1f22934cb8d runlog .venv/bin/python scripts/34_run_bench.py posterior --device cuda:0 --workers 5 --threads 2 --gpu-mem-gb 2 --studies S1 --regimes R10 Rm5 R0
181 20261029-160659_bench_posterior_S1_cuda1 bench_posterior_S1_cuda1 interrupted -15 2026-10-29T16:06:59+00:00 2026-10-29T22:26:15+00:00 22755.5 6:19:16 cuda:1 0cfe202a8b5a True ba88b1f22934cb8d runlog .venv/bin/python scripts/34_run_bench.py posterior --device cuda:1 --workers 2 --threads 2 --gpu-mem-gb 2 --studies S1 --regimes R0h R10tb
182 20261029-210421_bench_train_S2_cuda1 bench_train_S2_cuda1 ok 0 2026-10-29T21:04:21+00:00 2026-10-30T00:12:09+00:00 11268.3 3:07:48 cuda:1 0cfe202a8b5a True ba88b1f22934cb8d runlog .venv/bin/python scripts/34_run_bench.py train --device cuda:1 --workers 6 --threads 2 --gpu-mem-gb 2 --studies S2
183 20261029-222635_bench_posterior_S1_cuda1 bench_posterior_S1_cuda1 interrupted -15 2026-10-29T22:26:35+00:00 2026-10-30T00:16:37+00:00 6602.4 1:50:02 cuda:1 0cfe202a8b5a True ba88b1f22934cb8d runlog .venv/bin/python scripts/34_run_bench.py posterior --device cuda:1 --workers 6 --threads 2 --gpu-mem-gb 2 --studies S1 --regimes R0h R10tb
184 20261030-001657_bench_posterior_S1_cuda1 bench_posterior_S1_cuda1 ok 0 2026-10-30T00:16:57+00:00 2026-10-30T00:38:49+00:00 1311.6 0:21:52 cuda:1 0cfe202a8b5a True ba88b1f22934cb8d runlog .venv/bin/python scripts/34_run_bench.py posterior --device cuda:1 --workers 10 --threads 2 --gpu-mem-gb 2 --studies S1 --regimes R0h R10tb
185 20261029-160738_bench_train_S3_S4_S8_cuda0 bench_train_S3_S4_S8_cuda0 ok 0 2026-10-29T16:07:38+00:00 2026-10-30T00:58:19+00:00 31840.7 8:50:41 cuda:0 0cfe202a8b5a True ba88b1f22934cb8d runlog .venv/bin/python scripts/34_run_bench.py train --device cuda:0 --workers 4 --threads 2 --gpu-mem-gb 6 --studies S3 S4 S8
186 20261030-003849_bench_train_S1_cuda1 bench_train_S1_cuda1 interrupted -15 2026-10-30T00:38:49+00:00 2026-10-30T01:01:59+00:00 1390.2 0:23:10 cuda:1 0cfe202a8b5a True ba88b1f22934cb8d runlog .venv/bin/python scripts/34_run_bench.py train --device cuda:1 --workers 10 --threads 2 --gpu-mem-gb 2 --studies S1 --regimes R0h R10tb
187 20261029-213932_bench_train_S1_cuda0 bench_train_S1_cuda0 interrupted -15 2026-10-29T21:39:32+00:00 2026-10-30T01:02:37+00:00 12185.3 3:23:05 cuda:0 0cfe202a8b5a True ba88b1f22934cb8d runlog .venv/bin/python scripts/34_run_bench.py train --device cuda:0 --workers 5 --threads 2 --gpu-mem-gb 2 --studies S1 --regimes R10 Rm5 R0
188 20261030-010257_bench_posterior_S1_cuda0 bench_posterior_S1_cuda0 ok 0 2026-10-30T01:02:57+00:00 2026-10-30T01:03:12+00:00 14.4 0:00:14 cuda:0 0cfe202a8b5a True ba88b1f22934cb8d runlog .venv/bin/python scripts/34_run_bench.py posterior --device cuda:0 --workers 14 --threads 2 --gpu-mem-gb 2 --studies S1 --regimes R0h
189 20261030-010257_bench_posterior_S1_cuda1 bench_posterior_S1_cuda1 ok 0 2026-10-30T01:02:57+00:00 2026-10-30T01:03:12+00:00 14.4 0:00:14 cuda:1 0cfe202a8b5a True ba88b1f22934cb8d runlog .venv/bin/python scripts/34_run_bench.py posterior --device cuda:1 --workers 14 --threads 2 --gpu-mem-gb 2 --studies S1 --regimes R10tb
190 20261030-010257_bench_posterior_S1_cuda0-2 bench_posterior_S1_cuda0 ok 0 2026-10-30T01:02:57+00:00 2026-10-30T01:03:12+00:00 14.6 0:00:15 cuda:0 0cfe202a8b5a True ba88b1f22934cb8d runlog .venv/bin/python scripts/34_run_bench.py posterior --device cuda:0 --workers 8 --threads 2 --gpu-mem-gb 2 --studies S1 --regimes R10 Rm5 R0
191 20261030-010312_bench_train_S1_cuda1 bench_train_S1_cuda1 ok 0 2026-10-30T01:03:12+00:00 2026-10-30T01:50:38+00:00 2846.3 0:47:26 cuda:1 0cfe202a8b5a True ba88b1f22934cb8d runlog .venv/bin/python scripts/34_run_bench.py train --device cuda:1 --workers 14 --threads 2 --gpu-mem-gb 2 --studies S1 --regimes R10tb
192 20261030-010312_bench_train_S1_cuda0 bench_train_S1_cuda0 interrupted -15 2026-10-30T01:03:12+00:00 2026-10-30T01:53:00+00:00 2988.2 0:49:48 cuda:0 0cfe202a8b5a True ba88b1f22934cb8d runlog .venv/bin/python scripts/34_run_bench.py train --device cuda:0 --workers 14 --threads 2 --gpu-mem-gb 2 --studies S1 --regimes R0h
193 20261030-015319_bench_posterior_S1_cuda1 bench_posterior_S1_cuda1 ok 0 2026-10-30T01:53:19+00:00 2026-10-30T01:53:31+00:00 12.0 0:00:12 cuda:1 381b5ffb0620 True ba88b1f22934cb8d runlog .venv/bin/python scripts/34_run_bench.py posterior --device cuda:1 --workers 16 --threads 2 --gpu-mem-gb 2 --studies S1 --regimes R0h
194 20261030-010312_bench_train_S1_cuda0-2 bench_train_S1_cuda0 ok 0 2026-10-30T01:03:12+00:00 2026-10-30T01:57:20+00:00 3247.9 0:54:08 cuda:0 0cfe202a8b5a True ba88b1f22934cb8d runlog .venv/bin/python scripts/34_run_bench.py train --device cuda:0 --workers 8 --threads 2 --gpu-mem-gb 2 --studies S1 --regimes R10 Rm5 R0
195 20261030-015331_bench_train_S1_cuda1 bench_train_S1_cuda1 interrupted -15 2026-10-30T01:53:31+00:00 2026-10-30T01:58:21+00:00 289.6 0:04:50 cuda:1 381b5ffb0620 True ba88b1f22934cb8d runlog .venv/bin/python scripts/34_run_bench.py train --device cuda:1 --workers 16 --threads 2 --gpu-mem-gb 2 --studies S1 --regimes R0h
196 20261030-015840_bench_posterior_S1_cuda1 bench_posterior_S1_cuda1 ok 0 2026-10-30T01:58:40+00:00 2026-10-30T01:58:53+00:00 13.7 0:00:14 cuda:1 381b5ffb0620 True ba88b1f22934cb8d runlog .venv/bin/python scripts/34_run_bench.py posterior --device cuda:1 --workers 16 --threads 2 --gpu-mem-gb 2 --studies S1 --regimes R0h
197 20261030-015854_bench_train_S1_cuda1 bench_train_S1_cuda1 ok 0 2026-10-30T01:58:54+00:00 2026-10-30T02:16:17+00:00 1043.7 0:17:24 cuda:1 381b5ffb0620 True ba88b1f22934cb8d runlog .venv/bin/python scripts/34_run_bench.py train --device cuda:1 --workers 16 --threads 2 --gpu-mem-gb 2 --studies S1 --regimes R0h
198 20261102-020220_bench_summarize bench_summarize ok 0 2026-11-02T02:02:20+00:00 2026-11-02T02:02:49+00:00 29.4 0:00:29 cuda:0 2e4f618947c4 True ba88b1f22934cb8d runlog .venv/bin/python scripts/34_run_bench.py summarize --device cuda:0 --workers 4 --threads 2 --gpu-mem-gb 6 --studies S1 S2 S3 S4 S8
199 20261102-020738_bench_verdicts bench_verdicts ok 0 2026-11-02T02:07:38+00:00 2026-11-02T02:07:47+00:00 8.7 0:00:09 2e4f618947c4 True f7a25a280cf5e0e6 runlog /home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/36_bench_verdicts.py
200 20261102-020804_bench_verdicts bench_verdicts ok 0 2026-11-02T02:08:04+00:00 2026-11-02T02:08:13+00:00 9.0 0:00:09 2e4f618947c4 True 862a5c2f37ff3586 runlog /home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/36_bench_verdicts.py
201 20261102-022806_bench_package_tables bench_package_tables ok 0 2026-11-02T02:28:06+00:00 2026-11-02T02:28:24+00:00 18.4 0:00:18 2e4f618947c4 True 0ae7d821416ef8af runlog /home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/37_bench_package.py tables
202 20261102-022758_bench_package_generate bench_package_generate ok 0 2026-11-02T02:27:58+00:00 2026-11-02T02:30:19+00:00 140.9 0:02:21 2e4f618947c4 True 0ae7d821416ef8af runlog /home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/37_bench_package.py generate
203 20261102-023050_bench_package_selftest bench_package_selftest failed 1 2026-11-02T02:30:50+00:00 2026-11-02T02:31:01+00:00 10.3 0:00:10 2e4f618947c4 True 0ae7d821416ef8af runlog /home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/37_bench_package.py selftest
204 20261102-023112_bench_package_selftest bench_package_selftest ok 0 2026-11-02T02:31:12+00:00 2026-11-02T02:31:25+00:00 12.9 0:00:13 2e4f618947c4 True c03b0775b199945d runlog /home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/37_bench_package.py selftest
205 20261102-023145_bench_package_regenerate bench_package_regenerate ok 0 2026-11-02T02:31:45+00:00 2026-11-02T02:33:52+00:00 127.0 0:02:07 2e4f618947c4 True c03b0775b199945d runlog /home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/37_bench_package.py generate
206 20261104-042853_bench_summarize bench_summarize failed 1 2026-11-04T04:28:53+00:00 2026-11-04T04:29:28+00:00 35.6 0:00:36 423a333ae9da False bc14c15fd6a3cb25 runlog /home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/34_run_bench.py summarize
207 20261104-043002_bench_summarize bench_summarize ok 0 2026-11-04T04:30:02+00:00 2026-11-04T04:30:35+00:00 32.6 0:00:33 423a333ae9da True bc14c15fd6a3cb25 runlog /home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/34_run_bench.py summarize
208 20261104-043043_bench_verdicts bench_verdicts ok 0 2026-11-04T04:30:43+00:00 2026-11-04T04:30:52+00:00 9.9 0:00:10 423a333ae9da True bc14c15fd6a3cb25 runlog /home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/36_bench_verdicts.py
209 20261104-043106_bench_package_generate bench_package_generate ok 0 2026-11-04T04:31:06+00:00 2026-11-04T04:33:22+00:00 136.3 0:02:16 423a333ae9da True bc14c15fd6a3cb25 runlog /home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/37_bench_package.py generate
210 20261104-043322_bench_package_tables bench_package_tables ok 0 2026-11-04T04:33:22+00:00 2026-11-04T04:33:41+00:00 18.9 0:00:19 423a333ae9da True bc14c15fd6a3cb25 runlog /home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/37_bench_package.py tables
211 20261104-043341_bench_package_selftest bench_package_selftest ok 0 2026-11-04T04:33:41+00:00 2026-11-04T04:33:57+00:00 15.7 0:00:16 423a333ae9da True bc14c15fd6a3cb25 runlog /home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/37_bench_package.py selftest
212 20261104-043403_repro_build repro_build ok 0 2026-11-04T04:34:03+00:00 2026-11-04T04:37:08+00:00 185.0 0:03:05 423a333ae9da True bc14c15fd6a3cb25 runlog /home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/39_repro_package.py build
213 20261109-091152_lambda_limit lambda_limit interrupted -15 2026-11-09T09:11:52+00:00 2026-11-09T10:01:08+00:00 2956.2 0:49:16 cuda:0 df5cb937e850 True b7df7f480f207561 runlog /home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/41_lambda_limit.py --stage all --workers 4 --device cuda:0
214 20261110-040642_lambda_limit_resume lambda_limit_resume ok 0 2026-11-10T04:06:42+00:00 2026-11-10T04:15:58+00:00 556.5 0:09:16 cuda:0 df5cb937e850 True b7df7f480f207561 runlog /home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/41_lambda_limit.py --stage all --workers 4 --device cuda:0
215 20261110-084123_referee_r4_b2 referee_r4_b2 ok 0 2026-11-10T08:41:23+00:00 2026-11-10T08:41:50+00:00 26.9 0:00:27 894fbdfc59d9 False 6ac423af8e33664a runlog .venv/bin/python scripts/42_referee_r4.py --stage b2
216 20261110-084208_referee_r4_b2 referee_r4_b2 ok 0 2026-11-10T08:42:08+00:00 2026-11-10T08:42:20+00:00 12.6 0:00:13 894fbdfc59d9 True 68ded7f65cca1dd5 runlog .venv/bin/python scripts/42_referee_r4.py --stage b2
217 20261110-084224_referee_r4_b1 referee_r4_b1 ok 0 2026-11-10T08:42:24+00:00 2026-11-10T08:44:28+00:00 123.3 0:02:03 894fbdfc59d9 True 68ded7f65cca1dd5 runlog .venv/bin/python scripts/42_referee_r4.py --stage b1
218 20261110-084440_referee_r4_b3 referee_r4_b3 ok 0 2026-11-10T08:44:40+00:00 2026-11-10T08:46:15+00:00 95.7 0:01:36 894fbdfc59d9 True 68ded7f65cca1dd5 runlog .venv/bin/python scripts/42_referee_r4.py --stage b3 --workers 12
219 20261110-093701_referee_r5_ci referee_r5_ci failed 1 2026-11-10T09:37:01+00:00 2026-11-10T09:37:10+00:00 9.6 0:00:10 894fbdfc59d9 True 99ed46a6e76df0bd runlog .venv/bin/python scripts/43_referee_r5_ci.py
220 20261110-093717_referee_r5_ci referee_r5_ci ok 0 2026-11-10T09:37:17+00:00 2026-11-10T09:37:27+00:00 9.8 0:00:10 894fbdfc59d9 True dd015c977fb3cc3a runlog .venv/bin/python scripts/43_referee_r5_ci.py
221 20261110-094635_point_tie_arm point_tie_arm ok 0 2026-11-10T09:46:35+00:00 2026-11-10T10:03:59+00:00 1043.8 0:17:24 cuda:0 894fbdfc59d9 True 9fc48760979c2776 runlog .venv/bin/python scripts/44_point_tie_arm.py --stage all --workers 4 --device cuda:0
222 20261110-094831_referee_r5_followups referee_r5_followups ok 0 2026-11-10T09:48:31+00:00 2026-11-10T10:04:29+00:00 958.0 0:15:58 894fbdfc59d9 True 1fdaeff5a40aca2e runlog .venv/bin/python scripts/45_referee_r5_followups.py --workers 8
223 20261110-100757_repro_build_review repro_build_review ok 0 2026-11-10T10:07:57+00:00 2026-11-10T10:11:35+00:00 217.4 0:03:37 894fbdfc59d9 True daa99fce97aecf29 runlog .venv/bin/python scripts/39_repro_package.py build
224 20261110-101143_repro_verify_review repro_verify_review failed 1 2026-11-10T10:11:43+00:00 2026-11-10T10:12:27+00:00 43.7 0:00:44 894fbdfc59d9 True daa99fce97aecf29 runlog .venv/bin/python scripts/39_repro_package.py verify --only referee_r4_b1 referee_r4_b2 referee_r5_ci referee_r5_f2 lambda_limit_summary point_tie_summary --work outputs/repro/work_review
225 20261110-101556_repro_verify_review repro_verify_review interrupted -1 2026-11-10T10:15:56+00:00 2026-11-10T10:18:41+00:00 165.0 0:02:45 894fbdfc59d9 True daa99fce97aecf29 runlog .venv/bin/python scripts/39_repro_package.py verify --work /home/jovyan/lamlvh/ML-Porosity/outputs/repro/work_full
226 20261110-101921_bench_package_generate_sa bench_package_generate_sa ok 0 2026-11-10T10:19:21+00:00 2026-11-10T10:21:45+00:00 143.4 0:02:23 894fbdfc59d9 True d0e78bf7f8eaeb3b runlog .venv/bin/python scripts/37_bench_package.py generate --update-manifest
227 20261110-102154_bench_package_tables_sa bench_package_tables_sa ok 0 2026-11-10T10:21:54+00:00 2026-11-10T10:22:12+00:00 18.1 0:00:18 894fbdfc59d9 True d0e78bf7f8eaeb3b runlog .venv/bin/python scripts/37_bench_package.py tables
228 20261110-102213_bench_package_selftest_sa bench_package_selftest_sa ok 0 2026-11-10T10:22:13+00:00 2026-11-10T10:22:26+00:00 13.3 0:00:13 894fbdfc59d9 True d0e78bf7f8eaeb3b runlog .venv/bin/python scripts/37_bench_package.py selftest
229 20261110-102332_repro_build_review2 repro_build_review2 ok 0 2026-11-10T10:23:32+00:00 2026-11-10T10:26:24+00:00 172.6 0:02:53 894fbdfc59d9 True d0e78bf7f8eaeb3b runlog .venv/bin/python scripts/39_repro_package.py build
230 20261110-102624_repro_verify_review repro_verify_review ok 0 2026-11-10T10:26:24+00:00 2026-11-10T11:07:40+00:00 2475.5 0:41:16 894fbdfc59d9 True d0e78bf7f8eaeb3b runlog .venv/bin/python scripts/39_repro_package.py verify --work /home/jovyan/lamlvh/ML-Porosity/outputs/repro/work_full
231 20261111-102849_r6_cheap r6_cheap failed 1 2026-11-11T10:28:49+00:00 2026-11-11T10:28:53+00:00 3.8 0:00:04 760dbfea4f27 True 83808667c4f826db runlog /home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/48_r6_cheap.py
232 20261111-102901_r6_cheap r6_cheap ok 0 2026-11-11T10:29:01+00:00 2026-11-11T10:29:20+00:00 18.6 0:00:19 760dbfea4f27 True 7882eccc64b34c2e runlog /home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/48_r6_cheap.py
233 20261111-102931_r6_cheap r6_cheap ok 0 2026-11-11T10:29:31+00:00 2026-11-11T10:29:48+00:00 16.3 0:00:16 760dbfea4f27 True 2f3479713b34bd94 runlog /home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/48_r6_cheap.py
234 20261111-102740_r6_cputest r6_cputest interrupted -1 2026-11-11T10:27:40+00:00 2026-11-11T10:33:12+00:00 332.1 0:05:32 cpu 760dbfea4f27 True e43f32e225b52582 runlog /home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/14_diag_posterior.py --rids 16 --c 1 --n 4 --seeds 0 --particles 1024 --wavelets estR --device cpu --workers 1 --snr 10 --anchor-density full --out-dir outputs/replication/posterior/R10
235 20261111-102740_r6_hyper r6_hyper interrupted -1 2026-11-11T10:27:40+00:00 2026-11-11T10:33:12+00:00 332.1 0:05:32 760dbfea4f27 True e43f32e225b52582 runlog /home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/47_r6_fixed_hyper.py --stage hyper
236 20261116-024530_bank_size bank_size ok 0 2026-11-16T02:45:30+00:00 2026-11-16T03:48:34+00:00 3784.5 1:03:04 cuda:0 d0d2cd3c82e0 True 8176298c87dcb902 runlog /home/jovyan/lamlvh/ML-Porosity/.venv/bin/python scripts/49_bank_size.py --stage all --workers 4 --device cuda:0

View File

@@ -0,0 +1,7 @@
"""protocol_bench (phase P6, level B): registration-aware synthetic benchmark on D2.
Studies (configs/protocol_bench.yaml, `studies:`): S1 grid fill, S2 misspecification axes, S3 anchor-free B4
baselines under the P2r cells, S4 second backbone (TCN), S8 controlled cycle-skip (two-mode) regime. The modules
mirror ml_porosity/volve (freeze/check/lock, fingerprinted resume) and scripts 14/15/18 (SMC posterior, training,
summary) so that the default generator path reproduces protocol_p2r.
"""

View File

@@ -0,0 +1,153 @@
"""Cell enumeration and output paths of protocol_bench.
A cell is one (study, regime, preset, c, N, rid[, Δ]) with its method list, budgets and backbone. Paths are flat and
deterministic. Posterior files follow the protocol_p2r layout (r{rid}_c{c}_n{N}_s{reg_seed}{.csv,_particles.npz,
_phase.json}) so that scripts 15/18-style readers and the P2r reference share one reader.
"""
from __future__ import annotations
import itertools
from dataclasses import dataclass, field
from pathlib import Path
from ml_porosity.paths import outputs_dir
P2R_GRID = {"drift_factors": (0.0, 1.0, 2.0), "n_train": (4, 16)}
@dataclass(frozen=True)
class Cell:
study: str
regime: str
preset: str | None # misspecification preset of configs/d2_synth_bench.yaml (None: nominal)
c: float
n_train: int
rid: int
methods: tuple[str, ...]
backbone: str = "cnngru" # cnngru (bank_train.train_predict, as P2r) | tcn (f3.training.TCNHetero)
posterior: str = "bench" # bench (this protocol's SMC) | p2r (outputs/p2r/posterior) | none
delta_ms: float | None = None # S8 two-mode separation
tags: tuple[str, ...] = field(default_factory=tuple)
@property
def setting(self) -> str:
return self.regime if self.preset in (None, "nominal") else f"{self.regime}__{self.preset}"
@property
def tag(self) -> str:
t = f"r{self.rid}_c{self.c:g}_n{self.n_train}"
if self.delta_ms is not None:
t += f"_d{self.delta_ms:g}"
return t
def suffix(self) -> str:
return "" if self.backbone == "cnngru" else f"__{self.backbone}"
def bench_root(dev: bool = False, repro: bool = False) -> Path:
root = outputs_dir() / "bench"
return root / ("repro" if repro else "dev" if dev else "")
def posterior_dir(cell: Cell, root: Path) -> Path | None:
if cell.posterior == "none":
return None
if cell.posterior == "p2r":
return outputs_dir() / "p2r" / "posterior" / cell.regime
return root / "posterior" / cell.setting # shared by every study that needs the same (regime, preset) posterior
def posterior_paths(cell: Cell, root: Path, reg_seed: int) -> dict[str, Path]:
d = posterior_dir(cell, root)
tag = f"r{cell.rid}_c{cell.c:g}_n{cell.n_train}_s{reg_seed}"
return {"csv": d / f"{tag}.csv", "particles": d / f"{tag}_particles.npz", "phase": d / f"{tag}_phase.json",
"meta": d / f"{tag}.json"}
def train_dir(cell: Cell, root: Path) -> Path:
return root / cell.study.lower() / "train" / cell.setting / "cells"
def train_paths(cell: Cell, root: Path) -> dict[str, Path]:
d = train_dir(cell, root)
stem = cell.tag + cell.suffix()
return {"csv": d / f"{stem}.csv", "npz": d / f"{stem}.npz", "diag": d / f"{stem}_diag.csv", "meta": d / f"{stem}.json"}
# ---------------------------------------------------------------- study → cells
def _rids(p: dict, rids) -> list[int]:
return [int(r) for r in (p["grid"]["realizations"] if rids is None else rids)]
def _grid(s: dict, grid: dict | None) -> tuple[list, list]:
g = grid or {}
return list(g.get("drift_factors") or s.get("drift_factors", [])), list(g.get("n_train") or s["n_train"])
def s1_cells(p: dict, rids=None, regimes=None, grid: dict | None = None) -> list[Cell]:
"""grid: dev-only override {drift_factors, n_train}; with an override the P2r-grid exclusion is lifted."""
s = p["studies"]["S1"]
cs, ns = _grid(s, grid)
cells = []
for reg in (regimes or s["regimes"]):
for c, N in itertools.product(cs, ns):
if grid is None and float(c) in P2R_GRID["drift_factors"] and int(N) in P2R_GRID["n_train"]:
continue # existing protocol_p2r cell: read, not recomputed
for rid in _rids(p, rids):
cells.append(Cell("S1", reg, None, float(c), int(N), rid, tuple(s["methods"])))
return cells
def s2_cells(p: dict, rids=None, regimes=None, presets=None, controls: bool = False, grid: dict | None = None) -> list[Cell]:
s = p["studies"]["S2"]
names = presets or [name for axis in s["presets"].values() for name in axis]
if controls:
names = list(names) + list(s.get("controls", {}).get("presets", []))
cs, ns0 = _grid(s, grid)
cells = []
for reg in (regimes or s["regimes"]):
for name in names:
ns = ns0 if (grid or name not in s.get("controls", {}).get("presets", [])) else s["controls"]["n_train"]
for c, N in itertools.product(cs, ns):
for rid in _rids(p, rids):
cells.append(Cell("S2", reg, name, float(c), int(N), rid, tuple(s["methods"])))
return cells
def s3_cells(p: dict, rids=None, regimes=None, grid: dict | None = None) -> list[Cell]:
s = p["studies"]["S3"]
cs, ns = _grid(s, grid)
post = "bench" if grid is not None else s.get("posterior", "none") # dev override: dev posteriors of the setting
return [Cell("S3", reg, None, float(c), int(N), rid, tuple(s["methods"]), posterior=post)
for reg in (regimes or s["regimes"]) for c, N in itertools.product(cs, ns) for rid in _rids(p, rids)]
def s4_cells(p: dict, rids=None, regimes=None, grid: dict | None = None) -> list[Cell]:
"""Dev override: posterior 'bench' (dev posteriors of the same setting) instead of the P2r particles."""
s = p["studies"]["S4"]
ns = _grid(s, grid)[1]
return [Cell("S4", cell["regime"], None, float(cell["c"]), int(N), rid, tuple(s["methods"]), backbone=s["backbone"],
posterior="bench" if grid is not None else s["posterior"])
for cell in s["cells"] if regimes is None or cell["regime"] in regimes
for N in ns for rid in _rids(p, rids)]
def s8_cells(p: dict, rids=None, regimes=None, grid: dict | None = None) -> list[Cell]:
s = p["studies"]["S8"]
cs, ns = _grid(s, grid)
return [Cell("S8", reg, None, float(c), int(N), rid, tuple(s["methods"]), posterior="none", delta_ms=float(d))
for reg in (regimes or s["regimes"]) for d in s["delta_ms"]
for c, N in itertools.product(cs, ns) for rid in _rids(p, rids)]
STUDIES = {"S1": s1_cells, "S2": s2_cells, "S3": s3_cells, "S4": s4_cells, "S8": s8_cells}
def study_cells(p: dict, study: str, rids=None, regimes=None, **kw) -> list[Cell]:
return STUDIES[study](p, rids=rids, regimes=regimes, **kw)
def needs_posterior(cell: Cell) -> bool:
return cell.posterior == "bench"

View File

@@ -0,0 +1,90 @@
"""Inputs of protocol_bench: generator configuration, horizon grid, warp prior, wavelet, and the registration /
training / metric blocks of protocol_p2 (the same objects scripts 11/14/15 build), plus the realization builder with
misspecification presets and the nominal-fingerprint helper of tests/test_d2_misspec.py."""
from __future__ import annotations
import hashlib
import importlib.util
import json
from dataclasses import dataclass
from functools import lru_cache
import numpy as np
from ml_porosity.benchmark.protocol import generator_config, protocol_p2
from ml_porosity.data.synth_d2 import D2Realization, load_horizon_grid, preset_misspec
from ml_porosity.paths import REPO_ROOT
from ml_porosity.registration.warp_prior import WarpHyper
WELL_FIELDS = ("seis_clean", "noise_unit", "phi_t", "z_g", "z_b", "boundaries_t", "eps_a")
OBS_KEYS = ("seis", "phi_log", "ai_log", "tau_k", "t_k", "b", "g", "t_of_tau_true", "y_true")
FP_DRIFT, FP_SNR_DB, FP_SIGMA_A, FP_DENSITY = (0.0, 1.0, 2.0), 10, 7.0, "full"
@lru_cache(maxsize=None)
def load_script(name: str):
"""scripts/<name> as a module (scripts 11's reg_settings / method_specs / evaluate are the P2r semantics)."""
spec = importlib.util.spec_from_file_location("bench_" + name[:2], REPO_ROOT / "scripts" / name)
mod = importlib.util.module_from_spec(spec)
spec.loader.exec_module(mod)
return mod
@dataclass
class Inputs:
p: dict
cfg: dict
hg: object
prior_hyper: dict
wav: np.ndarray
P2: dict
reg: dict
tcfg: dict
f_c: float
def realization(self, rid: int, preset: str | None) -> D2Realization:
return D2Realization(self.cfg, int(rid), self.hg, WarpHyper(**self.prior_hyper), self.wav,
misspec=preset_misspec(self.cfg, preset))
def regime(self, name: str) -> dict:
return dict(self.cfg["regimes"][name])
@property
def sigma_a(self) -> float:
return float(self.cfg["anchors"]["sigma_a_ms"])
def observe(self, R: D2Realization, c: float, regime: str, N: int) -> tuple[list[dict], list[dict]]:
"""Training observations (first N pool wells, regime anchors) and the 8 test wells (full anchors, same SNR),
exactly as scripts 14/15."""
st = self.regime(regime)
obs = [R.observe(w, c, st["snr_db"], self.sigma_a, st["anchor_density"]) for w in R.pool[:N]]
test = [R.observe(w, c, st["snr_db"], self.sigma_a) for w in R.test]
return obs, test
def load_inputs(p: dict) -> Inputs:
cfg = generator_config(p)
P2 = protocol_p2(p)
hg = load_horizon_grid(cfg["horizons"], REPO_ROOT / cfg["horizon_cache"])
wp = p["inputs"]["warp_prior"]
prior = json.loads((REPO_ROOT / wp["path"]).read_text())["fits"][wp["fit"]]
wav = np.load(REPO_ROOT / p["inputs"]["wavelet"]["path"])[p["inputs"]["wavelet"]["key"]]
run_d2 = load_script("11_run_d2.py")
return Inputs(p, cfg, hg, prior["hyper"], wav, P2, run_d2.reg_settings(P2),
P2["training"]["model"] | P2["training"]["optimizer"], float(P2["metrics"]["bands"]["f_c_hz"]))
def _sha(chunks) -> str:
h = hashlib.sha256()
for a in chunks:
h.update(np.ascontiguousarray(np.asarray(a)).tobytes())
return h.hexdigest()
def fingerprint_realization(R: D2Realization) -> dict:
"""{"wells": {field: sha}, "obs": {key: sha}} as tests/test_d2_misspec.py records them."""
wells = R.test + R.pool[:4]
obs = [R.observe(w, c, FP_SNR_DB, FP_SIGMA_A, FP_DENSITY) for c in FP_DRIFT for w in wells]
return {"wells": {k: _sha(getattr(w, k) for w in R.wells) for k in WELL_FIELDS},
"obs": {k: _sha(o[k] for o in obs) for k in OBS_KEYS}}

View File

@@ -0,0 +1,73 @@
"""S4 TCN budgets on dev realizations (protocol_p2 budget_selection rule applied to the TCN backbone).
Every S4 method is trained with the TCN at every candidate budget (one trajectory per seed) on dev realizations
902–905 at R10, c = 1, N ∈ {4, 16}, seeds 0–1; per method the budget with the smallest mean total RMSE (macro over
test wells → mean over rid × N × seed) is selected. The dev SMC posteriors of those cells are produced by the
ordinary posterior stage (outputs/bench/dev/posterior/R10). Output: outputs/bench/dev/budgets_tcn.json; the chosen
values are copied into protocol_bench.yaml training.budgets_tcn before the lock.
"""
from __future__ import annotations
import dataclasses
import json
from pathlib import Path
import pandas as pd
from ml_porosity.benchmark.cells import Cell, bench_root, posterior_paths, train_paths
from ml_porosity.benchmark.protocol import check_rids, dev_stamp, fingerprint
from ml_porosity.benchmark.runner import cell_from, make_jobs, posterior_worker, run_jobs
from ml_porosity.f3.progress import write_json
DEV_RIDS = (902, 903, 904, 905)
DEV_SEEDS = (0, 1)
def dev_budget_worker(job: dict) -> dict:
import torch
from ml_porosity.benchmark.data import load_inputs
from ml_porosity.benchmark.training import train_cell
torch.set_num_threads(job["threads"])
p, cell, root = job["p"], cell_from(job["cell"]), Path(job["root"])
paths = train_paths(cell, root)
if paths["meta"].exists() and json.loads(paths["meta"].read_text()).get("fingerprint") == job["key"]:
return {"cached": True, "path": str(paths["csv"])}
cand = [int(b) for b in p["training"]["budget_candidates"]]
post = posterior_paths(cell, root, int(p["registration"]["reg_seed"]))
rows, diag, _, meta = train_cell(cell, p, load_inputs(p), job["device"], post, save_preds=False, seeds=job["seeds"],
budget_lists={m.removesuffix("-TCN"): cand for m in cell.methods})
paths["csv"].parent.mkdir(parents=True, exist_ok=True)
pd.DataFrame(diag).to_csv(paths["diag"], index=False)
pd.DataFrame(rows).to_csv(paths["csv"], index=False)
write_json(paths["meta"], meta | {"fingerprint": job["key"], "candidates": cand, "cell": dataclasses.asdict(cell)})
return {"cached": False, "path": str(paths["csv"]), "wall_seconds": meta["wall_seconds"]}
def dev_budgets(p: dict, device: str, workers: int, mem_gb: float, threads: int, rids=None) -> dict:
rids = [int(r) for r in (rids or DEV_RIDS)]
check_rids(rids, p, dev=True)
s4, root, stamp = p["studies"]["S4"], bench_root(dev=True), dev_stamp(p)
cells = [Cell("S4", "R10", None, 1.0, int(N), rid, tuple(s4["methods"]), backbone=s4["backbone"], posterior="bench")
for N in s4["n_train"] for rid in rids]
run_jobs(make_jobs(p, cells, "posterior", stamp, root, device, mem_gb, threads), posterior_worker, workers, root,
"posterior:dev-budgets")
jobs = []
for c in cells:
settings = dict(stage="dev-budgets", setting=c.setting, misspec=None, rid=c.rid, c=c.c, n_train=c.n_train, methods=list(c.methods),
backbone=c.backbone, candidates=list(p["training"]["budget_candidates"]), seeds=list(DEV_SEEDS))
jobs.append(dict(p=p, cell=dataclasses.asdict(c), root=str(root), device=device, mem_gb=mem_gb, threads=threads,
seeds=list(DEV_SEEDS), key=fingerprint(stamp, **settings)))
jobs.sort(key=lambda j: -j["cell"]["n_train"])
run_jobs(jobs, dev_budget_worker, workers, root, "train:dev-budgets")
df = pd.concat([pd.read_csv(train_paths(cell_from(j["cell"]), root)["csv"]) for j in jobs], ignore_index=True)
run = df.groupby(["method", "budget", "rid", "n_train", "seed"])["rmse"].mean().groupby(["method", "budget"]).mean()
chosen = {m.removesuffix("-TCN"): int(run.loc[m].idxmin()) for m in run.index.get_level_values(0).unique()}
table = run.unstack("budget")
out = {"rule": "protocol_p2 budget_selection (lowest mean total RMSE at c = 1 over dev rid × N × seed) applied to the TCN backbone",
"rids": rids, "seeds": list(DEV_SEEDS), "candidates": list(p["training"]["budget_candidates"]), "budgets_tcn": chosen,
"mean_total_rmse": {m: {int(b): float(v) for b, v in r.items()} for m, r in table.iterrows()}}
(root / "budgets_tcn.json").write_text(json.dumps(out, indent=1))
print(table.round(4).to_string())
return out

View File

@@ -0,0 +1,196 @@
"""Protocol loading, locking and realization guards for protocol_bench.
The lock (configs/protocol_bench.lock.json + .sha256) records the protocol text, the code (ml_porosity/**/*.py, the
bench scripts, pyproject.toml), the environment, every hash-listed input, the protocol_p2r artifacts that S2/S4 read,
and the nominal generator fingerprints of two realizations. Main realizations 8–15 are refused unless the lock exists
and matches; dev realizations 900–905 never need the lock; the protocol_p2 realizations 0–7 are always refused.
"""
from __future__ import annotations
import hashlib
import json
from datetime import datetime, timezone
from pathlib import Path
import yaml
from ml_porosity.f3.protocol import digest, environment
from ml_porosity.paths import REPO_ROOT, outputs_dir
__all__ = ["CONFIG", "LOCK", "check_rids", "current_stamp", "dev_stamp", "fingerprint", "freeze", "load_protocol",
"protocol_p2", "protocol_p2r", "generator_config"]
CONFIG = REPO_ROOT / "configs/protocol_bench.yaml"
LOCK = REPO_ROOT / "configs/protocol_bench.lock.json"
SCRIPTS = ("scripts/34_run_bench.py", "scripts/run_bench.sh")
RESULT_DIRS = ("s1", "s2", "s3", "s4", "s8", "summary")
def load_protocol(check_inputs: bool = True) -> dict:
p = yaml.safe_load(CONFIG.read_text(encoding="utf-8"))
if check_inputs:
for k, v in p["inputs"].items():
f = REPO_ROOT / v["path"]
if not f.exists():
raise FileNotFoundError(f"protocol_bench input {k} missing: {v['path']} (sync outputs/ first)")
h = digest(f, text=f.suffix in (".yaml", ".json"))
if v.get("sha256") not in (None, "TBD") and h != v["sha256"]:
raise RuntimeError(f"{v['path']} differs from the hash recorded in protocol_bench ({h[:12]} ≠ {v['sha256'][:12]})")
from ml_porosity.data.synth_d2 import normalize_misspec, preset_misspec
cfg = generator_config(p)
for name, spec in (p.get("calibration", {}).get("chosen") or {}).items():
if normalize_misspec(spec) != normalize_misspec(preset_misspec(cfg, name)):
raise RuntimeError(f"preset {name} in {p['inputs']['d2_config']['path']} differs from calibration.chosen of protocol_bench")
return p
def generator_config(p: dict) -> dict:
return yaml.safe_load((REPO_ROOT / p["inputs"]["d2_config"]["path"]).read_text(encoding="utf-8"))
def protocol_p2(p: dict) -> dict:
"""protocol_p2: source of the registration, training and metric blocks (as scripts 14/15 use it)."""
return yaml.safe_load((REPO_ROOT / p["inputs"]["protocol_p2"]["path"]).read_text(encoding="utf-8"))
def protocol_p2r(p: dict) -> dict:
return yaml.safe_load((REPO_ROOT / p["inputs"]["protocol_p2r"]["path"]).read_text(encoding="utf-8"))
def code_files() -> list[Path]:
paths = sorted((REPO_ROOT / "ml_porosity").rglob("*.py"))
paths += [REPO_ROOT / s for s in SCRIPTS if (REPO_ROOT / s).exists()]
return paths + [REPO_ROOT / "pyproject.toml"]
def source_hash() -> str:
h = hashlib.sha256()
for f in code_files():
h.update(f.relative_to(REPO_ROOT).as_posix().encode() + b"\0")
h.update(f.read_bytes().replace(b"\r\n", b"\n") + b"\0")
return h.hexdigest()
def p2r_reference_files(p: dict) -> list[Path]:
"""protocol_p2r artifacts the benchmark reads: SMC particles and phase of the S4 cells, the per-regime runs.csv
(S1 grid, S2 nominal reference, S3 join) and sigma_post.csv."""
root = outputs_dir() / "p2r"
ref = p["reference"]["p2r"]
files = [root / "summary" / "sigma_post.csv"]
files += [root / "train" / reg / "runs.csv" for reg in ref["regimes"]]
for cell in p["studies"]["S4"]["cells"]:
for N in p["studies"]["S4"]["n_train"]:
for rid in p["grid"]["realizations"]:
tag = f"r{rid}_c{cell['c']:g}_n{N}_s{p['registration']['reg_seed']}"
files += [root / "posterior" / cell["regime"] / f"{tag}_particles.npz",
root / "posterior" / cell["regime"] / f"{tag}_phase.json"]
return files
def portable(path: Path) -> str:
path = path.resolve()
for prefix, base in (("outputs", outputs_dir()), ("repo", REPO_ROOT)):
try:
return f"{prefix}:{path.relative_to(base.resolve()).as_posix()}"
except ValueError:
continue
raise ValueError(f"input outside the repository and outputs roots: {path}")
def nominal_fingerprints(p: dict) -> dict:
"""Recompute the nominal generator fingerprints of the realizations listed in the protocol and compare them with
tests/data/d2_fingerprints.json (recorded before the misspecification parameters were added)."""
from ml_porosity.benchmark.data import fingerprint_realization, load_inputs
inp = load_inputs(p)
stored = json.loads((REPO_ROOT / p["inputs"]["fingerprints"]["path"]).read_text(encoding="utf-8"))
out = {}
for rid in p["reference"]["fingerprint_rids"]:
fp = fingerprint_realization(inp.realization(rid, None))
ref = stored["realizations"][str(rid)]
ok = all(ref[block].get(k) == v for block, d in fp.items() for k, v in d.items() if k in ref[block])
out[str(rid)] = {"match": bool(ok), "sha256_of_fingerprint": hashlib.sha256(json.dumps(fp, sort_keys=True).encode()).hexdigest()}
if not ok:
raise RuntimeError(f"nominal generator fingerprint of realization {rid} differs from tests/data/d2_fingerprints.json")
return out
def current_stamp(p: dict | None = None, with_fingerprints: bool = True) -> dict:
p = load_protocol() if p is None else p
inputs = {k: REPO_ROOT / v["path"] for k, v in p["inputs"].items()}
refs = p2r_reference_files(p)
missing = [f for f in list(inputs.values()) + refs if not f.exists()]
if missing:
raise FileNotFoundError(f"protocol_bench inputs missing (sync outputs/ first): {[str(f) for f in missing[:5]]}"
f"{' ...' if len(missing) > 5 else ''}")
stamp = {"protocol_sha256": digest(CONFIG, True), "code_sha256": source_hash(), "environment": environment(),
"inputs": {portable(f): digest(f, f.suffix in (".yaml", ".json")) for f in inputs.values()},
"p2r_reference": {portable(f): digest(f, f.suffix == ".json") for f in refs}}
if with_fingerprints:
stamp["nominal_fingerprints"] = nominal_fingerprints(p)
return stamp
def freeze(check: bool = False) -> dict:
"""Return the lock; create it if absent and check is False. Any difference from an existing lock is an error."""
p = load_protocol()
stamp = current_stamp(p)
if LOCK.exists():
old = json.loads(LOCK.read_text(encoding="utf-8"))
for k, v in stamp.items():
if old[k] != v:
raise RuntimeError(f"protocol_bench lock mismatch: {k}. Preserve results and create a new protocol version.")
return old
if check:
raise RuntimeError("protocol_bench is not locked. Run the lock stage before any main-grid run.")
if any((outputs_dir() / "bench" / d).exists() for d in RESULT_DIRS):
raise RuntimeError("Refusing a first lock after protocol_bench results already exist.")
if any(v.get("sha256") in (None, "TBD") for v in p["inputs"].values()):
raise RuntimeError("protocol_bench.yaml has an input without a recorded sha256 (TBD): fill it before locking.")
if p.get("status", "").upper().startswith("DRAFT"):
raise RuntimeError("protocol_bench.yaml still says DRAFT: set status to LOCKED (with the date) before locking.")
stamp |= {"locked_utc": datetime.now(timezone.utc).isoformat(),
"canonical_text": "UTF-8, CRLF normalized to LF for code, protocol and text inputs; binary inputs exact",
"studies": sorted(p["studies"]), "realizations": p["grid"]["realizations"]}
LOCK.write_text(json.dumps(stamp, indent=2), encoding="utf-8")
CONFIG.with_suffix(".sha256").write_text(stamp["protocol_sha256"] + " configs/protocol_bench.yaml\n", encoding="utf-8")
return stamp
def dev_stamp(p: dict) -> dict:
"""Resume key for dev and repro runs: the nominal generator (configuration without the preset block) and the
registration block only; the misspecification preset enters the job settings as its normalised dict. Code and
protocol edits during dev therefore do not invalidate the cache (dev outputs are never results)."""
cfg = {k: v for k, v in generator_config(p).items() if k != "misspec_presets"}
return {"dev": True, "generator_nominal_sha256": hashlib.sha256(json.dumps(cfg, sort_keys=True, default=str).encode()).hexdigest(),
"registration": p["registration"]}
def fingerprint(stamp: dict, **settings) -> str:
return hashlib.sha256(json.dumps({"lock": stamp, **settings}, sort_keys=True).encode()).hexdigest()
def check_rids(rids, p: dict, dev: bool, repro: bool = False) -> None:
"""Main realizations only under the lock; dev realizations only with dev=True; protocol_p2 realizations never;
no mixing. repro: the single reproduction cell (reproduction.rid) is allowed without the lock."""
rids = sorted(set(int(r) for r in rids))
p2 = protocol_p2(p)["grid"]
if bad := sorted(set(rids) & set(p2["realizations"])):
raise SystemExit(f"realizations {bad} belong to the protocol_p2 main grid and are never used by protocol_bench")
main, devs = set(p["grid"]["realizations"]), set(p["grid"]["dev_realizations"])
if set(rids) & main and set(rids) & devs:
raise SystemExit("do not mix main-grid and dev realizations in one run")
if unknown := sorted(set(rids) - main - devs):
raise SystemExit(f"realizations {unknown} are neither main-grid nor dev realizations of protocol_bench")
if dev:
if set(rids) & main:
raise SystemExit("--dev runs use dev realizations 900–905 only")
return
if repro:
if rids != [int(p["reproduction"]["rid"])]:
raise SystemExit("the reproduction stage runs the single cell of protocol_bench reproduction:")
return
if set(rids) & devs:
raise SystemExit("dev realizations require --dev (outputs go to outputs/bench/dev)")
freeze(check=True)

View File

@@ -0,0 +1,111 @@
"""SMC tie posterior of one cell: the computation of scripts/14_diag_posterior.py run_job restricted to the arm
protocol_p2r used (statistical wavelet with the re-estimated phase, "estR"), with the same random streams
(anchor samples [k, i, 13], phase fit [k, 19], SMC [k, i, 17]) and the same γ checkpoints (g_old, g_acf, g_one), so
that the default generator reproduces the protocol_p2r particles. Only the γ = 1/κ (g_acf) particles are stored.
"""
from __future__ import annotations
import json
import time
from pathlib import Path
import numpy as np
import pandas as pd
OLD = ["B3b", "B3c", "B3d", "M1", "M2"]
CHECKPOINTS = ("g_old", "g_acf", "g_one")
def posterior_cell(R, inp, obs: list[dict], c: float, N: int, regime: dict, reg_seed: int, smc_seed: int,
particles: int, device: str, mem_gb: float, paths: dict[str, Path], save=("estR/g_acf",),
checkpoints=CHECKPOINTS, extra_meta: dict | None = None, phase_kw: dict | None = None) -> pd.DataFrame:
from ml_porosity.data.wavelet import statistical_wavelet
from ml_porosity.registration.pipeline import register
from ml_porosity.registration.sampler import sample_warps
from ml_porosity.registration.smc import TiePosterior, gamma_acf, phase_basis, phase_wavelet, residual_kappa
from ml_porosity.registration.tie_likelihood import synth_for_warps
from ml_porosity.registration.ties import tie_b3b, tie_b3c, warp_errors
from ml_porosity.registration.warp_prior import WarpHyper
reg, cfg = dict(inp.reg), inp.cfg
k = smc_seed
mm = (R.t_ext >= R.t_main[0]) & (R.t_ext <= R.t_main[-1])
ncc = lambda a, b: float(np.corrcoef(a[mm], b[mm])[0, 1])
if device == "cpu":
from ml_porosity.registration.smc import smc_fit_phase, smc_tie_posterior
wrap = lambda T: T
else:
import torch
from ml_porosity.registration.smc_torch import TiePosteriorTorch, smc_fit_phase, smc_tie_posterior
dev = torch.device(device)
if dev.type == "cuda": # shared GPU: exceeding the cap makes this job OOM rather than encroach on others
total = torch.cuda.get_device_properties(dev).total_memory
torch.cuda.set_per_process_memory_fraction(min(1.0, mem_gb * 2**30 / total), dev)
wrap = lambda T: TiePosteriorTorch(T, device)
t_all = time.time()
out = register(R, obs, reg, reg_seed)
h = WarpHyper(**out["hyper"])
seis = [o["seis"][o["seis"].shape[0] // 2].astype(float) for o in obs]
B = phase_basis(statistical_wavelet(np.stack(seis), R.dt, reg["wavelet_ms"]), int(round(R.dt / cfg["fine_dt_ms"])))
Ts, Z0s = [], []
for i, o in enumerate(obs):
smp = sample_warps(R.grid, h, o["tau_k"], o["t_k"], particles, reg["g_max"], np.random.default_rng([k, i, 13]))
Ts.append(wrap(TiePosterior(R.grid, h, o["tau_k"], o["t_k"], reg["g_max"], R.tau_fine, o["ai_log"], R.t_fine,
R.t_ext, phase_wavelet(B, out["phase"]), seis[i], (R.t_main[0], R.t_main[-1]))))
Z0s.append(Ts[-1].z(smp["u"]))
t0 = time.time()
phase_r, ph = smc_fit_phase(Ts, Z0s, B, out["phase"], [k, 19], **(phase_kw or {}))
key = dict(rid=R.rid, c=c, n_train=N, seed=reg_seed, smc_seed=k, particles=particles, snr_db=regime["snr_db"],
anchor_density=regime["anchor_density"], sigma_a_reg=reg["sigma_a_ms"], phase=out["phase"],
phase_R=phase_r, phase_n=len(ph["phases"]), phase_edge=ph["edge"], phase_time_s=time.time() - t0)
wavelets = {"estR": phase_wavelet(B, phase_r)}
rows, saved = [], {}
for i, o in enumerate(obs):
d = out["diag"][i]
for m in OLD:
e = {kk.removeprefix(f"{m}_"): v for kk, v in d.items() if kk.startswith(f"{m}_warp")}
rows.append(key | {"well": o["name"], "method": m, "wavelet": "est",
"gamma": d["gamma"] if m == "M2" else np.nan} | e)
ut = np.concatenate([[o["b"]], o["g"]])[None]
t_b3b = tie_b3b(o["tau_k"], o["t_k"], R.tau_fine)
for wn, wf in wavelets.items():
syn_b = synth_for_warps(R.tau_fine, o["ai_log"], t_b3b, R.t_fine, R.t_ext, wf)[0]
t3c = tie_b3c(t_b3b, R.tau_fine, syn_b, seis[i], R.t_ext, R.dt)
rows.append(key | {"well": o["name"], "method": "B3c", "wavelet": wn}
| warp_errors(t3c[None], R.tau_fine, o["t_of_tau_true"], R.t_main))
T = Ts[i].with_wavelet(wf)
_, l0 = T.parts(Z0s[i])
cks_all = {"g_old": d["gamma"], "g_acf": gamma_acf(T, Z0s[i], l0), "g_one": 1.0}
cks = {n: cks_all[n] for n in checkpoints}
t0, T.n_eval = time.time(), 0
res = smc_tie_posterior(T, Z0s[i], cks.values(), np.random.default_rng([k, i, 17]))
sg = pd.DataFrame(res["stages"])
info = {"well": o["name"], "wavelet": wn, "kappa0": 1.0 / cks_all["g_acf"], "ll_true": float(T.loglik(ut)[0]),
"ll_anchor_max": float(l0.max()), "n_stages": len(sg), "n_eval": T.n_eval,
"time_s": time.time() - t0, "shrink_mean": float(sg["shrink"].mean()),
"jump_z_min": float(sg["jump_z"].min()), "r_true": ncc(T.synth(ut)[0], seis[i])}
for name, gk in cks.items():
U = T.u(res["Z"][float(gk)])
Tf = R.grid.t_of_tau(U[:, 0], U[:, 1:], tau=R.tau_fine)
e = warp_errors(Tf, R.tau_fine, o["t_of_tau_true"], R.t_main)
syn_m = T.synth(U.mean(0)[None])[0]
rows.append(key | info | {"method": f"SMC_{name}", "gamma": gk, "logZ": res["logZ"][float(gk)],
"ll_max": float(res["ll"][float(gk)].max()),
"ll_mean": float(res["ll"][float(gk)].mean()),
"kappa_post": residual_kappa(syn_m, seis[i]), "r_post": ncc(syn_m, seis[i])} | e)
if f"{wn}/{name}" in save:
saved[f"{o['name']}/{wn}/{name}"] = U.astype(np.float32)
paths["phase"].parent.mkdir(parents=True, exist_ok=True)
paths["phase"].write_text(json.dumps({"phase0": out["phase"], "phase_R": phase_r} | ph))
tmp = paths["particles"].with_suffix(".tmp.npz")
np.savez_compressed(tmp, **saved)
tmp.replace(paths["particles"])
df = pd.DataFrame(rows)
df.to_csv(paths["csv"], index=False)
meta = {"wall_seconds": time.time() - t_all, "device": device, "particles": particles, "phase0": out["phase"],
"phase_R": phase_r, "misspec_active": R.misspec_active, "monotone_repairs": R.misspec_info["monotone_repairs"],
"hyper": out["hyper"], "lam": out["lam"], "tau_c": out["tau_c"], "checkpoints": list(checkpoints),
"saved": sorted(saved)} | (extra_meta or {})
return df, meta

View File

@@ -0,0 +1,74 @@
"""P2r reproduction check: compare the reproduction cell of protocol_bench (outputs/bench/repro) with the stored
protocol_p2r artifacts. The P2r guard hashes no code, so this comparison is the evidence that the runner's default
path (generator, registration, SMC, label banks, training) is the one that produced outputs/p2r."""
from __future__ import annotations
import json
from pathlib import Path
import numpy as np
import pandas as pd
from ml_porosity.benchmark.cells import Cell, bench_root, posterior_paths, train_paths
from ml_porosity.f3.progress import write_json
from ml_porosity.paths import outputs_dir
def _max_abs(a, b) -> float:
a, b = np.asarray(a, float), np.asarray(b, float)
return float(np.nanmax(np.abs(a - b))) if a.shape == b.shape else float("inf")
def compare(p: dict) -> dict:
rp = p["reproduction"]
cell = Cell("S1", rp["regime"], None, float(rp["c"]), int(rp["n_train"]), int(rp["rid"]), tuple(rp["methods"]))
root = bench_root(repro=True)
reg_seed = int(p["registration"]["reg_seed"])
new, ref = posterior_paths(cell, root, reg_seed), {}
tag = f"r{cell.rid}_c{cell.c:g}_n{cell.n_train}_s{reg_seed}"
p2r = outputs_dir() / "p2r"
ref = {"csv": p2r / "posterior" / cell.regime / f"{tag}.csv", "particles": p2r / "posterior" / cell.regime / f"{tag}_particles.npz",
"phase": p2r / "posterior" / cell.regime / f"{tag}_phase.json",
"train_csv": p2r / "train" / cell.regime / "cells" / f"{cell.tag}.csv", "train_npz": p2r / "train" / cell.regime / "cells" / f"{cell.tag}.npz",
"train_diag": p2r / "train" / cell.regime / "cells" / f"{cell.tag}_diag.csv"}
out = {"cell": {"regime": cell.regime, "rid": cell.rid, "c": cell.c, "n_train": cell.n_train}, "posterior": {}, "train": {}}
# posterior: phase, particles, warp diagnostics
pn, pr = json.loads(new["phase"].read_text()), json.loads(ref["phase"].read_text())
out["posterior"]["phase0"] = {"new": pn["phase0"], "p2r": pr["phase0"], "equal": pn["phase0"] == pr["phase0"]}
out["posterior"]["phase_R"] = {"new": pn["phase_R"], "p2r": pr["phase_R"], "abs_diff_deg": abs(pn["phase_R"] - pr["phase_R"])}
out["posterior"]["logZ_max_abs_diff"] = _max_abs(pn["logZ"], pr["logZ"]) if np.shape(pn["logZ"]) == np.shape(pr["logZ"]) else "shape differs"
with np.load(new["particles"]) as zn, np.load(ref["particles"]) as zr:
keys = sorted(k for k in zn.files if k in zr.files)
out["posterior"]["particle_keys_compared"] = keys
diffs = {k: _max_abs(zn[k], zr[k]) for k in keys}
out["posterior"]["particles_max_abs_diff"] = diffs
out["posterior"]["particles_bitwise"] = all(np.array_equal(zn[k], zr[k]) for k in keys)
out["posterior"]["warp_mean_max_abs_diff_ms"] = {k: _max_abs(zn[k].mean(0), zr[k].mean(0)) for k in keys}
dn, dr = pd.read_csv(new["csv"]), pd.read_csv(ref["csv"])
m = dn.merge(dr, on=["well", "method", "wavelet"], suffixes=("_new", "_p2r"))
cols = ["warp_rmse_ms", "warp_cov90", "warp_width90_ms", "logZ", "kappa_post", "r_post"]
out["posterior"]["csv_max_abs_diff"] = {c: _max_abs(m[f"{c}_new"], m[f"{c}_p2r"]) for c in cols if f"{c}_new" in m}
out["posterior"]["n_stages"] = {"new": dn[dn.method == "SMC_g_acf"].n_stages.tolist(), "p2r": dr[dr.method == "SMC_g_acf"].n_stages.tolist()}
# training: per (method, seed, test well) metrics and predictions
tn, tr = pd.read_csv(train_paths(cell, root)["csv"]), pd.read_csv(ref["train_csv"])
keys = ["method", "seed", "budget", "test_well"]
mt = tn.merge(tr, on=keys, suffixes=("_new", "_p2r"))
out["train"]["rows_compared"] = int(len(mt))
for c in ("band_rmse", "rmse", "band_pcc", "nll", "coverage_90"):
out["train"][f"{c}_max_abs_diff"] = _max_abs(mt[f"{c}_new"], mt[f"{c}_p2r"])
per_m = {m_: _max_abs(g[f"band_rmse_new"], g[f"band_rmse_p2r"]) for m_, g in mt.groupby("method")}
out["train"]["band_rmse_max_abs_diff_per_method"] = per_m
cm = mt.groupby("method")[["band_rmse_new", "band_rmse_p2r"]].mean()
out["train"]["cell_mean_band_rmse"] = {m_: {"new": float(r.band_rmse_new), "p2r": float(r.band_rmse_p2r)} for m_, r in cm.iterrows()}
with np.load(train_paths(cell, root)["npz"]) as zn, np.load(ref["train_npz"]) as zr:
ks = sorted(k for k in zn.files if k in zr.files and k.endswith("/mu"))
out["train"]["pred_mu_max_abs_diff_pu"] = {k: _max_abs(zn[k], zr[k]) for k in ks}
out["train"]["pred_bitwise"] = all(np.array_equal(zn[k], zr[k]) for k in ks)
out["train"]["y_true_bitwise"] = bool(np.array_equal(zn["y_true"], zr["y_true"]))
gn, gr = pd.read_csv(train_paths(cell, root)["diag"]), pd.read_csv(ref["train_diag"])
g = gn.merge(gr, on="well", suffixes=("_new", "_p2r"))
out["train"]["diag_max_abs_diff"] = {c: _max_abs(g[f"{c}_new"], g[f"{c}_p2r"]) for c in ("B3c-R_warp_rmse_ms", "B3d-Sa_warp_rmse_ms", "lam", "phase_R")}
out["train"]["M2-Sa_n_valid_equal"] = bool((g["M2-Sa_n_valid_new"] == g["M2-Sa_n_valid_p2r"]).all())
write_json(root / "comparison.json", out)
return out

View File

@@ -0,0 +1,233 @@
"""Resumable stages of protocol_bench: posterior (SMC), train, with fingerprinted completion markers.
Completion marker of a job: its `.json` sidecar carrying the resume fingerprint (lock stamp + cell settings) and the
SHA-256 of every artifact. A job whose sidecar matches is skipped; a sidecar with a different fingerprint or a
mismatched artifact raises (use a new output root), as in ml_porosity/volve/runner.py. Dev runs (realizations
900–905) write under outputs/bench/dev with a protocol-and-generator-only fingerprint; the reproduction cell writes
under outputs/bench/repro. Neither is a result.
"""
from __future__ import annotations
import dataclasses
import json
import os
import time
from concurrent.futures import FIRST_COMPLETED, ProcessPoolExecutor, wait
from datetime import datetime
from multiprocessing import get_context
from pathlib import Path
import numpy as np
import pandas as pd
from ml_porosity.benchmark.cells import (Cell, bench_root, needs_posterior, posterior_dir, posterior_paths,
study_cells, train_paths)
from ml_porosity.benchmark.protocol import check_rids, dev_stamp, digest, fingerprint, freeze, generator_config
from ml_porosity.data.synth_d2 import normalize_misspec, preset_misspec
from ml_porosity.f3.progress import write_json
def _threads(n: int) -> None:
for k in ("OMP_NUM_THREADS", "MKL_NUM_THREADS", "OPENBLAS_NUM_THREADS", "NUMEXPR_NUM_THREADS", "NUMBA_NUM_THREADS"):
os.environ.setdefault(k, str(n))
def cell_from(d: dict) -> Cell:
d = dict(d)
d["methods"], d["tags"] = tuple(d["methods"]), tuple(d.get("tags", ()))
return Cell(**d)
def reusable(meta: Path, key: str, artifacts: list[Path]) -> bool:
if not meta.exists():
return False
stored = json.loads(meta.read_text(encoding="utf-8"))
if stored.get("fingerprint") != key:
raise RuntimeError(f"resume fingerprint mismatch: {meta}. Use a new output root (or a new protocol version).")
for a in artifacts:
if not a.exists() or digest(a) != stored.get("artifact_sha256", {}).get(a.name):
raise RuntimeError(f"missing or mismatched completed artifact: {a}")
return True
def sidecar(meta_path: Path, key: str, artifacts: list[Path], extra: dict) -> None:
write_json(meta_path, extra | {"fingerprint": key, "artifact_sha256": {a.name: digest(a) for a in artifacts},
"finished": datetime.now().astimezone().isoformat(timespec="seconds")})
# ---------------------------------------------------------------- workers (importable, spawn context)
def posterior_worker(job: dict) -> dict:
import torch
from ml_porosity.benchmark.data import load_inputs
from ml_porosity.benchmark.registration import posterior_cell
torch.set_num_threads(job["threads"])
p, cell, root = job["p"], cell_from(job["cell"]), Path(job["root"])
reg_seed = int(p["registration"]["reg_seed"])
paths = posterior_paths(cell, root, reg_seed)
arts = [paths["csv"], paths["particles"], paths["phase"]]
if reusable(paths["meta"], job["key"], arts):
return {"cached": True, "path": str(paths["csv"])}
inp = load_inputs(p)
R = inp.realization(cell.rid, cell.preset)
obs, _ = inp.observe(R, cell.c, cell.regime, cell.n_train)
smc = p["registration"]["smc"]
_, meta = posterior_cell(R, inp, obs, cell.c, cell.n_train, inp.regime(cell.regime), reg_seed,
int(smc["smc_seed"]), int(smc["particles"]), job["device"], job["mem_gb"], paths,
checkpoints=tuple(smc["checkpoints"]), extra_meta={"cell": dataclasses.asdict(cell)},
phase_kw={k: smc[f"phase_{k}"] for k in ("step", "half_width", "max_extra") if f"phase_{k}" in smc})
sidecar(paths["meta"], job["key"], arts, meta)
return {"cached": False, "path": str(paths["csv"]), "wall_seconds": meta["wall_seconds"]}
def training_worker(job: dict) -> dict:
import torch
from ml_porosity.benchmark.data import load_inputs
from ml_porosity.benchmark.training import train_cell
torch.set_num_threads(job["threads"])
p, cell, root = job["p"], cell_from(job["cell"]), Path(job["root"])
paths = train_paths(cell, root)
arts = [paths["csv"], paths["npz"], paths["diag"]]
if reusable(paths["meta"], job["key"], arts):
return {"cached": True, "path": str(paths["csv"])}
post = posterior_paths(cell, root, int(p["registration"]["reg_seed"])) if cell.posterior != "none" else None
if post is not None and not post["particles"].exists():
raise FileNotFoundError(f"{cell.tag}: posterior not available at {post['particles']}")
inp = load_inputs(p)
rows, diag, preds, meta = train_cell(cell, p, inp, job["device"], post, save_preds=True, seeds=job.get("seeds"))
paths["csv"].parent.mkdir(parents=True, exist_ok=True)
tmp = paths["npz"].with_suffix(".tmp.npz")
np.savez_compressed(tmp, **preds)
tmp.replace(paths["npz"])
pd.DataFrame(diag).to_csv(paths["diag"], index=False)
pd.DataFrame(rows).to_csv(paths["csv"], index=False)
sidecar(paths["meta"], job["key"], arts, meta | {"cell": dataclasses.asdict(cell)})
return {"cached": False, "path": str(paths["csv"]), "wall_seconds": meta["wall_seconds"]}
# ---------------------------------------------------------------- pools
def progress(root: Path, name: str, **values) -> None:
path = root / "progress.json"
for attempt in range(10):
try:
old = json.loads(path.read_text(encoding="utf-8")) if path.exists() else {}
old[name] = old.get(name, {}) | values | {"updated": datetime.now().astimezone().isoformat(timespec="seconds")}
write_json(path, old)
return
except (PermissionError, json.JSONDecodeError):
time.sleep(0.25 * (attempt + 1))
def run_jobs(jobs: list[dict], fn, workers: int, root: Path, name: str) -> list[dict]:
if not jobs:
print(f"{name}: nothing to do", flush=True)
return []
started, results = time.perf_counter(), []
progress(root, name, status="running", completed=0, total=len(jobs), error=None)
with ProcessPoolExecutor(max_workers=workers, mp_context=get_context("spawn")) as pool:
futures = {pool.submit(fn, job): job for job in jobs}
pending = set(futures)
while pending:
done, pending = wait(pending, timeout=30, return_when=FIRST_COMPLETED)
for fut in done:
try:
result = fut.result()
except Exception as exc:
for other in pending:
other.cancel()
progress(root, name, status="failed; pending jobs cancelled", error=f"{futures[fut]['cell']['study']} "
f"{futures[fut]['cell']['regime']} {futures[fut]['cell']['rid']}: {exc}")
raise
results.append(result)
fresh = sum(not r.get("cached") for r in results)
elapsed = time.perf_counter() - started
eta = elapsed / fresh * (len(jobs) - len(results)) if fresh else None
progress(root, name, completed=len(results), cached=len(results) - fresh, elapsed_seconds=elapsed, eta_seconds=eta)
print(f"[{name} {len(results)}/{len(jobs)}] {'cached ' if result.get('cached') else ''}{result['path']}"
f"{'' if result.get('cached') else f' ({result.get('wall_seconds', 0):.0f} s)'} "
f"elapsed {elapsed:.0f} s{'' if eta is None else f', eta {eta:.0f} s'}", flush=True)
progress(root, name, status="done", eta_seconds=0)
return results
# ---------------------------------------------------------------- planning
def plan(p: dict, studies: list[str], rids=None, regimes=None, presets=None, controls: bool = False,
grid: dict | None = None) -> list[Cell]:
cells = []
for s in studies:
kw = {"presets": presets, "controls": controls} if s == "S2" else {}
cells += study_cells(p, s, rids=rids, regimes=regimes, grid=grid, **kw)
return cells
def stamp_for(p: dict, mode: str) -> dict:
if mode == "dev":
return dev_stamp(p)
if mode == "repro":
return dev_stamp(p) | {"repro": True}
return freeze(check=True)
def make_jobs(p: dict, cells: list[Cell], stage: str, stamp: dict, root: Path, device: str, workers_mem_gb: float,
threads: int, seeds=None) -> list[dict]:
jobs, seen = [], set()
cfg = generator_config(p)
for cell in cells:
misspec = normalize_misspec(preset_misspec(cfg, cell.preset))
if stage == "posterior":
if not needs_posterior(cell):
continue
ident = (cell.study, cell.setting, cell.rid, cell.c, cell.n_train)
settings = dict(stage="posterior", setting=cell.setting, regime=cell.regime, preset=cell.preset, misspec=misspec,
rid=cell.rid, c=cell.c, n_train=cell.n_train, reg_seed=p["registration"]["reg_seed"],
smc=p["registration"]["smc"])
else:
ident = (cell.study, cell.setting, cell.tag, cell.backbone)
settings = dict(stage="train", study=cell.study, setting=cell.setting, regime=cell.regime, preset=cell.preset,
misspec=misspec, rid=cell.rid, c=cell.c, n_train=cell.n_train, methods=list(cell.methods), backbone=cell.backbone,
delta_ms=cell.delta_ms, posterior=cell.posterior, seeds=list(p["grid"]["seeds"] if seeds is None else seeds),
budgets={m: p["training"]["budgets"].get(m.removesuffix("-TCN")) for m in cell.methods},
equal_budget_arm=p["training"].get("equal_budget_arm"))
if ident in seen:
continue
seen.add(ident)
jobs.append(dict(p=p, cell=dataclasses.asdict(cell), root=str(root), device=device, mem_gb=workers_mem_gb,
threads=threads, seeds=seeds, key=fingerprint(stamp, **settings)))
# largest N first keeps the wall-clock tail short (as scripts 14/15)
jobs.sort(key=lambda j: (-j["cell"]["n_train"], j["cell"]["rid"]))
return jobs
def run(stage: str, p: dict, studies: list[str], device: str, workers: int, mem_gb: float, threads: int = 2,
mode: str = "main", rids=None, regimes=None, presets=None, controls: bool = False, seeds=None,
root: Path | None = None, grid: dict | None = None) -> list[dict]:
"""stage: posterior | train. mode: main (locked), dev (outputs/bench/dev), repro (outputs/bench/repro).
grid / seeds: dev-only overrides of the (c, N) lists and the network seeds."""
_threads(threads)
if (grid or seeds) and mode != "dev":
raise SystemExit("--drift / --n-train / --seeds are dev-only overrides")
if mode == "repro":
rp = p["reproduction"]
rids, regimes = [rp["rid"]], [rp["regime"]]
cells = [Cell("S1", rp["regime"], None, float(rp["c"]), int(rp["n_train"]), int(rp["rid"]), tuple(rp["methods"]))]
else:
cells = plan(p, studies, rids=rids, regimes=regimes, presets=presets, controls=controls, grid=grid)
check_rids([c.rid for c in cells] or (rids or []), p, dev=(mode == "dev"), repro=(mode == "repro"))
stamp = stamp_for(p, mode)
root = root or bench_root(dev=(mode == "dev"), repro=(mode == "repro"))
root.mkdir(parents=True, exist_ok=True)
jobs = make_jobs(p, cells, stage, stamp, root, device, mem_gb, threads, seeds)
name = f"{stage}:{'+'.join(studies) if mode != 'repro' else 'repro'}:{mode}"
print(f"{name}: {len(jobs)} jobs, {workers} workers, device {device}, root {root}", flush=True)
fn = posterior_worker if stage == "posterior" else training_worker
return run_jobs(jobs, fn, workers, root, name)
def status(root: Path) -> str:
path = root / "progress.json"
return path.read_text(encoding="utf-8") if path.exists() else "protocol_bench has not started."

View File

@@ -0,0 +1,539 @@
"""Pre-declared analyses of protocol_bench (hypotheses block of configs/protocol_bench.yaml), applied as written.
Rules are those of protocol_p2 / protocol_p2r through scripts/13 (gate_gb, boot) and scripts/18 (pair_cell). Runs of
the P2r cells come from outputs/p2r (reference, read-only). Everything is reported regardless of direction; a
hypothesis of kind `claim` gets a pass/fail, `descriptive` items get tables only.
→ <root>/summary/: s1_cells.csv, s1_h2a.csv, s1_families.csv, s1_additivity.csv, s2_cells.csv, s2_smc.csv, s2_h2a.csv,
s2_degradation.csv, s3_h2a.csv, s3_table.csv, s4_cells.csv, s4_h2a.csv, s8_cells.csv, s8_transfer.csv, verdict.json,
summary.md
"""
from __future__ import annotations
import json
import math
from pathlib import Path
import numpy as np
import pandas as pd
from ml_porosity.benchmark.cells import Cell, bench_root, study_cells, train_paths
from ml_porosity.benchmark.data import load_script
from ml_porosity.paths import REPO_ROOT, outputs_dir
sp13 = load_script("13_summarize_p2.py")
METRICS = sp13.METRICS
Z90 = 3.29
NFFT = 256
POINT_TIES = ["B3b", "B3c", "B3c-R"]
# ---------------------------------------------------------------- loading
def _runs_from_cells(files: list[Path], budgets: dict) -> tuple[pd.DataFrame, pd.DataFrame]:
if not files:
return pd.DataFrame(), pd.DataFrame()
df = pd.concat([pd.read_csv(f) for f in files], ignore_index=True)
df = df[df["budget"] == df["method"].map(lambda m: budgets.get(m, np.nan))]
by = ["study", "regime", "preset", "delta_ms", "rid", "c", "n_train", "method", "seed"]
by = [b for b in by if b in df.columns]
run = df.groupby(by, as_index=False, dropna=False)[METRICS].mean()
return df, run
def study_budgets(p: dict, study: str, arm: int | None = None) -> dict:
"""Registered budgets per method (TCN names for S4); arm: the equal-budget arm instead (every method at `arm`)."""
b = dict(p["training"]["budgets"])
if p["studies"][study].get("backbone", "cnngru") != "cnngru":
alt = p["training"].get("budgets_tcn") or {}
b = {f"{m}-TCN": int(alt.get(m, v)) for m, v in b.items()}
if arm:
b = {m: int(arm) for m in b}
return b
def load_study(p: dict, root: Path, study: str, arm: int | None = None) -> tuple[pd.DataFrame, pd.DataFrame, pd.DataFrame]:
"""(rows, runs, diag) of every completed cell of a study under root at the registered budgets (arm=None) or at
the equal-budget arm."""
d = root / study.lower() / "train"
files = sorted(f for f in d.glob("*/cells/*.csv") if not f.name.endswith("_diag.csv")) if d.exists() else []
rows, run = _runs_from_cells(files, study_budgets(p, study, arm))
diag = pd.concat([pd.read_csv(f.with_name(f.stem + "_diag.csv")) for f in files], ignore_index=True) if files else pd.DataFrame()
return rows, run, diag
USE_P2R = True # set to False by summarize(dev=True): a dev summary must never read main-grid results
def p2r_runs(p: dict) -> pd.DataFrame:
root = REPO_ROOT / p["reference"]["p2r"]["root"]
parts = []
if not USE_P2R:
return pd.DataFrame()
for reg in p["reference"]["p2r"]["regimes"]:
f = root / "train" / reg / "runs.csv"
if f.exists():
parts.append(pd.read_csv(f).assign(regime=reg, preset="nominal", study="P2r"))
return pd.concat(parts, ignore_index=True) if parts else pd.DataFrame()
def sigma_post_table(dirs: dict[str, Path]) -> pd.DataFrame:
"""σ_post and SMC diagnostics per (setting, c, N) from posterior CSVs (SMC_g_acf, estR), mean over wells then rids."""
rows = []
for setting, d in dirs.items():
files = sorted(d.glob("r*_s*.csv")) if d.exists() else []
if not files:
continue
df = pd.concat([pd.read_csv(f) for f in files], ignore_index=True)
s = df[(df.method == "SMC_g_acf") & (df.wavelet == "estR")]
per = s.groupby(["c", "n_train", "rid"]).agg(width90=("warp_width90_ms", "mean"), warp_rmse_ms=("warp_rmse_ms", "mean"),
warp_cov90=("warp_cov90", "mean"), kappa_post=("kappa_post", "mean"),
r_post=("r_post", "mean"), phase_R=("phase_R", "first"), phase0=("phase", "first"))
per["sigma_post_ms"] = per.width90 / Z90
per["overconfidence"] = per.warp_rmse_ms / per.sigma_post_ms
g = per.groupby(["c", "n_train"]).agg(sigma_post_ms=("sigma_post_ms", "mean"), warp_rmse_ms=("warp_rmse_ms", "mean"),
warp_cov90=("warp_cov90", "mean"), overconfidence=("overconfidence", "mean"),
kappa_post=("kappa_post", "mean"), r_post=("r_post", "mean"),
phase_R_mean=("phase_R", "mean"), phase_R_abs_mean=("phase_R", lambda x: float(np.mean(np.abs(x)))),
n_rid=("sigma_post_ms", "size")).reset_index()
rows.append(g.assign(setting=setting))
return pd.concat(rows, ignore_index=True) if rows else pd.DataFrame()
# ---------------------------------------------------------------- rules
def h2a_cells(run: pd.DataFrame, cand: str, comp: list[str], rng, n_boot: int) -> pd.DataFrame:
"""protocol_p2 cell rule with `cand` in the role of M2 against the best of `comp` (scripts/13 gate_gb)."""
r = run[run.method.isin(comp) | (run.method == cand)].replace({"method": {cand: "M2"}})
if r.empty or "M2" not in set(r.method) or not (set(r.method) & set(comp)):
return pd.DataFrame()
if any(m.endswith("-TCN") for m in comp): # gate_gb reads 'B3b' by name: drop the backbone suffix locally
r = r.assign(method=r.method.str.replace("-TCN", "", regex=False))
comp = [m.removesuffix("-TCN") for m in comp]
grid = {"n_train": sorted(r.n_train.unique().tolist()), "drift_factors": sorted(r.c.unique().tolist()),
"realistic_drift": 1, "realizations": sorted(r.rid.unique().tolist()), "seeds": sorted(r.seed.unique().tolist())}
cells, _ = sp13.gate_gb(r, {"grid": grid, "gates": {"G-B": {"competitors": comp}}}, n_boot, rng)
return cells
def pair(run: pd.DataFrame, a: str, b: str, rng, n_boot: int) -> dict:
"""Ratio mean(a)/mean(b) of band RMSE with CI over realizations and the 'better' rule (scripts/18 pair_cell)."""
x = run[run.method == a].set_index(["rid", "seed"])["band_rmse"]
y = run[run.method == b].set_index(["rid", "seed"])["band_rmse"].reindex(x.index)
ok = y.notna()
x, y = x[ok], y[ok]
if len(x) == 0:
return {}
d = x - y
ds, dr = d.groupby("seed").mean(), d.groupby("rid").mean()
lo, hi = sp13.boot(x.groupby("rid").mean().to_numpy(), y.groupby("rid").mean().to_numpy(), n_boot, rng)
return {"ratio": float(x.mean() / y.mean()), "ratio_lo": lo, "ratio_hi": hi, "seeds_better": int((ds < 0).sum()),
"rids_better": int((dr < 0).sum()), "n_seed": len(ds), "n_rid": len(dr),
"better": bool((ds < 0).sum() >= math.ceil(sp13.SEED_FRAC * len(ds) - 1e-9) and (dr < 0).sum() > len(dr) / 2)}
def perm_spearman(x, y, groups, rng, n_perm: int) -> tuple[float, float]:
"""Spearman ρ(x, y) and one-sided permutation p (ρ ≤ observed) permuting y within groups."""
from scipy.stats import spearmanr
x, y, groups = np.asarray(x, float), np.asarray(y, float), np.asarray(groups)
if len(x) < 3:
return float("nan"), float("nan")
rho = spearmanr(x, y).statistic
idx = {g: np.flatnonzero(groups == g) for g in np.unique(groups)}
cnt = 0
for _ in range(n_perm):
yp = y.copy()
for ii in idx.values():
yp[ii] = y[rng.permutation(ii)]
cnt += spearmanr(x, yp).statistic <= rho
return float(rho), float(cnt / n_perm)
# ---------------------------------------------------------------- S1
def s1(p: dict, root: Path, rng, n_boot: int, n_perm: int) -> tuple[dict, dict]:
_, run_new, _ = load_study(p, root, "S1")
run = pd.concat([p2r_runs(p), run_new], ignore_index=True) if len(run_new) else p2r_runs(p)
if run.empty:
return {}, {"available": False}
sp = sigma_post_table({reg: root / "posterior" / reg for reg in p["studies"]["S1"]["regimes"]})
sp_ref = REPO_ROOT / p["reference"]["p2r"]["root"] / "summary" / "sigma_post.csv"
if sp_ref.exists() and USE_P2R:
ref = pd.read_csv(sp_ref).rename(columns={"setting": "regime"})
ref = ref[ref.regime.isin(p["studies"]["S1"]["regimes"])][["regime", "c", "n_train", "sigma_post_ms", "warp_rmse_ms", "warp_cov90"]]
sp = pd.concat([sp.rename(columns={"setting": "regime"}), ref.assign(source="p2r")], ignore_index=True) if len(sp) else ref.assign(source="p2r")
else:
sp = sp.rename(columns={"setting": "regime"})
tables, verdict = {}, {}
# phase-diagram cells: per (regime, c, N) band RMSE per method, ratios with CI
cells = []
for (reg, c, N), g in run.groupby(["regime", "c", "n_train"]):
mean = g.groupby("method")["band_rmse"].mean()
row = {"regime": reg, "c": c, "n_train": N, "n_rid": g.rid.nunique(), "n_seed": g.seed.nunique()} | {f"band_rmse_{m}": v for m, v in mean.items()}
if "M2-Sa" in mean and "B3d-Sa" in mean:
row |= {f"m2_pm_{k}": v for k, v in pair(g, "M2-Sa", "B3d-Sa", rng, n_boot).items()}
pt = [m for m in POINT_TIES if m in mean.index]
if pt and "B3d-Sa" in mean:
best = mean.loc[pt].idxmin()
row |= {"best_point_tie": best} | {f"pm_best_{k}": v for k, v in pair(g, "B3d-Sa", best, rng, n_boot).items()}
cells.append(row)
cells = pd.DataFrame(cells).merge(sp[["regime", "c", "n_train", "sigma_post_ms"]].drop_duplicates(["regime", "c", "n_train"]),
on=["regime", "c", "n_train"], how="left")
tables["s1_cells"] = cells
# H2a rule at every (regime, c, N) (S1-H1: R10, c = 1.5, both N)
h2a = []
for reg, g in run.groupby("regime"):
t = h2a_cells(g, "B3d-Sa", POINT_TIES, rng, n_boot)
if len(t):
h2a.append(t.assign(regime=reg))
h2a = pd.concat(h2a, ignore_index=True) if h2a else pd.DataFrame()
tables["s1_h2a"] = h2a
if len(h2a):
t = h2a[(h2a.regime == "R10") & (h2a.c == 1.5)]
verdict["S1-H1"] = {"cells": {int(r.n_train): bool(r.cell_pass) for r in t.itertuples()},
"ratios": {int(r.n_train): [r.ratio, r.ratio_lo, r.ratio_hi] for r in t.itertuples()},
"pass": bool(t.cell_pass.all()) if len(t) == 2 else None,
"complete": bool(len(t) == 2 and (t.n_rid == len(p["grid"]["realizations"])).all())}
# S1-H2: families with σ_post(N = 16) ≥ 1.5 ms; r(N) decreasing in N
wide16 = cells[(cells.n_train == 16) & (cells.sigma_post_ms >= 1.5)][["regime", "c"]]
fam = cells.merge(wide16, on=["regime", "c"]).dropna(subset=["m2_pm_ratio"])
fam["family"] = fam.regime + "_c" + fam.c.map(lambda v: f"{v:g}")
tables["s1_families"] = fam[["family", "regime", "c", "n_train", "sigma_post_ms", "m2_pm_ratio", "m2_pm_ratio_lo", "m2_pm_ratio_hi", "m2_pm_better"]]
if len(fam):
r16 = fam[fam.n_train == 16].set_index("family").m2_pm_ratio
r2 = fam[fam.n_train == 2].set_index("family").m2_pm_ratio
both = r16.index.intersection(r2.index)
sign = int((r16[both] < r2[both]).sum())
rho, pval = perm_spearman(np.log2(fam.n_train), fam.m2_pm_ratio, fam.family, rng, n_perm)
a = bool(len(both) > 0 and sign >= math.ceil(2 / 3 * len(both) - 1e-9))
b = bool(rho < 0 and pval < 0.05)
verdict["S1-H2"] = {"families": sorted(fam.family.unique()), "families_with_N2_and_N16": int(len(both)), "r16_below_r2": sign,
"a_sign": a, "spearman_rho": rho, "perm_p_one_sided": pval, "b_dose": b,
"pass": (a and b) if len(both) > 0 and fam.n_train.nunique() >= 3 else None}
# S1-D additivity: band_rmse²(B3d-Sa) = band_rmse²(Oracle) + β σ_post² per regime
add = []
for reg, g in cells.dropna(subset=["sigma_post_ms"]).groupby("regime"):
if "band_rmse_B3d-Sa" not in g or "band_rmse_Oracle" not in g:
continue
y = g["band_rmse_B3d-Sa"] ** 2 - g["band_rmse_Oracle"] ** 2
x = g["sigma_post_ms"] ** 2
if len(g) < 3 or x.var() == 0:
continue
beta = float((x * y).sum() / (x * x).sum())
resid = y - beta * x
add.append({"regime": reg, "n_cells": len(g), "beta_pu2_per_ms2": beta,
"r2": float(1 - (resid ** 2).sum() / ((y - y.mean()) ** 2).sum()) if (y - y.mean()).abs().sum() > 0 else float("nan")})
tables["s1_additivity"] = pd.DataFrame(add)
return tables, verdict
# ---------------------------------------------------------------- S2
def s2(p: dict, root: Path, rng, n_boot: int) -> tuple[dict, dict]:
_, run, diag = load_study(p, root, "S2")
if run.empty:
return {}, {"available": False}
s = p["studies"]["S2"]
axes = {name: axis for axis, names in s["presets"].items() for name in names}
levels = {name: i + 1 for names in s["presets"].values() for i, name in enumerate(names)}
settings = {f"{reg}__{name}": root / "posterior" / f"{reg}__{name}" for reg in s["regimes"] for name in list(axes) + list(s.get("controls", {}).get("presets", []))}
smc = sigma_post_table(settings)
if len(smc):
smc["regime"] = smc.setting.str.split("__").str[0]
smc["preset"] = smc.setting.str.split("__").str[1]
smc["axis"] = smc.preset.map(lambda n: axes.get(n, "control"))
smc["level"] = smc.preset.map(lambda n: levels.get(n, 0))
tables = {"s2_smc": smc}
ref = p2r_runs(p)
cells, h2a_rows, verdict = [], [], {"S2-H1": {"per_axis": {}}, "S2-H2": {"pairs": {}}}
for (reg, name), g in run.groupby(["regime", "preset"]):
h = h2a_cells(g, "B3d-Sa", POINT_TIES, rng, n_boot)
if len(h):
h2a_rows.append(h.assign(regime=reg, preset=name, axis=axes.get(name, "control"), level=levels.get(name, 0)))
ratios = {}
for N, gN in g.groupby("n_train"):
mean = gN.groupby("method")["band_rmse"].mean()
row = {"regime": reg, "preset": name, "axis": axes.get(name, "control"), "level": levels.get(name, 0), "c": 1.0, "n_train": N,
"n_rid": gN.rid.nunique(), "n_seed": gN.seed.nunique()} | {f"band_rmse_{m}": v for m, v in mean.items()}
pr = pair(gN, "M2-Sa", "B3d-Sa", rng, n_boot)
row |= {f"m2_pm_{k}": v for k, v in pr.items()}
ratios[N] = pr.get("ratio", np.nan)
if "Ctl-GP" in mean.index: # disclosed (T2 ii)
row |= {f"ctl_pm_{k}": v for k, v in pair(gN, "Ctl-GP", "B3d-Sa", rng, n_boot).items()}
row |= {f"m2_ctl_{k}": v for k, v in pair(gN, "M2-Sa", "Ctl-GP", rng, n_boot).items()}
pt = [m for m in POINT_TIES if m in mean.index]
if pt and "B3d-Sa" in mean:
best = mean.loc[pt].idxmin()
row |= {"best_point_tie": best} | {f"pm_best_{k}": v for k, v in pair(gN, "B3d-Sa", best, rng, n_boot).items()}
row["pm_no_harm"] = bool(row["pm_best_ratio"] <= sp13.GUARD)
# degradation vs the P2r nominal cell (descriptive)
if len(ref):
nom = ref[(ref.regime == reg) & (ref.c == 1) & (ref.n_train == N)]
for m in mean.index:
nm = nom[nom.method == m]
if len(nm):
row[f"degradation_{m}"] = float(mean[m] / nm.band_rmse.mean())
sm = smc[(smc.setting == f"{reg}__{name}") & (smc.n_train == N)] if len(smc) else pd.DataFrame()
if len(sm):
row |= {k: float(sm.iloc[0][k]) for k in ("sigma_post_ms", "warp_rmse_ms", "warp_cov90", "overconfidence")}
row["wide"] = bool(row["sigma_post_ms"] >= 1.5)
cells.append(row)
if name in axes:
mean_ratio = float(np.nanmean(list(ratios.values()))) if ratios else float("nan")
verdict["S2-H2"]["pairs"][f"{reg}/{name}"] = {"mean_ratio_M2-Sa/B3d-Sa": mean_ratio, "ok": bool(mean_ratio <= sp13.GUARD),
"n_cells": len(ratios)}
tables["s2_cells"] = pd.DataFrame(cells)
h2a = pd.concat(h2a_rows, ignore_index=True) if h2a_rows else pd.DataFrame()
tables["s2_h2a"] = h2a
for axis, names in s["presets"].items():
l1 = names[0]
t = h2a[(h2a.regime == "R10") & (h2a.preset == l1) & (h2a.c == 1)] if len(h2a) else pd.DataFrame()
per = {}
for reg in s["regimes"]:
for name in names:
tt = h2a[(h2a.regime == reg) & (h2a.preset == name) & (h2a.c == 1)] if len(h2a) else pd.DataFrame()
per[f"{reg}/{name}"] = {int(r.n_train): {"cell_pass": bool(r.cell_pass), "ratio": r.ratio, "ci": [r.ratio_lo, r.ratio_hi], "best": r.best}
for r in tt.itertuples()}
verdict["S2-H1"]["per_axis"][axis] = {"L1_R10_cells_pass": {int(r.n_train): bool(r.cell_pass) for r in t.itertuples()},
"pass": bool(t.cell_pass.all()) if len(t) == 2 else None,
"complete": bool(len(t) == 2 and (t.n_rid == len(p["grid"]["realizations"])).all()),
"all_cells": per}
verdict["S2-H1"]["axes_pass"] = [a for a, v in verdict["S2-H1"]["per_axis"].items() if v["pass"]]
verdict["S2-H1"]["pass_all_axes"] = bool(len(verdict["S2-H1"]["axes_pass"]) == len(s["presets"]))
pairs = verdict["S2-H2"]["pairs"]
expected = len(s["regimes"]) * sum(len(v) for v in s["presets"].values())
verdict["S2-H2"]["complete"] = bool(len(pairs) == expected)
verdict["S2-H2"]["pass"] = all(v["ok"] for v in pairs.values()) if len(pairs) == expected else None
tables["s2_degradation"] = tables["s2_cells"][[c for c in tables["s2_cells"].columns if c.startswith("degradation_") or c in ("regime", "preset", "axis", "level", "n_train")]] if len(cells) else pd.DataFrame()
return tables, verdict
# ---------------------------------------------------------------- S3
def s3(p: dict, root: Path, rng, n_boot: int) -> tuple[dict, dict]:
_, run_b4, _ = load_study(p, root, "S3")
ref = p2r_runs(p)
if run_b4.empty or ref.empty:
return {}, {"available": False}
comp = POINT_TIES + list(p["studies"]["S3"]["methods"])
run = pd.concat([ref, run_b4], ignore_index=True)
rows, verdict = [], {"per_regime": {}}
for reg, g in run.groupby("regime"):
if "B3d-Sa" not in set(g.method):
continue
cells = h2a_cells(g, "B3d-Sa", comp, rng, n_boot)
if not len(cells):
continue
rows.append(cells.assign(regime=reg, flag=np.where(cells.c == 2, "unstable posterior", "")))
c1, c0 = cells[cells.c == 1], cells[cells.c == 0]
macro = c0.m2_band_rmse.mean() / c0.best_band_rmse.mean() if len(c0) else float("nan")
guard = bool(len(c0) == 2 and macro <= sp13.GUARD and (c0.ratio <= sp13.GUARD).all())
verdict["per_regime"][reg] = {"c1_cells_pass": f"{int(c1.cell_pass.sum())}/{len(c1)}", "best_at_c1": {int(r.n_train): r.best for r in c1.itertuples()},
"zero_drift_macro_ratio": macro, "zero_drift_guard": guard,
"regime_pass": bool(len(c1) == 2 and c1.cell_pass.all() and guard),
"complete": bool((cells.n_rid == len(p["grid"]["realizations"])).all() and len(cells) == 6)}
tab = pd.concat(rows, ignore_index=True) if rows else pd.DataFrame()
h2a_regimes = ["R10", "R0", "Rm5"]
verdict["pass"] = verdict["per_regime"].get("R10", {}).get("regime_pass")
verdict["regimes_pass"] = [r for r in h2a_regimes if verdict["per_regime"].get(r, {}).get("regime_pass")]
table = run.groupby(["regime", "c", "n_train", "method"])["band_rmse"].mean().unstack("method").reset_index()
ctl = []
if "Ctl-GP" in set(run.method): # T2-1 (disclosed): control bank across the P2r grid
for (reg, c, N), g in run.groupby(["regime", "c", "n_train"]):
if "Ctl-GP" not in set(g.method):
continue
ctl.append({"regime": reg, "c": c, "n_train": N, "n_rid": g.rid.nunique(), "flag": "unstable posterior" if c == 2 else ""}
| {f"ctl_pm_{k}": v for k, v in pair(g, "Ctl-GP", "B3d-Sa", rng, n_boot).items()}
| {f"m2_ctl_{k}": v for k, v in pair(g, "M2-Sa", "Ctl-GP", rng, n_boot).items()}
| {f"m2_pm_{k}": v for k, v in pair(g, "M2-Sa", "B3d-Sa", rng, n_boot).items()})
ctl = pd.DataFrame(ctl)
if len(ctl) and {"m2_ctl_better", "ctl_pm_better"} <= set(ctl.columns):
verdict["T2-1"] = {"cells": int(len(ctl)), "m2_better_than_ctl": int(ctl.m2_ctl_better.sum()),
"m2_better_than_ctl_by_c": {f"c{c:g}": int(d.m2_ctl_better.sum()) for c, d in ctl.groupby("c")},
"ctl_better_than_pm": int(ctl.ctl_pm_better.sum())}
return {"s3_h2a": tab, "s3_table": table, "s3_control": ctl}, verdict
# ---------------------------------------------------------------- S4
def s4(p: dict, root: Path, rng, n_boot: int) -> tuple[dict, dict]:
_, run, _ = load_study(p, root, "S4")
if run.empty:
return {}, {"available": False}
pt = [f"{m}-TCN" for m in POINT_TIES]
rows, verdict = [], {}
for reg, g in run.groupby("regime"):
cells = h2a_cells(g, "B3d-Sa-TCN", pt, rng, n_boot)
if len(cells):
rows.append(cells.assign(regime=reg))
h2a = pd.concat(rows, ignore_index=True) if rows else pd.DataFrame()
t = h2a[(h2a.regime == "R10") & (h2a.c == 1)] if len(h2a) else pd.DataFrame()
verdict["S4-H1"] = {"cells": {int(r.n_train): bool(r.cell_pass) for r in t.itertuples()}, "ratios": {int(r.n_train): [r.ratio, r.ratio_lo, r.ratio_hi] for r in t.itertuples()},
"pass": bool(t.cell_pass.all()) if len(t) == 2 else None}
cells = []
ref = p2r_runs(p)
for (reg, N), g in run.groupby(["regime", "n_train"]):
mean = g.groupby("method")["band_rmse"].mean()
row = {"regime": reg, "c": 1.0, "n_train": N, "n_rid": g.rid.nunique()} | {f"band_rmse_{m}": v for m, v in mean.items()}
row |= {f"m2_pm_{k}": v for k, v in pair(g, "M2-Sa-TCN", "B3d-Sa-TCN", rng, n_boot).items()}
if len(ref):
nom = ref[(ref.regime == reg) & (ref.c == 1) & (ref.n_train == N)]
for m in mean.index:
nm = nom[nom.method == m.removesuffix("-TCN")]
if len(nm):
row[f"tcn_over_cnngru_{m.removesuffix('-TCN')}"] = float(mean[m] / nm.band_rmse.mean())
cells.append(row)
cells = pd.DataFrame(cells)
wide = cells[(cells.n_train == 16) & cells.regime.isin(["Rm5", "R0h"])]
verdict["S4-H2"] = {"cells": {r.regime: {"ratio": r.m2_pm_ratio, "ci": [r.m2_pm_ratio_lo, r.m2_pm_ratio_hi], "better": bool(r.m2_pm_better)} for r in wide.itertuples()},
"pass": bool(wide.m2_pm_better.all()) if len(wide) == 2 else None}
return {"s4_cells": cells, "s4_h2a": h2a}, verdict
# ---------------------------------------------------------------- S8
def cross_spectrum(Y: np.ndarray, P: np.ndarray) -> np.ndarray:
w = np.hanning(Y.shape[1])
Fy = np.fft.rfft((Y - Y.mean(1, keepdims=True)) * w, NFFT)
Fp = np.fft.rfft((P - P.mean(1, keepdims=True)) * w, NFFT)
return np.real(np.conj(Fy) * Fp).sum(0)
def s8(p: dict, root: Path, rng, n_boot: int) -> tuple[dict, dict]:
rows_all, run, _ = load_study(p, root, "S8")
if run.empty:
return {}, {"available": False}
f = np.fft.rfftfreq(NFFT, 4.0 / 1000.0)
f_c = 6.0
budgets = study_budgets(p, "S8")
cells, transfer, verdict = [], [], {"S8-H1": {"cells": {}}, "S8-H2": {"cells": {}}}
for (reg, d, N), g in run.groupby(["regime", "delta_ms", "n_train"]):
mean = g.groupby("method")["band_rmse"].mean()
row = {"regime": reg, "delta_ms": d, "n_train": N, "n_rid": g.rid.nunique(), "n_seed": g.seed.nunique()} | {f"band_rmse_{m}": v for m, v in mean.items()}
for a, b, tag in (("PM2", "Oracle", "pm_or"), ("BK2", "PM2", "bk_pm"), ("HM2", "PM2", "hm_pm"), ("BK2", "Oracle", "bk_or")):
row |= {f"{tag}_{k}": v for k, v in pair(g, a, b, rng, n_boot).items()}
# transfer Ĥ(f) relative to the Oracle predictions, pooled over rids, seeds and test wells
S = {m: np.zeros(len(f)) for m in ("Oracle", "PM2", "BK2", "HM2")}
for rid in sorted(g.rid.unique()):
cell = Cell("S8", reg, None, 1.0, int(N), int(rid), tuple(p["studies"]["S8"]["methods"]), posterior="none", delta_ms=float(d))
npz = train_paths(cell, root)["npz"]
if not npz.exists():
continue
with np.load(npz) as z:
Y = z["y_true"].astype(float)
for m in S:
for k in (k for k in z.files if k.startswith(f"{m}/s") and k.endswith(f"/b{budgets[m]}/mu")):
S[m] += cross_spectrum(Y, z[k].astype(float))
band = f >= f_c
use = band & (S["Oracle"] >= 0.1 * S["Oracle"][band].max())
lo, hi = 1000.0 / (2 * d), 3000.0 / (2 * d)
flip = use & (f > lo) & (f < hi)
for m in ("PM2", "BK2", "HM2"):
H = S[m] / np.where(S["Oracle"] == 0, np.nan, S["Oracle"])
theory = np.cos(np.pi * f * d / 1000.0)
zero = f[band][np.flatnonzero(np.diff(np.sign(H[band])) != 0)[:1]]
transfer.append({"regime": reg, "delta_ms": d, "n_train": N, "method": m, "flip_band_hz": [lo, hi], "n_freq_flip": int(flip.sum()),
"mean_H_flip_band": float(np.nanmean(H[flip])) if flip.any() else float("nan"),
"mean_cos_flip_band": float(theory[flip].mean()) if flip.any() else float("nan"),
"first_zero_crossing_hz": float(zero[0]) if len(zero) else float("nan"), "theory_zero_hz": lo,
"H": H.tolist(), "f_hz": f.tolist()})
row[f"meanH_flip_{m}"] = transfer[-1]["mean_H_flip_band"]
cells.append(row)
if reg == "R10" and d == 32:
verdict["S8-H1"]["cells"][int(N)] = {"mean_H_PM2_flip_band": row["meanH_flip_PM2"], "negative": bool(row["meanH_flip_PM2"] < 0)}
if N == 16 and d in (16, 32):
verdict["S8-H2"]["cells"][f"{reg}/d{d:g}"] = {"ratio_BK2_PM2": row.get("bk_pm_ratio"), "ci": [row.get("bk_pm_ratio_lo"), row.get("bk_pm_ratio_hi")],
"better": bool(row.get("bk_pm_better", False))}
cells = pd.DataFrame(cells)
verdict["S8-H1"]["pass"] = all(v["negative"] for v in verdict["S8-H1"]["cells"].values()) if len(verdict["S8-H1"]["cells"]) == 2 else None
d8 = cells[cells.delta_ms == 8]
no_harm = float(d8.bk_pm_ratio.mean()) if len(d8) else float("nan")
verdict["S8-H2"]["no_harm_mean_ratio_d8"] = no_harm
verdict["S8-H2"]["pass"] = all(v["better"] for v in verdict["S8-H2"]["cells"].values()) if len(verdict["S8-H2"]["cells"]) == 4 else None
verdict["S8-H2"]["d8_descriptive"] = {f"{r.regime}/n{int(r.n_train)}": [r.bk_pm_ratio, r.bk_pm_ratio_lo, r.bk_pm_ratio_hi] for r in d8.itertuples()}
tr = pd.DataFrame(transfer)
return {"s8_cells": cells, "s8_transfer": tr.drop(columns=["H", "f_hz"]) if len(tr) else tr,
"s8_transfer_curves": tr}, verdict
# ---------------------------------------------------------------- equal-budget arm (disclosed, T2 v)
def equal_budget(p: dict, root: Path, rng, n_boot: int) -> pd.DataFrame:
arm = p["training"].get("equal_budget_arm")
if not arm:
return pd.DataFrame()
rows = []
for study in p["studies"]:
_, run, _ = load_study(p, root, study, arm=int(arm))
if run.empty:
continue
keys = [k for k in ("regime", "preset", "delta_ms", "c", "n_train") if k in run.columns]
for key, g in run.groupby(keys, dropna=False):
mean = g.groupby("method")["band_rmse"].mean()
row = {"study": study, "budget": int(arm)} | dict(zip(keys, key)) | {"n_rid": g.rid.nunique()} | {f"band_rmse_{m}": v for m, v in mean.items()}
sfx = "-TCN" if p["studies"][study].get("backbone", "cnngru") != "cnngru" else ""
for a, b, tag in ((f"M2-Sa{sfx}", f"B3d-Sa{sfx}", "m2_pm"), (f"B3d-Sa{sfx}", f"Oracle{sfx}", "pm_or"), ("Ctl-GP", f"B3d-Sa{sfx}", "ctl_pm"),
("BK2", "PM2", "bk_pm"), ("PM2", "Oracle", "pm2_or")):
if a in mean.index and b in mean.index:
row |= {f"{tag}_{k}": v for k, v in pair(g, a, b, rng, n_boot).items() if k in ("ratio", "ratio_lo", "ratio_hi", "better")}
rows.append(row)
return pd.DataFrame(rows)
# ---------------------------------------------------------------- report
def _md(df: pd.DataFrame, cols=None, fmt: str = ".3f") -> str:
if df is None or not len(df):
return "(no data)"
d = df[[c for c in cols if c in df.columns]] if cols else df
return d.to_markdown(index=False, floatfmt=fmt)
def summarize(p: dict, root: Path, n_boot: int = 2000, dev: bool = False, n_perm: int = 10000) -> dict:
global USE_P2R
USE_P2R = not dev
out = root / "summary"
out.mkdir(parents=True, exist_ok=True)
rng = np.random.default_rng(0)
tables, verdict = {}, {"protocol": "configs/protocol_bench.yaml", "dev": dev, "root": str(root)}
sha = REPO_ROOT / "configs" / "protocol_bench.sha256"
verdict["protocol_sha256"] = sha.read_text().split()[0] if sha.exists() else "UNLOCKED"
for name, fn, extra in (("S1", s1, (n_perm,)), ("S2", s2, ()), ("S3", s3, ()), ("S4", s4, ()), ("S8", s8, ())):
t, v = fn(p, root, rng, n_boot, *extra)
tables |= t
verdict[name] = v
tables["equal_budget"] = equal_budget(p, root, rng, n_boot)
for name, df in tables.items():
if name == "s8_transfer_curves":
(out / "s8_transfer_curves.json").write_text(df.to_json(orient="records"))
elif isinstance(df, pd.DataFrame):
df.to_csv(out / f"{name}.csv", index=False)
(out / "verdict.json").write_text(json.dumps(verdict, indent=1, default=float))
L = [f"# protocol_bench summary ({'DEV — never a result' if dev else 'main grid'})", "",
"Rules of configs/protocol_bench.yaml applied as written. Realizations and seeds as recorded per cell.", ""]
hyp = p["hypotheses"]
for key in ("S1-H1", "S1-H2", "S2-H1", "S2-H2", "S3-H1", "S4-H1", "S4-H2", "S8-H1", "S8-H2"):
v = verdict.get(key.split("-")[0], {})
v = v.get(key, v) if key != "S3-H1" else v
res = v.get("pass") if isinstance(v, dict) else None
L.append(f"- **{key}** ({hyp[key]['kind']}): {'PASS' if res else 'FAIL' if res is False else 'not available'} — {hyp[key]['statement'].strip()[:160]}…")
L.append("")
sections = [("S1 cells (phase diagram)", "s1_cells", ["regime", "c", "n_train", "sigma_post_ms", "best_point_tie", "pm_best_ratio", "pm_best_ratio_lo", "pm_best_ratio_hi", "m2_pm_ratio", "m2_pm_ratio_lo", "m2_pm_ratio_hi", "m2_pm_better", "n_rid"]),
("S1 families (S1-H2)", "s1_families", None), ("S1 additivity (descriptive)", "s1_additivity", None),
("S2 SMC diagnostics", "s2_smc", ["regime", "preset", "axis", "level", "n_train", "sigma_post_ms", "warp_rmse_ms", "warp_cov90", "overconfidence", "phase_R_mean", "kappa_post", "r_post", "n_rid"]),
("S2 cells", "s2_cells", ["regime", "preset", "axis", "level", "n_train", "best_point_tie", "pm_best_ratio", "pm_best_ratio_lo", "pm_best_ratio_hi", "pm_no_harm", "m2_pm_ratio", "m2_pm_ratio_lo", "m2_pm_ratio_hi", "m2_pm_better", "wide", "n_rid"]),
("S2 H2a rule per preset", "s2_h2a", ["regime", "preset", "axis", "level", "c", "n_train", "best", "ratio", "ratio_lo", "ratio_hi", "dpcc", "seeds_improve", "rids_improve", "cell_pass"]),
("S3 H2a rule with B4 competitors", "s3_h2a", ["regime", "c", "n_train", "best", "runner_up", "ratio", "ratio_lo", "ratio_hi", "dpcc", "seeds_improve", "rids_improve", "cell_pass", "flag"]),
("S3 benchmark table (band RMSE)", "s3_table", None),
("S3 control bank across the P2r grid (T2-1, disclosed)", "s3_control", ["regime", "c", "n_train", "ctl_pm_ratio", "ctl_pm_ratio_lo", "ctl_pm_ratio_hi", "ctl_pm_better", "m2_ctl_ratio", "m2_ctl_ratio_lo", "m2_ctl_ratio_hi", "m2_ctl_better", "m2_pm_ratio", "flag", "n_rid"]),
("S4 cells (TCN)", "s4_cells", None), ("S4 H2a rule (TCN)", "s4_h2a", ["regime", "c", "n_train", "best", "ratio", "ratio_lo", "ratio_hi", "dpcc", "seeds_improve", "rids_improve", "cell_pass"]),
("S8 cells", "s8_cells", ["regime", "delta_ms", "n_train", "pm_or_ratio", "bk_pm_ratio", "bk_pm_ratio_lo", "bk_pm_ratio_hi", "bk_pm_better", "hm_pm_ratio", "meanH_flip_PM2", "meanH_flip_BK2", "n_rid"]),
("S8 transfer", "s8_transfer", ["regime", "delta_ms", "n_train", "method", "n_freq_flip", "mean_H_flip_band", "mean_cos_flip_band", "first_zero_crossing_hz", "theory_zero_hz"]),
("Equal-budget arm, 500 iterations for every method (disclosed, T2 v; no rule uses it)", "equal_budget", None)]
for title, key, cols in sections:
L += [f"## {title}", "", _md(tables.get(key), cols), ""]
L += ["## Verdicts (json)", "", "```", json.dumps({k: v for k, v in verdict.items() if k.startswith("S")}, indent=1, default=float), "```", ""]
(out / "summary.md").write_text("\n".join(L))
print("\n".join(L[:14]))
return verdict

View File

@@ -0,0 +1,296 @@
"""Training of one protocol_bench cell: scripts/15_diag_train.py run_cell (variant "a": estR wavelet, γ = 1/κ) with
three additions. (1) B4a–d from the protocol_p2 label banks (S3). (2) The S8 two-mode banks built from the true
warp: per training well a side s = ±1 is drawn from a declared stream, the two modes are t_true and t_true + sΔ,
PM2 labels sit at the posterior-mean warp t_true + sΔ/2, BK2 is the two-member bank with uniform π and the
protocol λ, HM2 the same bank with the hard-min loss. (3) A second backbone (TCNHetero of ml_porosity/f3/training.py)
trained with the same loop as bank_train.train_predict; the CNN-GRU path delegates to bank_train unchanged.
"""
from __future__ import annotations
import json
import time
from pathlib import Path
import numpy as np
import torch
import torch.nn as nn
from ml_porosity.benchmark.cells import Cell
from ml_porosity.benchmark.data import Inputs, load_script
REGISTER_METHODS = ("Oracle", "B3a", "B3b", "B3c", "B3d", "B4a", "B4b", "B4c", "B4d", "M1", "M2")
POSTERIOR_METHODS = ("B3c-R", "B3d-Sa", "M2-Sa")
TWO_MODE_METHODS = ("PM2", "BK2", "HM2")
CONTROL_METHODS = ("Ctl-GP",)
SIDE_STREAM = 20261030 # S8: rng [rid, SIDE_STREAM, 8, i] → side s_i = ±1 of training well i
MIN_SLOPE_MS, MAX_ATTEMPTS = 0.05, 1280 # Ctl-GP: monotonicity guard and draw budget, as T2 (scripts/32)
def budget_list(p: dict, method: str, backbone: str) -> list[int]:
"""Registered budget plus, if declared, the equal-budget arm (one trajectory; predictions at both steps)."""
b = {budget_of(p, method, backbone)}
arm = p["training"].get("equal_budget_arm")
if arm:
b.add(int(arm))
return sorted(b)
def base_name(method: str) -> str:
return method.removesuffix("-TCN")
def budget_of(p: dict, method: str, backbone: str) -> int:
b = base_name(method)
if backbone != "cnngru":
alt = p["training"].get(f"budgets_{backbone}") or {}
if alt.get(b) is not None:
return int(alt[b])
return int(p["training"]["budgets"][b])
def train_predict_tcn(X, Xte, spec: dict, cfg: dict, seed: int, budgets: list[int], device: str) -> dict:
"""bank_train.train_predict with TCNHetero (f3.training) in place of CNNGRUHetero; cudnn deterministic as f3."""
from ml_porosity.f3.training import TCNHetero
from ml_porosity.losses.rml import bank_loss, gather_windows
from ml_porosity.losses.softdtw import dilate_loss_fast, softdtw_loss_fast
from ml_porosity.models.bank_train import WIN, window_starts_fixed
from ml_porosity.models.train import predict
torch.backends.cudnn.benchmark = False
torch.backends.cudnn.deterministic = True
torch.default_generator.manual_seed(seed)
if torch.device(device).type == "cuda":
torch.cuda.set_device(device)
torch.cuda.manual_seed(seed)
np.random.seed(seed)
T = lambda a: torch.as_tensor(np.asarray(a), dtype=torch.float32, device=device)
x = T(X)
N, _, L = X.shape
starts = torch.as_tensor(np.tile(window_starts_fixed(L), (N, 1)), device=device)
kind = spec["kind"]
if kind == "bank":
Y, logpi, lam = T(spec["Y"]), T(spec["logpi"]), spec["lam"]
loss_fn = lambda mu, s: bank_loss(mu, s, Y, logpi, starts, WIN, lam)
elif kind in ("softdtw", "dilate"):
yw = gather_windows(T(spec["Y"]).reshape(N, L), starts, WIN).reshape(-1, WIN)
f = softdtw_loss_fast if kind == "softdtw" else dilate_loss_fast
kw = {k: spec[k] for k in ("gamma", "band", "alpha") if k in spec}
loss_fn = lambda mu, s: f(gather_windows(mu, starts, WIN).reshape(-1, WIN),
gather_windows(s, starts, WIN).reshape(-1, WIN), yw, **kw)
else:
raise ValueError(kind)
model = TCNHetero(X.shape[1], cfg["d_channels"], cfg["p_dropout"]).to(device)
opt = torch.optim.Adam(model.parameters(), lr=cfg["lr"])
out = {}
for step in range(1, max(budgets) + 1):
model.train()
opt.zero_grad()
mu, s = model(x)
loss = loss_fn(mu[:, 0], s[:, 0])
if not torch.isfinite(loss):
raise FloatingPointError(f"non-finite loss at step {step}")
loss.backward()
nn.utils.clip_grad_norm_(model.parameters(), cfg["grad_clip"])
opt.step()
if step in budgets:
out[step] = predict(model, Xte, device)
return out
def train_predict_any(X, Xte, spec, cfg, seed, budgets, device, backbone: str) -> dict:
if backbone == "cnngru":
from ml_porosity.models.bank_train import train_predict
return train_predict(X, Xte, spec, cfg, seed, budgets, device)
if backbone == "tcn":
return train_predict_tcn(X, Xte, spec, cfg, seed, budgets, device)
raise ValueError(backbone)
def posterior_banks(R, obs: list[dict], out: dict, reg: dict, ph: dict, smc, reg_seed: int, diag: list[dict]) -> tuple[dict, list]:
"""B3c-R, B3d-Sa (mean of all particles) and M2-Sa (S particles without replacement, rng [reg_seed, i, 29],
uniform π) exactly as scripts/15 (variant a: estR, g_acf). Appends per-well diagnostics to `diag`."""
from ml_porosity.data.wavelet import statistical_wavelet
from ml_porosity.registration.labels import antialias, labels_for_warps
from ml_porosity.registration.smc import phase_basis, phase_wavelet
from ml_porosity.registration.tie_likelihood import synth_for_warps
from ml_porosity.registration.ties import tie_b3b, tie_b3c, warp_errors, warp_mean
cfg = R.cfg
f, fac = cfg["fine_dt_ms"], int(round(R.dt / cfg["fine_dt_ms"]))
seis = [o["seis"][o["seis"].shape[0] // 2].astype(float) for o in obs]
wR = phase_wavelet(phase_basis(statistical_wavelet(np.stack(seis), R.dt, reg["wavelet_ms"]), fac), ph["phase_R"])
lab = lambda y, T: labels_for_warps(R.tau_fine, y, np.atleast_2d(T), R.t_main)
err = lambda t, o: warp_errors(t[None], R.tau_fine, o["t_of_tau_true"], R.t_main)["warp_rmse_ms"]
banks, logpi = {"B3c-R": [], "B3d-Sa": [], "M2-Sa": []}, []
for i, o in enumerate(obs):
y_aa = antialias(o["phi_log"], f, R.dt)
t_b3b = tie_b3b(o["tau_k"], o["t_k"], R.tau_fine)
syn_b = synth_for_warps(R.tau_fine, o["ai_log"], t_b3b, R.t_fine, R.t_ext, wR)[0]
t3c = tie_b3c(t_b3b, R.tau_fine, syn_b, seis[i], R.t_ext, R.dt)
banks["B3c-R"].append(lab(y_aa, t3c))
U = smc[f"{o['name']}/estR/g_acf"].astype(float)
Tf = R.grid.t_of_tau(U[:, 0], U[:, 1:], tau=R.tau_fine)
tm = warp_mean(Tf, np.zeros(len(Tf)))
banks["B3d-Sa"].append(lab(y_aa, tm))
sub = np.random.default_rng([reg_seed, i, 29]).choice(len(Tf), reg["S"], replace=False)
Y = lab(y_aa, Tf[sub])
ok = np.all(np.isfinite(Y), 1)
Y[~ok] = Y[ok][0]
banks["M2-Sa"].append(Y)
logpi.append(np.where(ok, 0.0, -np.inf) - np.log(ok.sum()))
diag[i] |= {"phase_R": ph["phase_R"], "B3c-R_warp_rmse_ms": err(t3c, o), "B3d-Sa_warp_rmse_ms": err(tm, o),
"M2-Sa_n_valid": int(ok.sum()),
"sigma_post_ms": warp_errors(Tf, R.tau_fine, o["t_of_tau_true"], R.t_main)["warp_width90_ms"] / 3.29}
return banks, logpi
def control_gp_bank(R, obs: list[dict], smc: dict, reg: dict, reg_seed: int, diag: list[dict]) -> tuple[list, list]:
"""Ctl-GP (T2 test ii, scripts/32 control_bank): S warps T̄ + η_s, η_s Gaussian with the empirical mean and
covariance of the SMC particles on the warp grid (no information beyond the first two moments; no link between
a member and the seismic). rng [reg_seed, i, 2029]; a draw is kept if t(τ) is strictly increasing (slope >
MIN_SLOPE_MS per node), else redrawn (≤ MAX_ATTEMPTS); fallback: Gaussian in u = [b, g] (monotone by
construction), flagged. Labels and invalid members as the SMC bank."""
from ml_porosity.registration.labels import antialias, labels_for_warps
f = R.cfg["fine_dt_ms"]
lab = lambda y, T: labels_for_warps(R.tau_fine, y, np.atleast_2d(T), R.t_main)
banks, logpi = [], []
for i, o in enumerate(obs):
U = smc[f"{o['name']}/estR/g_acf"].astype(float)
Tg = R.grid.t_of_tau(U[:, 0], U[:, 1:])
Tbar = Tg.mean(0)
lam, V = np.linalg.eigh(np.cov(Tg.T, ddof=0))
Lm = V * np.sqrt(np.clip(lam, 0.0, None))[None, :]
rng = np.random.default_rng([reg_seed, i, 2029])
members, n_rej, attempts = [], 0, 0
while len(members) < reg["S"] and attempts < MAX_ATTEMPTS:
t = Tbar + Lm @ rng.standard_normal(len(Tbar))
attempts += 1
if np.all(np.diff(t) > MIN_SLOPE_MS):
members.append(t)
else:
n_rej += 1
fallback = len(members) < reg["S"]
if fallback:
lu, Vu = np.linalg.eigh(np.cov(U.T, ddof=0))
Lu = Vu * np.sqrt(np.clip(lu, 0.0, None))[None, :]
ubar = U.mean(0)
while len(members) < reg["S"]:
u = ubar + Lu @ rng.standard_normal(len(ubar))
members.append(R.grid.t_of_tau(u[0], u[1:])[0])
Tc_grid = np.stack(members)
Tc = np.stack([np.interp(R.tau_fine, R.grid.tau, t) for t in Tc_grid])
Y = lab(antialias(o["phi_log"], f, R.dt), Tc)
ok = np.all(np.isfinite(Y), 1)
Y[~ok] = Y[ok][0]
banks.append(Y)
logpi.append(np.where(ok, 0.0, -np.inf) - np.log(ok.sum()))
diag[i] |= {"Ctl-GP_n_valid": int(ok.sum()), "Ctl-GP_n_rejected": n_rej, "Ctl-GP_fallback_u": bool(fallback),
"Ctl-GP_sd_ratio": float(Tc_grid.std(0).mean() / Tg.std(0).mean())}
return banks, logpi
def two_mode_banks(R, obs: list[dict], delta_ms: float, diag: list[dict]) -> dict:
"""S8 controlled cycle skip: modes t_true and t_true + s·Δ (s = ±1 per training well from rng
[rid, SIDE_STREAM, 8, i]); PM2 at the mean warp t_true + sΔ/2; BK2/HM2 the two-member bank."""
from ml_porosity.registration.labels import antialias, labels_for_warps
from ml_porosity.registration.ties import warp_errors
f = R.cfg["fine_dt_ms"]
lab = lambda y, T: labels_for_warps(R.tau_fine, y, np.atleast_2d(T), R.t_main)
banks = {"PM2": [], "BK2": []}
for i, o in enumerate(obs):
s = int(np.random.default_rng([R.rid, SIDE_STREAM, 8, i]).integers(2)) * 2 - 1
y_aa = antialias(o["phi_log"], f, R.dt)
t_true = o["t_of_tau_true"]
Ypm = lab(y_aa, t_true + s * delta_ms / 2.0)
Ybk = lab(y_aa, np.stack([t_true, t_true + s * delta_ms]))
if not (np.all(np.isfinite(Ypm)) and np.all(np.isfinite(Ybk))):
raise ValueError(f"{o['name']}: two-mode labels leave the label support at Δ = {delta_ms} ms")
banks["PM2"].append(Ypm)
banks["BK2"].append(Ybk)
diag[i] |= {"delta_ms": delta_ms, "side": s,
"PM2_warp_rmse_ms": warp_errors((t_true + s * delta_ms / 2.0)[None], R.tau_fine, t_true, R.t_main)["warp_rmse_ms"]}
return banks
def train_cell(cell: Cell, p: dict, inp: Inputs, device: str, post: dict[str, Path] | None, save_preds: bool = True,
seeds=None, budget_lists: dict[str, list[int]] | None = None) -> tuple[list[dict], list[dict], dict, dict]:
"""Returns (rows, diag, preds, meta). rows: one per (seed, method, budget, test well) with the P2r metrics.
budget_lists (dev only): {method: [budgets]} evaluated along one trajectory instead of the locked budget."""
from ml_porosity.models.bank_train import zscore_patch
from ml_porosity.registration.pipeline import register
run_d2 = load_script("11_run_d2.py")
t0 = time.time()
P2, reg, tcfg = inp.P2, inp.reg, inp.tcfg
reg_seed = int(p["registration"]["reg_seed"])
seeds = list(p["grid"]["seeds"] if seeds is None else seeds)
R = inp.realization(cell.rid, cell.preset)
obs, test = inp.observe(R, cell.c, cell.regime, cell.n_train)
X = np.stack([zscore_patch(o["seis"], R.main) for o in obs])
Xte = np.stack([zscore_patch(o["seis"], R.main) for o in test])
yt = 100 * np.stack([o["y_true"] for o in test])
N = len(obs)
out = register(R, obs, reg, reg_seed)
m0, s0 = out["norm"]
key = dict(rid=cell.rid, c=cell.c, n_train=N)
diag = [key | {"reg_seed": reg_seed, "phase": out["phase"], "lam": out["lam"], "tau_c": out["tau_c"], "well": o["name"],
"preset": cell.preset or "nominal", "backbone": cell.backbone} for o in obs]
methods = [base_name(m) for m in cell.methods]
specs = {}
old = [m for m in methods if m in REGISTER_METHODS]
if old:
specs |= run_d2.method_specs(out, P2, old)
single = lambda Y: {"kind": "bank", "Y": Y, "logpi": np.zeros((N, 1), np.float32), "lam": out["lam"]}
nb = lambda v: ((np.stack(v) - m0) / s0).astype(np.float32)
meta = {}
if any(m in POSTERIOR_METHODS + CONTROL_METHODS for m in methods):
if post is None:
raise RuntimeError(f"{cell.tag}: posterior methods requested without a posterior directory")
ph = json.loads(post["phase"].read_text())
if ph["phase0"] != out["phase"]:
raise RuntimeError(f"{cell.tag}: register phase ({out['phase']}) differs from the posterior run ({ph['phase0']})")
with np.load(post["particles"]) as smc:
smc = {k: smc[k] for k in smc.files}
banks, logpi = posterior_banks(R, obs, out, reg, ph, smc, reg_seed, diag)
specs["B3c-R"] = single(nb(banks["B3c-R"]))
specs["B3d-Sa"] = single(nb(banks["B3d-Sa"]))
specs["M2-Sa"] = {"kind": "bank", "Y": nb(banks["M2-Sa"]), "logpi": np.stack(logpi).astype(np.float32), "lam": out["lam"]}
meta["posterior"] = str(post["particles"])
if any(m in CONTROL_METHODS for m in methods):
yc, lpc = control_gp_bank(R, obs, smc, reg, reg_seed, diag)
specs["Ctl-GP"] = {"kind": "bank", "Y": nb(yc), "logpi": np.stack(lpc).astype(np.float32), "lam": out["lam"]}
if any(m in TWO_MODE_METHODS for m in methods):
banks = two_mode_banks(R, obs, float(cell.delta_ms), diag)
specs["PM2"] = single(nb(banks["PM2"]))
Ybk = nb(banks["BK2"])
lp = np.full((N, 2), -np.log(2.0), np.float32)
specs["BK2"] = {"kind": "bank", "Y": Ybk, "logpi": lp, "lam": out["lam"]}
specs["HM2"] = {"kind": "bank", "Y": Ybk, "logpi": lp, "lam": None}
missing = [m for m in methods if m not in specs]
if missing:
raise ValueError(f"no label specification for methods {missing}")
rows, preds = [], {}
suffix = "" if cell.backbone == "cnngru" else f"-{cell.backbone.upper()}"
for seed in seeds:
for m in methods:
bud = list(budget_lists[m]) if budget_lists else budget_list(p, m, cell.backbone)
for b, (mu, sg) in train_predict_any(X, Xte, specs[m], tcfg, seed, bud, device, cell.backbone).items():
mu_p, sg_p = 100 * (mu * s0 + m0), 100 * sg * s0
name = m + suffix
for w, r in zip(R.test, run_d2.evaluate(yt, mu_p, sg_p, inp.f_c)):
rows.append(key | {"seed": seed, "method": name, "budget": b, "test_well": w.name,
"regime": cell.regime, "preset": cell.preset or "nominal", "study": cell.study,
"delta_ms": cell.delta_ms} | r)
if save_preds:
preds[f"{name}/s{seed}/b{b}/mu"] = mu_p.astype(np.float32)
preds[f"{name}/s{seed}/b{b}/sigma"] = sg_p.astype(np.float32)
preds = {"y_true": yt.astype(np.float32), "test_wells": np.array([w.name for w in R.test])} | preds
meta |= {"wall_seconds": time.time() - t0, "device": device, "seeds": seeds, "methods": [m + suffix for m in methods],
"budgets": {m + suffix: (list(budget_lists[m]) if budget_lists else budget_list(p, m, cell.backbone)) for m in methods},
"registered_budgets": {m + suffix: budget_of(p, m, cell.backbone) for m in methods},
"phase": out["phase"],
"lam": out["lam"], "misspec_active": R.misspec_active, "n_train": N, "backbone": cell.backbone}
return rows, diag, preds, meta

View File

@@ -16,6 +16,24 @@ Registration: logs lie on the τ axis (sonic time). True warp t(τ) = τ + b +
g = c·(m_g + L z), b = c·σ_b·z_b, where (m_g, σ_g, ℓ, σ_b) come from the GP fit to the F3 anchors (scripts/09); g = c·(m_g + L z), b = c·σ_b·z_b, where (m_g, σ_g, ℓ, σ_b) come from the GP fit to the F3 anchors (scripts/09);
z is shared across all drift factors c. Anchors: unit boundaries within the extended window, τ_k = t⁻¹(t_b), z is shared across all drift factors c. Anchors: unit boundaries within the extended window, τ_k = t⁻¹(t_b),
t_k = t_b + ε_k, with ε_k ~ N(0, σ_a²) shared across all c. t_k = t_b + ε_k, with ε_k ~ N(0, σ_a²) shared across all c.
Misspecification (phase P6, S2; docs/research/bench-generator.md). `D2Realization(..., misspec=...)` lets the
data violate the assumptions of the registration (nominal rock physics in obs["ai_log"], a stationary wavelet with
a constant phase, the F3 Matérn-3/2 warp prior) in controlled ways, on three axes:
rock_physics the earth maps φ → AI with perturbed coefficients (uniform factors; optionally a per-unit
shift of the φ–DT intercept, i.e. lithology-dependent matrix slowness) while obs["ai_log"]
keeps the nominal relation;
wavelet the true wavelet is a transformed version of the nominal one (constant phase, fractional
minimum-phase dispersion, peak-frequency factor, bulk delay) and/or a constant-Q time-variant
filter is applied in the forward model;
drift the true warp is drawn with scaled (σ_b, σ_g, ℓ), plus non-GP components: a jump of the
warp just below a horizon (a local log-slowness anomaly) and short-correlation jitter.
Common random numbers: the misspecified realization uses the same z_g, z_b, ε_a, GRF and noise draws as the
nominal one; additional draws (per-unit shifts, jitter) come from separate, rid-seeded streams, so the nominal
path consumes its random stream exactly as before. `misspec=None` (or all-nominal values) reproduces the
protocol_p2/p2r generator bit for bit (tests/test_d2_misspec.py).
""" """
from __future__ import annotations from __future__ import annotations
@@ -23,13 +41,16 @@ from __future__ import annotations
from dataclasses import dataclass, field from dataclasses import dataclass, field
import numpy as np import numpy as np
from scipy import signal
from ml_porosity.baselines.inversion import strat_map from ml_porosity.baselines.inversion import strat_map
from ml_porosity.data.wavelet import rotate_phase
from ml_porosity.registration.labels import antialias, invert_warps from ml_porosity.registration.labels import antialias, invert_warps
from ml_porosity.registration.tie_likelihood import fine_wavelet, forward_fine from ml_porosity.registration.tie_likelihood import fine_wavelet, forward_fine
from ml_porosity.registration.warp_prior import WarpGrid, WarpHyper, kernel_matrix from ml_porosity.registration.warp_prior import WarpGrid, WarpHyper, kernel_matrix
PHI_DT_A, PHI_DT_B = -0.2018, 0.0011 PHI_DT_A, PHI_DT_B = -0.2018, 0.0011 # φ = A + B·DT (DT in µs/m)
RHO_0, RHO_1 = 2650.0, 1600.0 # RHOB = ρ0 − ρ1·φ (kg/m³)
def phi_to_ai(phi: np.ndarray) -> np.ndarray: def phi_to_ai(phi: np.ndarray) -> np.ndarray:
@@ -37,6 +58,203 @@ def phi_to_ai(phi: np.ndarray) -> np.ndarray:
return (2650.0 - 1600.0 * phi) * 1e6 / dt return (2650.0 - 1600.0 * phi) * 1e6 / dt
def phi_to_ai_coef(phi: np.ndarray, a: np.ndarray | float, b: float, rho0: float, rho1: float) -> np.ndarray:
"""AI for the perturbed relations φ = a + b·DT, RHOB = rho0 − rho1·φ (a may vary per sample)."""
dt = (phi - a) / b
return (rho0 - rho1 * phi) * 1e6 / dt
# ------------------------------------------------------------------ misspecification parameters
MISSPEC_DEFAULTS = {
"rock_physics": {
"dt_slope_factor": 1.0, # B → B·f (φ = A + B·DT; nominal B = 0.0011 per µs/m)
"dt_intercept_factor": 1.0, # A → A·f (nominal A = −0.2018; DT_matrix = −A/B)
"rho_slope_factor": 1.0, # ρ1 → ρ1·f (nominal 1600)
"rho_intercept_factor": 1.0, # ρ0 → ρ0·f (nominal 2650)
"unit_dt_intercept_sd": 0.0, # A → A·(1 + sd·ζ_u) per stratigraphic unit, ζ_u ~ N(0, 1) per realization
"region": "all", # wells affected: all | test | pool
},
"wavelet": {
"phase_deg": 0.0, # constant phase rotation (inside the registration's family)
"minphase_frac": 0.0, # s ∈ [0, 1]: phase spectrum s·θ_min(f) of the nominal amplitude spectrum
"peak_freq_factor": 1.0, # w(t) → w(p·t): spectrum stretched by p
"delay_ms": 0.0, # bulk timing error of the wavelet (events shifted relative to the anchors)
"Q": None, # constant-Q time-variant attenuation relative to Q_t_ref_ms (None: off)
"Q_t_ref_ms": 400.0,
"Q_dispersion": True, # Kolsky–Futterman phase (reference frequency = peak of the true wavelet)
},
"drift": {
"sigma_b_factor": 1.0,
"sigma_g_factor": 1.0,
"ell_factor": 1.0,
"step_ms": 0.0, # jump J of t(τ) just below step_horizon, independent of c
"step_width_ms": 12.0, # τ extent of the log-slowness anomaly that realises the jump
"step_horizon": "Truncation",
"jitter_sd_ms": 0.0, # Matérn-3/2 jitter of t(τ) on the warp grid (own random stream per well)
"jitter_ell_ms": 8.0,
},
}
_STRENGTH_KEYS = {
"rock_physics": ("dt_slope_factor", "dt_intercept_factor", "rho_slope_factor", "rho_intercept_factor",
"unit_dt_intercept_sd"),
"wavelet": ("phase_deg", "minphase_frac", "peak_freq_factor", "delay_ms", "Q"),
"drift": ("sigma_b_factor", "sigma_g_factor", "ell_factor", "step_ms", "jitter_sd_ms"),
}
_RP_UNIFORM = ("dt_slope_factor", "dt_intercept_factor", "rho_slope_factor", "rho_intercept_factor")
_WV_STATIONARY = ("phase_deg", "minphase_frac", "peak_freq_factor", "delay_ms")
def normalize_misspec(spec: dict | None) -> dict:
"""Fill defaults. Unknown axes or keys raise, so a typo in a locked protocol cannot silently mean 'nominal'."""
spec = spec or {}
if unknown := set(spec) - set(MISSPEC_DEFAULTS):
raise ValueError(f"unknown misspec axes {sorted(unknown)}; expected {sorted(MISSPEC_DEFAULTS)}")
out = {}
for axis, defaults in MISSPEC_DEFAULTS.items():
sub = spec.get(axis) or {}
if unknown := set(sub) - set(defaults):
raise ValueError(f"unknown misspec keys {sorted(unknown)} in '{axis}'; expected {sorted(defaults)}")
out[axis] = {k: (sub[k] if k in sub else v) for k, v in defaults.items()}
rp = out["rock_physics"]
if rp["region"] not in ("all", "test", "pool"):
raise ValueError(f"rock_physics.region must be all | test | pool, got {rp['region']!r}")
wv = out["wavelet"]
if not 0.0 <= wv["minphase_frac"] <= 1.0 or wv["peak_freq_factor"] <= 0 or (wv["Q"] is not None and wv["Q"] <= 0):
raise ValueError("wavelet: minphase_frac ∈ [0, 1], peak_freq_factor > 0, Q > 0 or None")
dr = out["drift"]
if min(dr["sigma_b_factor"], dr["sigma_g_factor"], dr["ell_factor"]) <= 0 or dr["step_width_ms"] <= 0 \
or dr["jitter_sd_ms"] < 0 or dr["jitter_ell_ms"] <= 0:
raise ValueError("drift: factors, step_width_ms and jitter_ell_ms must be > 0, jitter_sd_ms ≥ 0")
return out
def active_axes(ms: dict) -> dict:
"""{axis: {key: value}} for the strength keys that differ from nominal (empty dict: nominal generator)."""
out = {}
for axis, keys in _STRENGTH_KEYS.items():
d = {k: ms[axis][k] for k in keys if ms[axis][k] != MISSPEC_DEFAULTS[axis][k]}
if d:
out[axis] = d
return out
def preset_misspec(cfg: dict, name: str | None) -> dict | None:
"""Look up cfg["misspec_presets"][name]; None or "nominal" gives the nominal generator."""
if name in (None, "nominal"):
return None
presets = cfg.get("misspec_presets") or {}
if name not in presets:
raise KeyError(f"misspec preset {name!r} not in config (have {sorted(presets)})")
return {k: v for k, v in presets[name].items() if k != "note"}
# ------------------------------------------------------------------ wavelet transforms (fine grid)
def _spectrum_buffer(w: np.ndarray, nfft: int) -> np.ndarray:
"""Centred odd-length wavelet → length-nfft buffer with time zero at index 0."""
return np.roll(np.concatenate([w, np.zeros(nfft - len(w))]), -(len(w) // 2))
def _extract_centred(buf: np.ndarray, n: int) -> np.ndarray:
m = n // 2
return np.concatenate([buf[-m:], buf[: m + 1]])
def peak_frequency_hz(w: np.ndarray, dt_ms: float, nfft: int = 4096) -> float:
f = np.fft.rfftfreq(nfft, dt_ms / 1000.0)
return float(f[np.argmax(np.abs(np.fft.rfft(w, nfft)))])
def fractional_minimum_phase(w: np.ndarray, frac: float, floor_db: float = -80.0) -> np.ndarray:
"""Same amplitude spectrum, phase spectrum frac·θ_min(f) (cepstral minimum-phase construction), re-centred at
the lag of maximum cross-correlation with the input so that the bulk delay is removed and only the
frequency-dependent part of the phase remains. frac = 0 returns the input (up to FFT round-off)."""
n = len(w)
nfft = 1 << int(np.ceil(np.log2(8 * n)))
x = _spectrum_buffer(w, nfft)
W = np.fft.rfft(x)
A = np.maximum(np.abs(W), 10 ** (floor_db / 20) * np.abs(W).max())
c = np.fft.irfft(np.log(A), nfft) # real cepstrum
fold = np.zeros(nfft)
fold[0], fold[nfft // 2] = c[0], c[nfft // 2]
fold[1: nfft // 2] = 2.0 * c[1: nfft // 2]
theta_min = np.imag(np.fft.rfft(fold)) # log W_min = ln A + i θ_min
y = np.fft.irfft(W * np.exp(1j * frac * theta_min), nfft)
xc = np.fft.irfft(np.fft.rfft(y) * np.conj(np.fft.rfft(x)), nfft)
lag = int(np.argmax(xc))
lag = lag - nfft if lag > nfft // 2 else lag
return _extract_centred(np.roll(y, -lag), n)
def true_stationary_wavelet(w_fine: np.ndarray, dt_ms: float, wv: dict) -> np.ndarray:
"""Stationary part of the true wavelet on the fine grid: peak-frequency scaling, fractional minimum phase,
constant phase rotation, bulk delay, then a Tukey taper (outer 1/8 of each side) and unit peak."""
n = len(w_fine)
tf = (np.arange(n) - n // 2) * dt_ms
w = w_fine.astype(float)
if wv["peak_freq_factor"] != 1.0:
w = np.interp(wv["peak_freq_factor"] * tf, tf, w, left=0.0, right=0.0)
if wv["minphase_frac"] != 0.0:
w = fractional_minimum_phase(w, wv["minphase_frac"])
if wv["phase_deg"] != 0.0:
w = rotate_phase(w, wv["phase_deg"])
if wv["delay_ms"] != 0.0:
k = int(round(wv["delay_ms"] / dt_ms))
w = np.roll(w, k)
if k > 0:
w[:k] = 0.0
elif k < 0:
w[k:] = 0.0
w = w * signal.windows.tukey(n, 0.25)
return w / np.max(np.abs(w))
def q_kernel(w_fine: np.ndarray, dt_ms: float, Q: float, delta_t_ms: float, dispersion: bool, f_ref_hz: float,
half_len: int = 256) -> np.ndarray:
"""Wavelet after constant-Q propagation over delta_t_ms relative to the reference time: amplitude
exp(−π f Δt/Q), Kolsky–Futterman phase (2 f Δt/Q)·ln(f/f_ref) (slower below f_ref, faster above). Returns a
centred kernel of length 2·half_len + 1 on the fine grid."""
n = len(w_fine)
nfft = 1 << int(np.ceil(np.log2(4 * max(n, 2 * half_len + 1))))
f = np.fft.rfftfreq(nfft, dt_ms / 1000.0)
W = np.fft.rfft(_spectrum_buffer(w_fine, nfft))
dts = delta_t_ms / 1000.0
H = np.exp(-np.pi * f * dts / Q)
if dispersion:
with np.errstate(divide="ignore"):
ph = np.where(f > 0, 2.0 * f * dts / Q * np.log(np.maximum(f, 1e-12) / f_ref_hz), 0.0)
H = H * np.exp(1j * ph)
return _extract_centred(np.fft.irfft(W * H, nfft), 2 * half_len + 1)
def forward_fine_q(ai: np.ndarray, t_fine: np.ndarray, t_out: np.ndarray, w_fine: np.ndarray, Q: float,
t_ref_ms: float, dispersion: bool, f_ref_hz: float, bank_dt_ms: float = 50.0) -> np.ndarray:
"""forward_fine with a constant-Q time-variant wavelet: the reflectivity at time t′ is convolved with the
kernel q_kernel(t′ − t_ref). Kernels are tabulated every bank_dt_ms and interpolated linearly in t′ (the
operator varies as exp(−π f Δt/Q), so the interpolation error is second order in bank_dt/Q)."""
ai = np.atleast_2d(ai)
r = (ai[:, 1:] - ai[:, :-1]) / (ai[:, 1:] + ai[:, :-1])
tm = 0.5 * (t_fine[1:] + t_fine[:-1])
d = t_fine[1] - t_fine[0]
half = 256
pad = half * d + bank_dt_ms
tb = np.arange(t_out[0] - pad, t_out[-1] + pad + bank_dt_ms / 2, bank_dt_ms)
idx = np.clip(np.searchsorted(tb, tm) - 1, 0, len(tb) - 2)
lam = np.clip((tm - tb[idx]) / bank_dt_ms, 0.0, 1.0)
s = np.zeros_like(r)
for k, t_k in enumerate(tb):
wk = np.where(idx == k, 1.0 - lam, 0.0) + np.where(idx == k - 1, lam, 0.0)
if np.any(wk > 0):
ker = q_kernel(w_fine, d, Q, t_k - t_ref_ms, dispersion, f_ref_hz, half)
s += signal.fftconvolve(r * wk[None, :], ker[None, :], mode="same", axes=1)
return np.stack([np.interp(t_out, tm, si) for si in s])
# ------------------------------------------------------------------ earth model primitives
def ou_process(n: int, d: float, sd: float, ell: float, rng) -> np.ndarray: def ou_process(n: int, d: float, sd: float, ell: float, rng) -> np.ndarray:
rho = np.exp(-d / ell) rho = np.exp(-d / ell)
e = rng.standard_normal(n) * sd * np.sqrt(1 - rho**2) e = rng.standard_normal(n) * sd * np.sqrt(1 - rho**2)
@@ -86,10 +304,20 @@ class D2Well:
class D2Realization: class D2Realization:
"""A single realization: earth model, pseudo-well locations, noise, and standard normal draws for drift/picks.""" """A single realization: earth model, pseudo-well locations, noise, and standard normal draws for drift/picks.
def __init__(self, cfg: dict, rid: int, hg: HorizonGrid, drift: WarpHyper, wavelet: np.ndarray): misspec: None (nominal) or {"rock_physics": {...}, "wavelet": {...}, "drift": {...}} with the keys of
MISSPEC_DEFAULTS. The normalised parameters are stored in `misspec`, the non-nominal ones in `misspec_active`.
`wavelet`/`w_fine` are the stationary true wavelet (the nominal objects when the wavelet axis is nominal);
`wavelet_nominal`/`w_fine_nominal` the analyst's reference; `drift_true` the hyperparameters the truth is
drawn from (`drift` when nominal)."""
def __init__(self, cfg: dict, rid: int, hg: HorizonGrid, drift: WarpHyper, wavelet: np.ndarray,
misspec: dict | None = None):
self.cfg, self.rid, self.drift = cfg, rid, drift self.cfg, self.rid, self.drift = cfg, rid, drift
self.misspec = normalize_misspec(misspec)
self.misspec_active = active_axes(self.misspec)
self.misspec_info = {"monotone_repairs": 0}
rng = np.random.default_rng([int(rid), 20261026]) rng = np.random.default_rng([int(rid), 20261026])
f = cfg["fine_dt_ms"] f = cfg["fine_dt_ms"]
self.dt = cfg["dt_ms"] self.dt = cfg["dt_ms"]
@@ -101,8 +329,10 @@ class D2Realization:
self.t_ext = np.arange(e0, e1 + self.dt / 2, self.dt) self.t_ext = np.arange(e0, e1 + self.dt / 2, self.dt)
self.main = (self.t_ext >= m0) & (self.t_ext <= m1) self.main = (self.t_ext >= m0) & (self.t_ext <= m1)
self.t_main = self.t_ext[self.main] self.t_main = self.t_ext[self.main]
self.wavelet = wavelet self.wavelet_nominal = wavelet
self.w_fine = fine_wavelet(wavelet, int(round(self.dt / f))) self.w_fine_nominal = fine_wavelet(wavelet, int(round(self.dt / f)))
self.wavelet, self.w_fine = self._true_wavelet()
self.f_ref_hz = peak_frequency_hz(self.w_fine, f)
# Stratigraphic framework # Stratigraphic framework
valid = hg.valid_mask(cfg["min_gap_ms"], cfg["patch_radius"]) valid = hg.valid_mask(cfg["min_gap_ms"], cfg["patch_radius"])
@@ -142,6 +372,18 @@ class D2Realization:
self.xy_c, self.xy_s = xy_all.mean(0), np.ptp(xy_all, 0) / 2 self.xy_c, self.xy_s = xy_all.mean(0), np.ptp(xy_all, 0) / 2
Kg = kernel_matrix(self.grid.tau, self.grid.tau, 1.0, drift.ell_ms, drift.kernel) Kg = kernel_matrix(self.grid.tau, self.grid.tau, 1.0, drift.ell_ms, drift.kernel)
self.Lg = np.linalg.cholesky(Kg + 1e-8 * np.eye(self.grid.n)) self.Lg = np.linalg.cholesky(Kg + 1e-8 * np.eye(self.grid.n))
self.drift_true, self.Lg_true = self._true_drift()
# Misspecification draws from separate streams (the nominal stream `rng` is consumed exactly as before)
rp = self.misspec["rock_physics"]
self.unit_dt_shift = None
if rp["unit_dt_intercept_sd"] > 0:
self.unit_dt_shift = rp["unit_dt_intercept_sd"] * np.random.default_rng([int(rid), 20261029, 1]).standard_normal(nu)
dr = self.misspec["drift"]
self.Lj = None
if dr["jitter_sd_ms"] > 0:
Kj = kernel_matrix(self.grid.tau, self.grid.tau, 1.0, dr["jitter_ell_ms"], "matern32")
self.Lj = np.linalg.cholesky(Kj + 1e-8 * np.eye(self.grid.n))
self.wells: list[D2Well] = [] self.wells: list[D2Well] = []
for tag, idx in [("T", test), ("P", train)]: for tag, idx in [("T", test), ("P", train)]:
@@ -149,6 +391,83 @@ class D2Realization:
self.wells.append(self._make_well(f"{tag}{n:02d}", int(il_all[k]), int(xl_all[k]), rng)) self.wells.append(self._make_well(f"{tag}{n:02d}", int(il_all[k]), int(xl_all[k]), rng))
self.test = self.wells[: W["n_test"]] self.test = self.wells[: W["n_test"]]
self.pool = self.wells[W["n_test"]:] self.pool = self.wells[W["n_test"]:]
if self.Lj is not None:
for k, w in enumerate(self.wells):
w.extra["z_jitter"] = np.random.default_rng([int(rid), 20261029, 2, k]).standard_normal(self.grid.n)
# ------------------------------------------------------------ misspecified truth
def _true_wavelet(self) -> tuple[np.ndarray, np.ndarray]:
wv = self.misspec["wavelet"]
if all(wv[k] == MISSPEC_DEFAULTS["wavelet"][k] for k in _WV_STATIONARY):
return self.wavelet_nominal, self.w_fine_nominal
fac = int(round(self.dt / self.cfg["fine_dt_ms"]))
w_fine = true_stationary_wavelet(self.w_fine_nominal, self.cfg["fine_dt_ms"], wv)
return w_fine[::fac].copy(), w_fine
def _true_drift(self) -> tuple[WarpHyper, np.ndarray]:
dr, d = self.misspec["drift"], self.drift
if dr["sigma_b_factor"] == 1.0 and dr["sigma_g_factor"] == 1.0 and dr["ell_factor"] == 1.0:
return d, self.Lg
h = WarpHyper(d.m_g, d.sigma_g * dr["sigma_g_factor"], d.ell_ms * dr["ell_factor"],
d.sigma_b_ms * dr["sigma_b_factor"], d.sigma_a_ms, d.kernel)
Lg = self.Lg
if dr["ell_factor"] != 1.0:
Kg = kernel_matrix(self.grid.tau, self.grid.tau, 1.0, h.ell_ms, h.kernel)
Lg = np.linalg.cholesky(Kg + 1e-8 * np.eye(self.grid.n))
return h, Lg
def rp_applies(self, name: str) -> bool:
"""Whether the rock-physics misspecification acts on the well `name` (region all | test | pool)."""
rp = self.misspec["rock_physics"]
if "rock_physics" not in self.misspec_active:
return False
return rp["region"] == "all" or (rp["region"] == "test") == name.startswith("T")
def phi_to_ai_true(self, phi: np.ndarray, unit: np.ndarray | None = None) -> np.ndarray:
"""The earth's φ → AI mapping under the rock-physics misspecification (nominal relations when the axis is
nominal). `unit`: stratigraphic unit index per sample, required when unit_dt_intercept_sd > 0."""
if "rock_physics" not in self.misspec_active:
return phi_to_ai(phi)
rp = self.misspec["rock_physics"]
a = PHI_DT_A * rp["dt_intercept_factor"]
if self.unit_dt_shift is not None:
if unit is None:
raise ValueError("unit index required for the per-unit intercept shift")
a = a * (1.0 + self.unit_dt_shift[np.asarray(unit)])
return phi_to_ai_coef(phi, a, PHI_DT_B * rp["dt_slope_factor"], RHO_0 * rp["rho_intercept_factor"],
RHO_1 * rp["rho_slope_factor"])
def ai_log_true(self, w: D2Well, obs: dict) -> np.ndarray:
"""True AI on the τ axis of the log (what a forward model with the true rock physics would use); equals
obs["ai_log"] when the rock physics is nominal for this well."""
if not self.rp_applies(w.name):
return phi_to_ai(obs["phi_log"])
unit = None
if self.unit_dt_shift is not None:
unit = np.searchsorted(self.S_ref, strat_map(obs["t_of_tau_true"], self.hg.at(w.il, w.xl), self.h_ref))
return self.phi_to_ai_true(obs["phi_log"], unit)
def true_wavelet_at(self, t_ms: float) -> np.ndarray:
"""Effective fine wavelet for a reflector at true time t_ms (the stationary wavelet unless Q is set)."""
wv = self.misspec["wavelet"]
if wv["Q"] is None:
return self.w_fine
return q_kernel(self.w_fine, self.cfg["fine_dt_ms"], wv["Q"], t_ms - wv["Q_t_ref_ms"], wv["Q_dispersion"],
self.f_ref_hz)
def _ai_true(self, phi: np.ndarray, h_bin: np.ndarray, name: str) -> np.ndarray:
if not self.rp_applies(name):
return phi_to_ai(phi)
unit = self._unit_index(h_bin)[1] if self.unit_dt_shift is not None else None
return self.phi_to_ai_true(phi, unit)
def _forward(self, ai: np.ndarray) -> np.ndarray:
wv = self.misspec["wavelet"]
if wv["Q"] is None:
return forward_fine(ai, self.t_fine, self.t_ext, self.w_fine)
return forward_fine_q(ai, self.t_fine, self.t_ext, self.w_fine, wv["Q"], wv["Q_t_ref_ms"], wv["Q_dispersion"],
self.f_ref_hz)
# ------------------------------------------------------------ earth model # ------------------------------------------------------------ earth model
@@ -161,9 +480,13 @@ class D2Realization:
s += [h_ref[-1] + k * sub_ms for k in range(0, int((t1 - h_ref[-1]) // sub_ms) + 1)] s += [h_ref[-1] + k * sub_ms for k in range(0, int((t1 - h_ref[-1]) // sub_ms) + 1)]
return np.array(s) return np.array(s)
def _phi_trace(self, h_bin, xy, grf_s, s_axis): def _unit_index(self, h_bin) -> tuple[np.ndarray, np.ndarray]:
"""Stratigraphic coordinate and unit index of t_fine at a bin with horizon times h_bin."""
s = strat_map(self.t_fine, h_bin, self.h_ref) s = strat_map(self.t_fine, h_bin, self.h_ref)
unit = np.searchsorted(self.S_ref, s) return s, np.searchsorted(self.S_ref, s)
def _phi_trace(self, h_bin, xy, grf_s, s_axis):
s, unit = self._unit_index(h_bin)
u = (np.asarray(xy) - self.xy_c) / self.xy_s u = (np.asarray(xy) - self.xy_c) / self.xy_s
off = self.unit_off[unit] + self.unit_grad[unit] @ u off = self.unit_off[unit] + self.unit_grad[unit] @ u
phi = self.phi0 + self.cfg["property"]["slope_per_100ms"] * (self.t_fine - 850.0) / 100.0 + off phi = self.phi0 + self.cfg["property"]["slope_per_100ms"] * (self.t_fine - 850.0) / 100.0 + off
@@ -183,10 +506,11 @@ class D2Realization:
phi = self._phi_trace(h, xy, grf, s_axis) phi = self._phi_trace(h, xy, grf, s_axis)
if di == 0 and dj == 0: if di == 0 and dj == 0:
phi_c = phi phi_c = phi
traces.append(phi_to_ai(phi)) traces.append(self._ai_true(phi, h, name))
seis = forward_fine(np.stack(traces), self.t_fine, self.t_ext, self.w_fine) seis = self._forward(np.stack(traces))
white = rng.standard_normal((len(traces), len(self.t_ext) + len(self.wavelet))) wn_len = len(self.wavelet_nominal)
noise = np.stack([np.convolve(wn, self.wavelet, "same")[len(self.wavelet) // 2: len(self.wavelet) // 2 + len(self.t_ext)] white = rng.standard_normal((len(traces), len(self.t_ext) + wn_len))
noise = np.stack([np.convolve(wn, self.wavelet_nominal, "same")[wn_len // 2: wn_len // 2 + len(self.t_ext)]
for wn in white]) for wn in white])
noise /= noise[len(traces) // 2].std() noise /= noise[len(traces) // 2].std()
h0 = self.hg.at(il, xl) h0 = self.hg.at(il, xl)
@@ -199,15 +523,56 @@ class D2Realization:
# ------------------------------------------------------------ observations per cell configuration # ------------------------------------------------------------ observations per cell configuration
def true_warp(self, w: D2Well, c: float) -> tuple[float, np.ndarray]: def true_warp(self, w: D2Well, c: float) -> tuple[float, np.ndarray]:
d = self.drift """(b, g) of the true warp on the warp grid: the GP part scaled by c, plus the step anomaly (drift
g = c * (d.m_g + d.sigma_g * (self.Lg @ w.z_g)) misspecification) folded into g. The jitter component is not representable by g; see true_warp_grid."""
return c * d.sigma_b_ms * w.z_b, g d = self.drift_true
g = c * (d.m_g + d.sigma_g * (self.Lg_true @ w.z_g))
b = c * d.sigma_b_ms * w.z_b
if self.misspec["drift"]["step_ms"] != 0.0:
g = self._add_step(w, b, g)
return b, g
def _add_step(self, w: D2Well, b: float, g: np.ndarray) -> np.ndarray:
"""Jump J of t(τ) just below the step horizon: g += a on the first n_w grid nodes after τ_h = t⁻¹(t_h),
with a = ln(1 + J / (Δτ Σ e^{g_i})) so that the trapezoid integral gives exactly J below the anomaly."""
dr = self.misspec["drift"]
t_h = float(self.hg.at(w.il, w.xl)[self.cfg["horizons"].index(dr["step_horizon"])])
t_grid = self.grid.t_of_tau(b, g)[0]
tau_h = np.interp(t_h, t_grid, self.grid.tau)
n_w = max(1, int(round(dr["step_width_ms"] / self.grid.dtau)))
i0 = int(np.searchsorted(self.grid.tau, tau_h, side="right"))
nodes = np.arange(max(i0, 1), min(i0 + n_w, self.grid.n - 1))
if len(nodes) == 0:
raise ValueError(f"{w.name}: step horizon {dr['step_horizon']} at t = {t_h} ms lies outside the warp grid")
s = self.grid.dtau * np.exp(g[nodes]).sum()
if dr["step_ms"] <= -s:
raise ValueError(f"{w.name}: step_ms = {dr['step_ms']} would make the warp non-monotone (min {-s:.2f} ms)")
g = g.copy()
g[nodes] += np.log1p(dr["step_ms"] / s)
return g
def true_warp_grid(self, w: D2Well, c: float) -> np.ndarray:
"""t(τ) on the warp grid including every misspecified component (identical to grid.t_of_tau(b, g) unless
jitter is set)."""
b, g = self.true_warp(w, c)
return self._warp_grid(w, b, g)
def _warp_grid(self, w: D2Well, b: float, g: np.ndarray) -> np.ndarray:
t = self.grid.t_of_tau(b, g)[0]
if self.Lj is not None:
t = t + self.misspec["drift"]["jitter_sd_ms"] * (self.Lj @ w.extra["z_jitter"])
dmin = 0.1 * self.grid.dtau
dt = np.diff(t)
if np.any(dt < dmin): # safeguard: keep t(τ) strictly increasing (counted)
self.misspec_info["monotone_repairs"] += int(np.sum(dt < dmin))
t = t[0] + np.concatenate([[0.0], np.cumsum(np.maximum(dt, dmin))])
return t
def observe(self, w: D2Well, c: float, snr_db: float | None, sigma_a_ms: float, def observe(self, w: D2Well, c: float, snr_db: float | None, sigma_a_ms: float,
anchor_density: str = "full") -> dict: anchor_density: str = "full") -> dict:
"""Data for one well at drift factor c: noisy seismic, logs on τ, anchors and the true warp.""" """Data for one well at drift factor c: noisy seismic, logs on τ, anchors and the true warp."""
b, g = self.true_warp(w, c) b, g = self.true_warp(w, c)
t_tau_grid = self.grid.t_of_tau(b, g)[0] t_tau_grid = self._warp_grid(w, b, g)
t_tau = np.interp(self.tau_fine, self.grid.tau, t_tau_grid) t_tau = np.interp(self.tau_fine, self.grid.tau, t_tau_grid)
if t_tau[0] < self.t_fine[0] or t_tau[-1] > self.t_fine[-1]: if t_tau[0] < self.t_fine[0] or t_tau[-1] > self.t_fine[-1]:
raise ValueError(f"{w.name}: warp extends outside the earth-model domain (c = {c})") raise ValueError(f"{w.name}: warp extends outside the earth-model domain (c = {c})")

View File

@@ -52,6 +52,12 @@ def bank_loss(mu, sigma, Y, logpi, starts, win: int, lam: float | None):
return -(v / (lam * win)).mean() return -(v / (lam * win)).mean()
def responsibilities(mu, sigma, Y, logpi, starts, win: int, lam: float):
"""r (B, J, S) = softmax_s(log π_s + λ ℓ_wjs): the weights of Lemma 3 (∇ RML = −(1/n) Σ_s r_s ∇ℓ_s)."""
ll = window_loglik(mu, sigma, Y, starts, win)
return torch.softmax(logpi[:, None, :] + lam * ll, dim=-1)
def mse_bank_loss(mu, Y, starts, win: int): def mse_bank_loss(mu, Y, starts, win: int):
"""Mean MSE over the labels of the bank (H1: the optimum is the label blurred by p_δ).""" """Mean MSE over the labels of the bank (H1: the optimum is the label blurred by p_δ)."""
m = gather_windows(mu, starts, win)[:, :, None, :] m = gather_windows(mu, starts, win)[:, :, None, :]

View File

@@ -37,9 +37,10 @@ def zscore_patch(seis: np.ndarray, sel: np.ndarray) -> np.ndarray:
def train_predict(X: np.ndarray, Xte: np.ndarray, spec: dict, cfg: dict, seed: int, budgets: list[int], def train_predict(X: np.ndarray, Xte: np.ndarray, spec: dict, cfg: dict, seed: int, budgets: list[int],
device: str) -> dict[int, tuple[np.ndarray, np.ndarray]]: device: str, on_budget=None) -> dict[int, tuple[np.ndarray, np.ndarray]]:
"""X (N, C, L), Xte (M, C, L); labels in spec are already standardised. Returns {budget: (μ, σ)} for """X (N, C, L), Xte (M, C, L); labels in spec are already standardised. Returns {budget: (μ, σ)} for
Xte (M, L), on the standardised scale.""" Xte (M, L), on the standardised scale. on_budget (optional): callback on_budget(step, model) invoked right
after the predictions at each budget step (model in eval mode); the default None leaves the loop unchanged."""
# Same RNG stream as torch.manual_seed, but only touches the selected device: manual_seed_all opens a CUDA # Same RNG stream as torch.manual_seed, but only touches the selected device: manual_seed_all opens a CUDA
# context on every visible GPU (shared machine). # context on every visible GPU (shared machine).
torch.default_generator.manual_seed(seed) torch.default_generator.manual_seed(seed)
@@ -80,4 +81,6 @@ def train_predict(X: np.ndarray, Xte: np.ndarray, spec: dict, cfg: dict, seed: i
opt.step() opt.step()
if step in budgets: if step in budgets:
out[step] = predict(model, Xte, device) out[step] = predict(model, Xte, device)
if on_budget is not None:
on_budget(step, model)
return out return out

27
operations/p6_s1_watcher.sh Executable file
View File

@@ -0,0 +1,27 @@
#!/usr/bin/env bash
# P6 S1 launcher: waits for GPU headroom on the shared H200s, then starts the S1 drivers in tmux.
# Two disjoint regime groups (the runner does not claim jobs, so drivers must not overlap):
# A = R10 Rm5 R0 (protocol priority), B = R0h R10tb (cut first if late).
# A slot starts on a card only when free memory stays >= 2500 MiB + 2 workers x 1600 MiB on two
# readings one minute apart; workers = min(4, (free - 2500) / 1600). Never touches other jobs.
set -u
cd "$(dirname "$0")/.."
groups=("R10 Rm5 R0" "R0h R10tb"); names=(p6_s1a p6_s1b); next=0
log() { echo "$(date -u +%FT%TZ) $*"; }
free_mib() { nvidia-smi --query-gpu=memory.free --format=csv,noheader,nounits -i "$1" | tr -d ' '; }
log "watcher start"
while (( next < ${#groups[@]} )); do
for g in 0 1; do
(( next < ${#groups[@]} )) || break
f1=$(free_mib $g); (( f1 >= 5700 )) || continue
sleep 60; f2=$(free_mib $g); f=$(( f1 < f2 ? f1 : f2 )); (( f >= 5700 )) || continue
w=$(( (f - 2500) / 1600 )); (( w > 4 )) && w=4
n=${names[$next]}; r=${groups[$next]}
tmux new-session -d -s "$n" -c "$PWD" \
"env STUDIES=S1 REGIMES='$r' DEVICE=cuda:$g WORKERS=$w MEM_GB=2 scripts/run_bench.sh posterior train >> logs/bench_${n}_cuda$g.out 2>&1"
log "launched $n regimes=[$r] cuda:$g workers=$w (free ${f1}/${f2} MiB)"
next=$(( next + 1 )); sleep 300 # let the new workers allocate before the next reading
done
sleep 300
done
log "all S1 groups launched; watcher exits"

176
operations/p6_supervisor.py Normal file
View File

@@ -0,0 +1,176 @@
#!/usr/bin/env python3
"""P6 run supervisor (outside the protocol_bench lock; launches only scripts/run_bench.sh).
Every CYCLE seconds it logs a GPU snapshot and, for each driver spec:
* a dead, unfinished driver is relaunched in the user's tmux server on the card with the most free
memory, workers = min(target, (free - RESERVE) / PER_WORKER); it waits if neither card has room;
* when a driver finishes, its workers go to the unfinished driver with the most remaining jobs
(restart with more workers, at most CAP_DRIVER; in-flight jobs of that driver are lost and redone).
Drivers resume by fingerprint, so restarts never change results. Other users' processes are never touched.
"""
import json, os, re, signal, subprocess, time
from pathlib import Path
REPO = Path(__file__).resolve().parents[1]
STATE = REPO / "logs" / "p6_supervisor_state.json"
CYCLE, RESERVE, PER_WORKER = 300, 2500, 1700 # s, MiB kept free for others, MiB per SMC worker (measured 1556)
W_TOTAL, CAP_DRIVER, CAP_CARD, MAX_RESTARTS, MIN_BOOST_JOBS = 36, 16, 24, 5, 10
SPECS = { # adopted drivers launched at 16:07 UTC 29/10
"p6_s2": dict(studies="S2", regimes="", stages="posterior train", device="cuda:1", workers=6, log="logs/bench_s2_cuda1.out"),
"p6_s1a": dict(studies="S1", regimes="R10 Rm5 R0", stages="posterior train", device="cuda:0", workers=5, log="logs/bench_s1a_cuda0.out"),
"p6_s1b": dict(studies="S1", regimes="R0h R10tb", stages="posterior train", device="cuda:1", workers=2, log="logs/bench_s1b_cuda1.out"),
"p6_s348": dict(studies="S3 S4 S8", regimes="", stages="train", device="cuda:0", workers=4, log="logs/bench_s348_cuda0.out"),
# 30/10 01:05 UTC: p6_s1b split into two disjoint regime drivers to use the freed CPUs/GPUs
"p6_s1b_r0h": dict(studies="S1", regimes="R0h", stages="posterior train", device="cuda:0", workers=14, log="logs/bench_s1b_r0h_cuda0.out"),
"p6_s1b_r10tb": dict(studies="S1", regimes="R10tb", stages="posterior train", device="cuda:1", workers=14, log="logs/bench_s1b_r10tb_cuda1.out"),
}
def log(msg):
print(time.strftime("%Y-%m-%dT%H:%M:%SZ", time.gmtime()), msg, flush=True)
def sh(cmd):
return subprocess.run(cmd, shell=True, capture_output=True, text=True).stdout.strip()
def gpus():
out = sh("nvidia-smi --query-gpu=index,memory.free,memory.used,utilization.gpu --format=csv,noheader,nounits")
return {f"cuda:{r[0]}": dict(free=int(r[1]), used=int(r[2]), util=int(r[3]))
for r in (list(map(str.strip, l.split(","))) for l in out.splitlines())}
def alive(name):
return subprocess.run(["tmux", "has-session", "-t", name], capture_output=True).returncode == 0
def tail_info(path):
"""(last runlog line, last progress (stage, k, n)) of a driver log."""
try:
lines = (REPO / path).read_text(errors="replace").splitlines()[-4000:]
except FileNotFoundError:
return None, None
rl = next((l for l in reversed(lines) if l.startswith("[runlog]")), None)
pr = None
for l in reversed(lines):
m = re.match(r"\[(posterior|train):[^ ]+ (\d+)/(\d+)\]", l)
if m:
pr = (m.group(1), int(m.group(2)), int(m.group(3)))
break
return rl, pr
def finished(name, s):
if (REPO / "logs" / f"p6_done_{name}").exists():
return True
rl, _ = tail_info(s["log"])
return bool(rl and " ok exit 0 " in rl and "_bench_train_" in rl)
def remaining(s):
_, pr = tail_info(s["log"])
if pr is None:
return 10 ** 6
stage, k, n = pr
return (n - k) + (n if stage == "posterior" and "train" in s["stages"] else 0)
def descendants(pid):
kids = sh(f"pgrep -P {pid}").split()
return [int(k) for k in kids] + [d for k in kids for d in descendants(int(k))]
def stop(name):
pane = sh(f"tmux list-panes -t {name} -F '#{{pane_pid}}'")
pids = descendants(int(pane)) if pane.isdigit() else []
for p in pids:
try:
os.kill(p, signal.SIGTERM)
except ProcessLookupError:
pass
time.sleep(20)
for p in pids:
try:
os.kill(p, signal.SIGKILL)
except ProcessLookupError:
pass
subprocess.run(["tmux", "kill-session", "-t", name], capture_output=True)
def card_load(state, exclude=None):
load = {"cuda:0": 0, "cuda:1": 0}
for n, s in state.items():
if n != exclude and s.get("status") == "running":
load[s["device"]] += s["workers"]
return load
def launch(name, s, state, target):
g, load = gpus(), card_load(state, exclude=name)
best = None
for dev in sorted(g, key=lambda d: (load[d], -g[d]["free"])):
w = min(target, (g[dev]["free"] - RESERVE) // PER_WORKER, CAP_CARD - load[dev])
if w >= 1:
best = (dev, int(w))
break
if best is None:
log(f"{name}: no room (free {[g[d]['free'] for d in sorted(g)]} MiB); waiting")
s["status"] = "waiting"
return
dev, w = best
s["log"] = f"logs/bench_{name.replace('p6_', '')}_{dev.replace(':', '')}.out"
env = f"STUDIES='{s['studies']}' DEVICE={dev} WORKERS={w} MEM_GB=2" + (f" REGIMES='{s['regimes']}'" if s["regimes"] else "")
cmd = f"env {env} scripts/run_bench.sh {s['stages']} >> {s['log']} 2>&1 && touch logs/p6_done_{name}"
subprocess.run(["tmux", "new-session", "-d", "-s", name, "-c", str(REPO), cmd], check=True)
s.update(device=dev, workers=w, status="running")
log(f"{name}: launched on {dev} with {w} workers ({s['studies']} {s['regimes']}; log {s['log']})")
def main():
state = json.loads(STATE.read_text()) if STATE.exists() else {n: dict(s, status="running", restarts=0) for n, s in SPECS.items()}
log(f"supervisor start; specs {list(state)}")
while True:
g = gpus()
log("gpu " + " ".join(f"{d}: free {v['free']} used {v['used']} util {v['util']}%" for d, v in sorted(g.items()))
+ " | " + " ".join(f"{n}={s['status']}/{s['device']}x{s['workers']}/rem {remaining(s) if s['status'] != 'done' else 0}"
for n, s in state.items()))
newly_done = False
for n, s in state.items():
if s["status"] in ("done", "failed", "replaced"):
continue
if alive(n):
continue
if finished(n, s):
s["status"] = "done"
newly_done = True
log(f"{n}: finished")
elif s["restarts"] >= MAX_RESTARTS:
s["status"] = "failed"
log(f"{n}: dead after {MAX_RESTARTS} restarts; giving up (see {s['log']})")
else:
if s["status"] == "running":
s["restarts"] += 1
log(f"{n}: driver dead and unfinished (last runlog: {tail_info(s['log'])[0]}); restart {s['restarts']}")
launch(n, s, state, s["workers"] if s["status"] != "waiting" else SPECS[n]["workers"])
if newly_done:
running = {n: s for n, s in state.items() if s["status"] == "running" and alive(n)}
free = W_TOTAL - sum(s["workers"] for s in running.values())
cand = sorted(running, key=lambda n: -remaining(running[n]))
if free >= 2 and cand and remaining(running[cand[0]]) >= MIN_BOOST_JOBS:
n = cand[0]
s = running[n]
target = min(CAP_DRIVER, s["workers"] + free)
log(f"{n}: boosting {s['workers']} -> {target} workers ({remaining(s)} jobs remaining)")
stop(n)
s["status"] = "restarting"
launch(n, s, state, target)
STATE.write_text(json.dumps(state, indent=1))
if all(s["status"] in ("done", "failed", "replaced") for s in state.values()):
log("all drivers finished or failed; supervisor exits")
return
time.sleep(CYCLE)
if __name__ == "__main__":
main()

View File

@@ -6,36 +6,78 @@ Build (no latexmk on the server):
pdflatex main && bibtex main && pdflatex main && pdflatex main pdflatex main && bibtex main && pdflatex main && pdflatex main
``` ```
The *Geophysical Prospecting* article and its Supporting Information, which `\input`s these sections
unchanged, live in `../paper_gp/` (see its README). Edit the sections here; then rebuild both. The
condensed *Computers & Geosciences* version (`paper_cg/`, 12/11/2026) was removed from the working
tree on 16/11/2026 at the user's request (recoverable from git, commit `883dccf`). On 13/11/2026 the submission venue changed to *Geophysical
Prospecting* (EAGE/Wiley; free venues with a published real-data-failure precedent only; fallback
*Mathematical Geosciences*; *Computers & Geosciences* only with a public repository;
`../docs/research/venue-survey.md` §7; *Geoenergy Science and Engineering*, chosen on 12/11, was
dropped). The GP version was made on 16/11/2026 in `../paper_gp/` (article class, its own
supplement that `\input`s these sections; see its README). Its Appendix A copies the core
statements and proofs of `sections/A_proofs.tex`: if a proof changes here, change it there too. The
F3, Volve and Teapot entries of `refs.bib` carry `prefix = {[dataset]}`, which only `../paper_gp/gpnat.bst` prints.
The abstract, shared with `sections/00_abstract.tex` and identical in `../paper_gp/main.tex`, has 272
whitespace-separated tokens; GP states no limit, *Mathematical Geosciences* allows ≤ 250.
Red text (`\todo`, `\todoblock`, `\figplaceholder`) marks parts that are not ready. Red text (`\todo`, `\todoblock`, `\figplaceholder`) marks parts that are not ready.
Search for them with `grep -n 'todo\|figplaceholder' sections/*.tex`. Search for them with `grep -n 'todo\|figplaceholder' sections/*.tex`.
All figures in `figures/` are produced by `python scripts/22_paper_figures.py` (from the repo root, All figures in `figures/` are produced by `python scripts/22_paper_figures.py` (from the repo root,
with the `.venv`); it reads only the locked summaries listed below. with the `.venv`), except `bench_s1.pdf` and `bench_s8.pdf` (Experiment 3), which come from
`python scripts/38_bench_figures.py`; both read only the locked summaries listed below.
## Where the numbers come from ## Where the numbers come from
| Paper element | Source | | Paper element | Source |
|---|---| |---|---|
| Abstract, Sec. 1 (findings paragraph), Sec. 8, `highlights.txt` | Rows below: H2a and σ_a from `tab:h2a`/`tab:sigmaa`; bank gain and bounds (registered (a), post hoc (b)) from `tab:h2b` and `outputs/p2r/posthoc/{bound.csv,meta.json}`; wells needed from `outputs/t3/nstar.csv`; field results from App. B; Teapot counts from Sec. 6.6 sources | | Abstract, Sec. 1 (findings paragraph), Sec. 8, `highlights.txt` | Rows below: H2a and σ_a from `tab:h2a`/`tab:sigmaa`; bank gain and bounds (registered (a), post hoc (b)) from `tab:h2b` and `outputs/p2r/posthoc/{bound.csv,meta.json}`; wells needed from `outputs/t3/nstar.csv`; field results from App. B; Teapot counts from Sec. 6.7 sources; Experiment 3 (9/11 verdicts, failures, two-mode reversal) from the Sec. 6.5 rows |
| Sec. 1 (F3 drift 14–66 ms, 46 ms, 36 ms; dominant period 17–20 ms) | `outputs/td_qc.csv`, `outputs/tie_qc.csv`, `docs/plan.md` §1.2 | | Sec. 1 (F3 drift 14–66 ms, 46 ms, 36 ms; dominant period 17–20 ms) | `outputs/td_qc.csv`, `outputs/tie_qc.csv`, `docs/plan.md` §1.2 |
| Sec. 2 (label noise and errors in variables; Table `tab:positioning`) | `refs.bib` `annote` fields: Mnih & Hinton (2012) read in full on 2026-10-29 (Secs. 5, 6.1, 6.3); Balakrishnan (1962) metadata from Crossref only, cited for the general statement; abstract-only entries flagged in the table | | Sec. 2 (label noise and errors in variables; Table `tab:positioning`) | `refs.bib` `annote` fields: Mnih & Hinton (2012) read in full on 2026-10-29 (Secs. 5, 6.1, 6.3); Balakrishnan (1962) metadata from Crossref only, cited for the general statement; abstract-only entries flagged in the table. Preliminary novelty scan of 2026-11-02 (`docs/plan.md` §12 item 31): Herrera & van der Baan (2014), da Costa Silva et al. (2026, Autotie) and Castagna et al. (2026) from their abstracts (OpenAlex), metadata from Crossref (Castagna et al. later read in full, 2026-11-02: timing-error remarks in their Discussion, `docs/plan.md` §12 item 33); the label source of Sukar et al. (2026) from the full text in `refs/` (Sec. 3, "Data preparation"). Full texts obtained on 2026-11-02 (`docs/plan.md` §12 item 33): Lim et al. (2025, AWSM; 44 wells, median/minimum-misfit models, TD posterior not used downstream), Lim & Cardona (2025, BootNet), Li, Grana & Liu (2024, P05; deterministic tie in the field case), Guillon et al. (2020; tolerance in evaluation only) and Rizzuti et al. (2024, 2025; wavelet treated as known, future-work statement); their ᵃ markers were removed |
| Sec. 3, Table `tab:audit` (TD drift, label audit) | `outputs/td_qc.csv`, `outputs/tie_qc.csv`, `outputs/marker_vs_horizon.csv`, `docs/plan.md` | | Sec. 3, Table `tab:audit` (TD drift, label audit; max \|Δt_wlt\| column from `td_qc.csv` since the 04/11 audit) | `outputs/td_qc.csv`, `outputs/tie_qc.csv`, `outputs/marker_vs_horizon.csv`, `docs/plan.md` |
| Sec. 3.3 (Volve data: licence, label check, deviated wells, cube, time–depth, anchors, labels) | `outputs/volve/volve_wells_summary.json`, `outputs/volve/{summary.json,anchors.csv,pick_vs_horizon.csv,pick_vs_checkshot.csv,horizon_lag.csv}`, `docs/research/volve-inventory.md`, `docs/plan.md` §12 items 7 and 18 | | Sec. 3.2, paragraph "Misspecified simulators" and App. C (presets, scale factors, Q 80 peak shift, model error 0.23 nominal and 1.08–1.93 for the presets, L1 levels above the declared band, minphase 0.25 candidate, Rm5 null 1.78× and 0.22–0.34) | Presets: `configs/protocol_bench.yaml` (`studies.S2.presets`) and the `misspec_presets` block of `configs/d2_synth_bench.yaml`; generator `ml_porosity/data/synth_d2.py` (`misspec=`); level choice on dev 902–905 and the model-error table: `docs/research/bench-protocol.md` (S2 level table and decisions) and `docs/research/bench-generator.md`, QC from `scripts/33_bench_generator_qc.py` |
| Sec. 4, Table `tab:h1`, Fig. `fig:h1` | `outputs/p2/summary/main/h1.csv`, `docs/theory.md` | | App. B.2, paragraph "Data" (Volve data: licence, label check, deviated wells, cube, time–depth, anchors, labels; Sec. 3.3 until 09/11/2026) | `outputs/volve/volve_wells_summary.json`, `outputs/volve/{summary.json,anchors.csv,pick_vs_horizon.csv,pick_vs_checkshot.csv,horizon_lag.csv}`, `docs/research/volve-inventory.md`, `docs/plan.md` §12 items 7 and 18 |
| Sec. 4.3–4.5 (Propositions 3–6, Corollaries 3–4, Remark 1, ρ*) | Analytic; proofs in App. A; Vietnamese statements in `docs/theory.md` §6. The factors 1.10 and 1.77 are e^{4π²σ²f²} at σ = 2 ms, f = 25 and 60 Hz (`meta.json` `transfer_ratio_exp_4pi2s2f2`); 71–73% coherent power below 25 Hz, the 67–72 Hz f⁴-weighted median and the (b)/(a) integral ratios 1.5–1.7, 2.1–2.6 and 3.3–4.6 are from `outputs/p2r/posthoc/meta.json` `n16_spectra` (coherent part: `coherent_share_below_25hz`, `f4_weighted_median_hz.coherent`; integral ratios span the Oracle and coherent spectra over the five regimes); 30–90 Hz uses the ~60 Hz F3 peak of Sec. 3.1 | | Sec. 5 (Theory; Sec. 4 until 09/11/2026), Table `tab:h1`, Fig. `fig:h1` | `outputs/p2/summary/main/h1.csv`, `docs/theory.md` |
| Sec. 5 (prior fit on F3, LOAO, type-II σ_a) | `docs/plan.md` §12, `docs/theory.md` | | Sec. 5.3–5.5 and App. A (Propositions 3–6, Corollaries 3–4, Remark 1, ρ*) | Analytic; proofs in App. A; Vietnamese statements in `docs/theory.md` §6. The factors 1.10 and 1.77 are e^{4π²σ²f²} at σ = 2 ms, f = 25 and 60 Hz (`meta.json` `transfer_ratio_exp_4pi2s2f2`); 71–73% coherent power below 25 Hz, the 67–72 Hz f⁴-weighted median and the (b)/(a) integral ratios 1.5–1.7, 2.1–2.6 and 3.3–4.6 are from `outputs/p2r/posthoc/meta.json` `n16_spectra` (coherent part: `coherent_share_below_25hz`, `f4_weighted_median_hz.coherent`; integral ratios span the Oracle and coherent spectra over the five regimes); 30–90 Hz uses the ~60 Hz F3 peak of Sec. 3.1 |
| Sec. 4 (Methods; Sec. 5 until 09/11/2026: prior fit on F3, LOAO, type-II σ_a) | `docs/plan.md` §12, `docs/theory.md` |
| Sec. 4, paragraph "Why a Gaussian likelihood"; Sec. 7 Limitations "Loss family" (13/11/2026) | no numbers; reasons from Lemmas `lem:s1`, `lem:shift`, `lem:sdtw` and Proposition `prop:bank` (App. A); the MSE-on-bank-mean arm is `docs/research/lambda-limit-results.md`; loss ablation not run (`docs/plan.md` §12 items 52–53) |
| Sec. 4.6 (TCN backbone, budget 125 on dev 902–905), Table `tab:methods` (benchmark additions Ctl-GP, PM2, BK2, HM2, -TCN) | `configs/protocol_bench.yaml` (`methods`, `training.budgets`, `training.budgets_tcn`, `training.budget_candidates`), `ml_porosity/benchmark/`, `docs/research/bench-protocol.md` (TCN budget selection; log `logs/bench_dev_budgets_tcn.out`) |
| Sec. 6.1, Table `tab:p2`, Fig. `fig:p2phase` | `outputs/p2/summary/main/{summary.md,methods.csv}` | | Sec. 6.1, Table `tab:p2`, Fig. `fig:p2phase` | `outputs/p2/summary/main/{summary.md,methods.csv}` |
| Sec. 6.2 (diagnosis, deviation) | `docs/plan.md` §12 items 11–14 | | Sec. 6.2 (diagnosis, deviation) | `docs/plan.md` §12 items 11–14 |
| Sec. 6.3, Tables `tab:h2a`, `tab:sigmaa`, `tab:h2b`; Figs. `fig:h2b`, `fig:p2rgrid` | `outputs/p2r/summary/{summary.md,verdict.json}`; σ_post and warp RMSE from `outputs/p2r/summary/sigma_post.csv` | | Sec. 6.3, Tables `tab:h2a`, `tab:sigmaa`, `tab:h2b`; Figs. `fig:h2b`, `fig:p2rgrid` | `outputs/p2r/summary/{summary.md,verdict.json}`; σ_post and warp RMSE from `outputs/p2r/summary/sigma_post.csv` |
| Sec. 6.3, column 1/B_b of `tab:h2b` (Berkson bound at σ_post; bounds at the warp error; 60 Hz and cross-spectral variants; exact (a) bound 0.481 at σ_post for R10tb c = 2; Oracle/B3d-Sa ratios; share of the gap closed; 6 ms grid edge; post hoc) | `outputs/p2r/posthoc/{bound.csv,blur_ab.csv,meta.json}` (counts in `meta.json` `n16_wide`), written by `python scripts/31_p2r_posthoc.py` (about 6 min) from the registered summaries and the Oracle test predictions in `outputs/p2r/train/<regime>/cells/*.npz` | | Sec. 6.3, column 1/B_b of `tab:h2b` (Berkson bound at σ_post; bounds at the warp error; 60 Hz and cross-spectral variants; exact (a) bound 0.481 at σ_post for R10tb c = 2; Oracle/B3d-Sa ratios; share of the gap closed; 6 ms grid edge; post hoc) | `outputs/p2r/posthoc/{bound.csv,blur_ab.csv,meta.json}` (counts in `meta.json` `n16_wide`), written by `python scripts/31_p2r_posthoc.py` (about 6 min) from the registered summaries and the Oracle test predictions in `outputs/p2r/train/<regime>/cells/*.npz` |
| Sec. 6.3, Table `tab:t4` (dispersion ratio ξ, coverage, training length; post hoc) | `outputs/t4/{summary.csv,cells.csv,budget_dev.csv,meta.json}` (column `kappa` = ξ), written by `python scripts/30_t4_coverage.py` | | Sec. 6.3, Table `tab:t4` (dispersion ratio ξ, coverage, training length; post hoc) | `outputs/t4/{summary.csv,cells.csv,budget_dev.csv,meta.json}` (column `kappa` = ξ), written by `python scripts/30_t4_coverage.py` |
| Sec. 6.4 (mechanism) | Not run yet: T2, to be declared in `docs/research/t2-mechanism.md` | | Sec. 6.4 (mechanism; exploratory), Sec. 7 (bank-gain paragraphs) | `outputs/t2/summary.md` and the tables beside it; declaration `docs/research/t2-mechanism.md` (hashed before computing), results `docs/research/t2-results.md` |
| Sec. 6.5, Table `tab:t3` (detectability; exploratory) | `outputs/t3/{cells.csv,nstar.csv,power.csv,meta.json}`, written by `python scripts/27_t3_power.py`; declaration and Deviation 1 (σ_ref grid) in `docs/research/applicability-teapot.md` | | Sec. 6.5, Tables `tab:benchdesign`, `tab:benchverdicts` (as worded); App. C (as run) | Design: `configs/protocol_bench.yaml` (locked 2026-10-29 14:39:20 UTC, sha256 in `.sha256`, time stamp in `.lock.json`), `docs/research/bench-protocol.md`; verdicts as worded: `outputs/bench/summary/verdict_final.{json,md}` and `s3_h2a_stated.csv` (`scripts/36_bench_verdicts.py`); as run by the locked code: `outputs/bench/summary/{verdict.json,summary.md}` (`scripts/34_run_bench.py summarize`); deviation D-13 in `docs/plan.md` §12 item 28; bitwise reproduction check: `logs/bench_repro_r8.out` |
| Sec. 6.6 (gate results) | App. B sources below | | Sec. 6.5 S1, Fig. `fig:bench_s1` (phase diagram, families, additivity fit β and R²) | `outputs/bench/summary/{s1_cells,s1_h2a,s1_families,s1_additivity}.csv`; figure from `scripts/38_bench_figures.py --only bench_s1` |
| Sec. 6.6 (conditions C1–C4) | `outputs/applicability/{verdict.json,c1_pairs.csv,c2_sigma_post.csv,d2_threshold_cells.csv}`, written by `python scripts/26_applicability.py`; `docs/research/applicability-results.md` | | Sec. 6.5 S2, Table `tab:s2` (ratios, cov90, warp RMSE, degradation, Ctl-GP) | `outputs/bench/summary/{s2_cells,s2_h2a,s2_smc,s2_degradation}.csv`; model-error column from `docs/research/bench-protocol.md` (dev 902–905) |
| Sec. 6.6 (Teapot: 152 wells, time–depth tables, horizon–top reference, σ̂_knot 6.75 ms) | `outputs/teapot/inventory/` (`python -P scripts/28_teapot_inventory.py`), `outputs/teapot/pilot_pa/verdict.json` and `knots_dev.csv` (`python -P scripts/29_teapot_pilot.py`), `docs/research/applicability-results.md`, `docs/plan.md` §12 item 23 | | Sec. 6.5 S3 (as worded vs as run; Ctl-GP 16/30) | `outputs/bench/summary/{s3_h2a_stated,s3_h2a,s3_control,s3_table}.csv` |
| Sec. 6.5 S4 (TCN) | `outputs/bench/summary/{s4_cells,s4_h2a}.csv` |
| Sec. 6.5 S8, Table `tab:s8`, Fig. `fig:bench_s8` (two-mode reversal; flip-band means of PM2/BK2/HM2 against cos and cos²) | `outputs/bench/summary/{s8_cells,s8_transfer}.csv`, `s8_transfer_curves.json`; figure from `scripts/38_bench_figures.py --only bench_s8`; flip-band table (usable frequencies in 1/(2Δ) < f < 3/(2Δ)) printed by `scripts/38_bench_figures.py --flipband` (post hoc, not a verdict) |
| App. C, "Equal training budgets" | `outputs/bench/summary/equal_budget.csv` |
| App. C, "Band content of labels and predictions", Table `tab:bandspectra`; Sec. 7, "Band of the benchmark" (shares below 25 Hz: 72% synthetic labels, 73% Oracle at 10 dB, 54% F3 with 46–68% over wells; 61–79% over realizations; post hoc, descriptive) | `outputs/band_spectra/{table.csv,groups.csv,meta.json}`, written by `python scripts/40_band_spectra.py` (seconds, CPU) from `outputs/f3_wells.npz` and the Oracle predictions and `y_true` in `outputs/p2r/train/<setting>/cells/r*_c1_n16.npz`. Both inputs are in the repro archives; the output is not, and no verify step reruns the script |
| App. C, "Tempering limit"; Sec. 7, Limitations "Tempering and bank size" (λ = 10⁻³ arm and MSE on the bank-mean label; 7,040 rows reproduced; S_eff ≥ 0.99 of 64; ratios at 250 and 500 iterations; exploratory, descriptive) | `outputs/lambda_limit/{summary.md,reading.json,ratios.csv,seff.csv,selfcheck.json}`, written by `python scripts/41_lambda_limit.py --stage all --workers 4 --device cuda:0` (about 1 h on one H200); declaration `docs/research/lambda-limit.md` (hashed before computing, `.sha256`), results `docs/research/lambda-limit-results.md`; outside every lock and the repro archives |
| Sec. 4, SMC posterior paragraph (sentence on S = 64); App. C, "Bank size"; Sec. 7, Limitations "Tempering and bank size" (nested banks S = 16/64/256/1024; 7,040 rows reproduced; ratios to the 64-member bank and to the posterior mean; S_eff/S; Monte Carlo error of the mean warp; 125/500-iteration counts; exploratory, descriptive) | `outputs/bank_size/{summary.md,reading.json,ratios.csv,seff.csv,mc_error.csv,selfcheck.json}`, written by `python scripts/49_bank_size.py --stage all --workers 4 --device cuda:0` (about 1 h on one H200); declaration `docs/research/bank-size.md` (hashed before computing, `.sha256`), results `docs/research/bank-size-results.md`; outside every lock and the repro archives |
| Sec. 3.3, Table `tab:package` (package contents, 658 tasks, 46,320 runs of 21 methods) | `benchmark/README.md`, `benchmark/MANIFEST.json`, `benchmark/reference/cells.csv`; `scripts/37_bench_package.py` |
| App. C "Analyses added after review" (sharpening Ĥ, permutation null of the rules, truth-free warp disagreement); Sec. 6 rules paragraph (0.36, 0.004–0.10); Sec. 6.3 (Gaussian bank 1–2%), Sec. 6.4 bullet "Sharpening", Sec. 6.5 wavelet paragraph and S2-H2 note, Sec. 5.3, Sec. 7 "What held", practical advice item 3 | `outputs/referee_r4/{b1_transfer.csv,b2_null.csv,b2_null.json,b3_summary.csv,b3_wells.csv,meta.json}` from `scripts/42_referee_r4.py` (declared in `docs/research/referee-r4-analyses.md`, sha256 963324c1…; results `docs/research/referee-r4-results.md`; exploratory, outside every lock and the repro archives) |
| App. C "Intervals for few realizations"; Sec. 6 rules paragraph (38 and 35 of 38); Sec. 6.3 (ratios to the anchor mean, ties relative to the Oracle at c = 0); abstract and introduction (2–33%, 19–33%, 8–11%, 2–4%) | `outputs/referee_r5/{c1_intervals.csv,c2_zero_drift_vs_oracle.csv,meta.json}` from `scripts/43_referee_r5_ci.py` (declared in `docs/research/referee-r5-ci.md`, sha256 accc1c52…; results `docs/research/referee-r5-ci-results.md`; exploratory, outside every lock and the repro archives) |
| App. C "Point ties with the same information" (Table `tab:pointtie`), Sec. 6.3 (SMC-MAP and Anchor-LS paragraph), abstract and Sec. 1 (3%) | `outputs/point_tie/{ratios.csv,warp_errors.csv,selfcheck.json,cells/}` from `scripts/44_point_tie_arm.py` (declared in `docs/research/point-tie-arm.md`, sha256 3afdaf29…; results `docs/research/point-tie-arm-results.md`; exploratory) |
| App. C "Independence of the tie error", Sec. 6.4 last bullet; App. C "Blind wells needed under other tests", Sec. 6.6 | `outputs/referee_r5/{f1_summary.csv,f1_wells.csv,f2_nstar.csv,f2_power.csv}` from `scripts/45_referee_r5_followups.py` (declared in `docs/research/referee-r5-followups.md`, sha256 d631cfad…; results `docs/research/referee-r5-followups-results.md`; exploratory) |
| Sec. 6.3 "The posterior-mean and bank results replicated on eight new realizations"; abstract, Sec. 1 and Sec. 8 (7–19%); App. C (iv) | `outputs/replication/summary/{summary.md,verdict.json,h2a.csv,h2b.csv,ratios.csv,sigma_post.csv,arm_warp_errors.csv}`, `outputs/replication/fingerprints.json`, from `scripts/run_r6.sh` (locked scripts 14/15) and `scripts/46_r6_replication.py` (declared in `docs/research/r6-replication.md`, sha256 13b8b943…; results `docs/research/r6-results.md`; exploratory, not hash-locked rules for the data, outside every lock) |
| Sec. 6.3 anchor-uncertainty paragraph and Table `tab:sigmaa` (−5 dB rows, "3.5, fixed" row, refit ℓ and σ_g); Sec. 3.3, Sec. 4.1, `tab:lessons`, Limitations; App. C (v)–(vi) | `outputs/replication/summary/sigma_a.csv`, `outputs/replication/{fixhyper_summary.csv,fixhyper_summary.md,fixhyper_reading.json,hyper_sigma_a.csv}` from `scripts/46_r6_replication.py` and `scripts/47_r6_fixed_hyper.py` (same declaration) |
| App. C (i)–(iii) (calibrated sign test, F-11 T2 under four references, coverage at equal training length); App. B F-11 T2 paragraph | `outputs/r6/{a1_size.csv,a1_power.csv,a1_nstar.csv,a2_f11t2.csv,a3_coverage90.csv,summary.md}` from `scripts/48_r6_cheap.py` (same declaration; CPU) |
| Sec. 7 practical advice (posterior cost: phase fit median 7 min per cell, SMC median 11 s per well, 5–27 s) | `phase_time_s` and `time_s` of `SMC_g_acf` rows in `outputs/p2r/posterior/*/r*_s0.csv` (median, 10th–90th percentile) |
| Sec. 6.5 scaled warp prior (19 / 50 / 57 ms) | Sec. 3.2; `configs/d2_synth_bench.yaml` (`dr_L1`: σ_b ×3) |
| Sec. 8 (availability: 658 tasks, 21 methods, scorer) | `benchmark/README.md`, `benchmark/MANIFEST.json`, `benchmark/reference/{cells.csv,main_table.md}` (`scripts/37_bench_package.py`); package `outputs/bench/package/` (Zenodo payload, not yet deposited) |
| Sec. 8 (availability: derived-data archives, licences, clean-room check) | `repro/README.md`, `repro/MANIFEST.json` (five archives, 11,112 files; `scripts/39_repro_package.py build`), `repro/verify_report.md` (`scripts/39_repro_package.py verify`); archives in `outputs/repro/` (not yet deposited) |
| App. A, Sec. 5 (proof review of 02/11/2026) | `docs/plan.md` §12 item 32; Vietnamese statements synced in `docs/theory.md` |
| Sec. 6.6, Table `tab:t3` (detectability; exploratory) | `outputs/t3/{cells.csv,nstar.csv,power.csv,meta.json}`, written by `python scripts/27_t3_power.py`; declaration and Deviation 1 (σ_ref grid) in `docs/research/applicability-teapot.md`. Crossings 3.6, 3.8 and 4.3 ms (R10, R0, Rm5): σ_ref at which `median_ratio` of the N = 16 rows of `cells.csv` reaches 1, by linear interpolation between grid points (`p_better` = 0.5 gives 3.5, 3.8, 4.2 ms); compared with σ/√2 = 3.0, 4.1, 5.1 ms of Corollary 4 |
| Sec. 6.7 (gate results) | App. B sources below |
| Sec. 6.7 (conditions C1–C4) | `outputs/applicability/{verdict.json,c1_pairs.csv,c2_sigma_post.csv,d2_threshold_cells.csv}`, written by `python scripts/26_applicability.py`; `docs/research/applicability-results.md` |
| Sec. 6.7, App. B.3 (Teapot: 152 wells, time–depth tables, horizon–top reference, σ̂_knot 6.75 ms) | `outputs/teapot/inventory/` (`python -P scripts/28_teapot_inventory.py`), `outputs/teapot/pilot_pa/verdict.json` and `knots_dev.csv` (`python -P scripts/29_teapot_pilot.py`), `docs/research/applicability-results.md`, `docs/plan.md` §12 item 23 |
| Sec. 7 (F3 and Volve paragraphs, σ_a, limitations) | same sources as App. B | | Sec. 7 (F3 and Volve paragraphs, σ_a, limitations) | same sources as App. B |
| App. B.1, Table `tab:p1` | `outputs/p1/summary.md` | | Sec. 7 ("Where the posterior-mean advantage stops", "When to use a bank", limitations on Experiment 3) | Sec. 6.5 rows above |
| App. B.1 (the 2.82 p.u. three-well figure; Table `tab:p1` removed 09/11/2026) | `outputs/p1/summary.md` |
| App. B.1, Table `tab:f3gc` (G-C), macro band RMSE | `outputs/p3/summary/gate_gc.json`, `docs/plan.md` §12 item 16 | | App. B.1, Table `tab:f3gc` (G-C), macro band RMSE | `outputs/p3/summary/gate_gc.json`, `docs/plan.md` §12 item 16 |
| App. B.1, Table `tab:f3gc` coverage, seed-by-seed spread | `outputs/p3/summary/{metrics.csv,selection.csv}` (rows with `seed` = ensemble and per seed) | | App. B.1, Table `tab:f3gc` coverage, seed-by-seed spread | `outputs/p3/summary/{metrics.csv,selection.csv}` (rows with `seed` = ensemble and per seed) |
| App. B.1, Tables `tab:f3all`, `tab:f3abl` | `outputs/p3/summary/macro.csv` (label `PHIE_DT`, σ_a = 7 ms); ablation descriptions from `configs/protocol_f3.yaml` and `ml_porosity/f3/{training,registration,runner}.py` | | App. B.1, Tables `tab:f3all`, `tab:f3abl` | `outputs/p3/summary/macro.csv` (label `PHIE_DT`, σ_a = 7 ms); ablation descriptions from `configs/protocol_f3.yaml` and `ml_porosity/f3/{training,registration,runner}.py` |
@@ -43,7 +85,7 @@ with the `.venv`); it reads only the locked summaries listed below.
| App. B.1, Table `tab:f3sens` | `metrics.csv` (`M2-Sa` vs `B3d-Sa`; σ_a arms vs `B3c-R` at the same σ_a; reference `wlt`; label `PHIE`), `band_sensitivity.csv` (f_c = 5, 8 Hz), `posterior_reference_sensitivity.csv` (5–95 % range over 64 reference warps) | | App. B.1, Table `tab:f3sens` | `metrics.csv` (`M2-Sa` vs `B3d-Sa`; σ_a arms vs `B3c-R` at the same σ_a; reference `wlt`; label `PHIE`), `band_sensitivity.csv` (f_c = 5, 8 Hz), `posterior_reference_sensitivity.csv` (5–95 % range over 64 reference warps) |
| App. B.1 (posterior width, phase) | `outputs/p3/registration/*_sa{3.5,7,14}{,_noanchors}.json` (`diagnostics[].sigma_post_ms`, `phase_R`, `phase_info.logZ` summed over wells) | | App. B.1 (posterior width, phase) | `outputs/p3/registration/*_sa{3.5,7,14}{,_noanchors}.json` (`diagnostics[].sigma_post_ms`, `phase_R`, `phase_info.logZ` summed over wells) |
| App. B.1 (leave-one-anchor-out) | `outputs/p3/diagnostics/loao.csv` | | App. B.1 (leave-one-anchor-out) | `outputs/p3/diagnostics/loao.csv` |
| App. B.1 (volume statistics), Fig. `fig:f3vol` | `outputs/p3/volume/{metadata.json,mean.npy,sigma.npy}`; figure from `python scripts/22_paper_figures.py --only f3_volume` (inline 442 through F03-4) | | App. B.1 (predicted volume; Fig. `fig:f3vol` removed 09/11/2026, script `--only f3_volume` still works) | `outputs/p3/volume/{metadata.json,mean.npy,sigma.npy}`; figure from `python scripts/22_paper_figures.py --only f3_volume` (inline 442 through F03-4) |
| App. B.2, Table `tab:volvegd` (G-D) | `outputs/p4/summary/gate_gd.json` (`schemes.<scheme>.per_well`: competitor, n, ratio, coverage; macro counts and coverage) | | App. B.2, Table `tab:volvegd` (G-D) | `outputs/p4/summary/gate_gd.json` (`schemes.<scheme>.per_well`: competitor, n, ratio, coverage; macro counts and coverage) |
| App. B.2, Table `tab:volveall` | `outputs/p4/summary/macro.csv` (reference calibrated, σ_a = 7 ms, ensemble); last row ("Constant", post hoc) from `outputs/p4/posthoc/macro.csv` (`const_rmse`), written by `python scripts/25_p4_posthoc.py` after G-D, scale only | | App. B.2, Table `tab:volveall` | `outputs/p4/summary/macro.csv` (reference calibrated, σ_a = 7 ms, ensemble); last row ("Constant", post hoc) from `outputs/p4/posthoc/macro.csv` (`const_rmse`), written by `python scripts/25_p4_posthoc.py` after G-D, scale only |
| App. B.2, Table `tab:volvesens` | `outputs/p4/summary/{metrics.csv,macro.csv}` (σ_a arms; `M2-Sa` vs `B3c-R` at the same σ_a) | | App. B.2, Table `tab:volvesens` | `outputs/p4/summary/{metrics.csv,macro.csv}` (σ_a arms; `M2-Sa` vs `B3c-R` at the same σ_a) |
@@ -51,11 +93,43 @@ with the `.venv`); it reads only the locked summaries listed below.
| App. B.2 (best-shift diagnostic) | `outputs/p4/summary/best_shift_DIAGNOSTIC_ONLY.csv` (never alters a score; search limit `best_shift_max_samples` = 16 in the protocol) | | App. B.2 (best-shift diagnostic) | `outputs/p4/summary/best_shift_DIAGNOSTIC_ONLY.csv` (never alters a score; search limit `best_shift_max_samples` = 16 in the protocol) |
| App. B.2 (posterior width, phase) | `outputs/p4/summary/registration.csv` | | App. B.2 (posterior width, phase) | `outputs/p4/summary/registration.csv` |
| App. B.2 (deviations), Sec. 7 (Volve paragraphs) | `configs/protocol_volve.yaml` (`deviations`), `configs/protocol_volve.lock.json`, `docs/plan.md` §12 items 19–21 | | App. B.2 (deviations), Sec. 7 (Volve paragraphs) | `configs/protocol_volve.yaml` (`deviations`), `configs/protocol_volve.lock.json`, `docs/plan.md` §12 items 19–21 |
| Pass rules, thresholds | `configs/protocol_p2.yaml`, `configs/protocol_p2r.yaml`, `configs/protocol_f3.yaml` (locked; tag `protocol-f3`), `configs/protocol_volve.yaml` (locked 2026-10-29 01:17:42 UTC; committed on 2026-10-29 after the run, tag `protocol-volve`) | | Pass rules, thresholds | `configs/protocol_p2.yaml`, `configs/protocol_p2r.yaml`, `configs/protocol_f3.yaml` (locked; tag `protocol-f3`), `configs/protocol_volve.yaml` (locked 2026-10-29 01:17:42 UTC; committed on 2026-10-29 after the run, tag `protocol-volve`), `configs/protocol_bench.yaml` (locked 2026-10-29 14:39:20 UTC; committed in 381b5ff while the main runs were in progress; no tag) |
## Names in the paper and codes in the repository
Since 09/11/2026 the paper uses descriptive names (`docs/research/paper-style-survey.md`). Configs, outputs and code keep the codes below; when tracing a number to its source, translate with this table.
| Paper | Repository |
|---|---|
| 10 dB, 0 dB, −5 dB (full anchors) | R10, R0, Rm5 |
| half-anchor (0 dB) / two-anchor (10 dB) | R0h / R10tb |
| SMC mean / SMC bank | B3d-Sa / M2-Sa |
| anchor mean / anchor bank / reweighted anchor bank | B3d / M1 / M2 |
| sonic tie / calibrated sonic / correlation tie / phase-estimated correlation | B3a / B3b / B3c / B3c-R |
| hard-min shift / soft-min shift / soft-DTW / DILATE | B4a / B4b / B4c / B4d |
| calibrated-sonic ensemble | B5 |
| depth–time trend / attribute models / impedance inversion / composite loss | B0a / B0b / B1 / B2 |
| Gaussian bank / midpoint label / two-member bank / two-member hard-min | Ctl-GP / PM2 / BK2 / HM2 |
| blur test / anchor removal / calibration hypothesis | H1 / H4 / H3 |
| posterior-mean claim / bank claim | H2a / H2b |
| drift–well-count grid / misspecification / alignment losses / backbone / two-mode | S1 / S2 / S3 / S4 / S8 |
| rock physics mild, strong / wavelet phase mild, strong / attenuation / scaled warp prior / out-of-family warp | rp_L1, rp_L2 / wv_L1, wv_L2 / wv_Q / dr_L1 / dr_L2 |
| Experiment 1, F3, Volve pass rules | G-B, G-C, G-D |
| skill, width, anchor-uncertainty, well-count conditions (Sec. 6.7) | C1, C2, C3, C4 |
| bounds ρ*_cl, ρ*_Bk | 1/B_a, 1/B_b |
| assumption (A3); N_p particles; n* blind wells; tie tempering ω = 1/ν | (B); P; N*; γ = 1/κ |
**Figures.** Regenerated on 09/11/2026 on a machine with the outputs: `p2_phase`, `p2r_grid`, `p2r_h2b`, `bench_s1` and `bench_s8` show the descriptive names, and the `\figcodes` caption notes and macro were removed (`docs/plan.md` §12 item 40). Short names in the cells of `p2_phase`: "corr. tie" = correlation tie, "anchor" = anchor mean. The other three figures are pixel-identical to their committed versions and were left unchanged. The clean-room check of `scripts/39_repro_package.py` compares figures pixel by pixel, so rerun it after any later regeneration.
Do not copy numbers from `code_thesis/` (thesis archive) into the paper. P4x was dropped on 29/10/2026 (Pivot 1, `docs/plan.md` §12 item 22): nothing from `outputs/p4x/` or `docs/research/p4-exploratory.md` enters the paper. Do not copy numbers from `code_thesis/` (thesis archive) into the paper. P4x was dropped on 29/10/2026 (Pivot 1, `docs/plan.md` §12 item 22): nothing from `outputs/p4x/` or `docs/research/p4-exploratory.md` enters the paper.
Wording must respect `docs/plan.md` §10 (forbidden claims). Wording must respect `docs/plan.md` §10 (forbidden claims).
Length: Computers & Geosciences limits a Research Article to about 5,500 words excluding abstract, keywords, highlights, Length: Computers & Geosciences limits an original Research Article to 5,500 words (+10% permissible) excluding abstract, keywords, highlights,
references and captions (secondary source; the official Guide for Authors page could not be fetched on 2026-10-29). references and captions (checked on 12/11/2026 against the official Guide for Authors saved by the user; on 29/10 only a secondary source was available).
The main text (Secs. 1–8) is about 14,750 words (crude count), and exceeds that limit. The length pass was dropped by the user on 2026-10-29 (`docs/plan.md` §12 item 25). This full-length manuscript exceeds the limit and stays the master text; the condensed C&G article (`paper_cg/`, body 5,099 words; removed from the working tree on 16/11/2026, recoverable from commit `883dccf`) was the *Computers & Geosciences* version, and `../paper_gp/` (derived from it on 16/11/2026, *Geophysical Prospecting* format, no word limit) is the version to submit. It reuses this folder's figures and `refs.bib`; its abstract is a verbatim copy of `sections/00_abstract.tex`.
The main text (Secs. 1–8) is about 18,100 words (crude count after the 02/11 writing pass, which added about 3,100 words for Experiment 3, the mechanism study and the discussion; the proof review of the same day added about 350 more and the full-text pass of Sec. 2 about 130, estimated; the hallucination audit of 04/11 added about 600 more, crude count; 69 pages), and exceeds that limit. The length pass was dropped by the user on 2026-10-29 (`docs/plan.md` §12 item 25). After the rewrite of 09/11/2026 (`docs/plan.md` §12 item 38) the main text is about 15,400 words, against 20,600 before, by one counter that excludes tables and equations; the page count is 69. The worked example of Sec. 6.6 uses only the numbers of Table `tab:t3`, the warp errors of Sec. 6.6 and the Teapot residual of App. B.3.
The Geophysical Prospecting version has a [numerical audit](../docs/research/gp-referee/numerical-guard.md).
It links the revised GP tables and prose to saved CSVs and records the numerical
changes shared with the Supporting Information.

BIN
paper/figures/bench_s1.pdf Normal file

Binary file not shown.

BIN
paper/figures/bench_s8.pdf Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -1,5 +1,5 @@
Well-tie error in training labels is an error in the time index of the label Well-tie error in training labels is an error in the time index of the label
Misregistered labels blur the learned predictor; Berkson-type tie error sharpens it Tie error blurs the learned predictor; predicted Berkson sharpening was not seen
A calibrated posterior bank recovers the oracle optimum; its gain is fourth order In a synthetic benchmark, tie accuracy mattered more than tie uncertainty
Tie-posterior label gains on the benchmark fail if anchor error is misset twofold Released benchmark: 658 tasks with known true timing, reference results, a scorer
Blind-well tests need references accurate to ~1 ms; tested public datasets lack them Simulated blind-well tests needed ~1 ms references; tested field data lack them

View File

@@ -45,9 +45,12 @@
\newcommand{\aaf}{\mathcal{A}} % anti-alias filter \newcommand{\aaf}{\mathcal{A}} % anti-alias filter
\newcommand{\sigpost}{\sigma_{\mathrm{post}}} \newcommand{\sigpost}{\sigma_{\mathrm{post}}}
% Method names (repository codes); change here to rename everywhere % Method names; change here to rename everywhere (repository codes: paper/README.md)
\newcommand{\mPM}{B3d-Sa} % labels at the SMC posterior-mean warp \newcommand{\mPM}{SMC mean} % labels at the SMC posterior-mean warp (repository code B3d-Sa)
\newcommand{\mRML}{M2-Sa} % RML on the SMC particle bank \newcommand{\mRML}{SMC bank} % RML on the SMC particle bank (repository code M2-Sa)
\newcommand{\rhoCl}{\rho^\star_{\mathrm{cl}}} % population bound for classical tie error (1/B_a in the protocol)
\newcommand{\rhoBk}{\rho^\star_{\mathrm{Bk}}} % population bound for Berkson tie error (1/B_b in the scripts)
% Remove once the figures are regenerated with the word labels in scripts/22 and scripts/38
\theoremstyle{plain} \theoremstyle{plain}
\newtheorem{proposition}{Proposition} \newtheorem{proposition}{Proposition}
@@ -56,8 +59,7 @@
\theoremstyle{remark} \theoremstyle{remark}
\newtheorem{remark}{Remark} \newtheorem{remark}{Remark}
\title{Label registration error in sparse-well seismic property learning: theory, a registration-aware benchmark, and the limits of field validation\\[4pt] \title{Uncertain well ties in learned seismic property prediction: theory, a benchmark with known timing, and requirements for blind-well tests}
\normalsize\todo{If S2 of \texttt{protocol\_bench} is not locked and run before submission, replace ``a registration-aware benchmark'' with ``a controlled synthetic study'' in the title, abstract and text.}}
\author{\todo{author list, affiliations, ORCID, corresponding author}} \author{\todo{author list, affiliations, ORCID, corresponding author}}
\date{Draft, \today} \date{Draft, \today}
@@ -68,8 +70,8 @@
\input{sections/01_introduction} \input{sections/01_introduction}
\input{sections/02_related} \input{sections/02_related}
\input{sections/03_data} \input{sections/03_data}
\input{sections/04_theory} \input{sections/04_method}
\input{sections/05_method} \input{sections/05_theory}
\input{sections/06_experiments} \input{sections/06_experiments}
\input{sections/07_discussion} \input{sections/07_discussion}
\input{sections/08_conclusion} \input{sections/08_conclusion}
@@ -80,5 +82,6 @@
\appendix \appendix
\input{sections/A_proofs} \input{sections/A_proofs}
\input{sections/B_field} \input{sections/B_field}
\input{sections/C_record}
\end{document} \end{document}

Some files were not shown because too many files have changed in this diff Show More