Evaluating Large Language Models for Writing: General Assessment Methods and Practical Tips
Choosing the right Large Language Model (LLM) for content production requires more than subjective experience. This article introduces a systematic approach to evaluating LLMs for writing tasks, covering quantifiable evaluation metrics, the construction of a fixed benchmark dataset, prompt design strategies, engineering integration, and risk governance. By following these methods, content teams can make reproducible, data-driven decisions that balance quality, cost, speed, and compliance.
1. Background: Why Systematically Compare Writing Models
When content production teams use Large Language Models (LLMs) to assist with writing, a common practice is to select tools based on subjective experience: sticking with one for a while if it performs well, and switching temporarily when problems arise. This approach is hard to reproduce and fails to explain “why this model is better suited for us.” When the writing volume grows to dozens of articles per week and requires unified style and quality standards, model selection should become a measurable engineering problem.
Differences between models primarily manifest across four dimensions: generation quality (structural organization, language fluency, and accuracy of professional terminology), instruction adherence (ability to strictly follow constraints on word count, format, and number of paragraphs), factual reliability (handling of data, time, and citations), and operational cost (response latency, per-call pricing, and concurrency capabilities). These four factors often constrain each other. For instance, pursuing longer context windows and higher generation quality usually means slower responses and higher costs.
2. Establishing Evaluation Dimensions
It is recommended to break down the evaluation into quantifiable metrics, with clear scoring rules defined for each metric.
- Structural Integrity: Whether the output includes a title, introduction, arguments, and conclusion, and whether the hierarchy is clear. This can be scored item by item using a “required elements checklist.”
- Instruction Adherence: Word count range, output format (e.g., whether it is concatenated using specified delimiters), and whether forbidden words and expressions are respected. This item is suitable for automated programmatic detection.
- Factuality and Logic: Whether arguments are evidence-based, whether causal relationships hold, and whether there are internal contradictions. This currently relies mainly on manual review.
- Style Consistency: Whether the tone, terminology, and paragraph rhythm remain stable within the same account or column.
- Efficiency and Cost: Average response time, failure rate, number of API calls per article, and total cost.
Weights need to be determined by the business. For in-depth articles aimed at technical readers, the weight of factuality and logic should be higher; for batch-generated news summaries, the weight of instruction adherence and cost should be higher.
3. Building a Fixed Benchmark Dataset
Evaluation results are only comparable when the inputs are fixed. It is recommended to extract 50 to 100 typical tasks from historical materials, covering different topics, lengths, and difficulties, and to save reference points for each task rather than standard answers. Reference points are used to determine whether the model has covered key information, without requiring a word-for-word match with the output.
The following example demonstrates the basic structure of an automated evaluation framework. The code is vendor-agnostic, and the model invocation part is represented by an abstract function:
from dataclasses import dataclass@dataclassclass Case:task_id: strprompt: strmin_chars: intmax_chars: intrequired_sections: list[str]def score_format(text: str, case: Case) -> dict:length = len(text)within_range = case.min_chars <= length <= case.max_charsmissing = [s for s in case.required_sections if s not in text]return {"length_ok": within_range,"missing_sections": missing,"format_score": 1.0 if within_range and not missing else 0.0,}def run_benchmark(cases, models, call_model):results = []for model in models:for case in cases:output = call_model(model, case.prompt)metrics = score_format(output, case)metrics.update({"model": model, "task_id": case.task_id})results.append(metrics)return results
Automated metrics can only cover formatting and length; quality and factuality still require manual review. A double-blind approach can be adopted: reviewers cannot see the model names, score independently on a 1 to 5 scale, and then calculate the inter-rater reliability coefficient. Samples with significant disagreements are brought into group discussion, and scoring rubrics are revised accordingly.
4. The Impact of Prompt Design on Results
Often, differences in results do not stem entirely from the model itself; the way prompts are written is equally critical. In writing scenarios, the following practices typically lead to a stable improvement in output quality:
- Define role and audience explicitly: For example, “for backend engineers with two years of experience” constrains the depth of vocabulary better than simply saying “write an article.”
- Provide an outline first, then generate section by section: Step-by-step generation reduces structural confusion and facilitates human corrections at intermediate stages.
- Consolidate constraints: Word count, forbidden expressions, and output formats should be placed in the same block to avoid being scattered across multiple paragraphs and getting overlooked.
- Require marking uncertain information: For data that cannot be confirmed, require the model to mark it as “to be verified” rather than directly providing specific numbers.
Prompt templates should be version-controlled. After each modification, the benchmark dataset should be re-run to confirm that the change brings a genuine improvement, rather than just looking better on a few individual samples.
5. Key Points for Engineering Integration
Once the selection is finalized, model invocation should be encapsulated within a unified service layer, so that business code does not directly depend on a specific interface. This approach offers three benefits: changing models only requires modifying configurations; retry, timeout, and rate limiting can be implemented uniformly; and it facilitates centralized logging of API calls and costs.
The encapsulation layer typically includes the following capabilities:
- Model Routing: Selecting models based on task type. Simple rewriting can use lower-cost models, while in-depth long-form articles can use models with higher generation quality.
- Graceful Degradation: Automatically switching to a backup model when the primary model times out or returns an abnormal format, and recording the reason.
- Result Caching: Reusing results for requests with identical prompts and parameters to reduce redundant overhead. Writing tasks usually require a degree of randomness, so caching is only applicable to deterministic scenarios, such as format conversion or standardization.
- Logging and Desensitization: Logging inputs and outputs for post-mortem analysis, but sensitive information like phone numbers and internal project codes must be filtered out, and least privilege access control should be enforced for log storage.
API keys should be stored in environment variables or a dedicated key management service, and never hardcoded into code or configuration files.
6. Risks and Governance
The primary risks of writing applications are concentrated in three areas.
The first is factual errors. Models may generate seemingly plausible but non-existent data or citations, which must be manually verified before publication.
The second is copyright and compliance. If generated content closely resembles existing works for large segments, it may lead to disputes; similarity detection should be implemented.
The third is data leakage. If inputs contain unpublished business information, it is necessary to verify the data retention and usage terms of the service, and opt for private deployment or prior desensitization if necessary.
It is recommended to establish a pre-publishing checklist, including completion of fact-checking, traceability of data sources, removal of sensitive information, and sign-off by the responsible person. Automation tools can assist with these steps, but the ultimate responsibility must be borne by humans.
7. Conclusion and Practical Recommendations
Choosing a model for writing is essentially about finding the balance point suitable for your own business among quality, cost, speed, and compliance. Conclusions drawn from a fixed benchmark dataset, clear scoring rules, and small-scale trial runs are more reproducible than personal preferences.
Implementation can be advanced in the following order:
- Organize representative tasks to build a benchmark dataset.
- Define scoring dimensions and weights.
- Run the benchmark on two to three candidate models and conduct double-blind reviews.
- Select the primary and backup models, and integrate them through a unified service layer.
- Set up a periodic re-evaluation mechanism, as model version updates may alter existing performance.
This methodology does not rely on any specific product and is applicable to most content production scenarios. Once evaluation results stabilize, the team can explain the rationale behind model selection with data, rather than relying on impressions.
