Do Molecular Models Know About the Cliffs They Smooth Over?

Small changes in a molecule's structure sometimes flip its biological potency by 100-fold or more — a phenomenon chemists call an activity cliff. Machine learning models fail on cliffs in a characteristic way: because two molecules differing by a single atom look almost identical to a graph network or a vision encoder, the model predicts an averaged potency for both. A parallel phenomenon has just been documented in vision-language models: when these models look at a scatter plot, the vision encoder registers the exact point coordinates (a simple linear probe can read them out with near 100% accuracy), yet that information becomes undecodable by the time it reaches the language decoder — the model perceives but fails to use what it saw. This proposal asks whether activity-cliff failures are the same disease: is the cliff-distinguishing signal present and linearly readable inside the model, only to be smoothed over at some downstream stage — or was it never encoded in the first place?

The question matters because the two diagnoses imply opposite fixes. If the signal is encoded but discarded, we can rescue it at the readout stage without touching the encoder — the way Orgad et al. recovered correct facts from hallucinating language models by probing hidden states at the answer token, lifting accuracy by 30–40 percentage points on consistently-wrong questions LLMs Know More Than They Show. If the signal was never encoded, no readout trick can help, and the fix must be in pre-training. Nobody has run this diagnostic on molecular models: the closest study did it for abstract scatter plots Diagnosing Bottlenecks in Data Visualization Understanding by Vision-Language Models, and the molecular multimodal work MolVision never evaluated cliffs at all — indeed its core training objective, which pulls structurally similar molecules together in latent space, is precisely the mechanism that guarantees cliff blindness.

Core Claim

The claim is a falsifiable hypothesis plus a rescue built on it. Hypothesis: in multimodal molecular models that take a 2D skeletal diagram (and optionally a SMILES string) and output a potency, the identity and location of a cliff-triggering substitution — a swapped halogen, a methyl addition — is linearly decodable from the frozen vision encoder's activations, but its decodability decays across the projection layer and language decoder, mirroring the "handoff bottleneck" found for scatter-plot coordinates. Rescue: a probe-guided readout — reranking candidate predictions with a linear probe on intermediate activations, or adding a decodability-preservation auxiliary loss during light fine-tuning — recovers part of the cliff signal and improves cliff-specific metrics over matched-compute fine-tuning that has no access to the diagnosis.

The key measurement instrument is the pairwise linear probe. Rather than asking whether a probe can predict absolute potency (brittle on cliffs, as ranking work has shown CliffRank), we ask whether a single linear direction $\mathbf{w}$ orders the two members of a cliff pair correctly: the pair is decoded correctly when $\mathbf{w}^\top(\mathbf{z}_i - \mathbf{z}_j)$ has the sign of the true potency difference, where $\mathbf{z}_i$ and $\mathbf{z}_j$ are the model's activations for the two molecules at a given layer. This measures exactly what activity-cliff prediction needs — relative ordering within a near-identical pair — while staying inside the linear-probing protocol, so a positive result certifies the geometry of the frozen representation rather than the probe's own capacity.

Research Program

The program has three stages. First, build the probing substrate. From the 30 ChEMBL-derived target datasets of MoleculeACE Exposing the Limitations of Molecular Machine Learning with Activity Cliffs and the lead-optimization split of Lo-Hi Lo-Hi: Practical ML Drug Discovery Benchmark, we extract matched molecular pairs — same scaffold, one local substitution — and render each molecule as a 2D skeletal diagram with RDKit, following the MolVision input format. Each pair gets three ground-truth labels: cliff or non-cliff, true potency ordering, and the identity and 2D coordinates of the substituted atom or fragment. The third label lets us ask a sharper question than the scatter-plot work did: not just "is the difference encoded" but "is the chemically specific difference encoded" — can a linear probe point at the atom that matters?

