Monroe: A Molecular Foundation Model for In-context Probabilistic Inference

Blazej Banaszewski, Andrew W FitzgibbonNeurIPS 2026

TL;DR

Drug discovery runs on scarce, expensive wet-lab data, yet most molecular foundation models still rely on brittle, task-by-task gradient fine-tuning to make predictions. Monroe pairs massive multi-task quantum and biological pre-training with TabPFN—an in-context tabular predictor—to predict molecular properties in a single forward pass without updating a single weight. By combining explicit 3D stereochemistry wiring with this zero-finetuning paradigm, Monroe sets a new state of the art on standard bioassays and notoriously tricky "activity cliffs."

What Problem Does This Paper Address?

Imagine trying to learn the rules of human biology from a few hundred test tubes. Wet-lab bioassays are slow and costly, leaving machine learning models starved for data. To bridge this gap, researchers build Molecular Foundation Models (MFMs): networks pre-trained on millions of easily computed chemical properties, then adapted to small, real-world drug discovery datasets.

However, existing MFMs hit three recurring snags:

  1. Overfitting during adaptation: Fine-tuning neural networks or training new MLP heads on tiny datasets is noisy and hyperparameter-heavy.
  2. Blindness to molecular "handedness": Mirror-image molecules (enantiomers) can have wildly different biological effects (think thalidomide), yet standard graph networks using rotation-invariant bond lengths often collapse them into identical representations.
  3. Activity cliffs: Models struggle when two nearly identical molecules exhibit drastically different biological potencies—a crucial phenomenon in drug optimization.

Methods

Monroe isn't built on one silver bullet, but rather a thoughtful synthesis of architectural, pre-training, and inference upgrades.

Figure 1: A. Monroe multi-task pretraining with structural and decorrelation losses under uncertainty weighting. B. Graph construction including featurization and stereochemistry-aware rewiring. C. In-context probabilistic inference: embeddings generated by attention pooling of the pretrained model together with training labels are passed to TabPFN, which outputs an approximate posterior-predictive distribution for the test molecule in a single forward pass.
  • Sparse Graph Transformer + Explicit Stereochemistry: Building on the GRIT architecture, Monroe restricts attention to observed edges ($O(|E|)$ complexity) with a global virtual node. Instead of using computationally heavy 3D-equivariant backbones, it keeps features rotation-invariant and explicitly wires stereochemistry into the graph—adding directed cyclic and radial auxiliary edges to distinguish R/S chiral centers and E/Z double-bond isomers.
  • Multi-Task Pre-training at Scale: Trained across 1,152 tasks simultaneously, Monroe uses Uncertainty Weighting (UW), assigning each task a learnable noise parameter so noisy or saturated tasks automatically step back.
  • 3D Denoising & Tabular-Friendly Embeddings: During pre-training, Monroe learns to denoise cheap RDKit 3D conformers toward quantum-optimized geometries. It also applies a VICReg-inspired decorrelation loss that forces off-diagonal covariance of the pooled molecular fingerprints toward zero—preventing redundant features.
  • In-Context Downstream Inference: Here is the biggest departure from standard practice. At test time, Monroe’s encoder is frozen. The molecular embeddings of the labeled training set and test molecule are fed directly into TabPFN, a prior-data-fitted transformer that approximates Bayesian inference on tabular data in a single forward pass—no gradient descent or hyperparameter tuning required.
Figure 2: Stereochemical E/Z isomers and R/S configurations.

Datasets

No new datasets are introduced, though the authors carefully scrub all pre-training data (via InChIKey) of any test-set molecules from downstream benchmarks.

  • Pre-training: PM6 (~81 million molecules with 62 quantum-chemical properties and equilibrium 3D conformers) paired with PCBA (1.56 million molecules across 1,089 filtered binary PubChem bioassays). Pre-training took just 26 hours on four H100 GPUs.
  • Evaluation: Polaris (28 unseen ADMET and bioactivity tasks testing low-data generalization) and MoleculeACE (30 tasks specifically partitioned to test sensitivity to activity cliffs).

