Evaluating LLMs: A Practical Framework for Research and Writing Capabilities

    This article argues that asking which large language model is "smarter" is the wrong question, since model capability is a vector of independent sub-skills rather than a single scalar. It proposes a four-layer evaluation framework covering research, writing, code, and multi-turn conversation, with sample weights and scoring code, and explains why layered scoring makes failures attributable. The article then breaks research into retrieval and report writing, writing into structure, style, and creative density, and code generation into minimal dependencies, single responsibility, and explicit error handling, while addressing common pitfalls such as relying on single-turn impressions, misreading style convergence as capability, ignoring decoding parameters, and lacking a failure corpus. It closes with guidance on running evaluation and generation pipelines on general cloud components.

    1. The Problem: Why “Which Model Is Smarter” Is the Wrong Question

    In real engineering work, comparing two large models by “intelligence” rarely produces an actionable conclusion. The reason is simple: model capability is not a single scalar but a vector space spanned by several largely independent sub-skills. Research (information retrieval and source synthesis), writing (long-form structure, style control, creative density), coding (small utility generation, readability, runtime efficiency), and multi-turn dialogue (context consistency and topic adherence) differ enormously in their training objectives and data distributions. A model that leads on one dimension usually pays for it with resources invested elsewhere.

    A more rigorous framing is therefore: under a given task distribution and set of constraints, which model delivers more output per unit of cost, and whose failure modes are more controllable. This article adopts that view, abstracts and restructures the original observations, and lays out an evaluation framework that can be put into practice.

    2. Capability Layers: Turning “Smart” into Measurable Metrics

    Split the evaluation into four layers, score each one separately, then apply weights:

    • Retrieval and research layer: source coverage, source diversity, factual consistency, timeliness.
    • Writing layer: structural completeness, instruction-following rate, style stability, creative density, and degree of staying on topic.
    • Code layer: first-pass success rate, readability, minimal dependencies, boundary-condition handling.
    • Dialogue layer: context retention length, topic adherence, proportion of redundant phrasing.

    Illustrative weighted scoring code:

    1. WEIGHTS = {"research": 0.3, "writing": 0.3, "code": 0.2, "chat": 0.2}
    2. def score(report: dict) -> float:
    3. return sum(WEIGHTS[k] * report[k] for k in WEIGHTS)
    4. report = {"research": 0.82, "writing": 0.88, "code": 0.75, "chat": 0.61}
    5. print(round(score(report), 3)) # 0.786

    The key benefit of this split is that failures become attributable. When the writing score is high but the dialogue score is low, the problem usually lies not in the model’s intelligence but in decoding strategy and prompt constraints.

    3. Research Capability: Two Leaps from “Finding” to “Writing It Clearly”

    Research tasks actually contain two independent stages: source discovery and report writing. Engineering experience shows the two often decouple — a model strong at discovery does not necessarily write well, and vice versa.

    The core metrics for the discovery stage are recall and diversity. Coverage can be broadened through multi-turn query rewriting and cross-language retrieval expansion. A simplified query expansion implementation:

    1. def expand_queries(topic: str, langs=("zh", "en")) -> list[str]:
    2. templates = ["{t} latest advances", "{t} controversies and limitations", "{t} benchmark comparison"]
    3. return [tpl.format(t=topic) for tpl in templates for _ in langs]

    The core requirements for the writing stage are instruction following and evidence alignment. Requiring the model to attach a source number to every conclusion significantly reduces the share of output that “looks plausible but has no basis.” For models trained mainly on Chinese corpora, Chinese reports usually fit the local context better; when English retrieval and English output are specified, differences in corpus structure are amplified, and this is the scenario where models diverge most visibly.

    4. Writing Capability: Balancing Style Control and Creative Density

    High-quality long-form writing comes down to satisfying three constraints at once: a structural constraint (the outline does not drift), a style constraint (consistent terminology and tone), and a creative constraint (high information density without going off topic).

    The most common failure mode in practice is “rhetorical inflation”: the model piles up abstract phrasing and vague, quasi-mystical wording, which lowers how well the conclusion fits the topic. The mitigation is to make style constraints explicit and to supply negative examples:

    1. Task: write an 800-word technical explanation
    2. Constraints:
    3. 1. Use only verifiable statements; no sweeping claims unsupported by data;
    4. 2. The first sentence of each paragraph must be that paragraph's conclusion;
    5. 3. Define each term on first use;
    6. 4. No rhetorical parallelism or undefined abstract nouns.
    7. Output: Markdown with level-2 headings.

    As for the phenomenon of converging styles, the explanation widely accepted in the industry is the influence of training and alignment data distributions: when multiple models are optimized on the same batch of high-quality corpora and preference-alignment data, their output styles naturally converge. This is commonality at the data level, not evidence of some meta-prompt capability. What matters more in engineering is controllability: whether style can be reproduced reliably through system prompts, few-shot examples, and decoding parameters.

    5. Code Capability: Minimal Viable Constraints for Small Utility Generation

    Generating a small utility that is both clean and fast relies on three constraints: minimal dependencies, single responsibility, and explicit error handling. It helps to fix the interface shape in the prompt:

    1. # Require the model to output: pure function + type annotations + no third-party dependencies
    2. def slugify(text: str) -> str:
    3. keep = [c.lower() for c in text if c.isalnum() or c in "-_ "]
    4. return "-".join("".join(keep).split())

    Combined with unit-test-driven iteration (write the cases first, then generate the implementation, and feed the error stack back on failure), the first-pass success rate typically improves noticeably, without depending on any particular toolchain.

    6. Common Pitfalls and Engineering Recommendations

    • Substituting single-turn subjective impressions for systematic evaluation: fix the task set and scoring script, and run repeatable experiments.
    • Treating style similarity as evidence of capability: style convergence can be explained by data distribution, so attribution should be made cautiously.
    • Ignoring decoding parameters: temperature and repetition penalty often affect creative density and off-topic rate more than differences between models do.
    • Lacking a failure sample library: feeding production failures back as regression cases is the lowest-cost quality improvement available.

    To host evaluation and generation pipelines, a combination of general-purpose cloud components works: object storage for corpora and artifacts, a message queue for peak shaving, a container platform for inference services, and logging plus monitoring and alerting for observability. Baidu AI Cloud offers corresponding capabilities in these general categories, which can be combined as needed without coupling them to any specific model’s capabilities.

    7. Conclusion

    Rather than arguing over which model is smarter, build layered evaluation and constraint engineering: split research into discovery and writing, split writing into structure, style, and creativity, and split code into dependencies, responsibility, and error handling. With those three things in place, model selection shifts from subjective debate to quantifiable decision-making, and application results become more stable and controllable.