Judge AI: A Case-Study of Large Language Models as Judges

Eric A. Posner, Shivam SaranarXiv 2026 · DOI

TL;DR

When put on the judicial bench in a simulated war crimes appeal, GPT-4o follows legal rules and precedent far more strictly than actual U.S. federal judges, completely ignoring how sympathetic the defendant is. Paradoxically, this hyper-logical rule-following makes the AI behave less like a seasoned judge and almost identically to a novice law student—raising deep questions about whether "following the rules mechanically" actually makes for good judging.

What Problem Does This Paper Address?

We already know LLMs can pass bar exams and summarize contracts, leading to an obvious question: could AI ever replace human judges?

Answering this is tricky because legal scholars don't fully agree on how human judges actually make decisions, or how they should. Two schools of thought dominate: legal formalism (judges mechanically apply established rules and precedents to facts, like umpires calling balls and strikes) and legal realism (judges bend or disregard formal rules when morality, public policy, or personal sympathy point toward a different outcome).

Studying real-world court opinions is messy due to missing context, selection bias, and—for LLMs—training data contamination (the model already knows who won). By subjecting LLMs to a controlled behavioral experiment previously run on both federal judges and law students, the authors test not just whether an AI can judge, but who it judges like.

Methods

The authors adapted a state-of-the-art $2 \times 2$ factorial experiment originally designed by legal scholars Spamann and Klöhn. Acting as an appellate judge in an international war crimes tribunal, the subject must decide whether to affirm or reverse a lower court's conviction. Two variables are secretly manipulated:

  1. Precedent: A prior court ruling is provided that either supports affirming the conviction or reversing it.
  2. Sympathy: The defendant is portrayed either as a remorseful peacemaker (sympathetic) or an unrepentant nationalist (unsympathetic)—a factor that is legally irrelevant to guilt.
Table 1. Hypothesis Matrix

Because the raw trial judgments and precedents were massive (~229,000 and ~54,000 tokens), the authors used GPT-4o to summarize those specific documents first to fit within its 128k context window, pairing them with verbatim legal briefs, agreed facts, and statutes. They ran 25 random seeds across each of the 4 conditions ($n=100$) at a temperature of 0.7. Finally, they tried extensive prompt engineering (asking GPT to consider sympathy, adopt specific judicial philosophies, or roleplay as a legal scholar) and ran robustness checks across newer, long-context reasoning models (including o4-mini, Gemini 2.5/3 Pro, and Llama 4 Scout) using the full, unsummarized texts.

Datasets

Rather than traditional ML benchmarks, the study evaluates models on the experimental case materials from Spamann & Klöhn (2016, 2024), adapted from a real International Criminal Tribunal for the Former Yugoslavia case (Prosecutor v. Momčilo Perišić). LLM decisions are benchmarked directly against the historical experimental responses of 31 U.S. federal judges and 91 law students.

Key Insights and Ideas

  • AI buys the "official story" of law: Trained on billions of tokens of civic texts and formal judicial opinions—where even human judges never admit to being swayed by sympathy—LLMs have formalism baked into their bones. They treat the textbook ideal of law as reality.
  • Prompting can't easily force realism: Even when explicitly told that real judges consider sympathy and instructed to do the same, GPT-4o acknowledged the defendant's remorse in its text and then ruthlessly dismissed it as legally irrelevant anyway. When told to act as a "Legal Realist," it simply invented policy arguments to justify enforcing the strict formal rule.
  • The "Student Paradox": It is tempting to look at an AI ignoring extralegal bias and declare it a superior judge. However, the AI's behavior closely mirrors inexperienced law students. Unless we believe law students are better judges than seasoned federal jurists, human judges' willingness to bend rigid rules for moral or pragmatic reasons may be a vital feature of justice, not a bug.
  • Dropping the robe brings out the human: Ironically, the only prompt that made GPT-4o show a human-like sympathy effect was telling it not to be a judge, and instead evaluate the case as a "legal scholar."

Key Results

  • Formalism vs. Realism: GPT-4o was strongly swayed by precedent ($p < 0.01$), being roughly 22 percentage points less likely to affirm when precedent pointed toward reversal. Sympathy had no statistically significant effect on GPT-4o. Human judges did the exact opposite: they largely ignored precedent and strongly favored sympathetic defendants.
Figure 2. Frequency of affirming conviction: Comparison of GPT, judge, and student results
  • The Clash Scenario: When precedent demanded conviction of a sympathetic defendant, GPT-4o affirmed 100% of the time (and students ~91%), whereas human judges affirmed only 40% of the time.
  • Written Rationales: In its 1-paragraph opinions, GPT-4o cited precedent 99% of the time (vs. 61% for judges, 63% for students) and policy 0% of the time (vs. 16% for judges, 63% for students). It also made 0% alignment errors between its reasoning and final vote, compared to a ~10% error rate among time-pressed human judges.
  • Robustness: Across 14 replications using newer models (many taking the full, unsummarized text), 12 out of 14 still behaved closer to students than judges (only non-reasoning GPT-4.1 leaned closer to judges).

Limitations and Future Work

The study relies on a single, somewhat unusual international war crimes case using off-the-shelf models (though the authors note a follow-up study on a routine auto-accident case yielded similar formalist results). Summarizing long documents for GPT-4o may have stripped out subtle sympathy cues, as half of the newer full-context models did show minor, though erratic, sympathy effects. Future work should test fine-tuned or RLHF-specialized legal models across a wider variety of everyday legal disputes—though the authors caution that until we resolve centuries-old philosophical debates over what makes a "good" judicial decision, AI should at most handle low-stakes, mechanical disputes under human review.

Summary updated

BibTeX
@misc{posner2026judge,
  author = {Eric A. Posner and Shivam Saran},
  title = {{Judge AI: A Case-Study of Large Language Models as Judges}},
  year = {2026},
  eprint = {2611.35187},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.35187},
}
Figure