Building an AI Writing Quality Benchmark with LLM-as-a-Judge

    This article explains how to use a large language model as a judge to build a reproducible writing quality benchmark. It breaks writing quality into observable dimensions covering low-quality patterns such as redundancy and empty summaries, as well as style alignment with a target author. It covers judge model selection, scoring protocols, structured JSON output, pairwise comparison, context engineering with isolated author samples, dashboards with human review loops, a reproducible experiment workflow, and common pitfalls to avoid.

    1. Background: Why “AI writing feels tiring to read” needs to be quantified

    After using AI coding tools and conversational models extensively, a common complaint emerges: users want results and key actions, but are forced to read a lot of repetitive filler—restating the request, announcing what will be done, summarizing what was already said after finishing, and closing with a disclaimer-style wrap-up. The density of useful information drops, and the reader’s attention cost rises sharply.

    The opposite end is creative writing: for the same topic, different models produce texts that differ widely in pacing, imagery density, sentence-length distribution, and emotional progression, yet traditional evaluation often gives only a vague “good/bad.” The problem is that writing quality is highly subjective, but subjective does not mean unmeasurable. It just needs to be decomposed into several observable, annotatable, and countable proxy metrics.

    The core engineering question here is: how to use a large model as a judge to build a reproducible writing quality benchmark that captures low-quality traits like redundancy, boilerplate, and empty summaries, while also characterizing whether the output is close to a target author’s personal style.

    2. Breaking “writing style” into observable dimensions

    To get stable judgments from a judge model, the first step is not writing prompts but defining dimensions. In practice, two groups work well.

    The first group is low-quality writing traits, commonly called content padding, which can be refined into six判定 elements:

    1. Redundant restatement of requirements: repeating information the user already knows at the start.
    2. Redundant process preview: declaring “I will do something” and then immediately doing it.
    3. Redundant result restatement: fully repeating content already given above after finishing.
    4. Empty transition sentences: connections and setup that carry no information.
    5. Excessive disclaimers and self-limiting statements: stacked warnings that do not match the task’s risk.
    6. Templated structure: applying a fixed subheading skeleton regardless of content.

    The second group is style alignment, used to judge whether the output is close to the target author’s existing text:

    1. Sentence-length distribution and punctuation habits;
    2. Person and tone (first-person narration, use of imperative sentences);
    3. Terminology density and preference for technical words;
    4. Paragraph length and tendency to use lists;
    5. Mode of argument progression (conclusion first then evidence, or setup first then closure);
    6. Rhetorical preferences (metaphor density, whether exaggerated wording is avoided).

    Dimension definitions must be written as “decidable behavioral descriptions,” not adjectives. For example, do not write “verbose language”; instead write “the same fact appears once at the beginning and once at the end.”

    3. Judge model selection and scoring protocol

    The judge itself is a language model, so it has systematic biases: preference for longer answers, preference for text similar to its own style, position bias (earlier content is overvalued), and scores clustering toward the middle. Engineering needs targeted constraints.

    Key points include:

    • Force structured output. Have the judge return strict JSON with fixed fields, avoiding free text that causes parsing failures.
    1. {
    2. "slop": {
    3. "preamble": 0,
    4. "restatement": 2,
    5. "summary_echo": 1,
    6. "empty_transition": 0,
    7. "over_disclaimer": 1,
    8. "template_skeleton": 2
    9. },
    10. "style_match": 0.62,
    11. "evidence": ["Restates requirements in the first paragraph", "Repeats conclusion at the end"],
    12. "confidence": 0.7
    13. }
    • Score each dimension independently; forbid a single overall impression score to reduce halo effects.
    • Provide anchor examples (a short sample text for each score value), turning abstract scores into comparative judgments.
    • Use pairwise comparison instead of absolute scoring. Have the judge choose the higher-information-density output between A/B, then aggregate into a ranking, which is usually more stable than direct scoring.
    • Randomize position and evaluate in both directions. Swap the A/B order and evaluate once each; if the conclusion flips, mark it as “uncertain” and exclude it from statistics.
    • Sample multiple times and take the median, output confidence, and route low-confidence samples to humans.

    4. Context engineering: giving the judge “author samples”

    Style alignment cannot be judged out of thin air; reference corpus must be provided. The approach is to split several of the target author’s historical texts into fragments, attach metadata (genre, length, writing scenario), and state clearly in the prompt “the following is style reference, used only for comparison, not as content to be evaluated.”

    Also avoid two traps: one is reference corpus that is too long, causing attention dilution—usually select representative fragments covering different genres; the other is mixing the text to be evaluated into the reference, causing self-confirmation. In engineering, use placeholders to isolate:

    1. [REFERENCE_STYLE_BEGIN]
    2. ...author's historical fragments...
    3. [REFERENCE_STYLE_END]
    4. [CANDIDATE_BEGIN]
    5. ...text to be evaluated...
    6. [CANDIDATE_END]
    7. Compute style features only from the REFERENCE section, and assess padding in the CANDIDATE section.

    5. Dashboards and the human review loop

    Automated evaluation without visualization and a review entry point is quickly abandoned because “nobody trusts the scores.” A practical dashboard has at least four layers of views:

    • Overview layer: mean of each dimension, failure rate, confidence distribution;
    • Sample layer: highlighted annotations for a single text, directly marking sentences judged as redundant;
    • Comparison layer: side-by-side differences of multiple candidates under the same prompt;
    • Review layer: humans keep, modify, or reject the judge’s conclusion, and write back the reason.

    The key is turning human feedback into an asset. Rejected samples should automatically enter a “hard case set,” used for subsequent prompt iteration and anchor updates, forming a loop. The dashboard itself can be generated by AI coding tools, reading documents and chart data through extension interfaces, achieving a review experience of “deciding chart by chart whether to keep or delete and leaving annotations”; such integration only requires a one-time authorization configuration in the development environment and does not involve any scoring logic itself.

    6. Reproducible experiment workflow

    It is recommended to implement in the following order:

    1. Freeze the dataset: fix the prompt set and candidate outputs, with version control.
    2. Freeze the judge configuration: model version, temperature, and prompt template stored together.
    3. Batch run and store: raw JSON, raw text, and elapsed time stored uniformly for traceability.
    4. Consistency check: sample and compute the correlation between judge and human annotation; if consistency is too low, return to dimension definitions.
    5. Regression gate: connect key dimension thresholds to continuous integration, blocking merges when writing quality drops.

    A minimal implementation skeleton:

    1. def evaluate(prompt, candidate, style_refs, judge):
    2. raw = judge(PROMPT_TEMPLATE.format(
    3. refs=style_refs, cand=candidate, task=prompt))
    4. r = parse_json(raw)
    5. if r["confidence"] < 0.6:
    6. return {"need_human": True, "raw": r}
    7. return {"need_human": False, "score": aggregate(r)}

    7. Common pitfalls and tuning directions

    • Chasing a single total score. A total score hides problems; dimension scores are actionable.
    • Having the judge do both generation and scoring. The judge prompt should not give “a better way to write,” or it will contaminate judgment.
    • Ignoring length bias. Statistics can be stratified by length, or the prompt can explicitly state “length is not a basis for quality.”
    • Missing anchors. Scores without sample comparison are almost irreproducible.
    • No hard-case feedback loop. The value of an evaluation system comes from continuous calibration, not a one-time build.

    8. Conclusion

    Using a model to judge models is essentially translating subjective reading experience into engineering signals with confidence, regression, and gating. The real difficulty is not calling the judge interface, but whether dimension definitions are decidable, whether anchors are sufficient, whether context is isolated, and whether human review forms a loop. Doing these four things solidly turns writing quality from “it feels worse” into “which dimension dropped by 0.2,” and gives the team a handle for continuously improving writing style.