AI4S in Drug Discovery: The Funnel from Millions of Molecules to the Clinic

    This article explains why AI for Science (AI4S) does not eliminate the drug discovery funnel but reshapes it. It covers the shift of bottlenecks across target validation, activity and selectivity, ADMET and safety, synthesizability and CMC, and clinical translation. It also describes how to redesign workflows with agents, evaluate models with layered metrics, and build reproducible, cost-controlled engineering pipelines.

    1. The Funnel: AI4S Promise vs. Reality

    In drug discovery, the most direct value proposition of AI4S is reducing the cost of trial and error. Generative models can produce millions of candidate structures in hours, and virtual screening can expand the searchable space from the synthetically feasible domain to the theoretical topological space.

    However, the reality of drug development is a very narrow funnel. Each year, thousands of compounds enter preclinical research, hundreds enter Phase I clinical trials, and only a single-digit number ultimately receive approval.

    This creates the core tension of AI4S adoption: the marginal cost of generation and screening drops sharply, while the marginal cost of validation and translation remains almost unchanged. When upstream capacity increases by three orders of magnitude, the bottleneck inevitably moves downstream. Therefore, judging which approach will “survive to the end” cannot rely only on model metrics; it requires evaluating the information gain efficiency of the entire pipeline.

    2. Bottleneck Migration: Real Constraints at Each Funnel Layer

    1. Target Credibility Layer.
    Whether a target is causal determines the ceiling for all downstream work. The key at this layer is not compute, but evidence integration: genetic evidence, expression profiles, pathway context, and consistency with disease models. A common mistake is treating correlative evidence as causal evidence, which can lead to late-stage clinical failure.

    2. Activity and Selectivity Layer.
    Affinity prediction performs well within the training distribution, but generalization drops significantly in out-of-distribution regions such as scaffold hopping, macrocyclization, and covalent binding. Selectivity—against homologous targets and safety-related targets—often matters more than absolute potency in determining druggability.

    3. ADMET and Safety Layer.
    Endpoint data for solubility, permeability, metabolic stability, hERG, and hepatotoxicity are highly imbalanced, with few positive examples. As a result, models tend to predict “safe” for everything. The right approach at this layer is to introduce uncertainty quantification and active learning, rather than pursuing a single accuracy metric.

    4. Synthesizability and CMC Layer.
    A molecule that looks attractive but requires a 17-step route with multiple chiral centers becomes a cost disaster during scale-up. Synthetic feasibility should be treated as a first-class constraint during generation, not as a post-hoc filter.

    5. Clinical Translation Layer.
    The narrowest part of the funnel involves exposure-response relationships from animal models to humans, biomarker strategy, and patient stratification. This layer requires both mechanistic models and real-world data.

    3. Agentic Reconstruction: Turning “Four Hours of a PhD Student” into an Orchestrated Workflow

    A typical original workflow includes marker gene calculation, ribosomal protein filtering, and biological plausibility assessment. When performed manually, these steps take hours. The main cost is not computation, but context switching, script lookup, result verification, and leaving a trace of judgment. The benefit of agentization comes from making these hidden costs explicit and reusable.

    There are four reconstruction principles:

    • Tool-based, not prompt-based: Each computational step is encapsulated as a tool with clear input and output contracts. The model is responsible only for orchestration and explanation.
    • Externalized filtering rules: Thresholds, whitelists, and blacklists are managed as configurations that can be versioned and audited.
    • Layered plausibility assessment: First apply hard constraints (eliminate anything biologically impossible), then apply soft scoring (evidence-weighted), and finally perform human review.
    • Full-process traceability: Intermediate outputs, parameters, and random seeds of each step are stored to ensure reproducibility.

    A schematic pipeline skeleton (pseudocode, structure only):

    1. # Externalized configuration: thresholds and rule sets are versioned independently
    2. config = load_config("filterset_v3.yaml")
    3. def run_pipeline(candidates):
    4. stage1 = [c for c in candidates if marker_score(c) >= config.marker_min]
    5. stage2 = [c for c in stage1 if not is_ribosomal(c, config.ribo_blacklist)]
    6. stage3 = []
    7. for c in stage2:
    8. report = plausibility(c, evidence=load_evidence(c.target))
    9. if report.hard_violation: # Hard constraint: biologically impossible
    10. audit_log.reject(c, report.reason); continue
    11. c.score = weighted_sum(report.signals, config.weights)
    12. c.uncertainty = report.epistemic_uncertainty
    13. stage3.append(c)
    14. return sorted(stage3, key=lambda x: (x.uncertainty, -x.score))

    The key point is that uncertainty participates in ranking. The system prioritizes molecules with sufficient evidence and controllable uncertainty, rather than molecules with the highest score but the farthest extrapolation. This is the dividing line between turning statistical metrics into R&D decisions.

    4. Evaluation System: Using Layered Metrics to Answer “Who Will Survive to the End”

    A single AUC cannot support funnel decisions. A four-layer metric system is recommended:

    Layer Metrics Purpose
    Discriminative power Stratified recall, enrichment factor Whether screening misses true positives
    Calibration Reliability curve, expected calibration error Whether scores can be used as probabilities
    Generalization Performance decay under scaffold split Whether the model works only in-distribution
    Decision value Expected information gain per unit experimental cost Whether wet-lab experiments are worthwhile

    Scaffold split and time split are closer to real drug discovery scenarios than random split and should be used as the default validation protocol.

    5. Engineering Implementation: Data, Reproducibility, and Cost

    • Data governance first: Structure data should be normalized consistently (salt removal, deduplication, tautomer normalization). Failed samples must be stored; otherwise, models will never learn the boundaries.
    • Reproducibility essentials: Fix dependencies with container images, bind configurations and data versions, and record random seeds.
    • Human-machine collaboration gates: Mandatory human review points should be set at the ADMET and safety layer. Agents should output evidence chains, not conclusions.
    • Cost control: Large-scale enumeration should run in batch queues, interactive analysis should run in low-latency services, and hot and cold data should be stored in tiers.

    On the cloud, a combination of general capabilities is usually sufficient: object storage for molecular libraries and intermediate outputs, a container platform for parallel inference and screening tasks, a message queue for stage decoupling and peak shaving, and logging and monitoring services for long-running task tracking and retry on failure. The entire orchestration can be completed without proprietary interfaces.

    6. Conclusion

    AI4S will not make the funnel disappear. It will only change the shape of the funnel: the upstream becomes wider, decisions become faster, and the requirement for downstream validation quality becomes higher.

    The teams that truly “survive to the end” do not compete on the number of generated molecules. They compete on three things: evidence integration capability, uncertainty management capability, and engineering discipline for full-process reproducibility.

    Defining the agent’s role as an “auditable process executor and evidence organizer,” rather than an “authority that replaces judgment,” is the most reliable adoption path at the current stage.