Papers › GradeLegal: Automated Grading for German Legal Cases

GradeLegal: Automated Grading for German Legal Cases

20 May 2026arXiv:2605.21076added by Syntology

Abdullah Al Zubaer, Lorenz Wendlinger, Simon Alexander Nonn, Michael Granitzer, Jelena Mitrovic

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

Grading German legal exam solutions faces growing volumes and a shortage of qualified graders, delaying feedback and creating a bottleneck. At the same time, it is a high-stakes expert task, since state exam grades strongly influence career outcomes in Germany. Despite this practical relevance, literature lacks systematic studies on effective methods for grading legal exams. To address this gap, we investigate whether large language models (LLMs) can support the automated grading of German legal case solutions in criminal and public law, thereby enabling scalable feedback and student self-testing. We present a systematic evaluation of 27 proprietary and open-source LLMs, benchmarking prompting strategies that incrementally add task-related information, such as a sample solution and a grading rubric. Using quadratic weighted kappa (QWK), reasoning-oriented LLMs can approximate expert grading in public law when given a sample solution and a grading rubric (up to 0.91), compared to 0.60 in criminal law, suggesting a harder grading task in criminal law. Beyond single-model grading, ensembling improves agreement by up to 0.15 over its best member and can offer an alternative to stronger closed-source single models. In addition, our findings suggest that effective prompt design and model selection are necessary for reliable LLM-based grading of legal exams.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2605.21076")

Code

Syntology Ran 14 of 15 code samples harvested from 1 repository linked to this paper; 1 has no recorded run. Of those that ran: 1 ran · our draft was wrong; 13 ran with no contract checked.

By repository: found in paper text by Syntology: 15 samples from 1 repository, 14 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

abdullahalzubaer/icail2026 found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

15 samples harvested; 14 ran; 0 honoured the contract we drafted; 1 has no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
13ran
1unverified

Licence: 15 of the 15 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from abdullahalzubaer/icail2026. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

load_yaml abdullahalzubaer/icail2026/code/inference/litellm_inf.py found in paper text by Syntology ran · our draft was wrong no licence file found · pointer only · 83396ec95592fb23 · report
clean_cell abdullahalzubaer/icail2026/code/inference/litellm_inf.py found in paper text by Syntology ran fingerprinted no licence file found · pointer only · 8a40e4ebef0e77e9 · report
create_prompt_v3_ts_ext_rubric_dp abdullahalzubaer/icail2026/code/inference/full_prompts/prompt_v3_ts_ext_rubric_dp.py found in paper text by Syntology ran fingerprinted no licence file found · pointer only · 7488d55b957eb269 · report
create_prompt_v4_ts_ext_model_dp abdullahalzubaer/icail2026/code/inference/full_prompts/prompt_v4_ts_ext_model_dp.py found in paper text by Syntology ran fingerprinted no licence file found · pointer only · 3b3dc136dd47eecd · report
create_prompt_v5_ts_ext_rubric_model_dp abdullahalzubaer/icail2026/code/inference/full_prompts/prompt_v5_ts_ext_rubric_model_dp.py found in paper text by Syntology ran fingerprinted no licence file found · pointer only · b027a18a48a83621 · report
exp_wait_seconds abdullahalzubaer/icail2026/code/inference/litellm_inf.py found in paper text by Syntology ran no licence file found · pointer only · f584f6ead324638e · report
exp_wait_seconds abdullahalzubaer/icail2026/code/inference/vllm_inf.py found in paper text by Syntology ran no licence file found · pointer only · 11d2e560223a280f · report
extraction_fn_3 abdullahalzubaer/icail2026/code/inference/extraction_functions.py found in paper text by Syntology ran fingerprinted no licence file found · pointer only · 2fa65f3c40a03f55 · report
fisher_mean_and_sds abdullahalzubaer/icail2026/code/analysis/analysis_util.py found in paper text by Syntology ran no licence file found · pointer only · 939c7907d0812f7d · report
fisher_mean_and_sds abdullahalzubaer/icail2026/code/ensemble/ensemble_util.py found in paper text by Syntology ran no licence file found · pointer only · cb6fbe86ee0def68 · report
fisher_metrics_with_optional_bootstrap abdullahalzubaer/icail2026/code/analysis/analysis_util.py found in paper text by Syntology ran no licence file found · pointer only · 60df4888ed4bfe08 · report
fisher_metrics_with_optional_bootstrap abdullahalzubaer/icail2026/code/ensemble/ensemble_util.py found in paper text by Syntology ran no licence file found · pointer only · 1b9491ca934f5dad · report
raters_vs_reference abdullahalzubaer/icail2026/code/analysis/analysis_util.py found in paper text by Syntology ran no licence file found · pointer only · e2a373de71541c2e · report
raters_vs_reference abdullahalzubaer/icail2026/code/ensemble/ensemble_util.py found in paper text by Syntology ran no licence file found · pointer only · 0994511ad7aa454e · report
create_prompt_v1_ta_min_dp abdullahalzubaer/icail2026/code/inference/full_prompts/prompt_v1_ta_min_dp.py found in paper text by Syntology unverified no licence file found · pointer only · 9e70ae798e0d6ec3 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2605.21076, was issued in May 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections