arXiv:2611.05103cs.LGNov 2026

Manuscript Offprint

arXiv:2611.05103

Molecular Prior Networks

Pawel Gomoluch, Anthony Bradley

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Predicting affinity between small molecules and their protein targets remains one of the central problems in drug discovery. Due to the substantial cost of wet-lab experiments, machine learning models of drug-target affinity are usually trained on relatively small datasets, ranging from tens to hundreds of molecules. Given the inherent difficulty of generalization between different targets and chemical series, existing datasets of protein-ligand affinities are typically not used for new projects. At the same time, tabular foundation models, including Prior-data Fitted Networks, have recently shown how transformers can be used to solve machine learning problems in a single forward pass of the network, after being trained over a large corpus of, typically, synthetic datasets. Inspired by that line of work, we propose a novel affinity modelling approach, in which the labels of the query molecules are predicted from the labelled support molecules in a single forward pass of a transformer model. The model is trained on thousands of existing affinity datasets, enabling it to capture the general patterns of molecular activity across different targets, chemical series and dataset sizes. For the smallest support sets, our model matches the state of the art on the regression variant of the FS-Mol benchmark, while being faster than existing methods, thanks to the lack of task-specific training. A comparison against a reduced variant of our architecture, which amounts to kernel regression in a meta-learned feature space, shows that the predictive performance of the transformer model is only partially explained by simple molecular similarity.

1 Introduction

Recent developments in tabular foundation models have demonstrated a remarkable ability of deep neural networks to generalize between tabular datasets and perform inference on unseen datasets in a single forward pass. Models such as TabPFN [Hollmann et al., 2023, Grinsztajn et al., 2025] and TabICL [Qu et al., 2025], trained over thousands of synthetic datasets, have achieved state-of-the-art performance on real-world tabular machine learning problems. In this work, we propose using a similar transformer-based approach to build drug-target affinity models. Instead of synthetically generated datasets, we use the wealth of existing affinity datasets to imbue our model with the relevant priors. Over the course of training, the datasets are randomly split into support and query sets and the model is tasked with predicting the labels of the query molecules, using the information contained in the support molecules and their labels. At inference, the model is presented with an unseen dataset including both labelled and unlabelled examples, and predicts the missing labels in a single forward pass, without the need for any task-specific training.

Since Prior-data Fitted Networks have been hypothesized to approximate non-parametric inference [Müller et al., 2022], we also introduce a reduced variant of our approach, in which similarity between projected molecule representations is used directly to compute a weighted mean of the support labels. While this model outperforms common baselines, it remains behind the full transformer model.

40th Conference on Neural Information Processing Systems (NeurIPS 2026). Workshop: AI for Drug Discovery – Bridging the Translation Gap.

The source code of our models and experiments and the trained model weights are publicly available from https://github.com/daltontx/molpriornet.