Most machine learning for molecular property prediction quietly assumes that similar molecules behave similarly. They often do not: across bioactivity data, pairs of molecules that differ by a single atom or a small functional-group swap frequently show tenfold-to-hundredfold differences in potency. These are activity cliffs, and they are common, not anomalous (Dablander et al.). Meanwhile, two adjacent literatures have each developed half of the needed response without noticing the other half. Generalization theory has recently argued that what matters is not flatness of the loss surface in parameter space but the smoothness of the learned input-to-output function, quantified by the norm of its Jacobian (MacDonald et al.); and the scalable-Gaussian-Process literature has built fast surrogates for large molecular libraries that trade fidelity for tractability by compressing data into a few hundred inducing points or a handful of nearest neighbors (Maus et al.; GPnn, Leveraging Locality and Robustness). Both halves fail at cliffs for the same underlying reason: every mechanism in them — stationary kernels, nearest-neighbor lookup, Jacobian-norm regularization — enforces global smoothness, and a cliff is precisely a place where the true function is not smooth.
The proposal here is a Gaussian Process surrogate — a probabilistic regression model that places a distribution over functions — whose smoothness is spatially allocated: near-flat on the chemical plateaus where most molecules live, and deliberately steep across the specific structural transformations that are known to trigger cliffs. The GP is the core machinery; activity cliffs are the application regime and the source of supervision; and the flatness–generalization literature supplies both the diagnosis (why current smooth-everywhere models erase cliffs) and the design principle (smoothness should be a budget spent locally, not a global constraint).
Core Claim
The claim is threefold. First, a stationary-kernel or nearest-neighbor GP cannot represent an activity cliff even in the infinite-data limit, because its covariance between two near-identical molecules stays high regardless of their potency gap; this is a structural failure, not a sampling one. Second, this failure is fixable with a cliff-severed non-stationary kernel whose covariance between two molecules is damped by a learned predictor of their potency difference, trained from matched molecular pairs — molecule pairs differing by exactly one documented structural transformation. Third, because the damping term is learned from pair data rather than imposed globally, the resulting model keeps the flatness that generalization theory wants (low local sensitivity on plateaus) exactly where it helps, and admits high sensitivity only across predicted cliff boundaries — so prediction accuracy and out-of-distribution robustness stop being traded off against each other wholesale.
The kernel takes the form
$$k(x, x') \;=\; \sigma^2 \exp\!\left(-\frac{d(x, x')^2}{2\ell^2}\right)\exp\!\left(-\gamma\, \hat{\Delta}(x, x')\right),$$
where $d(x,x')$ is a fingerprint (ECFP) Tanimoto distance, $\ell$ is a length-scale, and $\hat{\Delta}(x,x') \ge 0$ is a learned estimate of the expected potency gap between $x$ and $x'$ given the structural transformation that connects them (zero if they share no matched transformation). When the transformation linking two molecules is a known cliff trigger, $\hat{\Delta}$ is large, the exponential damping collapses their covariance, and the GP is no longer forced to average across the cliff. Prediction remains local and cheap in the style of GPnn (Leveraging Locality and Robustness): kernel hyperparameters are estimated on a small subsample, and each test query conditions only on its top-$m$ neighbors under $k$ — which, crucially, are no longer necessarily its nearest structural neighbors, because anti-correlated cliff partners are down-weighted before the neighbor list is formed.
Research Program
The program has four components. The first is building $\hat{\Delta}$: a transformation-level potency-gap model trained on matched molecular pair data, of the kind already curated at scale in the ACNet benchmark, which spans more than 400,000 molecular pairs across 190 human protein targets from ChEMBL (Activity Cliff Prediction: Dataset and Benchmark). Concretely, each pair contributes (transformation, local context, observed log-potency difference); a small gradient-boosted or shallow-network model predicts expected $|\Delta|$ for an unseen transformation-in-context. This is the single learned ingredient that carries all the cliff-specific knowledge, and it is deliberately kept modular so it can be swapped or ablated.
The second component is inference. We implement the cliff-severed kernel inside a GPnn-style local pipeline, replacing the raw-distance neighbor selection with kernel-weighted selection, and we compare against a sparse variational variant in which inducing points are placed preferentially at high-$\hat{\Delta}$ boundaries. The latter directly targets what Approximation-Aware Bayesian Optimization exposed: a finite inducing-point budget optimized for global fit spreads itself thin and smooths over sharp local features, whereas their Expected Utility Lower Bound recovers them by concentrating budget where decisions are made — but that work operated only in smooth 256-dimensional autoencoder latent spaces and never faced a genuine discontinuity. Our boundary allocation is the discontinuous-regime counterpart of their insight.
The third component is the flatness-theory leg, which plays two roles. As diagnosis, we test the prediction — following MacDonald et al., who prove that loss-Hessian sharpness is largely an artifact of the input-output Jacobian norm required to fit training targets — that training cliff-aware neural models (ACANet, LAC) inflates the model's Jacobian norm on cliff molecules, and that this inflated local sensitivity predicts their known failure under target-shift evaluation. As design principle, we replace "minimize the Lipschitz constant" with "minimize the integrated local Lipschitz constant subject to fitting the data," which is exactly what a non-stationary kernel does: the GP posterior mean's local sensitivity scales inversely with the local effective length-scale, so our kernel keeps sensitivity low everywhere except across learned boundaries. We will also check whether the sign instability that Dangel and Oore found — geodesic flatness predicting better generalization in language models but worse in vision — extends to chemistry, by measuring geodesic sharpness of molecular Transformers trained with and without cliff-aware contrastive losses; their Riemannian quotient construction is directly reusable, and no one has applied it outside perception benchmarks.
The fourth component is a pairwise-ranking likelihood variant. Tom et al. showed that regression surrogates in Bayesian optimization can have low error yet near-zero ranking fidelity in cliff regions, and that ranking losses fix the optimization behavior — but their surrogates were neural networks without calibrated posterior variance, which acquisition functions like Expected Improvement strictly require. A GP with a pairwise preference likelihood and our cliff-severed kernel fills exactly this hole: ranking-robust and uncertainty-calibrated and scalable.
Baselines
The do-nothing reference point is random screening at a fixed evaluation budget; on the MEMES ultra-large library, random sampling identified only about 5.5% of top hits at a 6% sampling rate, against 90% for the GP-based framework (MEMES).
The strongest classical competitor is SVM or MLP on ECFP fingerprints, which the MoleculeACE study found to be the best-performing method family on cliff compounds (Exposing the Limitations of Molecular Machine Learning with Activity Cliffs); on the ACNet Large subset, ECFP+MLP reaches 0.984 AUC for cliff classification (Activity Cliff Prediction: Dataset and Benchmark), though the same benchmark's target-split evaluation collapses to 0.579 AUC for the best model. No reported result found on Lacuna for exact SVM $RMSE_{cliff}$ values on MoleculeACE. This baseline gets the same fingerprint featurization, the same splits, and a tuned regularization budget; we count ourselves as beating it only on cliff-specific error and calibration simultaneously, since on raw within-distribution accuracy it is likely to remain excellent.
The strongest ranking baseline is CliffRank, whose dual-branch network combining listwise ranking and pairwise preference consistency reaches mean Spearman 0.6890 on small-molecule MMP cliff splits (against a prior best of 0.6724) and 0.5393 on antimicrobial-peptide benchmarks (CliffRank); it is the number to beat under the identical AC-split protocols, with matched featurizers so the comparison isolates the surrogate rather than the encoder. The strongest scalable-GP competitor is GPnn itself run with raw structural neighbors — hyperparameters on a subsample, prediction from the $m$ nearest neighbors under Tanimoto distance — which we will run with the same $m$ and compute budget as ours; it trained on 1.6 million points in about 30 seconds on a laptop, roughly a 100x speedup over prior methods (Leveraging Locality and Robustness), though no reported result found on Lacuna for its per-dataset MSE/NLL table. For large-scale screening, DeepMEMES is the incumbent, recovering 90% of the top-1000 hits from a 96-million-molecule library while docking only 6% of it (MEMES); parity with it on that (smooth) docking task, while exceeding it on cliff-rich bioactivity data, is the target.
The key ablation isolates the single learned ingredient: the same local-GP pipeline with the damping term removed ($\gamma = 0$, recovering a stationary-kernel GPnn) versus with a fixed damping from raw observed pair differences versus with the learned $\hat{\Delta}$. If the learned term adds nothing over $\gamma = 0$, the core claim is wrong and the proposal dies honestly.
Why not just…?
Why not just use SVM plus fingerprints, which already wins on cliffs? Within a familiar assay, this is a genuine threat — the MoleculeACE study found SVM+ECFP the best method on cliff compounds on average (Exposing the Limitations), and ECFP+MLP hits 0.984 AUC on ACNet's Large subset. But the same literature shows the win is memorization of substructure keys, not transfer: every model family, classical ones included, degrades sharply on ACNet's target-split evaluation, down to 0.579 AUC (Activity Cliff Prediction: Dataset and Benchmark), and on the Lo-Hi benchmark's Hit Identification task — where test molecules are constrained to Tanimoto similarity at most 0.4 to training data — fingerprint SVMs lose to graph networks while winning only on within-cluster lead-optimization ranking (Lo-Hi). SVMs also give no calibrated posterior variance, which Bayesian-optimization acquisition functions need. Our experiments settle this empirically with head-to-head comparisons under both random and target-disjoint splits, plus calibration error, which a point-predicting SVM cannot compete on.
Why not just put a ranking loss on a neural network, like CliffRank or RBO? On pure ranking metrics this is the most dangerous alternative, and we treat it as the primary competitor rather than arguing around it. The corpus is explicit about its limits, though: Tom et al. themselves flag calibrated uncertainty for ranking surrogates as unresolved future work, and sequential acquisition strictly requires a posterior variance to trade exploration against exploitation. So the decisive comparisons are twofold: a head-to-head ranking matchup under the exact CliffRank protocols (beat or match Spearman 0.6890), and a Bayesian-optimization and calibration matchup (NLL and hit-recovery under budget) where the deterministic ranking network has no principled counterpart. If it matches us on ranking and we do not beat it on calibration-guided discovery, the added GP machinery was not worth it.
Why not just run off-the-shelf GPnn or Deep GPs and ignore cliffs? Because their core assumptions are violated by construction in cliff regions. GPnn's robustness guarantee is asymptotic in nearest neighbors being good local proxies, and at a cliff the nearest structural neighbor is an anti-predictor by definition (Exposing the Limitations defines cliffs as similarity at Tanimoto at least 0.9 with a potency gap of at least one log unit). DeepMEMES, for its part, achieved its 96-million-molecule recovery by choosing continuous CDDD descriptors precisely because they smooth the GP's response surface — an explicit, deliberate evasion of discontinuity (MEMES), and its authors note the docking landscapes in that study are relatively smooth. The proposal includes the direct falsification experiment: GPnn with raw Tanimoto neighbors on cliff benchmarks, which we expect to fail specifically on $RMSE_{cliff}$ while looking fine on overall RMSE — mirroring the $r = 0.81$ correlation between overall and cliff-specific error that lets smooth models hide (Exposing the Limitations). If GPnn does not fail there, our premise is wrong and we will report that.
Proposed Experiments
Evaluation runs in three tiers. Tier one, cliff-specific regression and ranking: the 30-target MoleculeACE benchmark with overall RMSE and the cliff-specific $RMSE_{cliff}$ (Exposing the Limitations); the CliffRank small-molecule MMP splits (Thrombin, mu-opioid, melanocortin receptor 4) under AC-split protocol with Spearman correlation against the 0.6890 reference (CliffRank); and the antimicrobial-peptide GRAMPA subsets, where single-residue substitutions cause large MIC shifts (AMPCliff; QMAP), against the peptide reference of Spearman 0.5393 and Recall@50 of 21.4 (CliffRank). Tier two, split hygiene and out-of-distribution robustness: the Lo-Hi benchmark with its Hi-Splitter, which discards only 1.5% of data to enforce the 0.4 similarity ceiling versus 17.0% for a greedy alternative, against the documented 76–99% test-set leakage of older benchmarks (Lo-Hi), plus ACNet's target-split evaluation, where the 0.579 AUC collapse is the number to improve on (Activity Cliff Prediction: Dataset and Benchmark). Tier three, scale and discovery: the MEMES library suite (Zinc-250K, Enamine 2.1M, the 96M-molecule ultra-large docking library) as a smooth-landscape control where we expect parity with the 90%-at-6% recovery, plus a cliff-rich large benchmark assembled by pooling ChEMBL potency data across ACNet's 190 targets with a fixed evaluation budget, reporting hit recovery, posterior calibration (NLL, coverage of true potencies within predictive intervals), and wall-clock scaling against GPnn's laptop-scale timings.
The decisive checks, in order of how much they would change our mind: first, the $\gamma = 0$ ablation on $RMSE_{cliff}$ — if damping learned potency gaps does not beat the stationary kernel there, the mechanism is wrong; second, GPnn-with-raw-neighbors on the same benchmark, which should fail if the nearest-neighbor anti-predictor argument is real; third, the Jacobian-norm audit of ACANet- and LAC-style models (ACANet; LAC), testing whether cliff-fitting inflates local input-output sensitivity in the way MacDonald et al. predict and whether that inflation tracks target-split failure; and fourth, whether the posterior variance of our model spikes precisely across predicted cliff boundaries — the behavior an acquisition function needs to probe a cliff rather than smooth over it, and the one thing no deterministic ranking network, however strong its Spearman score, can offer.
References
- Exploring QSAR models for activity-cliff prediction
- On progressive sharpening, flat minima and generalisation
- Approximation-Aware Bayesian Optimization
- Leveraging Locality and Robustness to Achieve Massively Scalable Gaussian Process Regression
- Activity Cliff Prediction: Dataset and Benchmark
- Hide & Seek: Transformer Symmetries Obscure Sharpness & Riemannian Geometry Finds It
- Ranking over regression for Bayesian optimization and molecule selection
- MEMES: Machine learning framework for Enhanced MolEcular Screening
- Exposing the Limitations of Molecular Machine Learning with Activity Cliffs
- CliffRank: A Dual-Branch Framework for Activity-Cliff Ranking Prediction
- Lo-Hi: Practical ML Drug Discovery Benchmark
- AMPCliff: Quantitative definition and benchmarking of activity cliffs in antimicrobial peptides
- QMAP: A Benchmark for Standardized Evaluation of Antimicrobial Peptide MIC and Hemolytic Activity Regression
- Activity Cliff-Informed Contrastive Learning for Molecular Property Prediction
- Curriculum-aware Training for Discriminating Molecular Property Prediction Models