\section{Tie posteriors and the compared methods} \label{sec:method} The compared methods differ in one thing: the labels they train on. Each method first computes a posterior over the time--depth warp of each training well, or a single tie, from anchors and optionally from the seismic. No network is involved at this stage. A network is then trained on labels placed by those warps. At prediction time no warp is needed: the network maps seismic to a property trace on the seismic time axis. A single tempered loss, registration-marginalized learning (RML), contains all the training objectives as special cases. We use it to define the methods on one footing, not as a proposed method expected to win. Section~\ref{sec:theory} analyses these objects. \subsection{Warp prior and anchors} \label{sec:method:prior} For well $w$ with depth logs $\phi_w(z)$, $\mathrm{DT}_w(z)$ and $\mathrm{RHOB}_w(z)$, the time--depth map is \begin{equation} 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 (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. \subsection{Physical tie likelihood} \label{sec:method:tie} For a training well with seismic trace $\mathbf s_w$ at the well location, \begin{equation} p(\mathbf s_w \mid g_w, b_w, \psi) = \N\big(\mathbf s_w;\ \alpha_w \mathbf W_\psi\, \mathbf r_w(b_w, g_w),\ \sigma_n^2 \mathbf I\big), \end{equation} where $\mathbf r_w$ is the reflectivity computed from acoustic impedance $\mathrm{RHOB}_w/\mathrm{DT}_w$ along the warp and blocked to 4\,ms, and $\mathbf W_\psi$ convolves with a 128\,ms statistical wavelet rotated by a constant phase $\psi$. The amplitude $\alpha_w \ge 0$ and the noise level $\sigma_n$ are profiled out, which gives $\log p = -\tfrac n2 \log \mathrm{RSS}$ over the extended window. The residuals are autocorrelated, so this likelihood is overconfident. We temper it by $\omega = 1/\nu$, where $\nu$ is the variance inflation implied by the residual autocorrelation at the best anchor-only sample. The phase $\psi$ is chosen on a $15^\circ$ grid by marginal likelihood on the training wells. Test wells never enter this step. \subsection{Two tie posteriors} \label{sec:method:posterior} \paragraph{Anchor posterior with importance weights (Experiment~1).} We draw $S = 64$ warps per well from the anchor-conditioned posterior. The proposal is a Laplace (Gauss--Newton) approximation, refined by elliptical slice sampling \citep{murray2010ess}. Physical weights $\pi_s \propto p(\mathbf s_w\mid u^{(s)})^{\omega'}$ use the largest exponent $\omega'$ that keeps the effective sample size at least $S/4$. \paragraph{Sequential Monte Carlo posterior (Experiment~2).} Importance weights over 64 anchor-conditioned samples cannot move mass to warps that the anchor posterior rarely proposes, and in development runs that posterior did not contract to the true warp (Section~\ref{sec:exp:diag}). The second posterior therefore uses tempered sequential Monte Carlo. It starts from $N_p = 1024$ anchor-posterior samples and targets $p(u\mid \text{anchors})\, p(\mathbf s_w\mid u, \psi)^{\omega}$. The tempering exponent rises from 0 to $\omega$ in adaptive steps that keep the effective sample size at least $N_p/2$. Each step uses systematic resampling followed by eight elliptical slice moves. Banks of $S = 64$ labels are drawn without replacement from the $N_p$ particles. Before the trial the protocol fixed a stability criterion: the 95th percentile over $t$ of the difference between mean warps of independent runs must not exceed 0.5\,ms. On development data $N_p = 1024$ meets it at $c = 1$ in 4 of 4 cells at 10\,dB and in 3 of 4 at $-5$\,dB. At $c = 2$ the mean warp is unstable under every configuration we tried, and the posterior is often multimodal (Section~\ref{sec:exp:mech}). We summarize posterior width by $\sigpost = w_{90}/3.29$, where $w_{90}$ is the 90\% interval width of $\tau(t)$ averaged over the main window and the training wells. No labels are used to compute it. \subsection{Labels for each warp} \label{sec:method:labels} For each warp sample, \begin{equation} y_w^{(s)}(t_i) = (\aaf\phi_w)\big(z_w^{(s)}(t_i)\big), \end{equation} where $z_w^{(s)}$ is the inverse of $t_w(\cdot\,; u^{(s)})$, which exists because the warp is monotone, and $\aaf$ is an anti-alias filter applied before sampling at 4\,ms. Samples whose warp does not cover the main window receive zero weight. Every method, including the point-tie baselines and the oracle, builds labels with this operator, so methods differ only in the warps they use. \subsection{Training objective} \label{sec:method:rml} The network outputs a mean $\mu_\theta$ and a standard deviation $\sigma_\theta$ for every sample. For a window of $n$ samples and a bank of $S$ labels with weights $\pi_s > 0$, $\sum_s \pi_s = 1$, let \begin{equation} \ell_s = \sum_{i=1}^{n} \log\N\big(y_{s,i};\, \mu_i, \sigma_i^2\big), \qquad \RML_\lambda = -\frac{1}{\lambda n}\log\sum_{s=1}^{S}\pi_s\, e^{\lambda \ell_s}, \qquad \RML_\infty = -\frac1n\max_s \ell_s . \label{eq:rml} \end{equation} The training loss is the mean of $\RML_\lambda$ over windows and wells. \paragraph{The tempering $\lambda$ accounts for correlated residuals.} With $\lambda = 1$, differences between bank members are $O(n)$ and the log-sum-exp puts almost all weight on one member. Residuals are also autocorrelated, so a window holds less information than $n$ independent observations. If two members differ by $\Delta_\ell = \sum_i d_i$, and $d_i$ is a product of two zero-mean Gaussian processes with common autocorrelation $r_{\mathrm{ac}}$, then $\Var\Delta_\ell \approx n \Var(d)\,\tau_c$ with $\tau_c = 1 + 2\sum_{k\ge1}r_{\mathrm{ac}}(k)^2$. Setting $\lambda = 1/\tau_c$ gives $\lambda\Delta_\ell$ the variance of a log-likelihood difference over $n/\tau_c$ independent observations, the simplest magnitude adjustment of a composite likelihood \citep{pauli2011composite,ribatet2012composite}. Residuals are not available before training, so we estimate $r_{\mathrm{ac}}$ from the pooled autocorrelation of the high-passed training labels, truncated at the first non-positive lag. This gives $\tau_c \approx 2.7$--$2.9$ samples and $\lambda \approx 0.36$--$0.37$, nearly constant across the grid. The choice is a heuristic fixed before the experiments, and we make no claim about it. At this $\lambda$ the bank loss is far from its $\lambda \to 0$ limit, which the theory of Section~\ref{sec:theory} analyses: in the wide cells of Experiment~2 the effective number of members during training was 3.5--28 of 64 (Appendix~\ref{app:record}). \paragraph{The loss contains the common alternatives.} The following statements are exact and are checked numerically in the code's unit tests. Proofs are in Appendix~\ref{app:proofs}, which also gives the identity for soft-DTW (Lemma~\ref{lem:sdtw}). \begin{lemma}[Point tie] \label{lem:s1} If $S = 1$, or all bank members coincide, then $\RML_\lambda = -\ell/n$, the Gaussian negative log-likelihood, for every $\lambda$. \end{lemma} \begin{lemma}[Between hard-min and mixture mean] \label{lem:sandwich} Let $M(\lambda) = \lambda^{-1}\log \E_\pi e^{\lambda\ell}$. Then $\RML_\lambda = -M(\lambda)/n$ is non-increasing in $\lambda$, with \begin{equation} -\frac1n\max_s\ell_s \le \RML_\lambda \le -\frac1n\sum_s\pi_s\ell_s , \end{equation} and it tends to the right-hand side as $\lambda \to 0$ and to $\RML_\infty$ as $\lambda \to \infty$. For uniform $\pi$, $0 \le \RML_\lambda - \RML_\infty \le \log S/(\lambda n)$. \end{lemma} As $\lambda \to 0$, the optimal mean is the regression of the $\pi$-weighted mean label on $X$, and the optimal variance adds the spread of the bank. Whether this blurs the predictor depends on how the bank relates to the true warp. If the members scatter around a point tie whose error is independent of the data, the mean label is blurred further (Section~\ref{sec:theory:blur}). If the bank is the calibrated posterior, the population optimum is that of the true warp (Proposition~\ref{prop:bank}). \begin{lemma}[Gradient] \label{lem:grad} $\nabla_\theta \RML_\lambda = -\frac1n\sum_s r_s \nabla_\theta \ell_s$ with responsibilities $r = \operatorname{softmax}(\log\pi + \lambda\ell)$. \end{lemma} Each gradient step is therefore a generalized M-step whose weights are computed at the current $\theta$. \begin{lemma}[Shift-tolerant losses] \label{lem:shift} With a bank of the point-tie label shifted by every integer lag in $\pm k_{\max}$ samples and uniform $\pi$, $\RML_\infty$ is the hard-min shift loss with learned variance, and $\RML_{1/\tau_c}$ is its soft-min version. \end{lemma} Soft-DTW is RML over every monotone alignment in a band, with a uniform prior, no anchors and no physics, at $\lambda = 2/\gamma$. With $\gamma = 0.1$ this is $\lambda = 20$, much closer to the hard minimum than $\lambda \approx 0.37$. \subsection{Network and training} \label{sec:method:train} All learned methods share one backbone and differ only in their labels and loss; the backbone check of Experiment~3 adds a second. The input is a $3\times3$ trace patch around the well (nine channels), z-scored per channel within each well. Three dilated 1-D convolutions (kernel 5, dilations 1, 2 and 4, 64 channels) feed a two-layer bidirectional gated recurrent unit (GRU); we call this backbone the CNN--GRU, with CNN for convolutional neural network. A $1\times1$ head with a $1\times1$ skip connection outputs a heteroscedastic mean $\mu$ and standard deviation $\sigma$ \citep{kendall2017uncertainties} (softplus, $\sigma \ge 10^{-3}$). Dropout is 0.05. We train with Adam (learning rate $5\times10^{-3}$, gradient clipping at 5) on full batches of all training wells. Losses are computed on 64-sample windows starting at samples $0, 2, \dots, 62$ of the 126-sample main window. Labels are standardized by the mean and standard deviation of the anti-aliased log over the training wells, statistics that do not depend on the tie. The number of iterations is selected separately for each method from $\{125, 250, 500, 1000, 2000\}$ by total RMSE on the development realizations (benchmark controls inherit the budget of the method they modify; Table~\ref{tab:benchdesign}); on F3 it is selected by inner validation (Appendix~\ref{sec:exp:f3}). Every method has the same candidate set, and band metrics are not used for selection. The second backbone, a temporal convolutional network (TCN), has no recurrence: four dilated 1-D convolutions (kernel 5, dilations 1, 2, 4 and 8, 64 channels, ReLU, the same dropout) and the same output head without the skip connection. Its iterations were selected by the same rule on development realizations 902--905 (10\,dB, $c = 1$). Every method selected 125, the smallest candidate, and the candidate set was not extended, so the TCN budgets sit at the edge of the grid and are not tuned. Ensembles average five seeds (on F3, three inner models $\times$ five seeds), with $\mu = \overline{\mu_s}$ and $\sigma^2 = \overline{\sigma_s^2} + \Var_s \mu_s$ \citep{lakshminarayanan2017deepensembles}. \subsection{Compared methods} \label{sec:method:baselines} Table~\ref{tab:methods} lists the methods. In the language of Lemmas~\ref{lem:s1}--\ref{lem:shift}, deterministic and posterior-mean ties are RML with $S = 1$ at different warps, the shift losses are RML with anchor-free banks (soft-DTW is related through Lemma~\ref{lem:sdtw}, and DILATE adds a temporal-distortion term and is only related), and the anchor banks and the \mRML{} are RML with anchor-conditioned banks. \begin{table}[!tbp] \centering \caption{Compared methods. All learned methods use the backbone of Section~\ref{sec:method:train}. Bank: labels entering \eqref{eq:rml}. NLL: Gaussian negative log-likelihood.} \label{tab:methods} \small \begin{tabular}{lp{0.47\linewidth}l} \toprule Name & Labels / bank & Loss \\ \midrule \multicolumn{3}{l}{\emph{Field baselines (F3 only)}} \\ Depth--time trend & trend fitted on training wells (no seismic) & -- \\ Attribute models & ridge, random forest or gradient boosting on seismic attributes and TWT & -- \\ Impedance inversion & model-based inversion \citep{ravasi2020pylops} with a well-interpolated low-frequency model, then linear $\phi$--impedance & -- \\ Composite loss & backbone with a composite loss$^{\dagger}$ & composite \\ \midrule \multicolumn{3}{l}{\emph{Deterministic ties ($S = 1$)}} \\ Sonic tie & sonic integration from one shallow anchor & NLL \\ Calibrated sonic & marker-calibrated sonic through the anchors & NLL \\ Correlation tie & calibrated sonic plus local shifts from synthetic--seismic correlation & NLL \\ Phase-estimated correlation & correlation tie with the SMC-estimated wavelet phase & NLL \\ \midrule \multicolumn{3}{l}{\emph{Posterior-mean ties ($S = 1$)}} \\ Anchor mean & weighted mean warp of the Experiment~1 anchor posterior & NLL \\ \mPM & mean warp of the SMC posterior & NLL \\ \midrule \multicolumn{3}{l}{\emph{Reference}} \\ Oracle & true warp (synthetic only; a ceiling, not a competitor) & NLL \\ \midrule \multicolumn{3}{l}{\emph{Anchor-free alignment losses (labels from the calibrated sonic)}} \\ Hard-min shift & calibrated sonic shifted by $\pm 8$ samples, uniform $\pi$ & $\RML_\infty$ \\ Soft-min shift & as hard-min shift & $\RML_{1/\tau_c}$ \\ Soft-DTW & all monotone alignments in a $\pm8$ band; Gaussian NLL cost, symmetric steps & soft-DTW, $\gamma = 0.1$ \\ DILATE & as soft-DTW & DILATE, $\alpha = 0.5$ \\ \midrule \multicolumn{3}{l}{\emph{Anchor-conditioned banks}} \\ Anchor bank & 64 anchor-posterior warps, uniform $\pi$ & $\RML_{1/\tau_c}$ \\ Reweighted anchor bank & as anchor bank, tempered physical weights & $\RML_{1/\tau_c}$ \\ \mRML & 64 SMC particles, uniform $\pi$ & $\RML_{1/\tau_c}$ \\ \midrule \multicolumn{3}{l}{\emph{Benchmark additions (Experiment~3)$^{\ddagger}$}} \\ Gaussian bank & 64 warps $\bar u + \eta$, $\eta$ Gaussian with the covariance of the SMC particles (monotone draws only), uniform $\pi$ & $\RML_{1/\tau_c}$ \\ Midpoint label & two-mode error: label at $u^\star \pm \Delta/2$, sign drawn per well & NLL \\ Two-member bank & $\{u^\star, u^\star \pm \Delta\}$, sign drawn per well, $\pi = (\frac12, \frac12)$ & $\RML_{1/\tau_c}$ \\ Two-member hard-min & as two-member bank & $\RML_\infty$ \\ \midrule Calibrated-sonic ensemble & the five-seed ensemble of the calibrated sonic, the reference for calibration & NLL \\ \bottomrule \end{tabular} \smallskip \footnotesize $^{\dagger}$Labels from the calibrated sonic; deterministic output. Loss: Huber regression loss $+\,0.60$ correlation $+\,0.05$ first-difference $+\,0.10$ standardized-shape $+\,0.10$ variance-matching $+\,0.20$ best-shift MSE (minimum over shifts of $\pm 8$ samples). The weights are those of the earlier thesis code from which this baseline is taken; they were not tuned here. $^{\ddagger}$The backbone check also trains the Oracle, calibrated sonic, correlation tie, phase-estimated correlation, \mPM{} and \mRML{} with the TCN backbone. \end{table} \subsection{Metrics} \label{sec:method:metrics} Accuracy is reported in porosity units (p.u., porosity $\times 100$). We split every trace into a low band ($|f| < f_c$) and a seismic band ($|f| \ge f_c$, $f_c = 6$\,Hz), using a fourth-order Butterworth filter applied forward and backward (zero phase). On F3, energy below 5\,Hz is 0.2--0.5\% of the total. The primary metrics are the root-mean-square error (RMSE) and the Pearson correlation coefficient (PCC) in the seismic band (band RMSE, band PCC), because registration errors act there while the low band is dominated by the trend. We also report total RMSE and PCC and the band standard-deviation ratio. Calibration is described by the coverage of central intervals at 50, 80, 90 and 95\%, the calibration error (mean absolute deviation of coverage from nominal over these levels), the Gaussian negative log-likelihood and the continuous ranked probability score (CRPS) \citep{gneiting2007scoringrules}. Warp accuracy (synthetic only) is the RMSE of $\tau(t)$ against the true warp over the main window, together with 90\% coverage. Statistics are computed per test well and then averaged over wells (macro-averaged). Intervals are 95\% bootstrap intervals over realizations (2000 resamples). On F3 the time samples within a well are not independent and there are only four wells, so field results are descriptive and we compute no per-sample $p$-values.