VeilLens: Explainable and Granular Analysis and Protection Against Visual Privacy Risks Beyond Visible Appearance

Weihao Jin, Zuchen Li, Ke SunarXiv 2026

TL;DR

Modern Vision-Language Models (VLMs) are frighteningly good at playing detective: from a single casual photo, they can deduce where you live, who you’re with, and where you work—not from your face or license plate, but from background architecture, a tote bag logo, or body language. VeilLens is an interactive privacy shield that uses a VLM to spot these subtle, compositional clues, lets you choose how much privacy you want, surgically edits out only the risky regions, and iteratively double-checks its own work to make sure no hidden leaks remain.

What Problem Does This Paper Address?

For years, visual privacy tools have focused on obvious, predefined targets: blurring faces, blacking out license plates, or scrubbing text. But frontier VLMs have changed the game. They don't need explicit identifiers to invade your privacy; they use compositional reasoning to connect weak, seemingly harmless visual cues. A distinctive street bollard, a partial storefront sign, and the style of a building can together pinpoint your exact city block. Similarly, posture and shared activity can reveal intimate social relationships even without names.

An unprotected social media photo alongside the three VLM privacy attacks it can trigger

Existing defenses struggle against this new threat along three fronts:

  1. Blind spots: They miss contextual combinations of benign objects.
  2. All-or-nothing edits: Global blurs or adversarial perturbations degrade image quality and don't let users balance privacy against aesthetics.
  3. No verification: Most tools are "one-shot"—they edit an image once and hope for the best, without checking whether a clever VLM can still piece together the secret from leftover clues.

Methods

VeilLens replaces one-shot sanitization with an iterative reasoning–grounding–editing–verification loop:

  • Stage I: Granularity-Controlled Clue Reasoning. A trusted VLM oracle (GPT-5 by default) inspects the image and outputs structured privacy clues. Each clue includes a risk level, a concise RefCOCO-style description (e.g., "City gate with dark stone arch"), and an explanation separating what is privacy-sensitive from what is visually benign.
  • Stage II: Visual Grounding & Segmentation. Because VLMs are great at reasoning but bad at drawing exact pixel boundaries, VeilLens decouples the two. It feeds the clue descriptions into GroundingDINO (an open-vocabulary detector), filters bounding boxes by aligning target-concept tokens, and refines them into tight pixel-level masks using SAM 2.1.
  • Stage III: User-Steerable Generative Inpainting. Users pick a target protection granularity (e.g., "hide my location down to the city level"). VeilLens highlights the relevant clues and lets the user accept or reject each edit. Accepted regions are sequentially inpainted using SDXL 1.0 with a depth-ControlNet to preserve scene geometry, guided by positive/negative prompts that suppress sensitive details while keeping the rest of the photo natural.
  • Stage IV: Iterative Verification Loop. A single pass often misses subtle backup clues. VeilLens runs the edited image through a VLM verifier. If the target secret can still be inferred, it masks out already-edited regions and searches—even across multi-scale overlapping patches—for residual clues, triggering another round of targeted editing.

Datasets

The authors evaluated VeilLens across 1,454 images and more than 20,000 VLM API calls spanning three privacy domains:

  • Compositional Privacy: 500 randomly sampled images from CPRT (which reorganizes VISPR annotations into graded severity levels).
  • Geolocation: 500 dashcam images from Cityscapes (18 European cities) plus a newly curated 200-image Mapillary holdout set (10 non-panoramic street-level images from each of 20 global cities with populations $\ge 300,000$) to test cross-dataset generalization.
  • Social Relationships: 454 images (1,109 annotated person pairs) from PISC across six relationship categories.

Attacks were tested against four frontier VLMs: gemini-3-flash-preview, gemini-3.1-pro-preview, gemini-2.5-flash, and gpt-5.2.

Key Insights and Ideas

  • Decoupling reasoning from localization works. Asking a VLM to describe a clue as a RefCOCO-style referring expression (a noun phrase with spatial/visual modifiers) yielded an 89% grounding success rate with GroundingDINO, far outperforming free-form descriptions (76%) or bare category labels (64%).
  • One pass isn't enough. Iterative verification matters: on a 100-image geolocation subset, street-level ($\le 1$ km) attack success dropped from 29.0% (raw) to 13.0% after round 1, 8.0% after round 2, and 5.0% after round 3—all while keeping median edited area below 10% of the image.
  • Surgical edits beat blanket distortion. Because VeilLens only touches privacy-relevant regions (changing 19.7% of pixels on average vs. >99% for GeoShield and GPT-Image-2), it achieves stronger privacy and higher visual fidelity.

Key Results

  • Compositional Privacy (CPRT): Mean privacy risk dropped from 0.3138 to 0.1611 under GPT-5.2 (48.7% reduction) and to 0.1641 under Gemini-3.1P (47.7% reduction). On high-risk images ($\ge 0.5$), risk fell by 53.0%, with a median mask coverage of just 0.18% of pixels.
  • Geolocation: Against the strongest attacker (Gemini-3.1-Pro-Preview), block-level ($\le 0.5$ km) localization dropped from 40.2% to 14.6% ($2.75\times$ reduction), beating both GeoShield (25.2%) and one-shot GPT-Image-2 (17.4%). On the diverse Mapillary set, 0.5 km success under Gemini-3F fell from 14.5% to 4.5%.
  • Social Relationships: Six-way relationship inference accuracy plummeted from 67.5%–73.1% down to 4.1%–5.8% (over 92% relative reduction) across all four attackers.
  • Image Quality & User Study: VeilLens retained an SSIM of 0.92 and LPIPS of 0.11 (outperforming GeoShield's 0.85/0.27 and GPT-Image-2's 0.86/0.14). In a 25-participant user study, 70.7% (106/150) of responses preferred the protected images, and 52% (13/25) rated their willingness to use the prototype at least 6 out of 7.

Limitations and Future Work

  • Oracle ceiling: VeilLens's protection is bounded by its trusted VLM oracle; if the oracle misses a subtle cue, residual leakage can persist.
  • External APIs: The default setup sends raw images to commercial VLM APIs, which may raise privacy concerns for sensitive photos—though the authors note the oracle can be swapped for a self-hosted model inside a trusted execution environment (TEE).
  • Editing artifacts: Generative inpainting can introduce visual artifacts or semantic drift when sensitive cues are tightly entangled with content the user wants to keep.
  • Future directions: Extending VeilLens from single photos to video and longitudinal privacy—reasoning across a user's previously shared posts and broader context.

Summary updated

BibTeX
@misc{jin2026veillens,
  author = {Weihao Jin and Zuchen Li and Ke Sun},
  title = {{VeilLens: Explainable and Granular Analysis and Protection Against Visual Privacy Risks Beyond Visible Appearance}},
  year = {2026},
  eprint = {2611.40506},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.40506},
}
Figure