Prompt Recovery with Verified Evidence

PROVE Training-free prompt recovery using verifiable evidence

Rupayan Mallick, Mahsa Khoshnoodi, Sarah Adel Bargal

Georgetown University · GUCV Lab

Do not optimize tokens. Propose scene claims, keep only the ones the image can prove, then compose them into one readable prompt.

PROVE regenerations of a real MS-COCO image and an AI-generated image from a Lexica prompt.
image I PROVE prompt P(I) regeneration G(P(I))

The idea

Modern text-to-image models can generate highly realistic images from natural-language prompts, while recent advances in prompt inversion have made it increasingly feasible to recover those prompts from generated outputs, raising new concerns for copyright protection and content ownership. As prompt marketplaces emerge, recovered prompts can enable both the unauthorized reproduction and redistribution of copyrighted creative works, and the exposure of the prompts that encode an artist's creative recipe in AI-generated content. Existing prompt inversion methods rely on gradient-based optimization, autoregressive captioning, or reinforcement learning. However, optimization-based methods often produce unreadable prompts, captioning methods hallucinate unverified details, and RL-based approaches frequently overfit to specific generators while introducing evaluation circularity. We introduce PROVE (Prompt Recovery with Verified Evidence), a training-free, black-box prompt inversion attack that reconstructs prompts by composing verifiable scene descriptions rather than optimizing token sequences, targeting both original copyrighted works and AI-generated content. The resulting prompts are fully auditable, with every recovered claim grounded in explicit image evidence, and are formalized through a precision-constrained recall maximization objective. Across MS-COCO, Flickr30K, and Lexica, using state-of-the-art text-to-image generators, PROVE consistently outperforms optimization, captioning, and RL-based baselines on image similarity (DINO, LPIPS) and text-image alignment (CLIP), without any training, generator access, or fine-tuning, demonstrating a stronger and more practical prompt inversion attack.

Method

Frozen models, no generator in the loop

PROVE assumes black-box access: given only the target image, it recovers the prompt with off-the-shelf components and no gradient optimization. A global caption seeds a query set that acts as the recall ceiling for open-vocabulary detection. Each detected region is described under a slot schema, verified against a label-relative CLIP margin, and, if it survives, serialized into the final prompt. Counts and spatial relations are read straight off the detector boxes, so they bypass the evidence gate entirely.

Captioner + describer
Frozen VLM gφ
Global caption, scene attributes, object inventory, and per-region slot-schema descriptions.
Open-vocabulary detector
Text-conditioned Dθ
Localizes regions from the query set. Objects absent from the query set are never detected, never described, never in the prompt.
Evidence gate
CLIP verifier
Scores each atomic claim against its region with a label-anchored margin. Below threshold, the claim is dropped.

All components are frozen and off the shelf. PROVE requires no training, no fine-tuning, and no gradient optimization. A repair pass removes dangling fragments and duplicates before the prompt is finalized.

Overview of the proposed framework. A frozen VLM and a text-based object detector localize regions; per-region claims from the VLM are filtered by an evidence-gated verifier, while counts and spatial relations are derived deterministically; the composer serializes surviving claims into the final prompt, which the generator renders.

Frozen VLM and detector propose claims; the evidence gate keeps only what the image can verify.

Qualitative

Qualitative comparison

For each source image, the original is shown next to reconstructions from PROVE and the competing methods, across MS-COCO, Flickr30K, and Lexica.

Qualitative comparison across MS-COCO, Flickr30K, and Lexica. Columns: Original, PROVE, PromptMiner, STEPs, VGD, PH2P, VLM-as-expert, BLIP, CLIP-IG. Rows: MS-COCO, Flickr30K, Lexica.

Results

State of the art on image recovery

Across 100 randomly selected images per dataset, two seeds each, and two generators, PROVE gives the strongest overall recovery. It leads every metric on MS-COCO and Flickr30K, and stays competitive on the art-style Lexica set, where captioning and RL baselines are strongest.

Method FLUX.1 dev Stable Diffusion 3.5 Large
DINO LPIPS CLIP DINO LPIPS CLIP
MS-COCO
BLIP0.4260.6860.7030.4800.6920.727
CLIP-IG0.5200.6790.7160.5050.7100.727
VLM-as-expert0.5780.6600.7540.5970.6790.763
PH2P0.0330.7440.4100.0240.7610.427
STEPs0.3590.6910.6770.4190.7060.736
VGD0.3570.6900.6740.4020.6960.713
PromptMiner0.5180.7550.7600.5330.6840.750
PROVE0.6600.6470.7900.6150.6640.775
Flickr30K
BLIP0.3820.6890.6700.4010.6900.672
CLIP-IG0.4660.6800.6590.4370.7390.663
VLM-as-expert0.5730.6570.7220.5870.6790.746
PH2P0.0330.7360.3960.0270.7610.434
STEPs0.3410.6920.6540.4100.6920.701
VGD0.3780.6900.6590.4160.6890.698
PromptMiner0.5180.6840.7300.4900.6930.724
PROVE0.6100.6350.7630.5930.6640.765
Lexica
BLIP0.5350.6150.7550.4800.6490.744
CLIP-IG0.6070.5990.7900.5870.6210.841
VLM-as-expert0.6210.5980.7700.6270.6070.822
PH2P0.1370.7000.5070.1010.7270.532
STEPs0.5400.6150.7840.5150.6280.809
VGD0.4680.6270.7610.4200.6460.762
PromptMiner0.7420.5600.8900.5960.6130.826
PROVE0.7410.5600.8530.6110.6120.837

Best per column in bold teal. PROVE row highlighted.

Qualitative prompt alignment

We compare PROVE against its three closest baselines, showing both the generated image and the recovered prompt.

Lexica target image: open door casting warm light into a dim room. Target
Generated Recovered prompt
Image regenerated from PROVE recovered prompt. Ours. An open door emits warm light into a dimly lit room with cool blue and orange tones. The walls are plain, and the floor reflects the light, creating a stark contrast between the two halves of the space. Artificial, evening, indoor, eye-level, warm, orange, concrete floor, blurred. It contains three hinges, two walls. Gold handles, open, new, rectangular, smooth. No text, rectangular shape. Hinges. 3D render, minimalist, low-key, muted palette with orange accents, atmospheric, hyperdetailed.
Image regenerated from PromptMiner recovered prompt. PromptMiner. an open door room, darker empty room with open doorway leading to glowing lit hallway, warm lighting, orange and blue walls, concrete floor, minimal composition, colorful, minimalist, high-contrast, high resolution.
Image regenerated from VLM-as-expert recovered prompt. VLM-as-expert. A minimalist room with two open doors, one glowing warmly and the other coolly, casting colorful reflections on the concrete floor.
Image regenerated from CLIP-Interrogator recovered prompt. CLIP-Interrogator. a door in a room with a light coming in, teal orange color palette 8k, pexels, high quality fantasy stock photo, low saturated red and blue light, open door, vanilla-colored lighting, pink and teal and orange.

On these stylized images, PROVE describes the visual style in grounded terms without attributing it to a named artist, unlike the baselines, which recover artist and platform tags.