AI for Science in Drug Discovery: Survival Rules for Screening Thousands of Generated Molecules
As generative models can now produce thousands of candidate molecules in hours, the bottleneck in drug discovery has shifted from generation to survival. This article reframes the core AI4S metric as the number of surviving molecules per unit of experimental cost and walks through the full funnel: target credibility and biological plausibility, immediate post-generation filtering, multi-objective druggability assessment, the proper role of general-purpose LLMs, and the wet-lab feedback loop. It includes practical engineering guidance and Python examples for evidence modeling, cheap filters, Pareto selection, and traceable agent orchestration.
1. Redefining the Problem: From Generation Capability to Survival Capability
When a generative model can output thousands of candidate molecules within hours, the bottleneck moves from “can we build it” to “which one survives to the end.” A representative scenario from the source material: after connecting a general-purpose LLM with long context and tool-calling ability to a biological agent, tasks that used to take a PhD student four to eight hours—marked gene calculation, ribosomal protein filtering, and biological plausibility assessment—are compressed into the time it takes to have a meal. The efficiency gain is real, but it comes with a side effect: the candidate pool expands far faster than experimental validation capacity.
For this reason, the core metric of AI4S (AI for Science) in pharma should not be the number of generated molecules, but the number of surviving molecules per unit of experimental cost. The funnel shape commonly observed in the industry: thousands to tens of thousands of generated molecules enter computational screening, hundreds enter in vitro experiments, dozens enter animal models, and ultimately one or two enter clinical trials. Understanding why molecules are eliminated at each layer of this funnel matters more than optimizing the generative model itself.
2. Layer One of the Funnel: Target Credibility and Biological Plausibility
Many candidates are doomed at the source because the target hypothesis itself does not hold. The engineering recommendation is to model the “target–pathway–phenotype” evidence chain explicitly, rather than treating a target as a string ID.
- Evidence tiering: distinguish human genetics evidence, expression-difference evidence, and functional experiment evidence, with different weights for each.
- Tissue specificity: differences in the reachability of the same target in liver versus brain directly determine the route of administration.
- Druggability: distinguish modalities such as small molecules, peptides, and antibodies to avoid using the wrong generative model.
A schematic data structure can be expressed as follows:
@dataclassclass TargetEvidence:target_id: strgenetic_support: float # 0-1, strength of human genetics evidencetissue_specificity: dict # tissue -> expression confidencemodality: str # small_molecule / peptide / antibodytractability: float # prior druggability
Only targets whose genetic_support and tractability both clear the threshold are allowed into large-scale generation. This gate alone typically cuts more than half of the wasted compute.
3. Layer Two of the Funnel: Immediate Filtering After Generation
The most common mistake in the generation stage is putting filtering at the very end. The correct approach is to eliminate candidates while generating—front-load cheap rules and back-load expensive evaluations.
- Structural validity: valence, charge, and stereochemical correctness; discard illegal structures outright.
- Drug-likeness and physicochemical ranges: use industry-standard empirical ranges for molecular weight, polar surface area, rotatable bonds, and so on, rather than arbitrary custom thresholds.
- Structural alert groups: build a blacklist of substructures known to be associated with toxicity and reactivity.
- Diversity control: use clustering or fingerprint similarity to remove redundancy, avoiding a pool of ten thousand molecules that actually contains only twenty scaffolds.
def cheap_filter(mol):if not is_chemically_valid(mol):return Falseif mol.rdkit_props["MW"] > 500:return Falseif has_alert_group(mol, ALERT_SMARTS):return Falsereturn True
The engineering key points: cheap filters must be vectorizable and parallelizable, and the reason for every rejection must be logged. Otherwise, you cannot later answer “why was this molecule eliminated?”
4. Layer Three of the Funnel: Multi-Objective Druggability Assessment
Molecules that survive to this layer must pass assessment across absorption, distribution, metabolism, excretion, and safety dimensions. The most common mistake here is collapsing multiple metrics into a single weighted score, which lets a lopsided molecule hide behind a high total.
A more robust approach is to first apply Pareto frontier screening, keeping the set of mutually non-dominated candidates, then introduce domain constraints for arbitration:
objectives = ["potency", "solubility", "hERG_margin", "clearance", "synthetic_feasibility"]front = pareto_frontier(candidates, objectives)finalists = [m for m in front if m.hERG_margin > 30 and m.synthetic_feasibility > 0.4]
At the same time, the uncertainty of predictive models must be acknowledged. For out-of-distribution samples, the confidence of model outputs is often unreliable. It is therefore recommended to introduce uncertainty estimation and applicability domain checks, explicitly flagging molecules the model “does not know” and handing them to wet-lab experiments rather than forcing a guess.
5. Explainability and the Proper Place of LLMs
The value of general-purpose LLMs in AI4S lies not in replacing physics simulation, but in three things: orchestrating tool chains, converting unstructured literature into structured evidence, and generating human-readable review notes. The earlier remark that “biological plausibility assessment is compressed into the time of a meal” is essentially about chaining retrieval, computation, and writing into an automated pipeline.
One caveat: model outputs must be traceable. It is advisable to bind each conclusion to evidence citations and the version of the computation script, avoiding irreproducible “black-box conclusions.” Schematic orchestration logic:
plan = agent.plan(task="assess biological plausibility of candidate molecules")for step in plan.steps:result = tool_registry.run(step.tool, step.args) # compute, retrieve, compareevidence.append(Evidence(step.tool, result, step.version))report = render(finalists, evidence) # conclusions must carry evidence
6. Closing the Wet-Lab Loop and Data Governance
The gains from computational screening only materialize inside a closed loop. Engineering needs to connect three links: experiment design dispatch, result collection, and model retraining. Collected data must carry complete metadata (batch, instrument, operator, temperature); otherwise it becomes a noise source.
Cloud resources can be orchestrated by general categories: object storage holds the molecule library and raw experimental data, a message queue decouples long-running tasks, a container platform hosts elastically scalable inference and screening jobs, and logging plus monitoring and alerting track every elimination reason and failed task. In such scenarios, Baidu AI Cloud is typically also positioned as a combination of these general capabilities rather than a single “black-box algorithm.”
7. Conclusion: Turn Elimination into a Measurable Engineering Metric
When thousands upon thousands of molecules head toward the clinic, the outcome does not depend on how well the generative model writes, but on whether elimination at each layer of the funnel is explainable, reproducible, and optimizable. Three things are recommended for teams to implement: front-load cheap filtering, retain the Pareto candidate set, and enforce evidence logging. With these three in place, AI4S moves from a demo to sustainable R&D infrastructure.
