Somewhere in your stack there is probably an agent that reads a document and returns a score. Clarity: 4. Completeness: 3. Risk coverage: 5. The feedback reads well, the JSON validates, and the dashboard looks professional.
None of that tells you whether the score means anything.
A multi agent LLM system can produce plausible looking output about any document, including a document it barely understood. So the real question for anyone shipping rubric based LLM evaluation is simple. Do these scores carry information beyond chance?
This article shows how to build a hub and spokes multi agent system that reviews documents against a rubric, then how to run three statistical tests that answer that question with numbers instead of vibes. You will get working Python for each step.
Statistical validation of LLM output is the practice of testing whether a model’s scores agree with a trusted reference more often than random chance would explain, and whether those scores stay stable when you repeat or perturb the input. It replaces “this feedback looks right” with a p value, an agreement coefficient, and a confidence interval.
Three tests cover most of what you need:
If you only have time for one, run the shuffle test. If you only trust one, trust the combination.
Language models are fluent by construction. Ask one to review a weak document and it will still produce a confident paragraph, a score, and a list of improvements.
Researchers who study LLM judges have documented specific failure patterns. The widely cited 2023 paper “Judging LLM as a Judge with MT Bench and Chatbot Arena” by Zheng and colleagues reported three of them: position bias, verbosity bias, and self enhancement bias. A judge may favor whichever answer appears first, favor longer text, or favor text written by a model similar to itself.
Those are three ways a score can look reasonable and still be wrong. A rubric reduces the vagueness. Statistics tells you how much vagueness is left.
The hub and spokes pattern splits one hard job into several narrow ones.
ComponentRoleWhy it existsHub (orchestrator)Loads the rubric, sends the document to each spoke, collects resultsKeeps control flow in plain code, not in a promptSpoke (one per criterion)Scores a single rubric criterion and quotes evidenceNarrow prompts are easier to test and debugAggregatorCombines spoke scores and flags disagreementProduces the final report and the audit trail
Why one spoke per criterion? Because you can validate each one separately. If the “risk coverage” spoke is noisy but the “clarity” spoke is solid, you want to find that out before you trust a combined number.
Here is a minimal version. The call_llm function is a placeholder for whichever model API you use, and it should return parsed JSON.
python
import jsonfrom concurrent.futures import ThreadPoolExecutorRUBRIC = { "clarity": "Is the main point understandable in the first page?", "completeness": "Are all required sections present and filled in?", "risk_coverage": "Are the main risks named with a mitigation for each?",}SPOKE_PROMPT = """You score one criterion of a document.Criterion: {name}Definition: {definition}Scale: integers 1 to 5. Anchors: 1 = absent, 3 = partly met, 5 = fully met.Return JSON with keys: score (int), evidence (a short quote from the document), reason (one sentence).Document:{document}"""def spoke(name, definition, document): prompt = SPOKE_PROMPT.format(name=name, definition=definition, document=document) result = call_llm(prompt, temperature=0) # your model call, returns a dict result["criterion"] = name return resultdef hub(document): with ThreadPoolExecutor() as pool: futures = [pool.submit(spoke, n, d, document) for n, d in RUBRIC.items()] results = [f.result() for f in futures] scores = [r["score"] for r in results] return { "results": results, "total": sum(scores), "spread": max(scores) - min(scores), }
Three design choices matter here. The scale has written anchors, so a 3 means something. Each spoke must quote evidence, which gives you something to check by hand. The hub is ordinary code, so your control flow is testable without a model.
Run the same document through the hub several times and compare. A system that gives a 4 on Monday and a 2 on Tuesday for the same text has a reliability problem before accuracy even enters the conversation.
For ordinal scores, quadratic weighted Cohen’s kappa is a sensible agreement measure because it penalizes a 1 versus 5 disagreement far more than a 3 versus 4.
from sklearn.metrics import cohen_kappa_scoredef repeatability(docs, criterion_index, runs=2): run_scores = [] for _ in range(runs): run_scores.append([hub(d)["results"][criterion_index]["score"] for d in docs]) return cohen_kappa_score(run_scores[0], run_scores[1], weights="quadratic")
A commonly used reading of kappa treats 0.61 to 0.80 as substantial agreement and above 0.80 as almost perfect, following the interpretation Landis and Koch proposed in 1977. Treat those bands as rough guidance and not as law.
This is the test that answers the title question.
Take a set of documents that humans have already scored. Compute how well the LLM scores correlate with the human scores. Then break the pairing on purpose by shuffling the human scores across documents, and recompute the correlation. Repeat that thousands of times. The shuffled results show what correlation looks like when there is no real relationship. If your real correlation sits far outside that cloud, chance is a poor explanation.
This is a permutation test.
import numpy as npfrom scipy.stats import spearmanrdef permutation_test(llm_scores, human_scores, n_perm=10_000, seed=0): rng = np.random.default_rng(seed) observed = spearmanr(llm_scores, human_scores).statistic hits = 0 for _ in range(n_perm): shuffled = rng.permutation(human_scores) if spearmanr(llm_scores, shuffled).statistic >= observed: hits += 1 p_value = (hits + 1) / (n_perm + 1) return observed, p_value
Add a bootstrap confidence interval so you report an effect size and not only a p value:
def bootstrap_ci(llm_scores, human_scores, n_boot=5_000, seed=0): rng = np.random.default_rng(seed) llm, hum = np.asarray(llm_scores), np.asarray(human_scores) stats = [] for _ in range(n_boot): idx = rng.integers(0, len(llm), len(llm)) stats.append(spearmanr(llm[idx], hum[idx]).statistic) return np.percentile(stats, [2.5, 97.5])
Run this once per criterion, not only on the total. Because you are now running several tests, apply a correction such as Holm or Bonferroni. With three criteria, a raw p of 0.03 on one of them is weaker evidence than it looks.
Fewer than about 30 human scored documents will give you confidence intervals so wide that most results are uninformative. Fifty to a hundred is a more practical target. If humans disagree with each other, measure that too. Your system cannot reasonably agree with humans more than they agree with each other, so human to human agreement is your ceiling.
Repeatability and correlation can both look healthy while a systematic bias hides underneath. Probe for the three biases from the Zheng paper with controlled edits:
Each probe is a paired comparison. Use a paired test such as the Wilcoxon signed rank test from scipy on the before and after scores. A significant shift under a change that should be irrelevant is a defect in your system, and now you have evidence for it.
Notice that only the last row earns trust, and even then only for the document types you tested.
This approach costs more than shipping and hoping. You need human labels, and human labels are slow to collect. Running every spoke several times multiplies your inference bill. A permutation test on a small sample can only tell you that a relationship exists. It cannot tell you the system is right for a document type you never sampled.
There is also a drift problem. A model version change can quietly move your scores. Keep your labelled set as a regression suite and rerun these three tests whenever the underlying model, the prompt, or the rubric changes.
Use a permutation test. Compare the correlation between LLM scores and human scores against the correlations you get when you shuffle the human scores many times. If the real value falls well outside the shuffled distribution, the relationship is unlikely to be chance.
A hub agent or controller coordinates the workflow, and each spoke agent handles one narrow task, such as scoring a single rubric criterion. The hub collects the outputs and assembles the final result. The pattern makes each part testable on its own.
Quadratic weighted Cohen’s kappa works well for repeatability on ordinal scales because it penalizes large disagreements more than small ones. Spearman correlation suits comparisons against human scores.
At least 30 as a bare minimum, and ideally 50 to 100 human scored documents. Smaller samples produce confidence intervals too wide to support a decision.
It can reduce human workload once it has shown stable, human aligned scores on your document types. It still needs periodic human audits because model updates and new document styles can shift its behavior.
A rubric gives an LLM reviewer structure, and statistics gives you the evidence that the structure works. Build the hub and spokes system, then run the three tests: repeatability, the shuffle test, and the bias probe. If the numbers hold, you have an agentic system you can defend in a review meeting. If they do not, you found out before your users did.
If you build one of these, try the shuffle test on your own labelled data first. Follow for more on testing AI systems in production.
Your Multi Agent LLM Scored a 4 Out of 5. Could Dice Have Done That? was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.