{
  "licence": "https://creativecommons.org/licenses/by/4.0/",
  "credit": "Saulius Beconis, sbeconis.com",
  "page": "https://sbeconis.com/lab/gdpr-redaction/",
  "url": "https://sbeconis.com/lab/gdpr-redaction/redaction-2026-10-10.json",
  "note": "Measurements and text are CC BY 4.0. Source data and quoted excerpts keep their own licences: see \"attribution\".",
  "lab": "LAB/016",
  "title": "Local redaction of personal data",
  "date": "2026-10-10",
  "method": {
    "data": "Lithuanian: 600 synthetic documents (514 test), names declined in all cases, personal codes and IBANs with valid check digits, non-personal distractors. English and German: 300 test items each from ai4privacy open-pii-masking-500k (validation split), labels mapped to six classes",
    "methods": "rules (regular expressions with check digits); GLiNER multi PII v1, threshold 0.3 chosen on dev; Qwen3-8B Q4_K_M in llama.cpp, thinking off, greedy, prompt fixed on dev; unions; name forms = also redact every inflected form of a capitalised word already redacted",
    "scoring": "a detail is leaked unless every letter and digit of it is redacted; over-redaction = share of redacted characters that are not personal data; dates, ages and titles in ai4privacy are ignored"
  },
  "environment": {
    "gpu": "RTX 4070 12 GB"
  },
  "tables": {
    "methods-lt": {
      "caption": "Lithuanian (synthetic): 514 test documents. A detail counts as found only if every letter and digit of it is redacted.",
      "columns": [
        {
          "key": "recall",
          "label": "Details found",
          "suffix": "%"
        },
        {
          "key": "zero",
          "label": "Documents with no leak",
          "suffix": "%"
        },
        {
          "key": "over",
          "label": "Over-redaction",
          "suffix": "%"
        },
        {
          "key": "sec",
          "label": "Seconds per document",
          "decimals": 2
        }
      ],
      "rows": [
        {
          "label": "Rules",
          "highlight": false,
          "cells": {
            "recall": 37,
            "zero": 0,
            "over": 0.1,
            "sec": 0
          }
        },
        {
          "label": "GLiNER",
          "highlight": false,
          "cells": {
            "recall": 86.3,
            "zero": 55.4,
            "over": 1,
            "sec": 0.01
          }
        },
        {
          "label": "Qwen3-8B",
          "highlight": false,
          "cells": {
            "recall": 89.6,
            "zero": 63.8,
            "over": 11,
            "sec": 2.375
          }
        },
        {
          "label": "Rules + GLiNER",
          "highlight": false,
          "cells": {
            "recall": 96,
            "zero": 81.7,
            "over": 1,
            "sec": 0.01
          }
        },
        {
          "label": "Rules + Qwen3-8B",
          "highlight": false,
          "cells": {
            "recall": 91.8,
            "zero": 67.1,
            "over": 10.8,
            "sec": 2.375
          }
        },
        {
          "label": "Rules + GLiNER + Qwen3-8B",
          "highlight": false,
          "cells": {
            "recall": 98.8,
            "zero": 94.4,
            "over": 10.5,
            "sec": 2.385
          }
        },
        {
          "label": "Rules + GLiNER + name forms",
          "highlight": true,
          "cells": {
            "recall": 99.2,
            "zero": 96.5,
            "over": 1.1,
            "sec": 0.01
          }
        },
        {
          "label": "Rules + Qwen3-8B + name forms",
          "highlight": false,
          "cells": {
            "recall": 94.7,
            "zero": 78.4,
            "over": 10.7,
            "sec": 2.375
          }
        },
        {
          "label": "Rules + GLiNER + Qwen3-8B + name forms",
          "highlight": false,
          "cells": {
            "recall": 99.9,
            "zero": 99.6,
            "over": 10.5,
            "sec": 2.385
          }
        }
      ]
    },
    "methods-en": {
      "caption": "English (ai4privacy): 300 test documents. A detail counts as found only if every letter and digit of it is redacted.",
      "columns": [
        {
          "key": "recall",
          "label": "Details found",
          "suffix": "%"
        },
        {
          "key": "zero",
          "label": "Documents with no leak",
          "suffix": "%"
        },
        {
          "key": "over",
          "label": "Over-redaction",
          "suffix": "%"
        },
        {
          "key": "sec",
          "label": "Seconds per document",
          "decimals": 2
        }
      ],
      "rows": [
        {
          "label": "Rules",
          "highlight": false,
          "cells": {
            "recall": 8.6,
            "zero": 3.3,
            "over": 0,
            "sec": 0
          }
        },
        {
          "label": "GLiNER",
          "highlight": false,
          "cells": {
            "recall": 88.5,
            "zero": 78.7,
            "over": 6,
            "sec": 0.008
          }
        },
        {
          "label": "Qwen3-8B",
          "highlight": false,
          "cells": {
            "recall": 88.3,
            "zero": 77.7,
            "over": 5.2,
            "sec": 0.832
          }
        },
        {
          "label": "Rules + GLiNER",
          "highlight": false,
          "cells": {
            "recall": 88.8,
            "zero": 79,
            "over": 6,
            "sec": 0.008
          }
        },
        {
          "label": "Rules + Qwen3-8B",
          "highlight": false,
          "cells": {
            "recall": 88.8,
            "zero": 78.7,
            "over": 5.2,
            "sec": 0.832
          }
        },
        {
          "label": "Rules + GLiNER + Qwen3-8B",
          "highlight": false,
          "cells": {
            "recall": 96.7,
            "zero": 93.7,
            "over": 9.1,
            "sec": 0.841
          }
        },
        {
          "label": "Rules + GLiNER + name forms",
          "highlight": true,
          "cells": {
            "recall": 88.8,
            "zero": 79,
            "over": 6,
            "sec": 0.008
          }
        },
        {
          "label": "Rules + Qwen3-8B + name forms",
          "highlight": false,
          "cells": {
            "recall": 88.8,
            "zero": 78.7,
            "over": 5.2,
            "sec": 0.832
          }
        },
        {
          "label": "Rules + GLiNER + Qwen3-8B + name forms",
          "highlight": false,
          "cells": {
            "recall": 96.7,
            "zero": 93.7,
            "over": 9.1,
            "sec": 0.841
          }
        }
      ]
    },
    "methods-de": {
      "caption": "German (ai4privacy): 300 test documents. A detail counts as found only if every letter and digit of it is redacted.",
      "columns": [
        {
          "key": "recall",
          "label": "Details found",
          "suffix": "%"
        },
        {
          "key": "zero",
          "label": "Documents with no leak",
          "suffix": "%"
        },
        {
          "key": "over",
          "label": "Over-redaction",
          "suffix": "%"
        },
        {
          "key": "sec",
          "label": "Seconds per document",
          "decimals": 2
        }
      ],
      "rows": [
        {
          "label": "Rules",
          "highlight": false,
          "cells": {
            "recall": 10.1,
            "zero": 6.3,
            "over": 0.8,
            "sec": 0
          }
        },
        {
          "label": "GLiNER",
          "highlight": false,
          "cells": {
            "recall": 91.5,
            "zero": 85.3,
            "over": 7.9,
            "sec": 0.008
          }
        },
        {
          "label": "Qwen3-8B",
          "highlight": false,
          "cells": {
            "recall": 84.1,
            "zero": 75.3,
            "over": 5.7,
            "sec": 1.074
          }
        },
        {
          "label": "Rules + GLiNER",
          "highlight": false,
          "cells": {
            "recall": 91.5,
            "zero": 85.3,
            "over": 7.9,
            "sec": 0.008
          }
        },
        {
          "label": "Rules + Qwen3-8B",
          "highlight": false,
          "cells": {
            "recall": 84.1,
            "zero": 75.3,
            "over": 5.9,
            "sec": 1.074
          }
        },
        {
          "label": "Rules + GLiNER + Qwen3-8B",
          "highlight": false,
          "cells": {
            "recall": 97.3,
            "zero": 95,
            "over": 11.1,
            "sec": 1.082
          }
        },
        {
          "label": "Rules + GLiNER + name forms",
          "highlight": true,
          "cells": {
            "recall": 91.5,
            "zero": 85.3,
            "over": 8.3,
            "sec": 0.008
          }
        },
        {
          "label": "Rules + Qwen3-8B + name forms",
          "highlight": false,
          "cells": {
            "recall": 84.1,
            "zero": 75.3,
            "over": 6.1,
            "sec": 1.074
          }
        },
        {
          "label": "Rules + GLiNER + Qwen3-8B + name forms",
          "highlight": false,
          "cells": {
            "recall": 97.3,
            "zero": 95,
            "over": 11.5,
            "sec": 1.082
          }
        }
      ]
    },
    "classes": {
      "caption": "Share of details found by class, best combination (Rules + GLiNER + name forms).",
      "columns": [
        {
          "key": "lt",
          "label": "Lithuanian",
          "suffix": "%"
        },
        {
          "key": "en",
          "label": "English",
          "suffix": "%"
        },
        {
          "key": "de",
          "label": "German",
          "suffix": "%"
        }
      ],
      "rows": [
        {
          "label": "Names",
          "cells": {
            "lt": 98.7,
            "en": 98.2,
            "de": 97
          }
        },
        {
          "label": "Personal and tax codes",
          "cells": {
            "lt": 100,
            "en": 31.1,
            "de": 64
          }
        },
        {
          "label": "Email addresses",
          "cells": {
            "lt": 100,
            "en": 100,
            "de": 100
          }
        },
        {
          "label": "Phone numbers",
          "cells": {
            "lt": 100,
            "en": 93,
            "de": 96.4
          }
        },
        {
          "label": "Bank accounts (IBAN)",
          "cells": {
            "lt": 100
          }
        },
        {
          "label": "Addresses",
          "cells": {
            "lt": 99.6,
            "en": 83.5,
            "de": 88.5
          }
        }
      ]
    },
    "names": {
      "caption": "Lithuanian names: share found before and after the name-forms step.",
      "columns": [
        {
          "key": "before",
          "label": "Without",
          "suffix": "%"
        },
        {
          "key": "after",
          "label": "With name forms",
          "suffix": "%"
        }
      ],
      "rows": [
        {
          "label": "GLiNER",
          "cells": {
            "before": 92.6,
            "after": 98.7
          }
        },
        {
          "label": "Qwen3-8B",
          "cells": {
            "before": 88.4,
            "after": 93.8
          }
        },
        {
          "label": "Rules + GLiNER",
          "cells": {
            "before": 92.6,
            "after": 98.7
          }
        },
        {
          "label": "Rules + GLiNER + Qwen3-8B",
          "cells": {
            "before": 97.7,
            "after": 99.8
          }
        }
      ]
    }
  },
  "examples": {
    "forms": {
      "title": "Same person, different case ending: found once, missed once",
      "verdict": "wrong",
      "fields": [
        {
          "label": "Fictional document",
          "text": "Pokalbis su Austėja Vaitkiene vyko 2026-07-21. Vaitkienė turi penkerių metų patirtį logistikoje. Rekomendacijas suteikė Vaida Ramanauskienė (8 66680 005). Kontaktai: austeja.vaitkiene@gmail.com, 8 641 14386."
        },
        {
          "label": "Redacted by GLiNER",
          "text": "Pokalbis su ███████ █████████ vyko 2026-07-21. Vaitkienė turi penkerių metų patirtį logistikoje. Rekomendacijas suteikė █████ █████████████ (█ █████ ███). Kontaktai: ███████.█████████@█████.███, █ ███ █████."
        },
        {
          "label": "Missed",
          "text": "Vaitkienė"
        }
      ],
      "source": "Synthetic Lithuanian document lt-0009 (fictional, generated for this Lab)."
    }
  },
  "charts": {
    "zero": {
      "title": "Documents with no leak",
      "meta": "Lithuanian test set · higher is better",
      "max": 100,
      "suffix": "%",
      "groups": [
        {
          "label": "Rules",
          "bars": [
            {
              "label": "no leak",
              "value": 0,
              "highlight": false
            }
          ]
        },
        {
          "label": "GLiNER",
          "bars": [
            {
              "label": "no leak",
              "value": 55.4,
              "highlight": false
            }
          ]
        },
        {
          "label": "Qwen3-8B",
          "bars": [
            {
              "label": "no leak",
              "value": 63.8,
              "highlight": false
            }
          ]
        },
        {
          "label": "Rules + GLiNER",
          "bars": [
            {
              "label": "no leak",
              "value": 81.7,
              "highlight": false
            }
          ]
        },
        {
          "label": "Rules + Qwen3-8B",
          "bars": [
            {
              "label": "no leak",
              "value": 67.1,
              "highlight": false
            }
          ]
        },
        {
          "label": "Rules + GLiNER + Qwen3-8B",
          "bars": [
            {
              "label": "no leak",
              "value": 94.4,
              "highlight": false
            }
          ]
        },
        {
          "label": "Rules + GLiNER + name forms",
          "bars": [
            {
              "label": "no leak",
              "value": 96.5,
              "highlight": true
            }
          ]
        },
        {
          "label": "Rules + Qwen3-8B + name forms",
          "bars": [
            {
              "label": "no leak",
              "value": 78.4,
              "highlight": false
            }
          ]
        },
        {
          "label": "Rules + GLiNER + Qwen3-8B + name forms",
          "bars": [
            {
              "label": "no leak",
              "value": 99.6,
              "highlight": false
            }
          ]
        }
      ]
    }
  },
  "headline": {
    "value": "96.5%",
    "label": "of Lithuanian test documents fully anonymised on one GPU (Rules + GLiNER + name forms), with 1.1% over-redaction"
  },
  "attribution": "English and German items: ai4privacy open-pii-masking-500k (CC BY 4.0; generated with Llama 3.1/3.3, Llama Community Licence). Aggregates only.",
  "stats": {
    "lt": {
      "items": [
        {
          "value": "96.5%",
          "label": "of 514 Lithuanian test documents left with no personal detail",
          "signal": true
        },
        {
          "value": "1.1%",
          "label": "of redacted text was not personal data"
        },
        {
          "value": "0.01 s",
          "label": "per document, on one machine, no outside service"
        }
      ]
    }
  },
  "scatters": {
    "tradeoff": {
      "title": "Leaks against over-redaction, Lithuanian test set",
      "meta": "One point per method · up and to the left is better",
      "x": {
        "label": "Over-redaction (% of redacted text not personal)",
        "min": 0,
        "max": 15,
        "decimals": 0,
        "suffix": "%",
        "better": "lower"
      },
      "y": {
        "label": "Documents with no leak",
        "min": 0,
        "max": 100,
        "decimals": 0,
        "suffix": "%",
        "better": "higher"
      },
      "points": [
        {
          "label": "Rules",
          "x": 0.1,
          "y": 0,
          "highlight": false,
          "labelled": true
        },
        {
          "label": "GLiNER",
          "x": 1,
          "y": 55.4,
          "highlight": false,
          "labelled": true
        },
        {
          "label": "Qwen3-8B",
          "x": 11,
          "y": 63.8,
          "highlight": false,
          "labelled": true
        },
        {
          "label": "Rules + GLiNER",
          "x": 1,
          "y": 81.7,
          "highlight": false,
          "labelled": false
        },
        {
          "label": "Rules + Qwen3-8B",
          "x": 10.8,
          "y": 67.1,
          "highlight": false,
          "labelled": false
        },
        {
          "label": "Rules + GLiNER + Qwen3-8B",
          "x": 10.5,
          "y": 94.4,
          "highlight": false,
          "labelled": false
        },
        {
          "label": "Rules + GLiNER + name forms",
          "x": 1.1,
          "y": 96.5,
          "highlight": true,
          "labelled": false
        },
        {
          "label": "Rules + Qwen3-8B + name forms",
          "x": 10.7,
          "y": 78.4,
          "highlight": false,
          "labelled": false
        },
        {
          "label": "Rules + GLiNER + Qwen3-8B + name forms",
          "x": 10.5,
          "y": 99.6,
          "highlight": false,
          "labelled": true
        }
      ]
    }
  },
  "compares": {
    "forms": {
      "title": "Lithuanian names found, before and after the name-forms step",
      "meta": "Share of names fully redacted",
      "fromLabel": "Without",
      "toLabel": "With name forms",
      "min": 80,
      "max": 100,
      "decimals": 1,
      "suffix": "%",
      "better": "higher",
      "rows": [
        {
          "label": "GLiNER",
          "from": 92.6,
          "to": 98.7,
          "highlight": true
        },
        {
          "label": "Qwen3-8B",
          "from": 88.4,
          "to": 93.8,
          "highlight": false
        },
        {
          "label": "Rules + GLiNER + Qwen3-8B",
          "from": 97.7,
          "to": 99.8,
          "highlight": false
        }
      ]
    }
  },
  "units": {
    "docs": {
      "title": "The 514 Lithuanian test documents: which ones still contained a personal detail",
      "meta": "One mark per document · circles still contain at least one personal detail",
      "unit": "document",
      "panels": [
        {
          "label": "GLiNER",
          "categories": [
            {
              "label": "No personal detail left",
              "count": 285,
              "kind": "base"
            },
            {
              "label": "At least one detail left",
              "count": 229,
              "kind": "signal"
            }
          ]
        },
        {
          "label": "Rules + GLiNER + name forms",
          "categories": [
            {
              "label": "No personal detail left",
              "count": 496,
              "kind": "base"
            },
            {
              "label": "At least one detail left",
              "count": 18,
              "kind": "signal"
            }
          ]
        }
      ]
    }
  }
}
