AI4S in Drug Discovery: Why the Real Bottleneck Is Elimination, Not Molecule Generation

    This article reframes AI for Science (AI4S) in pharmaceutical R&D around a core claim: the hard problem is not generating more molecules but reliably eliminating the wrong ones. It walks through the four key stages of a screening pipeline—target modeling and structure preparation, molecule generation and sampling strategy, druggability and biological plausibility filtering, and the wet-lab feedback loop—and explains what domain agents should and should not own. It also proposes a four-layer evaluation system (data, ranking, decision, and runtime metrics) and lists engineering essentials such as data governance, layered compute and storage, built-in observability, least-privilege compliance, and human-in-the-loop interfaces. Readers will get a practical, verifiable framework for making AI4S screening trustworthy, measurable, and reproducible.

    1. Reframing the Problem: The Bottleneck in AI4S for Drug Discovery Is Elimination, Not Generation

    In drug discovery, the value of generative models is often misread as “making more molecules.” The real constraint is the opposite: the size of the candidate space has never been the bottleneck. What is scarce is the set of molecules that are synthesizable, druggable, and able to pass safety assessment. A widely cited rule of thumb in the industry is that reaching the clinic requires passing through target validation, hit and lead discovery, lead optimization, and preclinical studies, with each stage compressing the candidate count by one to two orders of magnitude. The core engineering goal of AI4S (AI for Science) should therefore be stated as: perform “negative sample identification” at lower cost and higher recall, removing unreliable molecules as early as possible.

    This definition directly determines the system design orientation. If the model is treated as a generator, evaluation metrics lean toward novelty and diversity. If the model is treated as a filter, metrics must lean toward ranking quality, calibration, and failure-mode coverage. The former produces a candidate pool; the latter produces a basis for decisions. Their engineering complexity is not on the same scale.

    2. The Four Key Stages of the Pipeline

    2.1 Target Modeling and Structure Preparation

    The target structure is the anchor for every downstream judgment. In practice, the common problem is not insufficient model capability but uneven input quality: mixed structure sources, unfilled missing residues, inconsistent handling of protonation states and tautomers, and vague binding-site definitions. The robust approach is to turn structure preparation into a versionable pipeline, define the decision threshold for each step, and retain intermediate artifacts for traceability. A schematic skeleton of the flow looks like this:

    1. def prepare_target(raw_structure, resolution_cutoff=3.0):
    2. if raw_structure.resolution > resolution_cutoff:
    3. return None # Low-resolution structures do not enter downstream stages, avoiding noise amplification
    4. structure = fill_missing_residues(raw_structure)
    5. structure = normalize_protonation(structure, ph=7.4)
    6. pocket = detect_binding_site(structure, min_volume=200)
    7. return {"structure": structure, "pocket": pocket, "version": tag()}

    The key is the ability to reject: the pipeline should be allowed to return an explicit empty result when the input does not meet the bar, rather than reluctantly producing a conformation that merely looks plausible. A pipeline without a rejection mechanism amplifies upstream noise level by level into downstream false positives.

    2.2 Molecule Generation and Sampling Strategy

    The generation stage must control three distributions at once: coverage of chemical space, synthetic feasibility, and complementarity to the target. A single objective function easily pushes sampling toward homogeneous regions. A common mitigation is to introduce diversity constraints and multi-objective trade-offs, for example placing affinity prediction, synthetic difficulty estimation, and structural novelty in the same ranking framework and using tunable weights to expose the trade-off relationships, instead of hiding them inside a single scalar score.

    2.3 Druggability and Biological Plausibility Filtering

    This is the engineering counterpart of the “marker gene computation, protein family filtering, and plausibility assessment” described in the original text, and it is also the part best suited to being handled by an agent. The reason is that it is highly rule-based, requires cross-validation across multiple data sources, and is time-consuming per run but logically deterministic. It can be abstracted as a rule chain:

    1. Candidate molecule -> physicochemical property range check -> structural alert group screening
    2. -> target family membership check -> pathway consistency check -> output tiered conclusion

    A tiered conclusion is more useful than a binary decision: split results into “ready to advance,” “needs additional experiments,” and “recommend elimination,” and attach the specific rule IDs that triggered the conclusion, so researchers can review it rather than trust it blindly.

    2.4 The Wet-Lab Loop and Feedback

    The payoff of computational screening only holds when it forms a closed loop with experiments. Engineering-wise, experiment records need to be structured so that each batch of results can flow back as labeled samples, used to calibrate the ranking model. Projects lacking a feedback mechanism typically see systematic divergence between model and experimental judgment after just two rounds of iteration, and the cause is hard to locate.

    3. What Agents Should and Should Not Own

    After connecting a general-purpose large model to a domain agent, the efficiency gains come mainly from three places: orchestration of cross-tool calls, context retention over long task chains, and information extraction from unstructured literature and experiment records. Retrieval, comparison, and form-filling work that researchers used to complete manually item by item is compressed, which is the source of the felt difference of “finishing it in the time it takes to have a meal.”

    But the boundary must be clear. The model does not have reliable judgment about causal mechanisms, and it should not be treated as the final arbiter of safety conclusions. A workable division of labor is: the model converges candidates, generates hypotheses, and organizes evidence; deterministic rules and physical simulation handle quantitative judgments; humans carry decision responsibility. Any flow that skips deterministic validation and directly accepts generative conclusions will expose problems at the audit stage.

    4. Evaluation: Turning “Looks Right” into “Measurable”

    The most common reason AI4S projects fail is not poor model performance but the inability to prove performance. At least four layers of metrics are recommended:

    • Data layer: structure pass rate, label consistency, data leakage check results;
    • Ranking layer: recall at a fixed elimination budget, ranking correlation, probability calibration error;
    • Decision layer: number of effective hits per unit of experiment cost, proportion of experiment waste caused by false positives;
    • Runtime layer: per-task latency, failure retry rate, result reproducibility rate.

    Among these, “recall at a fixed elimination budget” is closest to the business reality: R&D resources are limited, and the question has never been whether a full ordering can be produced, but whether, under the constraint of eliminating only a fixed proportion, truly effective molecules can be spared as much as possible.

    5. Engineering Essentials for Production

    1. Data governance first. Unified molecular and structural representations, traceable version tags, and clear authorization and de-identification boundaries are the prerequisite for all later automation.
    2. Layered compute and storage. Large-scale sampling is a burst-type compute load, suited to an elastic container platform; intermediate artifacts and experiment records are suited to object storage with lifecycle management; task scheduling can use a message queue to smooth peaks.
    3. Observability built in. Write the input summary, rule hits, and model version of each screening run into a logging service, and configure monitoring alerts, so that when results are abnormal it is possible to quickly determine whether the problem is data or model.
    4. Permissions and compliance. R&D data involves undisclosed assets, so it must be isolated under the least-privilege principle, with keys and credentials centrally managed rather than hard-coded in scripts.
    5. Human-machine collaboration interface. Output must be explainable, reviewable, and rollback-able, so researchers retain veto power.

    In related practice at Baidu AI Cloud, this kind of requirement is typically carried by a combination of general capabilities such as a container platform, object storage, logging service, and monitoring alerts, with model capabilities deployed separately from domain rules, making it easy to replace and evaluate them by project stage.

    6. Conclusion

    In pharmaceutical scenarios, the deciding factor for AI4S is not how many molecules were generated, but whether the elimination mechanism is trustworthy, measurable, and reproducible. Only by turning structure preparation, filtering rules, experiment feedback, and evaluation metrics into fixed assets can agents be genuinely embedded in the R&D workflow. Otherwise, however strong the generative capability, it will only turn the candidate pool into a new burden.