Machine learning models that predict chemical reaction yields look spectacular on the data they are trained on and fail badly everywhere else. On the standard high-throughput grid of Buchwald–Hartwig amination reactions — a combinatorial sweep of aryl halides, ligands, bases, and additives — models reach $R^2$ above 0.94, and the best reach 0.976. Yet when the same models are pointed at a real corporate lab notebook, the best result recorded is $R^2 = 0.266$ for a Random Forest, while a graph neural network and a BERT-style model do no better than random chance (On the use of real-world datasets for reaction yield prediction). This collapse mirrors, almost exactly, the story in natural language processing, where models ace sanitized benchmarks by exploiting surface shortcuts, and where a tool called adversarial filtering was invented to strip those shortcuts out of the training data (WinoGrande: An Adversarial Winograd Schema Challenge at Scale). But the two literatures have never touched, and a third literature — invariant risk minimization, which trains models to use only features whose predictive value holds across every experimental context — has never been run on either.
The opportunity is sharper than "apply these tools to chemistry." There is an open, unresolved argument about when invariant learning helps and when it actively hurts. Theory says that if spurious correlations vary across training environments, a representation supporting one optimal predictor in all environments is the one that generalizes out of distribution (Out-of-Distribution Optimality of Invariant Risk Minimization). Practice says otherwise in two domains: on natural language inference, IRM gives marginal gains on bias-misaligned data (65.12% versus 62.63% for standard training) and frequently collapses to chance-level predictors in small-data regimes (IRM - when it works and when it doesn't: A test case of natural language inference), and across sixteen tabular prediction tasks, models using every feature beat both causal-feature predictors and the causal algorithms IRM and REx in-domain and out (Predictors from causal features do not generalize better to new domains). Nobody knows which regime chemistry falls into, and chemistry is the rare domain where the question has a physically checkable answer: the yield of a palladium-catalyzed coupling of an aryl chloride is governed by the activation barrier of its carbon–chlorine bond — a real, invariant physical quantity that does not change when you swap ligands or labs — unlike the soft sociological correlations of the tabular benchmarks or the stylistic artifacts of NLP corpora.
Core Claim
The claim is two-part and falsifiable. First, the HTE-to-lab-notebook collapse in cross-coupling yield prediction is a shortcut problem that can be diagnosed, not just observed: running adversarial filtering with weak linear adversaries over shallow molecular fingerprints on the Buchwald–Hartwig grid will quantify how many reactions are solvable without resolving activation chemistry, and the filtered residue will concentrate in exactly the reactions that matter for the hard case — aryl chlorides, whose $C(sp^2)$–chlorine bond is the strongest and slowest to activate among the aryl halides (Tan D. Quach et al.). Second, because chemical reactivity has genuine physically invariant causes, this is the setting where invariant training should succeed where it failed on text and tabular data — provided the training environments are real experimental contexts (ligand, base, halide class, laboratory source) rather than synthetic splits. If the claim fails, the failure itself is informative: it would extend the tabular paradox to a domain with known causal ground truth, and would show that the signal-annihilation limit of dataset balancing (On the Limitations of Dataset Balancing: The Lost Battle Against Spurious Correlations) binds even when the underlying signal is physical law.
This is deliberately different from the nearest existing work. Adversarial Invariant Learning already couples an adversarial environment-splitter with an IRM learner (Adversarial Invariant Learning), but only on synthetic vision and text benchmarks; it has never touched a continuous regression problem or a physical domain, and its environment labels are discovered clusters with no ground truth to check against. The NLI test of IRM (IRM - when it works and when it doesn't: A test case of natural language inference) uses natural data but measures success against a hand-chosen bias rather than a physical mechanism. And no adversarial filtering algorithm of any kind has ever been run on chemical reaction data — the filtering literature begins and ends with language and commonsense benchmarks. The proposal also differs from all of the strong chemistry baselines in one specific way: none of them (Deep Forest-Based Intelligent Yield Predicting of Buchwald-Hartwig Coupling Reaction, Uncertainty-Aware Yield Prediction with Multimodal Molecular Features, Enhancing Generic Reaction Yield Prediction through Reaction Condition-Based Contrastive Learning) makes any attempt to enforce cross-context invariance; they improve in-distribution fit or calibrated uncertainty while leaving the shortcut structure of the training grid untouched.
Research Program
The program has three components, each producing a measurable artifact.
The first component is a chemistry port of AFLite, the filtering algorithm that curated WinoGrande by iteratively removing instances that weak linear classifiers, trained on random data partitions, could consistently solve (WinoGrande: An Adversarial Winograd Schema Challenge at Scale). Here the "instance" is a reaction and the weak adversary is a ridge regression or shallow linear model over a deliberately impoverished representation: Morgan fingerprints and the atom-mapping-free differential reaction fingerprint DRFP, which encodes a reaction as the symmetric difference of circular atom neighborhoods of reactants and products (Reaction classification and yield prediction using the differential reaction fingerprint DRFP). Any reaction whose yield these shallow descriptors predict under held-out partitions is a shortcut reaction — it carries no information beyond what a fingerprint already knows. Filtering proceeds in rounds, each time removing the most predictable reactions, and at every depth we record two things: the remaining yield signal (can any model still learn from the residue?) and the chemical composition of the residue (what fraction of aryl chlorides, versus the more reactive bromides and iodides, survives?). The interesting prediction, grounded in the observation that yield models anchor heavily on aryl halide electronic features like the carbon-3 NMR shift (Deep Forest-Based Intelligent Yield Predicting of Buchwald-Hartwig Coupling Reaction), is that the residue will be enriched in aryl chlorides — the substrates whose high bond dissociation energy makes oxidative addition the yield-limiting step and for which special catalytic machinery like in-situ-formed palladium nanoparticles is required (Zhaofu Fei et al.). This component directly tests the signal-annihilation argument of Schwartz and Stanovsky, who showed that balancing a dataset over all higher-order feature combinations leaves nothing learnable (On the Limitations of Dataset Balancing: The Lost Battle Against Spurious Correlations): in chemistry, if the physical signal survives aggressive filtering, it is the first demonstration of a domain where the annihilation limit does not bind.
The second component is invariant training with physically grounded environments. IRMv1, the practical first-order form of invariant risk minimization, trains a representation $\Phi$ with a penalty that forces a single predictor $w$ to be simultaneously optimal in every training environment $e$:
$$\min_\Phi \sum_{e} \mathcal{R}^e(w \cdot \Phi) + \lambda \sum_{e} \|\nabla_{w|\,w=1}\, \mathcal{R}^e(w \cdot \Phi)\|^2$$
where $\mathcal{R}^e$ is the regression loss on environment $e$ and $\lambda$ is a penalty weight. Environments come in two varieties: labeled partitions of the Buchwald–Hartwig grid by ligand, by base, and by halide class (chloride versus bromide/iodide), and the HTE-versus-lab-notebook split itself, using the AstraZeneca notebook data as a held-out environment during training. We will also run the adversarial environment-splitter of AIL (Adversarial Invariant Learning) — a variational autoencoder plus differentiable clustering that finds the worst-case partition — as a comparison, because chemistry offers something AIL never had: a ground truth. If AIL's discovered environments align with ligand or halide-class boundaries, that is the first external validation of adversarial environment discovery; if they do not, the labeled partitions are the fallback. The base model is a graph neural network in the YieldGNN family, since its HTE-to-ELN collapse is the phenomenon under study (On the use of real-world datasets for reaction yield prediction). The instability findings of the NLI study (IRM - when it works and when it doesn't: A test case of natural language inference) — sensitivity to seeds and to $\lambda$, and collapse in small-data regimes — dictate the protocol: a full $\lambda$ sweep with multiple seeds, and collapse detection (variance of predictions near zero) treated as a first-class outcome to report, not a bug to hide.
The third component is the crossover: training invariant models on filtered data. The hypothesis is interaction, not addition. Filtering removes the shortcut reactions that let any model look good without chemistry; invariance then has a cleaner signal from which to extract the physical representation, because the environments the model is forced to agree across no longer contain easy fingerprint-solvable examples that trivially satisfy the invariance constraint. The decisive comparison is against the tabular-paradox result (Predictors from causal features do not generalize better to new domains): in that study, kitchen-sink models with all features won everywhere. If kitchen-sink ERM beats IRM on the ELN transfer too, the paradox extends to physical data; if IRM wins, the paradox has a boundary, and the boundary is the presence of genuine causal invariance.
Baselines
The naive reference point is standard empirical risk minimization — ordinary regression training — on the raw, unfiltered Buchwald–Hartwig grid with full features, evaluated on the AstraZeneca lab notebook. This is not a strawman: it is the documented status quo, and its numbers are known. On the HTE grid the Random Forest baseline reaches $R^2 = 0.92$ with RMSE 7.7 (Deep Forest-Based Intelligent Yield Predicting of Buchwald-Hartwig Coupling Reaction), and on the 781-reaction AstraZeneca notebook the same model family drops to $R^2 = 0.266$, with YieldGNN and BERT at random chance (On the use of real-world datasets for reaction yield prediction). Any proposed method must beat 0.266 on the notebook transfer to count as progress; that single number is the bar the whole field is currently stuck under.
The strongest existing competitor is the Uncertainty-Aware Multimodal architecture of Chen et al., which combines a SMILES transformer, a graph neural network, and Morgan fingerprints with a mixture-of-Experts gating and a Gaussian negative-log-likelihood loss that down-weights noisy reactions (Uncertainty-Aware Yield Prediction with Multimodal Molecular Features). It reports $R^2 = 0.976$ on the Buchwald–Hartwig HTE benchmark, the best number in the file, and $R^2 = 0.262$ on the noisy patent-mined amide coupling dataset — evidence that its uncertainty machinery helps somewhat under noise, though no reported result found on Lacuna for UAM on the AstraZeneca notebook transfer. We will reimplement or obtain UAM and run it on exactly our splits, with the same descriptor inputs, the same train/test partitions, and the same tuning budget (matched GPU-hours and an equal-size hyperparameter grid) as the invariant models, so that any difference is attributable to the invariance objective rather than capacity or tuning. Beating UAM means a higher $R^2$ on the notebook transfer and on leave-one-ligand-out splits, at equal or better in-distribution $R^2$.
Two ablations isolate the proposal's ingredients. The first removes the invariance penalty but keeps everything else: the same graph network, same filtered or unfiltered data, trained with plain ERM across the pooled environments. This separates the effect of the IRMv1 penalty from the effect of architecture and data. The second keeps the invariance penalty but removes the adversarial filtering, training IRM on the raw grid; this separates the effect of shortcut removal from the effect of invariance. A third, cheaper ablation swaps labeled environments (ligand, base, halide class) for AIL-discovered ones (Adversarial Invariant Learning) to test whether adversarial environment discovery earns its complexity when ground-truth labels exist.
Why not just…?
Why not just use a stronger off-the-shelf model — Deep Forest, XGBoost, or UAM? These are genuinely strong, and in-distribution they may remain unbeatable; we will not claim in-distribution wins. But the question here is out-of-distribution transfer, and the file's evidence is unambiguous on that point: every strong HTE model collapses on the lab notebook, with Random Forest at $R^2 = 0.266$ and YieldGNN and BERT at random chance (On the use of real-world datasets for reaction yield prediction). Stronger fitting of the same grid is precisely what has already been tried. The honest caveat is that UAM's uncertainty loss is a plausible partial remedy — it improved the patent-mined amide dataset to $R^2 = 0.262$ (Uncertainty-Aware Yield Prediction with Multimodal Molecular Features) — which is exactly why it is the head-to-head baseline rather than an afterthought.
Why not just do feature selection — LASSO or BW screening — instead of adversarial filtering? The quantile regression forest study already pruned 120 descriptors to 21 with BW ranking plus LASSO while keeping $R^2 = 0.92$ (Intelligent predicting reaction performance in multi-dimensional chemical space using quantile regression forest). But feature selection prunes descriptors, not instances, and it optimizes within-dataset fit: it cannot see that a descriptor is a shortcut unless the shortcut fails inside the training distribution. The tabular study found that restricted feature sets lost to kitchen-sink models out of domain in all sixteen tasks (Predictors from causal features do not generalize better to new domains). Our AFLite port is an instance-level filter whose output — the set of surviving hard reactions — is a measurable object, and the leave-one-ligand-out experiments will directly test whether descriptor pruning and instance filtering move OOD performance differently.
Why not just retrain on recent data with a sliding time window? For temporal drift this works: feed-forward networks trained on 2019–2020 notebook data beat those trained on the full 2004–2020 history for predicting current reactions (Prediction of the Chemical Context for Buchwald‐Hartwig Coupling Reactions). But retraining needs contemporary labeled data, and the scientifically valuable regime is precisely where none exists: unreactive aryl chlorides under novel ligand scaffolds, the substrates whose activation requires dedicated catalytic design such as electron-reservoir single-electron transfer (Oxidative Addition of Nitro-Perylenediimide onto Palladium(0): A Theoretical and Experimental Study) or in-situ nanoparticle formation (Zhaofu Fei et al.). The leave-one-ligand-out and held-out-notebook splits simulate that regime; if sliding-window retraining matched invariant training there, the proposal's value would be genuinely in doubt, and the experiments are constructed so that this could be seen.
Decisive Checks
The experimental ladder runs from the benchmarked to the open. On the Buchwald–Hartwig grid (3,960–4,608 reactions depending on the source paper), the first check is the filtering curve: residual yield signal and halide-class composition as a function of AFLite depth. If aggressive filtering leaves learnable signal and the residue is enriched in aryl chlorides, the first half of the claim stands; if filtering rapidly annihilates signal as the XOR argument predicts (On the Limitations of Dataset Balancing: The Lost Battle Against Spurious Correlations), that is a published theory confirmed in a new domain and the proposal pivots to the invariance half alone. The second check is the transfer matrix: ERM, UAM, and IRMv1 (with labeled and AIL-discovered environments), each on filtered and unfiltered data, evaluated in-distribution, on leave-one-ligand-out and leave-one-base-out splits, on an aryl-chloride-only held-out set, and on the 781-reaction AstraZeneca notebook. The pre-registered success criterion is an $R^2$ on the notebook transfer that beats 0.266 with a confidence interval excluding it, at no more than two points of in-distribution $R^2$ sacrificed. The third check settles the invariance debate directly: a head-to-head against the tabular-paradox protocol of (Predictors from causal features do not generalize better to new domains) — kitchen-sink ERM versus invariant training on identical data — so that the outcome, in either direction, is comparable to the sixteen-task result. A supporting Suzuki–Miyaura replication (4,608 reactions) tests generality across the other major aryl-halide coupling; no reported result found on Lacuna for Suzuki–Miyaura yield-model OOD transfer broken out separately, so that number will be new. Finally, the interpretability check closes the loop with the chemistry: if the invariant representation is real, its features should be identifiable as the known physical levers — bond dissociation energy, NMR shifts, electrostatic charge redistribution — rather than the additive-identity and batch artifacts that dataset-design studies warn dominate naive models (Dataset Design for Building Models of Chemical Reactivity). Any outcome — IRM wins, ERM wins, or collapse under the instability modes documented in (IRM - when it works and when it doesn't: A test case of natural language inference) — produces a clean, publishable answer about where the invariance idea works, grounded in a domain where the ground truth is not a matter of opinion.
References
- On the use of real-world datasets for reaction yield prediction
- WinoGrande: An Adversarial Winograd Schema Challenge at Scale
- Out-of-Distribution Optimality of Invariant Risk Minimization
- IRM - when it works and when it doesn't: A test case of natural language inference
- Do causal predictors generalize better to new domains?
- Organoboron compounds as mild nucleophiles in Lewis acid- and transition metal-catalyzed CC bond-forming reactions
- On the Limitations of Dataset Balancing: The Lost Battle Against Spurious Correlations
- Adversarial Invariant Learning
- Deep Forest-Based Intelligent Yield Predicting of Buchwald-Hartwig Coupling Reaction
- Uncertainty-Aware Yield Prediction with Multimodal Molecular Features
- Enhancing Generic Reaction Yield Prediction through Reaction Condition-Based Contrastive Learning
- Reaction classification and yield prediction using the differential reaction fingerprint DRFP
- Aminophosphine complex as a catalyst precursor in Suzuki coupling reactions
- Intelligent predicting reaction performance in multi-dimensional chemical space using quantile regression forest
- Prediction of the Chemical Context for Buchwald‐Hartwig Coupling Reactions
- Oxidative Addition of Nitro-Perylenediimide onto Palladium(0): A Theoretical and Experimental Study
- Dataset Design for Building Models of Chemical Reactivity