LLMs in Drug Discovery: Capability Gaps and Evaluation Methods
Large language models perform unevenly across drug discovery tasks: molecular structure reconstruction is increasingly reliable, while candidate selection and property prediction remain much less dependable. This article explains how to evaluate these capabilities separately, make project constraints and trade-offs explicit, and combine deterministic validation with scientific oversight. It also outlines benchmark design principles and a practical human-in-the-loop workflow.
1. Why Drug Design Has No Single Correct Answer
Consider a typical lead optimization problem. Candidate A strongly inhibits its target but has poor membrane permeability, leaving it largely ineffective inside cells. Candidate B crosses cell membranes well but is rapidly metabolized by liver microsomal enzymes, resulting in insufficient exposure.
Which is the better molecule? The answer depends on the project’s development stage, target product profile, and allocation of subsequent experimental resources.
Unlike a mathematics or coding problem, drug design often has no unique solution—only solutions that fit a particular set of constraints. Evaluating an LLM’s drug discovery capabilities solely through answer accuracy can therefore be misleading. An evaluation must explicitly account for constraints, development stages, and trade-offs.
2. Four Dimensions of Drug Discovery Capability
A comprehensive evaluation framework typically includes four task categories, each testing a different cognitive capability:
- Molecular structure reconstruction: Given a central scaffold and substituent descriptions, produce a complete, topologically correct structure representation, such as SMILES or an equivalent format.
- Scientific explanation: Explain mechanisms, structure–activity relationships, and the causes of experimental observations.
- Ranking and selection: Prioritize candidates and justify the choices.
- Property prediction: Produce comparable numerical estimates for properties such as activity, permeability, and clearance rate.
The public evaluation results discussed here show a consistent pattern: structure reconstruction approaches saturation, while selection and numerical prediction remain roughly at the halfway mark. This pattern reflects a gap between capabilities rather than simply random variation.
3. Structure Reconstruction: Progress in Pattern Recognition
In one evaluation task, models received a central structure and two substituents and were required to preserve an 18-membered ring. A newer-generation model answered correctly in all ten attempts. A previous-generation model failed all ten attempts, assembling a ring with only 15 atoms. Another model produced two disconnected molecular fragments.
The important point is the nature of the failure. These outputs were not merely lower-quality answers: they changed the chemical identity of the molecule being analyzed. A 15-membered ring and an 18-membered ring represent different compounds. Two disconnected fragments represent something different again. Once such an error occurs, subsequent discussion of the intended molecule’s properties becomes meaningless.
From an engineering perspective, structure reconstruction is a verifiable pattern-recognition task. Its correctness can be checked automatically using deterministic rules such as graph isomorphism, ring counts, and atom conservation. This makes validation a useful gate at the beginning of a pipeline.
def validate_reconstruction(candidate, reference):# Deterministic validation, independent of model self-assessmentchecks = {"graph_isomorphic": is_isomorphic(candidate, reference),"ring_count": count_rings(candidate) == count_rings(reference),"atom_balance": atom_count(candidate) == atom_count(reference),"connected": is_single_component(candidate),}return all(checks.values()), checks
4. Why Selecting Compounds Is Harder
Three factors help explain why selection and prediction lag behind reconstruction:
- Incomplete information: Without experimental data, a model must rely on statistical associations learned from its training corpus. Its ability to extrapolate is inherently limited.
- Objectives without a common scale: Activity, permeability, metabolic stability, toxicity, and synthetic feasibility do not share a single unit of measurement. Their relative importance depends on the project stage.
- No immediate feedback loop: Structural correctness can be checked immediately. Determining whether a molecule is worth advancing may require weeks or months of wet-lab experiments.
In short, structure reconstruction tests recognition, while compound selection tests decision-making under uncertainty. They operate at different levels of difficulty, so scoring them with the same yardstick can obscure the distinction.
5. Make Trade-Offs Explicit: Constraints and Multi-Objective Ranking
If there is no single correct answer, both evaluation and implementation should focus on constraint satisfaction and multi-objective ranking. The following code illustrates this approach:
def rank_candidates(cands, stage):# Weights vary by project stage rather than remaining fixedweights = {"potency": 0.5, "permeability": 0.3, "clearance": 0.2} \if stage == "hit_to_lead" else \{"potency": 0.2, "permeability": 0.2, "clearance": 0.6}scored = []for c in cands:if not passes_hard_constraints(c): # Filter hard constraints firstcontinuescore = sum(w * normalize(c[k]) for k, w in weights.items())scored.append((score, c))return sorted(scored, reverse=True)
The key design principle is to filter candidates against hard constraints first, such as solubility requirements and structural integrity, then apply weighted soft preferences. Weights should be stored in external configuration so that the same model outputs can support different development stages.
Evaluation should assess both whether the model identifies the Pareto frontier and whether its reasoning is consistent with the stated constraints, rather than relying only on top-1 accuracy.
6. Four Principles for Trustworthy Benchmarks
- Prioritize verifiability. Score structural tasks using deterministic rules rather than model self-assessment, which can introduce bias.
- Include challenge cases. Deliberately construct inputs that require preservation of specific ring systems, stereochemistry, or connectivity to detect changes in chemical identity.
- Allow multiple valid reference answers. Use rubrics for judgment-based tasks, specifying the mechanism-related points an answer must cover and the incorrect claims it must avoid.
- Label the development stage. Annotate every task with its project stage and constraint set so that scores can be broken down into specific capability dimensions.
The supporting infrastructure need not be complex. Object storage can hold benchmark datasets and historical responses; message queues can schedule batch inference; container platforms can run reproducible evaluation images; and logging and monitoring services can track score drift and trigger alerts.
These are general cloud infrastructure capabilities, including categories offered by platforms such as Baidu AI Cloud. The evaluation loop does not require proprietary interfaces.
7. A Practical Deployment Path: Human–AI Collaboration
A pragmatic division of responsibilities is straightforward: models generate and initially screen candidates, rule engines validate outputs, and scientists make decisions.
Generated structures should pass mandatory deterministic validation. Property predictions should include confidence intervals and retain information about uncertainty. Every recommendation involving trade-offs should state the constraints and weights used, making it easier for scientists to review the reasoning.
This workflow assigns each component a role suited to its strengths without treating the model as an autonomous decision-maker.
8. Conclusion
LLMs are approaching practical usefulness in molecular structure recognition, but judgments about a compound’s suitability for drug development remain unreliable when experimental data is absent.
The purpose of evaluation is not to produce a single overall score. It is to identify capability boundaries: which steps can be automated, and which still require human judgment.
Making constraints, development stages, and trade-offs explicit is essential to integrating these models responsibly into drug discovery workflows.
