Deploying Large Models in AI for Science: Challenges and Engineering Paths

    This article explores the application of large language models in scientific research (AI for Science). It analyzes key challenges such as domain data scarcity, accuracy verification, long-task orchestration, tool integration, and compliance. The article proposes a six-layer controllable architecture and uses single-cell RNA sequencing as a practical example to illustrate how to decompose complex scientific workflows. Additionally, it highlights specific hurdles in drug and materials discovery and provides a phased implementation strategy for teams entering this field.

    I. Background: Why Scientific Research Needs New Capabilities of Large Models

    Scientific research has long relied on expert experience, specialized software, and extensive repetitive data processing. In fields like life sciences, materials science, and chemistry, experimental cycles are long and costly, and the data generated from a single experiment is often multi-dimensional and unstructured. Researchers frequently switch between literature review, data cleaning, statistical analysis, result interpretation, and report writing.

    Large language models (LLMs) have demonstrated strong capabilities in natural language understanding, code generation, and information integration, positioning them to handle parts of the research workflow. However, a significant gap remains between general-purpose models and the specialized requirements of scientific work. A model might read a paper abstract easily but fail to correctly identify batch effects in sequencing data; it can write an analysis script but may not understand the control relationships in an experimental design. Therefore, the core issue in AI for Science is not whether “the model can speak,” but whether “every step of the model’s output can be verified, reproduced, and accepted by experts.”

    II. Key Challenges in This Direction

    1. Scarcity and Heterogeneity of Domain Data

    Scientific data is typically scattered across different instruments, laboratories, and storage systems from various years. Formats include tables, matrices, images, spectra, and structured files. The same metric might have different units and naming conventions across experiments. High-quality annotated data is even scarcer, as annotation requires personnel with specialized backgrounds, making it costly and time-consuming. Additionally, some data involves patient privacy, unpublished findings, or trade secrets, strictly limiting its usage scope. This means teams cannot easily collect training corpora on a massive scale as they do with general internet text.

    2. Accuracy and Verifiability of Professional Knowledge

    Scientific scenarios have a very low tolerance for errors. If a model provides a seemingly plausible but factually incorrect mechanistic explanation, it can mislead subsequent experimental directions, resulting in wasted time and resources. This issue, commonly known as hallucination, is particularly insidious in specialized domains because erroneous conclusions are often articulated fluently.

    Mitigation strategies include requiring the model to attach sources to key claims, differentiating between statements reported in literature, inferred by the model, and computed results, and explicitly marking uncertainty in outputs. Prompt constraints alone are insufficient; a fact-checking mechanism must be implemented at the system level.

    3. Orchestration and State Management for Long-Running Tasks

    Most scientific tasks are not single-turn Q&As but pipelines comprising multiple interdependent steps. The parameter selection in an early step affects the results of later steps. If an intermediate step fails, the system must decide whether to retry, roll back, or request human intervention. Without state tracking, researchers cannot trace under what parameters a specific conclusion was derived.

    This requires the agent system to have clear planning, execution, checking, and replanning mechanisms, fully saving the inputs, outputs, and parameters of each step.

    4. Coupling of Tool Invocation and Compute Environments

    LLMs are not inherently good at precise numerical calculations. Scientific analysis usually requires calling statistical tools, databases, simulators, and specialized analysis programs. The security of tool invocation is equally important: the model should not have read/write permissions beyond the task scope, and the compute environment should be isolated from production data.

    From an engineering perspective, a division of labor can be adopted: “the model is responsible for planning and explaining, while deterministic tools handle the computation.” Numerical results are generated by tools with their versions and parameters recorded, and the model only organizes and describes these results.

    5. Lack of Evaluation Systems

    General benchmarks rarely reflect scientific quality. A fluent answer does not guarantee a correct analytical method, and a conclusion valid on one dataset might not be reproducible on another. Evaluation in scientific scenarios requires domain expert involvement and should focus on three metrics: factual accuracy, step reproducibility, and citation correctness.

    6. Compliance and Security Governance

    Knowledge in fields like biology and chemistry carries dual-use risks. System design must clearly define which requests should be rejected and which should be routed for manual review, while retaining comprehensive access logs for audit purposes. Compliance mechanisms should be integrated at the initial design stage rather than added just before launch.

    III. Layered Architecture: Breaking Down Scientific Workflows into Controllable Modules

    To address the above challenges, a deployable system can typically be divided into six layers:

    • Data Layer: Handles raw data ingestion, format conversion, metadata recording, and version management.
    • Knowledge Layer: Maintains domain glossaries, literature indexes, and experimental protocols to provide retrievable background information for the model.
    • Reasoning Layer: The LLM handles task understanding, step planning, and result interpretation.
    • Tool Layer: Encapsulates deterministic capabilities such as statistical analysis, data querying, plotting, and simulation, with strict permission boundaries.
    • Verification Layer: Performs rule checks and statistical tests on every output step; results that fail enter the replanning process.
    • Human-Machine Collaboration Layer: Submits critical nodes to researchers for confirmation and records the outcomes.

    Below is a schematic execution logic illustrating how the verification step is embedded into the workflow. The code represents the concept and does not correspond to any specific API:

    1. def run_analysis(task, dataset, max_steps=20):
    2. plan = planner.make_plan(task, dataset.describe())
    3. state = {"history": [], "artifacts": {}}
    4. for step in plan.steps[:max_steps]:
    5. result = tool_registry.invoke(step.tool, step.args, state)
    6. check = verifier.check(step, result)
    7. if not check.passed:
    8. # Record the failure reason and pass it to the planner to adjust subsequent steps
    9. state = planner.replan(state, step, check.reason)
    10. continue
    11. state["history"].append({"step": step, "result": result})
    12. state["artifacts"][step.name] = result.output
    13. return reporter.summarize(state, require_citations=True)

    There are three design highlights in this logic. First, every step is verified, preventing errors from silently propagating to subsequent stages. Second, all intermediate results are written to history, allowing conclusions to be traced step by step. Third, report generation requires citations, forcing the output to be anchored to verifiable evidence.

    IV. Workflow Decomposition: A Single-Cell Data Analysis Example

    Single-cell RNA sequencing is a typical application scenario in AI for Science. A single experiment may involve thousands to tens of thousands of cells, each containing expression levels for tens of thousands of genes. The standard analysis workflow is roughly as follows:

    1. Quality Control: Filter out low-quality cells and abnormal doublets, checking gene counts and mitochondrial gene percentages per cell.
    2. Normalization and Feature Selection: Eliminate sequencing depth differences and select highly variable genes for downstream analysis.
    3. Dimensionality Reduction and Visualization: Map high-dimensional data to a lower-dimensional space to observe the distribution structure of cell populations.
    4. Clustering and Cell Type Annotation: Group similar cells into clusters and determine their types based on known marker genes.
    5. Trajectory Inference: Infer the sequential order of development or differentiation based on continuous changes in cell states.
    6. Differential Expression Analysis: Compare gene expression differences between populations or time points.
    7. Candidate Gene Screening: Provide a list of genes for further validation based on differential significance, expression patterns, and literature evidence.

    In this workflow, the LLM can handle tasks such as suggesting quality control thresholds based on data characteristics, explaining the biological significance of clustering results, helping researchers retrieve relevant literature, and generating readable analysis reports. However, the final determination of thresholds, calculation of statistical tests, and execution of clustering algorithms should be performed by reproducible tools, with all parameters recorded.

    Candidate gene ranking requires particular caution. Rankings provided by the model can serve as a starting point for hypothesis generation, but they must undergo statistical significance testing and validation on independent datasets before entering the wet lab phase. The system should be required to output the evidence source for each candidate gene, including statistical metrics, expression profile locations, and related literature.

    V. Special Challenges in Drug and Materials Discovery

    Drug discovery and materials discovery are also key directions in AI for Science, but their challenges differ in focus.

    Drug discovery typically involves target identification, molecular design, activity prediction, toxicity assessment, and preclinical validation. Data sources are scattered, experimental feedback cycles are long, and there are often significant deviations between model predictions and actual results. Therefore, computational predictions must form a closed loop with experimental validation, with the results of each design iteration flowing back into the model’s evaluation set.

    The challenge in materials discovery lies in the complex and data-sparse relationship between structure and performance. Many key properties of materials are only measured under specific conditions, and testing standards vary across laboratories. Before modeling, teams must first organize the testing conditions of the data and clarify which parameters are comparable.

    Both directions require teams to translate expert knowledge into verifiable rules. For example, specifying structural constraints for a class of compounds or defining the valid testing range for a performance metric. These rules not only constrain the model’s output but also help new team members quickly understand domain consensus.

    VI. Phased Implementation Recommendations

    For teams planning to enter this field, the following sequence can be adopted:

    Phase 1: Select well-bounded tasks. Prioritize low-risk scenarios such as literature review assistance, structuring experimental records, and generating analysis code drafts. The outputs of these tasks are easy to verify, and the impact of errors is limited.

    Phase 2: Build data and knowledge foundations. Standardize data formats and metadata specifications, establish glossaries and experimental protocol documents, and store raw data separately from analysis results. Object storage is suitable for preserving large volumes of raw files, while version control tracks changes in data and analysis code.

    Phase 3: Construct domain evaluation sets. Invite domain experts to annotate a batch of typical tasks and standard answers, covering both common and edge cases. Evaluation metrics should include at least factual accuracy, step reproducibility, and citation correctness, and the evaluation set should be regularly updated with new data.

    Phase 4: Improve monitoring and auditing. Use logging services to record the inputs, tool invocations, parameter versions, and outputs of each inference. Monitoring alerts should cover abnormal tool invocation frequencies, verification failure rates, and manual rejection rates to detect system degradation promptly.

    Phase 5: Solidify human-machine collaboration workflows. Clearly define which conclusions can be output automatically and which require researcher confirmation. Confirmation records for critical conclusions should be archived alongside the analysis results.

    VII. Issues Requiring Continuous Attention

    The application of large models in scientific research remains in its early stages. Advancements in model capabilities will expand the scope of automation, but they will not change the fundamental scientific requirement for verifiability. Teams should focus their planning on data governance, verification mechanisms, and evaluation systems rather than solely pursuing one-off demonstration effects.

    For researchers, understanding the model’s capability boundaries is equally important. Models excel at organizing information and generating analytical frameworks, but they cannot replace experimental design judgment or the final approval of scientific conclusions. Only by integrating models into a rigorous verification process can they consistently improve research efficiency.