Apply to my task
arXiv:2507.10906 ★ 79 Jul 15, 2025

LLM as a Judge: Rating Text Quality Better Than Any Automatic Metric

Key result

An LLM can do more than write; it can judge. What's more, it beats every existing automatic text-evaluation metric and comes close to a human expert. The method lets you turn an LLM into an 'expert critic' for any type of text, with no fine-tuning and no specialists to hire. The trick: combining step-by-step reasoning (CoT) with benchmark examples (few-shot) makes the model justify its score methodically instead of guessing it, and the quality of the breakdown jumps.

Evaluating Generated Commit Messages withLargeLanguageModels

Key Aspects of the Study:

The researchers asked: can a Large Language Model (LLM) judge the quality of text (using code commit messages as the test case) as well as an experienced human can? They found that an LLM not only can, but outperforms all existing automatic metrics, coming close to human-level evaluation quality.

Key Result: An LLM achieves its best results when the prompt combines two techniques: Chain-of-Thought (asking it to reason step by step) and Few-Shot (providing several examples of good and bad answers).


The Core of the Method, Explained:

The essence of the method is to turn the LLM from a simple "chat partner" into an "expert evaluator" that can analyze text by your rules. Instead of asking the LLM "is this good text?", you build a prompt that teaches the model exactly what you consider good text and forces it to justify its rating.

The technique rests on three pillars:

  1. Task decomposition: Instead of an overall "good/bad" rating, you break it down into specific, clear criteria. In the study these are "What changed?" (What) and "Why did it change?" (Why). For evaluating a business email, they might be "Politeness," "Clarity of purpose," "Call to action."

  2. Forcing it to reason (Chain-of-Thought, CoT): You directly order the model in the prompt: "First give your reasoning for each criterion, and only then assign the final score." This makes the LLM analyze the text methodically instead of guessing the answer, which dramatically improves the quality and objectivity of the evaluation.

  3. Calibration through examples (Few-Shot Learning): You give the model 2-3 examples of what you consider "excellent" and "bad" text by your criteria, with a short explanation. It's like showing a new employee samples of good and poor work. The model "calibrates" to your expectations and starts rating new text against the benchmarks you provided.

Combining these three elements gets you not just a score from the LLM but a detailed, well-argued breakdown comparable in quality to an analysis from a real expert.


Practical Applicability:

  • Direct applicability: Any user can immediately use this approach to create a "personal critic" or "editor." You can evaluate anything: work emails, social media posts, résumés, marketing copy, student essays. Just define the criteria, add the phrase "Think step by step" to the prompt and include a couple of examples. It's a ready-made template for hundreds of practical tasks.

  • Conceptual value: The study offers three key insights:

    1. The LLM as a second-order tool: Its main strength lies not only in generating content but in analyzing and evaluating it.
    2. Process matters more than the result: By making the LLM show its reasoning process (CoT), we get a better final result.
    3. Context is everything: By providing examples (few-shot), we set the right context and quality standard, making the evaluation relevant to our task instead of abstract.
  • Adaptation potential: The method is completely universal. Instead of a "commit message," you can plug in any type of text. The adaptation mechanism is simple:

    1. Define what you're evaluating (for example, "a customer support reply").
    2. Write 2-4 key evaluation criteria (for example, "empathy," "completeness of the answer," "speed of resolution").
    3. Find or write 1-2 examples of an "ideal" and a "bad" response.
    4. Put it all together in one prompt using the template from the example below.

A Practical Example:

You are an experienced HR specialist and career consultant. Your task is to evaluate a candidate's cover letter for a "Marketing Manager" position.

Rate the letter on a 10-point scale based on three key criteria:
1.  **Relevance:** How well the letter is tailored to this specific position and company.
2.  **Structure and clarity:** Is the letter easy to read, does it have a clear logic.
3.  **Motivation:** How convincingly the candidate demonstrates their interest and their value to the company.

