LEXam: Benchmarking Legal Reasoning on 340 Law Exams

Yu Fan, Jingwei Ni, Jakob Merane, Yang Tian, Yoan Hermstrüwer, Yinya Huang, Mubashara Akhtar, Etienne Salimbeni, Florian Geering, Oliver Dreyer, Daniel Brunner, Markus Leippold, Mrinmaya Sachan, Alexander Stremitzer, Christoph Engel, Elliott Ash, Joel Niklaus

TL;DR

LEXam is a massive new benchmark comprising 7,537 law exam questions designed to test if Large Language Models (LLMs) can actually "think" like lawyers. By evaluating the multi-step reasoning process—rather than just the final answer—researchers demonstrate that even state-of-the-art models struggle with the structured logic required to navigate complex legal scenarios.

While LLMs have made incredible strides in STEM fields like math and physics, legal reasoning remains a critical frontier. Unlike math problems, which often have deterministic verifiers, legal reasoning is inherently non-formal. It requires specialized domain knowledge, statutory analysis, and the ability to apply abstract rules to messy, ill-defined factual scenarios.

Existing legal benchmarks often fall short because they focus on outcome-based evaluation—simply checking if the model picked the right multiple-choice option. This approach ignores the process: Did the model spot the right legal issue? Did it cite the correct statute? Did it apply the rule logically? Without assessing the reasoning chain, we risk deploying models that reach the right conclusion for the wrong reasons, which is a major liability in high-stakes legal environments.

Methodology: Process and Outcome Evaluation

To address these gaps, the authors introduce a dual-pronged evaluation strategy:

LEXam dataset curation and evaluation pipeline
  1. Process-Based Evaluation: For open-ended questions, the authors developed a specialized "LLM-as-a-Judge" prompt. To ensure this wasn't just "AI grading AI" blindly, they used an ensemble of three models and validated the results against human legal experts using the Alternative Annotator Test (Alt-test). This statistical framework proved that the ensemble judge aligns closely with expert human assessment.
  2. Outcome-Based Perturbation: For multiple-choice questions (MCQs), the researchers didn't just stick to the standard four options. They systematically increased the number of distractors (up to 32 choices) to diagnose whether models were truly understanding the law or just benefiting from a high guessing probability.

The LEXam Dataset

The core of the paper is the LEXam dataset, sourced from 340 real law exams across 116 courses at the University of Zurich (2016–2023).

Examples of Open and Multiple-Choice Questions in LEXam
  • Scale: 7,537 questions in total (2,841 open-ended and 4,696 MCQs).
  • Diversity: Covers 78 subdomains across private, public, criminal, and interdisciplinary law.
  • Multilingual: Includes questions in both English and German. Crucially, these are independent items from different exams, not parallel translations, which avoids the semantic drift often found in translated datasets.

Key Insights and Results

  • The "Reasoning Gap": Models are surprisingly good at "rule recall" (knowing what the law says) but struggle with "rule application" (using that law to solve a specific case).
  • MCQ Fragility: Model performance drops off a cliff as the number of answer choices increases. A model might look competent with 4 choices but fail miserably with 16 or 32, suggesting that current benchmarks might be overestimating LLM legal expertise due to weak distractors.
  • Language Bias: Even the best models perform significantly better on English legal tasks than German ones, pointing to a linguistic-cultural bottleneck in legal AI development.
  • Ensemble Superiority: A "minimum-score ensemble" (taking the lowest score from a group of diverse models) proved to be a more robust and fair judge than any single proprietary model, as it penalizes hallucinations and self-bias.
  • Top Performers vs. Humans: In open-ended reasoning tasks, top-tier models led the pack but still struggled with multi-step logic, hovering around a 5–6 on a 10-point scale. In a small-scale experiment, a doctoral-level jurist achieved 80% accuracy on a subset of MCQs, while a bachelor-level student hit 60%. The top-performing reasoning models are currently approaching the bachelor student level but remain far behind the expert jurist.

Limitations and Future Work

The primary limitation of LEXam is its jurisdictional scope, as it is currently rooted in the civil law tradition (Swiss and European law). Legal reasoning in common law jurisdictions (like the US or UK), which relies more heavily on judicial precedent, may present different challenges.

The authors plan to expand the benchmark to include materials from the US, Mainland China, and Israel. They also acknowledge the static nature of law; as statutes change, the benchmark will need a mechanism to update its reference answers. Finally, future iterations should evaluate a model's ability to perform legal retrieval—finding the right laws in a massive database—rather than just reasoning over provided facts.

Summary updated

BibTeX
@inproceedings{fan2026lexam,
  author = {Yu Fan and Jingwei Ni and Jakob Merane and Yang Tian and Yoan Hermstrüwer and Yinya Huang and Mubashara Akhtar and Etienne Salimbeni and Florian Geering and Oliver Dreyer and Daniel Brunner and Markus Leippold and Mrinmaya Sachan and Alexander Stremitzer and Christoph Engel and Elliott Ash and Joel Niklaus},
  title = {{LEXam: Benchmarking Legal Reasoning on 340 Law Exams}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=xNhbMyXsJn},
}
Figure