AI for Science with Large Language Models: Deploying Research Agents

    Research agents are bringing AI for Science beyond model benchmarks and into practical workflows. Using single-cell transcriptomics as an example, this article explains how large language models can orchestrate domain tools, generate code, and summarize results, while outlining the infrastructure, reproducibility requirements, evaluation criteria, and scientific limits of deployment.

    1. AI for Science Is Moving from Papers to Platforms

    Over the past two years, discussions of AI for Science (AI4S) have largely focused on model architecture innovations and research benchmarks. More recently, AI4S has begun appearing as a platform capability in the public offerings of cloud and model service providers, accompanied by reproducible industry use cases.

    This shift matters because the main barrier in scientific research is not the algorithm alone. It is the engineering required to connect algorithms to real data, computing resources, and experimental workflows.

    Three questions help distinguish a deployed AI4S solution from a research demonstration:

    • Does it support the data formats of a specific scientific discipline?
    • Does it expose domain tools as capabilities the model can actually invoke?
    • Does it report end-to-end execution time and concrete outputs, rather than accuracy alone?

    2. Why Scientific Workflows Need LLMs and Agents

    The difficulty in scientific computing is often less about insufficient compute than about excessive “glue work”:

    • Fragmented knowledge: Methodology, parameter choices, and annotation rules are scattered across papers and code repositories, making onboarding slow.
    • Long toolchains: A complete analysis can involve more than a dozen steps, each with its own version and parameter dependencies.
    • Weak results communication: Numerical outputs and plots do not readily translate into conclusions suitable for scientific review.
    • Expensive trial and error: Poor parameter choices can invalidate an entire computation that took hours to complete.

    The appropriate role for a large language model is not to replace statistical methods. It is to act as a workflow orchestrator, code generator, and results interpreter.

    Domain algorithms remain the responsibility of deterministic tools. The model interprets the research intent, generates and repairs code, connects workflow stages, and produces structured reports. This division of responsibilities is currently the most practical engineering approach.

    3. A Deployment Example: Single-Cell Transcriptomics

    Single-cell gene expression analysis is a common AI4S use case because it combines manageable data volumes, standardized workflows, and highly visual results.

    An end-to-end workflow driven by a research agent typically includes the following stages:

    1. Data ingestion and validation: Load expression matrices and cell metadata, then check dimensional consistency, missing values, and batch information.
    2. Quality control and filtering: Remove low-quality cells and empty droplets using thresholds such as mitochondrial gene fraction and the number of detected genes.
    3. Normalization and dimensionality reduction: Normalize the data, select highly variable genes, perform principal component analysis, construct a neighborhood graph, and cluster cells.
    4. Cell type annotation: Use known marker genes and reference datasets to propose cell types and indicate confidence.
    5. Differential expression and candidate screening: Run differential expression tests within the target cell population and return candidate genes with their statistical significance.
    6. Visualization and reporting: Generate developmental trajectory plots, cluster plots, and heatmaps, then draft methods and findings summaries.

    The following pseudocode illustrates the orchestration logic:

    1. # Research agent skeleton: the model generates or repairs parameters;
    2. # deterministic tools perform the computation.
    3. plan = agent.plan(task="Single-cell developmental atlas and candidate gene screening",
    4. dataset=dataset_ref, constraints=compute_budget)
    5. for step in plan.steps: # Model-planned steps support retry
    6. result = tool_registry.run(step.tool, **step.params)
    7. if not result.valid:
    8. step.params = agent.repair(step, result.error) # Repair based on the error
    9. result = tool_registry.run(step.tool, **step.params)
    10. artifacts.append(result)
    11. report = agent.summarize(artifacts, template="methods+findings")

    The key distinction is that the model produces parameters and a sequence of tool calls, not authoritative scientific conclusions. Tools generate all numerical results, preserving a basis for reproducibility. The model then summarizes those results for review.

    4. Engineering Requirements

    • Data governance: Standardize metadata and version management. Store raw data separately from intermediate artifacts. Object storage combined with manifest files is a useful approach for managing large matrices.
    • Compute scheduling: Single-cell workflows include both I/O-intensive and memory-intensive stages. Containerization and queue-based scheduling make elastic scaling and rerunning failed tasks easier.
    • Reproducibility: Fix random seeds, pin tool versions, and record complete parameters and container image digests. These are essential requirements in scientific workflows.
    • Observability: Use logging, monitoring, and alerts to track task duration, failure rates, and resource utilization. This helps distinguish data problems from parameter problems.
    • Access control and compliance: Data derived from human participants requires de-identification and least-privilege access. Model calls should avoid exposing raw data; de-identifying data before inference is one possible approach.

    At the general infrastructure level, Baidu AI Cloud lists categories such as object storage, container platforms, message queues, logging, and monitoring and alerts. These categories can serve as references when considering the underlying architecture. Specific service choices still require assessment against data scale and compliance needs.

    5. A Checklist for Evaluating AI4S Solutions

    When evaluating an AI4S solution, check the following:

    1. Are public end-to-end examples available, including data scale, execution time, and concrete outputs?
    2. Are domain tools genuinely integrated, or does the model merely describe how they might be used?
    3. Are failure handling and retry mechanisms clearly defined, and can long-running jobs resume from checkpoints?
    4. Do outputs include statistics and confidence information rather than a single conclusion?
    5. Does the solution support private or dedicated-network deployment to keep data within the required environment?
    6. Are parameters and versions recorded so that peers can review and reproduce the analysis?

    6. Risks and Boundaries

    Three boundaries must remain clear.

    First, a model does not establish biological causality. Candidate genes should be treated as inputs to experimental validation, not as confirmed causal findings.

    Second, generated explanations can contain hallucinations. Domain experts must review the conclusions.

    Third, performance measurements depend heavily on the dataset and hardware configuration. Results from one setting cannot be directly extrapolated to another.

    7. Conclusion

    The competitive focus of AI4S is shifting from model benchmarks to the integration of data, tools, compute, and workflows.

    For research teams, the practical path is to standardize data and processes first, then use agents for orchestration and interpretation. This leaves researchers more time for the work that requires scientific judgment: developing hypotheses and validating them through experiments.