When chemists purify a natural product, they pass a crude extract through a chain of columns, and at each column they choose where to cut the stream of liquid coming out into "keep" and "discard" fractions. Machine-learning tools now predict when each compound will come out of a column and estimate the chance that two neighbouring compounds overlap. These tools treat each compound's prediction error as its own independent noise. In practice, most of the error on a given day comes from conditions that move every compound at once: how wet the silica is, the room temperature, the column batch, and the column size. Precision physics has handled this kind of error for decades. Physicists call these shifts systematic uncertainties, estimate them as a few shared "nuisance" parameters from reference measurements taken in the same run, and cancel what they can by taking ratios. This note proposes the same treatment for chromatography. Co-injected marker compounds fix the run-level drift. That drift, with an honest error bar, feeds into the probability that a cut is clean. The resulting uncertainty is then carried from one purification stage to the next.
The opportunity is practical. Scale-up is where today's predictors break: a retention model trained on small 4 g silica columns reaches $R^2 = 0.04$ when applied directly to 8 g columns, and recovers to $R^2 = 0.857$ only after retraining on new-scale data (Intelligent Chemical Purification Technique Based on Machine Learning). The same paper names stationary-phase moisture and mobile-phase temperature as unmodeled causes of day-to-day drift. If most of that collapse comes from a low-dimensional shared shift, a few marker compounds per run should recover it without retraining. Separation decisions would then come with probabilities that mean what they say.
Core Claim
For deciding whether two adjacent compounds can be cut apart, the error that matters is the error in their difference in elution volume. Shared run-level drift cancels from that difference only partly. A pure offset cancels. A change in scale, or a moisture-dependent change in selectivity, does not. Current separation probabilities come from per-compound prediction intervals that ignore the correlation, so they are miscalibrated in a predictable direction. The claim is that a small nuisance model will give pairwise separation probabilities that are calibrated across days, moisture levels and column sizes, and that it will match retraining-based scale transfer at a small fraction of the data cost. The nuisance model has two to four parameters per run, such as a shift, a scale and one selectivity term in elution volume. It is fitted by M-estimation on co-injected markers, and its uncertainty comes from the sandwich covariance. In a two-stage purification, the drift in a polarity-based stage and the drift in a size- or hydrophobicity-based stage are close to independent. That makes it possible to compute the joint purity risk of a wide, high-yield first cut followed by a second-stage polish, which no current tool attempts.
How This Relates to Prior Work
Three chromatography ML papers supply the predictors we build on, and all three treat each run as static. QGeoGNN, a graph neural network over 2D and 3D molecular structure, outputs quantile retention intervals and a Separation Probability $S_p$ for flash silica columns. It handles scale through parameter transfer learning (Intelligent Chemical Purification Technique Based on Machine Learning). We reuse its predictor and dataset, and replace its independent-error intervals with a shared-drift error model. The TLC-to-column work derives closed-form equations relating thin-layer retardation factor to column elution volumes, with $R^2$ of 0.88 and 0.90 (Explicit relation between thin film chromatography and column chromatography conditions from statistics and machine learning). Those equations give deterministic means and serve here as a cheap scouting baseline. The GC model pairs a molecular network with a sequence model of temperature programs (Multimodal learning in synthetic chemistry applications: gas chromatography retention time prediction and isomer separation optimization). It shows that run conditions can be fed in as inputs when they are measured. Our setting is the one where they are not measured.
One paper motivates the drift model directly. BARCHAN aligns two-dimensional GC chromatograms by fitting a mixed rigid and non-rigid deformation with Coherent Point Drift (BARCHAN: Blob Alignment for Robust CHromatographic ANalysis). Its finding that drift is mostly a low-dimensional deformation supports our nuisance parameterisation. Its leftover misalignment on narrow peaks, which biased n-paraffin quantities, is a warning. Low-dimensional drift models leave structured residuals, and narrow trace peaks are where they hurt. BARCHAN aligns after the fact and attaches no uncertainty to the alignment. We estimate the deformation with an error bar and pass it into decisions.
Physics papers supply the uncertainty method and the cancellation logic. The $w_i f_i$ ensemble method freezes a set of trained networks, fits linear weights on independent calibration data by M-estimation, and gets frequentist covariance from the sandwich formula. It then propagates that covariance to a downstream parameter with the Gong-Samaniego two-step result, and it removes the under-coverage seen with naive ensembles (Frequentist Uncertainties on Neural Density Ratios with wifi Ensembles). Fitting run nuisances from markers and then computing separation probability is exactly such a two-step estimator, so we reuse this machinery on a much smaller parameter set. The method's stated weakness constrains us. Its covariance is valid only if the true function lies in the span of the basis, so we must test whether our drift family is adequate rather than assume it. The reactor spectral-ratio analysis cancels flux and detector errors by comparing spectra measured at two distances (Model-independent $\bar{\nu}_e$ short-baseline oscillations from reactor spectral ratios). Daya Bay's independent hydrogen-capture measurement cross-checks a result through a channel with uncorrelated systematics (Independent measurement of the neutrino mixing angle $\theta_{13}$ via neutron capture on hydrogen at Daya Bay). These two supply the design logic for markers and for treating orthogonal stages as independent channels. We do not reuse their analysis code.
Research Program
The model writes the observed elution volume of compound $c$ in run $r$ as
$$V_{c,r} = g_{\theta_r}\big(\hat V_c\big) + \epsilon_{c,r},$$
where $\hat V_c$ is the frozen predictor's nominal elution volume (QGeoGNN or the closed-form TLC equation), $g_{\theta_r}$ is a monotone map with a few run-specific parameters $\theta_r$, and $\epsilon_{c,r}$ is per-compound scatter that is independent across compounds. In the simplest version $\theta_r$ is a shift and a scale. A third parameter, tied to compound polarity, can capture moisture-dependent selectivity. Each run co-injects $K$ marker compounds chosen to span the elution window. $\theta_r$ is fitted on the markers by a robust M-estimator, and its covariance comes from the sandwich formula. For a target and its nearest impurity, the gap $V_{t,r}-V_{i,r}$ then has a variance with two parts: the residual scatter, and the drift covariance pushed through the gradient of $g$. The cut decision uses this pairwise distribution. It does not use two separate quantile intervals.
The program has three steps. The first is single-stage calibration on existing data. We test whether the shared-drift model yields calibrated separation probabilities and recovers scale transfer from markers alone. The second is a misspecification audit. Held-out markers, never used in fitting, act as probes, and their residuals test whether the drift family is rich enough. Where it is not, the residual becomes an added, explicitly reported systematic term rather than hidden bias. Narrow, low-abundance peaks get particular attention given BARCHAN's result. The third step is two-stage propagation. Stage one uses normal-phase silica and stage two uses a reversed-phase or size-exclusion column. The stage-one cut defines which impurities enter stage two, each with an inherited abundance uncertainty. Stage two's drift is fitted from its own markers. The final purity risk combines the two, under an independence assumption between stages that we test rather than assume. The planning question becomes concrete: for a target purity at a given confidence, how wide can the stage-one cut be?
Baselines
The naive reference is the frozen 4 g predictor applied at the new scale or condition with no correction. Wu et al. report $R^2 = 0.04$ for this on 8 g columns. It shows how much of the gap any correction closes.
The strongest existing method is QGeoGNN with parameter transfer learning, which reaches $R^2 = 0.857$ on 8 g columns and $0.854$ on 4 g (Intelligent Chemical Purification Technique Based on Machine Learning). Its quantile-based $S_p$ is its uncertainty output. We will rerun it on the same splits, with the same fine-tuning budget measured in new-scale data points. Our method gets only marker measurements, counted against that same budget. Beating it means matching its $R^2$ on non-marker compounds while using markers equal to at most a fifth of its new-scale data. A second criterion is lower expected calibration error and Brier score for pairwise overlap. No reported calibration or coverage result for $S_p$ was found on Lacuna, so we will measure it for both methods.
We also run naive deep ensembles, whose standard deviation sets the interval width. The wifi paper shows such ensembles under-cover in physics (Frequentist Uncertainties on Neural Density Ratios with wifi Ensembles). That has not been shown for retention.
We further run split conformal prediction with calibration grouped by run. This is the strongest generic uncertainty competitor, and it gets the same calibration runs our method uses.
Gradient boosting on descriptors, reported at $R^2 \approx 0.69$ on 4 g, and the pySR TLC equation give cheap-predictor reference points.
Two ablations isolate the key ingredient. The first, "markers without correlation," uses marker-anchored correction for the mean but keeps independent per-compound intervals. It tests whether correlated pairwise uncertainty, rather than recentering alone, drives the calibration gain. The second, "plain relative retention," uses marker-normalised retention with no uncertainty at all. It tests whether the error model changes any cut decision.
Why not just…?
Why not just use internal standards and relative retention, as chemists already do? This is the most serious threat, because marker normalisation is half of our method and is standard practice in analytical GC. Relative retention fixes the mean but says nothing about how confident a given cut is. It also cannot tell apart a run where the markers fit tightly from one where they disagree. The "plain relative retention" ablation settles the question. If it matches us on cut purity and yield, the contribution reduces to a known practice, and we will report that.
Why not just apply conformal prediction to the existing model? Run-grouped conformal prediction gives valid marginal coverage for single-compound intervals. However, it averages over runs, so on a high-drift day its intervals are too narrow and on a quiet day too wide. A version conditioned on markers would essentially become our method. If conformal prediction applied to pairwise differences, with calibration grouped by run, matches our calibration of $S_p$, our sandwich machinery is unnecessary. The comparison in the first experiment decides this.
Why not just retrain or fine-tune at each new scale? That works, as the 0.857 result shows. But it needs hundreds of new-scale points, and it does nothing for day-to-day moisture and temperature drift within a scale. The data-budget curve in the first experiment measures where marker anchoring stops being competitive.
Why not just check every fraction by TLC or HPLC afterwards? Checking after the fact catches failures but does not prevent them. It also cannot plan stage-one cut widths before the run. The two-stage experiment counts re-runs avoided against a check-everything protocol.
Proposed Experiments and Decisive Checks
The first experiment uses the 6,365-instance column dataset of Wu et al. across 4, 8, 25 and 40 g columns. We first verify that run or session identifiers can be recovered. If they cannot, run-level modelling is impossible on this data, and the new data collection below becomes primary. Within each run, $K \in \{2,4,8\}$ compounds act as markers. We report $R^2$ on non-marker compounds at each scale. For every adjacent pair we report calibration of overlap probability against observed overlap, with data volume on the x-axis, for every baseline. The decisive check is whether the error in the gap between two compounds is correlated with the run's drift, as the model predicts. If held-out markers show no shared component, the core claim is false.
The second experiment applies the deformation family to the two GC×GC datasets of BARCHAN, using its reported alignment scores (correlation 0.93 and 0.83, structural similarity 0.94) as the bar. The decisive check is whether our error bars widen on the thin n-paraffin blobs, where BARCHAN under-estimated, rather than staying confidently wrong.
The third experiment is new data from an automated flash platform like that of Wu et al. We use defined mixtures of commercially available compounds, so that true purity is known by LC-MS. Stationary-phase water content and temperature are deliberately varied, and each mixture goes through a two-stage silica then reversed-phase sequence with markers at each stage. The decisive check has two parts. The predicted probability of meeting a purity target must be calibrated against measured final purity. The independence assumption between stages must hold in the measured residuals. If stage residuals are strongly correlated, the multi-stage propagation must model that correlation explicitly, and we will report the simpler single-stage result as the main contribution. Plant-extract workflows such as those used for Murraya exotica coumarins (Discovery of Exoticoumarins A–L: New Anti-Inflammatory Coumarin Derivatives from Murraya exotica) remain a later target. They report no recovery or purity numbers, so they cannot yet serve as ground truth.
References
- Intelligent Chemical Purification Technique Based on Machine Learning
- Explicit relation between thin film chromatography and column chromatography conditions from statistics and machine learning
- Multimodal learning in synthetic chemistry applications: gas chromatography retention time prediction and isomer separation optimization
- BARCHAN: Blob Alignment for Robust CHromatographic ANalysis
- Frequentist Uncertainties on Neural Density Ratios with wifi Ensembles
- Model-independent <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" altimg="si1.gif" overflow="scroll"><mml:msub><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>ν</mml:mi></mml:mrow><mml:mrow><mml:mo stretchy="false">¯</mml:mo></mml:mrow></mml:mover></mml:mrow><mml:mrow><mml:mi>e</mml:mi></mml:mrow></mml:msub></mml:math> short-baseline oscillations from reactor spectral ratios
- Independent measurement of the neutrino mixing angle<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:mrow><mml:msub><mml:mrow><mml:mi>θ</mml:mi></mml:mrow><mml:mrow><mml:mn>13</mml:mn></mml:mrow></mml:msub></mml:mrow></mml:math>via neutron capture on hydrogen at Daya Bay
- Discovery of Exoticoumarins A–L: New Anti-Inflammatory Coumarin Derivatives from Murraya exotica