How to Select LLMs for STEM Research: A Systematic Evaluation Framework
With the rapid advancement of large language models (LLMs), selecting the right one for specific tasks has become increasingly challenging. This article introduces a systematic evaluation framework tailored for STEM research and engineering workflows. Instead of relying on fixed rankings or parameter sizes, it emphasizes a multi-dimensional approach covering mathematical reasoning, coding, paper analysis, and data interpretation. By building a custom task set and adopting a multi-model collaboration strategy, researchers and engineers can objectively assess an LLM's correctness, stability, and reliability, ultimately improving productivity while mitigating hallucination risks.
In recent years, the capabilities of Chinese large language models (LLMs) have progressed rapidly. When asked about the “top four Chinese LLMs,” many discussions tend to offer a fixed list. However, from a technical perspective, a “top four” ranking is not a stable conclusion. Different models have distinct strengths in mathematical reasoning, code generation, paper reading, Chinese expression, long context handling, tool invocation, and deployment costs. A model suitable for daily Q&A may not be appropriate for scientific research, and a model that performs well on public leaderboards may not reliably solve problems in specific experiments.
Therefore, rather than simply ranking models, it is more effective to establish an evaluation system oriented towards actual tasks. For STEM users, whether a model is worth using depends not on its parameter size or marketing, but on its ability to consistently, accurately, and verifiably complete work.
1. Define the Tasks Involved in “STEM Usage”
STEM users typically do not use LLMs merely for chatting; they employ them as research assistants, coding copilots, and knowledge organization tools. Common tasks can be broadly categorized as follows.
1.1 Mathematical and Theoretical Derivation
These tasks include formula transformation, boundary condition analysis, probability derivation, physical process explanation, and algorithm complexity proof. The evaluation focus is not on whether the answer looks elegant, but on whether the intermediate steps are valid.
Many models perform well on simple calculations but are prone to subtle errors in multi-step reasoning, such as:
- Altering variable definitions;
- Ignoring initial or boundary conditions;
- Confusing necessary conditions with sufficient conditions;
- Misjudging matrix dimensions, unit systems, or symbol ranges;
- Arriving at a correct conclusion through an irreproducible derivation process.
Therefore, in STEM scenarios, models should be required to explicitly list assumptions, variable definitions, and derivation steps, rather than only outputting the final answer.
1.2 Programming and Engineering Implementation
Coding capability cannot be judged solely by whether a model can generate a snippet of sample code. It must also be assessed on whether it understands requirements, handles exceptions, maintains interface consistency, and can run in a real environment.
Key aspects to observe include:
- Whether it correctly understands input and output constraints;
- Whether it considers null values, out-of-bounds errors, concurrency, and resource release;
- Whether it can explain time and space complexity;
- Whether it can locate problems based on error logs;
- Whether it can write test cases;
- Whether it can make incremental modifications to existing code instead of rewriting it entirely;
- Whether it hallucinates non-existent libraries, APIs, or configuration items.
In actual development, the speed of code generation is usually not the main bottleneck; verification and maintenance are. A model with stable coding style, low error rate, and the ability to actively communicate uncertainty is often more valuable than one that occasionally produces stunning code but frequently fabricates APIs.
1.3 Paper and Technical Document Analysis
STEM users frequently need to process papers, standards, experiment reports, and project documentation. In these cases, the focus should be on evaluating the model’s long-text understanding and evidence tracking capabilities.
A qualified analysis result should at least distinguish between:
- Facts explicitly stated in the original text;
- Conclusions reasonably derivable from the original text;
- Supplementary explanations based on the model’s common sense;
- Information not provided in the original text that requires further verification.
If a model cannot distinguish these layers, it may easily present speculation as fact. For research scenarios, it is best to require the model to cite the chapter, paragraph, or page number for each key conclusion and explicitly state any unconfirmable information.
1.4 Data Analysis and Experimental Design
LLMs can assist in designing experimental workflows, generating data processing code, and explaining statistical metrics, but they should not replace actual computation and experimental verification.
For example, in experimental design, a model can help check:
- Whether the control group is reasonable;
- Whether independent and dependent variables are confounded;
- Whether the sample size might be insufficient;
- Whether there is data leakage;
- Whether the metrics match the research objectives;
- Whether the experiment can support the final conclusion.
However, when it comes to significance, confidence intervals, regression results, and performance improvement ratios, they must be recalculated using executable code or professional software. The model’s text explanation alone cannot serve as a reliable basis.
2. Establish Multi-Dimensional Evaluation Metrics Instead of Only Looking at Parameter Size
Parameter size and context length do influence model capability, but they do not directly equate to actual performance. A more reasonable evaluation method is to establish multi-dimensional metrics.
2.1 Correctness
Correctness is the primary metric, especially for mathematical, coding, and technical fact-based tasks. During testing, rather than just tallying the “accuracy rate,” you should also record the types of errors:
- Factual errors;
- Reasoning errors;
- Calculation errors;
- Formatting errors;
- Omission of critical conditions;
- Citation or source errors.
Different errors carry different risks. A minor formatting error can be manually corrected, whereas a seemingly plausible but incorrect conclusion can directly misdirect an experiment.
2.2 Stability
If the answers vary greatly when the same question is asked repeatedly, it indicates insufficient stability. You can use fixed prompts, a fixed temperature, or consistent inference conditions to repeat the test for several rounds and calculate the answer consistency rate.
For research purposes, stability is particularly important. The model does not need to provide the exact same wording every time, but key conclusions, formulas, and code logic should remain consistent.
2.3 Refusal to Answer and Expression of Uncertainty
An excellent model does not “answer everything”; it actively declares uncertainty when information is lacking. You should observe whether it:
- Requests necessary supplementary conditions;
- Points out ambiguities in the question;
- Distinguishes known facts from speculations;
- Suggests verification through experiments or literature;
- Refuses to fabricate non-existent literature, APIs, or data.
For engineering and research, being moderately conservative is often safer than being overconfident.
2.4 Long-Text Processing Capability
Long context capability is not just about “whether it can fit the text in,” but also whether the model can accurately locate information within lengthy materials. Evaluation tasks can be designed as follows:
- Extracting the definition of the same variable from multiple chapters;
- Comparing two interrelated constraints in different parts of a document;
- Identifying changes between different versions;
- Generating a structured summary based on the full text;
- Determining whether a certain conclusion is indeed supported by the original text.
If the model only summarizes the beginning and end while missing critical conditions in the middle, its long-text utilization capability is still limited.
2.5 Speed, Cost, and Deployment Difficulty
In individual research, where the model is occasionally invoked, the focus might be on quality. In team or enterprise environments, response speed, invocation cost, concurrency capability, data compliance, and operational complexity must also be considered.
Models can typically be categorized into three tiers for usage:
- High-quality models: For complex reasoning, critical solutions, and final reviews;
- General models: For daily Q&A, document organization, and standard code generation;
- Lightweight models: For classification, rewriting, batch extraction, and simple automation tasks.
This approach is more economical and risk-controllable than attempting to cover all scenarios with a single model.
3. Adopt a “Task Set” Rather Than Impression-Based Rankings
If you need to compare multiple LLMs, it is recommended to first build your own task set. The set does not need to be large, but it must reflect real-world work.
A basic task set can include:
- Ten mathematical or professional derivation problems;
- Five algorithm and code implementation problems;
- Five paper or technical document analysis problems;
- Five error log localization tasks;
- Five table or experimental data interpretation tasks;
- Several trap questions requiring the model to recognize insufficient information.
Each task should have a reference answer, a scoring standard, and an acceptable error margin. For instance, code questions should not only check if the code runs, but also verify boundary conditions; paper analysis questions should not only check if the summary is fluent, but also verify whether the model fabricated conclusions absent from the original text.
Scoring can adopt a weighted approach:
- Correctness: 40 points;
- Reasoning completeness: 20 points;
- Stability: 15 points;
- Code runnability: 10 points;
- Uncertainty expression: 10 points;
- Output format and readability: 5 points.
If you are more focused on academic writing, increase the weight of long-text analysis and citation reliability; if you are more focused on software development, increase the proportion of code, debugging, and engineering constraints.
4. Model Combination Usually Outperforms Single-Model Selection
In actual work, it is not recommended to assign all tasks to a single model. A “primary model plus review model” structure can be adopted.
First, a general model completes information organization, draft generation, or code outlining. Second, a reasoning-oriented model checks formulas, logic, and boundary conditions. Third, local scripts, test frameworks, or professional computing tools are used for final verification.
The key to this workflow is not to have multiple models “vote,” but to assign them different responsibilities. For example:
- One model proposes the solution;
- One model looks for counterexamples;
- Programs verify calculation results;
- Humans confirm business objectives and make final decisions.
Note that consistent outputs from multiple models do not guarantee correctness, as they may share similar training data and error patterns. Truly reliable verification still relies on original sources, executable code, and reproducible experiments.
5. How to Reduce Model Hallucinations
A model’s factual errors do not depend entirely on the brand or size; prompting methods and task boundaries are equally important. The following practices are generally effective.
5.1 Explicitly Require Listing Assumptions
For example, require the model to write down variable definitions, known conditions, unknown conditions, and applicable scopes before starting the derivation. This reduces the chance of the model changing the problem definition midway.
5.2 Require Verifiable Processes
For calculation problems, have the model output formulas and intermediate results; for code problems, have the model generate test cases simultaneously; for literature analysis, have the model annotate evidence locations.
5.3 Break Down Complex Problems into Multiple Stages
Do not ask the model to “read materials, design a solution, write code, analyze results, and generate a report” all at once. A more robust workflow is to first extract facts, then propose a solution, implement code, and finally conduct a separate review.
5.4 Provide Failure Criteria
You can explicitly tell the model: if information is insufficient, do not guess; if an API cannot be confirmed, use pseudocode and mark the parts to be supplemented; if multiple interpretations exist, list them separately and explain the basis for judgment.
5.5 Retain a Human Review Step
Content involving paper conclusions, production code, experimental data, legal compliance, and security configurations should not be directly copied from the model’s output. Models are suitable for improving information processing efficiency but cannot replace the judgment of the responsible party.
6. Conclusion: The “Top Four” Should Refer to Four Types of Capabilities, Not Four Fixed Names
From the actual needs of STEM fields, the “top four” LLMs are better understood as four levels of capability:
- Strong complex reasoning, suitable for mathematical, algorithmic, and technical solution argumentation;
- Stable engineering coding, suitable for code generation, debugging, and test completion;
- Good long-text analysis, suitable for organizing papers, standards, and project materials;
- Lightweight, efficient, and easy to deploy, suitable for batch tasks and daily automation.
When making a selection, you should first clarify the task, conduct small-scale real-world testing, and finally comprehensively consider accuracy, stability, cost, privacy, and maintenance difficulty. Do not draw conclusions based solely on parameter size, online reputation, or a single chat experience.
For individual users, a scoring sheet can be established using a small number of representative questions. For team users, the test set, prompts, evaluation results, and version changes should be integrated into a continuous evaluation process. If necessary, general model services, log monitoring, data storage, and application deployment capabilities provided by platforms such as Baidu AI Cloud can be utilized to build an auditable and traceable model application workflow, though the final basis should still rest on actual test results and business constraints.
