Manuscript Offprint

arXiv:2608.30674

CoMPASS: Collaborative Molecular Property Prediction via Adaptive Small-Large Model Synergy

Wentao Li, Jiangjie Qiu, Yijun Li, Leyi Zhao, Xiaonan Wang

Abstract

Accurate molecular property prediction requires both statistical reliability and chemical reasoning. Graph neural networks can be calibrated directly on labeled assays but remain limited by the coverage of their training data. Large language models (LLMs) can compare molecular evidence and articulate chemical rationales, yet are unreliable as standalone quantitative predictors. The central challenge is therefore to determine when an LLM should influence a calibrated model and by how much. Here we present CoMPASS, a retrieval-calibrated framework for small–large model collaboration. CoMPASS retains a graph attention network (GAT) as the predictive anchor, retrieves locally relevant training molecules, provides attention-grounded evidence to an LLM, and converts its proposal into a bounded correction through an agreement-aware gate. Across six classification and two regression benchmarks, CoMPASS improves the GAT anchor in regions of correctable uncertainty while limiting LLM intervention in high-confidence regimes. Ablations show that the gains arise from validation-calibrated retrieval and bounded fusion rather than prompting alone. These results suggest that generative reasoning should augment calibrated prediction through evidence-grounded, controlled corrections rather than direct output replacement. Code is available at https://github.com/littlepeachs/CoMPASS.

Introduction

Molecular property prediction is useful only when its numerical outputs are reliable enough to guide downstream decisions. In drug discovery and toxicology, a model must assign a probability or continuous property value that can support screening, prioritization, and risk assessment (Cherkasov et al. 2014; Vamathevan et al. 2019; Wu et al. 2018; Stokes et al. 2020). This requirement creates a dual demand: the predictor must be statistically calibrated on labeled assays, but it should also reason over chemical evidence when local data are sparse or ambiguous.

Graph neural networks (GNNs), including graph attention networks (GATs), address the supervised prediction side of this problem by learning directly from molecular graphs and task-specific labels (Duvenaud et al. 2015; Kearnes et al. 2016; Gilmer et al. 2017; Kipf and Welling 2017; Veličković et al. 2018; Schütt et al. 2018; Klicpera, Groß, and Günnemann 2020; Xiong et al. 2020). Their reliability, however, is bounded by the coverage of the training distribution. Near decision boundaries, rare scaffolds, sparse activity regions, or noisy multi-task assays, a compact graph model may return a confident prediction even when the local evidence is weak or conflicting.

LLMs provide a complementary form of evidence processing. Recent scientific and chemistry-oriented LLMs can follow structured instructions, compare molecular descriptions, and articulate rationales (Taylor et al. 2022; Bran et al. 2024; Christofidellis et al. 2023; Grattafiori et al. 2024; Gemma Team 2024; Qwen Team 2025; Zhao et al. 2025; Zhang et al. 2024). Yet a fluent chemical rationale is not the same as a calibrated quantitative prediction. If an LLM is allowed to freely replace the output of a supervised predictor, retrieved molecules become anecdotes rather than statistical evidence, and the final score can drift away from the assay-calibrated model.

The central challenge is therefore to decide when an LLM should influence a calibrated molecular predictor and by how much. CoMPASS answers this question by treating large-model reasoning as a controlled correction rather than direct output replacement. The GAT remains the predictive anchor. Retrieval supplies locally relevant training molecules and a validation-calibrated numerical estimate. The LLM receives a structured packet containing the target molecule, GAT prediction, attention evidence, retrieved analogues, and conflict summaries. Its proposal is then converted into a bounded prediction shift through a deterministic agreement-aware gate. Thus every LLM-mediated prediction can be traced to four explicit signals: the small model, the retrieved neighborhood, the LLM proposal, and the gate that mediates the correction.

Contributions. (1) We formulate small–large collaboration for molecular property prediction as evidence-grounded correction of a calibrated graph predictor. (2) We introduce retrieval-calibrated base prediction, where retrieved neighbors serve both as prompt evidence and validation-fitted numerical calibration. (3) We define an agreement-aware gate that limits LLM intervention in high-confidence regimes while allowing correction in uncertain regions. (4) We validate the mechanism across classification and regression benchmarks using ablations, confidence-bin analysis, backbone swaps, and success/failure cases.

∗^{*}Corresponding author.

Figure

Figure 1: CoMPASS overview. A GAT produces the base prediction and attention evidence. Retrieval supplies top-K calibration molecules. The LLM proposes an evidence-conditioned correction, and a bounded gate controls how much that proposal changes the final prediction.

References (38)

  • Improving Language Mod-els by Retrieving from Trillions of Tokens
  • ChemCrow: Augmenting large-language models with chemistry tools
  • QSAR modeling: where have you been? Where are you going to? Journal of Medicinal Chemistry, 57(12): 4977–5010
  • Unifying molecular and textual representations via multi-task language modelling
  • Convolutional Networks on Graphs for Learning Molecular Fingerprints
  • Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity
  • Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learning
  • Gemma 2: Improving Open Language Models at a Practical Size
  • Neural message passing for quantum chemistry
  • The Llama 3 Herd of Models
  • Strategies for pre-training graph neural networks (opens arXiv in a new tab)
  • Therapeutics Data Commons: Machine Learning Datasets and Tasks for Drug Discovery and Development
  • Leveraging Passage Retrieval with Generative Models for Open Domain Question
  • Molecular Graph Convolutions: Moving Beyond Fingerprints
  • Semi-supervised classification with graph convolutional networks
  • Directional Message Passing for Molecular Graphs
  • Fast inference from transformers via speculative decoding (opens arXiv in a new tab)
  • Retrieval-augmented generation for knowledge-intensive NLP tasks
  • Pre-training Molecular Graph Representation with 3D Geometry
  • DeepTox: Toxicity Prediction using Deep Learning
  • Qwen2.5 Technical Report
  • Recipe for a General, Powerful, Scalable Graph Transformer
  • Extended-connectivity fingerprints
  • Self-Supervised Graph Transformer on Large-Scale Molecular Data
  • A Deep Learning Approach to Antibiotic Discovery
  • Galactica: A large language model for science (opens arXiv in a new tab)
  • Applications of machine learning in drug discovery and development
  • Graph attention networks
  • Molecular contrastive learning of representations via graph neural networks
  • MoleculeNet: a benchmark for molecular machine learning
  • MolRAG: Unlocking the Power of Large Language Models for Molecular Property Prediction
  • Pushing the boundaries of molecular representation for drug discovery with the graph attention mechanism
  • Small models are valuable plug-ins for large language models
  • How Powerful are Graph Neural Networks? In International Conference on Learning Representations
  • Graph contrastive learning with augmentations
  • ChemLLM: A Chemical Large Language Model (opens arXiv in a new tab)
  • GIMLET: A Unified Graph-Text Model for Instruction-Based Molecule Zero-Shot Learning
  • Developing ChemDFM