Second, run the layer-wise trajectory. For open-weight multimodal models (the LLaVA- and InternVL-class models used in the scatter-plot study, plus a Tanimoto-adapted vision encoder in the MolVision style), we freeze the model, extract activations from every vision-encoder layer, the projection adapter, and every language-decoder layer, and train the pairwise probe at each site. We run the same protocol on unimodal controls: a graph foundation model of the CheMeleon type, whose own authors report a 97% win rate on MoleculeACE yet still struggle to tell cliffs from non-cliffs Deep Learning Foundation Models from Classical Molecular Descriptors, and an image-only model in the MaskMol style MaskMol. The unimodal arms separate two different bottlenecks: encoder collapse (the graph model never encodes the difference) versus handoff collapse (the multimodal model encodes it and drops it). We also probe across the three data regimes of Dablander et al. — both pair members unseen ($M_{test}$), one member seen ($M_{inter}$), and novel scaffold cores ($M_{cores}$) — because their result that all models fail in $M_{test}$ while working in $M_{inter}$ Exploring QSAR models for activity-cliff prediction predicts, under our hypothesis, a specific signature: the substitution signal should be decodable in $M_{inter}$ but not $M_{test}$, and the trajectory should localize where that difference dies.

Third, act on the diagnosis. If the handoff bottleneck is confirmed, we test two rescues. The passive rescue generates multiple candidate predictions per molecule and uses the probe to select among them, exactly as Orgad et al. selected among 30 candidate generations. The active rescue fine-tunes with a small auxiliary linear head attached to the last layer where the cliff signal is strongly decodable, with a loss that penalizes the head's error — a "keep this information readable" constraint that regularizes the handoff without forcing the encoder itself to change. The active rescue is compared against blind low-rank adaptation at identical compute and tuning budget; the comparison isolates whether knowing where the signal dies buys anything over simply training more.

Baselines

The naive reference point is a model that predicts the training-set mean potency for every molecule and ranks pairs at chance. On cliffs this is not a strawman: Deng et al. showed that deep models effectively default to averaged predictions across cliff regions Deng et al., so the mean predictor approximates the failure mode we are diagnosing, and any method must beat it on cliff-pair ordering by a clear margin to count as doing anything at all.

The strongest classical competitor is a support vector machine on extended-connectivity fingerprints. The MoleculeACE study evaluated 24 models across 30 targets and found this combination was the best performer on average for activity cliffs, beating every graph and SMILES deep model tested Exposing the Limitations of Molecular Machine Learning with Activity Cliffs; the file gives no reported numeric value for its cliff RMSE on Lacuna, so we will reproduce it ourselves under identical splits. It is the strongest competitor because it sidesteps the smoothness problem entirely: a sparse fingerprint keeps a bit for the substituted fragment, so the two cliff molecules are not near each other in input space to begin with. We run it on the same MoleculeACE and Lo-Hi splits, with the same hyperparameter search budget as every deep arm, and evaluate on the same metrics — $RMSE_{cliff}$ and Spearman correlation on cliff-pair ordering.

The strongest deep competitor is MaskMol, a vision transformer pre-trained with atom-, bond-, and motif-level masking on 2 million molecules, which reported an 11.4% relative RMSE improvement over the runner-up on MoleculeACE, reaching 22.4% on ABL1 MaskMol. It matters because it is the existing proof that image-based encoders can survive on cliffs, so our claim that multimodal readout, not the vision encoder, is the bottleneck must hold against a unimodal image model that already works. We rerun MaskMol's pipeline on our exact splits and also probe its frozen representations with the same pairwise probe, which turns the baseline into a sanity check: if MaskMol's encoder shows high pairwise decodability, our probe is measuring something real. The CheMeleon graph model, with its 97% MoleculeACE win rate against Random Forest's 50% Deep Learning Foundation Models from Classical Molecular Descriptors, serves as the strongest unimodal graph baseline under the same protocol.

The critical ablation isolates the proposal's ingredient: probe guidance. Blind low-rank fine-tuning of the multimodal model on cliff data — identical data, identical compute, identical tuning budget, but no probing diagnosis and no auxiliary decodability head — versus the probe-guided active rescue. Beating the blind arm shows the diagnosis has value beyond "train more"; failing to beat it reduces the contribution to the trajectory analysis alone, which we would report as such.

Why not just…?

Why not just use fingerprints and a support vector machine? This is the most serious objection, and the evidence for it is strong: fingerprints with classical models won the MoleculeACE comparison on average Exposing the Limitations of Molecular Machine Learning with Activity Cliffs and led on Lo-Hi lead-optimization ranking Lo-Hi. We concede up front that if the goal were only cliff prediction accuracy, this would be the shortest path, and we include it as the headline baseline. But Dablander et al. showed its performance collapses on fully unseen cliff pairs and novel scaffold cores Exploring QSAR models for activity-cliff prediction, and it cannot ingest multimodal context such as assay text or protein information. More fundamentally, it is silent on our actual question: a fingerprint model cannot tell us where inside a model the cliff signal survives or dies, which is the diagnostic this proposal exists to produce. If the SVM wins the prediction comparison, the trajectory result still stands as the contribution — and the honest paper reports both.

