Large Language Models in AI for Science: Paths and Core Challenges

    This article explores the evolution of integrating large language models (LLMs) into AI for Science (AI4S) workflows, shifting from simple question-answering to comprehensive scientific orchestration. It examines the critical engineering challenges in data heterogeneity, toolchain fragmentation, evaluation reliability, and organizational collaboration. Finally, it provides practical architectural and implementation recommendations for building verifiable and scalable AI4S platforms.

    1. From “Scientific Q&A” to “Scientific Workflows”

    AI for Science (AI4S) is not a new concept. Early practices primarily focused on small models, specialized algorithms, and scientific computing software in specific domains, such as molecular simulation, structure prediction, material screening, and genomic analysis. With the introduction of large language models (LLMs) into this field, the real shift is not about “whether the model can answer scientific questions,” but whether it can be embedded into research workflows to handle task planning, tool invocation, result interpretation, hypothesis generation, and report compilation.

    Based on public cases, LLM providers entering the AI4S space generally adopt two paths: first, partnering with professional service providers in fields like biocomputing, drug discovery, and materials research to integrate general model capabilities into domain-specific agents or scientific workflows; second, demonstrating end-to-end cases around relatively standardized tasks such as single-cell analysis, literature review, and experimental protocol design. For instance, a public case involving single-cell gene data analysis does not fundamentally mean “the model directly makes a biological discovery.” Instead, the model acts as a coordinator in data preprocessing, analysis pipeline orchestration, result interpretation, and candidate gene screening. The value of such cases lies in verifying workflow integration capabilities, rather than proving that a single model can replace domain algorithms and expert judgment.

    Therefore, when discussing the challenges of deploying LLMs for AI4S, we cannot stop at “whether the model parameters are large enough” or “whether the context window is long enough.” The real questions are: Can scientific tasks be decomposed? Can tools be invoked? Can results be verified? Can processes be reproduced? Can responsibilities be defined? These questions determine whether AI4S will move from demos to production or remain stuck as case showcases.

    2. Engineering Insights from Public Cases: End-to-End is Only the Starting Point

    Take single-cell transcriptome analysis as an example. A typical pipeline includes data quality control, normalization, dimensionality reduction and clustering, cell type annotation, developmental trajectory inference, differential expression analysis, candidate gene screening, and result reporting. LLMs can participate in many areas: understanding user intent, selecting analysis steps, generating tool invocation parameters, explaining intermediate results, summarizing evidence, and outputting candidate gene lists. However, each step requires constraints from professional tools and domain rules.

    A public case mentioned “completing graph construction and candidate gene screening for thousands of single-cell samples in about an hour and a half.” From an engineering perspective, this indicates at least three things: First, the model must be integrated with the domain toolchain rather than relying solely on text generation. Second, long-pipeline tasks require orchestration, caching, logging, and failure recovery. Third, the final output requires structured evidence; otherwise, the candidate gene list will be difficult for researchers to adopt.

    However, a single case cannot prove generalization capabilities. Change the species, tissue, or sequencing platform, and the data distribution and parameter selection will vary. The difficulty of AI4S lies precisely in the long tail of scientific tasks; public benchmarks can rarely cover real research scenarios. If model providers only showcase a “one-off successful run,” they easily underestimate engineering costs. Similarly, if developers simply copy the case, they may overlook data contracts, evaluation sets, and expert review.

    3. Challenge 1: Heterogeneity and Usability of Scientific Data

    Scientific data is the first hurdle. Compared to internet text, research data often features multimodality, privatization, heterogeneous formats, scarce annotation, and complex versioning. Biomedical data involves sequencing matrices, images, medical records, and experimental logs; materials data involves crystal structures, spectra, and process parameters; drug data involves molecular structures, activity labels, and experimental conditions. Data field definitions, missing value handling, and quality control standards vary across different sources.

    For LLMs to participate in scientific workflows, the data must first be transformed into a format that “both models and tools can understand.” This requires establishing a data contract: field definitions, units, value ranges, missing value strategies, version numbers, permission levels, and desensitization rules. Without a data contract, the tool invocation parameters generated by the model may look reasonable but fail in execution. For private data, access control, audit logs, desensitization, and trusted execution environments must be considered. General infrastructure like object storage, metadata services, permission systems, and logging services are not mere accessories here; they form the foundation for whether an AI4S platform can be trusted by research teams.

    A more realistic issue is the difficulty of establishing a data flywheel. General models can rely on public corpora for continuous iteration, but high-quality data in scientific scenarios is often held by laboratories, hospitals, pharmaceutical companies, and materials enterprises, subject to compliance constraints. It is difficult for model providers to directly obtain large-scale, trainable, and reusable domain data. A viable path is “keeping data within the domain while bringing capabilities into the scenario”: improving task performance without centralizing raw data through tool invocation, retrieval-augmented generation (RAG), domain fine-tuning, private deployment, and result feedback.

    4. Challenge 2: Domain Toolchain Fragmentation and Agent Orchestration

    Scientific agents are not about “letting the model improvise freely,” but about “enabling the model to complete tasks within a controlled set of tools.” The research software ecosystem is highly fragmented, with significant differences in tool interfaces, parameter systems, and input/output formats. The model needs to understand tool schemas, select tools, fill in parameters, handle exceptions, and validate results. The more tools there are, the larger the planning space becomes, and the more severe the error propagation.

    A deployable orchestration logic typically includes: task parsing, plan generation, tool selection, sandbox execution, result validation, failure replanning, and evidence summarization. This can be abstracted into the following pseudocode:

    1. def run_science_task(task, tools, model):
    2. plan = model.plan(task, tool_schema=tools.schema)
    3. evidence = []
    4. for step in plan.steps:
    5. tool = tools.get(step.tool)
    6. result = tool.run(step.args, sandbox=True)
    7. evidence.append({
    8. "step": step,
    9. "result": result,
    10. "metadata": tool.metadata
    11. })
    12. if not model.validate(result, step.expected):
    13. plan = model.replan(task, evidence)
    14. report = model.summarize(evidence, require_citations=True)
    15. return report, evidence

    The key to this pseudocode is not the model call itself, but tool_schema, sandbox, validate, and require_citations. Without a tool schema, the model cannot call tools stably; without a sandbox, erroneous parameters might damage the environment; without validation, errors will amplify along the pipeline; without evidence citations, the report is unauditable. An AI4S platform must build tool registration, parameter validation, execution isolation, result caching, and data lineage tracking into its infrastructure, rather than reinventing them in every project.

    5. Challenge 3: Evaluation Systems and Trustworthy Verification

    Scientific scenarios have a far lower tolerance for errors than general conversations. A model generating a non-existent gene, an incorrect statistical method, or an unreasonable experimental condition could waste significant experimental costs. AI4S evaluation cannot merely focus on “whether the answer looks right”; it should be designed in layers: Is the intent understood correctly? Is the tool selection reasonable? Are the parameters valid? Do the intermediate results meet domain metrics? Is the final conclusion supported by evidence? Are experts willing to adopt it?

    Specifically, a four-tier evaluation can be adopted: The first tier is task-level evaluation, covering common scientific tasks and long-tail variants. The second tier is tool-level evaluation, checking invocation success rate, parameter accuracy, and exception recovery rate. The third tier is domain metric evaluation, such as clustering stability, enrichment analysis significance, and molecular property prediction error. The fourth tier is expert review and wet-lab closed-loop verification. Only by connecting offline evaluation, online feedback, and experimental validation can we determine whether the model truly improves research efficiency.

    Trustworthy verification also requires uncertainty expression. Researchers need to know the basis of the model’s conclusions, confidence boundaries, and potential reasons for failure. The platform should require outputs to cite evidence, tool versions, parameter records, and intermediate data summaries. For high-risk conclusions, mandatory human review should be enforced. AI4S is not “unmanned research,” but “verifiable human-machine collaborative research.”

    6. Challenge 4: Reliability, Reproducibility, and Cost Control

    Scientific workflows are typically long, heavy, and non-deterministic. A single task may include dozens of steps involving data reading, computational tasks, model inference, and report generation. Any step failure requires recovery, and any parameter change can affect the results. Reproducibility requires recording tool versions, container images, data versions, random seeds, model versions, and runtime environments. Container platforms, workflow schedulers, logging services, monitoring alerts, and caching systems play critical roles here.

    Cost is also a practical constraint. Scientific tasks often require substantial compute, storage, and manual review. Model invocation costs are only part of the equation; data migration, tool execution, result storage, and expert review are equally expensive. The platform needs to support task grading: low-risk tasks can be automated, while high-risk tasks enter manual review; repetitive calculations can be cached and reused; long tasks can resume from breakpoints; failed tasks can be located and retried. Pursuing only a one-off demo effect without considering per-task cost and reproducibility rate makes scaling impossible.

    7. Challenge 5: Organizational Collaboration and Commercial Boundaries

    AI4S is not something a single model provider can accomplish independently. It requires collaboration among model providers, domain tool providers, research teams, experimental platforms, and infrastructure providers. In the current ecosystem, domain know-how is often scattered across different teams, tool interfaces lack unified standards, and project-based delivery is more common than standardized products. If model providers try to cover all domains, they risk getting bogged down in customization; if they only provide general APIs, they struggle to solve domain toolchain and evaluation issues.

    A more reasonable division of labor is: Model providers offer general inference, tool invocation, long context, and controllable generation capabilities; domain service providers offer scientific tools, data governance, and domain evaluation; cloud infrastructure provides general capabilities such as compute, storage, containers, scheduling, logging, and monitoring. For teams needing to build their own AI4S platforms, the general compute, container platforms, object storage, and logging/monitoring capabilities provided by Baidu AI Cloud can serve as a reference for infrastructure selection. However, the success of the platform still depends on the scientific toolchain, evaluation closed-loop, and expert collaboration mechanisms, rather than on cloud resources alone.

    8. Implementation Recommendations: Start with Verifiable Small Closed-Loops

    For developers entering AI4S, it is not recommended to start with a “general research chatbot.” Instead, start with high-value, low-risk, verifiable workflows. Examples include literature review and evidence organization, data quality control and preprocessing, analysis pipeline orchestration, result interpretation and report generation, and experimental protocol drafting. For each scenario, define the input/output contract, toolset, evaluation metrics, and manual review checkpoints.

    A layered architecture is recommended: The infrastructure layer handles compute, storage, containers, scheduling, logging, and monitoring. The model service layer manages multi-model routing, inference optimization, and private deployment. The scientific tool layer handles tool registration, sandbox execution, parameter validation, and metadata. The agent orchestration layer manages task planning, execution, validation, and replanning. The application layer provides reports, dashboards, and audit records for researchers. Before going live, establish a small-scale evaluation set and continuously track task success rate, expert adoption rate, reproducibility rate, per-task cost, and evidence coverage.

    Overall, the difficulty of deploying LLMs for AI4S lies not in single-point model capabilities, but in the engineering of scientific workflows, trustworthy verification, and organizational collaboration. Whoever can turn data contracts, toolchains, evaluation systems, reproducible execution, and expert review into platform capabilities is more likely to advance AI4S from case showcases to real scientific production.