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>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# AGENTS.md
|
||||
|
||||
Seismic-to-porosity learning on F3 when the well tie is uncertain (RML: training on labels drawn from a well-tie posterior). Paper deadline: **Sat 14/11/2026** (moved on 29/10/2026 from 31/10; Pivot 1, level B, `docs/plan.md` §12 item 22). Gate thresholds never change; only dates do.
|
||||
Seismic-to-porosity learning on F3 when the well tie is uncertain (RML: training on labels drawn from a well-tie posterior). **No date deadline since 11/11/2026** (the user: dates do not matter; do everything judged necessary; `docs/plan.md` §12 item 46). Before that: Sat 14/11/2026 (moved on 29/10/2026 from 31/10; Pivot 1, level B, item 22). Gate thresholds never change.
|
||||
|
||||
Read first: `docs/plan.md` (plan, gates, decisions; §6 roadmap, §10 forbidden claims, §12 decision log), `README.md` (setup, scripts, logging), `docs/theory.md`. Progress page: `report.html`. These docs are in Vietnamese.
|
||||
|
||||
@@ -130,11 +130,11 @@ Read first: `docs/plan.md` (plan, gates, decisions; §6 roadmap, §10 forbidden
|
||||
- **Contributions fixed, paper renamed, storyline aligned (10/11/2026; `docs/plan.md` §12 item 42).** Title: *Uncertain well ties in learned seismic property prediction: theory, a benchmark with known timing, and requirements for blind-well tests*. Four contributions, one per gap in Sec. 2: (1) theory of tie error in training labels; (2) a controlled test of training on a tie posterior, read as "registration first, uncertainty second" (the 8–22% SMC-mean gain comes from a more accurate tie, mostly present at c = 0; the bank adds 2–11% when wide; RML is only the device that puts the methods on one footing; no MAP competitor will be run); (3) a benchmark with known timing, released with its truth public ("hidden truth" removed from Sec. 1 and Sec. 8); (4) requirements for a field test (reference bias and accuracy, number of blind wells, the two field cases, the F3 audit). Abstract (about 250 words), highlights, keywords, Introduction (contributions, summary, roadmap), Related Work (two new paragraphs on benchmarks and on comparison design, a four-gap Position paragraph, a 'bench.' row in `tab:positioning`), Sec. 3/5/6 openings (Sec. 6 defines "pre-registered"), Discussion "What held" and the Conclusions now follow these four. Six new references, all verified (Crossref/OpenAlex/publisher pages; `li2026leakage` read in full): `alaudah2019facies`, `deng2022openfwi`, `wu2019faultseg`, `roberts2017cv`, `bouthillier2021variance`, `demsar2006comparisons`. No new numbers; no verdict, threshold or protocol changed. `main.pdf` builds cleanly (71 pages). A Fable referee re-graded this version (`docs/research/referee-reports/R4_contrib_round1.md`): **major revision, high confidence**; scores 4/4/4/3/4/4/4 (clarity 3). It recognised the four contributions and found the title fitting. Deciding issues: no MAP tie of the same posterior model (or say the comparison is between tie models); the true σ_a is given to every method and the benchmark has no σ_a misspecification preset; Berkson sharpening is stated as a finding but never measured; margin-free rules and the dependent '9 of 11' count. Also: 'hash-locked' instead of 'pre-registered', a main-text section on the package, `repro/README.md` still says 'hidden truth' and carries the old title, the F3/Volve licence combination, missing related work (Adams & Marlin 2017; Nagaraj et al. 2025; registration uncertainty in medical imaging; White & Simm 2003). Nothing in the paper was changed yet; the user chooses between wording fixes and extra analyses.
|
||||
- **Committed, then referee R4 fixes A + B (10/11/2026; `docs/plan.md` §12 item 43).** Commit `894fbdf` on `main` (not pushed: no credentials for `gitea.vts-ai.space` on this machine; the user must push). Lost exec bits from the sync were restored, not committed. Group B, exploratory, declared and hashed before computing (`docs/research/referee-r4-analyses.md`, `963324c1…`; `scripts/42_referee_r4.py` → `outputs/referee_r4/`; results `docs/research/referee-r4-results.md`): (B1) no sharpening of the posterior-mean network relative to the Oracle at equal budget in 10 cells; blur in 6, including all 5 with power; (B2) the margin rule passes at 0.004–0.10 per cell under permutation, the `better` rule up to 0.36 (sign counting), but all 14 `better` cells have CIs excluding 1; (B3) the truth-free SMC-vs-correlation-tie disagreement does not flag the wavelet-phase failure. Group A: "hash-locked" replaces "pre-registered"; Berkson sharpening is a prediction, not a finding; the comparison is between tie models (no MAP arm); new Sec. 3.3 on the package (true σ_a in `analyst.json`); "9 of 11" removed; benign-direction warp preset stated; App. C review analyses and name–code table; seven new verified references; README titles and "hidden truth" fixed. No verdict, threshold or protocol changed. `main.pdf` builds cleanly (76 pages). M1/M2/M7 experiments not run (stated as limits). After the Berkson-bound passages were reworded, an Opus referee reviewed independently (`docs/research/referee-reports/R5_opus_round1.md`): **major revision**, scores 3/3/3/3/4/4/4; deciding issues: weak deterministic competitors and no same-information point tie, the sharpening prediction failed (not merely undetected) and the Berkson covariance check is uninformative for a posterior mean, λ→0 theory vs λ≈0.37 experiments, field requirements narrower than stated, 8-realization bootstrap; R4 M1–M8: 5 addressed, 2 partly, 1 not (σ_a axis). Wording fixes and a CI analysis then done (plan §12 item 44; `docs/research/referee-r5-ci-results.md`, `scripts/43_referee_r5_ci.py`, declared and hashed first): BCa changes none of 38 conclusions, a t-interval changes 3 (all within 0.005 of 1); against the anchor-only mean the SMC-mean gain is 2–33%. Then (plan §12 item 45, all declared and hashed first): same-information point ties (`scripts/44_point_tie_arm.py`, `outputs/point_tie/`, 17 min on cuda:0): the best saved SMC particle (approximate mode) beats the best deterministic tie in 12/12 cells (0.78–0.95) and posterior averaging adds at most 3%; the anchor-only mode is worse than the best tie at 10 dB, c = 1 (1.15, 1.25); powered independence test (`scripts/45_referee_r5_followups.py`): the Berkson independence is rejected in 10/10 cells (|error| correlates with posterior width, Spearman 0.04–0.73); Wilcoxon and paired-t need 25–50% fewer blind wells than the sign test; benchmark package now has two anchor-uncertainty settings (`R10__sa3.5`, `R10__sa14`): 658 tasks, 1316 hashes (no old hash changed), 46,320 reference runs; `scripts/39_repro_package.py` archives the post-review outputs and has six new verify steps (F1, B3 and the training stages need particles or a GPU and stay outside the clean room). Clean-room rerun on 10/11: 18/18 steps exit 0, no differing file, no read outside the package (`repro/verify_report.md`). `main.pdf` 80 pages, clean.
|
||||
- **Simulated referee review (04/11/2026; `docs/plan.md` §12 item 37, `docs/research/referee-simulation.md`, reports in `docs/research/referee-reports/`).** Three Fable subagents (applied geophysicist; statistician; ML/benchmark) read only the manuscript, `refs.bib`, the figures and the two READMEs, reviewed independently and then cross-reviewed. 3/3 Major revision, none toward reject. Consensus: (C1) the 8–22% H2a gain is already present at c = 0, so it is mostly a tie-quality comparison; the MAP/mode point tie of the same SMC model is missing as a competitor, and only H2b (2–11%) isolates uncertainty; (C2) the paper says "hidden truth" (Sec. 1 C2, Sec. 8) but the package ships `truth/` and `analyst.json` gives the true σ_a = 7.0 (verified in `outputs/bench/package/`); (C3) the *better* rule has no margin (null pass rate about 0.1–0.2), the 100 S1 cells are dependent, S2-H2 passes at 1.020/1.019 against 1.02, "9 of 11" sums dependent verdicts; (C4) H1 is verified only at 7–23 Hz and has no power at σ = 4, 8 ms, while the 1/B bounds and Berkson sharpening live at 60–70 Hz where nothing is measured; (C5) "pre-registered" is self-certified. One real proof slip: "Q has no zero inside the band" in the Cor. 3 proof is false for cos(πfΔ). Editor rulings on the disagreements and a five-item consolidated decision letter (reword / rerun on existing data / new experiment: MAP tie + jitter bank about 1–2 GPU-days, realizations 16–23 about 0.5 GPU-day) are in the simulation doc. All items are outside the locks and must be declared before computing. **Nothing in the paper was changed yet**; the user decides whether to run the new-experiment items before 14/11.
|
||||
- **Replication on new realizations, σ_a test at −5 dB, σ_a = 3.5 ms mechanism, three cheap analyses (exploratory; 11–12/11/2026; `docs/plan.md` §12 item 46).** Declared and hashed in `docs/research/r6-replication.md` (`13b8b943…`, 11/11, before realizations 16–23 were generated; outside every lock; locked code not edited). Scripts 46 (replication, arms, summary), 47 (σ_a = 3.5 ms with fixed drift hyperparameters), 48 (A1–A3); driver `scripts/run_r6.sh` (stages fingerprints, b3, c1, c0, sa, arms, summary); outputs `outputs/replication/`, `outputs/r6/`; logs `logs/r6_*.out`; results `docs/research/r6-results.md`. A server reboot (about 18:05 UTC 11/11 → 02:10 UTC 12/11) killed every tmux session; runs were resumed with the same commands after a file-integrity check and finished 04:35 UTC 12/11. **A1–A3:** a sign test calibrated for within-realization correlation needs more blind wells (nominal size up to 0.40 at ρ = 0.45); the Volve F-11 T2 RMSE moves 0.31–0.51 p.u. across four references against 0.12–0.29 between methods (rankings change); the coverage order of `tab:t4` comes from training length, not labels. **B1 (realizations 16–23):** the SMC-mean gain over the best deterministic tie is 7–19% at c = 1 (8–22% before), zero-drift 0.82–0.90; against the anchor mean 2/2 at 10 dB, 0/2 at 0 dB (1/2 before), 0/2 at −5 dB; the SMC mode beats the best tie in 10/10 cells (0.73–0.96), averaging changes ≤ 2.5% except two-anchor (mean 4–5% worse); Anchor-LS 1.16/1.22; the bank passes 2/3 wide N = 16 cells (meets the declared ≥ 2/3), 4/4 at N = 4, Spearman −0.45; the Gaussian bank is within 2%. Self-check 128/128. **B2 (−5 dB, σ_a 3.5/14 ms):** 0/2 in both arms, so "the gain needs a correct σ_a" holds at 10 and −5 dB. **B3:** the over-trusted anchors are absorbed by a rougher drift prior (refit ℓ 10–15 vs 80–90 ms, σ_g 0.26–0.29 vs 0.10); with fixed hyperparameters σ_post is 0.88/0.67 ms. Deviations: no `--save-preds`; stages split and resumed. Not done: correlated noise, TCN budgets < 125, Gaussian bank on the benchmark axes, replication of Experiment 3 (runner locked to 8–15). Paper updated (Sec. 6.3 and `tab:sigmaa`, abstract/Intro/Conclusions "7–19%", Sec. 3.3, 4.1, `tab:lessons`, Limitations, App. C (iv)–(vi)); `main.pdf` 83 pages, clean. No verdict, threshold or protocol changed. Not committed.
|
||||
|
||||
## Next
|
||||
|
||||
Schedule: `docs/plan.md` §6.1 (level B, 29/10 → 14/11/2026). Cut-scope order
|
||||
if late is given there; never cut thresholds.
|
||||
No date deadline since 11/11/2026 (`docs/plan.md` §12 item 46); §6.1 is now only an order of work. Never cut thresholds.
|
||||
|
||||
1. **Dataset citations: done 02/11/2026** (plan §12 item 30). The length pass
|
||||
for the venue was dropped by the user on 29/10/2026 (plan §12 item 25): do
|
||||
@@ -147,7 +147,7 @@ if late is given there; never cut thresholds.
|
||||
`benchmark/zenodo_metadata.json` first, then put the DOI into `benchmark/README.md` and Sec. 8).
|
||||
**Results sections: done 02/11/2026** (plan §12 item 30). **Proof appendix review and reproduction
|
||||
package: done 02/11/2026** (plan §12 item 32) except the deposit of `outputs/repro/*.tar.gz` (user's account and licence decisions).
|
||||
6. **Next: review and submission (11–14/11; can start early):** internal review (hallucination audit done 04/11, plan §12 item 36; simulated three-referee review done 04/11, plan §12 item 37, with a five-item decision letter in `docs/research/referee-simulation.md` awaiting the user's choice on the new-experiment items), figures, final
|
||||
6. **Next: review and submission (no date deadline):** the replication, the −5 dB σ_a test and the σ_a = 3.5 ms mechanism are done (plan §12 item 46); the remaining limits are listed there; internal review (hallucination audit done 04/11, plan §12 item 36; simulated three-referee review done 04/11, plan §12 item 37, with a five-item decision letter in `docs/research/referee-simulation.md` awaiting the user's choice on the new-experiment items), figures, final
|
||||
proofread of the proof appendix (reviewed 02/11), final novelty scan (Sec. 2 todoblock; preliminary scan done 02/11, plan §12 item 31), quartile check, preprint, submit to
|
||||
*Computers & Geosciences*. The authors must fill the author list and declarations.
|
||||
|
||||
|
||||
@@ -79,6 +79,8 @@ CUDA_VISIBLE_DEVICES= OMP_NUM_THREADS=2 .venv/bin/python scripts/42_referee_r4.p
|
||||
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)
|
||||
# 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ở.
|
||||
@@ -146,5 +148,9 @@ Biến môi trường máy đặt sẵn `OMP_NUM_THREADS=40` (cả MKL, OpenBLAS
|
||||
| `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`.
|
||||
|
||||
@@ -26,7 +26,7 @@ Quy ước nhãn:
|
||||
| **Đóng góp (C1–C4)** | **Chốt 10/11/2026 (mục 12 ý 42), bám theo bốn khoảng trống của Related Work:** Đ1 lý thuyết sai số tie trong nhãn huấn luyện (blur/sharpen, nhận dạng khi không có anchor, bank bậc bốn, coverage); Đ2 kiểm định có kiểm soát việc huấn luyện trên posterior của tie, khung "registration trước, bất định sau" (RML_λ chỉ là công cụ so sánh); Đ3 benchmark có warp thật, phát hành công khai cả truth; Đ4 điều kiện cho field test (reference lệch, độ chính xác reference, số giếng blind, hai field case, audit F3). Các khung cũ bên dưới chỉ còn là lịch sử. C1: formulation và lý thuyết, gồm "MSE dưới misregistration = học một target bị làm mờ" và điều kiện nhận dạng. C2: phương pháp RML. C3: giao thức đánh giá có xét registration, kèm benchmark synthetic hiệu chỉnh theo F3 và phase diagram "khi nào việc này quan trọng". C4: audit dữ liệu F3 cho bài toán porosity (mục 1.2). **Pivot 1 (29/10/2026):** đóng góp viết lại thành C1′–C4′ theo `docs/research/pivot-theory-benchmark.md` mục 3.2; bản nháp đã viết theo khung này (mục 12 ý 24): C1′ lý thuyết (Mệnh đề 1 blur, 2 nhận dạng, 3 hai cấu trúc sai số classical/Berkson, 4 bank hiệu chỉnh với lợi ích quần thể bậc bốn, 5 coverage, 6 tham chiếu lệch, Hệ quả 4 tolerance); C2′ benchmark có warp thật, pre-register, kèm trục misspec S2 (đã chạy và tổng hợp ngày 02/11/2026: 9/11 verdict đạt, S2-H1 trượt ở trục rock physics và wavelet; mục 12 ý 28); C3′ RML_λ làm họ baseline (Bổ đề 1–5), không phải phương pháp thắng; C4′ khả năng phát hiện ở giếng blind (T3) và phạm vi của field test (F3, Volve, Teapot). |
|
||||
| **Không phải đóng góp** | Backbone mới, thêm attention, thêm loss, Cycle-GAN, hay chỉ sửa leakage. |
|
||||
| **Venue chính** | **Chốt 29/10/2026:** *Computers & Geosciences*; dự phòng *Geophysical Prospecting* (mục 12 ý 22). Trước pivot: *Geophysical Prospecting* hoặc *Journal of Applied Geophysics*; dự phòng *Frontiers in Earth Science*, *Earth Science Informatics*, *Acta Geophysica*. Quartile phải kiểm tra lại trên SCImago khi nộp [XM]. |
|
||||
| **Thời gian** | **Chốt 29/10/2026: dời hạn sang thứ 7, 14/11/2026** (mức B của Pivot 1, mục 12 ý 22; lịch theo ngày ở mục 6.1). Ngưỡng và luật của mọi gate không đổi. Lịch nén trước đó (chốt 27/10/2026, hạn 31/10) đã chạy xong 4 cổng: G-A và G-B ngày 26/10, G-C cuối 28/10, G-D cuối 29/10; G-C và G-D không đạt tiêu chí claim (mục 12, ý 16 và 20). Lịch gốc 24 tuần (→ 02/05/2027) đã bỏ. |
|
||||
| **Thời gian** | **Từ 11/11/2026 người dùng bỏ mọi hạn ngày** ("ngày không quan trọng… làm tất cả những việc bạn cho là cần thiết"; mục 12 ý 46); lịch ở mục 6.1 chỉ còn là thứ tự việc. Trước đó: **chốt 29/10/2026: dời hạn sang thứ 7, 14/11/2026** (mức B của Pivot 1, mục 12 ý 22; lịch theo ngày ở mục 6.1). Ngưỡng và luật của mọi gate không đổi. Lịch nén trước đó (chốt 27/10/2026, hạn 31/10) đã chạy xong 4 cổng: G-A và G-B ngày 26/10, G-C cuối 28/10, G-D cuối 29/10; G-C và G-D không đạt tiêu chí claim (mục 12, ý 16 và 20). Lịch gốc 24 tuần (→ 02/05/2027) đã bỏ. |
|
||||
| **Việc tuần này** | Mục 6.1 (lịch mức B theo ngày) và mục 12 ý 22. Ngày 02/11/2026 đã viết xong các mục kết quả của benchmark (Thí nghiệm 3, Sec. 6.5) và mục cơ chế T2 (Sec. 6.4), cùng trích dẫn dataset F3 và Volve (mục 12 ý 30). S7 đóng gói xong 02/11, trừ bước deposit Zenodo do người dùng làm (mục 12 ý 29). Cũng ngày 02/11, một lượt quét novelty sơ bộ cho todoblock Sec. 2 không thấy bài nào đưa bất định của tie vào huấn luyện; câu "to our knowledge" giữ nguyên (mục 12 ý 31). Cũng ngày 02/11 đã rà phụ lục chứng minh (Sec. 4, App. A) và dựng gói tái lập P5 (`repro/`, `scripts/39_repro_package.py`; mục 12 ý 32). Cũng ngày 02/11 đã đọc toàn văn AWSM, BootNet, P05 (Li, Grana & Liu 2024), Guillon et al. 2020 và hai bài Rizzuti: cách xếp trong Bảng `tab:positioning` không đổi, chú thích ᵃ của các bài này đã bỏ (mục 12 ý 33). Ngày 04/11 đã rà soát chống hallucination toàn bài: 87 phát hiện, trong đó 4 lỗi S1, đều đã sửa; không verdict nào đổi (mục 12 ý 36, `docs/research/paper-audit.md`). Cũng ngày 04/11 đã mô phỏng ba referee của venue (vòng độc lập và vòng phản biện chéo): 3/3 Major revision; yêu cầu số một là bổ sung đối thủ MAP/mode của cùng mô hình SMC để tách chất lượng tie khỏi vai trò của bất định; bài còn nói "hidden truth" trong khi gói giao truth và σ_a thật (mục 12 ý 37, `docs/research/referee-simulation.md`). Tiếp theo: review nội bộ và nộp (11–14/11), quét lại novelty ngày 13/11. |
|
||||
|
||||
---
|
||||
@@ -404,7 +404,7 @@ Lưới thí nghiệm:
|
||||
|
||||
---
|
||||
|
||||
## 6. Lộ trình với cổng go/no-go (hạn hiện tại: T7 14/11/2026; lịch nén 31/10 trước đó)
|
||||
## 6. Lộ trình với cổng go/no-go (từ 11/11/2026 không còn hạn ngày, mục 12 ý 46; trước đó T7 14/11/2026; lịch nén 31/10 trước nữa)
|
||||
|
||||
Chốt ngày 27/10/2026: toàn bộ bài, gồm cả review nội bộ và bản nộp, phải xong trước thứ 7, 31/10/2026. Lịch gốc 24 tuần (26/10/2026 → 02/05/2027) bỏ. P0–P2 đã xong trong ngày 26/10, nên lịch nén chỉ còn chẩn đoán sau G-B, F3, Volve, viết và nộp. Ngưỡng các cổng **không đổi**; chỉ ngày thay đổi.
|
||||
|
||||
@@ -870,3 +870,5 @@ Trạng thái ngày 26/10/2026. "Có" nghĩa là toàn văn nằm trong [`refs/`
|
||||
44. **Sửa theo R5: nhóm sửa chữ + phân tích khoảng tin cậy (10/11/2026).** Phân tích exploratory khai báo và băm trước (`docs/research/referee-r5-ci.md`, `accc1c52…`, 09:36:39 UTC; `scripts/43_referee_r5_ci.py` → `outputs/referee_r5/`; kết quả `docs/research/referee-r5-ci-results.md`): BCa không đổi kết luận nào trong 38 tỉ số chính; t-interval trên log tỉ số (7 bậc tự do) rộng hơn tới 0,017 và đổi 3/38 kết luận, cả ba là ô có cận trên sát 1 (H2b −5 dB c = 1; hai ô S2-H2 ở −5 dB); không kết luận nào so với ngưỡng đổi. So với anchor mean (c = 1): 0,81/0,67 ở 10 dB, 0,93/0,89 ở 0 dB, 0,98/0,97 ở −5 dB (N = 4/16; khoảng dưới 1 ở cả 6 ô). Không drift, 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%: referee R5 M1 đúng. Lượt chạy đầu lỗi cú pháp ở phần tóm tắt, đã sửa script rồi chạy lại. **Bài:** abstract viết lại (249 từ): sharpening bị mâu thuẫn ở nơi kiểm được, headline so với cả tie tất định (8–22%) và anchor mean (2–33%), bank gain kèm Gaussian bank, điều kiện field 'for effects like those of the benchmark', 'a fourth-order amount over the posterior-mean tie'; highlight 2 'predicted Berkson sharpening was not seen'; Sec. 5.3: phép kiểm hiệp phương sai đúng với mọi conditional mean nên không chứng minh độc lập; Sec. 6.1 'consistent with' Prop. 2; Sec. 6.3: c = 0 so với Oracle, anchor mean theo từng setting, Gaussian bank chỉ 'not conditioned individually' và tới 10% tốt hơn ở two-anchor; Sec. 6.4: 'prediction contradicted'; Sec. 6.5: số đếm lưới là mô tả, σ_post không đơn điệu theo σ_a (chưa giải thích); Sec. 3.2: SNR không phải SNR hiệu dụng của mạng; Sec. 7: σ_a chỉ kiểm ở 10 dB; Phụ lục C: đoạn khoảng tin cậy và bảng so với Oracle, bảng mã thêm P2/P2r/T2–T4; Related Work: age–depth (Haslett & Parnell 2008, Blaauw & Christen 2011, McKay et al. 2021, Comboul et al. 2014), White 1980, Walden & White 1984, CTC, Gunning & Glinsky 2004 (chỉ từ tiêu đề); 8 mục bib mới đã xác minh Crossref; README: tên RML, 'truth files', bỏ '9/11'. **Không làm** (cần người dùng quyết): tie MAP/least-squares cùng thông tin (M1 fix ii), trục σ_a cho benchmark (M5), kiểm độc lập có lực cho Berkson, Wilcoxon/paired-t cho n_b, đưa bảng analyses sau review vào clean-room, các ý bảng-hình (cận Berkson trên Fig. 4b, per-realization dots), tài liệu core-log và viễn thám (chưa xác minh). `main.pdf` build sạch, 78 trang.
|
||||
|
||||
45. **Bốn việc còn mở sau R5: tie cùng thông tin, kiểm độc lập, kiểm định cặp, trục σ_a, clean-room (10/11/2026).** Người dùng chọn làm cả bốn. (1) **Point tie cùng thông tin** (khai báo `docs/research/point-tie-arm.md`, `3afdaf29…`, 09:45:17 UTC; `scripts/44_point_tie_arm.py` → `outputs/point_tie/`; kết quả `docs/research/point-tie-arm-results.md`; GPU cuda:0, 4 worker, 17 phút, 96/96 job; B3d-Sa huấn luyện lại khớp 96/96 dòng, sai lệch 2·10⁻¹⁶): SMC-MAP (hạt tốt nhất theo log mục tiêu tempered trong 1024 hạt) / tie tất định tốt nhất dưới 1 ở 12/12 ô (0,78–0,95; ở c = 1: 0,86 và 0,80 ở 10 dB, 0,89 và 0,90 ở 0 dB, 0,95 và 0,93 ở −5 dB); SMC mean / SMC-MAP 0,97–1,01 (khoảng dưới 1 ở 5/12 ô, không ô nào trên 1); Anchor-LS (cực trị posterior chỉ anchor, σ_a đã biết) trên 1 ở c = 1 tại 10 dB (1,15 và 1,25): lợi ích chủ yếu do mô hình tie dùng seismic, lấy trung bình thêm ≤ 3%. Hạn chế: SMC-MAP là hạt tốt nhất chứ không phải mode chính xác. (2) **Kiểm độc lập và kiểm định cặp** (khai báo `docs/research/referee-r5-followups.md`, `d631cfad…`; `scripts/45_referee_r5_followups.py`; kết quả `docs/research/referee-r5-followups-results.md`): độc lập bị bác ở 10/10 ô (σ_post thay đổi giữa giếng, Spearman(|e|, σ_post) 0,04–0,73, loại 0 ở 8 ô); n* của Wilcoxon và t cặp ít hơn kiểm định dấu 25–50% (mô phỏng lấy lại theo cụm), kết luận 1–2 ms không đổi. (3) **Trục σ_a cho benchmark:** `scripts/37_bench_package.py` thêm hai setting `R10__sa3.5` và `R10__sa14` (dữ liệu R10, c = 1, task file ghi σ_a sai, tham chiếu là arm σ_a của P2r); gói thành 658 task (47 mỗi realization), 1316 hash (0 hash cũ đổi, 56 mới), 46.320 reference run, selftest PASS. (4) **Clean-room:** `scripts/39_repro_package.py` thêm quy tắc archive cho `referee_r4`, `referee_r5`, `lambda_limit`, `point_tie`, `band_spectra` (391 file mới, 0 file cũ đổi, 4/5 archive không đổi) và sáu bước verify mới (42 b1, 42 b2, 43, 45 f2, tóm tắt 41 và 44); F1, B3 và huấn luyện của 41 và 44 không chạy được trong clean-room (cần file hạt posterior hoặc GPU). Bài: Sec. 6.3, 6.4, 6.6, Phụ lục C (bảng `tab:pointtie`, đoạn độc lập, đoạn số giếng), Sec. 3.3 (σ_a), abstract, kết luận; `main.pdf` 80 trang, build sạch. **Clean-room chạy lại đủ (41 phút, CPU): 18/18 bước exit 0, 0 file khác, 0 đọc ngoài gói, 0 đọc repo gốc; 6 hình khớp từng điểm ảnh** (`repro/verify_report.md`; `repro/MANIFEST.json` 11.503 file).
|
||||
|
||||
46. **Bỏ hạn ngày; sao lặp Thí nghiệm 2 trên realization mới, nhánh σ_a ở −5 dB, cơ chế σ_a = 3,5 ms, ba phân tích rẻ (11–12/11/2026).** Người dùng (11/11): "ngày không quan trọng, bỏ qua tất cả deadline ngày trong plan, làm tất cả những việc bạn cho là cần thiết"; mục 0 và 6 không còn hạn ngày, ngưỡng và luật không đổi. Nguồn: hai review mô phỏng ngày 11/11 cộng các mục còn mở của R3–R5. **Khai báo** `docs/research/r6-replication.md` (băm `13b8b943…` ngày 11/11, trước khi sinh realization 16–23 và trước mọi phép tính; ngoài mọi lock; code khóa không sửa). Script 46 (sao lặp, nhánh thêm, tổng hợp), 47 (σ_a = 3,5 với siêu tham số drift cố định), 48 (A1–A3), driver `scripts/run_r6.sh`; log `logs/r6_*.out`. **A1–A3 (11/11, CPU, `outputs/r6/`):** sign test hiệu chỉnh cho tương quan trong realization (size danh nghĩa tới 0,40 khi ρ = 0,45; n* với tham chiếu chính xác 10, 5, –, 5, –, 18 so với danh nghĩa 5, 5, –, 5, 18, 11); F-11 T2 Volve dưới bốn tham chiếu (RMSE mỗi phương pháp dịch 0,31–0,51 p.u. theo tham chiếu, so với chênh 0,12–0,29 giữa phương pháp; thứ hạng đổi); coverage ở cùng độ dài huấn luyện (thứ tự trong `tab:t4` do độ dài huấn luyện, không do nhãn). Đưa vào bài ngày 11/11 (Sec. 6.3, 6.6, App. B, App. C), cùng các sửa chữ theo hai review (bỏ todoblock novelty ở Sec. 2, bảng verdict Thí nghiệm 3 một cột). **GPU (cuda:0 dùng chung, ≤ 2 worker, giữ ≥ 2,5 GB trống):** chạy 11/11 → 04:35 UTC 12/11. 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; đã kiểm toàn vẹn file rồi chạy lại cùng lệnh (bỏ qua job đã xong). B1 c = 1 chia thành ba session vì thiếu bộ nhớ GPU; một lần dừng tay `r6_c1c` để giữ 2,5 GB trống. **B1 sao lặp (realization 16–23):** R-H2a pass ở R10, R0, Rm5 cho cả B3d-Sa và M2-Sa (B3d-Sa c = 1: 0,833/0,806, 0,897/0,869, 0,931/0,917, tức 7–19% so với 8–22% của P2r; zero-drift 0,82–0,90); với anchor mean: 10 dB 2/2, 0 dB 0/2 (P2r 1/2), −5 dB 0/2 → verdict theo regime trùng P2r. R-H2b: 2/3 ô rộng N = 16 pass (R0h 0,983, R10tb 0,876; Rm5 0,993 không), đạt luật ≥ 2/3; Spearman −0,45; N = 4 4/4. R-MAP: SMC-MAP thắng tie tốt nhất ở 10/10 ô c = 1 (0,73–0,96); mean/mode 0,975–1,004 trừ two-anchor 1,05/1,04 (mean kém mode 4–5%, chưa thử ở P2r). Anchor-LS 1,16/1,22 ở 10 dB (P2r 1,15/1,25). Bank Gauss ≈ bank SMC (0,986–1,020). Tái lập 128/128 (2,2·10⁻¹⁶). **B2 (Rm5, σ_a 3,5/14):** 0/2 ở cả hai (0,989/1,024 và 0,984/0,978 so với 0,915/0,923 khi σ_a đúng) → "lợi ích cần σ_a đúng" giữ ở cả 10 và −5 dB. **B3:** cách đọc "drift-prior refit": σ_a = 3,5 với siêu tham số của lần khớp 7 ms cho σ_post 0,875/0,674 ms (≤ 1,0), warp RMSE 1,86/1,07; lần khớp ở 3,5 ms cho ℓ 10–15 ms (so với 80–90) và σ_g 0,26–0,29 (so với 0,10), 11/16 lần dừng ở biên. **Lệch khỏi khai báo:** không `--save-preds` (theo `run_p2r_main.sh`; không số nào dùng); chia stage và chạy lại sau reboot. **Không làm (giới hạn):** nhiễu tương quan giữa trace, budget TCN < 125, bank Gauss trên trục benchmark, sao lặp Thí nghiệm 3. **Bài (12/11):** Sec. 6.3 (đoạn σ_a, `tab:sigmaa` thêm "3.5, fixed" và ba hàng −5 dB, đoạn sao lặp), abstract/Intro/Conclusions thêm "7–19%" cạnh 8–22% (theo khai báo), Sec. 3.3, Sec. 4.1, `tab:lessons`, Limitations, App. C (iv)–(vi). `main.pdf` 83 trang, build sạch, 0 tham chiếu chưa định nghĩa. Kết quả đầy đủ: `docs/research/r6-results.md`. Không đổi verdict, ngưỡng hay protocol. Chưa commit.
|
||||
|
||||
119
docs/research/r6-replication.md
Normal file
119
docs/research/r6-replication.md
Normal 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.
|
||||
1
docs/research/r6-replication.sha256
Normal file
1
docs/research/r6-replication.sha256
Normal file
@@ -0,0 +1 @@
|
||||
13b8b9435e9d711b67fac8c1e76fb5d428e6759a82fd0bce8be121e0070024b9 docs/research/r6-replication.md
|
||||
118
docs/research/r6-results.md
Normal file
118
docs/research/r6-results.md
Normal 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.
|
||||
@@ -763,7 +763,7 @@ Những điểm vẫn đáng chú ý:
|
||||
- **H2a đạt** ở R10, R0, Rm5. Ví dụ R10, c = 1: RMSE băng của B3d-Sa bằng 0.857 (N = 4) và 0.782 (N = 16) lần tie điểm tốt nhất; trên ba regime đủ anchor là giảm 8–22%. Phép so phụ với B3d (posterior kiểu P2) chỉ giữ ở R10.
|
||||
- Cần đọc kỹ: B3d-Sa đã thắng tie điểm ngay cả khi c = 0 (tỉ số khoảng 0.81). Phần lớn lợi ích **không đến từ việc xử lý drift**, mà từ tie có điều kiện theo seismic. Phần gắn với drift: khi c tăng, B3d-Sa giữ gần Oracle, còn đối thủ xấu đi.
|
||||
- **H2b đạt** (N = 16): M2-Sa tốt hơn B3d-Sa ở 8/8 ô rộng, và lợi ích tăng theo σ_post (Spearman ρ = −0.85). Ở ô hẹp, hai phương pháp ngang nhau (tỉ số 0.996).
|
||||
- **Nhánh σ_a trượt:** đặt σ_a bằng một nửa hoặc gấp đôi giá trị thật thì H2a không còn đạt. Lợi ích H2a **cần σ_a đúng**; σ_a thật của F3 không biết.
|
||||
- **Nhánh σ_a trượt:** đặt σ_a bằng một nửa hoặc gấp đôi giá trị thật thì H2a không còn đạt. Lợi ích H2a **cần σ_a đúng**; σ_a thật của F3 không biết. Thêm 12/11/2026 (exploratory, plan §12 ý 46): ở −5 dB cũng 0/2 ô cho cả 3,5 và 14 ms; với σ_a = 3,5 ms, prior drift khớp lại thô hơn (ℓ 10–15 ms so với 80–90 ms) và hấp thụ anchor quá tin.
|
||||
- **H3 chỉ mô tả:** mọi ensemble, kể cả Oracle, đều quá hẹp; coverage 90% từ 0.31 đến 0.79, trung vị 0.47. Không claim calibration.
|
||||
|
||||
**Kiểm post hoc trên P2r (29/10).** [31_p2r_posthoc.py](../scripts/31_p2r_posthoc.py) so lợi ích H2b với cận quần thể của Mệnh đề 4. Theo cận classical 1/B_a (đã đăng ký), lợi ích vượt cận ở 7/8 ô rộng tại σ_post (6/8 tại sai số warp). Theo cận Berkson 1/B_b (post hoc), cấu trúc tự nhiên của nhãn tại warp trung bình, chỉ 3/8 ô vượt tại σ_post, cả ba ở c = 1; tại sai số warp nhiều nhất 1/8. Vì vậy **không được nói lợi ích của bank vượt cận quần thể**. M2-Sa vẫn kém Oracle ở mọi ô rộng (4–63%). T4 ([30_t4_coverage.py](../scripts/30_t4_coverage.py)) mô tả ξ và coverage: ở R10, c = 1, N = 16, ξ là 0.19 ở Oracle và tối đa 0.66 (B5).
|
||||
@@ -886,7 +886,7 @@ Code đã khoá không bị sửa. [36_bench_verdicts.py](../scripts/36_bench_ve
|
||||
| --- | --- |
|
||||
| Nhãn lệch có làm mạng học ra ảnh mờ không? | Có, nếu sai số kiểu classical. Lý thuyết khớp thí nghiệm trong 1% (H1) |
|
||||
| Có cần anchor không? | Có (H4, Mệnh đề 2) |
|
||||
| Posterior tie tốt (SMC) có giúp trên synthetic không? | Có: giảm RMSE băng 8–22% so với tie điểm tốt nhất (H2a), nếu σ_a đúng. Giữ ở drift mạnh hơn, với TCN, khi thêm B4a–d, dưới sai drift; **không** giữ dưới sai rock physics và sai pha wavelet |
|
||||
| Posterior tie tốt (SMC) có giúp trên synthetic không? | Có: giảm RMSE băng 8–22% so với tie điểm tốt nhất (H2a), nếu σ_a đúng; 7–19% khi lặp lại trên 8 realization mới (12/11, exploratory). Giữ ở drift mạnh hơn, với TCN, khi thêm B4a–d, dưới sai drift; **không** giữ dưới sai rock physics và sai pha wavelet |
|
||||
| Học trên cả bank có thêm gì không? | Có, nhưng chỉ khi posterior rộng (H2b), tăng theo N (S1-H2); phần lớn là tăng cường nhãn, nằm trong cận Berkson (T2) |
|
||||
| Nhãn tại tie trung bình posterior thì mạng học ra gì? | Ảnh sắc hơn thật: sai số kiểu Berkson (Mệnh đề 3) |
|
||||
| Lỗi hai mode thì sao? | Băng seismic học được đảo dấu (S8-H1); bank chứa warp thật sửa được (S8-H2) |
|
||||
|
||||
@@ -228,3 +228,8 @@ run_id,parent,name,status,exit_code,start,end,wall_s,wall,device,git,dirty,code_
|
||||
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
|
||||
|
||||
|
@@ -47,6 +47,9 @@ with the `.venv`), except `bench_s1.pdf` and `bench_s8.pdf` (Experiment 3), whic
|
||||
| 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) |
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
\begin{abstract}
|
||||
Seismic reservoir-property predictors are trained on well logs placed in two-way time by uncertain well ties. Treating tie error as an error in the time index of the labels, we show that errors independent of the data blur the optimal predictor, attenuating the seismic band; a controlled experiment matched the predicted blur to within 1\% below 23\,Hz. In a linear-Gaussian model a posterior-mean tie is predicted to sharpen the predictor, but where testable the trained network was blurred. A calibrated bank of posterior labels can gain over the posterior-mean tie only a fourth-order amount in population. We release a synthetic benchmark of F3 statistics with known true timing and a scorer. With a correctly specified tie model and dense anchors of known uncertainty, labels at the mean of a sequential Monte Carlo tie posterior reduced seismic-band RMSE by 8--22\% relative to the best deterministic tie and by 2--33\% relative to an anchor-only posterior mean. It comes mainly from a more accurate tie model: the mode of the same posterior gave most of it and averaging added at most 3\%. Training on posterior samples added 2--11\% when the posterior was wide, but a Gaussian bank with the same two moments obtained most of that. Field validation remains open: F3 and Volve showed no consistent improvement, and, for effects like those of the benchmark, an exploratory power analysis suggests a blind-well comparison needs 5--18 wells with an exact reference in most cases and more than 40 with a 3\,ms reference error.
|
||||
Seismic reservoir-property predictors are trained on well logs placed in two-way time by uncertain well ties. Treating tie error as an error in the time index of the labels, we show that errors independent of the data blur the optimal predictor, attenuating the seismic band; a controlled experiment matched the predicted blur to within 1\% below 23\,Hz. In a linear-Gaussian model a posterior-mean tie is predicted to sharpen the predictor, but where testable the trained network was blurred. A calibrated bank of posterior labels can gain over the posterior-mean tie only a fourth-order amount in population. We release a synthetic benchmark of F3 statistics with known true timing and a scorer. With a correctly specified tie model and dense anchors of known uncertainty, labels at the mean of a sequential Monte Carlo tie posterior reduced seismic-band RMSE by 8--22\% relative to the best deterministic tie (7--19\% in a repeat on new realizations) and by 2--33\% relative to an anchor-only posterior mean. It comes mainly from a more accurate tie model: the mode of the same posterior gave most of it and averaging added at most 3\%. Training on posterior samples added 2--11\% when the posterior was wide, but a Gaussian bank with the same two moments obtained most of that. Field validation remains open: F3 and Volve showed no consistent improvement, and, for effects like those of the benchmark, an exploratory power analysis suggests that a blind-well comparison, with a test calibrated for wells that share training data, needs 5--18 wells with an exact reference in four of six cases and more than 40 with a 1.5\,ms reference error.
|
||||
\end{abstract}
|
||||
|
||||
\noindent\textbf{Keywords:} well tie; tie uncertainty; registration error; errors-in-variables; seismic porosity prediction; synthetic benchmark; blind-well validation; statistical power
|
||||
|
||||
@@ -15,6 +15,6 @@ This study asks three questions: what such an error does to a learned predictor
|
||||
\item \textbf{Requirements for a field test.} We give the bias of scoring blind wells against a misregistered reference (Proposition~\ref{prop:reference}), derive how accurately that reference must be tied (Corollary~\ref{cor:tolerance}), and estimate how many blind wells a comparison of tie methods needs (Section~\ref{sec:exp:detect}). Two field cases, F3 and Volve, show what a test that misses these requirements can and cannot show. We also audit the public F3 well data: the porosity labels at three of the four wells are a linear function of the sonic log, and the time--depth markers are horizon-tie picks, not check shots.
|
||||
\end{enumerate}
|
||||
|
||||
The benchmark results assume a correctly specified tie model and dense anchors of known uncertainty. Under these conditions, labels at the mean of a sequential Monte Carlo (SMC) tie posterior reduced seismic-band root-mean-square error (RMSE) by 8--22\% relative to the best deterministic tie at F3-like drift. Most of this advantage was already present without drift, so it reflects a more accurate tie rather than the correction of drift. The mode of the same posterior, used as a point tie, gave most of the gain, and averaging over the posterior added at most 3\%. Against the mean of an anchor-only posterior it was 19--33\% at 10\,dB, 8--11\% at 0\,dB and 2--4\% at $-5$\,dB. Training on a bank of samples from the same posterior added a gain of 2--11\% when the posterior was wide. Better registration therefore came first, and representing the remaining uncertainty came second. Several tests failed, and each failure identifies something a tie posterior needs. A posterior that does not contract gives no gain, a wrong anchor uncertainty or wavelet phase removes the advantage, and seed ensembles do not carry tie uncertainty to new wells. Field tests on F3 and Volve showed no consistent improvement and could not have detected one, because they lack the blind wells and the independent references that a power analysis requires.
|
||||
The benchmark results assume a correctly specified tie model and dense anchors of known uncertainty. Under these conditions, labels at the mean of a sequential Monte Carlo (SMC) tie posterior reduced seismic-band root-mean-square error (RMSE) by 8--22\% relative to the best deterministic tie at F3-like drift, and by 7--19\% when the experiment was repeated on eight realizations generated afterwards. Most of this advantage was already present without drift, so it reflects a more accurate tie rather than the correction of drift. The mode of the same posterior, used as a point tie, gave most of the gain, and averaging over the posterior added at most 3\%. Against the mean of an anchor-only posterior it was 19--33\% at 10\,dB, 8--11\% at 0\,dB and 2--4\% at $-5$\,dB. Training on a bank of samples from the same posterior added a gain of 2--11\% when the posterior was wide. Better registration therefore came first, and representing the remaining uncertainty came second. Several tests failed, and each failure identifies something a tie posterior needs. A posterior that does not contract gives no gain, a wrong anchor uncertainty or wavelet phase removes the advantage, and seed ensembles do not carry tie uncertainty to new wells. Field tests on F3 and Volve showed no consistent improvement and could not have detected one, because they lack the blind wells and the independent references that a power analysis requires.
|
||||
|
||||
Section~\ref{sec:related} positions each contribution. Section~\ref{sec:data} describes the field data and the benchmark generator, Section~\ref{sec:method} the tie posteriors, the compared methods and the common loss, and Section~\ref{sec:theory} the theory (contribution~1). Section~\ref{sec:experiments} follows the remaining contributions: the controlled test of training on a tie posterior (Sections~\ref{sec:exp:p2}--\ref{sec:exp:mech}; contribution~2), the benchmark studies (Section~\ref{sec:exp:bench}; contribution~3), and detectability and the field cases (Sections~\ref{sec:exp:detect} and~\ref{sec:exp:scope}; contribution~4). Section~\ref{sec:discussion} discusses what held and what failed for each contribution and gives practical advice. Appendices give the formal results and proofs (\ref{app:proofs}), the field tests (\ref{app:field}) and the protocol record (\ref{app:record}).
|
||||
|
||||
@@ -62,4 +62,4 @@ This work & \checkmark & \checkmark & \checkmark & \checkmark & \checkmark \\
|
||||
\end{tabular}
|
||||
\end{table}
|
||||
|
||||
\todoblock{(1) A preliminary novelty scan was run on 02/11/2026 (Crossref, OpenAlex 2025--2026 and web search; queries and hits in \texttt{docs/plan.md} \S12 item 31). It found no work that feeds tie uncertainty into the training of a property predictor; ``to our knowledge'' stands, and \citet{herrera2014semiautomatic}, \citet{dacostasilva2026autotie} and \citet{castagna2026quality} were added (the first two from abstracts only; \citet{castagna2026quality} read in full on 02/11/2026). Rerun the scan on the submission day (13/11/2026). Still open then: the IMAGE 2026 abstract by Palavicini Gurria et al.\ on well ties and seismic inversion as quantitative quality controls (in the official program; on 02/11/2026 no IMAGE 2026 expanded abstract was indexed in Crossref or OpenAlex), and the DOI and pages of \citet{quesada2024faultlabels} (not found on 28/10 or 02/11; otherwise keep the lab-page URL). (2) Entries marked \textsuperscript{a} in Table~\ref{tab:positioning} were assessed from abstracts only; their full texts cannot be obtained (closed 02/11/2026), so the markers stay. Full texts of \citet{lim2025awsm}, \citet{lim2025bootnet}, \citet{li2024bpinn}, \citet{guillon2020gtmetrics}, \citet{rizzuti2024waveletflows} and \citet{rizzuti2025uhr} were obtained on 02/11/2026; every use above was checked against them, the table classifications did not change, and their markers were removed. (Full texts of \citet{chen2024multidimensional}, \citet{di2023welltie} and \citet{dou2024seismae} cannot be obtained, confirmed 28/10/2026; every use of them above was checked against the abstracts.)}
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ The model error measures the size of a seismic misspecification. It is the RMS r
|
||||
\subsection{Released benchmark package}
|
||||
\label{sec:data:package}
|
||||
|
||||
The package turns the synthetic benchmark into tasks on which other tie methods can be run and scored (contribution~3). It contains 658 tasks, 47 per realization: the five observation settings at five drift factors, 14 misspecification settings, six two-mode settings and two anchor-uncertainty settings, on the test realizations 8--15 and the development realizations 900--905 (Table~\ref{tab:package}). A method receives what an analyst would have: seismic patches at every well, and logs and noisy anchors at the training wells. It also receives the analyst's nominal model, which in the misspecification settings still describes the nominal simulator. This file states the true anchor uncertainty, $\sigma_a = 7$\,ms, in all tasks except the two anchor-uncertainty settings, which have the data of the 10\,dB, $c = 1$ setting and a task file that states $\sigma_a = 3.5$ or 14\,ms, as in Experiment~2, where a wrong value removed the advantage (Section~\ref{sec:exp:p2r}). The reference results of these two settings are those of Experiment~2 for realizations 8--15; the stress was tested at 10\,dB only. The truth is included because the generator is public. The package therefore supports controlled comparisons, not blind evaluation, and users must make every design choice on the development realizations. The scorer applies the two rules of Section~\ref{sec:experiments} and reports each ratio with its bootstrap interval. The reference results are 46\,320 runs of 21 methods; Appendix~\ref{app:record} maps their names in the text to the codes used in the package. A manifest of SHA-256 hashes covers every file, and one command regenerates the package and checks it against the manifest.
|
||||
The package turns the synthetic benchmark into tasks on which other tie methods can be run and scored (contribution~3). It contains 658 tasks, 47 per realization: the five observation settings at five drift factors, 14 misspecification settings, six two-mode settings and two anchor-uncertainty settings, on the test realizations 8--15 and the development realizations 900--905 (Table~\ref{tab:package}). A method receives what an analyst would have: seismic patches at every well, and logs and noisy anchors at the training wells. It also receives the analyst's nominal model, which in the misspecification settings still describes the nominal simulator. This file states the true anchor uncertainty, $\sigma_a = 7$\,ms, in all tasks except the two anchor-uncertainty settings, which have the data of the 10\,dB, $c = 1$ setting and a task file that states $\sigma_a = 3.5$ or 14\,ms, as in Experiment~2, where a wrong value removed the advantage (Section~\ref{sec:exp:p2r}). The reference results of these two settings are those of Experiment~2 for realizations 8--15; the hash-locked stress was tested at 10\,dB only, and an exploratory repeat at $-5$\,dB, not included in the package, also failed (Table~\ref{tab:sigmaa}). The truth is included because the generator is public. The package therefore supports controlled comparisons, not blind evaluation, and users must make every design choice on the development realizations. The scorer applies the two rules of Section~\ref{sec:experiments} and reports each ratio with its bootstrap interval. The reference results are 46\,320 runs of 21 methods; Appendix~\ref{app:record} maps their names in the text to the codes used in the package. A manifest of SHA-256 hashes covers every file, and one command regenerates the package and checks it against the manifest.
|
||||
|
||||
\begin{table}[!htbp]
|
||||
\centering
|
||||
|
||||
@@ -11,7 +11,7 @@ For well $w$ with depth logs $\phi_w(z)$, $\mathrm{DT}_w(z)$ and $\mathrm{RHOB}_
|
||||
t_w(z; b_w, g_w) = t_{w,\mathrm{ref}} + b_w + 2\int_{z_{\mathrm{ref}}}^{z} \mathrm{DT}_w(z')\, e^{g_w(z')}\dd z' .
|
||||
\label{eq:warp}
|
||||
\end{equation}
|
||||
Here $(z_{\mathrm{ref}}, t_{w,\mathrm{ref}})$ is a reference depth and its time, and the warp is $u_w = (b_w, g_w)$. The log-slowness correction $g_w$ describes sonic--seismic drift from dispersion, tool effects or washouts. Because $e^{g} > 0$, the map is monotone by construction. The bulk offset is $b_w \sim \N(0, \sigma_b^2)$. The prior on $g_w$ is a Gaussian process with constant mean $m_g$ and a Mat\'ern-3/2 kernel with scale $\sigma_g$ and length $\ell_g$. The hyperparameters $(m_g, \sigma_g, \ell_g)$ are fitted by type-II maximum a posteriori estimation, with log-normal hyperpriors on $\sigma_g$ and $\ell_g$, on the anchors of the training wells only, with $\sigma_a = 7$\,ms and $\sigma_b = 50$\,ms fixed. Anchors are observed as $t_{wk} = t_w(z_{wk}) + \varepsilon_{wk}$ with $\varepsilon_{wk} \sim \N(0, \sigma_a^2)$. On F3 the same sonic log produces both the label and the time axis through \eqref{eq:warp}, so label and registration are coupled. We write $\tau(t)$ for the sonic two-way time of the depth that a warp places at seismic time $t$, so a difference in $\tau$ between two warps is a timing error in milliseconds.
|
||||
Here $(z_{\mathrm{ref}}, t_{w,\mathrm{ref}})$ is a reference depth and its time, and the warp is $u_w = (b_w, g_w)$. The log-slowness correction $g_w$ describes sonic--seismic drift from dispersion, tool effects or washouts. Because $e^{g} > 0$, the map is monotone by construction. The bulk offset is $b_w \sim \N(0, \sigma_b^2)$. The prior on $g_w$ is a Gaussian process with constant mean $m_g$ and a Mat\'ern-3/2 kernel with scale $\sigma_g$ and length $\ell_g$. The hyperparameters $(m_g, \sigma_g, \ell_g)$ are fitted by type-II maximum a posteriori estimation, with log-normal hyperpriors on $\sigma_g$ and $\ell_g$, on the anchors of the training wells only, with $\sigma_a = 7$\,ms (the registered value in the anchor-uncertainty test of Section~\ref{sec:exp:p2r}) and $\sigma_b = 50$\,ms fixed. Anchors are observed as $t_{wk} = t_w(z_{wk}) + \varepsilon_{wk}$ with $\varepsilon_{wk} \sim \N(0, \sigma_a^2)$. On F3 the same sonic log produces both the label and the time axis through \eqref{eq:warp}, so label and registration are coupled. We write $\tau(t)$ for the sonic two-way time of the depth that a warp places at seismic time $t$, so a difference in $\tau$ between two warps is a timing error in milliseconds.
|
||||
|
||||
A separate type-II maximum-likelihood fit of all five hyperparameters to the F3 anchors gives $m_g = 0.014$, $\sigma_g = 0.10$, $\ell_g = 71$\,ms and a bulk spread $\sigma_b = 19$\,ms. In leave-one-anchor-out tests of this fit, 87\% of held-out anchors lie inside the 90\% predictive interval. The synthetic benchmark draws its true warps from this fitted prior (Section~\ref{sec:data:d2}). The same fit gives $\sigma_a = 0.4$\,ms, which is not reliable because it treats the markers as exact, whereas they are picks on the same seismic. We therefore use the empirical spread $\sigma_a = 7$\,ms (Section~\ref{sec:data:f3}). On F3, $\sigma_a$ is not identifiable from the data at hand.
|
||||
|
||||
|
||||
@@ -104,21 +104,26 @@ $-5$\,dB & 0.915 [0.883, 0.953] & +0.102 & 0.923 [0.908, 0.940] & +0.089 & 0.878
|
||||
\end{table}
|
||||
|
||||
\paragraph{The gain requires a correct anchor uncertainty.}
|
||||
With misspecified anchor uncertainty, no cell passed (Table~\ref{tab:sigmaa}). Over-trusting the anchors ($\sigma_a = 3.5$\,ms) made the \mPM{} 14\% \emph{worse} than the best deterministic tie at $N = 16$. Under-trusting them (14\,ms) left a 7\% gain at $N = 16$ that did not pass. The cause is a miscalibrated posterior in both directions. The width of the posterior did not fall monotonically with $\sigma_a$: it was larger at 3.5\,ms than at 7\,ms. We did not identify the reason; the refitted drift hyperparameters are a candidate that we did not test. With 3.5\,ms the warp RMSE was 4.8\,ms against a $\sigpost$ of 2.5\,ms (90\% coverage 0.62); with 14\,ms it was 2.8\,ms against 0.9\,ms (coverage 0.52); with the correct 7\,ms it was 0.63\,ms (coverage 0.89). On F3 the markers are not independent check shots and $\sigma_a$ cannot be identified from them, so this is the main risk for transfer to the field. The practical consequence is that $\sigma_a$ must be estimated from independent time--depth data before the posterior is used.
|
||||
With misspecified anchor uncertainty, no cell passed (Table~\ref{tab:sigmaa}). Over-trusting the anchors ($\sigma_a = 3.5$\,ms) made the \mPM{} 14\% \emph{worse} than the best deterministic tie at $N = 16$. Under-trusting them (14\,ms) left a 7\% gain at $N = 16$ that did not pass. The cause is a miscalibrated posterior in both directions. With 3.5\,ms the warp RMSE was 4.8\,ms against a $\sigpost$ of 2.5\,ms (90\% coverage 0.62); with 14\,ms it was 2.8\,ms against 0.9\,ms (coverage 0.52); with the correct 7\,ms it was 0.63\,ms (coverage 0.89). The width of the posterior did not fall monotonically with $\sigma_a$: it was larger at 3.5\,ms than at 7\,ms. An exploratory rerun, declared before it was computed, traced this to the drift hyperparameters, which are fitted with the registered $\sigma_a$ (Section~\ref{sec:method:prior}). With $\sigma_a = 3.5$\,ms the refit chose a drift prior with a correlation length of 10--15\,ms instead of 80--90\,ms and a slope standard deviation of 0.26--0.29 instead of 0.10. Holding the hyperparameters at their 7\,ms values gave $\sigpost$ of 0.88 and 0.67\,ms ($N = 4$, 16), close to the 0.67 and 0.59\,ms of the correctly specified posterior, and warp RMSE of 1.86 and 1.07\,ms, between the 1.20 and 0.63\,ms of the correct value and the 3.95 and 4.80\,ms of the refit. Over-trusted anchors are therefore absorbed by a rougher drift prior, which widens the posterior and moves its mean. The same test at $-5$\,dB, where the posterior is wide, was declared together with that rerun and also failed (Table~\ref{tab:sigmaa}): no cell passed with either value, and the ratios were 0.98--1.02 against 0.92 with the correct value. On F3 the markers are not independent check shots and $\sigma_a$ cannot be identified from them, so this is the main risk for transfer to the field. The practical consequence is that $\sigma_a$ must be estimated from independent time--depth data before the posterior is used.
|
||||
|
||||
\begin{table}[t]
|
||||
\centering
|
||||
\caption{Anchor-uncertainty test (10\,dB, $c = 1$; data generated with $\sigma_a = 7$\,ms; every method registered with $\sigma_a^{\mathrm{reg}}$). Ratio: band RMSE of the \mPM{} divided by that of the best deterministic tie. Warp RMSE and coverage: SMC posterior on the training wells, $N = 16$.}
|
||||
\caption{Anchor-uncertainty test ($c = 1$; data generated with $\sigma_a = 7$\,ms; every method registered with $\sigma_a^{\mathrm{reg}}$). Ratio: band RMSE of the \mPM{} divided by that of the best deterministic tie. Pass: cells passing the rule of Table~\ref{tab:h2a}. Warp RMSE (ms) and coverage: SMC posterior on the training wells, $N = 16$. The 10\,dB rows at 3.5 and 14\,ms are hash-locked; the $-5$\,dB rows at 3.5 and 14\,ms and the row with fixed drift hyperparameters are exploratory, declared before they were computed (Appendix~\ref{app:record:review}). Fixed: drift hyperparameters held at their 7\,ms values (posterior only, no training).}
|
||||
\label{tab:sigmaa}
|
||||
\small
|
||||
\setlength{\tabcolsep}{4pt}
|
||||
\begin{tabular}{ccccccc}
|
||||
\setlength{\tabcolsep}{3pt}
|
||||
\begin{tabular}{lccccccc}
|
||||
\toprule
|
||||
$\sigma_a^{\mathrm{reg}}$ (ms) & ratio $N = 4$ & ratio $N = 16$ & cells pass & $\sigpost$ (ms) & warp RMSE (ms) & cov$_{90}$ \\
|
||||
SNR & $\sigma_a^{\mathrm{reg}}$ (ms) & ratio $N = 4$ & ratio $N = 16$ & pass & $\sigpost$ (ms) & warp RMSE & cov$_{90}$ \\
|
||||
\midrule
|
||||
3.5 & 0.977 [0.908, 1.038] & 1.141 [1.094, 1.194] & 0/2 & 2.52 & 4.80 & 0.62 \\
|
||||
7 & 0.857 [0.805, 0.922] & 0.782 [0.748, 0.813] & 2/2 & 0.59 & 0.63 & 0.89 \\
|
||||
14 & 0.985 [0.897, 1.067] & 0.928 [0.867, 1.004] & 0/2 & 0.92 & 2.81 & 0.52 \\
|
||||
10\,dB & 3.5 & 0.977 [0.908, 1.038] & 1.141 [1.094, 1.194] & 0/2 & 2.52 & 4.80 & 0.62 \\
|
||||
& 3.5, fixed & -- & -- & -- & 0.67 & 1.07 & 0.82 \\
|
||||
& 7 & 0.857 [0.805, 0.922] & 0.782 [0.748, 0.813] & 2/2 & 0.59 & 0.63 & 0.89 \\
|
||||
& 14 & 0.985 [0.897, 1.067] & 0.928 [0.867, 1.004] & 0/2 & 0.92 & 2.81 & 0.52 \\
|
||||
\midrule
|
||||
$-5$\,dB & 3.5 & 0.989 [0.967, 1.009] & 1.024 [1.009, 1.037] & 0/2 & 2.89 & 5.94 & 0.53 \\
|
||||
& 7 & 0.915 [0.883, 0.953] & 0.923 [0.908, 0.940] & 2/2 & 2.56 & 2.91 & 0.86 \\
|
||||
& 14 & 0.984 [0.952, 1.013] & 0.978 [0.954, 1.008] & 0/2 & 3.20 & 4.60 & 0.72 \\
|
||||
\bottomrule
|
||||
\end{tabular}
|
||||
\end{table}
|
||||
@@ -174,7 +179,7 @@ At $c = 1$, $N = 16$, the 90\% coverage of the SMC warp posterior was 0.89 at 10
|
||||
\end{figure}
|
||||
|
||||
\paragraph{Seed ensembles under-covered, and more so with better labels.}
|
||||
At 10\,dB, $c = 1$, $N = 16$, the 90\% coverage was 0.79 for the calibrated-sonic ensemble, 0.58 for the \mPM{} and \mRML{} ensembles and 0.48 for the Oracle ensemble. Every ensemble was too narrow: the dispersion ratio $\xi$ of Section~\ref{sec:theory:cov} was 0.19 for the Oracle and at most 0.66, against 1 for a matched second moment (Table~\ref{tab:t4}). The ordering follows training length as much as label quality. On the development realizations of Experiment~1, the 90\% coverage of single Oracle models fell from 0.47 after 125 iterations to 0.10 after 2000, while their RMSE varied by less than 10\%. In Experiment~2 training length and label source are confounded, so the population statements of Proposition~\ref{prop:coverage} for the point label and the calibrated bank are not tested. A seed ensemble of a heteroscedastic network does not carry the tie posterior to the test wells, and we make no calibration claim.
|
||||
At 10\,dB, $c = 1$, $N = 16$, the 90\% coverage was 0.79 for the calibrated-sonic ensemble, 0.58 for the \mPM{} and \mRML{} ensembles and 0.48 for the Oracle ensemble. Every ensemble was too narrow: the dispersion ratio $\xi$ of Section~\ref{sec:theory:cov} was 0.19 for the Oracle and at most 0.66, against 1 for a matched second moment (Table~\ref{tab:t4}). The ordering follows training length as much as label quality. On the development realizations of Experiment~1, the 90\% coverage of single Oracle models fell from 0.47 after 125 iterations to 0.10 after 2000, while their RMSE varied by less than 10\%. In Experiment~2 training length and label source are confounded. A post hoc comparison at equal length, declared before it was computed, separates them (Appendix~\ref{app:record:review}): in the 11 cells with $N = 16$ in which the tempering-limit analysis retrained both networks, the mean 90\% coverage of single networks fell from 0.46 after 125 iterations to 0.33 after 250 and 0.24--0.25 after 500, for the \mPM{} and the \mRML{} alike, against 0.23 for the Oracle after 500. At equal length the two label sources differed by at most 0.035 in any cell. Training length, not the label, set the coverage of these networks, so the population statements of Proposition~\ref{prop:coverage} for the point label and the calibrated bank are not tested. A seed ensemble of a heteroscedastic network does not carry the tie posterior to the test wells, and we make no calibration claim.
|
||||
|
||||
\begin{table}[t]
|
||||
\centering
|
||||
@@ -199,13 +204,16 @@ Calibrated-sonic ens.\ & 125 & 1.10 & 1.36 & 0.662 & 0.79 & 0.199 & 0.199 &
|
||||
\end{tabular}
|
||||
\end{table}
|
||||
|
||||
\paragraph{The posterior-mean and bank results replicated on eight new realizations.}
|
||||
Experiment~2 was designed after Experiment~1 had failed, and the same eight realizations served every later analysis. We therefore repeated it on realizations 16--23, under rules written and hashed before these realizations were generated (Appendix~\ref{app:record:review}). The replication is not hash-locked in the sense of Section~\ref{sec:experiments}: it reuses the locked code and budgets, but its reading rules were set after the results of Experiment~2 were known. The posterior-mean claim held in all three full-anchor settings, with ratios to the best deterministic tie at $c = 1$ of 0.833 [0.798, 0.867] and 0.806 [0.784, 0.831] at 10\,dB, 0.897 [0.850, 0.948] and 0.869 [0.841, 0.898] at 0\,dB, and 0.931 [0.901, 0.961] and 0.917 [0.908, 0.926] at $-5$\,dB ($N = 4$, 16), that is, gains of 7--19\% against 8--22\% before. The zero-drift ratios were 0.82--0.90, so the gain was again mostly present without drift. With the anchor mean added as a competitor the claim held at 10\,dB (2/2) and failed at 0\,dB (0/2, ratios 0.93 and 0.90 against the anchor mean) and at $-5$\,dB (0/2); Experiment~2 had 1 of 2 at 0\,dB. The mode of the SMC model again beat the best deterministic tie in every cell at $c = 1$ (10 of 10, ratios 0.73--0.96), including the half- and two-anchor settings, which the earlier analysis had not covered. Averaging over the posterior changed the error relative to the mode by at most 2.5\% in the full- and half-anchor settings (ratios 0.975--1.004), but in the two-anchor setting the posterior mean was 4--5\% worse than the mode (1.05 [1.01, 1.10] and 1.04 [0.98, 1.10]). The anchor-only mode was again worse than the best deterministic tie at 10\,dB, $c = 1$ (1.16 and 1.22, against 1.15 and 1.25 before). For the bank, two of the three wide cells at $N = 16$ passed (half-anchor 0.983, two-anchor 0.876; $-5$\,dB 0.993 did not pass), which meets the declared rule of at least two of three; the cell at 0\,dB, $c = 1$, fell just below the width threshold ($\sigpost = 1.45$\,ms), the narrow cells averaged 0.997, and the Spearman correlation between ratio and $\sigpost$ was $-0.45$ ($-0.71$ at $N = 4$, where all four wide cells passed). The Gaussian bank with the posterior's two moments was within 2\% of the \mRML{} in every cell (0.986--1.020). The benchmark of Section~\ref{sec:exp:bench} was not replicated, because its runner is locked to realizations 8--15.
|
||||
|
||||
\subsection{Where the bank gain comes from (exploratory)}
|
||||
\label{sec:exp:mech}
|
||||
|
||||
We examined five possible sources of the bank gain, on the wide cells at $N = 16$ of the Experiment~2 bank. The tests and their readings were declared in advance, but the analysis uses the test realizations and followed the post hoc comparisons above, so none of its results is confirmatory. Appendix~\ref{app:record} gives the details.
|
||||
\begin{itemize}
|
||||
\item \emph{Error structure.} We tested the \mPM{} only, and the bulk offset only. Writing the error of the estimated offset as $\hat b - b^\star$, the Berkson structure predicts zero correlation between this error and $\hat b$ and a negative correlation between the error and $b^\star$. In all four wide cells at $c = 1$ the first correlation was near zero (pooled $-0.026$ $[-0.124, 0.072]$) and the second was $-0.44$ to $-0.77$. The bulk offset at $c = 1$ therefore has the Berkson correlation structure. At $c = 2$ the test gave Berkson only at $-5$\,dB.
|
||||
\item \emph{Sharpening.} A check declared after referee review estimated the transfer $\hat H$ of Section~\ref{sec:theory:blur} for the network trained on posterior-mean labels relative to the Oracle network, both at 500 iterations, in the ten cells at $c = 1$ ($N = 8$) and $c = 1.5$ ($N = 16$) of the drift--well-count grid. No cell showed sharpening, so where the test could be made the prediction was contradicted. In the five cells where the predicted Gaussian--Berkson transfer exceeded the half-width of the interval, the network was blurred instead (geometric mean of $\hat H$ over 6.8 to 25--38\,Hz of 0.65--0.97, against 1.04--1.21 predicted). The \mRML{} stayed at 0.97--1.02 except in the two-anchor setting (0.88). The Berkson correlation of the bulk offset therefore did not carry over to the learned predictor at the frequencies we could measure, and the Berkson bound $\rhoBk$ cannot be taken as the applicable one. A test with power explains why. Zero covariance between the error and the estimate holds for any conditional mean, but Proposition~\ref{prop:tie}(b) needs the error to be independent of the data at the well, and the posterior width varies with the data. Across the 128 training wells of each cell, the absolute error of the window-mean offset correlated with the posterior width (Spearman 0.04--0.73, with the interval above zero in eight of ten cells at $c \in \{1, 2\}$), and the width varied between wells by a coefficient of 0.25--1.7 (Appendix~\ref{app:record:review}). The error of the posterior-mean tie is not independent of the data, so the Berkson idealization does not hold in this setting.
|
||||
\item \emph{Sharpening.} A check declared after the main results and before its computation estimated the transfer $\hat H$ of Section~\ref{sec:theory:blur} for the network trained on posterior-mean labels relative to the Oracle network, both at 500 iterations, in the ten cells at $c = 1$ ($N = 8$) and $c = 1.5$ ($N = 16$) of the drift--well-count grid. No cell showed sharpening, so where the test could be made the prediction was contradicted. In the five cells where the predicted Gaussian--Berkson transfer exceeded the half-width of the interval, the network was blurred instead (geometric mean of $\hat H$ over 6.8 to 25--38\,Hz of 0.65--0.97, against 1.04--1.21 predicted). The \mRML{} stayed at 0.97--1.02 except in the two-anchor setting (0.88). The Berkson correlation of the bulk offset therefore did not carry over to the learned predictor at the frequencies we could measure, and the Berkson bound $\rhoBk$ cannot be taken as the applicable one. A test with power explains why. Zero covariance between the error and the estimate holds for any conditional mean, but Proposition~\ref{prop:tie}(b) needs the error to be independent of the data at the well, and the posterior width varies with the data. Across the 128 training wells of each cell, the absolute error of the window-mean offset correlated with the posterior width (Spearman 0.04--0.73, with the interval above zero in eight of ten cells at $c \in \{1, 2\}$), and the width varied between wells by a coefficient of 0.25--1.7 (Appendix~\ref{app:record:review}). The error of the posterior-mean tie is not independent of the data, so the Berkson idealization does not hold in this setting.
|
||||
\item \emph{Training length.} At the Oracle's budget of 500 iterations, the ratio of the Oracle to the \mPM{} at $c = 1$ was 0.949, 0.944 and 0.957 at 0\,dB, half-anchor and $-5$\,dB, against 0.927, 0.919 and 0.933 at the hash-locked budgets. Training length thus accounts for 30--35\% of the hash-locked gap, and it does not explain the remaining 4--6\%. At $c = 0$ the gap nearly vanished (0.985--1.006).
|
||||
\item \emph{Gaussian bank.} A bank with the posterior's first two moments and no link to the seismic improved on the \mPM{} in 7 of the 8 cells. At $c = 1$ it matched the \mRML{} in three of four cells (ratios to the \mPM{} 0.970 and 0.970, 0.904 and 0.890, 0.984 and 0.982). At $c = 2$ the SMC bank was ahead in three of four cells.
|
||||
\item \emph{Re-registration.} The warp averaged with the end-of-training responsibilities as weights was closer to the true warp than the uniform mean of the bank in all 8 cells, with 13--39\% lower warp error. This is necessary for re-registration to help at test wells, not sufficient.
|
||||
@@ -241,35 +249,35 @@ Two-mode error & 10 and $-5$\,dB $\times$ $c = 1$ $\times$ $N \in \{4, 16\}$ $\t
|
||||
|
||||
\begin{table}[!htbp]
|
||||
\centering
|
||||
\caption{Verdicts of Experiment~3. As worded: the locked statements applied by a separate script. As coded: the output of the locked code (Appendix~\ref{app:record}). No family-wise correction.}
|
||||
\caption{Verdicts of Experiment~3: the locked statements applied as worded by a separate script. The output of the locked code differs in two rows (notes $a$ and $c$; Appendix~\ref{app:record}). No family-wise correction.}
|
||||
\label{tab:benchverdicts}
|
||||
\small
|
||||
\setlength{\tabcolsep}{3pt}
|
||||
\begin{tabular}{p{0.64\linewidth}lll}
|
||||
\begin{tabular}{p{0.70\linewidth}ll}
|
||||
\toprule
|
||||
Claim (abridged) & Predicted & As worded & As coded \\
|
||||
Claim (abridged) & Predicted & Verdict \\
|
||||
\midrule
|
||||
\multicolumn{4}{l}{\emph{Drift--well-count grid}} \\
|
||||
Posterior-mean claim extends to 10\,dB, $c = 1.5$, $N \in \{4, 16\}$ & pass & pass & none$^a$ \\
|
||||
In wide families (setting, $c$), the gain of the \mRML{} over the \mPM{} grows with $N$ & pass & pass & pass \\
|
||||
\multicolumn{4}{l}{\emph{Misspecification (posterior-mean claim at 10\,dB, $c = 1$, mild level)}} \\
|
||||
\quad unit-dependent rock physics & pass & \textbf{fail} & fail \\
|
||||
\quad frequency-dependent wavelet phase & pass & \textbf{fail} & fail \\
|
||||
\quad scaled warp prior & uncertain & pass & pass \\
|
||||
\mRML{}/\mPM{} $\le 1.02$ for all 14 presets $\times$ settings & pass & pass & pass \\
|
||||
\multicolumn{4}{l}{\emph{Alignment losses}} \\
|
||||
Posterior-mean claim unchanged with the anchor-free losses added to the competitors & pass & pass$^b$ & \textbf{fail}$^c$ \\
|
||||
\multicolumn{4}{l}{\emph{Backbone}} \\
|
||||
Posterior-mean claim at 10\,dB, $c = 1$ with the TCN & pass & pass & pass \\
|
||||
\mRML{} (TCN) better than \mPM{} (TCN) at $-5$\,dB and half-anchor, $c = 1$, $N = 16$ & pass$^d$ & pass & pass \\
|
||||
\multicolumn{4}{l}{\emph{Two-mode error}} \\
|
||||
Transfer of the midpoint label negative in $(1/(2\Delta), 3/(2\Delta))$ at 10\,dB, $\Delta = 32$\,ms & pass & pass & pass \\
|
||||
Two-member bank better than midpoint label at $\Delta \in \{16, 32\}$\,ms, $N = 16$, 10 and $-5$\,dB & pass & pass & pass \\
|
||||
\multicolumn{3}{l}{\emph{Drift--well-count grid}} \\
|
||||
Posterior-mean claim extends to 10\,dB, $c = 1.5$, $N \in \{4, 16\}$ & pass & pass$^a$ \\
|
||||
In wide families (setting, $c$), the gain of the \mRML{} over the \mPM{} grows with $N$ & pass & pass \\
|
||||
\multicolumn{3}{l}{\emph{Misspecification (posterior-mean claim at 10\,dB, $c = 1$, mild level)}} \\
|
||||
\quad unit-dependent rock physics & pass & \textbf{fail} \\
|
||||
\quad frequency-dependent wavelet phase & pass & \textbf{fail} \\
|
||||
\quad scaled warp prior & uncertain & pass \\
|
||||
\mRML{}/\mPM{} $\le 1.02$ for all 14 presets $\times$ settings & pass & pass \\
|
||||
\multicolumn{3}{l}{\emph{Alignment losses}} \\
|
||||
Posterior-mean claim unchanged with the anchor-free losses added to the competitors & pass & pass$^{b,c}$ \\
|
||||
\multicolumn{3}{l}{\emph{Backbone}} \\
|
||||
Posterior-mean claim at 10\,dB, $c = 1$ with the TCN & pass & pass \\
|
||||
\mRML{} (TCN) better than \mPM{} (TCN) at $-5$\,dB and half-anchor, $c = 1$, $N = 16$ & pass$^d$ & pass \\
|
||||
\multicolumn{3}{l}{\emph{Two-mode error}} \\
|
||||
Transfer of the midpoint label negative in $(1/(2\Delta), 3/(2\Delta))$ at 10\,dB, $\Delta = 32$\,ms & pass & pass \\
|
||||
Two-member bank better than midpoint label at $\Delta \in \{16, 32\}$\,ms, $N = 16$, 10 and $-5$\,dB & pass & pass \\
|
||||
\bottomrule
|
||||
\end{tabular}
|
||||
|
||||
\smallskip
|
||||
\footnotesize $^a$The code requires exactly two cells. $^b$Passes at 10, 0 and $-5$\,dB. $^c$The code adds the Gaussian bank to the competitors. $^d$Recorded as uncertain: the TCN has no recurrent context.
|
||||
\footnotesize $^a$The locked code returns no verdict: it requires exactly two cells, and the grid has four well counts. $^b$Passes at 10, 0 and $-5$\,dB. $^c$The locked code adds the Gaussian bank to the competitors and then fails in every setting, because the Gaussian bank nearly equals the \mPM{}. $^d$Recorded as uncertain: the TCN has no recurrent context.
|
||||
\end{table}
|
||||
|
||||
\paragraph{The posterior-mean advantage holds in most of the plane of drift and well count.}
|
||||
@@ -286,7 +294,7 @@ In all 13 families (setting, $c$) whose $N = 16$ cell is wide, the ratio \mRML{}
|
||||
\end{figure}
|
||||
|
||||
\paragraph{Under a frequency-dependent wavelet phase the posterior becomes confidently wrong.}
|
||||
The misspecification study failed for the wavelet, contrary to the prediction. The SMC re-estimated a constant phase of 43--46$^\circ$ and its posterior collapsed onto a wrong warp: warp error 2.58 and 2.26\,ms with 90\% coverage 0.17 and 0.10, which is 3.3--3.6 times its width (Table~\ref{tab:s2}). The band RMSE of the \mPM{} rose by 25\% ($N = 4$) and 50\% ($N = 16$) relative to the nominal cells. That of the correlation tie, which uses the statistical wavelet, rose by at most 4\%, which made it the best deterministic tie. At the strong level the loss was larger (the \mPM{} was 1.22 and 1.39 times the correlation tie). The lesson is that a posterior can be worse than a cruder tie when its forward model is wrong. On field data no true warp exposes this. A check that needs no truth, the RMS difference between the SMC mean warp and the correlation tie at each training well, did not expose it either (exploratory, Appendix~\ref{app:record}): at $N = 16$ it was 1.00 times its nominal value [0.90, 1.11] under the mild wavelet phase, while the SMC warp error rose from 0.63 to 2.26\,ms. The difference tracked the error of the correlation tie (3.9\,ms), not that of the posterior. Under attenuation the posterior kept its coverage (0.86--0.87), and the cell passed at $N = 16$ only.
|
||||
The misspecification study failed for the wavelet, contrary to the prediction. The SMC re-estimated a constant phase of 43--46$^\circ$ and its posterior collapsed onto a wrong warp: warp error 2.58 and 2.26\,ms with 90\% coverage 0.17 and 0.10, which is 3.3--3.6 times its width (Table~\ref{tab:s2}). The band RMSE of the \mPM{} rose by 25\% ($N = 4$) and 50\% ($N = 16$) relative to the nominal cells. That of the correlation tie, which uses the statistical wavelet, rose by at most 4\%, which made it the best deterministic tie. At the strong level the loss was larger (the \mPM{} was 1.22 and 1.39 times the correlation tie). The lesson is that a posterior can be worse than a cruder tie when its forward model is wrong. Our tie model rotates a fixed statistical wavelet by one constant phase. The Bayesian ties of \citet{buland2003bayesianwavelet} and \citet{gunning2006waveletextractor} estimate the whole wavelet jointly with the tie, so a frequency-dependent phase lies inside their model; such a parametrization is the natural remedy, at the price of a less constrained likelihood, and we did not test it. On field data no true warp exposes this. A check that needs no truth, the RMS difference between the SMC mean warp and the correlation tie at each training well, did not expose it either (exploratory, Appendix~\ref{app:record}): at $N = 16$ it was 1.00 times its nominal value [0.90, 1.11] under the mild wavelet phase, while the SMC warp error rose from 0.63 to 2.26\,ms. The difference tracked the error of the correlation tie (3.9\,ms), not that of the posterior. Under attenuation the posterior kept its coverage (0.86--0.87), and the cell passed at $N = 16$ only.
|
||||
|
||||
\paragraph{Under unit-dependent rock physics the gain is largely kept but misses the margin.}
|
||||
This claim also failed, for a different reason. Registration was nearly unaffected: the SMC warp error rose from 1.20 to 1.52\,ms at $N = 4$ and from 0.63 to 1.05\,ms at $N = 16$, with 90\% coverage 0.87. The learning problem became harder for every method: the Oracle's band RMSE rose by factors of 1.56 and 1.84, and at $N = 16$ the \mPM{} stayed within 3\% of it. The ratio to the best deterministic tie rose to 0.940 and 0.934, so the cells missed the 0.90 margin, and the band PCC difference ($+0.044$, $+0.041$) stayed below $+0.05$. The \mPM{} still passed the no-margin rule against the best deterministic tie at both $N$. The difference between the squared band RMSE of the best deterministic tie and that of the \mPM{} fell only from 0.137 to 0.122\,p.u.$^2$ at $N = 4$ and from 0.132 to 0.107 at $N = 16$. The tie posterior remained usable here. What failed is the ratio rule: when a change in the simulator raises the error of every method, a ratio dilutes a largely preserved label gain, so absolute gains should be judged beside ratios.
|
||||
@@ -362,7 +370,7 @@ $-5$\,dB & 32 & 1.46 / 1.64 & 0.80 / 0.64 & 0.635 [0.609, 0.673]$^\ast$ & 0.82 /
|
||||
By Proposition~\ref{prop:reference}, an error in the reference at blind wells biases a comparison of methods, and more wells reduce its variance but not its bias. To estimate how many blind wells a field test needs, we rescored the saved test predictions of Experiment~2 against perturbed references. The analysis is exploratory: it was declared before it was run but after both field tests had failed (Appendix~\ref{app:record}).
|
||||
|
||||
\paragraph{Design.}
|
||||
We used the cells at 10, 0 and $-5$\,dB with $c = 1$ and $N \in \{4, 16\}$, and compared the \mRML{} with the best deterministic tie of each cell. For each test well, the reference is the true label read at $t + \varepsilon_{\mathrm{ref}}(t)$, with $\varepsilon_{\mathrm{ref}} = a + bx$, where $x$ runs linearly from $-1$ to 1 across the window, $a \sim \N(0, \sigma_{\mathrm{ref}}^2)$ and $b \sim \N(0, \sigma_{\mathrm{ref}}^2/4)$. Its RMS is then $1.04\,\sigma_{\mathrm{ref}}$, and each well receives 64 draws. A well counts as a win if the seed-averaged \mRML{} has the lower band RMSE against this reference. Wells of one realization share their training wells, so the probability that a rule passes with $n_{\mathrm{b}}$ blind wells is computed from a beta-binomial distribution whose mean is the win rate and whose intra-class correlation is that of the outcome within realizations. We compare a $k$-of-$n_{\mathrm{b}}$ rule with $k = \lceil 0.75\,n_{\mathrm{b}}\rceil$, the form of both field rules, and a one-sided sign test at $\alpha = 0.05$. We write $n_{\mathrm{b}}^\star$ for the smallest $n_{\mathrm{b}} \le 40$ at which a rule passes with probability at least 0.8. The clustering enters the power but not the nominal level of the sign test, which is anti-conservative when wells share training wells. A field test should therefore calibrate its null for the clustering of blind wells that share training data, for example with the same beta-binomial model.
|
||||
We used the cells at 10, 0 and $-5$\,dB with $c = 1$ and $N \in \{4, 16\}$, and compared the \mRML{} with the best deterministic tie of each cell. For each test well, the reference is the true label read at $t + \varepsilon_{\mathrm{ref}}(t)$, with $\varepsilon_{\mathrm{ref}} = a + bx$, where $x$ runs linearly from $-1$ to 1 across the window, $a \sim \N(0, \sigma_{\mathrm{ref}}^2)$ and $b \sim \N(0, \sigma_{\mathrm{ref}}^2/4)$. Its RMS is then $1.04\,\sigma_{\mathrm{ref}}$, and each well receives 64 draws. A well counts as a win if the seed-averaged \mRML{} has the lower band RMSE against this reference. Wells of one realization share their training wells, so the probability that a rule passes with $n_{\mathrm{b}}$ blind wells is computed from a beta-binomial distribution whose mean is the win rate and whose intra-class correlation is that of the outcome within realizations. We compare a $k$-of-$n_{\mathrm{b}}$ rule with $k = \lceil 0.75\,n_{\mathrm{b}}\rceil$, the form of both field rules, and a one-sided sign test at $\alpha = 0.05$. We write $n_{\mathrm{b}}^\star$ for the smallest $n_{\mathrm{b}} \le 40$ at which a rule passes with probability at least 0.8. The clustering enters the power but not the nominal level of the sign test, which is anti-conservative when wells share training wells. A field test should therefore calibrate its null for the clustering of blind wells that share training data, for example with the same beta-binomial model. Table~\ref{tab:t3} reports the nominal test; the calibrated numbers follow the next paragraph.
|
||||
|
||||
\paragraph{A reference error of a few milliseconds reverses the ranking.}
|
||||
With an exact reference, the \mRML{} won at 81--97\% of the test wells, and its median band RMSE was 0.80--0.92 times that of the competitor (Table~\ref{tab:t3}). At $\sigma_{\mathrm{ref}} = 4$\,ms the win rate was 0.46--0.64 and the median ratio 0.96--1.01. At 8\,ms the win rate was 0.22--0.44 and the median ratio exceeded 1 in every cell: against this reference the deterministic tie scored better, although against the true labels it was worse. In the three cells with $N = 16$, the median ratio crossed 1 between 3.6 and 4.3\,ms. Corollary~\ref{cor:tolerance} places the crossing at or below $\sigma/\sqrt2$ for an unshrunk oracle, where $\sigma$ is the tie error of the point label. The RMS warp error of the phase-estimated correlation tie on the training wells of these cells was 4.2, 5.8 and 7.3\,ms at 10, 0 and $-5$\,dB, so $\sigma/\sqrt2$ is 3.0, 4.1 and 5.1\,ms. The simulated crossings, 3.6, 3.8 and 4.3\,ms by linear interpolation, follow the same order and lie within 1\,ms of these values: below them at 0 and $-5$\,dB, and 0.6\,ms above at 10\,dB, outside the corollary's condition. The assumptions explain why the agreement can only be approximate: shrinkage relaxes the condition, the \mRML{} is not an oracle, the tie errors are not constant Gaussian shifts, and the reference error here includes a stretch.
|
||||
@@ -370,8 +378,10 @@ With an exact reference, the \mRML{} won at 81--97\% of the test wells, and its
|
||||
\paragraph{The number of wells needed rises quickly with the reference error.}
|
||||
With an exact reference, the sign test needs five blind wells at 0\,dB (both $N$) and at 10\,dB with $N = 16$, and 18 and 11 wells at $-5$\,dB with $N = 4$ and 16. At 10\,dB with $N = 4$, the outcomes are strongly correlated within realizations (intra-class correlation 0.45), and no $n_{\mathrm{b}} \le 40$ reaches a pass probability of 0.8. At 1\,ms, four of the six cells need 11--30 wells; at 2\,ms, only 0\,dB stays within 40 (23 and 37 wells); at 3\,ms or more, no cell does. Tests that use the size of the difference need fewer wells: in a resampling check on the same data, a paired $t$-test and a Wilcoxon signed-rank test on the log ratios needed 25--50\% fewer wells than the sign test at the same reference error (for example 12 and 16 against 24 at $\sigma_{\mathrm{ref}} = 1.5$\,ms, 10\,dB, $N = 16$), and at 3\,ms or more neither reached power 0.8 in the $N = 16$ cells within 40 wells (Appendix~\ref{app:record:review}). The $k$-of-$n_{\mathrm{b}}$ rule appears to need fewer wells, but it is not a test. With independent wells and no true difference, it passes with probability $5/16 = 0.31$ at $n_{\mathrm{b}} = 4$ and $7/64 = 0.11$ at $n_{\mathrm{b}} = 6$. A one-sided sign test at $\alpha = 0.05$ cannot reject at all with four wells, because its smallest attainable $p$-value is $1/16$.
|
||||
|
||||
The clustering matters. Under a beta-binomial null with intra-class correlation 0.1, the nominal sign test at $\alpha = 0.05$ rejects a true null with probability 0.05 at 10 wells, 0.13 at 20 and 0.23 at 40; at 0.45, the value of the 10\,dB cell with $N = 4$, these become 0.24, 0.34 and 0.40. We therefore recomputed $n_{\mathrm{b}}^\star$ with the critical value chosen so that the size is at most 0.05 under the intra-class correlation of each cell (post hoc, declared before it was computed; Appendix~\ref{app:record:review}). With an exact reference, the 0\,dB cell with $N = 4$ then needs 10 wells instead of 5, the $-5$\,dB cell with $N = 16$ needs 18 instead of 11, and the $-5$\,dB cell with $N = 4$ no longer reaches power 0.8 within 40 wells; the three other cells are unchanged. Because a shared training set affects all blind wells of a realization alike, the power of the calibrated test does not approach 1 as wells are added: its limit is 0.37 and 0.46 in the two cells with $N = 4$ at 10 and $-5$\,dB. At $\sigma_{\mathrm{ref}} = 0.5$\,ms three cells still reach 0.8 (5, 11 and 20 wells), at 1\,ms two (16 and 25 wells, both with $N = 16$), and at 1.5\,ms or more none. The intra-class correlations come from eight realizations and are imprecise, so these numbers indicate an order of magnitude.
|
||||
|
||||
\paragraph{A worked example.}
|
||||
Consider a comparison at $-5$\,dB with $N = 16$ training wells, where the best deterministic tie has a warp error of $\sigma = 7.3$\,ms on the training wells. Corollary~\ref{cor:tolerance} requires a reference error below $\sigma/\sqrt2 = 5.1$\,ms for the measured advantage to keep its sign, and in the simulation the ranking reversed at 4.3\,ms. Detecting the gain requires much more. A sign test with a power of 0.8 needs 11 blind wells with an exact reference, 16 with $\sigma_{\mathrm{ref}} = 0.5$\,ms and 30 with 1\,ms, and at 1.5\,ms or more 40 wells do not suffice (Table~\ref{tab:t3}). An analyst who can estimate the reference error can read the required number of wells from this table, for predictors of comparable skill. The alternative reference we built for Teapot Dome has a residual of 6.75\,ms (Section~\ref{sec:exp:scope}), which exceeds even the limit for the sign of the comparison.
|
||||
Consider a comparison at $-5$\,dB with $N = 16$ training wells, where the best deterministic tie has a warp error of $\sigma = 7.3$\,ms on the training wells. Corollary~\ref{cor:tolerance} requires a reference error below $\sigma/\sqrt2 = 5.1$\,ms for the measured advantage to keep its sign, and in the simulation the ranking reversed at 4.3\,ms. Detecting the gain requires much more. A sign test with a power of 0.8 needs 11 blind wells with an exact reference, 16 with $\sigma_{\mathrm{ref}} = 0.5$\,ms and 30 with 1\,ms, and at 1.5\,ms or more 40 wells do not suffice (Table~\ref{tab:t3}). With its null calibrated for wells that share training data, it needs 18 wells with an exact reference, and at 0.5\,ms or more 40 wells do not suffice. An analyst who can estimate the reference error can read the required number of wells from this table, for predictors of comparable skill. The alternative reference we built for Teapot Dome has a residual of 6.75\,ms (Section~\ref{sec:exp:scope}), which exceeds even the limit for the sign of the comparison.
|
||||
|
||||
\begin{table}[t]
|
||||
\centering
|
||||
@@ -399,7 +409,7 @@ $-5$\,dB, $N = 16$ & Phase-est.\ corr. & 0.89 & 0.92 & 0.08 & 0.51 & 0.31 & 11
|
||||
\label{sec:exp:scope}
|
||||
|
||||
\paragraph{Neither field test met its pass rule.}
|
||||
On F3, with four wells, the rule required the \mRML{} to have a lower band RMSE than the selected deterministic tie at no fewer than three of the four blind wells, and macro coverage of its 80\% and 90\% intervals within $[0.75, 0.85]$ and $[0.85, 0.95]$. On Volve, with six deviated wells and a density-driven porosity label, the (descriptive) rule asked for the same at five of six wells under two hold-out schemes (single wells, and slots, the groups of wells that share a borehole), with total RMSE on the labelled samples. On F3, the \mRML{} improved at one well of four, and coverage was 0.52 and 0.61. On F3 no learned model beat a depth--time trend in total RMSE (Appendix~\ref{app:field}). Its sensitivity variants (anchor uncertainty, scoring reference, band split, label) improved at one to three wells and never met the coverage condition. On Volve, it improved at two (leave-one-well-out) and three (slot) of six wells, and coverage of the 90\% interval was 0.48 and 0.47. No method had skill at the Volve blind wells: macro $R^2$ was negative for every method, and a constant at the training-well mean of the porosity label (PHIF) had a lower macro RMSE than every network (6.03 and 6.59\,p.u.\ under the two schemes, against 6.50 and 7.13\,p.u.\ for the \mRML; post hoc). We claim no improvement on field data and no calibrated uncertainty. Appendix~\ref{app:field} gives the designs and all tables.
|
||||
On F3, with four wells, the rule required the \mRML{} to have a lower band RMSE than the selected deterministic tie at no fewer than three of the four blind wells, and macro coverage of its 80\% and 90\% intervals within $[0.75, 0.85]$ and $[0.85, 0.95]$. On Volve, with six deviated wells and a density-driven porosity label, the (descriptive) rule asked for the same at five of six wells under two hold-out schemes (single wells, and slots, the groups of wells that share a borehole), with total RMSE on the labelled samples. On F3, the \mRML{} improved at one well of four, and coverage was 0.52 and 0.61. On F3 no learned model beat a depth--time trend in total RMSE (Appendix~\ref{app:field}). Its sensitivity variants (anchor uncertainty, scoring reference, band split, label) improved at one to three wells and never met the coverage condition. On Volve, it improved at two (leave-one-well-out) and three (slot) of six wells, and coverage of the 90\% interval was 0.48 and 0.47. No method had skill at the Volve blind wells: macro $R^2$ was negative for every method, and a constant at the training-well mean of the porosity label (PHIF) had a lower macro RMSE than every network (6.03 and 6.59\,p.u.\ under the two schemes, against 6.50 and 7.13\,p.u.\ for the \mRML; post hoc). We claim no improvement on field data and no calibrated uncertainty. At F-11 T2, the one Volve well with a VSP, changing the scoring reference moved the RMSE of each method by more than the spread between methods and reordered them (post hoc). Appendix~\ref{app:field} gives the designs and all tables.
|
||||
|
||||
\paragraph{Neither test could have detected the effect.}
|
||||
After both tests had failed, we stated four conditions under which a field test of this kind bears on the synthetic result and evaluated them without test labels. Their thresholds come mechanically from Experiment~2, so the conditions are post hoc but were not tuned to the field results.
|
||||
|
||||
@@ -18,7 +18,7 @@ Table~\ref{tab:lessons} lists the failed tests. Three patterns recur. The traini
|
||||
Test & Outcome & Cause & Lesson \\
|
||||
\midrule
|
||||
Anchor bank, Experiment~1 & 0 of 4 cells at $c = 1$ & Posterior did not contract: warp RMSE 3.25\,ms against 3.85\,ms for the correlation tie & Check on development data that the posterior beats the best deterministic tie in warp error. SMC reached 0.56\,ms \\
|
||||
Anchor uncertainty halved or doubled & 0 of 2 cells in each arm (one setting) & Posterior miscalibrated both ways: coverage 0.62 and 0.52 against 0.89 & Estimate $\sigma_a$ from independent time--depth data outside the test set \\
|
||||
Anchor uncertainty halved or doubled & 0 of 2 cells in each arm, at 10\,dB and (exploratory) at $-5$\,dB & Posterior miscalibrated both ways: coverage 0.62 and 0.52 against 0.89 at 10\,dB; over-trusted anchors made the fitted drift prior rougher & Estimate $\sigma_a$ from independent time--depth data outside the test set \\
|
||||
Frequency-dependent wavelet phase & Ratio 1.023 and 1.042 & Constant-phase fit collapsed onto a wrong warp: coverage 0.17 and 0.10 & Compare the SMC mean warp with a correlation tie built with the statistical wavelet (untested), which degraded by at most 4\% \\
|
||||
Unit-dependent rock physics & Ratio 0.940 and 0.934; missed 0.90 & Every method worsened (Oracle up to 1.84 times); registration still worked and the squared-error gain was largely kept & The tie posterior stays usable; judge gains in absolute error as well as by ratio \\
|
||||
Advantage over the anchor mean at $-5$\,dB & 0 of 2 cells; ratios 0.98 and 0.97 & Seismic likelihood adds little to the anchors at low SNR$^\ast$ & Expect the SMC posterior to help mainly where the seismic constrains the tie \\
|
||||
@@ -47,7 +47,7 @@ These recommendations hold within this benchmark, where the data follow the regi
|
||||
Proposition~\ref{prop:reference} and the detectability analysis turn the field failures into four requirements, derived under the benchmark simulator.
|
||||
\begin{enumerate}
|
||||
\item \emph{A reference independent of the seismic and, in our simulations, accurate to the order of 1\,ms.} To leading order, the measured advantage has the sign of the true one only if the reference error is below $1/\sqrt2$ times the tie error being detected (Corollary~\ref{cor:tolerance}), and power is lost well before that point. Check shots or a vertical seismic profile can in principle meet this requirement once their datum and statics are reconciled with the seismic. The one comparison we have is at Volve well F-11 T2, where the operator's picks lay within $-6.1$ to $+2.3$\,ms of the VSP and the marker-calibrated sonic within $-2.4$ to $-0.8$\,ms (Appendix~\ref{app:field}). A reference tied by synthetic--seismic matching on the same seismic cannot, because its error is not independent of the predictions.
|
||||
\item \emph{A number of blind wells set by a power analysis, with a test as the pass rule.} With four blind wells, as on F3, a one-sided sign test at $\alpha = 0.05$ cannot reject at all, because its smallest attainable $p$-value is $1/16$. With an exact reference, a sign test reached a power of 0.8 with 5--18 blind wells in five of the six cells. At 1\,ms it needed 11--30 wells in four cells, and at 3\,ms or more no cell reached that power with 40 wells. Section~\ref{sec:exp:detect} works through one case.
|
||||
\item \emph{A number of blind wells set by a power analysis, with a test as the pass rule.} With four blind wells, as on F3, a one-sided sign test at $\alpha = 0.05$ cannot reject at all, because its smallest attainable $p$-value is $1/16$. With an exact reference, a nominal sign test reached a power of 0.8 with 5--18 blind wells in five of the six cells; with its null calibrated for blind wells that share training data, four cells reached it with 5--18 wells. At 1\,ms the calibrated test needed 16 and 25 wells in two cells, and at 1.5\,ms or more no cell reached that power with 40 wells. The test must account for that sharing, because the nominal sign test rejects a true null far more often than its level when the outcomes of blind wells are correlated. Section~\ref{sec:exp:detect} works through one case.
|
||||
\item \emph{An anchor uncertainty estimated outside the test set} (item 2 above).
|
||||
\item \emph{Networks with skill in the seismic band at blind wells,} shown before registration is compared.
|
||||
\end{enumerate}
|
||||
@@ -57,10 +57,10 @@ The two field cases meet none of the four. Neither F3 nor Volve is evidence agai
|
||||
\begin{itemize}
|
||||
\item \textbf{One simulator.} In the nominal cells the data follow the rock physics and the warp-prior family that the registration assumes, with a registration prior on the bulk offset wider than the truth, so the gains there are not estimates of the gains to expect on field data. Every confirmatory result comes from one generator family with statistics estimated on F3. Lateral heterogeneity, multiples, anisotropy and non-stationary noise were not simulated, and the misspecification levels are not calibrated to any field.
|
||||
\item \textbf{Band of the benchmark.} In the benchmark, 72\% of the band power of the synthetic labels and 73\% of that of the Oracle predictions at 10\,dB lies below 25\,Hz, so the low-frequency concentration of the predictions is already present in the labels. The F3 $\mathrm{PHIE}_{\mathrm{DT}}$ labels are richer in high frequencies, with 54\% below 25\,Hz (46--68\% across the four wells), and the F3 seismic peaks near 60\,Hz (Table~\ref{tab:bandspectra}; post hoc and descriptive). The measured sensitivities to timing error may therefore understate what a label with more high-frequency content would suffer. We did not test this.
|
||||
\item \textbf{Dependence between tests.} Experiment~2 was designed after Experiment~1 had failed. Experiment~3 reuses its test realizations and SMC particles and was designed after the field tests and post hoc analyses. F3 also supplied the statistics of the generator, and the Volve test was designed after the F3 test had failed.
|
||||
\item \textbf{Dependence between tests.} Experiment~2 was designed after Experiment~1 had failed. Its main comparisons were repeated on eight realizations generated afterwards (Section~\ref{sec:exp:p2r}), but under reading rules written after its results were known. Experiment~3 reuses its test realizations and SMC particles, was designed after the field tests and post hoc analyses, and was not replicated, because its runner is locked to those realizations. F3 also supplied the statistics of the generator, and the Volve test was designed after the F3 test had failed.
|
||||
\item \textbf{Tempering.} Every hash-locked bank used $\lambda = 1/\tau_c$, a heuristic fixed in advance, where RML is not near the limit analysed in Section~\ref{sec:theory:post}. The $\lambda \to 0$ objective and MSE on the bank-mean label were trained only in an exploratory arm declared after all verdicts (Appendix~\ref{app:record}). That arm cannot confirm Proposition~\ref{prop:bank}, because the SMC bank is finite and has not been shown to be calibrated.
|
||||
\item \textbf{Strong drift.} At $c = 2$ the mean warp of the SMC posterior was unstable between runs and the posterior was often multimodal. These cells are not primary evidence for the posterior-mean claim.
|
||||
\item \textbf{Untested stresses.} The anchor-uncertainty stress was tested in one setting only (10\,dB, $c = 1$, where the posterior is narrow), and its effect at $-5$\,dB, where the posterior is wide and F3-like, is unknown. Experiment~3 did not vary the anchor uncertainty, varied the bulk-offset prior only together with the other drift hyperparameters, and tested cycle skipping only in an idealized two-mode form. At low SNR the SMC stability criterion failed in one of four development cells at $c = 1$, mainly through the phase estimate.
|
||||
\item \textbf{Untested stresses.} The anchor-uncertainty stress was tested at $c = 1$ only, at 10\,dB (hash-locked) and at $-5$\,dB (exploratory), and only with factor-of-two errors; the benchmark package carries two such settings at 10\,dB, but no hash-locked benchmark test varied the anchor uncertainty. Experiment~3 varied the bulk-offset prior only together with the other drift hyperparameters, and tested cycle skipping only in an idealized two-mode form. At low SNR the SMC stability criterion failed in one of four development cells at $c = 1$, mainly through the phase estimate. Seismic noise correlated between traces, TCN budgets below 125 iterations and a Gaussian bank on the misspecification axes of the benchmark were not tested.
|
||||
\item \textbf{Uncertainty quantification.} Seed ensembles under-covered for every method ($\xi$ of 0.19--0.66 at 10\,dB, $c = 1$, $N = 16$; on F3 the macro 80\% coverage of every hash-locked probabilistic method was 0.38--0.52, on Volve 0.29--0.39). Because training length and label source are confounded, the population statements of Proposition~\ref{prop:coverage} for the point label and the calibrated bank remain untested.
|
||||
\item \textbf{Backbone.} Apart from two F3 ablations, the only second backbone is the TCN, in three settings; it was weaker and selected the smallest budget, so this is a check of robustness. Assumption (A3) holds only approximately for either backbone.
|
||||
\item \textbf{Detectability.} The analysis rescored predictions with the skill of Experiment~2 against references whose errors are smooth and independent of the predictions. A reference tied on the same seismic adds a covariance with the predictions that we did not model.
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
|
||||
A well tie is an uncertain estimate, yet learning workflows treat it as exact. Treating its error as an error in the time index of the label predicts two opposite effects: timing errors independent of the data blur the optimal predictor, whereas the error of a posterior-mean tie is predicted to sharpen it in a linear-Gaussian model; on the benchmark no sharpening was detected. Without anchors, absolute timing is not identified. For Gaussian errors, a calibrated bank of posterior labels has a population gain of only fourth order in the tie error, so finite-sample effects can dominate.
|
||||
|
||||
Where the true timing was known, the outcome depended first on the tie posterior. A posterior that did not contract gave no gain, and one that did gave labels with 8--22\% lower seismic-band RMSE than the best deterministic tie. That gain reflects a more accurate tie model (against the mean of an anchor-only posterior it was 2--33\%, shrinking as noise grew): the mode of the same posterior, used as a point tie, gave most of the gain, and averaging over the posterior added at most 3\%. A bank of posterior samples added a smaller gain when the posterior was wide, so registration comes first and representing its remaining uncertainty second.
|
||||
Where the true timing was known, the outcome depended first on the tie posterior. A posterior that did not contract gave no gain, and one that did gave labels with 8--22\% lower seismic-band RMSE than the best deterministic tie, and 7--19\% lower on eight realizations generated afterwards. That gain reflects a more accurate tie model (against the mean of an anchor-only posterior it was 2--33\%, shrinking as noise grew): the mode of the same posterior, used as a point tie, gave most of the gain, and averaging over the posterior added at most 3\%. A bank of posterior samples added a smaller gain when the posterior was wide, so registration comes first and representing its remaining uncertainty second.
|
||||
|
||||
The benchmark located where these results stop. The advantage required a correct anchor uncertainty, in the one setting tested, and a wavelet phase within the tie model. It held at stronger drift, with a second backbone and under a scaled warp prior that tested mainly the benign direction, and a two-mode label error reversed the sign of the learned seismic band as predicted. Released with reference results, a scorer and the locked rules, the benchmark lets other tie methods be compared where the truth is known.
|
||||
The benchmark located where these results stop. The advantage required a correct anchor uncertainty, at 10\,dB and at $-5$\,dB, and a wavelet phase within the tie model. It held at stronger drift, with a second backbone and under a scaled warp prior that tested mainly the benign direction, and a two-mode label error reversed the sign of the learned seismic band as predicted. Released with reference results, a scorer and the locked rules, the benchmark lets other tie methods be compared where the truth is known.
|
||||
|
||||
Whether such gains hold on field data remains open. F3 and Volve showed no consistent improvement, and Teapot Dome has independent time--depth references at no more than two of the 152 wells with density logs across its target inside the 3-D survey. A field comparison of tie methods needs, for effects of the size found in the benchmark, a reference independent of the seismic and accurate to the order of 1\,ms in our simulations, enough blind wells for a test with adequate power, an anchor uncertainty estimated outside the test set, and networks with skill in the seismic band. The detectability analysis and the locked protocols allow these gains to be tested once a dataset that meets these conditions is available.
|
||||
|
||||
|
||||
@@ -164,6 +164,8 @@ The six wells are held out under two schemes. Under \emph{lowo}, each well is th
|
||||
\paragraph{Neither condition held.}
|
||||
Under lowo, inner validation chose the calibrated sonic at every well, and the \mRML{} had lower RMSE at two wells (F-1 B by 1.1\% and F-11 T2 by 1.5\%) and was 0.4--4.6\% worse at the other four (Table~\ref{tab:volvegd}). Its macro RMSE was 6.50\,p.u.\ against 6.36\,p.u.\ for the calibrated sonic. Under slot, inner validation chose the correlation tie in the F-1 slot and the calibrated sonic in the others, and the \mRML{} improved at three wells. The two large ratios in that scheme, 0.85 at F-1 and 0.90 at F-1 B, are against the correlation tie, which had the lowest inner-validation MSE in that fold but was worse than the calibrated sonic at both test wells (8.04 against 7.27\,p.u.\ and 5.35 against 5.17\,p.u.); against the calibrated sonic, the \mRML{} is 5.7\% better at F-1 and 7.2\% better at F-1 B. Its macro RMSE under slot was 7.13\,p.u.\ against 7.32\,p.u.\ for the selected ties. Against the \mPM{}, the \mRML{} was lower at three of six wells under lowo and four of six under slot, with macro differences of 0.02 and 0.13\,p.u. Macro coverage was 0.39 and 0.48 (lowo) and 0.35 and 0.47 (slot) for the 80\% and 90\% intervals, and no well reached nominal coverage; the highest values were 0.68 and 0.72 at F-1 B.
|
||||
|
||||
F-11 T2 is the only well at which the reference can be compared with an independent time--depth measurement. Scored at $\sigma_a = 7$\,ms against each of the four references of the protocol (the label placed by the marker-calibrated sonic, by linear interpolation between the picks without the sonic, and by the two VSP time--depth tables of the well, NIVSP and OPTIMIZED), the ensemble RMSE of each method moved by 0.31--0.51\,p.u.\ across references, while the spread between the five methods under one reference was 0.12--0.29\,p.u. The ranking changed with the reference: under lowo the correlation tie was best against both VSP tables and the calibrated sonic, and the \mPM{} against the pick interpolation; under slot the \mRML{} was best against the pick interpolation and third against both VSP tables. The references score 20--24 labelled samples, so part of the change comes from the samples themselves. This comparison is post hoc (declared before it was computed, after the results were known) and covers one well; it shows that at Volve the choice of reference is not a detail of the scoring.
|
||||
|
||||
\begin{table}[t]
|
||||
\centering
|
||||
\caption{Volve pass rule (label PHIF, marker-calibrated vertical-sonic reference, labelled samples in 2400--2900\,ms, $\sigma_a = 7$\,ms, combined ensembles). Competitor: the deterministic tie chosen by inner validation. Ratio: RMSE of \mRML{} divided by that of the competitor. $n$: labelled 4\,ms samples. Coverage: fraction of those samples inside the central interval of \mRML. F-12 is alone in its slot, so its two rows are identical.}
|
||||
|
||||
@@ -89,16 +89,16 @@ Oracle prediction, $-5$\,dB & 1.16 & 52 & 20 & 13 & 9 & 6 & 14 \\
|
||||
\end{tabular}
|
||||
\end{table}
|
||||
|
||||
\subsection{Analyses added after review}
|
||||
\subsection{Analyses added after the main results}
|
||||
\label{app:record:review}
|
||||
|
||||
Three exploratory analyses were declared and hashed after a simulated review and before any computation. They read saved predictions, runs and posterior samples, and regenerate the locked synthetic realizations to rebuild deterministic ties; no network was trained and no verdict changed.
|
||||
Three exploratory analyses were declared and hashed after the main results were known and before any computation. They read saved predictions, runs and posterior samples, and regenerate the locked synthetic realizations to rebuild deterministic ties; no network was trained and no verdict changed.
|
||||
|
||||
\paragraph{Sharpening.}
|
||||
The transfer $\hat H$ of the network trained on posterior-mean labels relative to the Oracle network, both at 500 iterations, was estimated as in Section~\ref{sec:theory:blur} in the cells at $c = 1$ ($N = 8$) and $c = 1.5$ ($N = 16$) of the drift--well-count grid, with 95\% bootstrap intervals over realizations. Summarized by the geometric mean over the usable frequencies (6.8 to 25--38\,Hz), it was 0.990 [0.978, 1.000] and 0.993 [0.973, 1.011] at 10\,dB, 0.981 and 0.967 [0.948, 0.989] at 0\,dB, 0.934 [0.859, 0.997] and 0.903 [0.850, 0.958] at $-5$\,dB, 0.965 and 0.948 [0.931, 0.974] in the half-anchor setting, and 0.795 and 0.652 in the two-anchor setting. A Gaussian Berkson error at the posterior width predicts 1.003--1.214. The interval excluded 1 from below in six cells and from above in none. At the budgets of Experiment~2 (posterior mean at 250 iterations, Oracle at 500), the posterior-mean network was at 0.79--1.02 at $c = 1$ and the best deterministic tie at 0.72--0.96, below 1 in all ten cells.
|
||||
|
||||
\paragraph{Decision rules under permutation.}
|
||||
Swapping the method labels of a cell at random, either for whole realizations (all 256 assignments) or for each realization--seed unit (20\,000 draws), gives the probability that a rule passes when the two methods are exchangeable. For the margin rule it was 0.004--0.10 per cell with realization swaps and at most $3 \times 10^{-4}$ with unit swaps; for the verdicts that need two cells it was 0.004--0.035 (posterior-mean claim at 10, 0 and $-5$\,dB: 0.016, 0.004, 0.035; its extension to $c = 1.5$, the scaled warp prior and the TCN: 0.027, 0.016, 0.027). For the no-margin rule it was 0.17--0.36 per cell with realization swaps and 0.14--0.16 with unit swaps; for the verdicts, 0.22 (bank claim, at least 6 of 8 wide cells), 0.16 (TCN bank) and 0.36 (two-member bank, four cells) with realization swaps. With eight realizations the no-margin rule cannot fall below $93/256 = 0.36$ per cell under realization swaps, because it counts signs only. In all 14 cells decided by it, the bootstrap interval of the ratio excluded 1. No correction for multiplicity was applied.
|
||||
Swapping the method labels of a cell at random, either for whole realizations (all 256 assignments) or for each realization--seed unit (20\,000 draws), gives the probability that a rule passes when the two methods are exchangeable. For the margin rule it was 0.004--0.10 per cell with realization swaps and at most $3 \times 10^{-4}$ with unit swaps; for the verdicts that need two cells it was 0.004--0.035 (posterior-mean claim at 10, 0 and $-5$\,dB: 0.016, 0.004, 0.035; its extension to $c = 1.5$, the scaled warp prior and the TCN: 0.027, 0.016, 0.027). For the no-margin rule it was 0.17--0.36 per cell with realization swaps and 0.14--0.16 with unit swaps; for the verdicts, 0.22 (bank claim, at least 6 of 8 wide cells), 0.16 (TCN bank) and 0.36 (two-member bank, four cells) with realization swaps. With eight realizations the no-margin rule passes a cell under realization swaps with probability at most $93/256 = 0.36$, the probability that at least five of eight fair signs favour one method, because it counts signs only. In all 14 cells decided by it, the bootstrap interval of the ratio excluded 1. No correction for multiplicity was applied.
|
||||
|
||||
\paragraph{A truth-free check of the posterior.}
|
||||
At each training well, the RMS difference between the SMC mean warp and the correlation tie was computed in the nominal and misspecification settings at $c = 1$. At 10\,dB and $N = 16$ it was 3.9\,ms in the nominal setting, close to the error of the correlation tie (3.9\,ms) and far from that of the SMC mean (0.6\,ms). Relative to the nominal setting it was 1.00 [0.90, 1.11] under the mild wavelet phase, 1.25 [1.06, 1.46] under the strong one, 1.14 and 1.25 under rock physics, 0.85 under attenuation and 0.94--1.00 under the warp presets; at $-5$\,dB all ratios lay in 0.93--1.03. The rank correlation over wells between this difference and the error of the SMC mean was $-0.03$ to 0.22 at $N = 16$. The check followed the error of the correlation tie, not that of the posterior.
|
||||
@@ -161,3 +161,8 @@ For the window-mean offset $a$ at the 128 training wells of each cell ($N = 16$,
|
||||
|
||||
\paragraph{Blind wells needed under other tests.}
|
||||
Resampling realizations and wells from the saved indicators (1\,000 draws per cell, reference error and number of wells), the smallest number of blind wells reaching power 0.8 at $\alpha = 0.05$ was, for the sign test, the Wilcoxon signed-rank test and the paired $t$-test on the log ratio of band RMSEs: 8, 6 and 4 with an exact reference at 10\,dB, $N = 16$; 16, 10 and 8 at $\sigma_{\mathrm{ref}} = 1$\,ms; 24, 16 and 12 at 1.5\,ms; and none, 24 and 20 at 2\,ms. At 0\,dB, $N = 16$: 8, 6 and 4; 16, 8 and 8; 30, 20 and 16 at 0, 1 and 2\,ms. At $-5$\,dB, $N = 16$: 16, 8 and 8; 24, 16 and 12; none, 30 and 24. At 3\,ms none of the $N = 16$ cells reached 0.8 with 40 wells. The sign-test values differ from those of Table~\ref{tab:t3}, which uses a beta-binomial model of the correlation within realizations; the resampling reuses the same eight realizations and carries no interval of its own.
|
||||
|
||||
\paragraph{Analyses declared after the external reviews.}
|
||||
After four simulated external reviews, a further set of analyses was declared and hashed before any of them was computed. Three read existing outputs only. (i) The sign test of Section~\ref{sec:exp:detect} was recalibrated for the clustering of blind wells: under a beta-binomial null with intra-class correlation $\rho$, the critical value is the smallest $k$ whose size is at most 0.05. The nominal test has size 0.031, 0.011, 0.021 and 0.040 at 5, 10, 20 and 40 wells for $\rho = 0$, but 0.066, 0.054, 0.129 and 0.231 for $\rho = 0.1$ and 0.222, 0.243, 0.337 and 0.400 for $\rho = 0.45$. With the calibrated critical value and the intra-class correlation of each cell of Table~\ref{tab:t3}, $n_{\mathrm{b}}^\star$ with an exact reference is 10, 5, --, 5, -- and 18 for 0\,dB, 10\,dB and $-5$\,dB with $N = 4$ and 16 (nominal: 5, 5, --, 5, 18, 11). As $n_{\mathrm{b}} \to \infty$ the power tends to the probability that a Beta variable with the cell's win rate and intra-class correlation exceeds the 0.95 quantile of its null counterpart; this limit is 0.37 and 0.46 in the two cells with $N = 4$ at 10 and $-5$\,dB and 0.93 at $-5$\,dB with $N = 16$. (ii) At F-11 T2 on Volve, the ensemble RMSE at $\sigma_a = 7$\,ms was tabulated under the four references of the protocol (Appendix~\ref{app:field}). (iii) In the 11 cells with $N = 16$ of the tempering-limit analysis (no cell at 10\,dB with $c = 1$), the 90\% coverage of single networks, averaged over test wells, seeds and realizations, was 0.39--0.60, 0.29--0.43 and 0.22--0.28 for the \mPM{} after 125, 250 and 500 iterations, 0.40--0.60, 0.29--0.42 and 0.23--0.29 for the \mRML{}, and 0.21--0.26 for the Oracle after 500. Items (ii) and (iii) are post hoc, because the outputs they read had been seen.
|
||||
|
||||
The other three items of the same declaration needed new computation. (iv) Experiment~2 was repeated on realizations 16--23, which did not exist when the rules were hashed; their fingerprints (hashes of the seismic traces, logs and true warps) were recorded before any training. The grid was $c = 1$ for the three full-anchor, half-anchor and two-anchor settings and $c = 0$ for the full-anchor settings, $N \in \{4, 16\}$, with the locked posterior and training scripts, the budgets of Experiment~2, five seeds and the same seven methods, plus the SMC mode, the anchor-only mode and the Gaussian bank of the point-tie analysis at 250 iterations. A retrained posterior-mean network reproduced the locked script's band RMSE in all 128 checked rows (largest difference $2.2\times10^{-16}$). Results are in Section~\ref{sec:exp:p2r}. The SMC posterior at $c = 1$, $N = 16$ had $\sigpost$, warp RMSE and 90\% coverage of 0.59, 0.55\,ms and 0.91 at 10\,dB, 1.45, 1.54\,ms and 0.89 at 0\,dB, 2.52, 2.59\,ms and 0.87 at $-5$\,dB, 1.71, 1.87\,ms and 0.87 in the half-anchor setting, and 1.84, 4.51\,ms and 0.56 in the two-anchor setting, close to Experiment~2. (v) The anchor-uncertainty test was run at $-5$\,dB, $c = 1$, realizations 8--15, with $\sigma_a^{\mathrm{reg}} \in \{3.5, 14\}$\,ms (Table~\ref{tab:sigmaa}). The declared reading kept the claim that the gain requires a correct $\sigma_a$ unless all four cells passed; none did. (vi) At 10\,dB, $c = 1$, the drift hyperparameters were refitted with $\sigma_a \in \{3.5, 7, 14\}$\,ms. The fitted correlation length was 14.6 and 10.2\,ms at 3.5\,ms, 80.6 and 89.9\,ms at 7\,ms, and 187 and 253\,ms at 14\,ms ($N = 4$, 16), and the slope standard deviation 0.26 and 0.29, 0.098 and 0.096, and 0.053 and 0.064. At 3.5\,ms, 3 of 8 fits with $N = 4$ and all 8 with $N = 16$ ended at a bound of the search (slope standard deviation 0.3 or correlation length 10\,ms); none did at 7 or 14\,ms. The SMC posterior at $\sigma_a = 3.5$\,ms was then rerun with the hyperparameters of the 7\,ms fit (posterior only). The declared reading attributed the extra width to the refit if $\sigpost \le 1.0$\,ms at both $N$; it was 0.88 and 0.67\,ms. Two deviations from the declaration: the training runs did not save per-trace predictions (the declaration listed that option; no reported number uses them), and a server restart and a shortage of GPU memory interrupted the runs, which were split into smaller stages and resumed with the same commands, skipping completed jobs. Not done, as declared: noise correlated between traces, TCN budgets below 125 iterations, a Gaussian bank on the benchmark axes, and a replication of Experiment~3.
|
||||
|
||||
21
report.html
21
report.html
@@ -245,7 +245,7 @@ footer{margin-top:32px;color:var(--mute);font-size:12px}
|
||||
|
||||
<script>
|
||||
/* ===================== DATA (sửa ở đây) ===================== */
|
||||
const START = "2026-10-26", END = "2026-11-14"; // END tính cả ngày; mục tiêu: nộp bài thứ 7 14/11/2026 (dời ngày 29/10 từ 31/10, Pivot 1 mức B)
|
||||
const START = "2026-10-26", END = "2026-11-14"; // END tính cả ngày; từ 11/11/2026 không còn hạn ngày (plan §12 ý 46, D-17); trước đó: nộp bài thứ 7 14/11/2026 (dời ngày 29/10 từ 31/10, Pivot 1 mức B)
|
||||
const STATES = {todo:"Chưa làm", doing:"Đang làm", done:"Xong", blocked:"Bị chặn"};
|
||||
|
||||
const PHASES = [
|
||||
@@ -339,12 +339,13 @@ const PHASES = [
|
||||
{id:"p6-s7", t:"S7: đóng gói benchmark (một lệnh sinh, một lệnh chấm, bảng tham chiếu, README, hash, Zenodo)", s:"done", n:"Xong sớm 02/11, trừ bước deposit Zenodo (cần tài khoản và danh sách tác giả của người dùng). scripts/37_bench_package.py (ngoài lock; generate và tables kiểm lock trước). generate: 630 task (test 8–15, dev 900–905; mỗi realization 45 task: 5 regime × 5 c, 14 setting S2, 6 setting S8), truth ẩn, input, analyst.json → outputs/bench/package/ (845 MB). Hash nội dung trong benchmark/MANIFEST.json; chạy lại tái lập 1.260/1.260 hash, check khớp 1.265/1.265 file. tables: 45.200 run tham chiếu, 21 phương pháp → benchmark/reference/. score áp luật ô H2a và luật better của summary.py. selftest đạt: bản chép dự đoán B3d-Sa/BK2 đã lưu cho lại metric (lệch ≤ 5e-10) và luật (S1-H1 0,8529 / 0,7964). Hướng dẫn: benchmark/README.md (tiếng Anh). Metadata Zenodo nháp: benchmark/zenodo_metadata.json (giấy phép nháp CC BY-SA 3.0 theo F3, cần kiểm). plan.md §12 ý 29."},
|
||||
{id:"p6-write", t:"Viết lại các mục kết quả theo số liệu mới", s:"done", n:"Xong sớm 02/11 (plan §12 ý 30). Sec. 6.5 mới, Thí nghiệm 3: bảng thiết kế và bảng 11 verdict với cả hai cách đọc (D-13); hình phase diagram S1; bảng S2 ghi rõ hai trục trượt (rock physics, pha wavelet); S3, S4; bảng và hình S8; nhánh cùng budget. Sec. 6.4 (T2) thay todoblock. Sec. 3.2 thêm preset misspec; Sec. 5 thêm TCN và các dòng benchmark của tab:methods. Cập nhật abstract, intro, discussion, kết luận, availability; bỏ TODO ở tiêu đề. Hình vẽ bằng scripts/38_bench_figures.py (ngoài lock). Chữ 'calibrated' của S8-H2 chỉ theo nghĩa yếu (truth là thành viên); bài ghi rõ BK2 không phải bank hiệu chỉnh theo Mệnh đề 4 (D-14). Nguồn số: paper/README.md."}
|
||||
]},
|
||||
{id:"P7", name:"P7 Review và nộp", start:"2026-11-11", end:"2026-11-14", weeks:"T4–T7 11–14/11",
|
||||
{id:"P7", name:"P7 Review và nộp", start:"2026-11-11", end:"2026-11-14", weeks:"từ T4 11/11 (không còn hạn ngày)",
|
||||
out:"bản nộp", gate:null,
|
||||
tasks:[
|
||||
{id:"p7-rev", t:"Review nội bộ; hình; phụ lục chứng minh; gói tái lập", s:"todo", n:"T4 11/11 – T5 12/11. Phụ lục chứng minh rà xong 02/11, gói tái lập dựng xong 02/11. Rà soát chống hallucination toàn bài xong sớm 04/11 (plan §12 ý 36; <a href=\"docs/research/paper-audit.md\">biên bản</a>): 87 phát hiện, 4 lỗi S1, đều đã sửa; không verdict nào đổi. Còn mở cho tác giả: G1-14, 7 PDF thiếu, licence Volve, null Rm5. Mô phỏng ba referee của venue xong 04/11 (plan §12 ý 37; <a href=\"docs/research/referee-simulation.md\">biên bản</a>): 3/3 Major revision; thư quyết định 5 mục chờ người dùng chọn các mục thí nghiệm mới. Năm hình còn mã cũ đã vẽ lại theo tên mô tả ngày 09/11; clean-room check chạy lại đạt 12/12 (plan §12 ý 40). Nhánh exploratory λ → 0 chạy xong 10/11 và đã ghi vào Limitations và Phụ lục C (plan §12 ý 41). Ngày 10/11 chốt bốn đóng góp, đổi tên bài, viết lại flow theo đóng góp và cho một referee Fable chấm lại: Major revision. Ngày 10/11 làm nhóm A + B (sửa chữ, ba phân tích exploratory trên dữ liệu đã có; plan §12 ý 43); chưa push được."},
|
||||
{id:"p7-nov", t:"Kiểm tra tính mới lần cuối, tra quartile, đăng preprint", s:"todo", n:"T6 13/11. Quét sơ bộ xong 02/11 (plan §12 ý 31): không bài nào đưa bất định tie vào huấn luyện; thêm Herrera 2014, Autotie 2026 (chỉ abstract) và Castagna 2026 (đọc toàn văn 02/11, plan §12 ý 33). Ngày 13/11: quét lại; abstract IMAGE 2026 của Palavicini Gurria; DOI Quesada 2024."},
|
||||
{id:"p7-sub", t:"Nộp Computers & Geosciences", s:"todo", n:"T7 14/11."}
|
||||
{id:"p7-rev", t:"Review nội bộ; hình; phụ lục chứng minh; gói tái lập", s:"doing", n:"Không còn hạn ngày (từ 11/11). Phụ lục chứng minh rà xong 02/11, gói tái lập dựng xong 02/11. Rà soát chống hallucination toàn bài xong sớm 04/11 (plan §12 ý 36; <a href=\"docs/research/paper-audit.md\">biên bản</a>): 87 phát hiện, 4 lỗi S1, đều đã sửa; không verdict nào đổi. Còn mở cho tác giả: G1-14, 7 PDF thiếu, licence Volve, null Rm5. Mô phỏng ba referee của venue xong 04/11 (plan §12 ý 37; <a href=\"docs/research/referee-simulation.md\">biên bản</a>): 3/3 Major revision; thư quyết định 5 mục chờ người dùng chọn các mục thí nghiệm mới. Năm hình còn mã cũ đã vẽ lại theo tên mô tả ngày 09/11; clean-room check chạy lại đạt 12/12 (plan §12 ý 40). Nhánh exploratory λ → 0 chạy xong 10/11 và đã ghi vào Limitations và Phụ lục C (plan §12 ý 41). Ngày 10/11 chốt bốn đóng góp, đổi tên bài, viết lại flow theo đóng góp và cho một referee Fable chấm lại: Major revision. Ngày 10/11 làm nhóm A + B (sửa chữ, ba phân tích exploratory trên dữ liệu đã có; plan §12 ý 43); chưa push được. Ngày 11–12/11 làm thêm các phân tích review còn mở (task kế tiếp, plan §12 ý 46); bài 83 trang."},
|
||||
{id:"p7-r6", t:"Sao lặp Thí nghiệm 2 trên 8 realization mới; σ_a sai ở −5 dB; cơ chế σ_a = 3,5 ms; ba phân tích rẻ (exploratory)", s:"done", n:"11–12/11 (plan §12 ý 46). Khai báo và băm trước khi sinh realization 16–23 (<a href=\"docs/research/r6-replication.md\">khai báo</a>, 13b8b943…; <a href=\"docs/research/r6-results.md\">kết quả</a>); ngoài mọi lock. Server khởi động lại 18:05 UTC 11/11 làm mất các tmux session; chạy lại cùng lệnh sau khi kiểm file, xong 04:35 UTC 12/11 trên cuda:0 dùng chung. Sao lặp: SMC mean hơn tie tất định tốt nhất 7–19% (trước 8–22%); verdict theo regime như cũ; mode SMC thắng 10/10 ô; bank đạt 2/3 ô rộng; bank Gauss ≈ bank SMC. σ_a sai ở −5 dB: 0/2 ở cả 3,5 và 14 ms. Cơ chế 3,5 ms: prior drift khớp lại thô hơn (ℓ 10–15 so với 80–90 ms). Ba phân tích rẻ: sign test hiệu chỉnh cần nhiều giếng hơn; F-11 T2 Volve phụ thuộc tham chiếu; thứ tự coverage do độ dài huấn luyện. Không làm: nhiễu tương quan, TCN < 125, bank Gauss trên trục benchmark, sao lặp Thí nghiệm 3. <a href=\"outputs/replication/summary/summary.md\">Tổng hợp</a>, <a href=\"outputs/r6/summary.md\">A1–A3</a>."},
|
||||
{id:"p7-nov", t:"Kiểm tra tính mới lần cuối, tra quartile, đăng preprint", s:"todo", n:"T6 13/11. Quét sơ bộ xong 02/11 (plan §12 ý 31): không bài nào đưa bất định tie vào huấn luyện; thêm Herrera 2014, Autotie 2026 (chỉ abstract) và Castagna 2026 (đọc toàn văn 02/11, plan §12 ý 33). Trước khi nộp: quét lại; abstract IMAGE 2026 của Palavicini Gurria; DOI Quesada 2024."},
|
||||
{id:"p7-sub", t:"Nộp Computers & Geosciences", s:"todo", n:"Không còn hạn ngày (D-17); trước đó T7 14/11. Tác giả cần điền danh sách tác giả và các khai báo."}
|
||||
]}
|
||||
];
|
||||
|
||||
@@ -382,7 +383,8 @@ const DECISIONS = [
|
||||
{id:"D-13", q:"Code tổng hợp đã khoá của protocol_bench khác lời phát biểu ở ba verdict", p:"Phán quyết theo lời phát biểu: S1-H1 lấy hai ô N ∈ {4, 16}; S2-H1 một verdict mỗi trục; S3-H1 đối thủ là {B3b, B3c, B3c-R, B4a–d}, không có Ctl-GP. Tính ở scripts/36_bench_verdicts.py (ngoài lock); không sửa code đã khoá; báo cáo cả hai cách đọc và ghi là deviation thực thi trong Methods.", n:"Phát hiện ngày 02/11, sau chạy chính và trước khi bài dùng số. Chỉ S3-H1 đổi kết luận: theo code không đạt ở mọi regime vì Ctl-GP (bank nhiễu GP cùng hai moment của posterior) gần trùng B3d-Sa; theo phát biểu đạt ở R10, R0, Rm5. S1-H1: code trả null vì S1 có 4 giá trị N. S2-H1: code tính đúng từng trục, chỉ summary.md in sai. Agent chốt theo bằng chứng."},
|
||||
{id:"D-14", q:"Lời phát biểu đã khoá của S8-H2 gọi BK2 là 'calibrated bank'", p:"Giữ verdict, sửa cách diễn đạt trong bài: 'calibrated' ở đây chỉ nghĩa yếu (warp thật là một thành viên). Bài ghi rõ BK2 không phải bank hiệu chỉnh theo Mệnh đề 4, và đối chiếu transfer đo được với cos²(πfΔ) của Hệ quả 3 (a). Đây là post hoc, không phải verdict (scripts/38_bench_figures.py --flipband).", n:"02/11, khi viết Sec. 6.5 (plan §12 ý 30). Không sửa protocol đã khoá. Trong băng đảo dấu ở N = 16, BK2 có transfer 0,92–1,00, trong khi trung bình cos² là 0,05–0,59: BK2 làm tốt hơn trung bình hai thành viên của nó, khớp với tái đăng ký (Remark 1). Agent chốt theo bằng chứng."},
|
||||
{id:"D-15", q:"Dùng tên gì cho kịch bản và phương pháp trong bài?", p:"Tên mô tả (10 dB, half-anchor, SMC mean, SMC bank, calibrated sonic...). Config, output và code giữ mã cũ; mapping ở paper/README.md.", n:"Người dùng thấy các mã tự đặt khó hiểu; các bài C&G đọc được đều dùng tên bằng lời. Cơ sở ở docs/research/paper-style-survey.md."},
|
||||
{id:"D-16", q:"Đóng góp của bài là gì, và tên bài?", p:"Bốn đóng góp theo bốn khoảng trống của Related Work: Đ1 lý thuyết sai số tie trong nhãn huấn luyện; Đ2 kiểm định có kiểm soát việc huấn luyện trên posterior của tie (registration trước, bất định sau; RML là công cụ so sánh); Đ3 benchmark có warp thật, truth công khai; Đ4 điều kiện cho field test. Tên mới: Uncertain well ties in learned seismic property prediction: theory, a benchmark with known timing, and requirements for blind-well tests.", n:"10/11/2026, người dùng đồng ý (plan §12 ý 42). Lợi ích 8–22% của SMC mean phần lớn đã có ở c = 0 nên là do tie chính xác hơn; bank thêm 2–11% khi posterior rộng, và nhánh λ → 0 cho thấy phần này không chỉ do tempering. Không chạy thêm đối thủ MAP. Abstract, highlights, Introduction, Related Work (2 đoạn mới, 6 tài liệu mới đã xác minh), mở đầu Sec. 3/5/6, Discussion và Conclusions viết lại theo bốn đóng góp; bỏ chữ hidden truth."},
|
||||
{id:"D-16", q:"Đóng góp của bài là gì, và tên bài?", p:"Bốn đóng góp theo bốn khoảng trống của Related Work: Đ1 lý thuyết sai số tie trong nhãn huấn luyện; Đ2 kiểm định có kiểm soát việc huấn luyện trên posterior của tie (registration trước, bất định sau; RML là công cụ so sánh); Đ3 benchmark có warp thật, truth công khai; Đ4 điều kiện cho field test. Tên mới: Uncertain well ties in learned seismic property prediction: theory, a benchmark with known timing, and requirements for blind-well tests.", n:"10/11/2026, người dùng đồng ý (plan §12 ý 42). Lợi ích 8–22% của SMC mean phần lớn đã có ở c = 0 nên là do tie chính xác hơn; bank thêm 2–11% khi posterior rộng, và nhánh λ → 0 cho thấy phần này không chỉ do tempering. Không chạy thêm đối thủ MAP. Abstract, highlights, Introduction, Related Work (2 đoạn mới, 6 tài liệu mới đã xác minh), mở đầu Sec. 3/5/6, Discussion và Conclusions viết lại theo bốn đóng góp; bỏ chữ hidden truth."},,
|
||||
{id:"D-17", q:"Còn giữ hạn nộp 14/11 không?", p:"Không. Bỏ mọi hạn ngày trong plan; làm mọi việc cần thiết cho bài. Ngưỡng, luật và protocol khoá không đổi.", n:"11/11/2026, người dùng: \"ngày không quan trọng, bỏ qua tất cả deadline ngày trong plan, làm tất cả những việc bạn cho là cần thiết\" (plan §12 ý 46). Thay phần hạn ngày của D-6."}
|
||||
];
|
||||
|
||||
const FINDS = [
|
||||
@@ -423,7 +425,8 @@ const FINDS = [
|
||||
{h:"T2: lợi ích bank ở c = 1 chủ yếu là tăng cường nhãn, không phải thông tin của posterior", p:"Exploratory, khai báo trước. Sai số nhãn của B3d-Sa là <b>Berkson</b> ở c = 1, nên cận áp dụng là 1/B_b và lợi ích H2b không vượt hiệu chỉnh quần thể. Một bank nhiễu GP có cùng trung bình và hiệp phương sai với posterior (không thêm thông tin) đạt phần lớn lợi ích ở c = 1; bank SMC chỉ hơn rõ ở c = 2. RML có tái định vị ngầm (warp trọng số responsibility tốt hơn 13–40 % ở 8/8 ô rộng). Khoảng một phần ba khoảng cách PM–Oracle là độ dài huấn luyện."},
|
||||
{h:"P6: nhãn trung bình posterior đứng vững trước c = 1,5, backbone TCN và baseline B4, nhưng không trước sai pha wavelet", p:"protocol_bench, realization 8–15, R10. B3d-Sa hơn tie điểm tốt nhất ở c = 1,5 (<b>0,853 / 0,796</b> ở N = 4/16), với TCN ở c = 1 (0,840 / 0,823) và khi thêm B4a–d làm đối thủ (B4 không là đối thủ tốt nhất ở ô c ≤ 1 nào). Dưới sai mô hình mức L1: drift giữ lợi ích (0,862 / 0,798); rock physics thu hẹp xuống dưới ngưỡng (0,940 / 0,934); sai pha wavelet xoá hẳn (1,023 / 1,042 so với B3c) vì posterior SMC quá tự tin (cov90 0,17 / 0,10; warp RMSE 2,6 / 2,3 ms so với σ_post 0,7 ms). Dự đoán trước là đạt cho cả rock physics và wavelet."},
|
||||
{h:"P6: bank hai mode sửa nhãn trung bình khi các mode tách được (S8)", p:"Posterior hai mode dựng từ warp thật. Ở Δ = 32 ms, R10, hàm truyền của nhãn trung bình (PM2) so với Oracle âm trong băng đảo dấu (<b>−0,70 / −0,49</b>), đúng Hệ quả 3. Bank hai thành viên (BK2) có band RMSE bằng 0,28–0,71 lần PM2 ở Δ ∈ {16, 32} ms; ở Δ = 8 ms (mô tả) 0,60–0,98. BK2 không phải bank hiệu chỉnh theo Mệnh đề 4: khi λ → 0, Hệ quả 3 cho transfer cos²(πfΔ), trung bình 0,05–0,59 trong băng đảo dấu, nhưng đo được 0,92–1,00 ở N = 16 (post hoc). Điều này khớp với tái đăng ký qua responsibility. S1-H2: lợi ích bank tăng theo N ở 13/13 họ rộng, ρ = −0,47."},
|
||||
{h:"Nhánh λ → 0: một phần lợi ích của bank không cần tempering hữu hạn", p:"Exploratory, khai báo và băm trước khi tính (<a href=\"docs/research/lambda-limit.md\">khai báo</a>, <a href=\"docs/research/lambda-limit-results.md\">kết quả</a>); chỉ mô tả, không phải verdict, không kiểm chứng Mệnh đề 4. P2r realization 8–15, N = 16, 250 vòng. Bank SMC ở λ = 10⁻³ (S_eff ≥ 0,99 × 64) thắng SMC mean ở <b>8/8</b> ô rộng (0,940–0,983 ở c = 1) và giữ 55–63% lợi ích của M2-Sa ở ba ô c = 1 (ở −5 dB hai bank như nhau). M2-Sa (λ = 1/τ_c) hơn bank λ → 0 ở <b>6/8</b> ô rộng (cả bốn ô c = 2), còn 4/8 ở 500 vòng. MSE trên nhãn trung bình kém bank λ → 0 khoảng 7,6–10% ở mọi ô rộng và khoảng 8% ở c = 0, phù hợp với vai trò của loss hơn của nhãn (không tách được). Tái lập 7.040/7.040 dòng, sai lệch 0."}
|
||||
{h:"Nhánh λ → 0: một phần lợi ích của bank không cần tempering hữu hạn", p:"Exploratory, khai báo và băm trước khi tính (<a href=\"docs/research/lambda-limit.md\">khai báo</a>, <a href=\"docs/research/lambda-limit-results.md\">kết quả</a>); chỉ mô tả, không phải verdict, không kiểm chứng Mệnh đề 4. P2r realization 8–15, N = 16, 250 vòng. Bank SMC ở λ = 10⁻³ (S_eff ≥ 0,99 × 64) thắng SMC mean ở <b>8/8</b> ô rộng (0,940–0,983 ở c = 1) và giữ 55–63% lợi ích của M2-Sa ở ba ô c = 1 (ở −5 dB hai bank như nhau). M2-Sa (λ = 1/τ_c) hơn bank λ → 0 ở <b>6/8</b> ô rộng (cả bốn ô c = 2), còn 4/8 ở 500 vòng. MSE trên nhãn trung bình kém bank λ → 0 khoảng 7,6–10% ở mọi ô rộng và khoảng 8% ở c = 0, phù hợp với vai trò của loss hơn của nhãn (không tách được). Tái lập 7.040/7.040 dòng, sai lệch 0."},
|
||||
{h:"Lợi ích của SMC mean lặp lại trên 8 realization mới; lợi ích vẫn cần σ_a đúng", p:"Exploratory, khai báo và băm trước khi sinh realization 16–23 (<a href=\"docs/research/r6-results.md\">kết quả</a>). Ở c = 1, SMC mean hơn tie tất định tốt nhất <b>7–19%</b> (trước 8–22%), không drift 0,82–0,90; mode SMC thắng tie tốt nhất ở 10/10 ô (0,73–0,96); bank SMC đạt 2/3 ô rộng; bank Gauss trong 2%. Khi σ_a sai hai lần ở −5 dB: <b>0/2</b> ô đạt ở cả 3,5 và 14 ms (0,98–1,02, so với 0,92 khi đúng). Anchor quá tin (3,5 ms) bị hấp thụ vào prior drift khớp lại thô hơn: ℓ 10–15 ms so với 80–90 ms."}
|
||||
];
|
||||
|
||||
const DATA = [
|
||||
@@ -605,7 +608,9 @@ const LOG = [
|
||||
["2026-11-10","Sau B1 sửa các chỗ dựa vào cận Berkson: Sec. 6.3 báo cả hai cận mà không chọn, Sec. 6.4/7 nói chưa xác định cận nào áp dụng; Introduction và Conclusions coi sharpening là dự đoán. Build sạch, 76 trang. Giao một referee Opus chấm độc lập và đối chiếu với R4 (plan §12 ý 43)."],
|
||||
["2026-11-10","Referee Opus (R5): Major revision, độ tin trung bình–cao; điểm 3/3/3/3/4/4/4. Vấn đề quyết định: đối thủ tất định yếu và thiếu point tie cùng thông tin; dự đoán sharpening thất bại chứ không chỉ chưa thấy, phép kiểm Berkson không đủ; lý thuyết λ → 0 khác thí nghiệm λ ≈ 0,37; điều kiện field hẹp hơn lời văn; bootstrap 8 realization. Đối chiếu R4: 5/8 mục chính đã xử lý, 2 một phần, 1 chưa. Chưa sửa theo R5."],
|
||||
["2026-11-10","Sửa theo R5 (plan §12 ý 44): sửa chữ + khoảng tin cậy exploratory đã khai báo trước (scripts/43_referee_r5_ci.py). BCa không đổi kết luận nào trong 38 tỉ số; t-interval đổi 3 ô sát biên. So với anchor mean lợi ích của SMC mean là 2–33% (0,81/0,67 ở 10 dB; 0,98/0,97 ở −5 dB); không drift, tie tất định vẫn cao hơn Oracle 15–29%. Abstract 249 từ viết lại; sharpening là dự đoán bị mâu thuẫn; thêm tài liệu age–depth, White 1980, Walden & White 1984, CTC. Chưa làm: tie cùng thông tin, trục σ_a, kiểm độc lập Berkson, Wilcoxon n_b. Build sạch, 78 trang."],
|
||||
["2026-11-10","Làm bốn việc còn mở (plan §12 ý 45), mọi phân tích khai báo và băm trước. Point tie cùng thông tin (scripts/44, GPU 17 phút): mode xấp xỉ của posterior SMC thắng tie tất định tốt nhất ở 12/12 ô (0,78–0,95), lấy trung bình posterior thêm ≤ 3%; Anchor-LS (chỉ anchor) kém hơn ở 10 dB c = 1 (1,15–1,25). Kiểm độc lập Berkson bị bác ở 10/10 ô; Wilcoxon và t cặp cần ít giếng hơn kiểm định dấu 25–50%. Benchmark thêm hai setting σ_a sai (658 task, 0 hash cũ đổi). Clean-room thêm archive và sáu bước verify. Clean-room chạy lại 18/18 bước, không file nào khác, không đọc ngoài gói. Bài 80 trang, build sạch."],
|
||||
["2026-11-10","Làm bốn việc còn mở (plan §12 ý 45), mọi phân tích khai báo và băm trước. Point tie cùng thông tin (scripts/44, GPU 17 phút): mode xấp xỉ của posterior SMC thắng tie tất định tốt nhất ở 12/12 ô (0,78–0,95), lấy trung bình posterior thêm ≤ 3%; Anchor-LS (chỉ anchor) kém hơn ở 10 dB c = 1 (1,15–1,25). Kiểm độc lập Berkson bị bác ở 10/10 ô; Wilcoxon và t cặp cần ít giếng hơn kiểm định dấu 25–50%. Benchmark thêm hai setting σ_a sai (658 task, 0 hash cũ đổi). Clean-room thêm archive và sáu bước verify. Clean-room chạy lại 18/18 bước, không file nào khác, không đọc ngoài gói. Bài 80 trang, build sạch."],,
|
||||
["2026-11-11","Người dùng bỏ mọi hạn ngày (D-17). Khai báo và băm docs/research/r6-replication.md (13b8b943…) trước khi sinh realization 16–23. Ba phân tích rẻ (scripts/48, CPU): sign test hiệu chỉnh tương quan, F-11 T2 theo bốn tham chiếu, coverage cùng độ dài huấn luyện; đưa vào Sec. 6.6, App. B, App. C cùng các sửa chữ theo hai review. Bắt đầu chạy GPU (scripts/run_r6.sh) trên cuda:0. Server khởi động lại khoảng 18:05 UTC làm mất mọi tmux session."],
|
||||
["2026-11-12","Kiểm file rồi chạy lại cùng lệnh từ 02:10 UTC; mọi stage xong 04:35 UTC, tái lập 128/128. Sao lặp Thí nghiệm 2: 7–19% (trước 8–22%), verdict theo regime như cũ, bank 2/3 ô rộng. σ_a sai ở −5 dB: 0/4 ô. Cơ chế 3,5 ms: prior drift thô hơn. Đưa vào bài (Sec. 6.3, tab:sigmaa, abstract, Intro, Conclusions, App. C); main.pdf 83 trang, build sạch. Viết docs/research/r6-results.md; đồng bộ plan §12 ý 46, AGENTS.md, README.md, paper/README.md."]
|
||||
];
|
||||
/* ===================== HẾT DATA ===================== */
|
||||
|
||||
|
||||
331
scripts/46_r6_replication.py
Normal file
331
scripts/46_r6_replication.py
Normal file
@@ -0,0 +1,331 @@
|
||||
"""R6 B1 and B2 (declared in docs/research/r6-replication.md, hashed before the realizations were generated; outside every
|
||||
lock and the reproduction archives).
|
||||
|
||||
B1 replicates Experiment 2 on realizations 16-23 (never generated before the declaration). Posteriors and the seven
|
||||
registered methods come from the locked scripts 14 and 15 (outputs/replication/{posterior,train}/<regime>/, see
|
||||
scripts/run_r6.sh); this script adds
|
||||
--stage fingerprints SHA-256 fingerprints of realizations 16-23 (as tests/test_d2_misspec.py) -> fingerprints.json
|
||||
--stage arms SMC-MAP, Anchor-LS (scripts/44) and Ctl-GP (scripts/32 control_bank) at 250 iterations, seeds 0-4,
|
||||
plus B3d-Sa at seed 0 as a reproduction check of the scripts/15 rows -> arms/<cell>.csv
|
||||
--stage summary the declared readings R-H2a, R-H2b, R-MAP, R-Ctl, R-ALS (B1) and the sigma_a arm at -5 dB (B2)
|
||||
-> summary/{h2a.csv, h2b.csv, ratios.csv, sigma_a.csv, verdict.json, summary.md}
|
||||
|
||||
CUDA_VISIBLE_DEVICES=0 .venv/bin/python scripts/46_r6_replication.py --stage arms --workers 2 --device cuda:0
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import hashlib
|
||||
import importlib.util
|
||||
import json
|
||||
import math
|
||||
import os
|
||||
import time
|
||||
from concurrent.futures import ProcessPoolExecutor, as_completed
|
||||
from multiprocessing import get_context
|
||||
|
||||
for _k in ("OMP_NUM_THREADS", "MKL_NUM_THREADS", "OPENBLAS_NUM_THREADS", "NUMBA_NUM_THREADS", "NUMEXPR_NUM_THREADS"):
|
||||
os.environ.setdefault(_k, "2")
|
||||
|
||||
import numpy as np
|
||||
import pandas as pd
|
||||
|
||||
from ml_porosity.paths import REPO_ROOT, outputs_dir
|
||||
|
||||
|
||||
def load_script(name: str):
|
||||
spec = importlib.util.spec_from_file_location("s" + name[:2], REPO_ROOT / "scripts" / name)
|
||||
mod = importlib.util.module_from_spec(spec)
|
||||
spec.loader.exec_module(mod)
|
||||
return mod
|
||||
|
||||
|
||||
REP = outputs_dir() / "replication"
|
||||
t2 = load_script("32_t2_mechanism.py")
|
||||
s44 = load_script("44_point_tie_arm.py")
|
||||
s18 = load_script("18_summarize_p2r.py")
|
||||
ci = s44.ci
|
||||
run_d2 = t2.run_d2
|
||||
t2.P2R = REP # build_cell reads REP/posterior/<regime>/...
|
||||
s44.P2R = REP # point_warps reads the tempering gamma from REP/posterior/<regime>/...
|
||||
|
||||
DECL = REPO_ROOT / "docs" / "research" / "r6-replication.md"
|
||||
DECL_HASH = REPO_ROOT / "docs" / "research" / "r6-replication.sha256"
|
||||
RIDS = list(range(16, 24))
|
||||
SEEDS = [0, 1, 2, 3, 4]
|
||||
NS = [4, 16]
|
||||
C1_REGIMES = ["R10", "R0", "Rm5", "R0h", "R10tb"]
|
||||
C0_REGIMES = ["R10", "R0", "Rm5"]
|
||||
CELLS = [(r, 1.0, n) for r in C1_REGIMES for n in NS] + [(r, 0.0, n) for r in C0_REGIMES for n in NS]
|
||||
H2A_REGIMES = ["R10", "R0", "Rm5"]
|
||||
POINT = list(s18.POINT_TIES) # B3b, B3c, B3c-R
|
||||
BUDGET = 250
|
||||
ARMS = ["SMC-MAP", "Anchor-LS", "Ctl-GP"]
|
||||
SA_ARMS = ["Rm5_sa3.5", "Rm5_sa14"]
|
||||
N_BOOT = 2000
|
||||
|
||||
|
||||
def check_declaration() -> str:
|
||||
expected = DECL_HASH.read_text().split()[0]
|
||||
actual = hashlib.sha256(DECL.read_bytes()).hexdigest()
|
||||
if actual != expected:
|
||||
raise SystemExit(f"{DECL.name} differs from its recorded SHA-256")
|
||||
return actual
|
||||
|
||||
|
||||
# ------------------------------------------------------------------------------------------------- fingerprints
|
||||
def stage_fingerprints(P: dict) -> None:
|
||||
"""Same definition as tests/test_d2_misspec.py (fields of every well; observations of the test wells and the
|
||||
first four pool wells at c = 0, 1, 2, 10 dB, sigma_a = 7 ms, full anchors)."""
|
||||
import scipy
|
||||
import yaml
|
||||
from ml_porosity.data.synth_d2 import D2Realization, load_horizon_grid
|
||||
from ml_porosity.registration.warp_prior import WarpHyper
|
||||
|
||||
sha = lambda chunks: (lambda h: ([h.update(np.ascontiguousarray(np.asarray(a)).tobytes()) for a in chunks], h.hexdigest())[1])(hashlib.sha256())
|
||||
fields = ("seis_clean", "noise_unit", "phi_t", "z_g", "z_b", "boundaries_t", "eps_a")
|
||||
keys = ("seis", "phi_log", "ai_log", "tau_k", "t_k", "b", "g", "t_of_tau_true", "y_true")
|
||||
cfg = yaml.safe_load((REPO_ROOT / P["inputs"]["d2_config"]["path"]).read_text())
|
||||
hg = load_horizon_grid(cfg["horizons"], REPO_ROOT / cfg["horizon_cache"])
|
||||
prior = json.loads((REPO_ROOT / P["inputs"]["warp_prior"]["path"]).read_text())["fits"][P["inputs"]["warp_prior"]["fit"]]
|
||||
wav = np.load(REPO_ROOT / P["inputs"]["wavelet"]["path"])[P["inputs"]["wavelet"]["key"]]
|
||||
out = {"meta": {"numpy": np.__version__, "scipy": scipy.__version__, "d2_config": P["inputs"]["d2_config"]["path"],
|
||||
"declaration": check_declaration()}, "rids": {}}
|
||||
for rid in RIDS:
|
||||
R = D2Realization(cfg, rid, hg, WarpHyper(**prior["hyper"]), wav)
|
||||
obs = [R.observe(w, c, 10, 7.0, "full") for c in (0.0, 1.0, 2.0) for w in R.test + R.pool[:4]]
|
||||
out["rids"][str(rid)] = {"wells": {k: sha(getattr(w, k) for w in R.wells) for k in fields},
|
||||
"obs": {k: sha(o[k] for o in obs) for k in keys}}
|
||||
print(f"fingerprint r{rid}", flush=True)
|
||||
(REP / "fingerprints.json").write_text(json.dumps(out, indent=1))
|
||||
|
||||
|
||||
# --------------------------------------------------------------------------------------------------------- arms
|
||||
def arms_job(job) -> tuple[str, float]:
|
||||
regime, rid, c, N, seeds, device, P = job
|
||||
import torch
|
||||
|
||||
torch.set_num_threads(2)
|
||||
from ml_porosity.models.bank_train import train_predict
|
||||
|
||||
t0 = time.time()
|
||||
cell = t2.build_cell(regime, rid, c, N, P, with_register=True)
|
||||
R, out, wells = cell["R"], cell["out"], cell["wells"]
|
||||
stem = t2.tag(regime, rid, c, N)
|
||||
key = dict(regime=regime, rid=rid, c=c, n_train=N)
|
||||
m0, s0 = out["norm"]
|
||||
lam = out["lam"]
|
||||
tcfg = P["training"]["model"] | P["training"]["optimizer"]
|
||||
f_c = P["metrics"]["bands"]["f_c_hz"]
|
||||
nb = lambda a: ((np.asarray(a) - m0) / s0).astype(np.float32)
|
||||
pw = s44.point_warps(cell, regime, rid, c, N)
|
||||
bank = lambda Y, lp: {"kind": "bank", "Y": Y, "logpi": lp, "lam": lam}
|
||||
one = np.zeros((N, 1), np.float32)
|
||||
specs = {arm: bank(nb(np.stack([cell["lab"](w["y_aa"], pw[w["name"]][arm]) for w in wells])), one)
|
||||
for arm in ("SMC-MAP", "Anchor-LS")}
|
||||
Yc, lpc, diag = [], [], []
|
||||
for w in wells:
|
||||
Tc, info = t2.control_bank(w, R, cell["reg"]["S"])
|
||||
Y = cell["lab"](w["y_aa"], Tc)
|
||||
ok = np.all(np.isfinite(Y), 1)
|
||||
Y[~ok] = Y[ok][0]
|
||||
Yc.append(Y)
|
||||
lpc.append(np.where(ok, 0.0, -np.inf) - np.log(ok.sum()))
|
||||
from ml_porosity.registration.ties import warp_errors
|
||||
err = lambda t: warp_errors(np.atleast_2d(t), R.tau_fine, w["o"]["t_of_tau_true"], R.t_main)["warp_rmse_ms"]
|
||||
diag.append(key | {"well": w["name"], "SMC-MAP_warp_rmse_ms": err(pw[w["name"]]["SMC-MAP"]),
|
||||
"Anchor-LS_warp_rmse_ms": err(pw[w["name"]]["Anchor-LS"]), "B3d-Sa_warp_rmse_ms": err(w["tm"]),
|
||||
"map_rank_frac_ll": pw[w["name"]]["map_rank_frac_ll"], "ctl_n_valid": int(ok.sum())} | info)
|
||||
specs["Ctl-GP"] = bank(nb(np.stack(Yc)), np.stack(lpc).astype(np.float32))
|
||||
specs["B3d-Sa"] = bank(nb(np.stack([cell["lab"](w["y_aa"], w["tm"]) for w in wells])), one)
|
||||
rows = []
|
||||
for seed in seeds:
|
||||
for m, sp in specs.items():
|
||||
if m == "B3d-Sa" and seed != 0:
|
||||
continue
|
||||
preds = train_predict(cell["X"], cell["Xte"], sp, tcfg, seed, [BUDGET], device)
|
||||
for b, (mu, sg) in preds.items():
|
||||
mu_p, sg_p = 100 * (mu * s0 + m0), 100 * sg * s0
|
||||
for wt, r in zip(R.test, run_d2.evaluate(cell["yt"], mu_p, sg_p, f_c)):
|
||||
rows.append(key | {"seed": seed, "method": m, "budget": b, "test_well": wt.name} | r)
|
||||
d = REP / "arms"
|
||||
pd.DataFrame(diag).to_csv(d / f"{stem}_diag.csv", index=False)
|
||||
pd.DataFrame(rows).to_csv(d / f"{stem}.csv", index=False) # written last: marks the job complete
|
||||
return stem, time.time() - t0
|
||||
|
||||
|
||||
def stage_arms(P: dict, device: str, workers: int) -> None:
|
||||
(REP / "arms").mkdir(parents=True, exist_ok=True)
|
||||
ready = lambda r, rid, c, n: (REP / "posterior" / r / f"r{rid}_c{c:g}_n{n}_s0_particles.npz").exists()
|
||||
jobs = [(r, rid, c, n, SEEDS, device, P) for (r, c, n) in CELLS for rid in RIDS
|
||||
if ready(r, rid, c, n) and not (REP / "arms" / f"{t2.tag(r, rid, c, n)}.csv").exists()]
|
||||
print(f"{len(jobs)} arm jobs, {workers} workers, device {device}", flush=True)
|
||||
t0 = time.time()
|
||||
if jobs:
|
||||
with ProcessPoolExecutor(workers, mp_context=get_context("spawn")) as ex:
|
||||
futs = {ex.submit(arms_job, j): j[:4] for j in jobs}
|
||||
for i, f in enumerate(as_completed(futs), 1):
|
||||
stem, dt = f.result()
|
||||
print(f"[{i}/{len(jobs)}] {stem} done ({dt:.0f} s; total {time.time() - t0:.0f} s)", flush=True)
|
||||
|
||||
|
||||
# ------------------------------------------------------------------------------------------------------ summary
|
||||
def h2a_readings(runs: dict, rng) -> tuple[pd.DataFrame, dict]:
|
||||
rows, out = [], {}
|
||||
sets = {"point_ties": POINT, "with_B3d": POINT + ["B3d"]}
|
||||
for reg in H2A_REGIMES:
|
||||
if reg not in runs:
|
||||
continue
|
||||
for cand in ("B3d-Sa", "M2-Sa"):
|
||||
for sname, comp in sets.items():
|
||||
cells, gv = s18.h2a_cells(runs[reg], cand, comp, rng, N_BOOT)
|
||||
c1 = cells[cells.c == 1.0]
|
||||
complete = bool(len(cells) == 4 and (cells.n_rid == len(RIDS)).all() and (cells.n_seed == len(SEEDS)).all())
|
||||
passed = bool(len(c1) == 2 and c1.cell_pass.all() and gv["zero_drift_guard"])
|
||||
out[f"{reg}/{cand}/{sname}"] = {"c1_cells_pass": f"{int(c1.cell_pass.sum())}/{len(c1)}",
|
||||
"zero_drift_ratio_per_N": gv["zero_drift_ratio_per_N"],
|
||||
"zero_drift_guard": gv["zero_drift_guard"], "regime_pass": passed,
|
||||
"complete": complete}
|
||||
rows.append(cells.assign(regime=reg, candidate=cand, competitors=sname))
|
||||
return (pd.concat(rows, ignore_index=True) if rows else pd.DataFrame()), out
|
||||
|
||||
|
||||
def h2b_readings(runs: dict, sp: pd.DataFrame, rng) -> tuple[pd.DataFrame, dict]:
|
||||
from scipy.stats import spearmanr
|
||||
|
||||
rows = []
|
||||
for reg in C1_REGIMES:
|
||||
if reg not in runs:
|
||||
continue
|
||||
for (c, N), g in runs[reg].groupby(["c", "n_train"]):
|
||||
rows.append({"regime": reg, "c": c, "n_train": N} | s18.pair_cell(g, "M2-Sa", "B3d-Sa", rng, N_BOOT))
|
||||
t = pd.DataFrame(rows)
|
||||
if t.empty:
|
||||
return t, {}
|
||||
t = t.merge(sp.rename(columns={"setting": "regime"})[["regime", "c", "n_train", "sigma_post_ms"]], on=["regime", "c", "n_train"], how="left")
|
||||
t["wide"] = t.sigma_post_ms >= s18.WIDE_MS
|
||||
out = {}
|
||||
for N, g in t.groupby("n_train"):
|
||||
wide = g[g.wide]
|
||||
need = math.ceil(s18.WIDE_FRAC * len(wide) - 1e-9)
|
||||
out[f"n{N}"] = {"wide_cells": len(wide), "wide_pass": int(wide.cell_pass.sum()),
|
||||
"test_a_pass": bool(len(wide) > 0 and wide.cell_pass.sum() >= need),
|
||||
"spearman_sigma_ratio": float(spearmanr(g.sigma_post_ms, g.ratio).statistic) if len(g) > 2 else None,
|
||||
"role": "primary" if N == 16 else "reported only"}
|
||||
return t, out
|
||||
|
||||
|
||||
def stage_summary() -> None:
|
||||
S = REP / "summary"
|
||||
S.mkdir(parents=True, exist_ok=True)
|
||||
rng = np.random.default_rng(0)
|
||||
runs = s18.load_runs(REP)
|
||||
sp = s18.sigma_post(REP)
|
||||
sp.to_csv(S / "sigma_post.csv", index=False)
|
||||
verdict: dict = {"declaration": check_declaration()}
|
||||
h2a_tab, verdict["R-H2a"] = h2a_readings(runs, rng)
|
||||
h2a_tab.to_csv(S / "h2a.csv", index=False)
|
||||
h2b_tab, verdict["R-H2b"] = h2b_readings(runs, sp, rng)
|
||||
h2b_tab.to_csv(S / "h2b.csv", index=False)
|
||||
# B2: sigma_a arm at -5 dB (rule of scripts/18 sigma_a_arm)
|
||||
sa_rows = []
|
||||
for name in SA_ARMS:
|
||||
if name in runs:
|
||||
cells, _ = s18.h2a_cells(runs[name], "B3d-Sa", POINT, rng, N_BOOT)
|
||||
c1 = cells[cells.c == 1.0]
|
||||
verdict.setdefault("B2", {})[name] = {"cells_pass": f"{int(c1.cell_pass.sum())}/{len(c1)}",
|
||||
"pass": bool(len(c1) == 2 and c1.cell_pass.all()),
|
||||
"ratio_per_N": {int(r.n_train): float(r.ratio) for r in c1.itertuples()}}
|
||||
sa_rows.append(c1.assign(setting=name))
|
||||
if sa_rows:
|
||||
pd.concat(sa_rows, ignore_index=True).to_csv(S / "sigma_a.csv", index=False)
|
||||
# arms: reproduction check and ratios
|
||||
files = sorted(f for f in (REP / "arms").glob("*.csv") if not f.name.endswith("_diag.csv")) if (REP / "arms").exists() else []
|
||||
ratio_df = pd.DataFrame()
|
||||
if files:
|
||||
new = pd.concat([pd.read_csv(f) for f in files], ignore_index=True)
|
||||
new = new.groupby(["regime", "rid", "c", "n_train", "method", "seed"], as_index=False).band_rmse.mean()
|
||||
reg = pd.concat([d.assign(regime=k) for k, d in runs.items() if k in C1_REGIMES], ignore_index=True)
|
||||
reg = reg.groupby(["regime", "rid", "c", "n_train", "method", "seed"], as_index=False).band_rmse.mean()
|
||||
a = new[new.method == "B3d-Sa"].merge(reg[reg.method == "B3d-Sa"], on=["regime", "rid", "c", "n_train", "seed"], suffixes=("", "_reg"))
|
||||
dev = float((a.band_rmse - a.band_rmse_reg).abs().max()) if len(a) else float("nan")
|
||||
verdict["arms_selfcheck"] = {"n_rows": int(len(a)), "n_expected": int((new.method == "B3d-Sa").sum()),
|
||||
"band_rmse_abs_dev_max": dev, "ok": bool(len(a) and dev <= 1e-6)}
|
||||
allr = pd.concat([reg, new[new.method.isin(ARMS)]], ignore_index=True)
|
||||
pairs = {"A": ("B3d-Sa", "SMC-MAP"), "B": ("SMC-MAP", "best"), "C": ("Anchor-LS", "best"), "D": ("B3d-Sa", "best"),
|
||||
"F": ("M2-Sa", "SMC-MAP"), "G": ("M2-Sa", "Ctl-GP"), "H": ("Ctl-GP", "B3d-Sa"), "I": ("M2-Sa", "B3d-Sa")}
|
||||
rows = []
|
||||
for (regime, c, N), g in allr.groupby(["regime", "c", "n_train"]):
|
||||
best = min(POINT, key=lambda m: g[g.method == m].band_rmse.mean())
|
||||
per = {m: g[g.method == m].groupby(["rid", "seed"]).band_rmse.mean().groupby("rid").mean() for m in g.method.unique()}
|
||||
for tag, (x, y) in pairs.items():
|
||||
y = best if y == "best" else y
|
||||
if x not in per or y not in per or len(per[x]) < len(RIDS) or len(per[y]) < len(RIDS):
|
||||
continue
|
||||
rows.append({"cmp": tag, "regime": regime, "c": c, "n_train": N, "num": x, "den": y, "best": best}
|
||||
| ci.intervals(per[x], per[y], rng))
|
||||
if all(m in per for m in ("B3d-Sa", "M2-Sa", "Ctl-GP")):
|
||||
pm, rml, ctl = per["B3d-Sa"].mean(), per["M2-Sa"].mean(), per["Ctl-GP"].mean()
|
||||
rows.append({"cmp": "gain_frac_ctl", "regime": regime, "c": c, "n_train": N, "num": "Ctl-GP", "den": "M2-Sa",
|
||||
"ratio": float((pm - ctl) / (pm - rml)) if pm != rml else float("nan")})
|
||||
ratio_df = pd.DataFrame(rows)
|
||||
ratio_df.to_csv(S / "ratios.csv", index=False)
|
||||
A = ratio_df[ratio_df.cmp == "A"]
|
||||
B = ratio_df[(ratio_df.cmp == "B") & (ratio_df.c == 1.0)]
|
||||
verdict["R-MAP"] = {"averaging_at_most_3pct": bool(len(A) and (A.ratio >= 0.97).all()),
|
||||
"A_ratio_range": [float(A.ratio.min()), float(A.ratio.max())] if len(A) else None,
|
||||
"mode_beats_best_tie_c1": bool(len(B) and (B.ratio < 1).all()),
|
||||
"B_ratio_range_c1": [float(B.ratio.min()), float(B.ratio.max())] if len(B) else None,
|
||||
"n_cells_A": int(len(A)), "n_cells_B_c1": int(len(B))}
|
||||
dg = [pd.read_csv(f) for f in sorted((REP / "arms").glob("*_diag.csv"))]
|
||||
if dg:
|
||||
pd.concat(dg, ignore_index=True).groupby(["regime", "c", "n_train"])[
|
||||
["SMC-MAP_warp_rmse_ms", "Anchor-LS_warp_rmse_ms", "B3d-Sa_warp_rmse_ms", "map_rank_frac_ll", "ctl_sd_ratio"]
|
||||
].mean().to_csv(S / "arm_warp_errors.csv")
|
||||
(S / "verdict.json").write_text(json.dumps(verdict, indent=1, default=str))
|
||||
pd.set_option("display.width", 250)
|
||||
txt = ["# R6 replication (realizations 16-23) and sigma_a arm at -5 dB", "", "```json", json.dumps(verdict, indent=1, default=str), "```", "",
|
||||
"## sigma_post", "", sp.round(3).to_markdown(index=False), ""]
|
||||
if len(h2a_tab):
|
||||
cols = ["regime", "candidate", "competitors", "c", "n_train", "best", "ratio", "ratio_lo", "ratio_hi", "seeds_improve",
|
||||
"rids_improve", "cell_pass"]
|
||||
txt += ["## R-H2a cells", "", h2a_tab[cols].round(3).to_markdown(index=False), ""]
|
||||
if len(h2b_tab):
|
||||
txt += ["## R-H2b cells (M2-Sa / B3d-Sa)", "", h2b_tab.drop(columns=["ratio_lo", "ratio_hi"], errors="ignore").round(3).to_markdown(index=False), ""]
|
||||
if sa_rows:
|
||||
txt += ["## B2 sigma_a arm at -5 dB (B3d-Sa vs point ties)", "",
|
||||
pd.read_csv(S / "sigma_a.csv")[["setting", "n_train", "best", "ratio", "ratio_lo", "ratio_hi", "seeds_improve",
|
||||
"rids_improve", "cell_pass"]].round(3).to_markdown(index=False), ""]
|
||||
if len(ratio_df):
|
||||
cols = [c for c in ["cmp", "regime", "c", "n_train", "num", "den", "ratio", "pct_lo", "pct_hi", "bca_lo", "bca_hi", "t_lo", "t_hi"] if c in ratio_df]
|
||||
txt += ["## Ratios of band RMSE (arms)", "", ratio_df[cols].round(3).to_markdown(index=False), ""]
|
||||
if (S / "arm_warp_errors.csv").exists():
|
||||
txt += ["## Warp errors of the arms (ms)", "", pd.read_csv(S / "arm_warp_errors.csv").round(3).to_markdown(index=False), ""]
|
||||
(S / "summary.md").write_text("\n".join(txt) + "\n")
|
||||
print("\n".join(txt))
|
||||
|
||||
|
||||
def main() -> None:
|
||||
ap = argparse.ArgumentParser()
|
||||
ap.add_argument("--stage", choices=["fingerprints", "arms", "summary"], required=True)
|
||||
ap.add_argument("--device", default="cuda:0")
|
||||
ap.add_argument("--workers", type=int, default=2)
|
||||
args = ap.parse_args()
|
||||
sha = check_declaration()
|
||||
P = run_d2.load_protocol(check=True)
|
||||
if run_d2.check_rids(RIDS, P) is not None:
|
||||
raise SystemExit("realizations 16-23 must be outside the protocol_p2r grid")
|
||||
print(f"declaration {sha[:12]}; protocol_p2 and its inputs match the locked hash", flush=True)
|
||||
REP.mkdir(parents=True, exist_ok=True)
|
||||
if args.stage == "fingerprints":
|
||||
stage_fingerprints(P)
|
||||
elif args.stage == "arms":
|
||||
stage_arms(P, args.device, args.workers)
|
||||
else:
|
||||
stage_summary()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
os.environ.setdefault("PYTHONHASHSEED", "0")
|
||||
main()
|
||||
183
scripts/47_r6_fixed_hyper.py
Normal file
183
scripts/47_r6_fixed_hyper.py
Normal file
@@ -0,0 +1,183 @@
|
||||
"""R6 B3 (declared in docs/research/r6-replication.md, hashed before the first run; exploratory; outside every lock and the
|
||||
reproduction archives): why sigma_a = 3.5 ms widens the SMC posterior at 10 dB.
|
||||
|
||||
--stage hyper CPU: MAP-II drift hyperparameters (m_g, sigma_g, ell) of pipeline.fit_cell_hyper at sigma_a = 3.5, 7, 14 ms
|
||||
for R10, c = 1, N = 4 and 16, realizations 8-15 -> outputs/replication/hyper_sigma_a.csv
|
||||
--stage post GPU: the SMC posterior of the locked scripts/14 run_job at sigma_a = 3.5 ms with (m_g, sigma_g, ell) taken
|
||||
from the sigma_a = 7 ms fit. fit_cell_hyper is replaced in this process only; no locked file is edited.
|
||||
-> outputs/replication/posterior/R10_sa3.5_fixhyper/
|
||||
--stage summary sigma_post, warp RMSE and warp coverage90 of the fixed-hyper, refitted and nominal posteriors
|
||||
-> outputs/replication/fixhyper_summary.{csv,md}
|
||||
|
||||
CUDA_VISIBLE_DEVICES=0 .venv/bin/python scripts/47_r6_fixed_hyper.py --stage all --device cuda:0 --gpu-mem-gb 1.5
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import dataclasses
|
||||
import hashlib
|
||||
import importlib.util
|
||||
import json
|
||||
import os
|
||||
import time
|
||||
|
||||
for _k in ("OMP_NUM_THREADS", "MKL_NUM_THREADS", "OPENBLAS_NUM_THREADS", "NUMBA_NUM_THREADS", "NUMEXPR_NUM_THREADS"):
|
||||
os.environ.setdefault(_k, "2")
|
||||
|
||||
import numpy as np
|
||||
import pandas as pd
|
||||
import yaml
|
||||
|
||||
from ml_porosity.paths import REPO_ROOT, outputs_dir
|
||||
|
||||
|
||||
def load_script(name: str):
|
||||
spec = importlib.util.spec_from_file_location("s" + name[:2], REPO_ROOT / "scripts" / name)
|
||||
mod = importlib.util.module_from_spec(spec)
|
||||
spec.loader.exec_module(mod)
|
||||
return mod
|
||||
|
||||
|
||||
s14 = load_script("14_diag_posterior.py")
|
||||
s18 = load_script("18_summarize_p2r.py")
|
||||
run_d2 = s14.run_d2
|
||||
|
||||
DECL = REPO_ROOT / "docs" / "research" / "r6-replication.md"
|
||||
DECL_HASH = REPO_ROOT / "docs" / "research" / "r6-replication.sha256"
|
||||
OUT = outputs_dir() / "replication"
|
||||
P2R = outputs_dir() / "p2r"
|
||||
RIDS = list(range(8, 16))
|
||||
NS = [4, 16]
|
||||
SA_GRID = [3.5, 7.0, 14.0]
|
||||
SA_TEST, SA_NOMINAL = 3.5, 7.0
|
||||
SNR, DENS = 10.0, "full"
|
||||
POST_DIR = OUT / "posterior" / "R10_sa3.5_fixhyper"
|
||||
|
||||
|
||||
def check_declaration() -> str:
|
||||
expected = DECL_HASH.read_text().split()[0]
|
||||
actual = hashlib.sha256(DECL.read_bytes()).hexdigest()
|
||||
if actual != expected:
|
||||
raise SystemExit(f"{DECL.name} differs from its recorded SHA-256")
|
||||
return actual
|
||||
|
||||
|
||||
def cell_obs(rid: int, N: int, P: dict):
|
||||
from ml_porosity.data.synth_d2 import D2Realization, load_horizon_grid
|
||||
from ml_porosity.registration.warp_prior import WarpHyper
|
||||
|
||||
cfg = yaml.safe_load((REPO_ROOT / P["inputs"]["d2_config"]["path"]).read_text())
|
||||
hg = load_horizon_grid(cfg["horizons"], REPO_ROOT / cfg["horizon_cache"])
|
||||
prior = json.loads((REPO_ROOT / P["inputs"]["warp_prior"]["path"]).read_text())["fits"][P["inputs"]["warp_prior"]["fit"]]
|
||||
wav = np.load(REPO_ROOT / P["inputs"]["wavelet"]["path"])[P["inputs"]["wavelet"]["key"]]
|
||||
R = D2Realization(cfg, rid, hg, WarpHyper(**prior["hyper"]), wav)
|
||||
obs = [R.observe(w, 1.0, SNR, cfg["anchors"]["sigma_a_ms"], DENS) for w in R.pool[:N]]
|
||||
return R, obs
|
||||
|
||||
|
||||
def stage_hyper(P: dict) -> None:
|
||||
from ml_porosity.registration import pipeline
|
||||
|
||||
rows = []
|
||||
for rid in RIDS:
|
||||
for N in NS:
|
||||
R, obs = cell_obs(rid, N, P)
|
||||
for sa in SA_GRID:
|
||||
reg = run_d2.reg_settings(P) | {"sigma_a_ms": sa}
|
||||
h, info = pipeline.fit_cell_hyper(R, obs, reg, 0)
|
||||
rows.append(dict(rid=rid, n_train=N, sigma_a_reg=sa, **h.as_dict(),
|
||||
log_marginal=float(info["log_marginal"]), at_bound=str(info["at_bound"])))
|
||||
print(f"hyper r{rid} N{N} done", flush=True)
|
||||
df = pd.DataFrame(rows)
|
||||
df.to_csv(OUT / "hyper_sigma_a.csv", index=False)
|
||||
print(df.groupby(["n_train", "sigma_a_reg"])[["m_g", "sigma_g", "ell_ms"]].agg(["mean", "min", "max"]).round(4).to_string())
|
||||
|
||||
|
||||
def stage_post(P: dict, device: str, mem_gb: float) -> None:
|
||||
from ml_porosity.registration import pipeline
|
||||
|
||||
orig = pipeline.fit_cell_hyper
|
||||
used = []
|
||||
|
||||
def fixed(R, obs, reg, seed=0):
|
||||
h, info = orig(R, obs, reg | {"sigma_a_ms": SA_NOMINAL}, seed)
|
||||
h = dataclasses.replace(h, sigma_a_ms=reg["sigma_a_ms"])
|
||||
used.append(h.as_dict())
|
||||
return h, info
|
||||
|
||||
pipeline.fit_cell_hyper = fixed
|
||||
POST_DIR.mkdir(parents=True, exist_ok=True)
|
||||
st = {"snr_db": SNR, "anchor_density": DENS, "sigma_a_reg": SA_TEST, "wavelets": ["estR"], "smc_seed": None}
|
||||
jobs = [(rid, 1.0, N, 0, 1024, P, POST_DIR, device, mem_gb, st) for N in sorted(NS, reverse=True) for rid in RIDS
|
||||
if not (POST_DIR / f"{s14.job_tag(rid, 1.0, N, 0)}.csv").exists()]
|
||||
print(f"{len(jobs)} posterior jobs (fixed hyperparameters), device {device}", flush=True)
|
||||
t0 = time.time()
|
||||
for i, j in enumerate(jobs, 1):
|
||||
used.clear()
|
||||
s14.run_job(j)
|
||||
tag = s14.job_tag(j[0], j[1], j[2], j[3])
|
||||
(POST_DIR / f"{tag}_hyper.json").write_text(json.dumps(used, indent=1))
|
||||
print(f"[{i}/{len(jobs)}] {tag} done ({time.time() - t0:.0f} s)", flush=True)
|
||||
pipeline.fit_cell_hyper = orig
|
||||
|
||||
|
||||
def stage_summary() -> None:
|
||||
rows = []
|
||||
for name, d in [("nominal sigma_a 7", P2R / "posterior" / "R10"), ("sigma_a 3.5 refit", P2R / "posterior" / "R10_sa3.5"),
|
||||
("sigma_a 3.5 fixed hyper", POST_DIR), ("sigma_a 14 refit", P2R / "posterior" / "R10_sa14")]:
|
||||
for N in NS:
|
||||
for rid in RIDS:
|
||||
f = d / f"r{rid}_c1_n{N}_s0.csv"
|
||||
if not f.exists():
|
||||
continue
|
||||
g = pd.read_csv(f)
|
||||
g = g[(g.method == "SMC_g_acf") & (g.wavelet == "estR")]
|
||||
rows.append(dict(setting=name, n_train=N, rid=rid, sigma_post_ms=float(g.warp_width90_ms.mean() / s18.Z90),
|
||||
warp_rmse_ms=float(g.warp_rmse_ms.mean()), warp_cov90=float(g.warp_cov90.mean())))
|
||||
df = pd.DataFrame(rows)
|
||||
df.to_csv(OUT / "fixhyper_cells.csv", index=False)
|
||||
s = df.groupby(["setting", "n_train"]).agg(n_rid=("rid", "nunique"), sigma_post_ms=("sigma_post_ms", "mean"),
|
||||
warp_rmse_ms=("warp_rmse_ms", "mean"), warp_cov90=("warp_cov90", "mean")).reset_index()
|
||||
s.to_csv(OUT / "fixhyper_summary.csv", index=False)
|
||||
fx = s[s.setting == "sigma_a 3.5 fixed hyper"]
|
||||
if len(fx) == len(NS) and (fx.n_rid == len(RIDS)).all():
|
||||
sp = fx.sigma_post_ms
|
||||
reading = ("drift-prior refit" if (sp <= 1.0).all() else "anchor-likelihood interaction" if (sp >= 2.0).all() else "both")
|
||||
else:
|
||||
reading = "incomplete"
|
||||
txt = ["# R6 B3: sigma_a = 3.5 ms with fixed drift hyperparameters", "",
|
||||
"sigma_post = mean 90% warp width / 3.29 (as scripts/18), SMC_g_acf, estR; mean over train wells then realizations.", "",
|
||||
s.round(3).to_markdown(index=False), "", f"Declared reading: **{reading}**"]
|
||||
hp = OUT / "hyper_sigma_a.csv"
|
||||
if hp.exists():
|
||||
h = pd.read_csv(hp).groupby(["n_train", "sigma_a_reg"])[["m_g", "sigma_g", "ell_ms", "log_marginal"]].mean()
|
||||
txt += ["", "MAP-II drift hyperparameters (mean over realizations 8-15):", "", h.round(4).to_markdown()]
|
||||
(OUT / "fixhyper_summary.md").write_text("\n".join(txt) + "\n")
|
||||
(OUT / "fixhyper_reading.json").write_text(json.dumps({"reading": reading}, indent=1))
|
||||
print("\n".join(txt))
|
||||
|
||||
|
||||
def main() -> None:
|
||||
ap = argparse.ArgumentParser()
|
||||
ap.add_argument("--stage", choices=["hyper", "post", "summary", "all"], default="all")
|
||||
ap.add_argument("--device", default="cuda:0")
|
||||
ap.add_argument("--gpu-mem-gb", type=float, default=1.5)
|
||||
args = ap.parse_args()
|
||||
sha = check_declaration()
|
||||
P = run_d2.load_protocol(check=True)
|
||||
if run_d2.check_rids(RIDS, P) is None:
|
||||
raise SystemExit("expected the protocol_p2r main grid")
|
||||
print(f"declaration {sha[:12]}; protocol_p2 and protocol_p2r with their inputs match the locked hashes", flush=True)
|
||||
OUT.mkdir(parents=True, exist_ok=True)
|
||||
if args.stage in ("hyper", "all"):
|
||||
stage_hyper(P)
|
||||
if args.stage in ("post", "all"):
|
||||
stage_post(P, args.device, args.gpu_mem_gb)
|
||||
if args.stage in ("summary", "all"):
|
||||
stage_summary()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
os.environ.setdefault("PYTHONHASHSEED", "0")
|
||||
main()
|
||||
171
scripts/48_r6_cheap.py
Normal file
171
scripts/48_r6_cheap.py
Normal file
@@ -0,0 +1,171 @@
|
||||
"""R6 A1-A3 (declared in docs/research/r6-replication.md, hashed before the first run; outside every lock and the
|
||||
reproduction archives). CPU only, reads existing outputs.
|
||||
|
||||
A1 cluster-calibrated sign test for the blind-well power of T3 (outputs/t3/cells.csv, nstar.csv)
|
||||
A2 reference sensitivity at F-11 T2, the only Volve well with a VSP (outputs/p4/summary/metrics.csv; descriptive, post hoc)
|
||||
A3 90% coverage of single networks at equal training length (outputs/lambda_limit, outputs/p2r; descriptive, post hoc)
|
||||
|
||||
.venv/bin/python scripts/48_r6_cheap.py -> outputs/r6/{a1_*.csv, a2_*.csv, a3_*.csv, summary.md}
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
import os
|
||||
|
||||
for _k in ("OMP_NUM_THREADS", "MKL_NUM_THREADS", "OPENBLAS_NUM_THREADS"):
|
||||
os.environ.setdefault(_k, "2")
|
||||
|
||||
import numpy as np
|
||||
import pandas as pd
|
||||
from scipy import stats
|
||||
|
||||
from ml_porosity.paths import REPO_ROOT, outputs_dir
|
||||
|
||||
DECL = REPO_ROOT / "docs" / "research" / "r6-replication.md"
|
||||
DECL_HASH = REPO_ROOT / "docs" / "research" / "r6-replication.sha256"
|
||||
OUT = outputs_dir() / "r6"
|
||||
ALPHA, POWER = 0.05, 0.80
|
||||
N_GRID = np.arange(4, 41)
|
||||
RHO_GRID = [0.0, 0.05, 0.1, 0.2, 0.3, 0.45]
|
||||
|
||||
|
||||
def check_declaration() -> str:
|
||||
expected = DECL_HASH.read_text().split()[0]
|
||||
actual = hashlib.sha256(DECL.read_bytes()).hexdigest()
|
||||
if actual != expected:
|
||||
raise SystemExit(f"{DECL.name} differs from its recorded SHA-256")
|
||||
return actual
|
||||
|
||||
|
||||
# ------------------------------------------------------------------------------------------------------------ A1
|
||||
def sf(k: int | None, n: int, p: float, rho: float) -> float:
|
||||
"""P(X >= k), X ~ beta-binomial(n, mean p, ICC rho) (binomial at rho = 0); as scripts/27 pass_prob. k = None: the
|
||||
test can never reject (no critical value at this n), so the rejection probability is 0."""
|
||||
if k is None:
|
||||
return 0.0
|
||||
if rho <= 1e-9:
|
||||
return float(stats.binom.sf(k - 1, n, p))
|
||||
a, b = p * (1 / rho - 1), (1 - p) * (1 / rho - 1)
|
||||
return float(stats.betabinom.sf(k - 1, n, a, b))
|
||||
|
||||
|
||||
def k_crit(n: int, rho: float) -> int | None:
|
||||
for k in range(n + 1):
|
||||
if sf(k, n, 0.5, rho) <= ALPHA:
|
||||
return k
|
||||
return None
|
||||
|
||||
|
||||
def ceiling(p: float, rho: float) -> float:
|
||||
"""lim_{n->inf} power of the calibrated test: P(B > q_rho), B ~ Beta(mean p, ICC rho), q_rho the 0.95 quantile of the null Beta."""
|
||||
if rho <= 1e-9:
|
||||
return 1.0 if p > 0.5 else 0.0
|
||||
s = 1 / rho - 1
|
||||
q = stats.beta.ppf(1 - ALPHA, 0.5 * s, 0.5 * s)
|
||||
return float(stats.beta.sf(q, p * s, (1 - p) * s))
|
||||
|
||||
|
||||
def fmt(v) -> str:
|
||||
return "none" if v is None or (isinstance(v, float) and np.isnan(v)) else f"{int(v)}"
|
||||
|
||||
|
||||
def a1() -> list[str]:
|
||||
size = []
|
||||
for rho in RHO_GRID:
|
||||
for n in N_GRID:
|
||||
kn, kc = k_crit(int(n), 0.0), k_crit(int(n), rho)
|
||||
size.append(dict(rho=rho, n=int(n), k_nominal=kn, size_nominal=sf(kn, int(n), 0.5, rho),
|
||||
k_calibrated=kc, size_calibrated=sf(kc, int(n), 0.5, rho)))
|
||||
size = pd.DataFrame(size)
|
||||
size.to_csv(OUT / "a1_size.csv", index=False)
|
||||
cells = pd.read_csv(outputs_dir() / "t3" / "cells.csv")
|
||||
nstar_pub = pd.read_csv(outputs_dir() / "t3" / "nstar.csv")[["regime", "n_train", "sigma_ref", "nstar_sign"]]
|
||||
rows, curves = [], []
|
||||
for r in cells.itertuples():
|
||||
pw = []
|
||||
for n in N_GRID:
|
||||
kc = k_crit(int(n), r.icc)
|
||||
pwr = sf(kc, int(n), r.p_better, r.icc)
|
||||
kn = k_crit(int(n), 0.0)
|
||||
pw.append(pwr)
|
||||
curves.append(dict(regime=r.regime, n_train=r.n_train, sigma_ref=r.sigma_ref, n_test=int(n), k_calibrated=kc,
|
||||
power_calibrated=pwr, size_nominal=sf(kn, int(n), 0.5, r.icc)))
|
||||
ok = [int(n) for n, p in zip(N_GRID, pw) if p >= POWER]
|
||||
rows.append(dict(regime=r.regime, n_train=r.n_train, sigma_ref=r.sigma_ref, p_better=r.p_better, icc=r.icc,
|
||||
nstar_calibrated=min(ok) if ok else None, power40_calibrated=pw[-1], ceiling=ceiling(r.p_better, r.icc),
|
||||
size_nominal_n10=sf(k_crit(10, 0.0), 10, 0.5, r.icc), size_nominal_n20=sf(k_crit(20, 0.0), 20, 0.5, r.icc)))
|
||||
res = pd.DataFrame(rows).merge(nstar_pub, on=["regime", "n_train", "sigma_ref"])
|
||||
res.to_csv(OUT / "a1_nstar.csv", index=False)
|
||||
pd.DataFrame(curves).to_csv(OUT / "a1_power.csv", index=False)
|
||||
show = size[size.n.isin([5, 10, 20, 40])].pivot(index="rho", columns="n", values="size_nominal")
|
||||
zero = res[res.sigma_ref == 0.0]
|
||||
txt = ["## A1: sign test calibrated for within-realization correlation", "",
|
||||
"Size of the nominal sign test (alpha = 0.05) under a beta-binomial null with ICC rho:", "",
|
||||
show.round(3).to_markdown(), "",
|
||||
"Blind wells for 80% power, nominal (published) vs calibrated critical value, and the n -> infinity ceiling:", "",
|
||||
res[["regime", "n_train", "sigma_ref", "p_better", "icc", "nstar_sign", "nstar_calibrated", "power40_calibrated",
|
||||
"ceiling"]].round(3).to_markdown(index=False), "",
|
||||
"Exact reference (sigma_ref = 0), n* nominal -> calibrated (none = 80% not reached by 40 wells): "
|
||||
+ "; ".join(f"{r.regime} N={r.n_train}: {fmt(r.nstar_sign)} -> {fmt(r.nstar_calibrated)} (ceiling {r.ceiling:.2f})"
|
||||
for r in zero.itertuples())]
|
||||
return txt
|
||||
|
||||
|
||||
# ------------------------------------------------------------------------------------------------------------ A2
|
||||
def a2() -> list[str]:
|
||||
d = pd.read_csv(outputs_dir() / "p4" / "summary" / "metrics.csv")
|
||||
d = d[(d.test_well == "F-11 T2") & (d.sigma_a_ms == 7.0) & (d.seed.astype(str) == "ensemble") & d.scored]
|
||||
t = d.pivot_table(index=["scheme", "reference"], columns="method", values="rmse", aggfunc="mean")
|
||||
n = d.groupby(["scheme", "reference"]).n.first()
|
||||
t = t.assign(n_samples=n)
|
||||
t.to_csv(OUT / "a2_f11t2.csv")
|
||||
meth = [m for m in ["B3b", "B3c", "B3c-R", "B3d-Sa", "M2-Sa"] if m in t]
|
||||
span_ref = t[meth].groupby(level="scheme").agg(lambda s: s.max() - s.min()) # per method, across references
|
||||
span_meth = (t[meth].max(1) - t[meth].min(1)).rename("range_across_methods")
|
||||
rank = t[meth].rank(axis=1).astype(int)
|
||||
txt = ["## A2: F-11 T2 (the only Volve well with a VSP), ensemble RMSE (p.u.) by reference, sigma_a = 7 ms", "",
|
||||
t.round(3).to_markdown(), "", "Range across references, per method:", "", span_ref.round(3).to_markdown(), "",
|
||||
"Range across methods, per reference:", "", span_meth.round(3).to_markdown(), "", "Rank (1 = best):", "",
|
||||
rank.to_markdown()]
|
||||
return txt
|
||||
|
||||
|
||||
# ------------------------------------------------------------------------------------------------------------ A3
|
||||
def a3() -> list[str]:
|
||||
files = [f for f in sorted((outputs_dir() / "lambda_limit" / "cells").glob("*.csv")) if not f.name.endswith("_seff.csv")]
|
||||
L = pd.concat([pd.read_csv(f) for f in files], ignore_index=True)
|
||||
L = L[L.method.isin(["B3d-Sa", "M2-Sa"])]
|
||||
per = L.groupby(["regime", "c", "n_train", "method", "budget", "rid", "seed"]).coverage_90.mean().reset_index()
|
||||
cells = sorted(set(map(tuple, L[["regime", "c", "n_train"]].drop_duplicates().to_numpy().tolist())))
|
||||
o = []
|
||||
for regime in sorted({c[0] for c in cells}):
|
||||
r = pd.read_csv(outputs_dir() / "p2r" / "train" / regime / "runs.csv")
|
||||
r = r[r.method == "Oracle"].assign(regime=regime, budget=500)
|
||||
o.append(r)
|
||||
O = pd.concat(o, ignore_index=True)
|
||||
O = O[[tuple(x) in cells for x in O[["regime", "c", "n_train"]].to_numpy().tolist()]]
|
||||
O = O.groupby(["regime", "c", "n_train", "method", "budget", "rid", "seed"]).coverage_90.mean().reset_index()
|
||||
allc = pd.concat([per, O], ignore_index=True)
|
||||
tab = allc.groupby(["regime", "c", "n_train", "method", "budget"]).coverage_90.mean().unstack(["method", "budget"])
|
||||
tab.to_csv(OUT / "a3_coverage90.csv")
|
||||
rng = allc.groupby(["method", "budget"]).coverage_90.mean()
|
||||
by = allc.groupby(["regime", "c", "n_train", "method", "budget"]).coverage_90.mean().groupby(["method", "budget"]).agg(["min", "max"])
|
||||
txt = ["## A3: 90% coverage of single networks (mean over test wells, seeds, realizations), N = 16", "",
|
||||
f"Cells: {len(cells)} (those of the lambda-limit arm; no 10 dB c = 1 cell). Oracle: 500 iterations from P2r.", "",
|
||||
tab.round(3).to_markdown(), "", "Range over cells:", "", by.round(3).to_markdown(), "",
|
||||
"Mean over cells:", "", rng.round(3).to_markdown()]
|
||||
return txt
|
||||
|
||||
|
||||
def main() -> None:
|
||||
sha = check_declaration()
|
||||
OUT.mkdir(parents=True, exist_ok=True)
|
||||
txt = [f"# R6 cheap analyses (declaration {sha[:12]})", ""] + a1() + [""] + a2() + [""] + a3()
|
||||
(OUT / "summary.md").write_text("\n".join(txt) + "\n")
|
||||
print("\n".join(txt))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
66
scripts/run_r6.sh
Executable file
66
scripts/run_r6.sh
Executable file
@@ -0,0 +1,66 @@
|
||||
#!/usr/bin/env bash
|
||||
# R6 (declared in docs/research/r6-replication.md, hashed before the first run; outside every lock).
|
||||
# scripts/run_r6.sh fingerprints # B1: fingerprints of realizations 16-23 (before any training)
|
||||
# scripts/run_r6.sh b3 # B3: sigma_a = 3.5 ms with fixed drift hyperparameters (scripts/47)
|
||||
# scripts/run_r6.sh c1 R10 R0 Rm5 # B1: c = 1 posteriors + the seven registered methods, realizations 16-23
|
||||
# scripts/run_r6.sh c0 R10 R0 Rm5 # B1: c = 0 (zero-drift guard of H2a)
|
||||
# scripts/run_r6.sh sa # B2: Rm5, sigma_a,reg 3.5 and 14 ms, realizations 8-15
|
||||
# scripts/run_r6.sh arms # B1: SMC-MAP, Anchor-LS, Ctl-GP (scripts/46)
|
||||
# scripts/run_r6.sh summary # scripts/46 summary -> outputs/replication/summary/
|
||||
# Posteriors and training use the locked scripts 14 and 15 with the arguments of scripts/run_p2r_main.sh (no
|
||||
# --save-preds); both skip jobs that already have a CSV, so any stage can be restarted with the same command.
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")/.."
|
||||
PY="${PY:-.venv/bin/python}"
|
||||
DEVICE="${DEVICE:-cuda:0}"
|
||||
WORKERS="${WORKERS:-2}"
|
||||
THREADS="${THREADS:-2}"
|
||||
export OMP_NUM_THREADS=$THREADS MKL_NUM_THREADS=$THREADS OPENBLAS_NUM_THREADS=$THREADS NUMEXPR_NUM_THREADS=$THREADS \
|
||||
NUMBA_NUM_THREADS=$THREADS VECLIB_MAXIMUM_THREADS=$THREADS
|
||||
OUT=outputs/replication
|
||||
BUDGETS=outputs/p2/diag/train/budgets.json
|
||||
post() { # rids snr dens c-list out [extra]
|
||||
local rids="$1" snr="$2" dens="$3" cs="$4" out="$5"; shift 5
|
||||
"$PY" scripts/14_diag_posterior.py --rids $rids --n 4 16 --seeds 0 --particles 1024 --wavelets estR \
|
||||
--device "$DEVICE" --workers "$WORKERS" --gpu-mem-gb 1.5 --c $cs --snr "$snr" --anchor-density "$dens" \
|
||||
--out-dir "$OUT/posterior/$out" "$@"
|
||||
}
|
||||
train() {
|
||||
local rids="$1" snr="$2" dens="$3" cs="$4" out="$5"; shift 5
|
||||
"$PY" scripts/15_diag_train.py --rids $rids --n 4 16 --seeds 0 1 2 3 4 --reg-seed 0 --device "$DEVICE" \
|
||||
--workers "$WORKERS" --variants a --methods Oracle B3b B3c B3c-R B3d B3d-Sa M2-Sa --budgets-from "$BUDGETS" \
|
||||
--c $cs --snr "$snr" --anchor-density "$dens" --post-dir "$OUT/posterior/$out" --out-dir "$OUT/train/$out" "$@"
|
||||
}
|
||||
regime() {
|
||||
"$PY" -c "import sys, yaml; r = yaml.safe_load(open('configs/d2_synth_p2r.yaml'))['regimes'][sys.argv[1]]; \
|
||||
print(r['snr_db'], r['anchor_density'])" "$1"
|
||||
}
|
||||
NEW="16 17 18 19 20 21 22 23"
|
||||
OLD="8 9 10 11 12 13 14 15"
|
||||
stage="$1"; shift
|
||||
echo "== r6 $stage $* ($(date -u +%FT%TZ))"
|
||||
case "$stage" in
|
||||
fingerprints) CUDA_VISIBLE_DEVICES= "$PY" scripts/46_r6_replication.py --stage fingerprints ;;
|
||||
b3)
|
||||
CUDA_VISIBLE_DEVICES= "$PY" scripts/47_r6_fixed_hyper.py --stage hyper
|
||||
"$PY" scripts/47_r6_fixed_hyper.py --stage post --device "$DEVICE" --gpu-mem-gb 1.5
|
||||
CUDA_VISIBLE_DEVICES= "$PY" scripts/47_r6_fixed_hyper.py --stage summary ;;
|
||||
c1|c0)
|
||||
[[ -f "$OUT/fingerprints.json" ]] || { echo "run the fingerprints stage first" >&2; exit 1; }
|
||||
c=${stage#c}
|
||||
for r in "$@"; do
|
||||
read -r snr dens <<< "$(regime "$r")"
|
||||
post "$NEW" "$snr" "$dens" "$c" "$r"
|
||||
train "$NEW" "$snr" "$dens" "$c" "$r"
|
||||
done ;;
|
||||
sa)
|
||||
read -r snr dens <<< "$(regime Rm5)"
|
||||
for sa in 3.5 14; do
|
||||
post "$OLD" "$snr" "$dens" 1 "Rm5_sa$sa" --sigma-a-reg "$sa"
|
||||
train "$OLD" "$snr" "$dens" 1 "Rm5_sa$sa" --sigma-a-reg "$sa"
|
||||
done ;;
|
||||
arms) "$PY" scripts/46_r6_replication.py --stage arms --device "$DEVICE" --workers "$WORKERS" ;;
|
||||
summary) CUDA_VISIBLE_DEVICES= "$PY" scripts/46_r6_replication.py --stage summary ;;
|
||||
*) echo "unknown stage: $stage" >&2; exit 2 ;;
|
||||
esac
|
||||
echo "== r6 $stage $* done ($(date -u +%FT%TZ))"
|
||||
Reference in New Issue
Block a user