Evaluating LLM Writing Capabilities: From Model Selection to Prompt Engineering Practice
A practical guide to evaluating the writing capabilities of large language models. This article explains why there is no single "best writing model," breaks writing quality into six measurable dimensions, outlines a reproducible evaluation workflow, and covers prompt engineering techniques and strategies for maintaining quality in long multi-turn conversations. Includes working code examples for automated constraint checking and prompt assembly.
Evaluating LLM Writing Capabilities: From Model Selection to Prompt Engineering Practice
1. Start with the Problem: There Is No Universal Ranking for Writing Ability
“Which large language model writes best?” is a common question, but no single answer holds up. Writing tasks involve multiple independent dimensions, and different models perform very differently across them. One model may produce refined, natural English narrative writing while struggling with the formulaic conventions of formal documents or marketing copy; another may maintain coherence across long-form content but lack flexibility in controlling short-sentence styles.
Two main factors drive these differences. First, training data varies in language and genre distribution, so models differ in how familiar they are with particular writing styles. Second, alignment approaches and default output styles differ, meaning the same prompt can yield very different textual quality across models. Model selection should therefore start from the task itself, with community reputation serving only as a secondary reference.
2. Breaking Down the Dimensions of Writing Ability
When evaluating writing capability, consider at least the following six dimensions.
2.1 Language and Regional Expression
Check how natural the output is in the target language, including word choice, grammar conventions, use of idioms and set phrases, and whether translation-style artifacts appear. For Chinese content, pay particular attention to formulaic writing—excessive boilerplate, repetitive paragraph structures, and overused parallel constructions. These issues directly undermine credibility in the eyes of readers.
2.2 Style Controllability
Given a style requirement (e.g., austere, restrained, humorous, academic), can the model maintain that style consistently instead of drifting back to its default tone after a few paragraphs? You can run controlled tests using the same topic with different style instructions and observe where and how often style drift occurs.
2.3 Long-Form Coherence
The core risks in long-form writing are internal contradictions, drift in characters or arguments, and structural imbalance. When evaluating, check whether terms, numbers, and character relationships established at the beginning remain consistent at the end. For technical articles, also verify that concept definitions stay uniform across sections.
2.4 Instruction Following
Are constraints such as word count, paragraph count, forbidden words, and output format actually met? Writing tasks often carry multiple constraints simultaneously, and the constraint satisfaction rate is a quantifiable metric well suited to automated evaluation.
2.5 Multi-Turn Conversation Stability
As the number of conversation turns grows, some models exhibit context forgetting, repetitive output, or semantic confusion. For writing workflows that require iterative revision, this dimension matters especially.
2.6 Cost and Response Efficiency
This covers per-call cost, time-to-first-token, overall throughput, and service availability. Writing tasks can usually tolerate longer latency, but bulk content production is far more sensitive to cost and stability.
3. Building a Reproducible Evaluation Process
Subjective impressions are not enough to support selection decisions. Teams can establish an evaluation process in four steps.
Step 1: Build a layered test set. Select prompts along three dimensions—genre (narrative, expository, argumentative, marketing), language (Chinese, English, etc.), and length (short, medium, long)—ensuring every combination has enough samples. In practice, prepare at least five prompts per combination, with no fewer than thirty samples overall.
Step 2: Define scoring rubrics. Set a 1-to-5 scale for each dimension with a written description of what each score means. For example, for “style controllability,” a 5 means the style is uniform throughout and matches the requirement, a 3 means noticeable drift across the text, and a 1 means the style requirement was essentially ignored.
Step 3: Blind review and cross-validation. Hide model identities, have at least two reviewers score independently, and measure scoring agreement. Samples with large discrepancies should be discussed to align standards before entering the statistics stage.
Step 4: Record and compare. Aggregate results into tables and compute means and variances per dimension and per scenario rather than looking only at total scores. High variance on a dimension signals unstable performance, which is often more concerning than a low average.
Below is a simplified automated checking example for batch model calls and constraint satisfaction logging. Automated metrics are useful for screening out obvious problems, but quality judgments still require human scoring.
import csvfrom dataclasses import dataclass, field@dataclassclass Sample:task_id: strgenre: strprompt: strconstraints: dict = field(default_factory=dict)def call_model(model_name: str, prompt: str) -> str:# Replace with your team's actual model service call logicraise NotImplementedErrordef check_constraints(text: str, constraints: dict) -> dict:results = {}if "min_chars" in constraints:results["min_chars"] = len(text) >= constraints["min_chars"]if "forbidden_words" in constraints:results["no_forbidden"] = not any(w in text for w in constraints["forbidden_words"])return resultsdef run_eval(models, samples, out_path):with open(out_path, "w", newline="", encoding="utf-8") as f:writer = csv.writer(f)writer.writerow(["model", "task_id", "genre", "pass_rate", "chars"])for model in models:for s in samples:text = call_model(model, s.prompt)checks = check_constraints(text, s.constraints)pass_rate = sum(checks.values()) / len(checks) if checks else 1.0writer.writerow([model, s.task_id, s.genre, round(pass_rate, 2), len(text)])
4. How Prompt Design Affects Writing Quality
The same model can produce very different output quality depending on how the prompt is written. A well-structured prompt typically includes these elements: role, audience, goal, structure, style, and constraints. Here is a prompt template for a technical article:
Role: An experienced backend technical writerAudience: Engineers with some experience who want to understand selection rationaleGoal: Explain the applicable scenarios and limitations of a technical solutionStructure: Background, solution comparison, implementation steps, risks and mitigationsStyle: Direct, minimal embellishment, no more than four sentences per paragraphConstraints: At least 1500 words; no metaphors; data must cite sources or be marked as assumptions
For style control, providing sample text works better than piling up adjectives. Vague words like “premium” or “sharp” are hard for models to execute consistently, whereas observable features—sentence length, paragraph length, use of lists, presence of first person—are much easier to follow. Teams can curate satisfying passages into a sample library and provide them as style anchors alongside the prompt.
5. Handling Quality Degradation in Long Conversations
In multi-turn conversations, models gradually forget earlier settings or introduce contradictions during revisions. Common mitigation strategies include:
- Segmented generation: Split the long document into sections, generate each independently, and include the full outline plus the current section’s requirements in each prompt.
- State summaries: After each section, extract the established terms, characters, numbers, and conclusions into a brief summary that serves as preceding context for the next section.
- Periodic resets: When the conversation gets long and output starts drifting from requirements, start a new session carrying only the summary and constraints.
- Repeating key constraints: Restate constraints that must never be violated (such as term definitions and data conventions) in every prompt.
The following example shows how to assemble a prompt with a summary:
def build_next_prompt(summary: str, section_goal: str, constraints: str) -> str:return ("Established settings and terminology:\n"f"{summary}\n\n"f"Goal for this section: {section_goal}\n"f"Constraints: {constraints}\n""Keep the above settings consistent. Do not introduce names, numbers, ""or terms not present in the summary.")def update_summary(summary: str, new_facts: list[str]) -> str:# new_facts can be extracted from generated sections manually or by rulesreturn summary + "\n" + "\n".join(f"- {fact}" for fact in new_facts)
6. Selection Recommendations by Scenario
Different writing scenarios place very different demands on model capabilities. The following categories can serve as a reference:
- Long-form narrative and stylized writing: Prioritize style controllability and long-form coherence, and lock in style with sample text.
- Chinese technical documentation and expository writing: Focus on the accuracy of technical terminology and structural convention. Providing source material snippets or a knowledge base as factual grounding can significantly reduce factual errors.
- Marketing and short-form copy: Pay attention to diversity across multiple output versions, and add a compliance review step.
- Bulk content production: Treat cost, latency, and stability as primary metrics. Multi-model routing works well—route simple tasks to cheaper models and complex tasks to stronger ones.
If your team builds a content production system on Baidu AI Cloud, you can migrate this evaluation process to the model services available on the platform and compare different models using the same test set. Selection decisions should be based on your team’s own test data.
7. Common Pitfalls
- Drawing conclusions from one or two samples. With small samples, randomness distorts results. Expand the test set and sample multiple times.
- Treating default output as the capability ceiling. Results can often improve significantly through prompt optimization, sample-based guidance, and segmented generation.
- Neglecting fact-checking. Fluent writing does not mean accurate content. Numbers, references, and factual claims in the article should always be verified.
