Files
ML-Porosity/paper
hola2k4 8d5befb412 Rewrite the manuscript for outside readers; move formal results to App. A
Follow the style of the abstract in the remaining sections: results in
words first, conditions up front, physical quantities instead of codes.
A survey of Computers & Geosciences papers is recorded in
docs/research/paper-style-survey.md.

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

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

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

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 14:34:13 +07:00
..

Manuscript draft

Build (no latexmk on the server):

pdflatex main && bibtex main && pdflatex main && pdflatex main

Red text (\todo, \todoblock, \figplaceholder) marks parts that are not ready. Search for them with grep -n 'todo\|figplaceholder' sections/*.tex.

All figures in figures/ are produced by python scripts/22_paper_figures.py (from the repo root, with the .venv), except bench_s1.pdf and bench_s8.pdf (Experiment 3), which come from python scripts/38_bench_figures.py; both read only the locked summaries listed below.

Where the numbers come from

Paper element Source
Abstract, Sec. 1 (findings paragraph), Sec. 8, highlights.txt Rows below: H2a and σ_a from tab:h2a/tab:sigmaa; bank gain and bounds (registered (a), post hoc (b)) from tab:h2b and outputs/p2r/posthoc/{bound.csv,meta.json}; wells needed from outputs/t3/nstar.csv; field results from App. B; Teapot counts from Sec. 6.7 sources; Experiment 3 (9/11 verdicts, failures, two-mode reversal) from the Sec. 6.5 rows
Sec. 1 (F3 drift 14–66 ms, 46 ms, 36 ms; dominant period 17–20 ms) outputs/td_qc.csv, outputs/tie_qc.csv, docs/plan.md §1.2
Sec. 2 (label noise and errors in variables; Table tab:positioning) refs.bib annote fields: Mnih & Hinton (2012) read in full on 2026-10-29 (Secs. 5, 6.1, 6.3); Balakrishnan (1962) metadata from Crossref only, cited for the general statement; abstract-only entries flagged in the table. Preliminary novelty scan of 2026-11-02 (docs/plan.md §12 item 31): Herrera & van der Baan (2014), da Costa Silva et al. (2026, Autotie) and Castagna et al. (2026) from their abstracts (OpenAlex), metadata from Crossref (Castagna et al. later read in full, 2026-11-02: timing-error remarks in their Discussion, docs/plan.md §12 item 33); the label source of Sukar et al. (2026) from the full text in refs/ (Sec. 3, "Data preparation"). Full texts obtained on 2026-11-02 (docs/plan.md §12 item 33): Lim et al. (2025, AWSM; 44 wells, median/minimum-misfit models, TD posterior not used downstream), Lim & Cardona (2025, BootNet), Li, Grana & Liu (2024, P05; deterministic tie in the field case), Guillon et al. (2020; tolerance in evaluation only) and Rizzuti et al. (2024, 2025; wavelet treated as known, future-work statement); their ᵃ markers were removed
Sec. 3, Table tab:audit (TD drift, label audit; max |Δt_wlt| column from td_qc.csv since the 04/11 audit) outputs/td_qc.csv, outputs/tie_qc.csv, outputs/marker_vs_horizon.csv, docs/plan.md
Sec. 3.2, paragraph "Misspecified simulators" and App. C (presets, scale factors, Q 80 peak shift, model error 0.23 nominal and 1.08–1.93 for the presets, L1 levels above the declared band, minphase 0.25 candidate, Rm5 null 1.78× and 0.22–0.34) Presets: configs/protocol_bench.yaml (studies.S2.presets) and the misspec_presets block of configs/d2_synth_bench.yaml; generator ml_porosity/data/synth_d2.py (misspec=); level choice on dev 902–905 and the model-error table: docs/research/bench-protocol.md (S2 level table and decisions) and docs/research/bench-generator.md, QC from scripts/33_bench_generator_qc.py
App. B.2, paragraph "Data" (Volve data: licence, label check, deviated wells, cube, time–depth, anchors, labels; Sec. 3.3 until 09/11/2026) outputs/volve/volve_wells_summary.json, outputs/volve/{summary.json,anchors.csv,pick_vs_horizon.csv,pick_vs_checkshot.csv,horizon_lag.csv}, docs/research/volve-inventory.md, docs/plan.md §12 items 7 and 18
Sec. 5 (Theory; Sec. 4 until 09/11/2026), Table tab:h1, Fig. fig:h1 outputs/p2/summary/main/h1.csv, docs/theory.md
Sec. 5.3–5.5 and App. A (Propositions 3–6, Corollaries 3–4, Remark 1, ρ*) Analytic; proofs in App. A; Vietnamese statements in docs/theory.md §6. The factors 1.10 and 1.77 are e^{4π²σ²f²} at σ = 2 ms, f = 25 and 60 Hz (meta.json transfer_ratio_exp_4pi2s2f2); 71–73% coherent power below 25 Hz, the 67–72 Hz f⁴-weighted median and the (b)/(a) integral ratios 1.5–1.7, 2.1–2.6 and 3.3–4.6 are from outputs/p2r/posthoc/meta.json n16_spectra (coherent part: coherent_share_below_25hz, f4_weighted_median_hz.coherent; integral ratios span the Oracle and coherent spectra over the five regimes); 30–90 Hz uses the ~60 Hz F3 peak of Sec. 3.1
Sec. 4 (Methods; Sec. 5 until 09/11/2026: prior fit on F3, LOAO, type-II σ_a) docs/plan.md §12, docs/theory.md
Sec. 4.6 (TCN backbone, budget 125 on dev 902–905), Table tab:methods (benchmark additions Ctl-GP, PM2, BK2, HM2, -TCN) configs/protocol_bench.yaml (methods, training.budgets, training.budgets_tcn, training.budget_candidates), ml_porosity/benchmark/, docs/research/bench-protocol.md (TCN budget selection; log logs/bench_dev_budgets_tcn.out)
Sec. 6.1, Table tab:p2, Fig. fig:p2phase outputs/p2/summary/main/{summary.md,methods.csv}
Sec. 6.2 (diagnosis, deviation) docs/plan.md §12 items 11–14
Sec. 6.3, Tables tab:h2a, tab:sigmaa, tab:h2b; Figs. fig:h2b, fig:p2rgrid outputs/p2r/summary/{summary.md,verdict.json}; σ_post and warp RMSE from outputs/p2r/summary/sigma_post.csv
Sec. 6.3, column 1/B_b of tab:h2b (Berkson bound at σ_post; bounds at the warp error; 60 Hz and cross-spectral variants; exact (a) bound 0.481 at σ_post for R10tb c = 2; Oracle/B3d-Sa ratios; share of the gap closed; 6 ms grid edge; post hoc) outputs/p2r/posthoc/{bound.csv,blur_ab.csv,meta.json} (counts in meta.json n16_wide), written by python scripts/31_p2r_posthoc.py (about 6 min) from the registered summaries and the Oracle test predictions in outputs/p2r/train/<regime>/cells/*.npz
Sec. 6.3, Table tab:t4 (dispersion ratio ξ, coverage, training length; post hoc) outputs/t4/{summary.csv,cells.csv,budget_dev.csv,meta.json} (column kappa = ξ), written by python scripts/30_t4_coverage.py
Sec. 6.4 (mechanism; exploratory), Sec. 7 (bank-gain paragraphs) outputs/t2/summary.md and the tables beside it; declaration docs/research/t2-mechanism.md (hashed before computing), results docs/research/t2-results.md
Sec. 6.5, Tables tab:benchdesign, tab:benchverdicts (as worded); App. C (as run) Design: configs/protocol_bench.yaml (locked 2026-10-29 14:39:20 UTC, sha256 in .sha256, time stamp in .lock.json), docs/research/bench-protocol.md; verdicts as worded: outputs/bench/summary/verdict_final.{json,md} and s3_h2a_stated.csv (scripts/36_bench_verdicts.py); as run by the locked code: outputs/bench/summary/{verdict.json,summary.md} (scripts/34_run_bench.py summarize); deviation D-13 in docs/plan.md §12 item 28; bitwise reproduction check: logs/bench_repro_r8.out
Sec. 6.5 S1, Fig. fig:bench_s1 (phase diagram, families, additivity fit β and R²) outputs/bench/summary/{s1_cells,s1_h2a,s1_families,s1_additivity}.csv; figure from scripts/38_bench_figures.py --only bench_s1
Sec. 6.5 S2, Table tab:s2 (ratios, cov90, warp RMSE, degradation, Ctl-GP) outputs/bench/summary/{s2_cells,s2_h2a,s2_smc,s2_degradation}.csv; model-error column from docs/research/bench-protocol.md (dev 902–905)
Sec. 6.5 S3 (as worded vs as run; Ctl-GP 16/30) outputs/bench/summary/{s3_h2a_stated,s3_h2a,s3_control,s3_table}.csv
Sec. 6.5 S4 (TCN) outputs/bench/summary/{s4_cells,s4_h2a}.csv
Sec. 6.5 S8, Table tab:s8, Fig. fig:bench_s8 (two-mode reversal; flip-band means of PM2/BK2/HM2 against cos and cos²) outputs/bench/summary/{s8_cells,s8_transfer}.csv, s8_transfer_curves.json; figure from scripts/38_bench_figures.py --only bench_s8; flip-band table (usable frequencies in 1/(2Δ) < f < 3/(2Δ)) printed by scripts/38_bench_figures.py --flipband (post hoc, not a verdict)
App. C, "Equal training budgets" outputs/bench/summary/equal_budget.csv
Sec. 8 (availability: 630 tasks, 21 methods, scorer) benchmark/README.md, benchmark/MANIFEST.json, benchmark/reference/{cells.csv,main_table.md} (scripts/37_bench_package.py); package outputs/bench/package/ (Zenodo payload, not yet deposited)
Sec. 8 (availability: derived-data archives, licences, clean-room check) repro/README.md, repro/MANIFEST.json (five archives, 11,112 files; scripts/39_repro_package.py build), repro/verify_report.md (scripts/39_repro_package.py verify); archives in outputs/repro/ (not yet deposited)
App. A, Sec. 5 (proof review of 02/11/2026) docs/plan.md §12 item 32; Vietnamese statements synced in docs/theory.md
Sec. 6.6, Table tab:t3 (detectability; exploratory) outputs/t3/{cells.csv,nstar.csv,power.csv,meta.json}, written by python scripts/27_t3_power.py; declaration and Deviation 1 (σ_ref grid) in docs/research/applicability-teapot.md. Crossings 3.6, 3.8 and 4.3 ms (R10, R0, Rm5): σ_ref at which median_ratio of the N = 16 rows of cells.csv reaches 1, by linear interpolation between grid points (p_better = 0.5 gives 3.5, 3.8, 4.2 ms); compared with σ/√2 = 3.0, 4.1, 5.1 ms of Corollary 4
Sec. 6.7 (gate results) App. B sources below
Sec. 6.7 (conditions C1–C4) outputs/applicability/{verdict.json,c1_pairs.csv,c2_sigma_post.csv,d2_threshold_cells.csv}, written by python scripts/26_applicability.py; docs/research/applicability-results.md
Sec. 6.7, App. B.3 (Teapot: 152 wells, time–depth tables, horizon–top reference, σ̂_knot 6.75 ms) outputs/teapot/inventory/ (python -P scripts/28_teapot_inventory.py), outputs/teapot/pilot_pa/verdict.json and knots_dev.csv (python -P scripts/29_teapot_pilot.py), docs/research/applicability-results.md, docs/plan.md §12 item 23
Sec. 7 (F3 and Volve paragraphs, σ_a, limitations) same sources as App. B
Sec. 7 ("Where the posterior-mean advantage stops", "When to use a bank", limitations on Experiment 3) Sec. 6.5 rows above
App. B.1 (the 2.82 p.u. three-well figure; Table tab:p1 removed 09/11/2026) outputs/p1/summary.md
App. B.1, Table tab:f3gc (G-C), macro band RMSE outputs/p3/summary/gate_gc.json, docs/plan.md §12 item 16
App. B.1, Table tab:f3gc coverage, seed-by-seed spread outputs/p3/summary/{metrics.csv,selection.csv} (rows with seed = ensemble and per seed)
App. B.1, Tables tab:f3all, tab:f3abl outputs/p3/summary/macro.csv (label PHIE_DT, σ_a = 7 ms); ablation descriptions from configs/protocol_f3.yaml and ml_porosity/f3/{training,registration,runner}.py
App. B.1, tab:f3all last row ("No band content", post hoc) RMS over each test well of the 6 Hz high-pass (split_bands) marker-calibrated PHIE_DT reference (via F3Data), macro over wells = 1.224 p.u.; computed after the run, scale only
App. B.1, Table tab:f3sens metrics.csv (M2-Sa vs B3d-Sa; σ_a arms vs B3c-R at the same σ_a; reference wlt; label PHIE), band_sensitivity.csv (f_c = 5, 8 Hz), posterior_reference_sensitivity.csv (5–95 % range over 64 reference warps)
App. B.1 (posterior width, phase) outputs/p3/registration/*_sa{3.5,7,14}{,_noanchors}.json (diagnostics[].sigma_post_ms, phase_R, phase_info.logZ summed over wells)
App. B.1 (leave-one-anchor-out) outputs/p3/diagnostics/loao.csv
App. B.1 (predicted volume; Fig. fig:f3vol removed 09/11/2026, script --only f3_volume still works) outputs/p3/volume/{metadata.json,mean.npy,sigma.npy}; figure from python scripts/22_paper_figures.py --only f3_volume (inline 442 through F03-4)
App. B.2, Table tab:volvegd (G-D) outputs/p4/summary/gate_gd.json (schemes.<scheme>.per_well: competitor, n, ratio, coverage; macro counts and coverage)
App. B.2, Table tab:volveall outputs/p4/summary/macro.csv (reference calibrated, σ_a = 7 ms, ensemble); last row ("Constant", post hoc) from outputs/p4/posthoc/macro.csv (const_rmse), written by python scripts/25_p4_posthoc.py after G-D, scale only
App. B.2, Table tab:volvesens outputs/p4/summary/{metrics.csv,macro.csv} (σ_a arms; M2-Sa vs B3c-R at the same σ_a)
App. B.2 (bias split, within-well SD, constant vs networks per well) outputs/p4/posthoc/wells.csv (post hoc)
App. B.2 (best-shift diagnostic) outputs/p4/summary/best_shift_DIAGNOSTIC_ONLY.csv (never alters a score; search limit best_shift_max_samples = 16 in the protocol)
App. B.2 (posterior width, phase) outputs/p4/summary/registration.csv
App. B.2 (deviations), Sec. 7 (Volve paragraphs) configs/protocol_volve.yaml (deviations), configs/protocol_volve.lock.json, docs/plan.md §12 items 19–21
Pass rules, thresholds configs/protocol_p2.yaml, configs/protocol_p2r.yaml, configs/protocol_f3.yaml (locked; tag protocol-f3), configs/protocol_volve.yaml (locked 2026-10-29 01:17:42 UTC; committed on 2026-10-29 after the run, tag protocol-volve), configs/protocol_bench.yaml (locked 2026-10-29 14:39:20 UTC; committed in 381b5ff while the main runs were in progress; no tag)

Names in the paper and codes in the repository

Since 09/11/2026 the paper uses descriptive names (docs/research/paper-style-survey.md). Configs, outputs and code keep the codes below; when tracing a number to its source, translate with this table.

Paper Repository
10 dB, 0 dB, −5 dB (full anchors) R10, R0, Rm5
half-anchor (0 dB) / two-anchor (10 dB) R0h / R10tb
SMC mean / SMC bank B3d-Sa / M2-Sa
anchor mean / anchor bank / reweighted anchor bank B3d / M1 / M2
sonic tie / calibrated sonic / correlation tie / phase-estimated correlation B3a / B3b / B3c / B3c-R
hard-min shift / soft-min shift / soft-DTW / DILATE B4a / B4b / B4c / B4d
calibrated-sonic ensemble B5
depth–time trend / attribute models / impedance inversion / composite loss B0a / B0b / B1 / B2
Gaussian bank / midpoint label / two-member bank / two-member hard-min Ctl-GP / PM2 / BK2 / HM2
blur test / anchor removal / calibration hypothesis H1 / H4 / H3
posterior-mean claim / bank claim H2a / H2b
drift–well-count grid / misspecification / alignment losses / backbone / two-mode S1 / S2 / S3 / S4 / S8
rock physics mild, strong / wavelet phase mild, strong / attenuation / scaled warp prior / out-of-family warp rp_L1, rp_L2 / wv_L1, wv_L2 / wv_Q / dr_L1 / dr_L2
Experiment 1, F3, Volve pass rules G-B, G-C, G-D
skill, width, anchor-uncertainty, well-count conditions (Sec. 6.7) C1, C2, C3, C4
bounds ρ*_cl, ρ*_Bk 1/B_a, 1/B_b
assumption (A3); N_p particles; n* blind wells; tie tempering ω = 1/ν (B); P; N*; γ = 1/κ

Figures. scripts/22_paper_figures.py and scripts/38_bench_figures.py now draw these names, but they need outputs/*/summary, which is not on the machine where the rewrite was done. Until python scripts/22_paper_figures.py && python scripts/38_bench_figures.py is run on a machine with the outputs, the PDFs in figures/ still show codes, and the red \figcodes notes in the captions say so; delete those notes after regenerating. The clean-room check of scripts/39_repro_package.py compares figures pixel by pixel, so rerun it after the regeneration.

Do not copy numbers from code_thesis/ (thesis archive) into the paper. P4x was dropped on 29/10/2026 (Pivot 1, docs/plan.md §12 item 22): nothing from outputs/p4x/ or docs/research/p4-exploratory.md enters the paper. Wording must respect docs/plan.md §10 (forbidden claims).

Length: Computers & Geosciences limits a Research Article to about 5,500 words excluding abstract, keywords, highlights, references and captions (secondary source; the official Guide for Authors page could not be fetched on 2026-10-29). The main text (Secs. 1–8) is about 18,100 words (crude count after the 02/11 writing pass, which added about 3,100 words for Experiment 3, the mechanism study and the discussion; the proof review of the same day added about 350 more and the full-text pass of Sec. 2 about 130, estimated; the hallucination audit of 04/11 added about 600 more, crude count; 69 pages), and exceeds that limit. The length pass was dropped by the user on 2026-10-29 (docs/plan.md §12 item 25). After the rewrite of 09/11/2026 (docs/plan.md §12 item 38) the main text is about 15,400 words, against 20,600 before, by one counter that excludes tables and equations; the page count is 69. The worked example of Sec. 6.6 uses only the numbers of Table tab:t3, the warp errors of Sec. 6.6 and the Teapot residual of App. B.3.