Key Insights and Ideas

  • In-context tabular inference beats fine-tuning—and transfers to older models: Replacing MLP heads or LoRA fine-tuning with TabPFN wasn't just a win for Monroe. When the authors slapped TabPFN onto existing leading models (MiniMol and CheMeleon), both jumped significantly in performance, creating new runner-up baselines ($\text{MiniMol}_{\text{PFN}}$ and $\text{CheMeleon}_{\text{PFN}}$).
  • Decorrelating embeddings primes them for TabPFN: Penalizing feature correlation yielded a massive jump on Polaris (92.9% vs. 67.9% win rate in ablations), likely because independent, non-redundant features mimic the clean tabular priors TabPFN expects for classification.
  • Learning 3D geometry helps—even if the 3D predictions are mediocre: Removing conformer denoising hurt downstream bioactivity accuracy. Ironically, because Uncertainty Weighting prioritizes property and bioassay tasks, Monroe's actual 3D coordinate predictions aren't better than raw RDKit inputs—yet the auxiliary signal still forces the encoder to internalize useful geometric constraints.
  • Physics + Biology are mutually essential: Dropping either the quantum excited-state tasks (PM6) or the sparse biological assays (PCBA) caused downstream performance to tank. Dense physical laws build the foundation; sparse bioassays align it with reality.

Key Results

Using rigorous Tukey HSD pairwise statistical testing (at $\alpha = 0.05$ with false-discovery control) across multiple seeds, a model earns a "win" if it is statistically indistinguishable from the top performer on a task.

Figure 3: Comparison between {Monroe, MiniMolPFN, CheMeleonPFN } (methods new to this paper) and {MiniMol, CheMeleon, MolFormer}, the leading previous models, plus a classical QSAR, on 28 tasks from Polaris (left) and 30 tasks from MoleculeACE (right). The pairwise matrices in the middle show the number of tasks that the model on the y-axis won against the model on the x-axis. The barplots show the win rates (see Section 4) in % when all seven methods are taken into account.
  • Polaris: Monroe achieves a 100% win rate across all 28 tasks and the best overall leaderboard rank (3.71, compared to 5.82 for $\text{MiniMol}_{\text{PFN}}$ and 10.04 for tuned LightGBM on ECFP4 fingerprints). It also wins on 26/26 tasks under stricter Bemis–Murcko scaffold splits.
  • MoleculeACE (Activity Cliffs): Monroe takes the lead with an 86.7% win rate, achieving the lowest overall RMSE (0.629) and lowest Cliff RMSE (0.737), widening its lead over fingerprint-based models.
  • Ensembling: Averaging predictions across Monroe ablation variants plus $\text{MiniMol}_{\text{PFN}}$ and $\text{CheMeleon}_{\text{PFN}}$ pushes the Polaris mean rank to 2.68 and MoleculeACE Cliff RMSE down to 0.726, driven by error diversity across distinct model families.

Limitations and Future Work

  • Activity cliffs remain unsolved: While Monroe achieves the lowest Cliff RMSE (0.737) of all tested models, its error on cliff compounds remains noticeably higher than its overall RMSE (0.629). Capturing sharp potency jumps from tiny structural tweaks is still an open frontier.
  • Ultra-low-data floor: Below ~100 labeled molecules per task (the 1%–5% data regimes on MoleculeACE), support sets become too small for TabPFN to distinguish between different encoders, causing methods to collapse within each other's error bars.
  • Noisy benchmarks & poor structure generation: Monroe cannot be used for 3D structure determination, and the authors candidly note that underlying community datasets (like TDC subsets in Polaris) still suffer from lab-to-lab aggregation noise, salt inconsistencies, and assay artifacts.

Summary updated

Abstract

Bioassay activity prediction is often data-limited because drug-discovery datasets rely on time-consuming and expensive wet-lab experiments for data generation and evaluation. This challenge has inspired recent research into molecular foundation models (MFMs), which aim to encode general-purpose chemical knowledge into molecular representations that generalize well in data-constrained scenarios. This paper presents Monroe, a new MFM with several innovations over the existing state of the art: increased scale allowing pre-training on over 81 million molecules from the PM6 quantum chemistry dataset; improved graph representation of stereochemistry; improved training losses including conformer denoising and embedding decorrelation; improved multi-task learning; and the use of a prior-data-fitted model (TabPFNv3) for downstream in-context prediction. Our evaluations use a principled pairwise comparison framework that measures statistically significant performance differences. Across established Polaris benchmarks, Monroe matches or exceeds existing MFMs, while on activity cliff benchmarks, designed to assess utility for molecular discovery, it achieves significant improvements over prior methods. Finally, ablation and transfer experiments show that PFN-based downstream predictors also substantially improve two leading existing models, MiniMol and CheMeleon, yielding new state-of-the-art variants we call MiniMol_PFN and CheMeleon_PFN, suggesting that our downstream adaptation strategy generalizes beyond Monroe. Source code is at github.com/blazejba/Monroe.
BibTeX
@inproceedings{banaszewski2026monroe,
  author = {Blazej Banaszewski and Andrew W Fitzgibbon},
  title = {{Monroe: A Molecular Foundation Model for In-context Probabilistic Inference}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=ChiaszwjMu},
}
Figure