Skip to content
Back to skills

Pii Masking Eval

ASecurity

Evaluates the ability of PII masking models to correctly identify and classify sensitive information in text. It probes performance across diverse contexts, multilingual inputs, noisy formats, and evolving entity types. Use when the user wants to benchmark on PII Masking Dataset, or asks about evaluating this task. Reports non-identification.

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 11, 2026
researchpythongoperformance

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add qhjqhj00/research-skills-pool --skill pii-masking-eval --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pii Masking Eval?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pii Masking Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-pii-masking-eval/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-pii-masking-eval)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: pii-masking-eval
description: Evaluates the ability of PII masking models to correctly identify and classify sensitive information in text. It probes performance across diverse contexts, multilingual inputs, noisy formats, and evolving entity types. Use when the user wants to benchmark on PII Masking Dataset, or asks about evaluating this task. Reports non-identification.
metadata:
  skill_kind: dataset_eval
  source_arxiv: 2504.12308
  bibtex_key: [REDACTED]
  confidence: high
---

# pii-masking-eval

> Unmasking the Reality of PII Masking Models: Performance Gaps and the Call for Accountability — Singh et al. (2025) (arXiv:2504.12308, 2025)

## What this evaluates

Evaluates the ability of PII masking models to correctly identify and classify sensitive information in text. It probes performance across diverse contexts, multilingual inputs, noisy formats, and evolving entity types.

## Datasets

- **PII Masking Dataset** — total 17000; splits: test (17000)

## Metrics

- `non-identification` **(primary)** — range: percent
  - Percentage of test instances where the model outputs an empty list, indicating it failed to detect any PII in the input text.
- `misclassification` — range: percent
  - Percentage of test instances where the model correctly detected the PII substring but assigned an incorrect PII type label.

## Input / output format

**Input**: Text paragraphs containing a known 'seed PII' entity, with variations in phrasing, syntax, context, and multilingualism.

**Output**: List of substrings identified as PII along with their predicted PII type labels.

## Scoring recipe

```python
def evaluate(predictions, gold_seed, gold_type):
    detected = False
    detected_type = None
    for substr, ptype in predictions:
        if substr == gold_seed:
            detected = True
            detected_type = ptype
            break
    if not detected:
        return 'non_identified'
    elif detected_type != gold_type:
        return 'misclassified'
    return 'correct'
```

## Common pitfalls

- Regex matching is used for string comparison, so minor formatting differences (e.g., spaces, hyphens) in the model's output vs. the seed PII will count as non-identification.
- The evaluation only checks if the exact seed PII string is present in the predictions, ignoring other correctly detected entities in the same paragraph.

## Evidence (verbatim from paper)

> We used regex matching between the prediction and the seed PII to find out whether the model was able to detect the correct string or not. Table 3 lists the numbers of non-identification of any PII in the input text for the models across all the feature dimensions.

## Citation

```bibtex
@misc{singh2025unmasking,
  title={Unmasking the Reality of PII Masking Models: Performance Gaps and the Call for Accountability},
  author={Singh et al. (2025)},
  year={2025},
  note={arXiv:2504.12308}
}
```

- arXiv: 2504.12308

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.