Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -44,7 +44,7 @@ row["token_classes"] # BIOES targets, aligned to row["tokens"]
|
|
| 44 |
row["privacy_mask"] # [{"label": "USER_ID", "start": 30, "end": 38, "value": "..."}, ...]
|
| 45 |
```
|
| 46 |
|
| 47 |
-
Train a token classifier on `(tokens, token_classes)`
|
| 48 |
|
| 49 |
<br>
|
| 50 |
|
|
@@ -59,7 +59,7 @@ ai4privacy/pii-masking-openpii-1.5m (ko + en)
|
|
| 59 |
↓ (3) synthesize domain templates × value generators (finance/card/bank/insurance/security)
|
| 60 |
│ · method A: mention-level perturbation of refined ko rows
|
| 61 |
│ · method B: static template × value-generator synthesis (no LLM at runtime)
|
| 62 |
-
│ · hard-example injection: O decoys + label-confusion/context pairs + boundary positives (§2.
|
| 63 |
↓ (4) mix concat + shuffle(seed=42) → BIOES derivation → integrity + RRN audit
|
| 64 |
This dataset (train / validation)
|
| 65 |
```
|
|
@@ -69,7 +69,7 @@ This dataset (train / validation)
|
|
| 69 |
* **Locally generated values in the value pool** are md5-partitioned per split (train / validation) with empty pairwise intersection, enforced by a disjointness assertion.
|
| 70 |
|
| 71 |
## 2.2. Splits
|
| 72 |
-
| split | rows | ko | en | en-share
|
| 73 |
|-------|-----:|---:|---:|---------:|------|
|
| 74 |
| `train` | 58,494 | 42,072 | 16,422 | 28.1% | training input |
|
| 75 |
| `validation` | 14,543 | 10,460 | 4,083 | 28.1% | HPO / checkpoint selection |
|
|
@@ -227,41 +227,45 @@ All PII values are synthetic - none are drawn from any real individual's records
|
|
| 227 |
|
| 228 |
| regime | rows | how values are kept safe |
|
| 229 |
|--------|-----:|--------------------------|
|
| 230 |
-
| **Inherited values** (`ko-refine` + `en-replay`) | 42,026 (57.5%) | Values come from the upstream **ai4privacy** synthetic corpus (LLM / `faker`-generated, CC-BY-4.0) and are re-labeled. `RRN`
|
| 231 |
| **Locally generated values** (`ko-perturb` + `domain`) | 31,011 (42.5%) | Values come from independent local generators. Labels covered by §3.2 additionally use reserved or unassigned formats or deliberately failing checksums. |
|
| 232 |
|
| 233 |
The `source_dataset` buckets are not equivalent to these value-provenance regimes. The `openpii-1.5m-ko` bucket mixes refined rows with 9,409 perturbed rows whose PII is locally re-generated. Consequently, the source buckets total 51,435 `openpii-*` rows (70.4%) and 21,602 `domain` rows (29.6%), while the value-provenance table above correctly reports 57.5% inherited and 42.5% locally generated rows.
|
| 234 |
|
| 235 |
-
## 3.1. Why this is not personal data
|
| 236 |
-
Under Korea's Personal Information Protection Act (PIPA),
|
| 237 |
|
| 238 |
* **Not sourced from real records.** Every value is synthetic - generated by our rule/`faker` pipeline, or inherited from the synthetic ai4privacy corpus. There is no original record behind any value, so this is **not pseudonymized personal data**; there is nothing to re-identify.
|
| 239 |
-
* **No source linkage even on a coincidental match.** If a synthetic value (say a `faker` mailbox at `gmail.com`) happens to equal a real one, the rest of the row - name, address, phone - is independently synthetic, so the row does not reproduce a coherent source record. Separately,
|
| 240 |
|
| 241 |
-
|
| 242 |
|
| 243 |
The statements in this section describe **design intent and empirical verification results** (checksum audits, generator-fingerprint checks); they are representations, not a legal warranty - the dataset is distributed as-is (see [Legal Disclaimer](#6-legal-disclaimer)).
|
| 244 |
|
| 245 |
## 3.2. Per-label invalidation
|
| 246 |
-
Two tiers. The first is
|
| 247 |
|
| 248 |
-
**
|
| 249 |
|
| 250 |
| label | mechanism |
|
| 251 |
|-------|-----------|
|
| 252 |
| `RRN`, `FRN` | old-scheme unification + checksum digit +5 (deliberately fails the check digit; holds regardless of birth band) |
|
| 253 |
-
| `CARD_NUMBER` | Luhn check digit +5
|
| 254 |
|
| 255 |
-
**Structural
|
| 256 |
|
| 257 |
| label | mechanism |
|
| 258 |
|-------|-----------|
|
| 259 |
| `EMAIL` | RFC 2606 reserved domains (`example.com/net/org`) |
|
| 260 |
-
| `PHONE` | unassigned prefix (
|
| 261 |
| `DRIVER_LICENSE` | unassigned region code |
|
| 262 |
| `PASSPORT` | unissued prefix (avoidance - may weaken over time) |
|
| 263 |
|
| 264 |
-
`RRN` is unified to the **pre-2020.10 scheme** so invalidity holds regardless of birth band (only the post-2020.10 number-change program leaves a documented residual). `CVC` is never generated standalone -
|
|
|
|
|
|
|
|
|
|
|
|
|
| 265 |
|
| 266 |
<br>
|
| 267 |
|
|
@@ -271,7 +275,7 @@ Two tiers. The first is applied in the refine stage to **all sources** (inherite
|
|
| 271 |
* **`PASSPORT` safety is avoidance-based**: the unissued-prefix guarantee can weaken if issuing authorities later allocate those prefixes - unlike the checksum/Luhn labels it is not mathematically permanent (flagged honestly)
|
| 272 |
* **`RRN` residual**: pre-2020.10 unification makes checksum invalidity time-independent, but the post-2020.10 number-change program is a residual case not fully covered
|
| 273 |
* **`IPIN` value spec pending**: I-PIN values are generated at pilot volume only, pending a finalized value-format confirmation
|
| 274 |
-
* **Inherited values can be real-looking**: 42,026 rows (57.5%) follow inherited-value paths and retain upstream ai4privacy values except for labels re-invalidated in §3.2. These values can use real domains or formats (e.g. `gmail.com` emails, real-format phones, and
|
| 275 |
|
| 276 |
<br>
|
| 277 |
|
|
|
|
| 44 |
row["privacy_mask"] # [{"label": "USER_ID", "start": 30, "end": 38, "value": "..."}, ...]
|
| 45 |
```
|
| 46 |
|
| 47 |
+
Train a token classifier on `(tokens, token_classes)`. Use `validation` span metrics for checkpoint selection and iteration comparison; evaluate release candidates only on the separately maintained Golden Set test split.
|
| 48 |
|
| 49 |
<br>
|
| 50 |
|
|
|
|
| 59 |
↓ (3) synthesize domain templates × value generators (finance/card/bank/insurance/security)
|
| 60 |
│ · method A: mention-level perturbation of refined ko rows
|
| 61 |
│ · method B: static template × value-generator synthesis (no LLM at runtime)
|
| 62 |
+
│ · hard-example injection: O decoys + label-confusion/context pairs + boundary positives (§2.4)
|
| 63 |
↓ (4) mix concat + shuffle(seed=42) → BIOES derivation → integrity + RRN audit
|
| 64 |
This dataset (train / validation)
|
| 65 |
```
|
|
|
|
| 69 |
* **Locally generated values in the value pool** are md5-partitioned per split (train / validation) with empty pairwise intersection, enforced by a disjointness assertion.
|
| 70 |
|
| 71 |
## 2.2. Splits
|
| 72 |
+
| split | rows | ko | en | en-share | role |
|
| 73 |
|-------|-----:|---:|---:|---------:|------|
|
| 74 |
| `train` | 58,494 | 42,072 | 16,422 | 28.1% | training input |
|
| 75 |
| `validation` | 14,543 | 10,460 | 4,083 | 28.1% | HPO / checkpoint selection |
|
|
|
|
| 227 |
|
| 228 |
| regime | rows | how values are kept safe |
|
| 229 |
|--------|-----:|--------------------------|
|
| 230 |
+
| **Inherited values** (`ko-refine` + `en-replay`) | 42,026 (57.5%) | Values come from the upstream **ai4privacy** synthetic corpus (LLM / `faker`-generated, CC-BY-4.0) and are re-labeled. Applicable `RRN` and `CARD_NUMBER` values are additionally invalidated (§3.2); `FRN` occurs only on locally generated paths. |
|
| 231 |
| **Locally generated values** (`ko-perturb` + `domain`) | 31,011 (42.5%) | Values come from independent local generators. Labels covered by §3.2 additionally use reserved or unassigned formats or deliberately failing checksums. |
|
| 232 |
|
| 233 |
The `source_dataset` buckets are not equivalent to these value-provenance regimes. The `openpii-1.5m-ko` bucket mixes refined rows with 9,409 perturbed rows whose PII is locally re-generated. Consequently, the source buckets total 51,435 `openpii-*` rows (70.4%) and 21,602 `domain` rows (29.6%), while the value-provenance table above correctly reports 57.5% inherited and 42.5% locally generated rows.
|
| 234 |
|
| 235 |
+
## 3.1. Why this dataset is designed not to contain personal data
|
| 236 |
+
Under Korea's Personal Information Protection Act (PIPA), personal information is information about a living individual that can identify the individual directly or through easy combination with other information; the statutory definition also includes pseudonymized information. This dataset's safety position therefore rests on provenance - rows are designed not to be information about any real individual - rather than on a simplified test that a synthetic value can never resemble a real value. See [PIPA Article 2](https://www.law.go.kr/LSW/lsLinkCommonInfo.do?chrClsCd=010202&lsJoLnkSeq=1030669293).
|
| 237 |
|
| 238 |
* **Not sourced from real records.** Every value is synthetic - generated by our rule/`faker` pipeline, or inherited from the synthetic ai4privacy corpus. There is no original record behind any value, so this is **not pseudonymized personal data**; there is nothing to re-identify.
|
| 239 |
+
* **No source linkage even on a coincidental match.** If a synthetic value (say a `faker` mailbox at `gmail.com`) happens to equal a real one, the rest of the row - name, address, phone - is independently synthetic, so the row does not reproduce a coherent source record. Separately, 31,848 of 73,037 rows (43.6%) contain at least one value governed by the checksum/Luhn controls or locally generated structural controls in §3.2. The remaining rows rely on synthetic provenance and absence of source linkage, not on a claim that every value is structurally impossible.
|
| 240 |
|
| 241 |
+
Individual labels and combinations can be identifying in real-world data, so label type or non-public registry access is not treated as an independent legal basis. The documented structural controls reduce accidental-match risk, while the primary basis remains synthetic provenance and absence of source linkage.
|
| 242 |
|
| 243 |
The statements in this section describe **design intent and empirical verification results** (checksum audits, generator-fingerprint checks); they are representations, not a legal warranty - the dataset is distributed as-is (see [Legal Disclaimer](#6-legal-disclaimer)).
|
| 244 |
|
| 245 |
## 3.2. Per-label invalidation
|
| 246 |
+
Two tiers. The first is enforced across all source paths for values covered by the public checksum controls. The second is a construction property of locally generated paths (`ko-perturb` + `domain`); inherited `ko-refine` and `en-replay` values for these labels rely on the §3.1 provenance argument.
|
| 247 |
|
| 248 |
+
**Checksum/Luhn controls across all source paths:**
|
| 249 |
|
| 250 |
| label | mechanism |
|
| 251 |
|-------|-----------|
|
| 252 |
| `RRN`, `FRN` | old-scheme unification + checksum digit +5 (deliberately fails the check digit; holds regardless of birth band) |
|
| 253 |
+
| `CARD_NUMBER` | Luhn check digit +5 for values ≥13 digits; shorter values are audited separately as structural residuals |
|
| 254 |
|
| 255 |
+
**Structural controls on locally generated paths (`ko-perturb` + `domain`):**
|
| 256 |
|
| 257 |
| label | mechanism |
|
| 258 |
|-------|-----------|
|
| 259 |
| `EMAIL` | RFC 2606 reserved domains (`example.com/net/org`) |
|
| 260 |
+
| `PHONE` | unassigned subscriber prefix (subscriber-number block begins with `0`/`1` for ko; `555-01XX` for en) |
|
| 261 |
| `DRIVER_LICENSE` | unassigned region code |
|
| 262 |
| `PASSPORT` | unissued prefix (avoidance - may weaken over time) |
|
| 263 |
|
| 264 |
+
`RRN` is unified to the **pre-2020.10 scheme** so invalidity holds regardless of birth band (only the post-2020.10 number-change program leaves a documented residual). `CVC` is never generated standalone - it is always paired with a Luhn-invalid PAN.
|
| 265 |
+
|
| 266 |
+
The current Luhn invalidation targets values ≥13 digits. The audit found 17 inherited 12-digit values that pass Luhn (train 14 / validation 3). ISO/IEC 7812-1 permits PANs shorter than 13 digits, and Luhn validity establishes structural possibility rather than actual issuance. These 17 values therefore remain a documented structural residual and rely on synthetic provenance until the invalidation rule is expanded to the full plausible PAN-length range. See [ISO's PAN-length explanation](https://www.iso.org/news/2016/11/Ref2146.html) and [PCI SSC's Luhn guidance](https://www.pcisecuritystandards.org/faqs/1137/).
|
| 267 |
+
|
| 268 |
+
The legacy hangul notation of `DRIVER_LICENSE` (e.g. `서울 96-123456-01`) carries a real region name, so it falls back to the §3.1 provenance argument.
|
| 269 |
|
| 270 |
<br>
|
| 271 |
|
|
|
|
| 275 |
* **`PASSPORT` safety is avoidance-based**: the unissued-prefix guarantee can weaken if issuing authorities later allocate those prefixes - unlike the checksum/Luhn labels it is not mathematically permanent (flagged honestly)
|
| 276 |
* **`RRN` residual**: pre-2020.10 unification makes checksum invalidity time-independent, but the post-2020.10 number-change program is a residual case not fully covered
|
| 277 |
* **`IPIN` value spec pending**: I-PIN values are generated at pilot volume only, pending a finalized value-format confirmation
|
| 278 |
+
* **Inherited values can be real-looking**: 42,026 rows (57.5%) follow inherited-value paths and retain upstream ai4privacy values except for labels re-invalidated in §3.2. These values can use real domains or formats (e.g. `gmail.com` emails, real-format phones, and 17 inherited 12-digit card values that pass Luhn). Their safety rests primarily on synthetic provenance and absence of source linkage rather than structural invalidation. Upstream annotation conventions and residual noise can also propagate into this portion.
|
| 279 |
|
| 280 |
<br>
|
| 281 |
|