AssayMatch: Learning to Select Data for Molecular Activity Models
Vincent Fan, Regina Barzilay
TL;DR
AssayMatch tackles the problem of noisy, heterogeneous assay data by learning to select training assays most compatible with a given test assay without requiring test labels. It computes per-assay TRAK data-attribution scores, finetunes language embeddings of assay descriptions with a contrastive objective based on those scores, and ranks training data to maximize transfer to unseen assays. Across six ChEMBL IC50 targets and two model architectures, AssayMatch demonstrates improved data efficiency and predictive performance, often surpassing models trained on the full dataset and particularly excelling in low-data regimes. This data-driven data curation approach reduces noise from incompatible experiments and offers a scalable pathway for more reliable drug-discovery modeling.
Abstract
The performance of machine learning models in drug discovery is highly dependent on the quality and consistency of the underlying training data. Due to limitations in dataset sizes, many models are trained by aggregating bioactivity data from diverse sources, including public databases such as ChEMBL. However, this approach often introduces significant noise due to variability in experimental protocols. We introduce AssayMatch, a framework for data selection that builds smaller, more homogenous training sets attuned to the test set of interest. AssayMatch leverages data attribution methods to quantify the contribution of each training assay to model performance. These attribution scores are used to finetune language embeddings of text-based assay descriptions to capture not just semantic similarity, but also the compatibility between assays. Unlike existing data attribution methods, our approach enables data selection for a test set with unknown labels, mirroring real-world drug discovery campaigns where the activities of candidate molecules are not known in advance. At test time, embeddings finetuned with AssayMatch are used to rank all available training data. We demonstrate that models trained on data selected by AssayMatch are able to surpass the performance of the model trained on the complete dataset, highlighting its ability to effectively filter out harmful or noisy experiments. We perform experiments on two common machine learning architectures and see increased prediction capability over a strong language-only baseline for 9/12 model-target pairs. AssayMatch provides a data-driven mechanism to curate higher-quality datasets, reducing noise from incompatible experiments and improving the predictive power and data efficiency of models for drug discovery. AssayMatch is available at https://github.com/Ozymandias314/AssayMatch.