**INSTRUCTIONS:**
First, carry out a step-by-step analysis (Chain-of-Thought). In the "Reasoning" section, break down the letter in detail on each of the three criteria. Only after that, in the "Result" section, output the scores in numeric format.

---
**Calibration examples (Few-Shot):**


"Hello. I saw your job posting on your website. I have 5 years of experience in marketing. My résumé is attached. Ready for an interview."
*   **Analysis of the bad example:** Relevance - 1/10 (generic, doesn't mention the company), Structure - 4/10 (too short), Motivation - 1/10 (not expressed).



"Dear [Company name] team, I've been following your projects with great interest, especially the launch of [Product name]. My 5 years of experience in B2B marketing, including successfully running campaigns with ROI >200%, will allow me to tackle the challenges listed in the marketing manager job description effectively. I'm confident my content strategy skills will help strengthen your market presence. More about my case studies in my résumé."
*   **Analysis of the good example:** Relevance - 9/10 (mentions the company and the product), Structure - 10/10 (clear and to the point), Motivation - 9/10 (shows value to the company).

---

**LETTER TO EVALUATE:**
"Good afternoon! I'm interested in your marketing manager position. I've worked in this field for a long time and believe my experience will be useful to you. I'm a strong team player and a fast learner. I would like to apply my knowledge at your company. Thank you."

Why It Works:

This prompt is effective because it doesn't just ask the LLM for a score; it builds a complete working environment for it: * Role ("HR specialist"): Gives the model the right context and a "professional lens" for the analysis. * Decomposition ("Relevance, Structure, Motivation"): Breaks a complex task into simple, clear, measurable parts. The model doesn't have to guess what a "good letter" is; it has clear criteria. * Chain-of-Thought ("First, carry out a step-by-step analysis"): This instruction makes the model spell out the logic behind its conclusions, which lowers the odds of random or superficial judgments and makes the result verifiable. * Few-Shot ("Calibration examples"): The bad and good letter examples work as benchmarks. They "show" the model what quality level corresponds to a "1/10" and what to a "9/10," calibrating its internal scale to your requirements.


Another Practical Example

You are an experienced social media manager who specializes in engaging Instagram content. Your task is to evaluate an idea for a post on a travel blog.

Rate the idea on a 10-point scale using three criteria:
1.  **Originality:** How fresh and non-clichéd the idea is.
2.  **Engagement potential:** How likely the post is to rack up likes, comments and saves.
3.  **Visual appeal:** How easy it is to imagine the photos or videos that could be shot for this post.

**WORKFLOW:**
1.  **Reasoning (Chain-of-Thought):** Write a short analysis of the idea on each of the three criteria. Point out strengths and weaknesses.
2.  **Recommendations:** Give 1-2 tips on how to improve this idea.
3.  **Result:** Output the final scores for each criterion.

---
**Examples to understand the task (Few-Shot):**


Idea: "A post about the Eiffel Tower."
*   **Analysis:** Originality - 2/10 (cliché), Engagement - 3/10 (too general), Visuals - 5/10 (standard photos).



Idea: "A post: 3 little-known spots in Paris with the best view of the Eiffel Tower and no tourist crowds. A side-by-side comparison of photos from each angle."
*   **Analysis:** Originality - 9/10 (useful, niche content), Engagement - 10/10 (encourages saves and comments), Visuals - 10/10 (a clear and interesting photo series).

---

**IDEA TO EVALUATE:**
"Make a post about where to eat well in Rome."

Why This Example Works, Explained.

The mechanism behind this prompt is identical to the previous one and rests on the same principles proven in the study: * Getting specific through role and criteria: The "social media manager" role and the "Originality, Engagement, Visuals" criteria turn the abstract request "rate this idea" into a concrete, professional task. The model knows what angle to look from and what to pay attention to. * Structured thinking (CoT): Requiring analysis first and the score second makes the model switch on its analytical abilities. It can't just say "the idea is good"; it has to justify that point by point, which deepens the analysis. * Setting the quality bar (Few-Shot): Comparing a cliché idea ("a post about the Eiffel Tower") with a creative one ("3 little-known photo spots") gives the model a clear sense of exactly what you value. It learns to tell superficial content from useful, engaging content and applies that standard to the new idea. As a result, the evaluation is no longer generic but focused on creating effective social media content.

Usefulness Score: 95

02

Main Evaluation Criteria

  • A. Relevance to prompting techniques: Very high. The study directly compares and proves the effectiveness of key prompting techniques: Chain-of-Thought (CoT) and Few-Shot. It shows that combining them gives the best result.
  • B. Improving the quality of conversational answers: High. Although the study focuses on an evaluation task rather than dialogue generation, it proves that with the right prompt you can get an LLM to perform complex cognitive tasks (analysis, criteria-based evaluation) at a human level. This principle carries over directly to generating high-quality, well-argued answers in chat.
  • C. Direct practical applicability: Very high. Users can apply the findings immediately without any code or special tools. The "CoT + Few-shot" technique for evaluating or analyzing text is a ready-made pattern for use in any chatbot.
  • D. Conceptual value: Exceptionally high. The study gives users a powerful mental model: an LLM is not just a text generator but a reasoning and evaluation engine that can be "programmed" with prompts. It also highlights important limitations (instability, non-determinism) that every user should know about.
  • E. New useful practice (clustering): The work falls into several key clusters at once:
    • Cluster 1 (Phrasing techniques): Direct proof of the effectiveness of CoT and few-shot.
    • Cluster 2 (Behavioral patterns): Reveals "semantic divergence" (the same thing can be described in different ways) and explains why LLMs beat older metrics.
    • Cluster 7 (Reliability and stability): An entire section (RQ3) is devoted to analyzing the stability, reproducibility and fairness of the LLM evaluator, which provides valuable knowledge about its limitations.
  • Practicality checklist: Yes, the study provides ready-made conceptual constructions (CoT, few-shot), shows how to structure complex requests (decomposition into "What" and "Why" criteria), reveals non-obvious features (the LLM as evaluator) and offers ways to improve accuracy (combining techniques). It gets +15 points on top of the base score.
03

Numerical Usefulness Score

Arguments for a high score (95/100): This work is a gold mine for advanced LLM users. It empirically proves the effectiveness of the two most powerful prompt engineering techniques (CoT and Few-shot) and, more importantly, offers a new and extremely useful scenario for applying them: using the LLM as a customizable expert evaluator. This isn't just a prompt upgrade; it's the discovery of a new way to interact with the model. The conceptual value (understanding the limitations and semantic divergence) is huge and directly affects how users will phrase requests and interpret answers.

Counterarguments (why the score could be lower): * Narrow subject area: The study focuses on commit messages in software development. An inexperienced user might see the title and decide it's "not for them," missing the universal principles hidden inside. * Academic language: The paper is written in dense scientific language. To get practical value out of it, the user either needs to read it carefully or get an adapted summary like this one. Reading it directly can be a struggle.

Counterarguments (why the score could be higher): A score of 95 is already very high. Bumping it to 98-100 would be possible if the study had been written from the start as a guide for a broad audience, with examples from different fields rather than just IT. Still, in substance and in the universality of its conclusions, it's one of the most useful studies for prompt engineering practice.


Research digest

Key result

An LLM can do more than write; it can judge. What's more, it beats every existing automatic text-evaluation metric and comes close to a human expert. The method lets you turn an LLM into an 'expert critic' for any type of text, with no fine-tuning and no specialists to hire. The trick: combining step-by-step reasoning (CoT) with benchmark examples (few-shot) makes the model justify its score methodically instead of guessing it, and the quality of the breakdown jumps.

Principle

Don't ask 'is this good text?'. Say: here are my criteria, here are examples of good and bad, think step by step, and only then give a score. It's like onboarding a new employee: first you show what counts as a reject and what counts as the gold standard, then you ask them to explain their decision out loud. A bare 'rate this from 1 to 10' gets you garbage. A structured prompt gets you an expert-level breakdown.

Why it works

CoT keeps the model from guessing. Without it, an LLM often spits out a result and then bends the logic to fit, a built-in problem of autoregression. Requiring 'reason first' flips that order: the model builds its arguments before the conclusion. Few-shot benchmarks work as an internal compass: the model sees that a '2/10' looks like this and a '9/10' looks like that, and stops floating in abstractions. Together the two techniques cover both weak spots at once, which is exactly why the combination beats either one alone.

When to apply

Anywhere you need to rate text against set standards → software development (commit messages, documentation), especially when you want to automate review without hiring a reviewer → HR (cover letters, candidate answers) → marketing (posts, email campaigns, product descriptions) → education (essays, assignments) → customer support (agent replies). NOT a fit for checking factual accuracy: here an LLM is no more reliable than conventional methods.

Mini recipe

1. Define the object: what exactly you're rating: a letter, a post, a support reply, a commit message. 2. Write 2-4 criteria: concrete and measurable. Not 'quality' but 'relevance to the job posting' or 'explains the reason for the change'. 3. Find benchmarks: one example each of bad and good text by your criteria, with a short explanation of why the bad one is bad. 4. Assemble the prompt: expert role + criteria + examples + the instruction 'first reason through each criterion, then give the score'. 5. Submit the text for evaluation: get a well-argued breakdown, not just a number.

Examples

[BAD]: `Rate this commit message: 'fix bug'. Good or bad?` [GOOD]: `You are an experienced developer. Rate the commit message on two criteria: 1) does it explain WHAT changed, 2) does it explain WHY. Bad example: 'fix', 0/10, explains nothing. Good example: 'Fix null pointer in auth to prevent crash on login', 9/10, clear what and why. First analyze each criterion separately, and only then give the final score. Text to evaluate: 'fix bug'`

In plain words

The point is that LLMs aren't just text generators; set up correctly, they make perfectly sane judges and inspectors. When we ask a model to rate the quality of some work, it doesn't read tea leaves; it uses a professional lens. Give it the role of an HR specialist, and it stops hunting for commas and starts looking at the text as a hiring tool. That's a fundamental shift: the model judges not the "beauty" of the words but their functional fitness for a specific task.

It's like hiring an experienced chef to judge a rookie's dish. If you just ask "so, how is it?", he'll say "fine." But if you hand him a checklist (doneness, salt balance, plating) and show him an example of the perfect steak, he'll take that dish apart down to the atoms. Calibration through examples turns a subjective opinion into clear-cut expertise, where every point is backed by facts, not mood.

To keep this setup from screwing up, it uses criteria decomposition and the Chain-of-Thought method. We make the model "think out loud" first, breaking down relevance, structure and motivation separately, and only then deliver a verdict. That rules out the model giving a high score just because the text is polite. When the LLM talks through its logic, it catches its own mistakes (technically everything's there, but zero motivation), and the final score drops accordingly.

Although the study put commit messages through the wringer, this universal pattern applies to anything: from code review to analyzing cold sales emails. The principle is the same everywhere: assign a role, give clear scales to measure with, and show a benchmark. LLM-as-a-Judge works more consistently than any human assistant, because a model's eyes don't glaze over after the hundredth text, and its criteria don't shift depending on whether it's had its coffee.

Bottom line: stop judging content "by eye" or asking a model to just "make it good." You need a system of role, criteria and examples that turns messy text into measurable data. Whoever learns to calibrate models this way gets automated quality control that never sleeps and never slips. Everyone else will keep getting random junk from AI and complaining that it makes no sense.

AI lab assistant

Apply this study to your task

Describe what you're working on. AI takes the method and the measured results from this paper and adapts them to your case, or writes a ready prompt built on them.

Based on LLM as a Judge: Rating Text Quality Better Than Any Automatic Metric arXiv:2507.10906

Sign in to apply this study New accounts get 50 free credits.

Get the week’s best papers by email

One email on Sundays with the highest-rated new techniques. Unsubscribe with one click.