WebPII: Benchmarking Visual PII Detection for Computer-Use Agents
Organizations: Stanford University
Abstract
Computer use agents create new privacy risks: training data collected from real websites inevitably contains sensitive information, and cloud-hosted inference exposes user screenshots. Detecting personally identifiable information in web screenshots is critical for privacy-preserving deployment, but no public benchmark exists for this task. We introduce WebPII, a fine-grained synthetic benchmark of 44,865 annotated e-commerce UI images designed with three key properties: extended PII taxonomy including transaction-level identifiers that enable reidentification, anticipatory detection for partially-filled forms where users are actively entering data, and scalable generation through VLM-based UI reproduction. Experiments validate that these design choices improve layout-invariant detection across diverse interfaces and generalization to held-out page types. We train WebRedact to demonstrate practical utility, more than doubling text-extraction baseline accuracy (0.753 vs 0.357 mAP@50) at real-time CPU latency (20ms). We release the dataset and model to support privacy-preserving computer use research.
Figures & tables
| Method | mAP@50 | Latency |
|---|---|---|
| OCR + Presidio | 0.183 | 1.3s |
| LayoutLMv3 + GPT-4o-mini | 0.357 | 2.9s |
| WebRedact (ours) | 0.753 | 20ms |
| WebRedact-large (ours) | 0.842 | 312ms |
Appendix figures & tables21 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset | Domain | Size | Visual | Semantic | Web | Ext. | Antic. |
|---|---|---|---|---|---|---|---|
| AI4Privacy ai4Privacy (2023) | Text | 300K | ✗ | ✓ | ✗ | ✗ | ✗ |
| PANORAMA Selvam and Ghosh (2025) | Text | 385K | ✗ | ✓ | ✗ | ✗ | ✗ |
| Nemotron-PII Steier et al. (2025) | Text | 100K | ✗ | ✓ | ✗ | ✗ | ✗ |
| Gretel Finance Gretel AI (2024) | Text | 56K | ✗ | ✓ | ✗ | ✗ | ✗ |
| BigCode PII Li et al. (2023) | Code | 12K | ✗ | ✓ | ✗ | ✗ | ✗ |
| PIILO Holmes et al. (2023) | Essays | 22K | ✗ | ✓ | ✗ | ✗ | ✗ |
| Category | Samples Refined | Total Fixes |
|---|---|---|
| By Company | ||
| Home Depot | 22 | 56 |
| Lowes | 23 | 44 |
| Amazon | 19 | 43 |
| Apple | 25 | 39 |
| Macy’s | 13 | 39 |
| Model | Resolution | mAP@50 | Precision | Recall |
|---|---|---|---|---|
| WebRedact | 640 640 | 0.807 | 0.848 | 0.762 |
| WebRedact-large | 1280 1280 | 0.909 | 0.868 | 0.834 |
| Test Variant | mAP@50 | Precision | Recall |
|---|---|---|---|
| full | 0.886 | 0.896 | 0.815 |
| partial | 0.943 | 0.897 | 0.878 |
| empty | 0.898 | 0.809 | 0.809 |
| Average | 0.909 | 0.868 | 0.834 |
| Model | CPU (i5/Ryzen 5) | GPU (RTX 30xx) |
|---|---|---|
| WebRedact | 20ms | 5ms |
| WebRedact-large | 312ms | 13ms |
| Method | mAP@50 | Prec. | Rec. | F1 | Latency |
|---|---|---|---|---|---|
| LayoutLMv3 Huang et al. (2022) | 0.357 | 58.5% | 45.1% | 50.9% | 2.9s |
| Donut Kim et al. (2021) | 0.350 | 55.8% | 43.6% | 48.9% | 3.5s |
| Tesseract Smith (2007) + LLM | 0.302 | 49.8% | 49.6% | 49.7% | 2.8s |
| OCR Engine | mAP@50 | Prec. | Rec. | F1 | Latency |
|---|---|---|---|---|---|
| PaddleOCR Cui et al. (2025) | 0.329 | 78.7% | 31.0% | 44.5% | 6.6s |
| Tesseract Smith (2007) | 0.302 | 49.8% | 48.6% | 49.2% | 2.8s |
| EasyOCR JaidedAI (2024) | 0.286 | 67.6% | 30.7% | 42.2% | 3.8s |
| OCR Engine | Latency |
|---|---|
| Tesseract Smith (2007) | 453ms |
| EasyOCR JaidedAI (2024) | 715ms |
| PaddleOCR Cui et al. (2025) | 2,143ms |
| OCR Engine | mAP@50 | Prec. | Rec. | F1 | Latency |
|---|---|---|---|---|---|
| Tesseract Smith (2007) | 0.183 | 41.7% | 26.3% | 32.2% | 1.3s |
| EasyOCR JaidedAI (2024) | 0.178 | 42.1% | 28.3% | 33.9% | 2.3s |
| PaddleOCR Cui et al. (2025) | 0.176 | 44.5% | 25.1% | 32.1% | 4.8s |
| Method | mAP@50 | Prec. | Rec. | F1 | Latency |
|---|---|---|---|---|---|
| LayoutLMv3 Huang et al. (2022) + LLM | 0.357 | 58.5% | 45.1% | 50.9% | 2.9s |
| Donut Kim et al. (2021) + LLM | 0.350 | 55.8% | 43.6% | 48.9% | 3.5s |
| LayoutLM-QA | 0.139 | 24.1% | 47.8% | 32.0% | 1.5s |
| Donut-DocVQA | 0.117 | 30.8% | 37.7% | 33.9% | 11.5s |
| Split | Text | Image |
|---|---|---|
| Cross-Page | 0.623 | 0.870 |
| Cross-Company | 0.471 | 0.855 |
| Cross-Type | 0.552 | 0.875 |
| Split Strategy | full | partial | empty | Avg |
|---|---|---|---|---|
| Test | 0.747 | 0.842 | 0.803 | 0.797 |
| Test | 0.663 | 0.839 | 0.756 | 0.753 |
| Test | 0.713 | 0.727 | 0.744 | 0.728 |
| Train | full | part. | empty | Avg |
|---|---|---|---|---|
| empty | 0.672 | 0.818 | 0.777 | 0.756 |
| full | 0.736 | 0.810 | 0.767 | 0.771 |
| full+empty | 0.734 | 0.774 | 0.768 | 0.758 |
| full+part. | 0.747 | 0.842 | 0.803 | 0.797 |
| full+part.+empty | 0.762 | 0.881 | 0.831 | 0.825 |
| Partials | Train | test_full | test_partial | test_empty | Avg mAP | Prec. | Rec. |
|---|---|---|---|---|---|---|---|
| 1 | 521 | 0.727 | 0.774 | 0.774 | 0.758 | 0.793 | 0.688 |
| 3 | 763 | 0.738 | 0.794 | 0.779 | 0.770 | 0.811 | 0.709 |
| 5 | 938 | 0.762 | 0.835 | 0.810 | 0.802 | 0.822 | 0.727 |
| Variants | test_full | test_partial | test_empty | Avg mAP | Prec. | Rec. |
|---|---|---|---|---|---|---|
| 1 | 0.762 | 0.831 | 0.791 | 0.795 | 0.805 | 0.713 |
| 10 | 0.774 | 0.856 | 0.804 | 0.811 | 0.829 | 0.722 |
| 25 | 0.783 | 0.866 | 0.812 | 0.820 | 0.842 | 0.731 |
PII Detection
Personally identifiable information (PII) detection finds sensitive personal details in text, conversations, images, and other data.
See all 39 papers