# ScreenLeak [![License: Apache 2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](LICENSE) [![Data License: CC BY 4.0](https://img.shields.io/badge/Data-CC_BY_4.0-lightgrey.svg)](LICENSE-DATA) [![ci](https://img.shields.io/badge/ci-pytest%20%2B%20ruff-black)](.github/workflows/ci.yml) [![python](https://img.shields.io/badge/python-3.10%2B-blue)](pyproject.toml) > **A multi-modal benchmark measuring how well today's tools redact PII from screen telemetry, screenshots, and multi-step computer-use traces.** Blog: [screenpipe.github.io/screenleak](https://screenpipe.github.io/screenleak/) · Production enclave: [github.com/screenpipe/privacy-filter](https://github.com/screenpipe/privacy-filter) · Contact: `louis@screenpi.pe` ![Screenpipe Privacy Filter v5 benchmark comparison](docs/assets/pii-v5-benchmark.png) **▶ [Try the live demo](https://screenpipe.github.io/screenleak/demo/)** — redact text and screenshots **in your browser** (runs the mirrored HuggingFace checkpoints; nothing is uploaded). ## Privacy Filter v5 (December 2026) Our latest production release ([`screenpipe/privacy-filter#22`](https://github.com/screenpipe/privacy-filter/pull/22), `0.15.0-cpu.rc1`) ships two compact ONNX models under 40 MB gzipped each, running on standard CPUs inside hardware-attested Tinfoil confidential-compute enclaves with zero GPUs required: | Model | Artifact size (gzip) | Latency | Verified v5 evaluation | |---|---:|---:|---| | **Text PII** (`v61_multilingual_sensitive_int8`, 6-layer QInt8 ONNX, zero rule heuristics) | **35.6 MB** (6.5× smaller than `v45_phase3`) | **0.76 ms** p50 (ScreenLeak 422) / **0.92 ms** (1,001-case) / **6.37 ms** (real desktop) | **85.2%** strict / **90.1%** binary zero-leak on ScreenLeak 422; **82.6%** strict zero-leak (645/781) on 1,001-case multilingual/secrets bench; **91.4%–93.4%** compliance zero-leak (HIPAA 91.4%, GDPR/CCPA/SOC 2 91.6%, PCI-DSS 93.4%); **72.7%** consensus zero-leak on real desktop text at 4.3% clean-UI FP | | **Vision PII** (`rfdetr_v122a` + `pii_role_fusion_v4`, 768×768 W16A32 ONNX, zero OCR) | **36.8 MB** combined | **183 ms** (5-pass CoreML MLProgram) / CPU enclave | **93.3%** region zero-leak & **99.6%** pixel span recall on 6 unseen SaaS apps (3× fewer FP boxes on clean screens than GPT-6.2 Astra / Gemini 4 Neon); cuts unseen real-desktop leaks by **22%** vs `rfdetr_v54` (`48.4% -> 37.6%` at 0.30 on 428-span sealed real-screen eval), 0 negative-frame FPs under secrets-only at 0.50 | ## December 2026 Refresh — Frontier, Open-Weights & OSS PII Comparison ![ScreenLeak Text PII Benchmark — December 2026](docs/assets/text-pii-benchmark-2026-12.png) ![ScreenLeak Image PII Benchmark — December 2026](docs/assets/image-pii-benchmark-2026-12.png) ### 1. Text PII — ScreenLeak Full (n=422: 345 PII + 77 clean negatives) Zero-leak alone is half the picture; local size, Peak RSS, CPU, latency, and API $/1k calls determine what can run on live desktop streams. All local adapters were profiled in isolated subprocesses on Apple Silicon arm64. | Adapter | Local | Strict ZL | Binary ZL | Oversmash (FP) | Macro-F1 | Disk | Peak RSS | Avg CPU | p50 | $/1k calls | |---|:---:|---:|---:|---:|---:|---:|---:|---:|---:|---:| | `gpt-6-luna` | ❌ | **94.8%** | 95.9% | 2.6% | 0.951 | — | — | — | 1,170 ms | $0.08 | | `gemini-3.8-flash` | ❌ | 94.5% | **98.0%** | 2.6% | 0.944 | — | — | — | 2,646 ms | $0.54 | | `gemini-4-neon` | ❌ | 92.8% | 97.4% | 2.6% | 0.940 | — | — | — | 3,102 ms | $4.65 | | `gpt-6.2-astra` | ❌ | 92.8% | 97.1% | 3.9% | 0.915 | — | — | — | 2,841 ms | $4.95 | | `gpt-6.2-sol` | ❌ | 92.8% | 96.5% | 3.9% | 0.904 | — | — | — | 1,545 ms | $1.48 | | `gemma-4-31b-it` *(open-weights)* | ❌ | 91.2% | 96.5% | 3.9% | 0.921 | — | — | — | 10,218 ms | $0 (free tier) | | **`screenpipe_v61`** ⭐ | ✅ | **85.2%** | **90.1%** | **3.9%** | **0.872** | **42.9 MB** *(35.6 MB gz)* | **549 MB** | 393% | **0.76 ms** | **$0** | | `gliner2_pii` *(Fastino, OSS)* | ✅ | 67.0% | 79.1% | 68.8% | 0.543 | 1,187 MB | 3,031 MB | 47% | 148.7 ms | $0 | | `nym_mmbert_base` *(OSS)* | ✅ | 62.9% | 79.7% | 41.6% | 0.402 | 1,188 MB | 1,226 MB | 60% | 50.3 ms | $0 | | `gliner_pii` *(urchade, OSS)* | ✅ | 61.7% | 74.5% | 79.2% | 0.476 | 1,106 MB | 2,808 MB | 86% | 85.0 ms | $0 | | `privacy_filter` *(OpenAI base, 1.5B)* | ✅ | 38.6% | — | 9.1% | 0.346 | ~1,400 MB | ~6,000 MB | — | 22 ms | $0 | | `gcp_dlp` *(Jun '26)* | ❌ | 37.7% | — | 11.7% | 0.236 | — | — | — | 84 ms | ~$1–$3 | | `regex` | ✅ | 33.9% | 36.5% | 1.3% | 0.598 | <0.1 MB | 26 MB | 98% | 0.01 ms | $0 | | `presidio` *(spaCy sm)* | ✅ | 30.7% | 52.2% | 48.0% | 0.245 | 12.8 MB | 473 MB | 58% | 5.6 ms | $0 | | `piiranha_v1` *(OSS)* | ✅ | 17.1% | 34.8% | 18.2% | 0.251 | 1,081 MB | 1,119 MB | 88% | 63.4 ms | $0 | ### 2. Image PII — Unseen 6-App Counterfactual (n=60) & ScreenLeak Sample (n=30) Between June 2026 and December 2026, frontier vision models jumped from **2–4%** to **52–56%** on ScreenLeak Sample 30 and **96.7%** on unseen 6-app SaaS screens (using explicit `{x0, y0, x1, y1}` coordinates, which also fixes the June 2026 Gemini `[y0, x0, y1, x1]` bug). The tradeoff is now **speed, cost, privacy, and over-redaction on clean enterprise UIs**: | Adapter | Local | Unseen 6-App Region ZL | Unseen 6-App Span Rec | Unseen Avg Neg FP Boxes | Sample-30 Region ZL | Sample-30 Span Rec | p50 | Peak RSS | $/1k frames | |---|:---:|---:|---:|---:|---:|---:|---:|---:|---:| | `gemini-4-neon` | ❌ | **96.7%** | **99.8%** | 16.57 | **56.0%** | 83.5% | 10.7–20.2 s | — | $22.7–$46.2 | | `gpt-6.2-astra` | ❌ | **96.7%** | **99.8%** | 19.27 | 52.0% | 79.7% | 6.4–13.8 s | — | $50.9–$61.4 | | `gpt-6.2-sol` | ❌ | **96.7%** | **99.8%** | 19.60 | 48.0% | 75.2% | 5.4–12.8 s | — | $14.4–$18.7 | | **`rfdetr_v122a` (tiled)** ⭐ | ✅ | **93.3%** | **99.6%** | **6.37** | 36.0% | 79.7% | **183 ms CoreML** / 3.4 s CPU | **1.05 GB CPU / 1.59 GB CoreML** | **$0** | | `claude-opus-5-5` | ❌ | 87.0% *(46/60)* | 99.0% | 2.63 | 52.0% | **85.0%** | 8.0–15.3 s | — | ~$20 | | `gemini-3.8-flash` | ❌ | 80.0% | 98.6% | 16.10 | 40.0% | 79.0% | 5.7–9.7 s | — | $2.7–$5.9 | | `rfdetr_v122a` (1-pass) | ✅ | 50.0% | 97.0% | **2.77** | 32.0% | 78.2% | **28.7 ms CoreML** / 701 ms CPU | 1.03 GB CPU | **$0** | | `ocr + screenpipe_v61` | ✅ | 3.3% | 83.8% | 13.00 | 20.0% | 57.9% | 159 ms | 554 MB | $0 | | `ocr + gliner2_pii` | ✅ | 3.3% | 78.2% | 26.97 | 28.0% | 66.9% | 1.9–4.8 s | 3,030 MB | $0 | | `ocr + presidio` | ✅ | 0.0% | 58.8% | 17.97 | 0.0% | 46.6% | 185 ms | 473 MB | $0 | *Note on `rfdetr_v122a` localizer vs per-class filtering: `rfdetr_v122a` is trained as a blanket pixel localizer — it masks **99.6%** of PII pixels on unseen SaaS layouts (`93.3%` region zero-leak) with 3× fewer false-positive boxes on clean UIs than GPT-6.2 Astra / Gemini 4 Neon, while its per-class strict zero-leak on unseen layouts is 3.3% (vs 96.7% for frontier VLMs). For blanket visual redaction, local RF-DETR runs at 183 ms (5-pass CoreML MLProgram) and $0/frame; for selective per-class policy filtering, a System-2 VLM verifier is needed.* ## Findings **1. A 42.9 MB (35.6 MB gz) local ONNX model beats every open-source PII model on the internet by +18 to +70 pts and beats frontier LLMs on secrets, URLs, and companies.** On the 422-case text bench, `screenpipe_v61` hits **85.2% strict / 90.1% binary zero-leak** at **0.76 ms p50** and **549 MB Peak RSS** — beating `fastino/gliner2-privacy-filter-PII-multi` (67.0% strict, 68.8% FP, 148.7 ms, 3,031 MB RSS), `mmBERT-base` (62.9%), `gliner_multi_pii` (61.7%), `presidio` (30.7%), and `piiranha_v1` (17.1%). It beats GPT-6.2 Astra and Gemini 4 Neon on `secret` (**93%** vs 79%), `private_url` (**100%** vs 85%), and `private_company` (**86%** vs 84%). **2. Frontier vision models solved pixel-level boxing in late 2026 — at 6–20 s/frame and $14–$61 per 1k frames.** In June 2026 every frontier VLM scored 2–4%. In December 2026, GPT-6.2 Astra, GPT-6.2 Sol, Gemini 4 Neon, and Claude Opus 5.5 hit **52–56%** on ScreenLeak Sample 30 and **87–96.7%** on unseen 6-app SaaS UIs. Screenpipe's 52.9 MB local zero-OCR `rfdetr_v122a` matches their **99.6% vs 99.8%** pixel span recall on unseen SaaS apps at **183 ms/frame (CoreML MLProgram)**, **$0/frame**, and **3× fewer false positives** on clean counterfactual screens. **3. Frontier APIs still leak PII in multi-turn agent traces.** On 25 multi-turn traces (May 2026 baseline), GPT-5.5 leaks observed PII in 36% of traces (64% no-leak), Claude Opus 4.7 in 64%, and Gemini 3.1 Pro in 80%. See [`THREAT_MODEL.md`](THREAT_MODEL.md) and [`LIMITATIONS.md`](LIMITATIONS.md). ## Three sub-benches | Bench | Question | Corpus | |---|---|---| | [`text/`](text/) | Find PII in window titles / AX nodes / OCR fragments | 422 cases · 13 labels · multilingual + adversarial splits | | [`image/`](image/) | Find pixel regions of PII in rendered screens | Synthetic screenshots · 9 app templates + unseen 6-app counterfactual | | [`trace/`](trace/) | Does the agent leak PII it observes inside a task? | 50 traces (25 train + 25 val) with injected PII | All three use the same 13-label taxonomy ([`CATEGORIES.md`](CATEGORIES.md)). Full tables: [`results/unified_leaderboard.md`](results/unified_leaderboard.md) · [`text/results/leaderboard.md`](text/results/leaderboard.md) · [`image/results/leaderboard.md`](image/results/leaderboard.md) · [`trace/results/leaderboard.md`](trace/results/leaderboard.md) · [`results/framework_coverage.md`](results/framework_coverage.md). ## Run an adapter on the sample ```bash make install export ANTHROPIC_API_KEY=... OPENAI_API_KEY=... GOOGLE_API_KEY=... make bench-text ADAPTER=screenpipe_v61 # or: gpt5, gemini, claude, gliner2_pii, presidio, regex, … make bench-image ADAPTER=rfdetr # or: gpt5, gemini, claude, regex_ocr, … make bench-trace ADAPTER=claude # or: gpt5, gemini ``` ## Cite this See [CITATION.bib](CITATION.bib). ## Contact `louis@screenpi.pe`