LMUNIT: Fine-grained Evaluation with Natural Language Unit Tests
Paper · 2025 · Jon Saad-Falcon, Rajan Pathe Vivek, William Berrios et al.
Summary
An answer can be accurate and still leave out what the reader asked for. It can cover the right points while making one consequential factual error. An overall rating can register either problem, but it gives the reader little basis for deciding what needs to change. LMUnit is an evaluator designed to make that distinction visible. The authors propose writing the requirements for an answer as natural language unit tests. Each test states a criterion a reader can inspect and revise, such as whether an explanation covers a required topic or whether a claim is supported by the material supplied with the question. The evaluator scores each test separately. The resulting scores can stand on their own or contribute to an overall judgment.
The authors train LMUnit to make several kinds of judgment with the same scoring procedure. Human ratings teach it to place answers on a scale, preference pairs teach it to distinguish better answers from worse ones, and synthetic examples give it practice with narrow criteria and deliberately varied answers. Some examples include a written rationale. At evaluation time, LMUnit can return a score directly or explain how the answer meets the criterion before scoring it. The score uses the full distribution over possible rating tokens, so two answers can receive different numerical scores even when the evaluator would print the same rating for both.
The strongest results depend on how the evaluation is framed. The LLaMA3.1-70B version records Pearson correlation scores of 72.03 on FLASK and 67.69 on BiGGen-Bench, where each assessment already comes with a criterion. On RewardBench 2, the Qwen2.5-72B version reaches an overall score of 82.1 using a criterion tailored to each subset, the highest result in the paper’s comparison. On the original RewardBench, combining broad criteria works best when their weights are learned from preferences. Automatically generated questions tailored to individual prompts do considerably worse in that experiment, especially on difficult comparisons.
Two studies examine what people gain from seeing and using explicit criteria. In the annotation study, agreement on the preferred response is 71% with unstructured judgments and 86% when annotators answer expert-written tests before choosing. In a separate study, developers working on their own systems identify an average of 7.4 error modes with LMUnit, compared with 3.2 using a conventional judge. These studies test different uses of the same idea. One makes the grounds for a human judgment more consistent, while the other makes an automated judgment easier to act on. Both depend on the quality of the criteria. The authors find that writing suitable tests for individual queries remains a challenge, and that asking the evaluator to produce a rationale can lower scoring performance even when the explanation itself reads well.
Deep dive: LMUNIT: Fine-grained Evaluation with Natural Language Unit Tests
LMUnit evaluates responses with plain-language tests, combining ratings, preferences, and rationales to make judgments more specific. · about 38 minutes to read
The problem and its context
An overall score leaves the cause of failure open
The paper concerns the quality of an answer in relation to a request. Factual accuracy matters, but so do the reasoning that supports an answer, the coverage of the request, and the suitability of the response for its intended use. The relative importance of these properties can change across applications or even across questions in the same application. A short response might be appropriate for a direct factual query. A question asking how a conclusion was reached gives the intermediate explanation a different role. A system that evaluates both responses with a generic quality score has to make that distinction somewhere, even when the basis for the distinction never appears in its output.
This matters in development because an evaluator serves at least two purposes. It can tell a team which of two versions tends to perform better, and it can help the team diagnose a particular failure. The first purpose can frequently be served by rankings. The second requires enough detail to connect a judgment to something the team can examine in an answer or change in its workflow. When both versions produce fluent text, the consequential difference may be an omitted qualification, an unsupported inference, or a request that was answered only in part. A preference label records which response won. It leaves open whether the decision turned on any of those faults.
Human judgment is the reference point in the paper’s account of evaluation. People can read a request, consider its purpose, and accept a good answer expressed in unexpected language. Collecting that judgment repeatedly is expensive. The authors also describe prior work in which agreement becomes difficult when the differences between answers are subtle or when raters receive a broad task and must supply their own priorities. In a pairwise task, someone can favor the answer that addresses the question most directly while someone else favors the answer with stronger supporting detail. Both judgments can make sense under the instructions. Understanding the disagreement requires seeing which properties each person considered and how those properties affected the choice.
What earlier evaluators made visible
Reference-based methods compare a candidate with an answer or text already available to the evaluator. The paper describes word overlap measures such as BLEU and ROUGE as early examples of automatic evaluation, alongside methods using learned representations or predictions about text. Matching a reference is informative when the reference provides evidence relevant to the task. Open-ended dialogue illustrates the difficulty with using similarity as a general measure of response quality. Different answers can all be appropriate, and a response can share words with a reference while failing at the specific requirement that matters to the user. Prior studies of unsupervised dialogue evaluation are part of the authors’ case for making the criterion explicit. BLEU score · How NOT To Evaluate Your Dialogue System
A prompted judge can read the original request, a candidate response, and an instruction describing what to evaluate. The paper discusses work using examples, evaluation rubrics, or chain-of-thought prompts, which ask the judge to work through a judgment in text. It also discusses specialized judges trained for particular evaluation tasks. This family of methods makes it possible to express requirements in ordinary language and has shown agreement with human assessments in prior work. Its performance can vary across tasks. The biases discussed in the paper include favoring a response because of its position in a comparison, its length, or an association with the judge itself. Expressing a criterion in a prompt gives the user a way to ask for a different judgment. How reliably the judge follows that instruction is a separate question. G-Eval · Can Large Language Models Be an Alternative to Human Evaluations?
Reward evaluators approach the problem through examples of human preferences. In the usual pairwise setup, the training signal indicates which response a person preferred for a given request. A scorer learns to give the preferred response a higher value. That can capture distinctions hard to write down in advance, and it makes the scores suitable for use as feedback during training. Yet a preference between two whole responses generally says little about which property settled the comparison. The paper points to inconsistent preference labels and reliance on incidental cues such as response length. Even a scorer that reproduces many preferences may give a user little control over which dimension it considers in a particular evaluation. Deep reinforcement learning from human preferences
Earlier work had already treated evaluation as a collection of smaller judgments. The paper traces that approach from fixed dimensions in dialogue evaluation to criteria that change with the task. CheckList organized behavioral tests around particular capabilities. TICK used generated checklists, and CheckEval broke assessment into binary questions, reporting greater agreement among automated evaluators and less variation in their scores. The authors also draw an analogy with tests for generated code. A compiler-compatible test can make an expected behavior concrete enough to check. A natural language test carries over the idea of inspecting one property at a time. Its verdict still requires interpretation, as when a person or judge decides whether a response adequately explains a causal connection. CheckList
A further line of work tried to make evaluators useful across scoring formats. Prometheus brought direct assessment and pairwise ranking into one evaluator through weight merging. Direct Judgement Preference Optimization adapted judges using preference optimization. The LMUnit authors place their work at the intersection of this effort and criteria-based evaluation. They want one scorer to follow a written criterion, make distinctions within a rating scale, and learn from comparisons supplied by people. They also want the relative importance of several criteria to be adjustable after their individual scores are available. A document can therefore be assessed against the same tests under different priorities, or against a more precise version of a test while the other criteria are retained.
Where judgment enters the design
The proposal makes several decisions separately visible. A test identifies the property being examined. A rubric can say what better or worse performance on that property looks like. A score expresses how well the answer meets the test. An explanation can indicate what evidence the evaluator associated with the score. If the task calls for a single overall judgment, the relative weights make explicit how the individual assessments contribute to it. Earlier approaches, as the paper characterizes them, addressed various subsets of these decisions. LMUnit tries to support them within the same evaluation procedure.
Consider a response to a question about integrating healthcare analytics with electronic records, an example the authors use in their developer study. A broad judgment can account for whether the response generally addresses the question. Separate tests expose different aspects of that same answer, such as whether it explains a benefit to patient care or discusses how technical standards help systems work together. If the application also requires coverage of a specific policy or privacy concern, a test can name that requirement directly. Seeing which checks the response satisfies is valuable even if a team ultimately needs one score. The team can trace the score back to a visible set of criteria and reconsider whether those criteria were appropriate in the first place.
The method, step by step
From a request to a set of judgments
An evaluation begins with the original prompt, a candidate answer, and a unit test. The prompt tells LMUnit what was requested. The response is the text under assessment. The test identifies what to judge about it. A broadly useful test might ask whether the answer addresses the request directly. A more focused test could specify a fact that an adequate answer should include or a source it should rely on. The question and response remain the same when the evaluator moves to a different criterion. What changes is the instruction governing the judgment.
A test can also contain a rubric or reference answer. The rubric describes levels of performance on that criterion, which is valuable when an answer can satisfy a requirement incompletely. The reference gives the evaluator material it can compare with the response. A reference can be meaningful evidence for a specific check even in a task where many overall responses would be acceptable. For instance, an answer in the developers’ study could address the effect of analytics on patient care while omitting some aspect of a strategic plan. These observations can be recorded in separate judgments, with each test carrying the information needed for its own decision.
The paper describes a workflow in which people can supply criteria or an automated procedure can propose them. The scorer processes a test in the context of the prompt and answer, with an option to produce a rationale. Applications that need diagnosis can inspect the resulting profile of scores. Applications that need to choose between answers can compare the overall scores after aggregating across tests. If the benchmark supplies a single criterion and wants a rating for that criterion, the score for that test is already the output of interest.
How LMUnit evaluates a response
The steps in order.
The rationale option changes what LMUnit generates before it scores, although users choose that option as part of requesting the evaluation. In the rationale mode, the evaluator writes its explanation and then produces a score token. In the direct mode, scoring proceeds without that explanation. The distinction matters because a rationale can help a person understand the stated grounds for a verdict, while the text produced before scoring can also change the verdict itself.
What the training examples teach
The starting point is the difference between a rating and a preference. A rating attaches a target score to a prompt and a single response. It can teach the evaluator where a response belongs on an absolute scale. In a preference example, two answers to one prompt appear next to each other, with labels indicating which is better. Such a label can teach a distinction even when a rater would have difficulty choosing a specific score for each response. LMUnit extends both kinds of example by making the unit test part of the input. The test supplies the basis for assigning the score or preferring one response.
A direct example conditioned on a test can carry a numerical target alone or pair it with an explanation. A preference example conditioned on a test can carry only the comparison label or include a rationale for each response. The relative judgment then concerns how the two answers fare on the stated criterion. The design allows training on general quality judgments and more focused judgments without switching to a separate scoring architecture for each. The same kind of numerical output can be evaluated against a rating or compared with the score of another response.
The synthetic data procedure supplies examples where the criterion is explicit. It begins by generating several tests from a prompt. In some cases, the generator also sees one or two responses so it can notice relevant details that a prompt on its own might leave implicit. The pipeline also maintains global tests, which ask about broad qualities shared by many requests. Global tests provide practice with familiar evaluation dimensions. Prompt-specific tests supply opportunities to learn what changes when the question narrows from general helpfulness to a concrete requirement.
The next stage generates contrastive responses that vary in how well they satisfy a test. Suppose a test asks whether the answer explains why a conclusion follows from supplied information. An answer can have many of the surface properties of a good response and still omit that connection. A contrasting answer that supplies the connection gives the evaluator an occasion to learn which part of the response matters under the criterion. In the paper’s pipeline, such contrasts are generated for combinations of a unit test, prompt, and response. The synthetic examples use a 1-5 rating scale on which larger values mean stronger satisfaction of the test.
For some examples, a teacher generates rationales that address the criterion and end in a score. If the seed already has a score, the generated explanation is required to conclude with a compatible rating. The seed material can include prompts, responses, criteria, and existing scores. The authors name Nectar, Prometheus, Tulu3, and Complex Instructions among the sources. They also use Infinity-Instruct and HelpSteer2. The resulting examples supplement existing ratings and preferences with cases built to make a distinction under a particular test. Tülu 3
The reported training mixture contains 50K HelpSteer2 pairs with ratings on five dimensions and 10K unpaired rated examples from Prometheus. The synthetic portion includes 11K non-rubric pairs with ratings and rationales and 13K unpaired rubric examples that also have ratings and rationales. The counts distinguish pairs from individual examples. The rubric set supplies examples with detailed scoring instructions, while the paired format supplies a direct signal about relative performance. In the ablations, the authors change both the source of the examples and whether the examples are presented as ratings or preferences.
How the evaluator turns text into a score
The basic mapping describes the most expressive evaluation mode, which includes an explanation.
f(u, p, r) → (rationale, score)
Here f is the evaluator, u is the unit test, p is the original prompt, and r is the response. The arrow shows the outputs produced from those inputs. The rationale is text explaining the judgment, and the score is the assessment of the response on the criterion. In the direct scoring mode, the evaluator returns the score without generating the rationale.
LMUnit represents the score through a distribution over score tokens. In the explanation mode, the evaluator has already generated the rationale when it computes that distribution.
P(s = k | u, p, r, rat) = softmax(hₜ Wₛ)ₖ
Here P denotes probability, s is the score token, and k is a possible score value in 0,1,...,6. The vertical bar means that the probability is conditional on the test u, prompt p, response r, and rationale sequence rat. The vector hₜ is the final hidden representation used for the score prediction, with T denoting the terminal rationale position in the paper’s notation. The matrix Wₛ maps that representation to the score logits, the values passed to softmax. The softmax turns those values into probabilities, and the final subscript k selects the probability for score value k. For direct scoring, the prediction proceeds from the input without a generated rationale.
LMUnit takes the expected value of this distribution. That gives it a numerical score that can fall between the values represented by individual score tokens.
ŷ = ∑ₖ₌₀⁶ k · P(s = k | u, p, r, rat)
The symbol ŷ is the continuous score prediction. The sum ∑ runs over the score values indexed by k, from 0 through 6. Each value is multiplied, as indicated by ·, by the probability P assigned to the score token s taking that value. The conditioning variables after the bar are the unit test u, prompt p, response r, and rationale rat when generated. The synthetic label scale of 1-5 describes the examples used to teach evaluation. The range in this equation describes the score tokens included in the prediction.
An evaluator that emits only the most probable rating discards information about nearby ratings. The expected value retains some of that information. Two responses whose most probable token is the same can differ in where the rest of the probability lies. If the distribution for one response places more of its remaining mass on better ratings, its expected score can reflect the distinction. This is especially relevant to pairwise evaluation, where an evaluator needs to establish an ordering even when both answers are broadly competent.
How the losses use ratings, preferences, and explanations
The authors combine three training losses. Each loss penalizes a different departure from the available supervision. The first is supervised fine-tuning, or SFT, on the target output tokens. It trains the evaluator to produce the supplied output, including the explanation where one is present and the score token at the end. Fine-tuning
Lₛ𝒻ₜ = −∑ₜ₌₁ᵀ log P(xₜ | u, p, r, x<ₜ)
Here Lₛ𝒻ₜ is the supervised token loss. The sum runs over output positions t from 1 to T, where T here gives the length of the supervised output sequence. The token xₜ is the target at position t, and x<ₜ denotes the preceding target tokens. The probability P is conditional on those earlier tokens and on u, p, and r, the test, prompt, and response. The logarithm log and the minus sign turn low probability for a target token into a larger loss. This term rewards reproducing the prescribed output sequence during training.
The second loss measures the numerical distance from an available target rating. Its input is the expected score, which connects the training objective to the score the authors use at evaluation time.
Lₘₛₑ = (y − ŷ)²
Here Lₘₛₑ is the squared error for one rating, y is the target, and ŷ is LMUnit’s continuous prediction. The subtraction gives the deviation, and the square penalizes larger deviations more heavily regardless of their direction. This signal can favor a distribution whose expected value matches the rating even when several individual tokens receive probability.
The third loss applies to a comparison. It rewards a score difference in the direction of the labeled preference and penalizes differences when the label is a tie.
Lₚᵣₑ𝒻 = −log σ(ŷ₁ − ŷ₂) · 𝟙{pref = y₁}
−log σ(ŷ₂ − ŷ₁) · 𝟙{pref = y₂}
+ (ŷ₁ − ŷ₂)² · 𝟙{pref = tie}
The symbol Lₚᵣₑ𝒻 denotes the preference loss. The quantities ŷ₁ and ŷ₂ are the expected scores for the first and second responses. The variable pref is the observed label. The expressions pref = y₁ and pref = y₂ are the paper’s notation for a label favoring the first or the second response, respectively. The label tie indicates equal preference. Each expression of the form 𝟙{…} is an indicator, which activates its term only when the condition in braces holds. The sigmoid σ maps the signed difference to a probability-like value, and log is the logarithm. When the label favors a response, the corresponding negative logarithm decreases as that response moves ahead. For a tie, the term with exponent ² is smallest when the scores coincide.
The combined objective places coefficients on the three losses.
L = αLₛ𝒻ₜ + βLₘₛₑ + γLₚᵣₑ𝒻
Here L is the total objective, and α, β, and γ are the coefficients on supervised token prediction Lₛ𝒻ₜ, numerical rating error Lₘₛₑ, and comparison loss Lₚᵣₑ𝒻, respectively. The objectives exploit the types of evidence each example makes available. Their goals can align while emphasizing different behavior. The score token is part of a text sequence that can be imitated, the expected rating can be calibrated to a target, and the difference between expected ratings can be trained to predict a preference.
The main variants start from instruction-tuned LLaMA-3.1 at 8B and 70B parameters. Training runs for 2000 steps with α = β = γ = 1, and samples with rationales receive a 5x loss multiplier. The authors set the learning rate to 1e-6 and apply a cosine schedule, using batches of 64 and sequences of length 8K. They estimate that their training experiments used 40k GPU hours. That estimate covers the training experiments, while the inference analysis addresses the cost of obtaining scores once an evaluator is trained. The optimizer is Adam.
Training rationales for the judgment they support
Imitating an explanation teaches the evaluator how that explanation reads and how it relates to the training example. The authors also investigate whether the explanation helps it reach the right judgment. They collect pairs of rationales in which one is preferred as a route to a known score or relative assessment. A second training stage makes the selected rationale more likely relative to the rejected one, using Direct Preference Optimization.
The paper compares three ways to construct those pairs. In the Refined strategy, LMUnit first supplies its own rationales. A teacher revises explanations to improve the resulting scores. The comparison therefore involves a rationale drawn from the evaluator’s behavior and an attempted correction. In the Harmonized strategy, the teacher sees the evaluator’s rationales for both responses in a comparison. It adjusts the explanations to make them consistent with the responses’ relative quality. In the Teacher-based strategy, the teacher supplies the candidate rationales on samples with known ratings. The authors choose rationales that produce a correct outcome and reject ones that produce an incorrect outcome.
These strategies address different sources of training evidence. Revision exposes the evaluator to changes in the kind of rationale it already generates. Harmonization addresses explanations that may sound locally plausible for each response while supporting an inconsistent comparison. Sampling from the teacher supplies alternatives whose selection is governed by their final scoring outcome. In all three cases, the paper evaluates the effect on scoring performance separately from the readability or apparent quality of the rationale.
Combining criteria to recover a preference
The benchmarks that supply their own criterion can be scored directly under that criterion. On the original RewardBench and on LFQA, the authors also investigate what happens when the benchmark gives a preferred response without specifying which property accounts for that preference. They score each answer on eight broad tests. The tests cover helpfulness, directness, factual reliability, clarity, thoroughness, concision, engagement, and safety. Those dimensions can point in different directions for the same pair of responses. An answer may be more thorough, for example, while its competitor does a better job of staying concise.
The aggregate score is a weighted sum. Weights can express priorities set by a user, and the authors also test fitting them to human preferences.
f(r) = ∑ᵢ₌₁ᴺ wᵢ · sᵢ(r)
In this equation, f(r) is the aggregate score of response r, and N is the number of global tests. The sum runs from the first test through test N, using i as the index. The quantity sᵢ(r) is the score for response r under test i, and wᵢ is that test’s weight. The dot indicates multiplication. The learned weights can range over [0,1], and the paper uses N = 8 for this analysis. The aggregation serves a different purpose from the expected score within a test. Here each term represents a different criterion. Within a test, each term in the expectation represents a possible rating of the same criterion.
The preference data are divided into development and test sets for the held-out analysis. On the development set, the authors compute the scores under each criterion and then search for weights that rank the chosen answer ahead of the rejected one as frequently as possible.
max over {wᵢ}ᵢ₌₁ᴺ P(f(r꜀) > f(rᵣ))
The max indicates a search over the weights wᵢ for all N tests, indexed by i. The symbol P represents how frequently the indicated ordering holds over the preference pairs. The response r꜀ is the human-chosen response and rᵣ is the rejected response. The function f gives the aggregate score, and the > sign requires the chosen response to score strictly higher.
Changing a weight can leave every pair in the same order until a pair crosses a decision boundary. The objective is therefore defined by ranking outcomes, for which the authors use Bayesian optimization, a search procedure that uses earlier evaluations of a set of weights to select promising settings to try next. They initialize the weights uniformly and use the Probability of Improvement acquisition function, the rule that guides the choice of a candidate setting. The search runs for 200 iterations. The individual test scores can be reused during the search, since the candidate weights change how existing scores are combined. The resulting weights can be assessed on pairs kept out of the search. The authors release their LMUnit code under the MIT license.
Experiments and results
What each benchmark asks the evaluator to do
The core benchmark comparison includes direct assessment, binary classification, and pairwise ranking. These are different uses of a score. Direct assessment asks whether the score moves with human ratings. Binary classification asks whether the answer satisfies a criterion according to an expert label. Pairwise ranking asks whether a score places the preferred answer above its competitor. The paper reports Pearson correlation for direct assessment, accuracy for classification, and preference accuracy for rankings. Its overall columns summarize results across tasks, so an overall value should be read alongside the metrics it combines. This distinction is central to the paper’s treatment of evaluation and benchmarks.
FLASK assesses 12 skills that include applying knowledge, reasoning through problems, and responding in line with a user’s request. BiGGen-Bench covers 77 tasks, including instruction following, revision of content, grounding, and use of tools. Both supply fine-grained assessment information and human scores. Pearson correlation measures the extent to which human ratings and the evaluator’s scores vary together. A high correlation shows that they tend to rise and fall together across examples. The test does not require each numerical rating to coincide exactly.
For binary evaluation, the authors use the expert-validated split of InfoBench and compare the results with expert consensus on instruction-following tasks. Their internal dataset consists of 190 finance and engineering questions, with an average of five validated criteria per question. That benchmark compares the evaluator with judgments from subject-matter experts. The two datasets both yield a binary accuracy but test it in different circumstances. InfoBench centers on whether an answer follows the instructions. The internal collection examines the satisfaction of particular tests written and checked for those domains.
RewardBench contains paired responses in areas such as chat, reasoning, and safety. LFQA concerns longer answers to questions, with expert preferences as the comparison target. In both, a successful evaluation ranks the designated response above the other response. The paper also evaluates against RewardBench 2 using a more recent group of baselines. This last analysis uses a separate leaderboard and compares both general helpfulness tests and tests tailored to benchmark subsets. Question answering
The main baselines include general-purpose judges such as GPT-4o and Claude-3.5 Sonnet, as well as dedicated evaluators. Prometheus variants represent trained judges that support rubric-based assessment. The comparisons also include OffsetBias, Skywork-Critic, and SFR judges. A baseline can be strong in one format and weak in another. Where some of the systems lack results for the internal benchmark, the main table excludes that benchmark from its cross-task average. The ablation tables use different averages in places, including the internal result in the loss and data mixture studies.
Direct scoring, classification, and pairwise ranking
The LLaMA3.1-70B version leads the main direct assessment comparison. On FLASK, it reports 72.03 on the paper’s Pearson correlation scale, above GPT-4o at 69.00 and SFR-LLaMA-3.1-70B-Judge at 66.00. On BiGGen-Bench, it records 67.69, compared with 65.00 for GPT-4o and 65.00 for the larger SFR judge. The smaller LMUnit version reaches 60.02 on FLASK and 64.46 on BiGGen-Bench. The difference between the two LMUnit sizes is particularly visible on FLASK. These experiments score the criteria supplied by the benchmarks, with additional rubric and reference information where available.
Evaluator comparison on FLASK by Pearson correlation
The larger LMUnit variant has the highest correlation with human ratings in this comparison.
The numbers
| System or setting | Pearson correlation on the reported scale |
|---|---|
| Prometheus-2-8x7B | 54.00 |
| LMUnit LLaMA3.1-8B | 60.02 |
| SFR-LLaMA-3.1-70B-Judge | 66.00 |
| Claude-3.5 Sonnet | 67.25 |
| GPT-4o | 69.00 |
| LMUnit LLaMA3.1-70B (this paper) | 72.03 |
The classification results give a different ordering. The 8B LMUnit reaches 94.14 binary accuracy on the internal test set, ahead of the 70B version at 93.63. Claude-3.5 Sonnet records 84.53 on that set. On the expert-validated InfoBench split, GPT-4o and the smaller SFR judge each record 92.80. LMUnit reaches 91.26 with the 8B version and 89.00 with the 70B version. Strong performance on fine-grained rating benchmarks can thus coexist with a weaker result on a particular set of binary decisions. The internal benchmark and InfoBench also show that moving to the larger base can change the ranking without improving both classification scores.
On the original RewardBench, the main table reports pairwise accuracy of 91.56 for the 70B evaluator with a single test and 90.54 when its broad tests are combined with equal weight. The version using learned weights reaches 93.45. For comparison, SFR-LLaMA-3.1-70B-Judge records 92.7. On LFQA, the single-test LMUnit result is 76.15, the uniformly aggregated result is 74.62, and the learned aggregation reaches 76.53. Claude-3.5 Sonnet records 77.24 on that benchmark. Across the two datasets, combining more criteria with equal influence lowers accuracy in the reported comparison, and fitting their importance restores performance.
In the main table’s average, which excludes the internal benchmark, the 70B version scores 79.29 with a single test, 78.78 with uniform decomposition, and 79.74 with learned weights. The 8B version’s average is 74.10, and the larger SFR judge’s average is 78.26. The learned weighting figures are tied to the benchmark setup. The authors optimize at the section level for RewardBench and at the dataset level for LFQA, using predictions from a 50% split to learn the weights. They explicitly flag the in-benchmark tuning behind the headline RewardBench result. A separate analysis reports performance on pairs withheld from the optimization, which is the more direct test of whether those weights work on fresh pairs within RewardBench.
RewardBench 2 and the choice of criterion
The strongest RewardBench 2 configuration uses Qwen2.5-72B as the base for LMUnit and a different single test for each subset. The factuality test asks about errors and unsupported claims. The mathematics test asks whether the solution is correct. The focus test asks whether the answer addresses the task actually set. Other subsets receive tests concerning safety, precise instruction following, or correctness in tie cases. This setup selects one criterion using the benchmark’s subset label. The original RewardBench weighting experiment instead combines several scores for the same response.
Selected evaluators and criterion settings by overall RewardBench 2 score
Both LMUnit bases score higher with subset-specific criteria than with a single helpfulness criterion.
The numbers
| System or setting | overall benchmark score |
|---|---|
| LMUnit LLaMA3.1-70B with helpfulness test | 75.2 |
| QRM-Gemma-2-27B | 76.7 |
| Gemini-2.5-Flash preview | 77.2 |
| Claude Opus 4 with subset tests | 77.5 |
| LMUnit Qwen2.5-72B with helpfulness test | 78.1 |
| LMUnit LLaMA3.1-70B with subset tests | 80.5 |
| LMUnit Qwen2.5-72B with subset tests (this paper) | 82.1 |
The leading configuration’s 82.1 is an overall benchmark score. Its subset scores include 87.2 on factuality, 54.4 on precise instruction following, 72.7 on mathematics, and 91.3 on safety. The setting is especially effective as an overall evaluator in this comparison, while the subset results show substantial variation in the difficulty of the decisions. Gemini-2.5-Flash preview, for example, scores 81.1 on mathematics and 77.2 overall. The benchmark comparison supports a claim about the full evaluation profile afforded by the subset tests. It also shows how much the headline result can depend on the instruction supplied to the scorer.
What human participants found
In the developer study, 16 researchers and engineers worked with LMUnit for 1-2 days while continuing their own evaluation workflows. They came from areas including finance, publishing, software, and hardware development. The comparison was with a conventional prompted judge. The study materials show an overall preference verdict alongside the tests and verdicts available for individual responses. Participants identified properties of the responses and error modes, then assessed their importance. The unit test condition yielded an average of 10.8 identified response attributes, compared with 4.2 for the conventional judge. For error modes, the corresponding averages were 7.4 and 3.2. Participants rated the issues they found under the unit test procedure as more important.
The detailed feedback sometimes pointed toward a change in the workflow. One account attributes stronger results to finding that some kinds of questions received specific answers while analysis or calculation questions received generic ones. That observation prompted changes to the composition of the training examples and to retrieval. Another account describes tests exposing omitted reasoning steps in answers whose final conclusions appeared correct. Across the survey, 13 out of the 16 participants said the procedure exposed existing error modes in their training pipelines. Six reported that decisions informed by the evaluation were associated with a 10+ point gain on instruction-following and reasoning evaluations. Those gains are participant reports. The directly comparable study outcomes are the counts and importance judgments gathered for the two evaluation approaches. Retrieval-augmented generation
The annotation study asks whether structured evaluation also helps people agree when they supply preference labels. It involved 15 experienced annotators and 20 queries. In the control condition, annotators chose the response they preferred without extra criteria. In the specification condition, they consulted a common five-point quality specification before choosing. For the unit test condition, four annotators prepared 4-8 targeted checks per query to assess accuracy and support from retrieved documents. The people choosing between responses answered those checks before recording their preference.
Agreement on response preferences across the human annotation conditions
Annotators agreed most often after answering expert-written unit tests.
The numbers
| System or setting | agreement % |
|---|---|
| Unstructured pairwise judging | 71 |
| Standardized quality specification | 80 |
| Query-specific unit tests (this paper) | 86 |
The same ordering appears in Fleiss’ kappa, a measure that accounts for agreement expected by chance among multiple raters. The reported values are 0.04 for unstructured preference judgments, 0.32 for the specification, and 0.52 for the unit test condition. The paper counts 3 queries with unanimous agreement in the control condition and 11 in the unit test condition. Annotators in the latter condition chose the response that satisfied the most tests 89% of the time. This result connects the visible checklist to the final choice. Since the tests were written by experts and answered by people, the experiment evaluates a way of eliciting human preferences. It supplies evidence for the unit test paradigm independently of LMUnit’s benchmark accuracy.
What the ablations show
The objectives help different kinds of judgment
The loss ablation starts with supervised token prediction, adds numerical score error, and then adds preference loss. For LLaMA3.1-8B, the FLASK Pearson correlation score moves from 51.31 with supervised training alone to 60.46 with the numerical loss and 60.02 with all objectives. On BiGGen-Bench, the same sequence produces 59.12, 63.94, and 64.46. Numerical supervision supplies much of the gain on these fine-grained ratings, while the effect of the additional preference loss differs between the two benchmarks. The smaller evaluator’s average across the ablation benchmarks is 77.77 with supervised and numerical losses, and 77.44 when preference loss is included.
With LLaMA3.1-70B, the full objective gives the strongest average in this comparison. The ablation average is 81.18 with supervised training, 80.95 after the numerical loss is added, and 81.68 with all three losses. RewardBench preference accuracy improves across those settings from 89.98 to 91.03 to 91.56. The corresponding internal classification accuracies are 93.88, 93.73, and 93.63. The reported rows qualify the general case for combining objectives. Their benefit is clearest across a mixed workload, and the effect on an individual metric depends on which judgment it measures and which base is used.
The data ablation examines another part of the recipe using versions initialized from Llama-3.1-70B. Within direct-only training, HelpSteer2 with Prometheus gives an ablation average of 77.94. Adding the synthetic rubric data raises that average to 81.46. The FLASK result in those settings moves from 64.90 to 71.60, and BiGGen-Bench moves from 59.27 to 67.94. These datasets supply specific assessment criteria at evaluation time. The comparison supports the value of training on examples that likewise spell out how to score a criterion.
The effects of adding synthetic examples vary with their presentation. In the direct-only comparison, HelpSteer2 alone gives 73.86 on the ablation average. With synthetic non-rubric data added, the average is 71.11. In the preference-only comparison, HelpSteer2 alone gives 74.18 and adding synthetic non-rubric pairs yields 78.22. The authors suggest that the generated contrasts are more informative as comparisons in this case. A pair can expose what made one response better under a criterion even when isolated numerical ratings provide a weaker signal. The complete training mixture reaches 81.68 on the same average, while the rubric-enriched direct-only setting records 67.94 on BiGGen-Bench against 67.69 for the full mixture. The complete mixture is strongest on the average and serves a range of judgments whose individual best settings differ.
Score extraction and the information in a test
The inference ablation separates the expected numerical score from simply generating a rating greedily, which means choosing the highest-probability next token. With LLaMA3.1-70B, the expected score gives an average of 81.68 in the ablation, compared with 75.57 for greedy generation. On LFQA the two methods yield preference accuracies of 76.15 and 68.46. On FLASK the respective correlations are 72.03 and 69.39. Aggregating the probabilities over ratings helps most visibly where an evaluator has to order two answers. A small distinction in the distribution can decide a comparison even when the two generated ratings would be identical. The ranking results are consistent with that explanation, although the ablation compares the scoring procedures as a whole.
The authors also vary the content supplied in a test. On FLASK, the 70B evaluator records 67.20 with the assessment question alone, 65.76 when a rubric is added on its own, and 70.01 when only the reference answer is added to the question. With both sources of information it reaches 72.03. BiGGen-Bench gives 61.01 with the question alone, 66.39 with the rubric alone as an addition, and 65.61 with the reference alone as an addition. The configuration containing both reaches 67.69. Rubrics and references can supply complementary information. The individual results also show that performance need not improve with each addition in isolation. Which information helps depends on the benchmark and what the criterion already makes clear.
Changing the base provides a broader check on the training recipe. The LLaMA3.3-70b version records 73.09 on FLASK and 67.79 on BiGGen-Bench, while Qwen2.5-72b records 73.85 and 69.56 on those direct assessment benchmarks. On LFQA, the corresponding preference accuracies are 76.15 and 73.85. These results show that several tested bases can be adapted into useful evaluators. The differences across tasks put some of the responsibility for benchmark performance on the combination of the base and the evaluation procedure.
Explanations as training data and as generated outputs
The rationale experiments separate exposure to explanations during training from generating them when evaluating answers. Without rationales at either stage, the LMUnit LLaMA3.1-70B variant averages 76.9 over RewardBench, BiGGen-Bench, and FLASK. With rationales during training and direct scoring at evaluation, the average is 77.1. Generating rationales at evaluation after the same kind of rationale training gives 70.0. Training on explanations can thus help the direct score, while requiring the evaluator to write one before scoring changes the task and can degrade the result.
The post-training comparisons all generate a rationale during evaluation. Harmonized rationale pairs yield 70.4 on the average, Refined pairs yield 70.3, and Teacher-based pairs yield 71.1. The teacher-based procedure recovers the most performance on the average, with RewardBench preference accuracy reaching 85.4 compared with 83.8 before rationale post-training. The Refined variant reaches 65.0 on FLASK, and the Teacher-based variant reaches 64.9. The aggregate recovery still leaves the strongest rationale-generating version below the direct-scoring version at 77.1. The choice to request explanations therefore has a measured scoring cost in this experiment, even after the authors train specifically for rationale usefulness.
A separate analysis evaluates the explanations as text. It draws 400 examples, with 200 from each of FLASK and BiGGen-Bench, and uses Claude Sonnet 3. 5 for rating the quality of rationales on a scale from 1 to 5. LMUnit receives 4.40 for faithfulness to the rubric and score, 4.23 for coverage of the criteria, and 4.31 for clarity. Sonnet rationales receive 4.87, 4.72, and 4.48 on the respective measures. The smallest gap appears in clarity, where the textual structure of the explanation is central to the rating. The faithfulness measure asks whether the written explanation aligns with the rubric and the stated score. It assesses consistency among observable outputs and instructions, a narrower property than whether that explanation recovers the process that produced the judgment.
When decomposition and weighting help
The held-out RewardBench experiment compares broad tests with tests generated for individual queries. Claude-3.5-Sonnet generates eight tests per query. In the global setting, LMUnit evaluates each response against the same collection of eight broad criteria. The authors fit the learned global weights on 50% of RewardBench and report results on the 50% held-out split. They also examine a simple rule for query-specific criteria that assigns successively less influence to later tests. The weight for the test at position n is 0.8ⁿ, where n is its position in the generated list. This favors the earlier tests without requiring separate weight fitting for each query.
On the held-out split, the single global helpfulness test gives 91.6 average preference accuracy. Equal weighting for the global collection gives 91.0. Learning one set of weights for the dataset gives 92.2, and fitting separate weights by section gives 93.4. The greater flexibility at the section level lets the relative importance of the tests vary across kinds of comparisons. On Chat Hard, for example, an unweighted collection records 79.9 while section-level weighting records 86.5. The same table records 86.0 for the single global test on Chat Hard. That comparison shows how a useful broad criterion can lose influence when several others enter equally.
The query-level configuration has a different result. On average, the first generated test alone gives 84.8, the unweighted collection gives 81.8, and decaying weights give 83.3. On Chat Hard, the unweighted query-specific setting gives 67.6, compared with 72.9 under decaying weights and 78.6 for the first test. The authors interpret this as evidence that generating several effective tests for the same request remains difficult. Giving priority to earlier criteria partly offsets the problem with uniform aggregation. The study also makes the scope of the comparison clear. It tests a particular automatic generation procedure on a preference benchmark. The human annotation study used carefully written criteria for another purpose and under different conditions.
Finally, the authors apply weight optimization to two Prometheus evaluators. On RewardBench, the Prometheus-2-8x7B result increases from 80.49 with unweighted aggregation to 89.06 after optimization. The BiGGen-Bench variant of Prometheus moves from 76.38 to 79.79 under the same comparison. On LFQA, optimization raises the scores of both variants as well. LMUnit’s unweighted results on those two benchmarks remain above the optimized alternatives in this experiment. The comparison shows that the choice of weights can help different evaluators, and that the performance of the underlying test scorer places a limit on what weight fitting can recover.
Limitations
Limits identified by the authors
The authors identify query-specific test generation as an unresolved part of the method. A prompt can leave relevant expectations implicit, and having a generator see the prompt or some candidate answers gives it only a partial basis for deciding what should be tested. The held-out RewardBench comparison demonstrates how far the evaluated generation procedure can fall below broad criteria. The different outcome with expert-written tests in the annotation study gives a reason to distinguish the quality of the criteria from the usefulness of decomposition as a format. The authors call for studying human-written tests at scale and improving how automated systems generate and use criteria.
The reliance on expertise is especially consequential for domain-specific evaluation. Someone needs to recognize the requirements that matter, decide which can be judged from the available evidence, and write tests with sufficiently clear thresholds. An automated scorer reduces some of the effort involved in repeatedly judging answers once the tests exist. Creating dependable tests still takes knowledge of the domain and of the intended use of the response. The paper’s strongest examples of such criteria include cases where people had already supplied a rubric, a reference, or a validated test.
The authors also identify possible biases in the synthetic data. Generated criteria and responses inherit properties from the source datasets and from the systems creating the new examples. The resulting evaluator can learn preferences that are better represented in the training mixture than others. The paper names underrepresentation of minority-group preferences and differences in performance across applications as potential consequences. Its benchmark averages do not measure those consequences directly. Learned aggregation weights carry a related scope restriction. The authors intend them to reproduce the preferences in the dataset used to fit them, with customization for new settings.
Limits visible in the experimental setup
The benchmark results measure several particular kinds of agreement. A correlation with human ratings establishes a relation between scores across examples, while classification and preference accuracy measure agreement with specified decisions. None directly establishes that a test suite exhausts the quality requirements of an application. An omitted requirement can be important even when the evaluator’s judgments on the chosen tests are accurate. Conversely, a long checklist can make an evaluation look detailed while giving repeated weight to requirements that overlap. LMUnit makes the tests visible, which lets people inspect such choices. The benchmark designs give limited evidence about the effect of those choices in new settings.
Both the RewardBench weighting and RewardBench 2 subset experiments use information about the benchmark. The held-out weight comparison establishes generalization to other pairs within the same collection. Its development and test data still share the benchmark’s section definitions and underlying labeling task. For RewardBench 2, the evaluator receives a criterion selected using the subset to which the example belongs. This is evidence for scoring with a relevant criterion already identified. The experiment leaves open how well an evaluator would identify the right criterion on unfamiliar requests, especially when several requirements apply at once.
The human studies support claims at the scale and under the conditions they examine. The agreement study uses 20 queries with expert-written tests aimed at accuracy and grounding. Its higher agreement shows the value of providing those raters with shared instructions for those judgments. It leaves the validity of the agreed preference dependent on the tests and material available to the annotators. A shared assumption can produce more consistent labels even when an application’s stakeholders would choose a different criterion. The study also required advance work from test authors. It does not estimate how expensive that work would be as the variety of queries and application domains grows.
The developer study directly compares which attributes and errors people identify during a short period of use. It offers less evidence about lasting changes to system quality. Several participants describe changes and improved outcomes, but those reported gains occur within their own workflows and can reflect multiple changes at once. The result supports use of explicit tests as a diagnostic aid in those settings. Isolating their effect on later training or performance would require additional comparisons of the changes teams made and of how they measured their effects.
The rationale and inference analyses have narrower interpretations as well. The rationale quality ratings come from an automated evaluator and assess such properties as clarity and agreement with the rubric. A well-rated explanation can help someone inspect a decision, while the experiment does not establish that the generated words faithfully describe its internal cause. For cost, the authors compare short score outputs with longer generated rationales and explain why reprocessing more input tokens can be cheaper than generating many more output tokens. Realized costs still depend on the number of tests, the input lengths, and the serving setup. The reported analysis is chiefly an account of the inference budget under the paper’s configurations.
What came after
Checklists, preferences, and tests for judges
Several later papers cite LMUnit while taking up different parts of the evaluation problem. Some focus on the design of the judging instrument. Others focus on the data used to learn a preference, the context required for a sound judgment, or what happens when feedback enters an existing human workflow. A citation connects these questions to LMUnit without establishing that the later work adopted its scorer, training mixture, or method for fitting weights.
Checklists Are Better Than Reward Models For Aligning Language Models places checklist-based assessment in a direct comparison with reward scoring for alignment. LMUnit evaluates checklists chiefly as a way to assign and expose response judgments. The later paper’s stated focus is the role of checklists in the alignment process itself. The connection is the explicit criterion as a source of feedback. The question shifts from how well a score measures a requirement to how a system behaves when that kind of feedback is used to align it. Checklists Are Better Than Reward Models
Skywork-Reward-V2 takes up the construction of preference data, with human and automated contributions to curation. For LMUnit, preference labels are one source of supervision, complemented by ratings, rubrics, and rationales. The later work’s focus on curation addresses a decision upstream of scoring. The comparisons available for training shape which distinctions a scorer can learn from preferences. The connection concerns the quality and scale of the supervision available to evaluators. Skywork-Reward-V2
ContextualJudgeBench makes contextual judgment the object of a benchmark. In LMUnit, a test names a requirement and can be accompanied by a rubric or reference, while the original request gives the response its meaning. The later benchmark asks about judges operating in contextual settings, bringing the evidence available to the judge into focus. That is a complementary question to criterion design. A test may identify the right property to judge, while the judge’s ability to apply it depends on how it uses the relevant context. ContextualJudgeBench
IF-RewardBench evaluates judges specifically on instruction following. LMUnit addresses this subject through benchmarks such as InfoBench and through a precise instruction-following criterion on RewardBench 2. A benchmark devoted to judging instruction following makes that part of evaluation a subject in its own right. It asks how well a judge recognizes whether a response carries out the request. This is a question about the quality of the evaluation signal, which matters whenever the same signal is used to compare answers or guide their improvement. IF-RewardBench
Reasoning and human use of feedback
Towards Reasoning Era surveys long chain-of-thought, a topic related to LMUnit’s experiments on whether a generated rationale helps the evaluator make a better decision. LMUnit isolates that question for one family of judges by separating rationale training, rationale generation, and post-training on scoring outcomes. The survey’s stated scope is broader and concerns extended reasoning in language systems. The point of contact is deliberation expressed in text and its relationship to the quality of a final answer or verdict. Towards Reasoning Era
A Survey of Frontiers in LLM Reasoning considers inference scaling, learning to reason, and agentic systems. LMUnit’s rationale experiments sit near the intersection of the first two subjects. Generating an explanation changes the computation performed during a judgment, and training on preferred rationales changes the kinds of explanations the evaluator is likely to produce. The survey treats these subjects across reasoning systems more generally. Its citation places evaluator reasoning alongside a wider set of questions about how reasoning is learned and used at inference. A Survey of Frontiers in LLM Reasoning
Can LLM feedback enhance review quality? studies feedback in peer review through a randomized design. LMUnit’s developer study examines which faults people can identify when they receive explicit test verdicts. The peer-review study shifts the outcome to the quality of reviews written by people who receive feedback. Both examine assistance in an existing human workflow, with different tasks and measurements. That difference matters to the kind of evidence each design can provide. Identifying a fault measures what becomes visible to a user, while review quality concerns the work that user subsequently produces. Can LLM feedback enhance review quality?
Cite
Cite as Jon Saad-Falcon, Rajan Pathe Vivek, William Berrios, Nandita Shankar Naik, Matija Franklin, Bertie Vidgen, Amanpreet Singh, Douwe Kiela and Shikib Mehri. 2025. LMUNIT: Fine-grained Evaluation with Natural Language Unit Tests. Findings of the Association for Computational Linguistics: EMNLP 2025.
@inproceedings{saadfalcon2025lmunit,
title = {{LMUNIT: Fine-grained Evaluation with Natural Language Unit Tests}},
author = {Jon Saad-Falcon, Rajan Pathe Vivek, William Berrios, Nandita Shankar Naik, Matija Franklin, Bertie Vidgen, Amanpreet Singh, Douwe Kiela and Shikib Mehri},
booktitle = {Findings of the Association for Computational Linguistics: EMNLP 2025},
year = {2025},
doi = {10.18653/v1/2025.findings-emnlp.176},
url = {https://doi.org/10.18653/v1/2025.findings-emnlp.176}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/falcon-2025-lmunit-fine-grained-evaluation-natural/