AI for Science: Engineering Paths for Foundation Models
Foundation models are shifting AI for Science from research informatization toward agentic research workflows. This article examines why code agents are a practical prerequisite, why integrating with existing scientific platforms is more realistic than rebuilding the entire research loop, and what a single-cell expression analysis demo does—and does not—show. It then outlines an auditable engineering architecture for research agents, covering task orchestration, controlled tool invocation, sandboxed execution, reproducibility and audit logging, and layered evaluation. It also compares research workbenches, domain-specific models, and closed-loop R&D approaches, and concludes with practical guidance on task and metric tiering, human-in-the-loop design, data governance, and a phased rollout.
1. Why AI for Science Has Become a New Frontier for Foundation Models
AI for Science is not a new concept, but the maturity of foundation models is moving it from “research informatization” toward “agentic research.” Early research software mainly addressed tool usability—data analysis, literature search, experiment records, and compute scheduling. Foundation models change the picture because they can understand research questions described in natural language, generate analysis code, invoke specialized tools, and correct execution paths through multi-turn feedback. For foundation model teams, this means the target of capability output expands from ordinary developers to researchers, and the task form shifts from single-turn question answering to long-horizon, verifiable, and auditable research workflows.
From a capability-transfer perspective, code agents are a prerequisite for foundation models entering scientific scenarios. Research tasks have high domain barriers, but their execution chains resemble complex software engineering: decomposing goals, selecting tools, writing scripts, handling exceptions, validating intermediate results, recording the process, and producing reports. Code agents have already demonstrated in the loop of “understand the problem—generate code—execute and validate—fix errors” that foundation models can gain significant improvements through tool calls and environment feedback. When this paradigm is transferred to research platforms, the model does not need to replace scientists in making discoveries or decisions at the outset. Instead, it can first handle auxiliary parts of the analysis workflow—understanding research questions, writing data-processing code, calling specialized analysis tools, and aggregating candidate results. This path carries lower risk and is easier to integrate with existing research platforms.
2. Entry Approach: Integrate with Existing Research Platforms Rather Than Rebuild the Research Loop
There are generally two paths for foundation models to enter AI for Science. One is to build an end-to-end research platform that directly covers data, tools, experiments, and decisions. The other is to partner with research platforms that already have specialized tools and industry customers, integrating general models into existing workflows. The first offers greater upside but requires long-term accumulation of domain data, specialized toolchains, compliance capabilities, and scientist trust. The second is more pragmatic: it can validate model capabilities within a smaller scope and leverage the platform’s existing specialized tools and compute environment for deployment.
The core of the platform-integration model is not “replacing the platform” but “enhancing the platform.” Research platforms typically already integrate specialized tools such as cell type identification, gene expression analysis, chemical information extraction, and molecular property prediction, and provide corresponding compute environments. After a general model is integrated, it can take on part of the analysis workflow at the orchestration layer: translating research questions into executable steps, generating code that calls specialized tools, reading intermediate results and deciding whether further analysis is needed, and finally producing a structured report. The model’s value lies in lowering the barrier to tool use, reducing repetitive script writing, and improving workflow automation—not in producing domain knowledge out of thin air.
This model also has clear boundaries. First, model outputs must pass through specialized tools and human review, especially in biomedical, drug, and materials research, where speculative results cannot be treated as definitive conclusions. Second, the platform needs to expose controlled tool interfaces and a sandbox environment to the model, preventing direct access to sensitive data or high-risk operations. Third, evaluation cannot rely on a single demonstration; stability must be measured across multiple tasks, data distributions, and tool combinations. For foundation model teams just entering this field, starting with auxiliary steps is a reasonable way to accumulate domain feedback and build trust.
3. An Abstract Case: What a Single-Cell Expression Analysis Demo Shows
In a public demonstration, a research platform attempted to have a model handle part of a single-cell gene expression analysis workflow. The case involved 3,696 mouse pancreatic cells. The research goal was to use data collected at a single developmental time point to infer possible cell developmental paths and screen related candidate genes. The system generated a speculative cell developmental map in about 90 minutes and screened 100 candidate genes; the company estimated that completing a similar task manually usually takes 4–8 hours.
From an engineering perspective, this workflow includes at least the following steps: understanding the research question and data context; reading the expression matrix and cell annotations; performing quality control, normalization, and dimensionality reduction; constructing cell relationships or trajectory inference; screening candidate genes; and generating charts and explanatory reports. If the model can generate executable code, call platform tools, handle runtime errors, and aggregate results across these steps, it demonstrates a certain level of long-horizon task orchestration. The comparison between 90 minutes and 4–8 hours also reflects the potential of automation to compress repetitive work.
However, this data must be interpreted cautiously. First, it comes from a single case disclosed by a company, with a specific sample, task type, and toolchain; it cannot be directly generalized to all research tasks. Second, the speculative developmental map and candidate genes require follow-up experiments or independent data validation. Efficiency gains do not equal improved reliability of scientific conclusions. Third, manual time estimates are affected by researcher experience, tool proficiency, and data quality, and vary widely across teams. A more reasonable conclusion is that the platform-integration model has efficiency potential in specific auxiliary analysis tasks, but systematic evaluation is needed to judge its generalization ability across different research scenarios.
4. Engineering Architecture: Making Research Agents Runnable, Reproducible, and Auditable
To enable foundation models to participate stably in research workflows, engineering architecture is more critical than single-point model capability. A deployable research agent system typically includes the following layers:
Task orchestration layer: Decompose natural-language research questions into steps, plan the order of tool calls, and set stop conditions and human confirmation points. The orchestration layer needs to limit uncontrolled execution caused by excessive model freedom—for example, requiring human review at key analysis nodes.
Tool registry and invocation layer: Wrap the platform’s existing specialized tools as controlled capabilities, specifying inputs and outputs, versions, and applicable scope. The model can only execute operations through registered tools and cannot bypass the platform to access underlying resources. Tool descriptions should include parameter constraints, failure codes, and examples to reduce the probability of misuse.
Sandbox and compute environment: Provide an isolated environment for code execution, restricting network access, data export, and resource usage. For sensitive research data, use least privilege, data de-identification, and access auditing. At the infrastructure layer, general-purpose container platforms, object storage, logging services, and monitoring and alerting can support sandboxing, result retention, and runtime observability.
Reproducibility and audit layer: Record model plans, tool call parameters, code versions, data references, runtime logs, and human modifications. Research scenarios have high reproducibility requirements; an agent cannot provide only results—it must also provide a traceable process. Audit logs are used both for quality improvement and for compliance checks.
Evaluation and feedback layer: Establish task sets, benchmark metrics, and human review mechanisms. Metrics should not focus only on time; they should also include tool call success rate, code executability rate, result reproducibility rate, human correction ratio, and domain expert scores.
An illustrative pseudocode example is as follows:
def run_research_task(question, data_ref, human_checkpoints):plan = model.plan(question)tools = registry.search(plan)workspace = sandbox.create(data_ref)for step in plan.steps:action = model.decide(step, tools, workspace)result = executor.run(action, workspace)audit.log(step, action, result)if step in human_checkpoints:require_human_review(result)return report.generate(workspace, audit)
This pseudocode emphasizes three principles: the model only performs planning and decision-making, while execution is handled by a controlled executor; human review is introduced at critical nodes; and the entire process is logged. Compared with letting the model “execute freely,” this architecture is better suited to research scenarios.
5. Comparison with International Approaches: Workbenches, Domain Models, and Closed-Loop R&D
International foundation model teams are not pursuing identical paths in AI for Science. One type is a research workbench for life sciences and other fields, embedding model capabilities into data management, literature understanding, experiment design, and analysis tools. Another type trains or fine-tunes domain-specific models to pursue higher accuracy on specific scientific tasks. A third type has begun participating in closed-loop drug R&D projects, forming longer chains from target discovery and molecule generation to experimental validation. The common point across these paths is that model capabilities must be combined with domain tools, data governance, and experimental validation; general conversational ability alone can hardly create stable scientific value.
By comparison, Chinese foundation-model teams entered this field later, and the path of “general model + existing research platform” is more realistic. Its advantages are fast startup, a mature toolchain, and existing trust with domain customers. Its challenges are that model teams have limited domain knowledge, and interface standards, evaluation systems, and responsibility boundaries between platforms and models need to be built jointly. To go further, teams need to move gradually from auxiliary analysis to verifiable research agents: first form stable returns in low-risk steps such as literature processing, data cleaning, and analysis script generation; then expand to experiment design suggestions, candidate screening, and cross-modal analysis; and only then may they approach closed-loop R&D.
6. Implementation Recommendations: Layered Evaluation, Human-Machine Collaboration, and a Phased Roadmap
First, tier tasks. Divide research tasks into low-risk auxiliary tasks, medium-risk analysis tasks, and high-risk decision tasks. Low-risk tasks can be automated first; medium-risk tasks can use “model generation + expert review”; high-risk tasks should remain human-led.
Second, tier metrics. Efficiency metrics include time and number of manual operations. Quality metrics include result reproducibility rate, tool call success rate, and expert scores. Safety metrics include the number of unauthorized data access attempts, sensitive information leakage risk, and audit completeness. Single-case time comparisons are only preliminary signals, not product conclusions.
Third, design for human-machine collaboration. A research agent should be positioned as an “auditable analysis assistant,” not an “autonomous scientist.” The system needs to support human interruption, plan modification, tool replacement, and result rollback so that scientists retain control.
Fourth, govern data and compliance. Research data often involves privacy, ethics, and intellectual property. Platforms need to clarify data use boundaries, model input and output retention policies, and norms for third-party tool calls. For cross-institution collaboration, permission isolation and audit trails should also be supported.
Fifth, take a phased route. Start with literature understanding, data preprocessing, analysis script generation, and result summarization, and accumulate domain task sets and failure cases. Then gradually expand to multi-tool orchestration and cross-stage analysis. Finally, explore higher-value research loops under expert supervision. For foundation model teams, AI for Science is not a one-off release but a combined engineering effort involving long-term engineering capability, domain feedback, and trust building.
