AI4S in Practice: Why Molecular Screening Fails and How to Make Candidates Survive

    This article examines why most AI-generated candidate molecules are eliminated before reaching the clinic, and how to build a screening pipeline that reliably filters them. It breaks down the three sources of funnel error—generation bias, scoring distortion, and the biological plausibility gap—then outlines a four-stage architecture of coarse filtering, high-fidelity scoring, plausibility assessment, and wet-lab feedback. It also covers the role and limits of agent orchestration, the observability infrastructure required to make the pipeline trustworthy, and the metrics that reveal where candidates are lost. Readers will find practical guidance on using confidence-interval lower bounds as thresholds and on keeping domain experts in control of rule setting.

    1. The Problem: Candidate Explosion Meets Survival Collapse

    In early-stage drug discovery, computational and generative methods can produce thousands of candidate molecules within hours. Very few ever reach the clinic. The bottleneck is not that we generate too few candidates. It is that every layer of the screening chain amplifies error: generative models favor novel structures that are hard to synthesize or carry high toxicity risk; scoring functions are highly unstable on out-of-distribution samples; and manual review is limited by expert bandwidth.

    A typical research scenario: a scientist needs to run computational checks on marker genes, filter for ribosomal proteins, and assess biological plausibility. This used to take a PhD student four to eight hours. Once an agent orchestrates the workflow, the same task can finish in about the length of a meal. The real gain is not speed. It is freeing experts from repetitive work so they can exercise judgment.

    2. Why Survival Is Hard: Three Layers of Funnel Error

    1. Generation bias: models tend to output high-frequency scaffolds from the training distribution, leading to insufficient diversity or over-concentration in known chemical space.
    2. Scoring distortion: docking scores, energy estimates, and property predictions have very high variance in out-of-distribution regions, making rankings unstable.
    3. Biological plausibility gap: passing at the molecular level does not mean a compound can be explained at the pathway, cellular, and organism levels.

    Engineering practice requires measuring these three layers separately rather than hiding the problem behind a single aggregate score.

    3. A Deployable Multi-Stage Funnel Architecture

    A four-stage structure is recommended: coarse filtering, fine screening, plausibility assessment, and wet-lab feedback.

    • Coarse filtering: cheap rules and fast descriptors as the gate, such as molecular weight range, number of rotatable bonds, polar surface area range, and heuristic synthetic accessibility.
    • Fine screening: higher-fidelity computation with controlled sampling randomness, outputting confidence intervals instead of single-point scores.
    • Plausibility assessment: placing the molecule back in biological context to check target expression, pathway membership, potential off-targets, and known toxicity patterns.
    • Feedback loop: structured return of wet-lab results as labels for the next round of training and threshold calibration.

    Illustrative orchestration logic (pseudocode, expressing flow only and not pointing to any specific product):

    1. def screen(candidates):
    2. coarse = [c for c in candidates if cheap_rules_pass(c)]
    3. scored = []
    4. for c in coarse:
    5. s, ci = high_fidelity_score(c) # returns mean and confidence interval
    6. if ci_low(s, ci) > THRESHOLD:
    7. scored.append((c, s, ci))
    8. ranked = sorted(scored, key=lambda x: x[1], reverse=True)
    9. plausible = [x for x in ranked if bio_plausibility(x[0])]
    10. return plausible[:TOP_K]

    The key point: using the lower bound of the confidence interval as the gate significantly suppresses candidates that score high but are unreliable.

    4. The Value and Limits of Agent Orchestration

    Connecting LLM-driven agents to a research pipeline adds value in three areas: task decomposition, tool invocation, and result archiving. Agents can automatically handle literature-style rule retrieval, batch computation scheduling, and report generation, compressing hour-level manual operations into minutes.

    The boundaries must be explicit:

    • Agents do not replace physical computation or experimental validation;
    • all automated conclusions must retain traceable intermediate artifacts;
    • thresholds and rules should be set by domain experts, with the model only executing and summarizing.

    5. Observability and Engineering Foundations

    Making the screening chain trustworthy requires foundational capabilities: object storage for molecules and intermediate results, message queues to smooth batch task spikes, container platforms to host heterogeneous compute images, and logging plus monitoring with alerting to track failure rates and latency. In scenarios like this, Baidu AI Cloud is typically used to provide these general-purpose capabilities rather than to replace domain algorithms themselves.

    • Funnel pass rate: retention ratio at each layer, used to locate bottlenecks;
    • Ranking stability: rank correlation coefficient under repeated sampling;
    • Diversity metrics: number of scaffold clusters and distribution entropy;
    • Feedback gain: improvement in fine-screening precision after adding new labels.

    7. Conclusion

    The competitive focus in AI4S has shifted from “can we generate” to “can we reliably eliminate.” Whoever can separate error by layer, quantify confidence, and close the experimental loop is more likely to get candidate molecules to survive to the end.