AI4S in Drug Discovery: Why Thousands of Molecules Head to the Clinic and Who Makes It to the End

    AI for Science (AI4S) is moving beyond general-purpose coding toward hard-science domains, with drug discovery as its most demanding battleground. This article breaks down how large language models and agents reshape the molecular screening pipeline—from the unforgiving drug-discovery funnel to marker-gene and pathway computation, contamination filtering, and biological-plausibility assessment. It argues that the real efficiency lever is not generating more molecules but eliminating doomed ones earlier and more accurately, then outlines a reusable, layered technical architecture built on data governance, elastic compute, agent orchestration, explainability, and observability. Finally, it examines the key risks of bringing AI into clinically relevant decisions—hallucinations, data bias, reproducibility, and responsibility boundaries—and the practices needed to govern them.

    1. Introduction: From Writing Code to Doing Science — AI4S Enters Deeper Waters

    Over the past two to three years, large language models have reached near-professional levels at tasks like code generation, document writing, and information extraction. A consensus is forming in the industry: the reasoning level required for tasks in finance and law is roughly on par with programming, while scientific research demands more of models—it requires causal reasoning, cross-modal understanding (sequences, structures, text, images), and verifiable domain knowledge. For this reason, many AI R&D teams are shifting their focus from general-purpose coding ability toward “hard science” scenarios such as biology, chemistry, and pharmaceuticals.

    The essence of AI4S (AI for Science) is to use learnable, computable models to approximate scientific problems that once depended on experimentation and expert experience. Drug discovery is the most typical battleground. On average, a candidate compound takes more than a decade and billions of dollars to travel from discovery to market, and its ultimate success rate is often less than one in ten thousand. When large models and agents begin to enter this chain, the core question changes as well: it is no longer merely “can we generate more molecules,” but “how do we select from a vast pool of molecules the few that can actually reach the clinical finish line.”

    This article centers on this theme and breaks down the technical logic, key capabilities, engineering implementation path, and risk governance of AI4S in drug discovery.

    2. The Molecular Funnel: Why “Thousands of Molecules Head to the Clinic”

    To understand the value of AI4S, you first need to understand the inherent mathematical funnel of drug discovery:

    • Compound library: In the virtual screening stage, you often face a molecular space of millions, tens of millions, or even hundreds of millions of compounds;
    • Initial activity screening: Those that can hit the target and show preliminary activity may be reduced to just one in a thousand;
    • Lead optimization: Iterating under constraints of druggability (ADMET), selectivity, toxicity, and so on often converges to a few hundred candidates;
    • Preclinical: Animal models and safety assessments eliminate most of the rest;
    • Clinical Phase I/II/III: Each phase sees large-scale failures, and those that finally pass regulatory approval are often just a handful.

    The cruelty of this funnel lies in this: the further along you go, the more the validation cost of a single molecule rises exponentially. Once a molecule enters clinical trials, enormous investment is already sunk. So the real efficiency lever is not “generating more molecules” but eliminating molecules that are destined to fail as early and as accurately as possible—moving the decision to the lowest-cost stage.

    3. How Large Models and Agents Reconstruct the Molecular Screening Pipeline

    Traditionally, steps such as marker gene computation, protein family filtering, and biological plausibility assessment relied on PhD students manually searching and comparing against literature step by step, with a single task sometimes taking hours. When the semantic understanding of large models is combined with structured domain tools into an “agent,” this pipeline can be automatically orchestrated: the model is responsible for understanding task intent, calling computational tools, synthesizing evidence from multiple sources, and producing explainable conclusions.

    Take three typical steps as examples:

    (1) Marker genes and pathway computation. The agent receives a gene list or expression data and calls tools such as enrichment analysis and pathway annotation to produce significance results and biological interpretations. The model’s key role is to translate “statistical results” into “mechanistic hypotheses” and to annotate evidence sources.

    (2) Ribosomal protein and common contamination filtering. High-quality data must first exclude common noise such as ribosomal proteins, mitochondrial genes, and batch effects. This step has relatively clear rules and is well suited to being fixed as a reusable filtering pipeline.

    (3) Biological plausibility assessment. This is the step that most tests “scientific reasoning”: Is a candidate consistent with the known mechanism of the disease? Are there off-target or toxicity risk signals? The agent needs to cross-validate across literature and databases, rather than relying on a single generation.

    Below is an illustrative agent-orchestration skeleton that shows this “reason-call-verify” loop; it is not the interface of any specific product:

    1. # Illustrative: the sense-reason-act loop of a research agent
    2. def screen_candidate(candidate, target, knowledge_base, tools):
    3. evidence = []
    4. # 1. Structured computation: call deterministic tools rather than relying on the model to "compute mentally"
    5. enrichment = tools.pathway_enrichment(candidate.genes)
    6. contamination = tools.filter_common_noise(candidate.genes) # ribosomal proteins, etc.
    7. admet = tools.predict_admet(candidate.structure)
    8. # 2. The model handles evidence integration and explainable reasoning
    9. rationale = llm_reason(
    10. question="How consistent is this candidate's mechanism with the target, and what are the potential toxicity risks?",
    11. context=enrichment + contamination + admet
    12. )
    13. # 3. Enforce source citations to reduce hallucination risk
    14. evidence.append(rationale.with_citations(knowledge_base))
    15. # 4. Structured output for downstream decisions
    16. return {
    17. "candidate": candidate.id,
    18. "score": aggregate(enrichment, admet, rationale.confidence),
    19. "reasoning": evidence,
    20. "needs_wet_lab_validation": rationale.confidence < THRESHOLD
    21. }

    The core idea is: deterministic computation is delegated to tools, while semantic integration and hypothesis generation are delegated to the model, with a clear boundary between the two. This preserves scientific rigor while gaining the efficiency that natural-language interaction brings.

    4. From “Generation” to “Screening”: AI4S’s Real Efficiency Battleground

    Many people’s imagination of large models in pharma stops at “generating new molecular structures.” Generation is indeed important, but the mathematics of the funnel dictates that the value of screening and validation far exceeds simply expanding the number of candidates. The reason is that generated molecules, without a reliable evaluation loop, only further congest the already overloaded downstream.

    Therefore, the engineering focus of AI4S should be placed on two areas:

    1. Explainable intelligent screening: Provide mechanism-level, literature-backed reasons for every “keep” or “eliminate” decision, so scientists can review, refute, and iterate, rather than accepting a black-box score;
    2. Active-learning closed loop: Continuously feed wet-lab feedback back into the model, forming a “predict-experiment-correct” cycle that gradually narrows the model’s uncertainty.

    This also explains why scientific scenarios demand more of models than programming: when code runs wrong, it throws an error and can be tested; but a wrong biological hypothesis may cause someone to invest years in the wrong molecule.

    5. Engineering Implementation: A Reusable AI4S Technical Architecture

    To deliver the above capabilities reliably to research teams, you need a platform architecture that balances elasticity, data governance, and reproducibility. The following is a general, layered design (it does not involve any vendor-proprietary components):

    • Data layer: Heterogeneous data such as molecular libraries, omics data, literature, and patents is well suited to unified management in object storage; for high-throughput data exchange, message queues provide asynchronous decoupling; for large-scale structured queries, pair with relational/columnar databases.
    • Compute layer: Heavy-compute tasks such as molecular docking, dynamics simulation, and enrichment analysis run on an elastic container platform and scale on demand, avoiding costly idle resources.
    • Agent orchestration layer: Organize model inference and domain tools into composable workflows that support task decomposition, tool invocation, and multi-agent collaboration; the inputs and outputs of each step’s tools should be persisted for easy auditing.
    • Explainability and evaluation layer: Bind an evidence chain and confidence level to each conclusion, build evaluation benchmarks aimed at domain experts, and continuously measure accuracy, recall, and hallucination rate.
    • Observability layer: Through logging services and monitoring/alerting, track the status, latency, and failure points of long-chain tasks to ensure the operability of research jobs.

    The key to this architecture is not any single “miracle tool,” but upgrading non-reproducible, one-off scripts into versionable, auditable, and iterable research pipelines.

    6. Risk and Governance: Don’t Bring Hallucinations into the Lab

    The deeper AI4S goes into clinically relevant decisions, the more it must face the following risks:

    • Hallucinations and incorrect citations: Models may generate plausible-sounding mechanistic explanations with no source. Countermeasures include enforcing citations, distinguishing “retrieved facts” from “hypotheses inferred by the model,” and retaining human review for critical conclusions.
    • Data leakage and bias: Batch effects in training data and publication bias in the literature can amplify wrong conclusions. Bias detection needs to be incorporated at the data-governance stage.
    • Reproducibility: The value of science lies in others being able to re-run it. All tool versions, parameters, and random seeds should be fixed and recorded, eliminating “it only runs on my machine.”
    • Responsibility boundaries: AI output is “decision support,” not a “final conclusion.” Judgments about which candidate molecules to keep or drop must be signed off by qualified research personnel.

    7. Conclusion: Who Will Survive to the End

    Back to the original question—when thousands of molecules head to the clinic, who will reach the finish line? The answer does not depend on who generates the most molecules, but on whose screening is more accurate, whose validation is faster, and whose decisions are more explainable. The real value of AI4S is to free scientists’ attention from tedious computation and retrieval so they can focus on mechanistic hypotheses and key validation; it is to turn the lowest-cost upstream step into the most reliable elimination mechanism.

    For teams hoping to enter AI4S, rather than chasing a single “all-purpose model,” it is better to pragmatically build data governance, tool orchestration, evaluation loops, and reproducible pipelines. When this chain is solid enough, the vast pool of molecules will naturally be efficiently screened by the funnel into their rightful positions—and only the truly promising candidates will have a chance to survive to the end.