Why not just fine-tune the multimodal model end-to-end on cliff data? This is a real threat, and the scatter-plot study gives it ammunition: fine-tuning LLaMA-3.2 on 100k FUGU examples lifted accuracy from 54.2% to 77.7% Diagnosing Bottlenecks in Data Visualization Understanding by Vision-Language Models. We do not argue around it; we run it. The blind fine-tuning arm is precisely this alternative, executed at matched compute, and the decisive comparison is probe-guided versus blind. Two considerations temper the threat: fine-tuning gains in that study were in-distribution on synthetic plots, whereas cliff generalization fails exactly out of distribution, in the $M_{test}$ and $M_{cores}$ regimes where Dablander et al. found every model smoothing over Dablander; and end-to-end fine-tuning confounds learning new features with using existing ones — the confound linear probing exists to remove. If blind fine-tuning matches the probe-guided rescue, the experiments settle it and we say so.

Why not just feed SMILES strings to a text-only language model and skip images? Simpler, cheaper, and the MoleculeACE study found SMILES-based LSTMs were the best deep baselines on cliffs Exposing the Limitations. But MolVision showed unimodal text trails image-plus-text fusion, with the visual anchor mattering more as molecules grow, and cutting ESOL RMSE by 35% only in the multimodal setting MolVision; and GeoSQA demonstrated that replacing a diagram with a perfect text transcription does not fix downstream reasoning failures GeoSQA. Rather than argue, we include the text-only arm as part of the study — probing a SMILES-fed language model layer by layer with the same pairwise probe — so the comparison of where the signal dies across the image, text, and fused pathways is itself a result.

Proposed Experiments and Decisive Checks

The experimental substrate is fixed by the file: the 30 MoleculeACE target datasets with $RMSE_{cliff}$ as the primary metric, where overall RMSE is known to mask cliff errors by up to 0.54 log units and correlates with $RMSE_{cliff}$ at only $r = 0.81$ Exposing the Limitations; the Lo-Hi benchmark for the realistic split, where the lead-optimization track scores intra-cluster Spearman ranking and the hit-identification track enforces Tanimoto $\le 0.4$ between train and test Lo-Hi; and the Dablander $M_{test}$/$M_{inter}$/$M_{cores}$ protocol on DRD2, Factor Xa, and SARS-CoV-2 main protease, for which the file reports no numeric results on Lacuna and which we therefore rerun ourselves. Primary reporting metrics: pairwise probe AUC per layer site, $RMSE_{cliff}$, and cliff-pair Spearman correlation.

The decisive checks are three. First, the trajectory result: if pairwise probe AUC is high (say, above 0.85 in the Orgad-style range LLMs Know More Than They Show) in vision-encoder layers of multimodal models and drops sharply at the projection adapter, the handoff bottleneck is confirmed in a scientific domain, extending the scatter-plot finding to structurally meaningful, property-bearing discontinuities. If instead AUC is near chance everywhere in the multimodal pipeline while MaskMol's encoder probes cleanly, the failure is encoding-side and the field's pre-training objectives — including MolVision's Tanimoto-guided contrastive alignment, which by construction pulls cliff pairs together — are implicated directly. Second, the regime signature: decodability collapsing between $M_{inter}$ and $M_{test}$ would explain, mechanistically, why lead optimization works and novel-family prediction does not. Third, the rescue: a statistically significant improvement in $RMSE_{cliff}$ and cliff-pair Spearman for the probe-guided arm over the blind fine-tuning arm at matched compute — this is the number that would justify the whole apparatus, and its absence would recast the work as a diagnostic study, which we would consider a publishable but lesser outcome.

One honest scope limit: 2D depictions cannot represent chirality, so enantiomeric cliffs are out of reach, as they are for MaskMol MaskMol; we state this and exclude chiral cliffs from the claims. Within that limit, the proposal delivers something the field lacks: a mechanistic account of where activity-cliff information is lost in modern molecular models, and a readout-level fix that is only possible once the loss site is known.