How to Evaluate LLM Writing Ability: From Metrics to Production
This article explains how to evaluate the writing ability of large language models for real business use. It breaks writing quality into six observable dimensions, compares three evaluation methods (human review, automated checks, and model-based scoring), and covers how to build an evaluation set, read results correctly, and turn findings into a model selection decision. A short Python example shows a basic evaluation workflow.
1. Why “Which model writes best?” Is Hard to Answer Directly
“Which large language model has the strongest writing ability?” is a question many teams ask, but it lacks a clear basis for comparison. Writing covers marketing copy, technical documentation, press releases, customer support replies, and long-form reports. Quality expectations differ a lot across these scenarios. A model that performs well on short copy is not necessarily equally reliable at organizing long documents.
Model versions also change quickly. Public leaderboards usually reflect one point in time, one set of prompts, and one scoring standard. Taking these results at face value can lead to poor model choices in real business settings. A more useful question is: in my own business context, which model or configuration consistently produces text that meets the requirements?
2. Core Dimensions of Writing Ability
To evaluate writing, first break “good writing” into observable dimensions. Six dimensions are commonly used.
1. Factual accuracy
Check whether the numbers, dates, proper nouns, and cause-and-effect claims in the text are correct. For technical documentation and news-style content, this is usually the baseline requirement.
2. Instruction following
Check whether the text meets explicit requirements such as length range, tone, target audience, and output format. For example, if the prompt asks for “three paragraphs, with no more than five sentences each,” it is easy to verify whether the model complied.
3. Structure
Check whether paragraphs progress logically, whether subheadings are sensible, whether the opening gives background, and whether the ending addresses the topic. Long texts depend heavily on structural ability.
4. Language quality
Check word choice, sentence fluency, and whether the text contains redundancy, repetition, or boilerplate phrasing. Professional texts also need consistent terminology.
5. Coherence in long texts
Across several thousand words, check whether viewpoints stay consistent, references are clear, and concepts defined earlier are not silently replaced later.
6. Style and audience fit
The same idea should be written differently for developers and for non-technical managers. Whether the model adjusts depth and tone for its reader is also an important measure.
Once the dimensions are clear, you can design an appropriate evaluation method for each one.
3. Three Main Evaluation Methods
3.1 Human evaluation
Human evaluation comes closest to real quality judgment, but it is costly and sensitive to subjective bias. In practice, keep these points in mind.
- Write a scoring rubric. Define each dimension on a 1 to 5 scale and describe what each score looks like, so reviewers do not score by feel.
- Use blind review. Reviewers should not know which model produced each text, and they should judge only the content. Randomize the left-right order to reduce position bias.
- Have several people score independently, then calculate agreement metrics such as Cohen’s kappa or the intraclass correlation coefficient. Low agreement means the rubric is unclear. Revise the rubric before continuing.
3.2 Automated checks
Automated checks are fast and repeatable, which makes them suitable for regression testing. They cannot judge whether the meaning is good, however. They only cover requirements that can be described programmatically.
Common automated checks include whether the word count falls within a range, whether required subheadings exist, whether forbidden terms appear, whether the output format is valid (for example, whether JSON can be parsed), and whether the paragraph count matches the requirement.
N-gram overlap metrics measure similarity to a reference answer. Writing tasks rarely have one correct answer, though. A good article can express the same content with entirely different wording. These metrics are therefore of limited use for judging writing quality and are best treated as supporting signals.
3.3 Model-based evaluation
Using another large language model to score texts against a rubric greatly reduces evaluation cost. This approach has several known biases that need to be controlled.
- Position bias: the judge model may favor candidates that appear first. Swap the order, score each pair in both orders, and average the results.
- Length bias: the judge model tends to give longer texts higher scores. State in the rubric that length is not a scoring criterion, and test length as a covariate during analysis.
- Self-preference: the judge model may favor outputs that resemble its own style. Cross-check with judge models from different sources to reduce this effect.
Compare model-based scores with human scores before using them widely. On a small sample, once the correlation between the two reaches an acceptable level, you can scale up.
4. Building an Evaluation Set
Whether evaluation conclusions can be trusted depends largely on the evaluation set itself.
Task coverage: Group tasks by business scenario and include enough samples in each group. For example, marketing copy, product descriptions, meeting minutes, and long reports should each be analyzed separately rather than averaged together.
Sample design: Each task should include normal inputs, boundary inputs, and inputs with distracting information. For example, if the task is “explain a complex concept in plain language,” include cases where that concept is commonly explained incorrectly.
Sample size: Use at least several dozen samples per task category. Otherwise, fluctuations in average scores can hide real differences. Report the sample size and standard deviation alongside the results.
Preventing data leakage: Evaluation samples should not appear in model training data or in prompt examples. Refresh part of the evaluation set regularly so that models are not tuned specifically to it over time.
Version control: Record the model version, prompts, sampling parameters, and rubric version for every evaluation run. Without this information, results cannot be reproduced.
5. Example: A Lightweight Evaluation Workflow
The code below demonstrates three basic steps: rule checks, blind pairing, and score aggregation. It uses only the Python standard library and can serve as a starting framework.
import randomfrom dataclasses import dataclassfrom statistics import mean, stdevdef rule_check(text: str, spec: dict) -> dict:"""Run programmatically verifiable checks on a single text."""n_chars = len(text)return {"length_ok": spec["min_chars"] <= n_chars <= spec["max_chars"],"sections_ok": all(s in text for s in spec["required_sections"]),"forbidden_hits": [w for w in spec["forbidden_terms"] if w in text],}def build_blind_pairs(outputs_a: list, outputs_b: list, seed: int = 42) -> list:"""Randomly pair two sets of outputs and shuffle their left-right order.Record whether each pair was flipped so results can be restored later."""rng = random.Random(seed)pairs = []for a, b in zip(outputs_a, outputs_b):if rng.random() < 0.5:pairs.append({"left": a, "right": b, "flipped": False})else:pairs.append({"left": b, "right": a, "flipped": True})return pairs@dataclassclass ScoreRecord:model: strdimension: strscore: int # 1 to 5def aggregate_scores(records: list[ScoreRecord]) -> dict:"""Aggregate mean, standard deviation, and sample count by model and dimension."""grouped: dict[tuple[str, str], list[int]] = {}for r in records:grouped.setdefault((r.model, r.dimension), []).append(r.score)summary = {}for key, scores in grouped.items():summary[key] = {"mean": round(mean(scores), 2),"std": round(stdev(scores), 2) if len(scores) > 1 else 0.0,"n": len(scores),}return summaryif __name__ == "__main__":spec = {"min_chars": 1000,"max_chars": 2000,"required_sections": ["Background", "Method", "Recommendations"],"forbidden_terms": ["empower", "all-in-one"],}sample = "Background......Method......Recommendations......"print(rule_check(sample, spec))
When you use this framework, keep a few points in mind. Rule checks only cover format and forbidden terms, so they cannot replace semantic scoring. Record the random seed used for blind pairing so results can be reproduced. If a dimension has a small sample size during aggregation, its mean has limited value, so add samples before drawing conclusions.
6. Common Mistakes When Reading Results
Looking only at total scores. Total scores hide weak areas. A model that scores high on language quality but often makes factual errors may still be unusable for technical documentation. Review results by dimension.
Ignoring statistical significance. If two models differ by 0.1 on average and the sample is small, the gap may be random noise. Use confidence intervals or non-parametric tests to check whether the difference is reliable.
Treating evaluation results as permanent. Model updates, prompt changes, and sampling parameter changes can all shift results. Rerun regression tests after each change instead of reusing old conclusions.
Using one scenario to represent all capabilities. A model that does well on press releases may not suit product manuals. Limit model selection conclusions to the scenarios you actually tested.
7. Practical Recommendations
- Define the scenario before assessing ability. Specify the task type, audience, length, and compliance requirements, then turn them into concrete rubric items.
- Build a small, high-quality evaluation set. Start with a few dozen high-quality samples to get the workflow running, then expand gradually. Quality matters more than quantity.
- Combine human and automated methods. Use human reviewers to calibrate the rubric and spot-check results. Use automated checks for routine regression testing. Use model-based evaluation for large-scale first-pass screening.
- Include cost and latency in decisions. Writing quality is only one selection factor. Call cost, response time, concurrency, and data
