Laws are increasingly turned into programs that decide cases, such as whether a firm was a small or medium enterprise (SME) on a given date, and large language models (LLMs) now write them. The programs are usually graded against answers written by someone who read the same law, so a program can score well by sharing the grader's reading rather than by getting the law right. LexTemporis grades them instead against records of what actually happened: 10,901 firm-years of SME status disclosed by Korean listed companies, with every version of the governing rules. An appendix adds comparison cases from US income tax and German hospital minimum volumes. The date changes outcomes mainly through provisions outside the main statutory text: one transitional provision raises agreement with the disclosures from 83-86% to 89-90%. The disclosures also test the author's reading of a contested provision, favouring it in 130 of 189 firm-years where readings diverge. Four LLMs wrote the rules, given different selections of the law. A pre-registered comparison finds no condition better across all four models. In exploratory analyses, supplying the right provisions looks better graded against the author's reading than against the records: the advantage shrinks for three models (for one, to between a quarter and three-fifths of its size), and per firm-year it is several times larger where the author's reading is wrong, partly by construction, since there reproducing that reading more faithfully must lose. Grading legal programs against the grader's own reading can overstate how well they work.
Figures & tables
Figure 1: The test bed. Each case is decided as of its own date from a store of every version of the governing texts; rules written by an LLM, and the author’s reference rules, are scored against keys that the author did not write.
Layer
Instrument
What it decides
Changes in the study window
Statute
Framework Act on SMEs, Art. 2
Definition; grace period (§2(3))
–
Decree
Arts. 3, 7, 7-2
Size tests: 3-year average revenue (Art. 7), total assets ¡ KRW 500 bn (Art. 7-2), independence
2015 overhaul from employee/capital to revenue tests
Decree
Art. 3-3
Status applies for one year from three months after the fiscal year end
–
Decree
Art. 9
Grace period granted once only
–
Annex
Annex 1
Revenue ceiling per industry (KSIC code)
2015 new table; 2017 KSIC reclassification; 2025 ceilings raised for 16 of 44 industry rows
Annex
Annex 2
Aggregation of affiliated firms’ revenue
–
Table 1: Layers of the Korean SME rule.
Type
Temporal structure
Instance
What an in-force-only encoding gets wrong
Measured (against the key unless stated)
Transitional deeming
an old position stays applicable to facts after the new norm is in force, until a stated date
Korea: 2014 decree addenda, Art. 2 (in force 1 January 2015; deeming until 31 March 2018)
judges covered firms by the new ceilings from 2015
modelling it with the once-only rule raises agreement by 5.1 points in FY2015–2017 (Section 6.1)
Lagged status
status for a period is fixed by facts of the preceding period
Korea: Decree Art. 3-3
applies a new annex to the period in which it enters into force
none of 44 firms between the old and the 2025 ceilings switched in the FY2025 report (outside the key)
Anticipatory delegated parameter
an instrument is in force before the period it governs
US: Revenue Procedure for tax year Y, issued in the autumn of Y−1
takes the latest document before the decision date, which governs the next year
the previous year’s law changes tax by 1% or more on 50% of returns (Appendix F.3)
Embedded schedule
the current text states year-specific values
Germany: Mm-R transitional clauses
nothing, if the current text is read whole
functions from the current and the date-correct versions score identically (Appendix F.4)
Evaluative standard
applicability turns on a judgement under an indeterminate concept
Germany: refutation on ”justified substantial doubts”
the judgement cannot be encoded
the share of entitled below-threshold sites rose from 0.34 to 0.64 (Appendix F.3)
Table 2: Temporal structures in the three cases: what an encoding that tracks only the text in force gets wrong, and what the keys measure.
Work
What is graded
Date of the law varies per case
Delegated or transitional provisions
Answer key
Years
Law&Order [Han et al. 2026]
executable tax program
no
no
independently authored returns (TaxCalcBench)
one
TaxCalcBench [Bock et al. 2025]
direct LLM tax computation
no
no
commercial tax engine
one (2024)
Synedrion [Gogani-Khiabani et al. 2026]
tax software
no
no Revenue Procedure selection
hand-written reference
one (2021)
Catala generation [Lorenzo et al. 2025; Ahmad et al. 2026]
Catala code
no
references, not versions in force
researcher-written
–
FiscalQA Pro, NitiBench+, LexKairos, Prior et al.
retrieved version or answer
yes
no
benchmark labels
several
TALD-Bench [Huang et al. 2026]
applicable law version
yes
transition to the Civil Code
court judgments
around the Civil Code
Table 3: What the closest work grades and against what.
FY
Firm-years
Disclosed SME
Within ±20% of ceiling
Label from prose / table
2015
887
67%
13%
866 / 21
2016
943
68%
13%
923 / 20
2017
1,028
69%
13%
1,008 / 20
2018
1,087
66%
12%
1,061 / 26
2019
1,155
67%
12%
1,130 / 25
2020
1,227
66%
14%
1,201 / 26
Table 4: Korean firm-years with a label and facts, by fiscal year.
Case
Property
Source
Korea
Equal decisions within one application period
Decree Art. 3-3
Korea
Firms far below every ceiling are SMEs
Decree Art. 3, Annex 1
Korea
Firms far above every ceiling with assets of KRW 500 bn or more are not
Decree Art. 3
Korea
Firms covered by the 2014 addendum are SMEs in the 2016 period and not in the 2020 period
Addenda of 2014, Art. 2(1)–(2); reading (b) of (2), contested (Section 6.2)
Korea
Three-year grace after first exceeding
Act Art. 2(3)
Table 5: Properties used by the verify-and-repair loop (Korea).
Separate instead of consolidated revenue (comparison; 11,079 firm-years)
86.3%
87%
68.8%
Full rule, grace counted one report later
87.3%
89–90%
69.7%
Full rule, pre-2015 status checked against FY2012–14 figures (35 FY2014 SME disclosures overruled)
88.8%
87–88%
76.8%
Table 6: Reference rule versus disclosed status (10,901 firm-years, 1,677 firms, FY2015–2023; data/sme/kr_numbers.md).
Figure 2: Firms covered by the 2014 addendum. Top: the deeming period and the two readings of Paragraph 2. Bottom: share disclosing SME status (key) and share predicted to be SMEs by the reference rule under each reading. The disclosures fall gradually from FY2017 to FY2021 and follow the step of neither reading.
Condition
All, vs reference rule
All, vs disclosures
Subset A, vs reference rule
Subset A, vs disclosures
Exact provisions (oracle)
0.989 (27)
0.890
0.922 [0.735–1.000] (12)
0.822
Ours
0.989 (27)
0.890
0.895 [0.714–1.000] (12)
0.817
Date-correct fixed list
0.968 (27)
0.884
0.851 [0.327–1.000] (12)
0.777
Fixed list padded to our size
0.967 (27)
0.884
0.776 [0.265–1.000] (12)
0.745
No law
0.939 (25)
0.866
0.879 [0.622–1.000] (12)
0.801
Current law
0.945 (3)
0.863
0.875 [0.831–0.898] (3)
0.805
Table 7: Korean conditions including the controls (mean over functions [range]; n = functions). Subset A: firms covered by the 2014 addendum, FY2015–2018, as pre-registered.
Appendix figures & tables12 assets
Supplementary material from the paper’s appendix.
Appendix
Statute
Method
Precision
Recall
Articles included
SME act and decree
Five-year lifespan heuristic
0.30
0.52
143
SME act and decree
Addenda reader
1.00
1.00
83
Mid-sized Enterprise Act and decree
Five-year lifespan heuristic
0.12
0.67
48
Mid-sized Enterprise Act and decree
Addenda reader
1.00
1.00
9
Appendix
Table 101: Addenda selection at article level, 1 April of each year 2015–2026, legally relevant gold.
Method
Recall
Precision
F1
Avg. bundle size
Years with recall 1.0
Current law, fixed list
0.38
0.33
0.35
7.0
0/12
Date-filtered statute only
0.16
1.00
0.27
1.0
0/12
Date-correct fixed list
0.48
1.00
0.64
3.0
0/12
BM25, same size as ours
0.68
0.20
0.31
22.0
0/12
Ours (L = 5)
1.00
0.29
0.45
22.0
12/12
Ours with addenda reader
1.00
0.27
0.42
23.9
12/12
Appendix
Table 102: Korean SME act, decision date 1 April of each year, 2015–2026, original required-provision list (above). Recall and precision count required provisions at the correct version; precision is strict. Against the revised list (above), the lifespan heuristic reaches recall 0.91 and the addenda reader 1.00. Bundle size counts items: the lifespan heuristic adds each addendum as one item, the addenda reader adds individual addendum articles, so its bundles hold less addendum text but more items.
Method
Correct at filing date (Y+1-04-15)
Correct at year end
Latest overall
0/11
0/11
Latest issued before the date
0/11
0/11
Procedure number year = Y
2/11
2/11
Applicability read from text (”taxable years beginning in Y”; latest if superseded)
11/11
11/11
Appendix
Table 103: Revenue Procedure selection, tax years 2013–2023.
Run
What was checked
Result
Action
First round, inside the project directory
78 conversation logs
33 name evaluation data files (e.g. cases.csv ) that no prompt mentions
whole round withdrawn
First isolated runs
46 + 26 conversations (the two windows overlap by minutes)
no project path, no answer-key file name
kept
Rerun of 206 runs
207 conversations in its window
the 206 runs inside isolated directories, none naming an answer-key file; one non-synthesis conversation from the project directory
kept
All Gemini runs
web use
2 conversations ran a web search (one for an Annex 1 ceiling)
responses discarded and regenerated
All Gemini runs
attempts logged before the audit
525 of 814 ended in a client error (mostly the usage quota, where observed)
retried
All Gemini runs
first code block loads
17 of 303 synthesis responses did not (Korea 14, US 2, Germany 1)
16 regenerated, 14 of which now load; the 17th is US 2023, outside the graded years
Table 131: Pre-registered primary comparison, our bundle against the date-correct fixed list, per year and model (”yes” = the criterion of Section 5.2 is met in favour of our bundle). Last column: the RQ2 verdict across models, for which a difference needs at least three of four models (analysis plan, change log of 9 November 2026). Subset A: firms covered by the 2014 addendum, FY2015–2018; subset B: all firms, FY2017–2019 (data/four_models.md).
Question
Answer
Purpose
To grade executable rules for as-of-date legal status decisions against keys independent of the reading that produced them. Not built to decide any firm’s actual SME status.
Creator and funding
Withheld for double-blind review; no specific funding.
Instances
Korea: 10,901 firm-years (1,677 listed firms, FY2015–2023), each with a disclosed SME label, revenue and assets, industry code, pre-2015 status, and the filing identifier. US: 2,000 synthetic returns (2013–2022) with TAXSIM results. Germany: 7,845 site–procedure–year decisions (entitlement years 2021–2024) with case counts, exceptions, and the insurers’ result. Version stores: every version of the governing Korean act, decree, annexes, and addenda; US Code editions and Revenue Procedures; 24 Mm-R versions.
Labels and their source
Korean labels are the firms’ own statements in annual reports, extracted by scripts/extract_sme_labels_v3.py; 526 rest on ”not applicable” table cells and 82 cite a tax statute (both flagged). US labels are TAXSIM35 outputs. German labels are the insurers’ decisions as published by IQTIG.
Known errors and gaps
An audit found about 2% of first-extractor labels wrong (corrected in version 3); the author’s hand check of 200 stratified labels found 2 errors in 183 decidable ones, and confirmed every decidable label of the 189 firm-years on which the readings of the 2014 addendum differ; a second annotator, an undergraduate not involved in the project and blind to labels and the author’s decisions, agrees with the author on 352 of 353 disclosures both decided (κ = 0.99) and differs mainly in coding ”not applicable” as non-SME against the instructions (28 cases). Financial figures failing a sanity filter (271 rows) are treated as missing. FY2015 revenue averages two years, not three. The Korean reference rule omits the ownership-based independence tests.
Personal data
None. Firms are legal persons identified in public filings; the US returns are synthetic; German data are at hospital-site level.
Appendix
Table 141: Datasheet for LexTemporis.
Case
Property
Source
US
Zero tax below any standard deduction
IRC §63
US
Tax non-decreasing in wages; marginal increase below 50%
IRC §1
US
Long-term gains never taxed above wages
IRC §1(h)
US
Joint return with a non-earning spouse never above single
IRC §§1, 63
Germany
Entitlement non-decreasing in case counts
Mm-R §4(1)
Germany
Exceptions grant entitlement; counts above every threshold grant entitlement
Mm-R §§4, 6
Appendix
Table 151: Properties used by the verify-and-repair loop in the comparison cases (Section 5.3).
Law applied
Returns
Correct within $1
Tax differs by ≥1%
Median error
Median error (%)
Previous year (Y−1)
2,000
8.2%
49.7%
$151
1.1%
Latest (2022)
1,800
8.2%
90.5%
$1,062
14.1%
Last pre-TCJA year (2017)
1,800
6.9%
75.4%
$540
11.8%
First TCJA year (2018)
1,800
8.4%
86.8%
$812
11.5%
Appendix
Table 152: Same taxpayers, law of another year (TAXSIM, 2,000 returns, tax years 2013–2022).
Count used
Agreement
Recall of denials (648)
Report year
0.864
0.863
July–June
0.864
0.920
Either
0.898
0.852
Both
0.830
0.931
Predict ”entitled” for all
0.917
0.000
Appendix
Table 153: Threshold rule versus the insurers’ decisions (7,845 site–procedure–years). A site is predicted entitled if an exception applies or a case count reaches the year’s threshold.
Entitlement year
Below threshold
Entitled
Rule in force at prognosis
2021
201
0.34
Insurers may refute on justified substantial doubts
2022
314
0.64
+ COVID-19 admitted as a supporting circumstance
2023
436
0.71
Refutation mandatory on such doubts, by formal decision
2024
589
0.68
+ standard examples of doubt, including a missed threshold
Appendix
Table 154: Sites below the threshold in the report year, without an exception, that were entitled.
Figure 151: German sites below the threshold without an exception: share still entitled, with the rule changes that preceded each entitlement year (Table F4).
Case
Measure
No law
Current law
Statute edition only (US)
Ours (US: statute + Revenue Procedure)
US
exact (±$1), 2013–2022
0.970 (30)
0.963 (30)
0.950 (30)
0.973 (30)
US
within 1%, 2013–2022
1.000 (30)
1.000 (30)
0.986 (30)
0.999 (30)
Germany
balanced accuracy, years with a changed threshold (2023 / 2024)
0.783 / 0.825
0.773 / 0.810
–
0.773 / 0.810
Appendix
Table 155: Synthesis results in the comparison cases (mean over functions; n = functions, except US current law and Germany, where n counts function-years: one current-law function is scored separately in each year).
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.
Abdullah Al Zubaer, Lorenz Wendlinger, Simon Alexander Nonn +2
University of Passau Passau, Germany · Deggendorf Institute of Technology Deggendorf, Germany
Large language models (LLMs) have shown impressive capabilities across diverse tasks, yet their performance on jurisdiction-specific legal reasoning remains underexplored. We present TW-LegalBench that utilizes Taiwanese legal system's rich official corpus open to the public to fill the gap in evaluating LLMs on Taiwanese law, among common-law benchmarks that focus on English sources and civil-law benchmarks focusing on sources of Simplified Chinese. TW-LegalBench comprises three task types: (1) over 16,000 multiple-choice questions (MCQs) across five years of official examinations in 18 professional domains; (2) 117 open-ended essay questions (OEQs) from examinations for legal professionals with official scoring rubrics; and (3) more than 14,000 legal judgment prediction (LJP) instances covering hundreds of crime categories. We evaluate 13 LLMs using accuracy for MCQs, a decomposed LLM-as-Judge framework based on the scoring rubric points for OEQs, and metrics for sentencing accuracy and statute citation for LJP. Our results reveal that top-performing models exceed the passing threshold for qualified lawyers (passing rate: 11%) but fall short of that for judges and prosecutors (passing rate: 1~2%). For LJP, while models demonstrate reasonable verdict type accuracy and sentence prediction capability, they struggle to cite exact legal articles. These findings highlight that reliable legal text generation remains challenging for LLMs, even though their performance on qualification examinations approaches human level.
Fei-Yueh Chen, Chun Huang Lin, Chan Wei Hsu +4
University of Rochester Rochester, NY, USA · National Taiwan University Taipei, Taiwan · NVIDIA Santa Clara, CA, USA
Large language models (LLMs) are increasingly used to support legal practice, education, and research, yet their reliability in national legal systems outside the United States remains largely undocumented. We introduce an expert-validated benchmark for evaluating LLM reliability on the Colombian legal system. The benchmark comprises 1,042 items spanning ten areas of law and three question formats (closed multiple-choice, semi-open, and open-ended IRAC), built through a human-in-the-loop pipeline with multi-stage expert review. We evaluate 15 contemporary proprietary and open-weight models with format-appropriate metrics. Accuracy on closed questions ranges widely, from 0.905 (Gemini 3.1 Pro) to 0.577, but on free-text legal answers factual correctness never exceeds 0.45 (on a 0-1 scale) for any model. We find a dissociation between answer relevancy and correctness (Spearman rho = -0.46): models reliably sound responsive while frequently being wrong, a pattern of particular concern for non-expert users. Closed-question accuracy and free-text correctness are strongly rank-correlated (rho = 0.94), so cheap multiple-choice screening predicts model ranking but overstates absolute reliability. An independent rubric-based LLM judge and blind human expert scoring both reproduce the free-text ranking (rho >= 0.88). The judge further reveals that only about half of the norms models cite are correct; the rest are wrong or non-existent. Reliability varies systematically by legal area and follows an inverted-U across question complexity. Our results indicate that current LLMs require expert supervision for Colombian legal tasks, and that grounding answers in authoritative sources is a promising path to higher reliability. We release the benchmark construction pipeline to support reproducible evaluation.
Department of Systems and Computing Engineering, Universidad de los Andes · School of Government, Universidad de los Andes · Faculty of Law, Universidad de los Andes