AI4S Research Agents: Automating Molecular Preclinical Screening in Practice

    This article explains how AI4S (AI for Science) research agents can automate multi-stage molecular preclinical screening. It covers why long-running screening workflows need reproducibility, auditability, and human oversight. It outlines a six-level screening funnel, a layered agent architecture with an example workflow, engineering practices for high-throughput runs, criteria for evaluating scientific reasoning in models, and governance steps for rollout.

    1. The Core Problem: From Single-Model Capability to Long-Running Research Tasks

    Traditional molecular screening is often built from separate scripts, database queries, and manual judgment. The workflow typically starts with data cleaning and standardization. It then computes marker genes or key features, filters out interfering items such as ribosomal proteins, and finally assesses biological plausibility and ranks the candidates. Each step may use different tools, outputs follow inconsistent formats, and intermediate results are hard to trace. Researchers often spend hours, or longer, switching environments, checking parameters, and compiling results.

    A research agent changes this by turning these steps into an orchestrated task graph. A general-purpose large language model serves as the reasoning core. It interprets the task intent, selects tools, explains intermediate results, and generates evaluation reports. Domain tools handle deterministic computation. The orchestration layer manages dependencies, parallel execution, failure retries, and result aggregation. The direct benefit is a shorter end-to-end cycle. The deeper benefit is an evidence pipeline: each candidate’s evaluation records its inputs, parameters, tool versions, intermediate artifacts, and the basis for its conclusion.

    A research agent should not be designed as an automatic decision-maker that works as a black box. It is best suited to accelerating evidence production. It can group candidates by risk, remove clearly unsuitable candidates early, and send promising candidates to expert review and experimental validation queues.

    2. The Screening Funnel: Which Candidates Advance

    Deciding which candidates survive can be modeled as a funnel that narrows at each level. Project details vary, but the funnel typically includes the following levels:

    1. Data and identity consistency: Molecular structures, IDs, batches, sources, and experimental records must align. If identity mapping is wrong, every downstream calculation is distorted.
    2. Target and mechanism relevance: The candidate should act on the intended target and have a plausible binding mode or regulatory mechanism.
    3. Initial druggability screening: General indicators include physicochemical properties, solubility, permeability, and stability.
    4. Safety and metabolic risk: Common preclinical concerns include toxicity alerts, off-target risk, and metabolic stability.
    5. Synthesis and process feasibility: Route complexity, raw material availability, and cost constraints directly affect whether a candidate can move forward.
    6. Experimental validation and feedback: In vitro and in vivo results are the final source of evidence. Model rankings should only be used to set priorities.

    Agents can contribute at all six levels, but their roles differ. The first few levels suit high-throughput automation. The later levels must leave final interpretation to human experts and experimental data. A sound platform should output an evidence package rather than a single score. At minimum, the package includes task inputs, computation parameters, tool versions, key intermediate results, risk flags, confidence notes, and items that need human confirmation.

    3. Agent Workflows for Biology: Turning Scattered Scripts into Auditable Pipelines

    Research agents for AI4S typically use a layered architecture:

    • The interaction layer receives natural language or structured tasks.
    • The orchestration layer decomposes tasks into a directed acyclic graph (DAG).
    • The tool layer wraps domain computation, database queries, statistical analysis, and report generation.
    • The data layer manages raw data, intermediate artifacts, and versions.
    • The model layer provides reasoning, explanation, and code generation.
    • The governance layer handles permissions, auditing, cost, and security.

    A simplified screening workflow can be expressed as follows:

    1. workflow:
    2. input: candidate_molecules
    3. steps:
    4. - normalize_and_validate
    5. - compute_marker_genes
    6. - filter_ribosomal_proteins
    7. - assess_biological_plausibility
    8. - rank_candidates
    9. - generate_evidence_report
    10. outputs:
    11. - ranked_candidates
    12. - evidence_report
    13. - human_review_queue

    Key design points include:

    • Task decomposition must be verifiable. Each subtask needs clear inputs, outputs, and success criteria. This prevents free-form model behavior from making results irreproducible.
    • Tool calls should be sandboxed. Computation runs in an isolated environment with limited resources and network access. The system records commands, parameters, and exit statuses.
    • Intermediate results must be persisted. Marker gene results, filtering reasons, and evaluation explanations should be saved to support tracing and incremental recomputation.
    • Failures must be recoverable. Retry and fallback strategies for timeouts, tool errors, and missing data keep one failure from halting a batch job.
    • Reports must be built for review. Each report should give conclusions along with the evidence chain, risk items, and suggestions for human review.

    4. High Throughput Requires More Than Parallelism

    As the candidate pool grows from dozens to tens of thousands, the bottleneck shifts from “can the model do the task” to “can the platform finish the whole job reliably.” Key engineering focus areas include:

    1. Data standardization and version management: Unify molecular representations, field names, and missing-value strategies. Tag datasets, tool images, and model versions so that the same task can be replayed.
    2. Caching and incremental computation: Cache repeated molecular features, tool results, and model explanations, keyed by content hash, to reduce duplicate computation costs.
    3. Idempotency and deduplication: Retries in batch jobs must not create duplicate records or duplicate side effects. Each task needs a unique identifier and a state machine.
    4. Lineage and auditing: Record the full path from raw input to final report. This includes who initiated the run, when it ran, which versions were used, and what humans changed manually.
    5. Cost and quota control: Set concurrency limits, priority queues, and budget alerts for expensive computation so batch jobs do not starve interactive tasks.
    6. Observability: Track throughput, failure rate, queue time, and per-task cost through log services, monitoring alerts, and metric dashboards.

    On general-purpose cloud platforms such as Baidu AI Cloud, teams can combine container platforms, object storage, message queues, log services, monitoring and alerting, and key management services to build the foundation. The goal is to decouple the orchestration layer from the infrastructure. Compute tasks scale elastically, data and metadata are managed separately, and sensitive information is isolated through key management.

    5. Model Evaluation: Scientific Reasoning Needs Dedicated Calibration

    Research tasks place higher demands on models than general text generation. A model must understand domain concepts, keep values and units consistent, distinguish correlation from causation, and ask for help when it is uncertain. When evaluating a research agent, do not judge only whether the final answer looks plausible. Focus on these measures:

    • Task success rate: End-to-end completion rate and manual correction rate on a fixed dataset and toolset.
    • Evidence consistency: Whether conclusions are supported by intermediate results and whether the output contradicts itself.
    • Calibration: Whether the model reports low confidence when evidence is insufficient, instead of inventing justifications.
    • Reproducibility: Whether identical inputs produce stable results on the same version.
    • Expert review pass rate: How often domain experts accept the report’s logic, risk items, and review suggestions.

    In practice, build a golden task set and a failure case library, and run regression tests against them continuously. For high-risk judgments, require dual review or rule-based fallbacks. Require model explanations to cite specific intermediate artifacts rather than make broad claims.

    6. Governance and Rollout: Human-in-the-Loop as the Long-Term Model

    AI4S platforms must keep humans in the loop. Agents handle high-throughput initial screening, repeated computation, report drafting, and anomaly summaries. Experts handle hypothesis selection, risk trade-offs, experimental design, and final decisions. Governance should include data classification, least-privilege access, operation auditing, logging of model outputs, and masking of sensitive data.

    Rollout can happen in three phases:

    • Phase 1: Start with single, highly repetitive tasks such as marker gene computation, rule-based filtering, and report generation. Verify reproducibility and benefit.
    • Phase 2: Chain single tasks into pipelines. Add versioning, caching, auditing, and a human review queue.
    • Phase 3: Extend to multiple projects and teams. Establish unified task templates, evaluation benchmarks, and cost governance.

    In short, which of thousands of molecules survives to the end is not decided by the agent’s ranking alone. It depends on the completeness of the evidence chain, experimental validation results, and team decisions. The real value of AI4S research agents is making evidence production faster, more consistent, and easier to audit. That lets limited experimental resources go to the candidates most worth testing.