Journal Artificial Intelligence and Law · 2026
Automatic extraction and collection of legal principles from CJEU decisions on Fiscal State Aid
A corpus of 64 CJEU decisions on Fiscal State Aid supports extracting legal principles, and the collections built automatically are comparable to expert-made ones.
Research setting
The Court of Justice of the European Union (CJEU) interprets and applies EU law, and its decisions guide judges and lawyers in later cases. Fiscal State Aid is the area of EU law on national tax measures that give some companies an undue advantage, and it was developed through CJEU decisions. A legal principle is a criterion stated by the judges, such as how a rule must be interpreted, excluding literal citations of legislation. In CJEU decisions, each principle is usually contained in a single paragraph, so the task is a binary classification of paragraphs: does this paragraph state a legal principle or not?
As regards that condition, that the advantage must be granted directly or indirectly through State resources,Legal principle it must be recalled thatIndicator measures not involving a transfer of State resources may fall within the concept of “aid”,Legal principle within the meaning ofIndicator Article 107(1) TFEU.Legal principle According to the appellant,Indicator the particular nature of the review of State aid means that, when the court carrying out the review is called on to assess the facts of the case in the light of legal criteria, it must limit itself to satisfying itself that there is no manifest error of assessment.Party argument
Motivation
CJEU decisions are long and complex, so finding their principles by hand takes time and legal expertise. Collections of extracted principles could help summarize decisions and retrieve precedents based on the same principles. Earlier studies classified legal principles in common law cases, but no empirical work had addressed the CJEU. The only annotated corpus of CJEU decisions on Fiscal State Aid was built for argument structure, not for principles.
| Work | Decisions | What is annotated | CJEU decisions | Collections of principles judged by experts |
|---|---|---|---|---|
| Shulayeva et al. (2017) | 50 common law reports | Facts and legal principles | no | no |
| Valvoda and Ray (2017) | A well-cited case and the cases citing it | Binding and non-binding principles | no | no |
| Demosthenes corpus (Grundler et al., 2022) | 40 CJEU decisions on Fiscal State Aid | Argument structure | yes | no |
| This paper This work | 64 CJEU decisions on Fiscal State Aid | Legal principles | yes | yes |
Objective. Build an annotated corpus of CJEU decisions on Fiscal State Aid, find the best way to extract their legal principles automatically, and test whether the extracted paragraphs form collections that experts accept as real.
Approach
The corpus holds all 64 decisions of the CJEU on Fiscal State Aid adopted between 1992 and 2022. Two legal experts with a PhD in Law annotated them. On 124 principles annotated by both, their agreement was Cohen’s κ = 0.87, where 1 is perfect agreement. Only 614 paragraphs state a principle, against 8,977 that do not (Table 1), so the authors rebalance the training data. Oversampling repeats each principle paragraph 12 to 13 times. Data augmentation creates about 5,000 new principle paragraphs by replacing 10% or 40% of their words with related words. An encoder then turns each paragraph into a vector. A classifier, such as a support vector machine (SVM), learns to separate principles from other paragraphs.
-
This work
8 training sets
Original, oversampled, and six augmented.
- AugGV GloVe neighbor
- AugLB LEGAL-BERT guess
- AugWN+GV WordNet and GloVe
-
3 encoders
Paragraph to vector.
- BERT general
- LEGAL-BERT legal text
- Sentence-BERT similarity
- 3 classifiers SVM, logistic regression, feed-forward network.
- 72 models Compared with 11 baselines and 3 LLMs.
Accordingly, although a measure by which the officeReplaced authorities grant certain undertakings favorableReplaced tax treatment, which, although not involving the transfer of state resources, places the recipients in a more favourable financial rightReplaced than other taxpayers, quantitiesReplaced to state aid within the meaning of article 107(1) tfeu, that is not the position as regards advantages resulting from a general measure applicable without distinction to all economic operators, which do not constitute state aid within the meaning of that provision (judgment in p, eu:c:2013:525, paragraph 18).
The baselines include random guessing, classifiers on word counts (tf-idf), and a similarity threshold to the known principles. The three large language models (LLMs), Mistralv3, Llama3, and Phi3-mini, answer YES or NO for each paragraph from a prompt that defines a legal principle, with no examples (zero-shot). Lastly, the paragraphs that the best classifier flags in a decision are collated in document order into a collection of principles, as in the schema at the top of this page.
Results
All models were tested on 13 held-out decisions with 113 principle paragraphs and 1,805 other paragraphs (Table 1). Precision is the share of flagged paragraphs that state a principle, recall is the share of principles that are flagged, and F1, from 0 to 1, balances the two.
- 0.72F1 of BERT + SVM + AugGV (Table 6)
- 0.54F1 of the best baseline, tf-idf (Table 3)
- 0.34F1 of the best zero-shot LLM, Llama3 (Table 4)
BERT with an SVM led the ten best combinations, with precision of 0.80 and recall of 0.65 for the best one (Table 6). Augmentation with AugGV at 10% added 0.039 F1 over the same model without augmentation, although no augmentation method was consistently the best. The general-purpose BERT beat LEGAL-BERT, which reached higher recall but lower precision (Table 5). The zero-shot LLMs flagged most paragraphs as principles: Mistralv3 reached a recall of 1.00 with a precision of 0.10 (Table 4). The paper reports no significance tests.
The generated collections were compared with the expert-made collection of each test decision. ROUGE measures word overlap between two texts, here as F1 averaged over the 13 test decisions.
| Collections | ROUGE‑1 | ROUGE‑2 | ROUGE‑L |
|---|---|---|---|
| This work (BERT + SVM + AugGV) | 0.73 | 0.69 | 0.67 |
| Llama3, zero-shot | 0.42 | 0.38 | 0.35 |
| Random paragraphs | 0.08 | 0.07 | 0.07 |
F1 of each ROUGE variant, averaged over the test decisions (higher is better). Source: Table 7 of the paper.
Two other legal experts then tried to tell generated collections from expert-made ones, for the 26 validation and test decisions. Seeing one collection at a time, they spotted generated collections with an average F1 of 0.40 (precision 0.56, recall 0.31), so most generated collections passed as original. Seeing both versions side by side, they reached an F1 of 0.66 (precision 0.73, recall 0.62). Their error analysis found false positives on paragraphs about facts or appeal procedure, and false negatives where facts and principles are intertwined.
Takeaways
- A first corpus of principles in CJEU decisions.Experts marked 614 principle paragraphs in 64 decisions on Fiscal State Aid, with an agreement of 0.87 (Cohen’s κ). The authors release the corpus and code.
- Small trained classifiers beat zero-shot LLMs.BERT with an SVM and AugGV augmentation reached an F1 of 0.72, against 0.34 for the best zero-shot LLM.
- Generated collections pass a first expert check.Experts shown one collection at a time spotted generated ones with an F1 of only 0.40. The paper names classifying each paragraph without its context as a possible limit.
Citation
@article{Per_in_2026,
title = {Automatic extraction and collection of legal principles from CJEU decisions on Fiscal State Aid},
ISSN = {1572-8382},
url = {https://doi.org/10.1007/s10506-026-09526-5},
DOI = {10.1007/s10506-026-09526-5},
journal = {Artificial Intelligence and Law},
publisher = {Springer Science and Business Media LLC},
author = {Perçin, Sezen and Liepiņa, Rūta and Galassi, Andrea and Lagioia, Francesca and Ruggeri, Federico and Santin, Piera and Sartor, Giovanni and Torroni, Paolo},
year = {2026},
month = {June}
}