TL;DR
MOLPAIR is a new framework that enhances molecular property prediction under structural shifts by using Tabular Foundation Models (TFMs) for zero-shot, in-context refinement. By combining global molecule-level predictions with a second stage that estimates error differences between query molecules and similar "anchors," it outperforms traditional task-specific models without requiring any parameter updates.
What Problem Does This Paper Address?
In drug discovery and materials science, the goal is often to find molecules in "uncharted territory"—chemical structures that are significantly different from those in existing labeled datasets. This is known as structural generalization.
Standard machine learning models typically struggle with these structural shifts. While recent Tabular Foundation Models (TFMs) like TabPFN have shown promise by learning to predict from context (examples provided in the input) rather than through traditional training, their ability to handle structural shifts in chemistry remained underexplored. The authors identify a gap: global molecule-level predictions often miss local nuances that could be captured by comparing a new molecule directly to a known reference.
Methods
The authors introduce MOLPAIR (Molecular Pair-Augmented In-context Refinement), which uses two frozen TFMs in a "predict-then-refine" pipeline:
- Global Prediction: A first TFM (the global predictor) takes a standard table of labeled molecules and predicts the property of a query molecule.
- Out-of-Fold (OOF) Error Estimation: The system calculates the errors the global predictor makes on the training data using cross-validation.
- Relation Prediction: A second TFM (the relation predictor) is given a "relation context" where each row represents a pair of molecules. It learns to predict the difference in prediction errors between two molecules based on their structural differences.
- Refinement: At inference time, the query molecule is paired with several "anchor" molecules from the training set. The relation predictor estimates how much the query's error should differ from the anchor's known error.
- Reliability Gating: A similarity-based gate ensures that corrections are only applied if the query molecule is sufficiently similar to its anchors, preventing noisy adjustments for completely alien structures.
Crucially, both TFMs and the molecular encoders remain frozen. There is no task-specific fine-tuning or hyperparameter optimization (HPO) required for new datasets.
Datasets
The framework was evaluated on a massive benchmark of 58 tasks:
- MoleculeACE (30 tasks): Focused on bioactivity (affinity/activity endpoints).
- Polaris (28 tasks): A diverse set of curated endpoints including ADME (Absorption, Distribution, Metabolism, and Excretion) and toxicity.
- Structural Generalization Splits: The authors created rigorous test splits by holding out entire Bemis–Murcko scaffold groups and filtering out any test molecules with a Tanimoto similarity > 0.6 to the training set.
Key Insights and Ideas
- Pairwise Comparisons are Complementary: Molecule-level "global" features don't capture everything. Explicitly modeling the relationship between two molecules provides a signal that helps correct errors caused by structural shifts.
- In-Context Learning is a Strong Baseline: Even without the MOLPAIR refinement, simply using a TFM (TabPFN-3) with a strong molecular encoder (CheMeleon) outperformed most task-trained baselines.
- Frozen Models Beat Tuned Ones: MOLPAIR achieved better results than supervised models (like Chemprop or XGBoost) that were specifically tuned for each task. This suggests that the "prior" knowledge inside TFMs is highly effective for chemistry.
- Robustness Across Backbones: The benefit of pairwise refinement persisted regardless of whether they used TabPFN-3, TabICLv2, or Causilo as the underlying TFM.
Key Results
- Broad Superiority: MOLPAIR improved upon the global TFM baseline in 46 out of 58 tasks.
- Win Matrix: As shown in Figure 1, MOLPAIR significantly outperformed all other evaluated methods, including tuned tree ensembles and deep learning models like Chemprop.
- Elo Rating: In a head-to-head comparison across all tasks, MOLPAIR reached a pooled Elo of 1360, far exceeding the global baseline (1246) and the best-tuned molecular baseline, MiniMol (1122).
- Efficiency: While MOLPAIR is slower than a single TFM pass, it sits on the Pareto frontier of performance vs. cost. It achieves higher accuracy than supervised methods while requiring less time than a full hyperparameter search.
Limitations and Future Work
- Computational Overhead: The pairwise stage increases inference time because the model must process multiple query-anchor pairs for every single prediction.
- RMSE vs. Rank: While MOLPAIR consistently wins more tasks (improving rank), the absolute reduction in error (RMSE) is sometimes modest, suggesting that while it's more reliable, the magnitude of improvement varies.
- Anchor Selection: The current method relies on Morgan fingerprint similarity to pick anchors. The authors suggest that developing more sophisticated, learnable ways to select the best reference molecules could further boost performance.
- Broader Shifts: The study focused on structural shifts; future work could test if this pairwise approach helps with other distribution shifts, such as changes in experimental assays or molecular size.
Summary updated