TL;DR
CoMPASS bridges the gap between statistically calibrated graph neural networks (GNNs) and chemically intuitive large language models (LLMs) for molecular property prediction. By treating the LLM as a bounded, retrieval-grounded corrector rather than a direct replacement, it safely improves predictions in uncertain chemical regimes without degrading performance where the base model is already confident.
What Problem Does This Paper Address?
Accurate molecular property prediction is a cornerstone of drug discovery and toxicology. Currently, researchers rely on Graph Neural Networks (GNNs) because they can be directly calibrated on experimental assay data. However, GNNs are strictly bounded by their training data; when faced with rare molecular scaffolds or sparse data regions, they can return confidently incorrect predictions.
On the other hand, chemistry-tuned Large Language Models (LLMs) excel at chemical reasoning, comparing molecular descriptions, and explaining rationales. Yet, LLMs are notoriously poor quantitative predictors and prone to hallucinations. The challenge is synergy: how do we combine the statistical reliability of a small graph model with the flexible reasoning of a large language model without letting the LLM completely override valid statistical evidence?
Methods
The authors introduce CoMPASS (Collaborative Molecular Property Prediction via Adaptive Small–Large Model Synergy), a framework that structures the interaction between a small model and an LLM into four distinct stages:
- The Predictive Anchor: A Graph Attention Network (GAT) processes the molecular graph to produce a base prediction, a confidence score, and attention weights that highlight which atoms or functional groups it deemed important.
- Retrieval-Calibrated Base Prediction: CoMPASS searches the training set for $K$ similar molecules using a hybrid similarity metric (combining Morgan fingerprints, graph embeddings, and GAT attention overlap). It blends the GAT's prediction with a similarity-weighted local estimate from these neighbors.
- Structured LLM Proposal: The LLM receives a structured prompt containing the target molecule, the GAT's prediction/confidence, the attention-highlighted functional groups, and the retrieved analogues. The LLM then proposes a numerical correction and direction.
- Agreement-Aware Bounded Gating: Crucially, the LLM cannot overwrite the prediction. A deterministic gate evaluates the LLM's proposal against the GAT's uncertainty, retrieval consistency, and directional agreement. If the GAT is highly confident or if the LLM disagrees wildly with local data, the gate constrains or suppresses the LLM's intervention.
Datasets
The framework was evaluated using eight standard benchmarks from MoleculeNet and the Therapeutics Data Commons (TDC):
- Classification Tasks (evaluated via ROC-AUC): BACE, BBBP, ClinTox, CYP450, HIV, and Tox21.
- Regression Tasks (evaluated via RMSE): ESOL and Lipo.
Key Insights and Ideas
- Corrections, Not Replacements: Allowing an LLM to freely replace a supervised model's output causes the final score to drift away from assay-calibrated realities. Generative reasoning is best utilized as a bounded correction mechanism.
- Retrieval Size is a Calibration Axis: The number of retrieved neighbors ($K$) is not just a cosmetic hyperparameter. More neighbors help when analogues form a coherent local neighborhood, but can dilute the signal if the molecular property changes sharply across similar structures.
- Targeted Intervention: CoMPASS naturally applies corrections where they are needed most. A confidence-binned analysis reveals that the mean correction benefit is highest when the GAT anchor reports low confidence, and safely shrinks to near-zero when the GAT is highly confident.
Key Results
- Consistent Performance Gains: CoMPASS consistently improved upon the standalone GAT anchor across all benchmarks. It achieved notable jumps in ROC-AUC on BACE (+0.096) and BBBP (+0.080), where retrieved analogues successfully exposed boundary or calibration mistakes made by the GAT.
- Regression Improvements: On regression tasks, CoMPASS reduced original-scale RMSE on ESOL (-0.074) and Lipo (-0.026).
- Auditability: Because the framework relies on a deterministic gate, every prediction leaves a clear audit trail (GAT score, retrieved neighbors, LLM rationale, and final gate value), making the system's failures and successes fully transparent.
Limitations and Future Work
- Inference Overhead: Introducing an LLM into the loop adds significant computational overhead. CoMPASS is highly suitable for offline triage, screening, and mechanistic analysis, but is currently too slow for billion-scale virtual library screening.
- Dependency on Retrieval Quality: The framework's primary failure mode occurs when the retriever pulls misleading neighborhoods, which can occasionally trick the system into an over-correction.
- Future Work: The authors note that future performance leaps will likely come from designing better conflict-detection algorithms and more adaptive gating caps, rather than simply scaling up the LLM's weight.
Summary updated