Why LLMs in AI for Science Are Hard: Data, Modeling, Evaluation, and Long-Running Jobs

    General-purpose large language models are starting to appear inside real research workflows, but the main obstacles are engineering rather than model intelligence. This article examines four practical challenges: fragmented and non-interchangeable scientific data, the mismatch between probabilistic generation and strict numerical or physical constraints, the absence of evaluation systems that can prove correctness, and the stability and cost of long-running analysis jobs. It also outlines a four-step rollout path and explains how deterministic operators and a semantic layer can be separated so that scientific results move from demo-ready to trustworthy in daily use.

    ## 1. What We Are Seeing: General-Purpose LLMs Entering the Research Pipeline

    A notable signal recently is that a major model vendor’s open platform has publicly showcased production cases for scientific research, with partners concentrated in computationally driven biopharmaceutical and materials R&D. One representative case shows the typical shape: a research team built a biomedical agent, connected it to a general-purpose LLM, and ran clustering and dimensionality reduction for single-cell gene expression on roughly 3,700 mouse embryonic pancreas cell samples. Within about an hour and a half, the run produced a cell developmental trajectory map and shortlisted around 100 candidate genes for downstream experimental validation. A second line of collaboration started earlier and focuses on generation, screening, and property prediction for drug molecules and material systems.

    Abstracted from these cases, one clear technical path emerges: the general-purpose LLM no longer acts as a question-answering machine, but as the scheduling hub and semantic interface of the research pipeline, translating natural-language research intent into an executable sequence of operators and translating structured results back into conclusions researchers can read. This also determines that the challenges discussed below are essentially not about whether the model is smart enough, but whether the engineering system can support the rigor of science.

    2. Challenge 1: Fragmented Data That Cannot Be Exchanged

    The first characteristic of scientific data is heterogeneity. Single-cell sequencing, crystal diffraction, spectroscopy, microscopy imaging, and time-series experimental data differ enormously in sampling rate, units, and missingness patterns, making it hard to form naturally large-scale corpora the way internet text does. The second characteristic is long-tail scarcity: truly high-quality labels often depend on expensive experiments, with sample sizes stuck in the thousands or tens of thousands, nowhere near the hundreds of billions of tokens common in general domains. The third characteristic is private semantics: the same metric may have different definitions, units, and preprocessing pipelines across laboratories, so data from different institutions cannot be joined directly.

    The workable response is to move data governance to the front. Establish unified metadata standards and ontology mappings, and make “sample—experimental condition—measurement method—processing version” a traceable chain; keep immutable copies of raw data, and describe all cleaning and transformation as replayable pipelines; apply tiered authorization and least-privilege access to sensitive data. A schematic metadata structure can be written as:

    1. dataset:
    2. id: single-cell-pancreas-e8.5
    3. modality: scrna-seq
    4. assay: 10x-3prime
    5. reference_genome_version: v38
    6. preprocessing:
    7. - filter_cells(min_genes=200)
    8. - normalize_total(target_sum=1e4)
    9. - log1p
    10. - scale(max_value=10)
    11. pii_level: internal
    12. lineage: [raw_v1, qc_v2, integrated_v3]

    Only when lineage and versions are fixed do downstream model inference results become reproducible; otherwise, even the strongest model just produces a one-off output that “looks reasonable.”

    3. Challenge 2: A Modeling Paradigm Mismatch That Requires Constraints

    The strength of LLMs lies in semantic understanding and code generation; their weakness is strict numerical consistency and physical constraints. Research tasks often require conservation laws, symmetries, and boundary conditions to be satisfied as hard constraints, while generative model output is probabilistic. In practice, this leads to a three-layer structure: deterministic scientific computing operators at the bottom, task orchestration and tool invocation in the middle, and the language model at the top, responsible only for intent parsing and result interpretation.

    A typical orchestration skeleton looks like this:

    1. def run_single_cell_analysis(adata_path, top_k=100):
    2. adata = load_adata(adata_path) # deterministic operator
    3. qc = quality_control(adata, min_genes=200)
    4. integrated = batch_correct(qc, method="harmony")
    5. clusters = leiden(integrated, resolution=1.0)
    6. trajectory = diffusion_pseudotime(integrated, root="stem")
    7. markers = rank_genes_groups(clusters, method="wilcoxon")
    8. plan = llm.summarize(trajectory, markers) # semantic layer explanation
    9. return {"figure": plot(trajectory), "candidates": markers[:top_k],
    10. "narrative": plan, "provenance": integrated.uns["pipeline_hash"]}

    The key to this division of labor is: numerical results are the responsibility of the operators, semantic organization is the responsibility of the model, and the model must not rewrite intermediate numbers, only reference them. In engineering terms, tool invocation needs schema validation plus timeout, retry, and idempotency policies, so that a single failed call does not contaminate the whole pipeline.

    4. Challenge 3: Missing Evaluation Systems Make “Correct” Unprovable

    General-purpose leaderboards cannot cover scientific correctness. Research scenarios need three kinds of evaluation: first, numerical consistency, aligned with existing benchmark pipelines; second, reproducibility, where the same input yields the same conclusion at different times; third, downstream validity, meaning whether candidate conclusions are supported by independent experiments or external datasets. It is advisable to build an internal regression set that fixes historical published conclusions as “gold-standard tasks,” runs them after every model or prompt-strategy change, and records versioned reports. An evaluation report should contain at least the task identifier, data version, parameter configuration, elapsed time, resource consumption, and any differences, so results can be reviewed by peers.

    5. Challenge 4: Engineering and Cost, and the Stability of Long-Running Jobs

    A single analysis can easily take tens of minutes to hours, which is a typical long-running job. This requires a task queue for peak shaving, a container platform for environment isolation and elastic scaling, object storage for large intermediate artifacts, and logging plus monitoring and alerting to track per-stage latency and failure rates. For cost control, limit language model calls to the semantic stage and hand heavy computation to reusable operator caches; apply content-addressed caching to intermediate results, skipping work on a cache hit. The cache decision can be expressed as pseudocode:

    1. key = hash((dataset_version, params, operator_version))
    2. if cache.exists(key):
    3. return cache.load(key)
    4. result = operator.run(...)
    5. cache.store(key, result, ttl="30d")

    In addition, research compliance requires full-chain auditing: who used which data version at what time, which model version was called, and what conclusions were produced must all be recorded. This is both a source of trustworthiness and the basis for later review.

    6. A Practical Rollout Sequence

    A four-step approach is recommended. Step one: pick a narrow scenario, such as agentifying a single analysis pipeline, assembled from existing operators, to validate value quickly. Step two: build the data and evaluation foundation, establishing lineage, versions, and the regression set. Step three: expand the tool ecosystem by wrapping common scientific computing libraries into a constrained tool set with unified schema definitions. Step four: move to platformization, forming reusable agent templates and governance policies. In this kind of practice, Baidu AI Cloud typically provides general-purpose capabilities such as a container platform, object storage, a message queue, logging services, and monitoring and alerting, together with a unified model service access layer, helping teams focus their attention on the research logic itself.

    7. Conclusion

    For LLMs entering scientific research, the real barrier is not parameter scale but four foundational capabilities: data governance, constrained modeling, a closed evaluation loop, and long-running job engineering. Separate deterministic operators clearly from the semantic layer, fix versions and lineage, and turn evaluation into regression, and research scenarios can move from “usable in a demo” to “trustworthy day to day.”