TL;DR
WebPII introduces the first public benchmark for detecting personally identifiable information (PII) directly from web screenshots, a critical requirement for the safe deployment of vision-based "computer use" agents. By using a novel VLM-based reproduction pipeline, the authors created a dataset of 44,865 images that enables their WebRedact model to outperform traditional OCR-based methods by 2x while maintaining real-time performance (20ms) on standard CPUs.
What Problem Does This Paper Address?
The rise of "computer use" agents—AI systems like Claude or Gemini that navigate the web by "looking" at screenshots rather than reading HTML—creates a massive privacy gap. Every screenshot these agents send to the cloud for processing potentially contains sensitive user data (names, addresses, credit card info).
Traditional PII redaction tools are designed for text strings or static documents. They fail in dynamic web environments because:
- Visual Context Matters: A string of numbers might be a public SKU or a private tracking ID; you can only tell by looking at its position in the UI.
- The "Mid-Typing" Problem: Privacy interventions need to happen while a user is typing into a form, not just after the form is submitted.
- Data Scarcity: There are no large-scale, public datasets of annotated web screenshots containing PII because, ironically, such a dataset would itself be a privacy nightmare to collect and distribute.
Methods
The authors developed a "VLM-mediated reproduction" pipeline to generate high-fidelity synthetic data. Instead of just scraping real websites (which contains real PII), they:
- Reconstruction: Used a Vision Language Model (Claude 4.5) to "reverse engineer" screenshots of 10 major e-commerce sites into functional React code.
- Instrumentation: During code generation, the model was forced to use specific data attributes for sensitive fields.
- Injection: They populated these React components with synthetic data (using Faker) and real product imagery.
- Automated Labeling: Because they owned the code, they could programmatically extract pixel-perfect bounding boxes for every piece of PII, product info, and order detail.
They then trained WebRedact, a lightweight object detection model optimized for CPU inference using OpenVINO, allowing it to run locally on a user's machine to redact data before it ever hits the cloud.
Datasets
The paper introduces WebPII, which consists of:
- 44,865 images across 10 e-commerce brands (e.g., Amazon, Apple, Walmart).
- 19 page types (checkouts, carts, order histories, etc.).
- 993,461 annotations across three main categories: PII (traditional), Product Information (non-PII), and Order Identifiers (extended PII).
- Comparison: Unlike previous datasets like COCO-Text or MIDV-2020, WebPII specifically targets web UI elements and includes "anticipatory" states (empty, partially filled, and fully filled forms).
Key Insights and Ideas
- The "Extended PII" Taxonomy: The authors argue that traditional PII definitions are too narrow for e-commerce. Order IDs, delivery dates, and purchase totals can be used for re-identification attacks. WebPII treats these as sensitive "extended identifiers."
- Anticipatory Detection is Key: By training on "partial-fill" states (e.g., a user has typed "New M" in the city field), the model learns to recognize sensitive regions before the data is even fully visible. This is crucial for proactive privacy layers.
- Layout Invariance: The model doesn't just memorize where a "Name" field is on Amazon; by training on diverse "data injections" (varying names, addresses, and product lengths), it learns the visual "signature" of a form field regardless of the specific text inside.
- Vision > OCR: Text-based baselines (OCR + LLM) struggle because they lose the spatial hierarchy of the page. WebRedact’s purely visual approach is both faster and more accurate because it "understands" the UI chrome.
Key Results
- Accuracy: WebRedact achieved 0.753 mAP@50, more than doubling the performance of the best text-extraction baseline (0.357 mAP@50).
- Speed: The model processes images in ~20ms on a standard CPU (Intel i5/Ryzen 5). This is fast enough for 30fps real-time redaction, whereas OCR-based pipelines took upwards of 2.8 seconds.
- Generalization: In "TestCross-Company" evaluations (training on 9 companies and testing on a 10th, like Amazon), the model maintained high performance, proving it isn't just over-fitting to specific site layouts.
Limitations and Future Work
- Domain Scope: The current dataset is limited to English-language e-commerce. Future work is needed to expand to banking, healthcare, and social media, as well as other languages.
- Static vs. Dynamic: The benchmark uses static images. It doesn't yet account for the challenges of video streams, such as motion blur, scrolling, or complex state transitions.
- Conservative Labeling: The PII taxonomy is currently very conservative, labeling all order identifiers as sensitive. This might lead to "over-redaction," which could hinder an agent's ability to actually help the user (e.g., redacting a tracking number the user wants the agent to check).
Summary updated