P2 diagnosis on dev, P3 dev experiments, lock protocol_p3

- P2: SMC tie posterior (numpy + torch), RML/soft-DTW losses, bank training,
  D2 synthetic generator, scripts 09-13, protocol_p2 (locked) and its outcome
  (G-B failed; H1 not rejected, H3 rejected, H4 not rejected).
- Diagnosis on dev realizations 900/901 only (scripts 14-17, run_p3_dev.sh):
  posterior screen, SMC stability (P = 1024, K = 1), sigma_a misspecification
  stress and training, H3 with the SMC posterior, F3 placement on sigma_post.
- protocol_p3: H2 split into H2a (posterior-mean labels vs point ties) and
  H2b (RML vs posterior mean as a function of sigma_post); H3 descriptive only;
  sigma_a arm; new D2 config d2_synth_p3.yaml; main grid on realizations 8-15.
  Locked by configs/protocol_p3.sha256 and tag protocol-p3.
- runlog: per-run logs and runtime index (logs/index.csv).
- Docs: plan §12 items 10-11, theory, technical overview, report; wording
  aligned with Gunning & Glinsky (2006): the tie posterior is not claimed as new.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-27 06:03:33 +00:00
parent a76e61398a
commit cee2ff0859
84 changed files with 8793 additions and 460 deletions

96
docs/figures/workflow.tex Normal file
View File

