Introduction
While Large Language Models (LLMs) have demonstrated remarkable proficiency in deterministic domains such as mathematics and physics, their performance in the nuanced and context-heavy field of law remains a critical area of investigation. Legal reasoning is not merely about identifying a final answer but involves a complex process of issue spotting, rule application, and logical synthesis. To address the limitations of existing benchmarks—which often focus on simple multiple-choice questions (MCQs) or specific jurisdictions—we introduce LEXam, a comprehensive multilingual benchmark derived from 340 real-world law school exams.
Methodology
The LEXam pipeline encompasses three primary stages: collection, curation, and evaluation. We sourced exams from the University of Zurich, spanning 116 courses across private, public, criminal, and interdisciplinary law.
A significant challenge in evaluating long-form legal answers is the inherent subjectivity and potential bias of single-model judges. To mitigate this, we developed an ensemble LLM-as-a-Judge pipeline. This system utilizes GPT-4o, Qwen3-32B, and DeepSeek-V3, aggregating the minimum score across models to suppress overly favorable evaluations. This approach was validated against human legal experts using the Alternative Annotator Test (Alt-test), where the ensemble achieved a 1.00 winning rate, matching human consistency.
Dataset Characteristics
The LEXAM dataset consists of 4,886 questions categorized into two main formats:
- Open-Ended Questions (2,841): These require structured, long-form reasoning and are paired with reference answers and normative reasoning chains provided by law professors.
- Multiple-Choice Questions (2,045): Standardized from various exam formats to test outcome-based correctness.
The dataset is uniquely multilingual (English and German) and covers a diverse range of jurisdictions, including Swiss, European, and International law. This distinguishes it from previous benchmarks like LegalBench or LexGLUE, which are predominantly focused on US or Chinese law.
Key Results and Insights
Our evaluation of 36 LLMs revealed several critical findings:
- Reasoning Models Lead: Models optimized for reasoning, such as GPT-5 and Gemini-2.5-Pro, outperformed standard models. However, the top score of 70.20/100 on open questions indicates that even state-of-the-art models struggle with complex, multi-step legal logic.
- Fragility of MCQ Performance: We introduced a robustness check by increasing the number of distractors in MCQs from 4 to 32. This led to a dramatic drop in accuracy; for instance, Gemini-2.5-Pro fell from 68.6% to 35.6%. This suggests that high scores on standard MCQs may reflect successful guessing rather than deep legal understanding.
- Language Disparity: Performance was consistently higher on English prompts than German ones. Smaller models (e.g., Llama-3.1-8B-it) showed significant difficulty with non-English text, occasionally producing incoherent outputs.
Conclusion
LEXam provides a rigorous framework for assessing the "process" of legal reasoning rather than just the "outcome." While reasoning-optimized models show promise, the benchmark highlights substantial gaps in their ability to handle multi-step logic and multilingual legal contexts. Future work will focus on expanding jurisdictional coverage and developing methods to keep the benchmark updated with evolving legal interpretations.
Summary updated