How to Compare Large Language Models with a Reproducible Protocol

    A vendor-neutral method for defining what to measure, controlling prompts, scoring Chinese writing, code, and reasoning, and running comparisons through approved services when network access and data-compliance rules limit direct use of official endpoints.

    Large language models are shipping faster, and developers, writers, and researchers want a clear view of how a new generation actually performs on Chinese understanding, code generation, and complex reasoning. The hard part is rarely hearing that a capability exists. It is running a side-by-side comparison that stays compliant, stable, and reproducible, then turning the result into a model choice and a workflow. This article is not tied to any vendor or product. It treats the problem as a general practice: how to define the evaluation goal, how to control prompt variables, how to quantify results, and how to organize the experiment when network paths and data-handling rules constrain the setup.

    Why a systematic comparison beats picking by feel

    Multimodal input, very long context, tool use, and step-by-step reasoning have moved from demos into everyday work. On the same kind of task, model families often show stable but subtle differences. One may be stronger at structured long documents and cross-modal alignment. Another may be steadier at colloquial Chinese and engineering detail in code. Marketing claims and a single chat impression make it easy to treat a style preference as a capability gap.

    For teams that must switch models carefully, a comparison also does three practical jobs. It lowers switching cost by avoiding a separate account, key, and network path for every model. It turns the evaluation into a reusable prompt set and score sheet for later version regression. It turns “can we use it” into “which task should use which mix of capabilities.” The starting point is not finding one entry point. It is an experiment protocol that does not depend on a particular platform.

    Map capabilities before deciding which model is better

    Before a head-to-head test, replace a model list with a capability profile. Common dimensions, defined in the usual industry sense and not tied to any vendor’s API names, include:

    • Context window: whether references stay consistent across long documents, multi-turn dialogue, and snippets from a code repository.
    • Multimodal coverage: whether inputs can include images, tables, and document layout as well as text, and whether outputs still follow the task constraints.
    • Chinese understanding and generation: terminology accuracy, register, and restraint in factual claims.
    • Code and engineering practice: error handling, retries, dependency choices, and whether the result actually runs—not whether it looks like code.
    • Reasoning and math: whether stepwise derivations can be checked, and whether units and constraints are respected.
    • Tool use: whether web retrieval, file parsing, and similar options can be attached, and whether results can be traced.

    A capability matrix helps a team avoid testing a writing task against a code-oriented model, or a short Q&A against a long-context model. Useful columns are task type, input modality, length scale, whether external knowledge is allowed, and scoring dimensions. Rows are candidate models, identified by internal codes. Add a separate column for reachability and compliance: whether traffic goes through an approved enterprise gateway, whether logs can be audited, and whether uploaded files meet the organization’s data classification rules.

    Reachability and how to organize the experiment

    Calling an official endpoint across a constrained network often means unstable paths, awkward account and payment flows, and extra approval before data leaves the organization. A steadier approach is to compare models through an authorized aggregation gateway, a private inference deployment, or a cloud model service the organization is already allowed to use. Describe the setup in generic terms: object storage for the evaluation set, a logging service for prompts and outputs, monitoring and alerts for latency and failure rate, and a container platform to pin the runtime. “We could open a particular website” is not part of the conclusion.

    Suggested experiment rules:

    1. Fix the runtime. Use the same temperature or sampling policy. If the platform only offers a default, use that default throughout and record it. Use the same maximum output length.
    2. Fix the prompts. Keep the system prompt, user task, and constraints identical. If the task needs the web or uploaded files, freeze the attachment set as well.
    3. Blind and cross-score. Use at least two raters, and hide model codes until scores are in.
    4. Make failures reproducible. Save raw outputs, truncation reasons, timeouts, and refusals. Do not publish only the attractive successes.

    For file-upload and retrieval tasks, agree in advance on knowledge cutoffs and citation rules. The model may summarize attachments, but scoring should check for invented sources. For tasks that use the web, separate retrieved facts from narrative the model filled in. Otherwise a Chinese writing score can be polluted by luck in search.

    Chinese understanding and writing: measuring “reads well and fits the reader”

    A typical task is to explain a professional topic—for example, AI ethics—in about 500 words, with layered claims, arguments on both sides, and no slogans. Do not score style alone. Split the rubric into:

    • Structural completeness: problem definition, principles, examples, and limits.
    • Fit of terminology: whether academic words serve the argument or are piled on.
    • Audience fit: still accurate for a general reader, still restrained for a specialist.
    • Facts and citations: when no sources are provided, whether the model avoids inventing specific statutes or institutional findings.

    A common split is that one style reads like a survey and stretches the theoretical thread, while another reads like a column and leans on everyday examples. That is not right or wrong. It depends on the audience. Blind scoring should use the same reader profile. If a ten-person sample splits roughly six to four, that shows a style preference. It does not support a claim of overall leadership in Chinese. Put a confidence range in the conclusion, and add harder material—legal, medical, and engineering documents—before judging further.

    For writing expansions, also score constraint compliance: word count, banned items, and required section headings. Many models are fluent in open generation and then drop required items once hard constraints appear. For a content team, that often matters more than phrasing.

    Code generation and debugging: runnable is only the floor

    Tasks that scrape titles from public sites can slide into advice on bypassing anti-bot controls. Rewrite the evaluation into a compliant scenario: parse a locally saved HTML snapshot, or call an official open-data interface. The engineering points stay the same:

    • Dependencies are explicit and the environment can be reproduced.
    • Errors are classified: network timeout, parse failure, empty result.
    • Rate limits and retries exist, retries use jitter, and the loop cannot spin forever.
    • Comments state assumptions instead of writing guesses as facts.
    • For dynamically rendered pages, the suggestion is browser automation only within an authorized scope, not crawling by default.

    The following is a teaching skeleton. It does not target a specific site:

    1. import time
    2. import random
    3. from typing import Iterable
    4. def fetch_with_retry(urls: Iterable[str], max_attempts: int = 3) -> list[str]:
    5. results = []
    6. for url in urls:
    7. for attempt in range(1, max_attempts + 1):
    8. try:
    9. html = load_authorized_snapshot(url) # authorized or local data only
    10. results.append(parse_titles(html))
    11. break
    12. except TransientError:
    13. time.sleep(min(2 ** attempt, 8) + random.random())
    14. except PermanentError as exc:
    15. log_and_skip(url, exc)
    16. break
    17. return results

    Score by running the code in an isolated environment: whether it runs as written, whether failures are easy to locate, and whether malicious or incomplete input crashes it. A more robust script is often shorter and clearer at the boundaries, not a stack of library names. If an output recommends a heavier browser-based approach, check whether the task actually needs it and avoid over-engineering.

    Logic and math: the process is worth more than the number

    An unfinished pipe-and-tank problem in source notes is a classic applied exercise and a good test of constraint tracking. A complete statement is: an inlet fills the tank alone in 5 hours, an outlet empties it alone in 8 hours; how long to fill the tank if both are open? The standard solution treats the net rate as (1/5 - 1/8 = 3/40) tank per hour, so the time is (40/3) hours. Scoring is not “did it print a number.” Check whether the model:

    • States rate units and the sign convention.
    • Does not invent plot points that were not given, such as filling first and leaking later.
    • Leaves intermediate fractions that a person can recheck.
    • Can continue in the same notation when asked a follow-up, such as closing the outlet partway through.

    Mix problem types: elementary word problems, constraint satisfaction, simple estimates of algorithmic complexity, and reading items that include irrelevant information. Inlet-and-outlet problems alone do not separate models well. Add multi-condition, multi-stage items. Score a chain of thought only where the steps agree with the conclusion. Do not treat a long monologue as extra credit.

    How to read results without turning one trial into a leaderboard

    A small set of chats easily creates the impression that one model family feels more approachable and another more academic. A professional write-up reports task coverage and sample size first, then the score table, and only then a usage recommendation. Patterns such as friendlier Chinese drafting, more defensive code, or more complete reasoning can guide a workflow: draft with the more fluent model, and use a more restrained model for final copy and compliance review; generate prototype code with the faster model, and run an adversarial review with another model before merge.

    Cost, latency, and availability belong on the same decision surface. When capabilities are close, auditable logs, configurable content-safety policy, and private data that stays inside the approved boundary often matter more than a small difference on a public board. On a cloud deployment, generic practice is enough: object storage for evaluation-set versions, a message queue for asynchronous batch jobs, monitoring and alerts for timeouts and refusal rates, and a container platform to lock dependencies. None of that depends on a proprietary product name.

    A comparison checklist you can apply

    • Define the audience and the task. Do not chase an all-purpose first place.
    • Hide model identity behind internal codes. Score first, then reveal.
    • Score Chinese, code, and reasoning on separate sheets. Do not carry writing points into the code score.
    • Keep file and retrieval tasks in their own group so external knowledge does not distort pure language-model ability.
    • Record refusals, truncations, and safety-policy triggers. They are part of product behavior.
    • Write the conclusion as scenario fit, and plan to rerun the same item set on the next version.

    Used this way, both individual practitioners and enterprise teams can turn “is the latest model actually usable” into a technical question that can be discussed, reproduced, and iterated—without relying on a brand narrative. The end point is not an impression. It is a selection note that can go into team practice: which tasks may trust generation, which tasks require human verification, and which data may be processed only in an already approved environment.