@@ -0,0 +1,96 @@
% Detailed workflow figure (docs/technical_overview.md, paper Fig. workflow).
% Rebuild: xelatex workflow.tex, then export PNG/SVG as described in technical_overview §5
\documentclass[border=8pt]{standalone}
\usepackage{fontspec}
\setmainfont{lmroman10-regular.otf}[BoldFont=lmroman10-bold.otf, ItalicFont=lmroman10-italic.otf]
\usepackage{tikz}
\usetikzlibrary{positioning,fit,arrows.meta,calc}
\begin{document}
\hyphenpenalty=10000 \exhyphenpenalty=10000
\begin{tikzpicture}[
font=\normalsize,
>={Stealth[length=2.2mm]},
box/.style={draw, rectangle, align=center, text width=5.0cm, minimum height=1.15cm, inner sep=4pt, fill=white},
inp/.style={box, text width=3.4cm},
stage/.style={draw, dashed, rounded corners=2pt, inner sep=9pt},
st/.style={font=\large\bfseries, anchor=south},
arr/.style={->, thick},
aux/.style={->, densely dotted, thick},
]
% ---------- Inputs ----------
\node[inp] (las) at (0,0) {LAS well logs\\DT, RHOB, $\varphi$};
\node[inp] (mk) at (0,-2.6) {Well markers\\+ seismic horizons};
\node[inp] (segy) at (0,-5.2) {SEG-Y\\seismic volume};
\node[inp] (true) at (0,-7.8) {True warp\\(D2 only)};
\node[st] at ($(las.north)+(0,0.45)$) {Inputs};
% ---------- 1. Preprocessing ----------
\node[box] (tau) at (5.3,0) {DT integration\\$\to$ sonic-time axis $\tau$};
\node[box] (anc) at (5.3,-2.6) {Anchor pairs $(\tau_k, t_k)$\\pick noise $\sigma_a\,{=}\,7$ ms};
\node[box] (patch) at (5.3,-5.2) {Corrected well locations\\$3{\times}3$ seismic patch extraction};
\node[stage, fit=(patch)(tau)(anc)] (s1) {};
\node[st] at (s1.north) {1. Preprocessing};
% ---------- 2. Registration posterior ----------
\node[box] (prior) at (11.8,0) {GP prior on warp $t(\tau)$\\$b$, $g \sim$ Matérn-3/2 (MAP-II)};
\node[box] (post) at (11.8,-2.6) {Anchor-conditioned posterior\\Laplace + elliptical slice};
\node[box] (lik) at (11.8,-5.2) {Physics-based tie likelihood\\synthetic = AI $\ast$ wavelet\\vs.\ seismic at the well};
\node[box] (wgt) at (11.8,-7.8) {$S$ weighted warp samples $t^{(s)}(\tau)$\\(M2: $\pi_s\,{\propto}\,p_s^{\gamma}$; SMC: $\gamma_{\mathrm{acf}}$)};
\node[stage, fit=(prior)(post)(lik)(wgt)] (s2) {};
\node[st] at (s2.north) {2. Registration posterior};
% ---------- 3. Label bank ----------
\node[box] (inv) at (18.3,0) {Warp inversion $\to \tau^{(s)}(t)$\\anti-alias-filtered $\varphi$ readout};
\node[box] (bank) at (18.3,-2.4) {Label bank $y^{(s)}(t)$\\$S \times L$ matrix with weights $\pi_s$};
\node[stage, fit=(inv)(bank)] (s3) {};
\node[st] at (s3.north) {3. Label bank};
% ---------- 4. Training ----------
\node[box] (net) at (18.3,-5.2) {CNN–GRU\\outputs $(\mu, \sigma)$};
\node[box] (loss) at (18.3,-7.4) {$\mathrm{RML}_\lambda$ loss\\$\lambda\,{=}\,1/\tau_c$};
\node[box] (sel) at (18.3,-9.6) {Step count selected on dev\\5-seed ensemble};
\node[stage, fit=(net)(loss)(sel)] (s4) {};
\node[st, anchor=south west] at (s4.north west) {4. Training};
% ---------- 5. Prediction ----------
\node[box] (pred) at (18.3,-13.4) {Test-well or full-volume seismic\\$\to \mu \pm \sigma$ (no warp required)};
\node[stage, fit=(pred)] (s5) {};
\node[st, anchor=south west] at (s5.north west) {5. Prediction};
% ---------- 6. Evaluation ----------
\node[box] (ref) at (11.8,-11.2) {Blind wells, fixed reference\\(calibrated; sensitivity: .wlt)};
\node[box] (met) at (11.8,-13.4) {Band-wise RMSE, PCC\\NLL, CRPS, coverage\\warp error (D2)};
\node[box] (gate) at (5.3,-13.4) {Baselines B0–B5 and Oracle\\$\to$ go/no-go gates G-A…G-D};
\node[stage, fit=(met)(ref)(gate)] (s6) {};
\node[st, anchor=south west] at (s6.north west) {6. Evaluation (SHA-256-locked protocol)};
% ---------- Arrows ----------
\draw[arr] (las) -- (tau);
\draw[arr] (mk) -- (anc);
\draw[arr] (segy) -- (patch);
\draw[arr] (tau) -- (anc);
\draw[arr] (tau) -- (prior);
\draw[arr] (anc) -- (post);
\draw[arr] (patch) -- (lik);
\draw[aux] ($(tau.east)+(0,-0.3)$) -- (8.55,-0.3) |- ($(lik.west)+(0,0.3)$);
\draw[arr] (prior) -- (post);
\draw[arr] (post) -- (lik);
\draw[arr] (lik) -- (wgt);
\draw[arr] (wgt.east) -- (14.95,-7.8) |- (inv.west);
\draw[arr] (inv) -- (bank);
\draw[arr] ($(bank.south)+(1.8,0)$) -- ($(net.north)+(1.8,0)$);
\draw[arr] (net) -- (loss);
\draw[arr] (loss) -- (sel);
\draw[arr] (patch.south) -- (5.3,-9.25) -- (15.2,-9.25) |- (net.west);
\draw[arr] ($(sel.south)+(1.8,0)$) -- ($(pred.north)+(1.8,0)$);
\draw[arr] (pred) -- (met);
\draw[arr] (ref) -- (met);
\draw[arr] (met) -- (gate);
\draw[aux] (true.south) |- (gate.west);
\end{tikzpicture}
\end{document}