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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cdla-permissive-2.0
|
| 3 |
+
language:
|
| 4 |
+
- de
|
| 5 |
+
- fr
|
| 6 |
+
- it
|
| 7 |
+
pretty_name: VelumBench
|
| 8 |
+
size_categories:
|
| 9 |
+
- n<1K
|
| 10 |
+
task_categories:
|
| 11 |
+
- token-classification
|
| 12 |
+
tags:
|
| 13 |
+
- legal
|
| 14 |
+
- anonymization
|
| 15 |
+
- swiss-law
|
| 16 |
+
- apertus
|
| 17 |
+
configs:
|
| 18 |
+
- config_name: default
|
| 19 |
+
data_files:
|
| 20 |
+
- split: dev
|
| 21 |
+
path: data/dev.jsonl
|
| 22 |
+
- split: test
|
| 23 |
+
path: data/test.jsonl
|
| 24 |
+
---
|
| 25 |
+
|
| 26 |
+
# Dataset Card for VelumBench
|
| 27 |
+
|
| 28 |
+
VelumBench is a test set for anonymising Swiss court decisions in German, French and Italian.
|
| 29 |
+
Each case is a published decision in which the court's placeholders (`A.________`) have been
|
| 30 |
+
filled with invented Swiss identities, so a system sees text that reads like a decision before
|
| 31 |
+
anonymisation, and the inserted spans are the exact answer key for what it must remove. Names the
|
| 32 |
+
courts publish on purpose (judges, clerks, lawyers) are the answer key for what must stay.
|
| 33 |
+
|
| 34 |
+
It was built for Velum, a Hack Apertus 2026 Track 2B project that anonymises decisions with Apertus
|
| 35 |
+
and cites the rule behind every edit. The `runs/` folder holds the raw outputs of every benchmark
|
| 36 |
+
run reported in the technical report.
|
| 37 |
+
|
| 38 |
+
## Dataset Details
|
| 39 |
+
|
| 40 |
+
- **Curated by:** Calder Luo
|
| 41 |
+
- **Shared by:** Calder Luo, for the Online Hack Apertus 2026 (Track 2B)
|
| 42 |
+
- **Language(s) (NLP):** German, French, Italian
|
| 43 |
+
- **License:** CDLA-Permissive-2.0 for the invented identities, the annotations and the split.
|
| 44 |
+
Decision texts are official decisions and are not protected by copyright (Art. 5 para. 1 let. c
|
| 45 |
+
URG, SR 231.1).
|
| 46 |
+
- **Git repository:** https://github.com/calderbuild/velum (generator in `track_2b/src/velum/bench.py`)
|
| 47 |
+
|
| 48 |
+
| | dev | test |
|
| 49 |
+
| --- | --- | --- |
|
| 50 |
+
| Decisions | 79 (de 18, fr 36, it 25) | 537 (de 198, fr 180, it 159) |
|
| 51 |
+
| Courts | BGer 56, BVGer 9, GE 8, VD 2, TI 2, ZH 1, BE 1 | BGer 356, BVGer 80, ZH Obergericht 24, BE 24, VD 23, GE 17, GR 9, TI 4 |
|
| 52 |
+
| Gold mentions to remove | 1,459 (person 1,187, company 187, address 52, place 33) | 8,390 (person 6,713, company 951, address 374, place 352) |
|
| 53 |
+
| Distinct gold entities | 376 | 2,471 |
|
| 54 |
+
| Published names that must stay | 450 mentions (298 names) | 3,168 mentions (2,072 names) |
|
| 55 |
+
| Decision dates | 2008 to 2026 | 2008 to 2026 |
|
| 56 |
+
| Median length | 13,685 characters | 13,088 characters |
|
| 57 |
+
|
| 58 |
+
## Uses
|
| 59 |
+
|
| 60 |
+
### Direct Use
|
| 61 |
+
|
| 62 |
+
Scoring systems that anonymise Swiss court decisions: how many identities they remove (recall),
|
| 63 |
+
how many decisions come out with nothing leaked, how many published names they wrongly remove
|
| 64 |
+
(over-redaction), whether one party gets one placeholder throughout (consistency), and how much
|
| 65 |
+
text they change outside the names. The scorer is `velum bench` in the Git repository; it needs no
|
| 66 |
+
model and no LLM judge.
|
| 67 |
+
|
| 68 |
+
### Out-of-Scope Use
|
| 69 |
+
|
| 70 |
+
- Training or evaluating re-identification. The inserted identities are invented and say nothing
|
| 71 |
+
about the real parties.
|
| 72 |
+
- Using the invented names, companies or addresses as facts about real people or businesses.
|
| 73 |
+
- Treating the gold as a full anonymisation standard. It covers only what the court itself replaced
|
| 74 |
+
with a placeholder (see Risks, Bias, and Limitations).
|
| 75 |
+
|
| 76 |
+
### Specifications
|
| 77 |
+
|
| 78 |
+
- Source rows: [`voilaj/swiss-caselaw`](https://huggingface.co/datasets/voilaj/swiss-caselaw)
|
| 79 |
+
(CC0-1.0) at revision `90d5cd212466d4286ed574f825ae5b3df8cb3645`.
|
| 80 |
+
- Stratified sample of 750 decisions with seed `20261001`: Federal Supreme Court 420, Federal
|
| 81 |
+
Administrative Court 90, Federal Criminal Court 90, six cantonal courts 150. 616 of them yielded at
|
| 82 |
+
least one gold mention.
|
| 83 |
+
- Split: `sha256(decision_id) mod 7 == 0` goes to dev, the rest to test.
|
| 84 |
+
|
| 85 |
+
## Dataset Structure
|
| 86 |
+
|
| 87 |
+
One JSON object per line in `data/dev.jsonl` and `data/test.jsonl`.
|
| 88 |
+
|
| 89 |
+
| Field | Meaning |
|
| 90 |
+
| --- | --- |
|
| 91 |
+
| `id`, `court`, `language`, `docket`, `decision_date`, `legal_area`, `source_url` | From the source row |
|
| 92 |
+
| `text` | The decision with invented identities in place of the placeholders: the system input |
|
| 93 |
+
| `gold` | `{start, end, text, entity, kind}` per inserted mention; `kind` is person, company, place or address; `entity` groups the mentions of one party (`A`, `A#address`) |
|
| 94 |
+
| `keep` | `{text, kind, count}` for each published name that must stay (`court_official` or `lawyer`) |
|
| 95 |
+
| `published_text` | The decision exactly as the court published it |
|
| 96 |
+
| `license` | Instance-level licence note |
|
| 97 |
+
| `provenance` | `{hf_dataset, revision, file, row_group, file_row_number, content_hash}`, enough to re-fetch the source row |
|
| 98 |
+
|
| 99 |
+
`runs/` holds one gzipped JSONL file per benchmark run on the test split (1 October 2026, CSCS
|
| 100 |
+
endpoint, temperature 0) and its summary:
|
| 101 |
+
|
| 102 |
+
| Run | Decisions | Recall | Over-redaction | Changes outside the names |
|
| 103 |
+
| --- | ---: | ---: | ---: | ---: |
|
| 104 |
+
| `rewrite_Apertus-v1.5-70B` (`per-language-20`): Apertus 70B rewrites the whole decision | 60 | 70.8% | 4.3% | 215 |
|
| 105 |
+
| `velum_Apertus-v1.5-70B`, scored on the same 60 (`per-language-20`) | 60 | 96.7% | 2.8% | 0 |
|
| 106 |
+
| `velum_Apertus-v1.5-70B` | 537 | 89.4% | 1.2% | 0 |
|
| 107 |
+
| `velum_Apertus-v1.5-8B` | 537 | 76.4% | 0.5% | 0 |
|
| 108 |
+
| `patterns_none`: regular expressions only | 537 | 4.6% | 0.0% | 0 |
|
| 109 |
+
|
| 110 |
+
Each line of a run file is one decision: the output text, every edit with the article that requires
|
| 111 |
+
it, the risks the audit raised, the score and the token usage. Every summary recomputes from its run
|
| 112 |
+
file without a model call (`track_2b/results/README.md` in the Git repository).
|
| 113 |
+
|
| 114 |
+
## Dataset Creation
|
| 115 |
+
|
| 116 |
+
### Curation Rationale
|
| 117 |
+
|
| 118 |
+
Swiss courts must publish their decisions in anonymised form, and each court has precise rules for
|
| 119 |
+
what to replace and what to keep. Published decisions show only the result, so there was no open,
|
| 120 |
+
exact test set for this task in German, French and Italian. VelumBench turns the courts' own
|
| 121 |
+
placeholders into one.
|
| 122 |
+
|
| 123 |
+
### Source Data
|
| 124 |
+
|
| 125 |
+
Decisions of the Federal Supreme Court, the Federal Administrative Court and six cantonal courts as
|
| 126 |
+
published by the courts and collected in `voilaj/swiss-caselaw`.
|
| 127 |
+
|
| 128 |
+
#### Data Collection
|
| 129 |
+
|
| 130 |
+
I read only the row groups needed for the sample from the pinned revision of the source dataset and
|
| 131 |
+
kept the source identifiers in `provenance`.
|
| 132 |
+
|
| 133 |
+
#### Source Data Producers and Data Subjects
|
| 134 |
+
|
| 135 |
+
The courts wrote and anonymised the decisions. The parties appear only as the courts' placeholders,
|
| 136 |
+
which VelumBench replaces with invented identities. Judges, clerks and lawyers appear as the courts
|
| 137 |
+
published them; Swiss courts publish these names on purpose.
|
| 138 |
+
|
| 139 |
+
#### Ownership and Consent Management
|
| 140 |
+
|
| 141 |
+
Official decisions are not protected by copyright in Switzerland (Art. 5 para. 1 let. c URG), and the
|
| 142 |
+
source collection is CC0-1.0. The courts' publications stay authoritative. If a court withdraws or
|
| 143 |
+
re-anonymises a decision, I will remove the case; open an issue in the Git repository.
|
| 144 |
+
|
| 145 |
+
#### Data Processing and Quality Control
|
| 146 |
+
|
| 147 |
+
`python -m velum build` finds the placeholders, decides from the surrounding words whether a letter
|
| 148 |
+
stands for a person, a company or a place, and inserts an invented identity from per-language pools,
|
| 149 |
+
the same one for every occurrence of the letter. When a party in the header is followed by an address
|
| 150 |
+
line, it also inserts an invented street address. No word of an inserted name occurs in the source
|
| 151 |
+
decision. In all 616 cases, each of the 9,849 gold spans points at exactly its text, and a unit test
|
| 152 |
+
in the repository generates a case and checks its kinds, its keep list and its scoring.
|
| 153 |
+
|
| 154 |
+
#### Data Instance Licenses
|
| 155 |
+
|
| 156 |
+
Decision texts: official decisions, not protected by copyright. Invented identities, annotations,
|
| 157 |
+
split and run outputs: CDLA-Permissive-2.0.
|
| 158 |
+
|
| 159 |
+
### Annotations
|
| 160 |
+
|
| 161 |
+
#### Annotation Process
|
| 162 |
+
|
| 163 |
+
The gold is generated, not hand-labelled: every inserted span is recorded with its offsets as it is
|
| 164 |
+
written. The `keep` list is read from the composition block and from "vertreten durch / représenté
|
| 165 |
+
par / patrocinato da".
|
| 166 |
+
|
| 167 |
+
#### Annotator Details
|
| 168 |
+
|
| 169 |
+
No human annotators. The generator is deterministic code in the Git repository. No language model
|
| 170 |
+
was used to build the gold.
|
| 171 |
+
|
| 172 |
+
## Risks, Bias, and Limitations
|
| 173 |
+
|
| 174 |
+
- The gold is only as complete as the court's own anonymisation: if a court left a name in the
|
| 175 |
+
published text, VelumBench does not count it as a leak, and over-redaction is scored only on judges,
|
| 176 |
+
clerks and lawyers.
|
| 177 |
+
- Only "letter + period + underscores" placeholders are recognised, so the Federal Criminal Court
|
| 178 |
+
(bare `A.`) and most Ticino decisions are missing, and Romansh is not covered.
|
| 179 |
+
- Courts that anonymise lawyers keep their lawyer placeholders, which are not scored.
|
| 180 |
+
- Addresses are inserted only for the first party in the header.
|
| 181 |
+
- The kind of a placeholder (person, company, place) comes from the surrounding words, so a few
|
| 182 |
+
companies are scored as persons and the reverse. Recall does not depend on the kind.
|
| 183 |
+
- Quasi-identifiers (occupations, small places with dates, unusual events) have no gold.
|
| 184 |
+
|
| 185 |
+
### Personally Identifiable Information
|
| 186 |
+
|
| 187 |
+
No real party is re-identified. Every person, company and place in `gold` is invented, and none of
|
| 188 |
+
its words occurs in the source decision. Addresses combine common Swiss street names with real
|
| 189 |
+
postcodes and towns. The source dataset warns that some cantonal decisions may still contain names
|
| 190 |
+
the court missed; VelumBench adds none, but keeps whatever the court published.
|
| 191 |
+
|
| 192 |
+
### Sensitive Information
|
| 193 |
+
|
| 194 |
+
Court decisions can describe health, criminal proceedings, migration status or family matters of the
|
| 195 |
+
parties. Those passages are as the courts published them, about parties the courts anonymised.
|
| 196 |
+
|
| 197 |
+
### Recommendations
|
| 198 |
+
|
| 199 |
+
Report results per language and per court, and read recall together with over-redaction and the
|
| 200 |
+
changes outside the names: a system can reach high recall by removing too much.
|
| 201 |
+
|
| 202 |
+
## Citations
|
| 203 |
+
|
| 204 |
+
**APA:**
|
| 205 |
+
|
| 206 |
+
Luo, C. (2026). *VelumBench: an open test set for anonymising Swiss court decisions* [Data set].
|
| 207 |
+
Hack Apertus 2026. https://github.com/calderbuild/velum
|
| 208 |
+
|
| 209 |
+
## Dataset Card Authors
|
| 210 |
+
|
| 211 |
+
Calder Luo
|
| 212 |
+
|
| 213 |
+
## Dataset Card Contact
|
| 214 |
+
|
| 215 |
+
Open an issue at https://github.com/calderbuild/velum
|