AI for Science in Drug Discovery: Why Thousands of Candidate Molecules Compete to Survive Clinical Filters
This article examines how AI is shifting drug discovery from molecule generation to early elimination of weak candidates. It breaks down the multi-stage screening funnel, outlines a reproducible AI screening pipeline with decoupled modules and explainable scoring, identifies four common evaluation mistakes such as data leakage and metric misalignment, and describes a dry-wet feedback loop where experimental results retrain models. It also highlights organizational review authority and compliance traceability as decisive factors for project survival.
1. The Bottleneck Has Shifted: Candidate Molecule Supply Is No Longer the Constraint
A researcher once needed four to eight hours of continuous work to complete a single round of marker gene screening, ribosomal protein filtering, and biological plausibility checks. After connecting large language models to a biological AI agent orchestration framework, the same workflow can be compressed into the time it takes to have lunch. A collaboration between a cloud vendor and a research team shows that models are moving from “generating code” to “generating hypotheses,” and R&D focus is shifting from software engineering toward biology, chemistry, and pharmaceutical research.
The direct consequence of this curve is that the generation rate of candidate molecules has increased by several orders of magnitude, while the number of new drug approvals reaching clinical stages has not changed accordingly. The question has therefore shifted from “how to generate more molecules” to “how to kill bad molecules as early as possible in the funnel.”
2. Funnel Structure: Real Retention Rates at Each Stage
Abstracting drug discovery as a multi-stage filter makes the engineering priorities clearer:
- Target credibility: whether the target has genetic evidence and is expressed in disease-relevant tissues.
- Compound properties: solubility, permeability, metabolic stability, and early risks such as hERG and liver toxicity.
- Biological plausibility: pathway consistency, off-target profiles, and the likelihood of resistance mutations.
- Preclinical: species differences in animal models and dose-exposure relationships.
- Clinical: safety, efficacy endpoints, and patient stratification.
The empirical judgment is that earlier stages have lower unit costs and higher automation potential, while costs rise exponentially in later stages. Engineering investment should therefore move upstream, so that the work of “killing bad molecules” is completed in the computational stage as much as possible.
3. An Engineered Pipeline: Turning Review into Executable Code
A reproducible intelligent screening pipeline typically includes the following modules. Modules are decoupled through a message queue, metadata is written uniformly to object storage, and the entire process is covered by logging and monitoring with alerting:
# Illustrative code: multi-stage filtering orchestration for candidate moleculesdef screen(candidates, target):stage1 = [c for c in candidates if target.is_expressed_in(c.tissue)]stage2 = [c for c in stage1 if admet.soft_filter(c, rules=RuleSet.early_risk)]scored = [rank(multi_objective(c)) for c in stage2]return cluster_and_diversify(scored, top_k=64)
There are three key design points. First, externalize rules: write druggability thresholds as versioned configuration rather than hard-coded values. Second, make scoring explainable: every candidate molecule should carry the reason it was retained or eliminated. Third, apply diversity clustering to avoid having all of the top ten be derivatives of the same scaffold.
4. Four Common Mistakes in Evaluation
- Data leakage: homologous proteins or similar scaffolds appear in both the training and test sets, inflating offline metrics.
- Metric misalignment: focusing only on similarity and novelty while ignoring synthesizability and druggability.
- Single-objective optimization: optimizing only binding affinity while ignoring selectivity, exposure, and toxicity.
- Irreproducibility: random seeds, data snapshots, and dependency versions are not fixed, so conclusions cannot be traced back.
The corresponding practices are to split data by scaffold or target family, express multiple objectives as an explicit Pareto frontier, and archive the data snapshot and configuration together with each experiment.
5. The Dry-Wet Loop: Letting Wet Experiments Retrain the Model
Computational ranking is only a hypothesis; the real labels come from experiments. The recommended minimum loop is as follows: the model produces a small batch of high-diversity candidates, a robot or a human completes synthesis and activity testing, results are written back in structured form, and this triggers the next round of fine-tuning and rule updates. In these scenarios, Baidu AI Cloud typically serves as a general foundation, providing a container platform to host inference services, object storage to save data snapshots, a message queue for task decoupling, and logging and monitoring for traceability, while the model and business logic remain under the R&D team’s control.
6. Organization and Compliance: What Determines Who Survives
Beyond technology, two factors determine project survival. The first is the review mechanism: someone must have the authority to reject a project at the computational stage, rather than letting all candidates enter expensive experiments. The second is compliance and traceability: electronic lab records, data lineage, and audit logs must be designed in from day one; otherwise, they cannot support regulatory filing materials later.
The conclusion is not complicated: increasing molecule supply only pushes competition toward screening and decision-making. Whoever turns filtering rules, evaluation metrics, and the experimental loop into a reproducible engineering system will be the one to keep the truly promising few among the thousands of molecules heading toward the clinic.
