Challenges of Building AI for Science with Large Language Models

    This article examines why AI for Science (AI4S) is a different kind of engineering problem for large language model teams. It outlines the typical evolution path from literature understanding to experiment orchestration, specialized model collaboration, and hypothesis generation, then analyzes four core challenges: making long and heterogeneous research inputs usable, ensuring reliable tool invocation and workflow orchestration, handling data governance and compliance, and building honest evaluation systems. It closes with a phased adoption plan and a practical conclusion: the real moat lies in data pipelines, tool ecosystems, evaluation loops, and compliance rather than model parameters alone.

    1. Why AI for Science Is a Different Kind of Engineering for LLMs

    Over the past year, several large language model teams in China have started to prioritize AI for Science (referred to as AI4S below). Based on public information, the typical deployment pattern is not “letting the model do research directly,” but embedding the model into the workflows of research platforms. For example, a scientific workspace platform has launched agents for biomedicine, with general-purpose LLM capabilities connected at the underlying layer. A drug and materials R&D platform starts from multimodal literature understanding, first solving the problem of researchers spending too much time reading papers, and then gradually moving toward generative design of molecules and materials.

    Abstracting these cases reveals a clear evolution path: literature and knowledge understanding → experiment/computation workflow orchestration → domain-specific model collaboration → result interpretation and hypothesis generation. This path means AI4S is not a single model capability upgrade, but a systems engineering reconstruction.

    The differences between research scenarios and general conversational scenarios are mainly reflected in four points:

    1. Stricter correctness standards. General scenarios can accept “roughly useful,” while research scenarios require reproducibility and traceability. A single wrong parameter name can cause an entire pipeline to fail.
    2. Longer and more heterogeneous context. A single task may simultaneously involve paper PDFs, supplementary materials, tables, sequence files, structure files, logs, and error stacks.
    3. Very heavy toolchains. The model must learn to invoke various tools such as computational chemistry, sequence analysis, statistical testing, and visualization, rather than relying on parametric memory to “recite answers.”
    4. Difficult evaluation. Open-ended research tasks lack a single correct answer, and traditional accuracy metrics fail.

    2. Challenge 1: Making Long-Context, Heterogeneous Data Usable

    Research inputs are often dozens of pages long, and charts carry key conclusions. A more robust engineering approach is not to expand the context window indefinitely, but to do layered retrieval + structured pre-extraction:

    1. # Example: layered parsing and retrieval of research documents
    2. def build_corpus(pdf_path):
    3. pages = parse_pages(pdf_path) # split by page, keep page numbers for traceability
    4. blocks = [extract_text_and_tables(p) for p in pages]
    5. index = build_index(blocks) # build separate indexes for text/tables
    6. return index
    7. def answer(query, index):
    8. hits = hybrid_retrieve(query, index, top_k=8) # hybrid recall of keywords + vectors
    9. context = pack_with_citation(hits) # attach page/table numbers for verification
    10. return generate(query, context)

    The key points are threefold: the chunking granularity must retain “traceable units” (page numbers, table numbers, figure numbers); tables and body text should be processed separately to avoid flattening structured information; and outputs must include citation locations so researchers can return to the original text with one click for verification.

    3. Challenge 2: Reliability of Tool Invocation and Workflow Orchestration

    An AI4S agent is essentially an “executor with a scientific computing toolbox.” The real difficulty is not getting the model to select the right tool, but getting it to self-correct after failure. It is recommended to use an explicit state machine rather than a free loop:

    1. Plan → Select Tool → Validate Inputs → Execute → Check Output → (Fail) Repair → Report

    Supporting engineering constraints include: schema validation for all tool inputs; computation processes and data artifacts written to object storage, with logs and metrics sent to logging services and monitoring/alerting systems; long-running tasks made asynchronous through message queues to avoid request timeouts; and container platforms responsible for environment固化 to ensure the same code produces consistent results across different people. Reproducibility is a hard acceptance requirement for research customers, and environment drift is often more fatal than model hallucination.

    4. Challenge 3: Data Governance and Compliance Boundaries

    Research data often involves unpublished results, preclinical data, and confidential materials from partners. A feasible strategy is: sensitive data does not leave the private environment, and inference is completed through private deployment or dedicated regions; uploaded content is classified and desensitized; and the entire chain is logged to form an audit loop of “input—tool—artifact.” This does not require any special capabilities; it relies on a combination of conventional data classification, access control, and audit logs.

    5. Challenge 4: Evaluation Systems and Honest Expression of Capability Boundaries

    From public discussions, even top international models still score poorly on high-difficulty scientific evaluations (such as multidisciplinary open Q&A and scientific terminal task benchmarks). Domestic models lag behind international SOTA on similar benchmarks, but are already in a leading position among domestic models. A joint benchmark evaluation in a theoretical computer science direction also shows that mathematical and reasoning boundaries remain a common bottleneck.

    Therefore, a more pragmatic approach is to build a domain-specific evaluation set: convert historical real projects into task cards, annotate expected artifacts and acceptance criteria, and replace a single accuracy metric with three indicators: “task completion rate + manual review pass rate + rework rounds.”

    1. task_card:
    2. goal: cluster single-cell data and output a candidate gene list
    3. inputs: [expression matrix, cell annotation]
    4. expected: [atlas plot, candidate list, method description]
    5. metrics: {completion: 0.9, review_pass: 0.8, rework_rounds: 1.2}

    6. Implementation Recommendations: Phased Investment

    • Phase 1 (0–3 months): literature understanding, experiment record Q&A, code and error explanation. Low risk, quick results.
    • Phase 2 (3–9 months): toolify analysis workflows, build agent orchestration and artifact management, and form reproducible templates.
    • Phase 3 (9+ months): collaborate with domain-specific models, enter the loop of hypothesis generation and experiment design, and only then can commercial premium be discussed.

    What needs to be clearly recognized is that AI4S is still in an early stage for cutting-edge models globally, and the layout of domestic vendors is more like “early experimentation transitioning to commercialization.” The real moat is not in model parameters, but in data pipelines, tool ecosystems, evaluation loops, and compliance capabilities. The advice for developers is: first use standard components on general-purpose clouds such as object storage, container platforms, message queues, logging, and monitoring to build a stable reproducible foundation, then gradually layer on model capabilities, avoiding blindly pursuing end-to-end automation in the absence of evaluation.