Manuscript Offprint
arXiv:2610.32835SPOOK: Sparse Pixel Optimization for Off-Manifold Knowledge in Vision Encoders
Abstract
Modern vision encoders are widely used as semantic representations, but the relationship between embedding similarity and human-visible semantics can become unclear far from the natural-image manifold. We probe this regime in a black-box setting by applying sparse pixel edits to blank canvases with a simple pixel-level hill-climbing procedure. Across ImageNet and Flickr30k, we evaluate whether these edited blank canvases can retrieve chosen targets in multimodal contrastive encoders and self-supervised visual encoders. On OpenCLIP, inputs optimized toward class prompts achieve strong top-1 and top-5 targeted retrieval performance; on DINOv3, inputs optimized toward class prototypes achieve high target alignment and near-top prototype ranks. These results show that sparse edits on otherwise blank, visually non-semantic inputs can enter target semantic basins in both language-aligned and self-supervised visual representation spaces. Our findings identify a shared off-manifold failure mode of modern vision encoders and suggest sparse blank-canvas optimization as a simple probe of representation geometry.
1 Introduction
Modern vision systems increasingly rely on learned image embeddings as general-purpose similarity spaces. CLIP-style vision–language models map images and text into a shared embedding space, enabling similarity-based retrieval, classification, filtering, and indexing [1]; OpenCLIP provides widely used open checkpoints for this paradigm [2]. Self-supervised encoders such as DINO, DINOv2, and DINOv3 provide a complementary image-only route, producing representations for retrieval, transfer, dense prediction, and prototype-based recognition [3–5]. Across these uses, embedding proximity is often treated operationally as evidence of semantic similarity.
This assumption is powerful on natural data, but its off-manifold meaning is less clear. How much visible structure is required for a vision encoder to assign a target semantic representation, and can embedding similarity remain high even when recognizable visual content is absent? Prior work has extensively studied failures of image classifiers, including adversarial perturbations of natural images [6, 7], prediction-dominating patches [8], and high-confidence predictions on unrecognizable fooling images [9]. More recent work shows that sparse blank-canvas edits can fool image classifiers [10], and that CLIP-like models can be fooled by off-manifold images with high similarity to many prompts [11]. We ask a sharper retrieval question: can a nearly blank image with only a few pixel-channel edits retrieve a specific target representation from a competing bank, and does this occur beyond CLIP-style language-aligned spaces?
Preprint.

CLIP Score: cosine similarity between image and caption "a photo of an Irish water spaniel". DINO Score: cosine similarity between image and prototype embedding of ImageNet class "Irish water spaniel".
Figure 1: Sparse blank-canvas images can outrank natural examples under vision-encoder similarity. For the representative target “Irish water spaniel,” the top row shows natural ImageNet examples and the bottom row shows the white canvas and SPOOK images optimized for OpenCLIP and DINOv3. The optimized images remain visually non-semantic yet score above the natural examples under the corresponding encoder similarities. This case reflects the broader targeted-retrieval effect observed across 1000 targets; for more qualitative examples see Figures 8–10.
We call this act spooking: steering a fixed vision encoder toward a chosen target using a ghostly, visually non-semantic input. We introduce SPOOK: Sparse Pixel Optimization for Off-Manifold Knowledge. SPOOK is a black-box, query-based procedure: starting from a blank canvas, it proposes random pixel-channel edits and accepts an edit only if it increases the target similarity score, without using model weights, gradients, or internal activations. The target can be a CLIP class prompt, a Flickr30k caption prototype, a clean image embedding, or a DINOv3 image-class prototype. The resulting SPOOK images usually look like blank canvases with a few colored dots, but are evaluated by retrieval: the image must rank its intended target above other targets in the bank.
Our main finding is that sparse, visually non-semantic images can reliably enter target-aligned regions of modern vision embedding spaces. On OpenCLIP, SPOOK achieves high top-1 and top-5 targeted retrieval success for ImageNet class prompts and Flickr30k caption prototypes. On DINOv3, SPOOK images optimized toward ImageNet image prototypes also achieve high target alignment and near-top prototype ranks. In several settings, the sparse image reaches target similarity comparable to, or higher than, clean reference images under the model's own embedding metric, while modifying less than one percent of pixel-channels. This matters because many retrieval, filtering, indexing, and nearest-neighbor systems use embeddings directly as semantic scores. Such systems may not verify whether an image visibly contains the target. A model-specific off-manifold input that retrieves a chosen target is therefore a meaningful failure mode, even if it is not a realistic natural image. Controls show that the effect requires target-specific optimization and low-entropy initialization, and ablations show that it persists across CLIP patch sizes and DINOv3 ViT scales.
We further analyze the geometry of the effect through pixel interpolation. In image space, the path from blank canvas to SPOOK image to clean image is non-monotonic: target similarity rises as sparse edits are added, drops sharply when the SPOOK image is mixed with the clean image, and then recovers near the clean endpoint. This suggests that sparse SPOOK images and clean images reach target alignment through distinct pixel-space routes. Together, these findings expose a gap between human-visible semantic content and embedding-space target alignment, and suggest sparse blank-canvas optimization as a simple probe of off-manifold geometry in modern vision encoders.
Finding. We show that sparse, visually non-semantic images can achieve high targeted retrieval performance across OpenCLIP and DINOv3 on ImageNet and Flickr30k.
Controls. We find that this behavior is not explained by blank canvases or random sparse pixels: it requires target-specific optimization and is strongest from low-entropy canvas initialization.
Geometry. We study pixel interpolation to show that SPOOK and clean images can reach target alignment through distinct pixel-space routes, suggesting that high off-manifold embedding similarity need not arise from natural-image structure, but can emerge from sparse non-semantic features.
2 Related Work
Vision encoders as semantic infrastructure. Modern vision encoders are increasingly used as general-purpose semantic representations rather than only as classifiers. CLIP learns a shared image-text embedding space that supports zero-shot classification and natural-language retrieval through cosine similarity [1], and OpenCLIP provides reproducible open checkpoints for this paradigm [2]. In parallel, self-supervised encoders such as DINO, DINOv2, and DINOv3 learn image-only representations that support retrieval, transfer, dense prediction, and prototype-based recognition without language supervision [3–5]. Our work studies a shared off-manifold failure mode of these representation spaces: sparse blank-canvas images can be optimized to retrieve chosen semantic targets in both CLIP-style multimodal embeddings and DINOv3 image-only embeddings.
Adversarial examples, patches, and sparse perturbations. Adversarial examples show that small perturbations of natural images can change model predictions [6, 7, 12]. Related work has studied black-box query attacks [13, 14], sparse pixel-constrained attacks [15, 16], and adversarial patches that dominate predictions when inserted into otherwise natural scenes [8]. Such vulnerabilities have also been studied for modern vision and vision-language encoders, including CLIP-like models under distribution shift, adversarial perturbations, and unusual image-text interactions [17, 18]. These settings typically begin with an existing natural image and ask whether a small perturbation, query-based modification can change the model's output or similarity behavior. SPOOK instead synthesizes a visually non-semantic sparse image whose goal is not to perturb an existing image, but to win a targeted retrieval problem against a bank of competing embeddings.
Fooling images and sparse blank-canvas attacks. Fooling-image work originally showed that discriminative image classifiers, including an AlexNet-scale ImageNet model, can assign high confidence to synthetic inputs that humans do not recognize as natural images [9]. Subsequent work explored sparse or low-pixel variants of such classifier fooling inputs, with evidence primarily in smaller-scale classifier settings rather than broad ImageNet-scale evaluations [19]. Most closely related in optimization style, Gupta et al. [10] introduced SPOOF, a simple black-box hill-climbing attack demonstrating that sparse blank-canvas optimization can produce high-confidence fooling images for standard image classifiers. Our setting moves from classifier outputs to representation spaces: we optimize embedding similarity in vision–language and self-supervised encoders rather than classifier confidence. Moreover, success requires the synthesized image to rank a chosen caption, prompt, image, or prototype above competing targets. Thus, SPOOK extends closed-set image classification to targeted retrieval geometry in modern vision encoders.
Fooling contrastive image-text models. CLIP-like models are also vulnerable to off-manifold and multimodal attacks. Prior work has shown that CLIP representations can be sensitive to distribution shift, adversarial perturbations, and unusual image-text interactions [17, 18, 20, 21]. Most directly related on the CLIP side, Freiberger et al. [11] introduced CLIPMasterPrints: off-manifold images that achieve high CLIP similarity to many prompts while appearing unrecognizable or unrelated to humans. Their work studies broad multi-prompt “master” images for contrastive image-text retrieval. SPOOK is complementary but distinct: we study target-specific sparse images, synthesized from blank canvases with very few pixel-channel edits, and evaluate whether each image retrieves its intended target from a competing bank. We also move beyond language-aligned CLIP spaces by showing analogous targeted spooking in DINOv3 image-only representations.
Embedding geometry and off-manifold behavior. A recurring lesson from adversarial examples, fooling images, and CLIPMasterPrints is that high model confidence or high embedding similarity need not imply human-recognizable semantic content. The modality-gap literature further shows that image and text embeddings in contrastive models can occupy systematically different regions of representation space [22]. Our results connect these ideas in targeted retrieval. Sparse SPOOK
Algorithm 1 Targeted Sparse Embedding Spooking
1: Input: image encoder , target bank , target index , initial canvas , query budget , objective
2: Output: SPOOK image , accepted edit count , target rank
3:
4:
5:
6:
7: for to do
8: sample an unedited pixel-channel
9: sample a replacement value
10:
11:
12:
13: if then
14:
15:
16:
17:
18: end if
19: end for
20: compute for all
21:
22: return , ,
images are not broad CLIP master images and are not ordinary classifier fooling examples; they are model-specific embedding triggers that move a particular encoder toward a chosen target direction. The weak transfer between CLIP and DINOv3, together with the non-monotonic image-space interpolation between SPOOK and clean images, suggests that sparse and natural images can reach similar target alignment through distinct off-manifold and on-manifold routes. Taken together, prior work suggests that model scores can detach from recognizable content; SPOOK tests this at the extreme of nearly blank inputs and targeted embedding retrieval.
3 Problem Setup and Method
3.1 Targeted sparse embedding spooking
Let be an image encoder that maps an image to a normalized embedding . Let be a bank of normalized target embeddings. In our main experiments, contains: single class-caption embeddings for CLIP/ImageNet; caption prototypes for CLIP/Flickr30k, obtained by averaging the five caption embeddings associated with each target image; and DINOv3 image-class prototypes for DINOv3/ImageNet, obtained by averaging embeddings of the 50 ImageNet validation images in each target class. A target may therefore be a text prompt, a caption prototype, an image embedding, or an image-class prototype.
Given an initial canvas , our goal is to synthesize a sparse SPOOK image whose embedding retrieves a chosen target from the bank.
We use cosine similarity as the retrieval score:
where both embeddings are -normalized, so cosine similarity reduces to the vector dot product. The rank of the intended target is
where is the indicator function, equal to 1 when its argument is true and 0 otherwise.
A top-k SPOOK image satisfies . We use ASR@k to denote top-k attack success rate:
that is, the fraction of targets for which the intended target is ranked within the top k candidates. We also report mean and median target rank.
The SPOOK image is constrained to be sparse relative to the initial canvas. Let
be the set of pixel-channels. The edited pixel-channel set is
and the accepted edit count is
For RGB images, , so a SPOOK image with a few hundred edited pixel-channels modifies substantially less than 1% of the input.
3.2 Target objectives
SPOOK only requires a scalar target objective that increases when the image embedding moves toward the intended target. For CLIP-style models, we use image-text or image-image cosine similarity. For DINOv3, which has no text encoder in our setting, we use image-prototype cosine similarity.
For a CLIP text target,
For an image or prototype target,
For DINOv3, the objective is
We also consider a CLIP joint objective in the ablations:
with equal weights unless otherwise stated.
3.3 Sparse hill-climbing
We optimize each target independently using Algorithm 1. Starting from , SPOOK repeatedly samples one previously unedited pixel-channel and a replacement value. The edit is accepted only if it improves the target objective:
Accepted edits are kept permanently and rejected edits are discarded. This produces sparse images by construction and makes SPOOK black-box: it requires only query access to the target similarity score, without gradients, model weights, or internal activations.
At the end of optimization, we compute the SPOOK image’s cosine similarity to all targets in T and evaluate the rank of the intended target using Eq. 2. We report target cosine, ASR@k, target rank, and pixel-channel sparsity. Further details on target construction, clean-reference scores, seeds, and ablations are given in Appendix A.1.
Table 1: SPOOK images achieve targeted retrieval across CLIP and DINOv3. All results use white-canvas initialization, a retrieval bank of 1000 targets, and ViT-B/16 encoders. Bold cosine entries mark the highest target cosine among blank, SPOOK, and clean images for each setting.
| Target Metric | CLIP | DINOv3 | ||||
|---|---|---|---|---|---|---|
| ImageNet Single caption | Flickr30k Caption prototype | ImageNet Image prototype | ||||
| Mean | Median | Mean | Median | Mean | Median | |
| Blank cosine ↑ | 0.1763 | 0.1762 | 0.1771 | 0.1766 | -0.0355 | -0.0338 |
| SPOOK cosine ↑ | 0.3314 | 0.3349 | 0.3510 | 0.3549 | 0.5365 | 0.6370 |
| Clean cosine ↑ | 0.2668 | 0.2723 | 0.3396 | 0.3413 | 0.5795 | 0.6099 |
| SPOOK rank ↓ | 2.1 | 1.0 | 2.3 | 1.0 | 8.5 | 1.0 |
| Pixel edits ↓ | 0.29% | 0.29% | 0.28% | 0.28% | 0.61% | 0.63% |
| ASR@1 ↑ | 94.1% | 87.6% | 85.8% | |||
| ASR@5 ↑ | 98.5% | 95.8% | 94.9% | |||
Cosine, rank, and pixel-edit rows are reported as mean / median. ASR values are reported once per setting. Ranks are computed among 1000 targets, thus all ImageNet classes and for Flickr30k it is sampled from the 30,000 images. Pixel edits are percentages of edited pixel-channels out of . For CLIP, targets are text embeddings; for DINOv3, targets are image-prototype embeddings.
4 Experiments and Results
We evaluate SPOOK in three targeted retrieval settings: CLIP/ImageNet with class-prompt targets, CLIP/Flickr30k with caption-prototype targets, and DINOv3/ImageNet with image-prototype targets. Together, these settings cover language-aligned and image-only encoders, as well as class-level and caption-level retrieval. Unless otherwise stated, experiments use ViT-B/16 encoders, a bank of 1000 targets, a white RGB initial canvas, and a budget of 50,000 candidate pixel-channel edits per target; CLIP patch-size and DINOv3 scale variants are evaluated in the ablations.
For CLIP/ImageNet, each target is the text embedding of a prompt of the form “a photo of a {class}.” For CLIP/Flickr30k, each target is a caption prototype formed by averaging the caption embeddings associated with an image. For DINOv3/ImageNet, each target is an image-class prototype computed from clean ImageNet validation images. Unless otherwise stated, results aggregate over 5 random seeds and report mean / median statistics across targets and seeds. We report target cosine, ASR@1, ASR@5, target rank among the 1000 candidates, and pixel-channel edit percentage. Appendix A.1 gives additional implementation and evaluation details.
4.1 Main targeted retrieval results
Table 1 and Figure 2 show the central result: SPOOK images are visually sparse but strong target matches under the model's own retrieval metric. Across CLIP/ImageNet, CLIP/Flickr30k, and DINOv3/ImageNet, a few hundred accepted pixel-channel edits move a blank canvas to near-top retrieval among 1000 targets, while modifying well below of the input.
For CLIP, caption targets are highly spookable: the optimized sparse images reach target cosine comparable to, and often higher than, clean-reference images, while changing less than 0.3% of pixel-channels on average. For DINOv3, which has no text encoder, sparse images optimized toward image prototypes also achieve high retrieval success; the median SPOOK cosine even exceeds the median clean-reference cosine. Thus, sparse spooking is not limited to language-aligned image-text spaces. Supplementary diagnostics in Figure 11 show that this is not driven by a few easy targets: scores rise broadly, ranks collapse toward the top of the bank, and edit counts remain sparse. Together, these results expose a mismatch between human-visible semantic evidence and embedding-space target alignment: sparse, visually non-semantic inputs can be highly meaningful to a fixed vision encoder.

ASR@1 ASR@5

CLIP / Flickr30k
DINov3 / ImageNet

Mean Median

CLIP / ImageNet
DINov3 / ImageNet

CLIP / Flickr30k

Queries Per Target
DINov3 / ImageNet

Queries Per Target
Figure 2: SPOOK optimization dynamics. Across CLIP/ImageNet, CLIP/Flickr30k, and DINov3/ImageNet, mean target cosine increases with query budget, while top-1 and top-5 targeted retrieval success rise quickly and saturate. Dashed lines in the top row mark mean reference scores for the same targets: the unedited white canvas (Blank) and the corresponding clean reference image or prototype (Clean). In the CLIP settings, SPOOK often exceeds the clean-reference score despite remaining visually non-semantic. The bottom row shows that these gains remain sparse: after 50,000 candidate queries per target, SPOOK modifies less than 1% of pixel-channels on average.
4.2 Interpolation analysis: sparse and clean images follow distinct routes to target alignment
We next test whether SPOOK images are merely weak versions of clean images. For each target, we evaluate image-space paths among three endpoints: the blank canvas, the optimized SPOOK image, and the corresponding clean image. We linearly interpolate pixels along three paths—blank-to-SPOOK, SPOOK-to-clean, and blank-to-clean—and measure the target similarity at each interpolation point using the corresponding CLIP caption or DINov3 prototype score. Thus, the interpolation profiles show not only the two endpoints, but also whether target alignment is preserved along the pixel-space route between them.
The score profiles in Figure 3 and Figure 4 show a consistent non-monotonic pattern. Target similarity rises along the blank-to-SPOOK path as sparse edits are added, but often drops sharply when the SPOOK image is mixed with the clean image, before recovering near the clean endpoint. Representative grids in Figures 5–7 visualize this behavior: the SPOOK endpoint can be highly target-aligned while remaining visually sparse, yet intermediate SPOOK-clean mixtures can be lower scoring than either endpoint.
This suggests that SPOOK and clean images reach target alignment through distinct pixel-space routes: the clean image through natural visual content, and the SPOOK image through sparse off-manifold features. The interpolation result sharpens the main claim: spooking exposes off-manifold structure in the representation, not simply degraded visual recognition.


Figure 3: Interpolation score profiles. Target cosine similarity is measured along three image-space paths: white canvas to SPOOK image, SPOOK image to real target image, and white canvas to real target image. Columns show the three main settings: CLIP/ImageNet caption targets, CLIP/Flickr30k caption targets, and DINOv3/ImageNet prototype targets. SPOOK images achieve high target similarity through a sparse off-manifold route, while mixing SPOOK with the real image often causes a sharp score drop before the score recovers near the natural-image endpoint. This non-monotonic behavior suggests that sparse SPOOK images and real images can reach target alignment through distinct pixel-space routes.
4.3 Internal controls and ablations
Model family and scale. Tables 2 and 3 show that sparse spooking is not tied to a single checkpoint. OpenCLIP ViT-B/16 and ViT-B/32 both achieve high targeted retrieval under the caption objective, and DINOv3 remains spookable across ViT-S/16, ViT-B/16, and ViT-L/16. The success rates vary across DINOv3 scales, indicating that the effect depends on representation details, but its presence across architectures rules out a single-model artifact.
Random sparse matched-edit control. Table 5 shows that sparse pixels alone do not explain the result. For each target, the control uses the same number of edited pixel-channels as the corresponding SPOOK image, but chooses locations and values randomly. Despite matching sparsity, random sparse images remain near chance and have median ranks near the middle of the 1000-target bank. SPOOK images, in contrast, achieve median rank 1 in all three main settings. Target-specific optimization is therefore essential.
Initialization. Table 6 shows that low-entropy initialization is critical. White canvases give the strongest results, black canvases remain partially spookable, and dense random initialization nearly eliminates the effect. This supports the view that SPOOK builds a sparse target-aligned signal on a simple carrier; when the background is dense random noise, the accepted sparse signal is overwhelmed.
Objective mode. Table 7 shows that CLIP caption targets are easiest to spook. Image targets are substantially harder, while joint caption-image objectives are intermediate on ImageNet and nearly match caption-only performance on Flickr30k. This suggests that text targets define broader or more accessible target basins than individual image embeddings, although aligned caption-image objectives can still support strong sparse target control.
Table 2: CLIP backbone ablation. We compare CLIP ViT-B/16 and ViT-B/32 using the same white-canvas initialization, caption objective, retrieval bank size, and query budget as Table 1. These open-source checkpoints are included to test whether sparse spooking depends on a single patch size or checkpoint.
| Backbone | Metric | ImageNet | Flickr30k | ||
|---|---|---|---|---|---|
| Mean | Median | Mean | Median | ||
| ViT-B/16 | Blank cosine ↑ | 0.1763 | 0.1762 | 0.1771 | 0.1766 |
| SPOOK cosine ↑ | 0.3314 | 0.3349 | 0.3510 | 0.3549 | |
| SPOOK rank ↓ | 2.1 | 1.0 | 2.3 | 1.0 | |
| Pixel edits ↓ | 0.29% | 0.29% | 0.28% | 0.28% | |
| ASR@1 / ASR@5 ↑ | 94.1% / 98.5% | 87.6% / 95.8% | |||
| ViT-B/32 | Blank cosine ↑ | 0.2033 | 0.2031 | 0.1997 | 0.1991 |
| SPOOK cosine ↑ | 0.3508 | 0.3531 | 0.3673 | 0.3689 | |
| SPOOK rank ↓ | 1.4 | 1.0 | 3.1 | 1.0 | |
| Pixel edits ↓ | 0.25% | 0.25% | 0.24% | 0.24% | |
| ASR@1 / ASR@5 ↑ | 91.3% / 97.4% | 80.5% / 94.2% | |||
Table 3: DINOv3 scale ablation. We compare open-source DINOv3 ViT-S/16, ViT-B/16, and ViT-L/16 checkpoints using the same white-canvas initialization, image-prototype objective, retrieval bank size, and query budget as Table 1. The effect persists across model scales, although success rates and cosine magnitudes vary.
| Metric | DINOv3 ViT-S/16 | DINOv3 ViT-B/16 | DINOv3 ViT-L/16 | |||
|---|---|---|---|---|---|---|
| Mean | Median | Mean | Median | Mean | Median | |
| Blank cosine ↑ | -0.0337 | -0.0338 | -0.0355 | -0.0338 | -0.0142 | -0.0144 |
| SPOOK cosine ↑ | 0.6701 | 0.7214 | 0.5365 | 0.6370 | 0.5393 | 0.6890 |
| SPOOK rank ↓ | 2.0 | 1.0 | 8.5 | 1.0 | 23.6 | 1.0 |
| Pixel edits ↓ | 0.62% | 0.62% | 0.61% | 0.63% | 0.49% | 0.50% |
| ASR@1 / ASR@5 ↑ | 96.5% / 99.6% | 85.8% / 94.9% | 72.5% / 88.3% | |||
4.4 Transfer, SPOOK robustness, and experiment runtime
SPOOK images are strongly model-specific: transfer is weak across CLIP and DINOv3, and remains weak even across CLIP patch sizes. They are also brittle to common transformations such as compression, cropping, blur, and resizing, so exact-input retrieval success should not be interpreted as robustness. The main 1000-target runs complete in roughly 2–3 hours on a single NVIDIA H200 GPU despite a 50,000-query budget per target. Together, these findings clarify that SPOOK exposes fixed-encoder, exact-input retrieval vulnerabilities rather than universal semantic image transfer; for more details, see Sections A.3.2, A.3.3, and A.3.4.
5 Conclusion
We introduced spooking: a targeted sparse retrieval using visually non-semantic inputs operating in black-box setting. Our method, SPOOK, starts from a blank canvas and accepts pixel-channel edits that increase similarity to a chosen target. Despite its simplicity, SPOOK produces sparse colored-dot images that achieve high targeted retrieval success in both OpenCLIP and DINOv3 across ImageNet and Flickr30k. These images can retrieve class prompts, caption prototypes, and image prototypes while modifying less than one percent of pixel-channels.
The central implication is that embedding-space target alignment can be decoupled from human-visible semantic content. SPOOK images are not natural depictions of their targets, and weak transfer across models suggests that they are largely model-specific embedding triggers. Yet for systems that rely on a fixed encoder for retrieval, filtering, indexing, or nearest-neighbor classification, such model-specific triggers are sufficient to induce targeted failures.
Our interpolation results further show that SPOOK and clean images can reach similar target alignment through distinct pixel-space routes: one through natural visual content, the other through sparse off-manifold features. This highlights a limitation of treating embedding similarity as an unqualified semantic score. As vision encoders become semantic infrastructure, understanding their off-manifold behavior is essential; sparse blank-canvas optimization provides a simple probe for revealing this gap. We discuss interpretation, limitations, and possible defenses further in Appendix A.4.
References
[1] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya Sutskever. Learning transferable visual models from natural language supervision. In International Conference on Machine Learning, pages 8748–8763, 2021.
[2] Mehdi Cherti, Romain Beaumont, Ross Wightman, Mitchell Wortsman, Gabriel Ilharco, Cade Gordon, Christoph Schuhmann, Ludwig Schmidt, and Jenia Jitsev. Reproducible scaling laws for contrastive language-image learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 2818–2829, 2023.
[3] Mathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou, Julien Mairal, Piotr Bojanowski, and Armand Joulin. Emerging properties in self-supervised vision transformers. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 9650–9660, 2021.
[4] Maxime Oquab, Timothée Darcet, Théo Moutakanni, Huy V. Vo, Marc Szafraniec, Vasil Khalidov, Pierre Fernandez, Daniel Haziza, Francisco Massa, Alaaeldin El-Nouby, Mahmoud Assran, Nicolas Ballas, Wojciech Galuba, Russell Howes, Po-Yao Huang, Shang-Wen Li, Ishan Misra, Michael Rabbat, Vasu Sharma, Gabriel Synnaeve, Hu Xu, Hervé Jégou, Julien Mairal, Patrick Labatut, Armand Joulin, and Piotr Bojanowski. DINov2: Learning robust visual features without supervision. Transactions on Machine Learning Research, 2024.
[5] Oriane Siméoni, Huy V. Vo, Maximilian Seitzer, Federico Baldassarre, Maxime Oquab, Cijo Jose, Vasil Khalidov, Marc Szafraniec, Seungeun Yi, Michaël Ramamonjisoa, Francisco Massa, Daniel Haziza, Luca Wehrstedt, Jianyuan Wang, Timothée Darcet, Théo Moutakanni, Leonel Sentana, Claire Roberts, Andrea Vedaldi, Jamie Tolan, John Brandt, Camille Couprie, Julien Mairal, Hervé Jégou, Patrick Labatut, and Piotr Bojanowski. DINov3. arXiv preprint arXiv:2508.10104, 2025.
[6] Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In International Conference on Learning Representations, 2014.
[7] Ian J. Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In International Conference on Learning Representations, 2015.
[8] Tom B. Brown, Dandelion Mané, Aurko Roy, Martín Abadi, and Justin Gilmer. Adversarial patch. arXiv preprint arXiv:1712.09665, 2017.
[9] Anh Nguyen, Jason Yosinski, and Jeff Clune. Deep neural networks are easily fooled: High confidence predictions for unrecognizable images. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 427–436, 2015.
[10] Ankit Gupta, Christoph Adami, and Emily Dolson. SPOOF: Simple pixel operations for out-of-distribution fooling. arXiv preprint arXiv:2512.06185, 2025.
[11] Matthias Freiberger, Peter Kun, Christian Igel, Anders Sundnes Løvlie, and Sebastian Risi. Fooling contrastive language-image pre-trained models with CLIPMasterPrints. Transactions on Machine Learning Research, 2024.
[12] Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. In International Conference on Learning Representations, 2018.
[13] Andrew Ilyas, Logan Engstrom, Anish Athalye, and Jessy Lin. Black-box adversarial attacks with limited queries and information. In Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pages 2137–2146. PMLR, 10–15 Jul 2018.
[14] Jianbo Chen, Michael I. Jordan, and Martin J. Wainwright. Hopskipjumpattack: A query-efficient decision-based attack. In 2020 IEEE Symposium on Security and Privacy (SP), pages 1277–1294, 2020. doi: 10.1109/SP40000.2020.00045.
[15] Jiawei Su, Danilo Vasconcellos Vargas, and Kouichi Sakurai. One pixel attack for fooling deep neural networks. IEEE Transactions on Evolutionary Computation, 23(5):828–841, 2019. doi: 10.1109/TEVC.2019.2890858.
[16] Apostolos Modas, Seyed-Mohsen Moosavi-Dezfooli, and Pascal Frossard. SparseFool: A few pixels make a big difference. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 9087–9096, 2019.
[17] Jielin Qiu, Yi Zhu, Xingjian Shi, Florian Wenzel, Zhiqiang Tang, Ding Zhao, Bo Li, and Mu Li. Benchmarking robustness of multimodal image-text models under distribution shift. arXiv preprint arXiv:2212.08044, 2022.
[18] David A. Noever and Samantha E. Miller Noever. Reading isn’t believing: Adversarial attacks on multimodal neurons. arXiv preprint arXiv:2103.10480, 2021.
[19] Soichiro Kumano, Hiroshi Kera, and Toshihiko Yamasaki. Sparse fooling images: Fooling machine perception through unrecognizable images. Pattern Recognition Letters, 172:259–265, 2023.
[20] Giannis Daras and Alexandros G. Dimakis. Discovering the hidden vocabulary of DALLE-2. In NeurIPS Workshop on Score-Based Methods, 2022.
[21] Gabriel Goh, Nick Cammarata, Chelsea Voss, Shan Carter, Michael Petrov, Ludwig Schubert, Alec Radford, and Chris Olah. Multimodal neurons in artificial neural networks. Distill, 6(3):10.23915/distill.00030, March 2021. ISSN 2476-0757. doi: 10.23915/distill.00030.
[22] Weixin Liang, Yuhui Zhang, Yongchan Kwon, Serena Yeung, and James Zou. Mind the gap: Understanding the modality gap in multi-modal contrastive representation learning. In Alice H. Oh, Alekh Agarwal, Danielle Belgrave, and Kyunghyun Cho, editors, Advances in Neural Information Processing Systems, 2022.
A Technical Appendices and Supplementary Material
This appendix provides supplementary analyses that complement the main paper. The main text contains the core experimental evidence for targeted retrieval with sparse blank-canvas SPOOK images. Here, we include additional qualitative examples, diagnostic visualizations, and auxiliary measurements to help interpret the behavior of the method across datasets, encoders, and target types.
A.1 Additional experimental setup details
Main settings, models, and datasets. We evaluate three representative targeted retrieval settings: CLIP/ImageNet, CLIP/Flickr30k, and DINOv3/ImageNet. CLIP/ImageNet uses ImageNet class-prompt targets in a language-aligned embedding space; CLIP/Flickr30k uses caption-prototype targets for natural-image captions; and DINOv3/ImageNet uses ImageNet image-class prototypes in an image-only self-supervised embedding space. Unless otherwise specified, CLIP experiments use an OpenCLIP ViT-B/16 image encoder and its corresponding text encoder, while DINOv3 experiments use a DINOv3 ViT-B/16 image encoder. All default experiments use 1000 target embeddings, RGB inputs, white-canvas initialization, and 50,000 candidate pixel-channel edits per target. We evaluate OpenCLIP ViT-B/32 and DINOv3 ViT-S/16, ViT-B/16, and ViT-L/16 variants in the backbone and scale ablations.
Seeds and aggregation. Unless otherwise stated, reported results aggregate over 5 random seeds. Each seed independently samples the stochastic pixel-channel proposals and replacement values used by SPOOK. For each setting, we report aggregate mean and median statistics across targets and seeds. ASR values are reported as percentages over the evaluated target set.
ImageNet target construction. For CLIP/ImageNet caption targets, each ImageNet class is represented by a prompt of the form “a photo of a {class}.” We encode these prompts with the CLIP text encoder and normalize the resulting embeddings. Retrieval is performed over the 1000 ImageNet class-prompt embeddings.
For DINOv3/ImageNet, each class is represented by an image prototype. We encode clean ImageNet validation images using the DINOv3 image encoder, average normalized embeddings within each class, and normalize the resulting class prototype. Retrieval is performed over the 1000 class prototypes.
Flickr30k target construction. For CLIP/Flickr30k, we sample a bank of 1000 image-caption groups. In the main setting, each target is a caption prototype. We encode the captions associated with an image using the CLIP text encoder, average the normalized caption embeddings, and normalize the result. This produces one caption-prototype target per image-caption group. In auxiliary experiments, we also consider paired image embeddings as targets.
Clean and blank reference scores. The blank score is the target cosine of the unmodified white canvas. The clean score depends on the target type. For CLIP/ImageNet caption targets, the clean score is the similarity between clean ImageNet images from the class and the corresponding class prompt, averaged over the class. For CLIP/Flickr30k caption prototypes, the clean score is the similarity between the paired clean image and its caption prototype. For DINOv3/ImageNet, the clean score is the similarity between clean class images and the corresponding DINOv3 class prototype.
Pixel-channel sparsity. All sparsity values are reported at the pixel-channel level. For a RGB image, there are editable pixel-channels. Thus, 0.30% edited pixel-channels corresponds to roughly 452 accepted channel edits. Since edits are channel-level, a spatial pixel may have one, two, or three modified color channels.
Optimization details. Each target is optimized independently. At every query, SPOOK samples one previously unedited pixel-channel and a replacement value. The candidate edit is accepted only if it increases the target objective. Accepted edits are retained permanently; rejected edits are discarded. This makes each individual target trajectory monotonic in the optimized score, while the final image remains sparse by construction.
Ablations and controls. The random sparse control matches the final number of edited pixel-channels on a per-target basis. If SPOOK accepts edits for target , the corresponding random sparse control also edits pixel-channels, but chooses the locations and values randomly and does not use the target score.
The initialization ablation changes only the starting canvas, comparing white, black, and dense random initialization. The CLIP objective ablation changes only the optimized target objective among caption, image, and joint caption-image objectives. The CLIP backbone ablation compares ViT-B/16 and ViT-B/32 under the same caption-target setup. The DINOv3 scale ablation compares ViT-S/16, ViT-B/16, and ViT-L/16 using the same ImageNet image-prototype target construction.
Transfer and robustness evaluations. Transfer experiments optimize SPOOK images on a source encoder and evaluate them on a different encoder without further optimization. These experiments test whether sparse SPOOK images behave like model-independent semantic images or model-specific embedding triggers. Robustness experiments apply simple image transformations to the final SPOOK images before re-encoding them, while keeping the original retrieval bank fixed. These experiments are diagnostic; the main threat model is exact-input targeted retrieval against a fixed deployed encoder.
A.2 Qualitative SPOOK Examples
Figures 8–10 show representative qualitative examples for the main experimental settings. Each row compares a natural reference image, the white initialization canvas, and the optimized SPOOK image for the same target. The score below each image is the target cosine similarity used by the corresponding model and dataset condition.
These examples highlight the central phenomenon studied in the paper: visually sparse, non-natural images can nevertheless achieve high target alignment under the embedding space of the evaluated model. The qualitative examples also emphasize that the optimized images do not resemble natural target instances to a human observer, supporting the interpretation that SPOOK images exploit model-specific sparse directions rather than human-semantic visual content.
A.3 Supplementary Analysis
A.3.1 Interpolation paths reveal distinct sparse and natural routes
To further probe whether SPOOK images behave like weak or partial versions of natural images, we visualize smooth image-space interpolation paths among three endpoints: the white canvas, the optimized SPOOK image, and a corresponding real target image. Figure 3 summarizes target cosine scores along these paths for the three main model/dataset settings, and Figures 5–7 show representative interpolation grids.
The score profiles reveal a consistent qualitative pattern. Along the white-to-SPOOK path, target similarity generally increases as sparse edits are introduced. However, along the SPOOK-to-real path, similarity often drops sharply when the sparse SPOOK image is mixed with the natural image, before recovering as the real image dominates. This non-monotonic behavior suggests that SPOOK and natural images do not simply lie on the same visual route to the target representation. Instead, the encoder can assign high target similarity through two distinct pixel-space mechanisms: a sparse off-manifold route and a natural-image route. The direct white-to-real path further supports this interpretation, showing that the sparse SPOOK endpoint is not merely an intermediate point along ordinary interpolation from blank canvas to natural image.
These visualizations complement the main interpolation analysis in Figure 4. They do not imply that SPOOK images contain hidden human-recognizable semantics; rather, they illustrate that target alignment in embedding space can be reached through visually different and geometrically distinct input paths.
A.3.2 Cross-model transfer: SPOOKs are model-specific
We next test whether SPOOKs optimized for one encoder transfer to another. Transfer is weak across model families. CLIP ViT-B/16 SPOOKs achieve 93.9% ASR@1 when evaluated on the
Table 4: Runtime for the three main SPOOK settings. Each run optimizes 1000 targets with a budget of 50,000 candidate pixel-channel queries per target on a single NVIDIA H200 GPU.
| Dataset | Model | Total runtime | Runtime / query / target |
|---|---|---|---|
| ImageNet | OpenCLIP B/16 | 2.36 h | 0.1699 ms |
| Flickr30k | OpenCLIP B/16 | 2.29 h | 0.1649 ms |
| ImageNet | DINOv3 B/16 | 3.16 h | 0.2275 ms |
Total runtime is measured for the full 1000-target run. Runtime / query / target is computed as total runtime divided by candidate evaluations.
same CLIP model, but only 0.6% ASR@1 and 2.1% ASR@5 when evaluated on DINOv3 ViT-B/16. Conversely, DINOv3 ViT-B/16 SPOOKs achieve 85.5% ASR@1 on their source model, but only 0.2% ASR@1 and 0.8% ASR@5 when evaluated on CLIP ViT-B/16.
Transfer is also weak even within the CLIP family. CLIP ViT-B/16 SPOOKs evaluated on CLIP ViT-B/32 achieve only 1.1% ASR@1 and 3.9% ASR@5, while CLIP ViT-B/32 SPOOKs evaluated on CLIP ViT-B/16 achieve 0.4% ASR@1 and 2.0% ASR@5. These results indicate that SPOOK images are not model-independent semantic depictions of the target. They are model-specific off-manifold embedding triggers.
The lack of transfer clarifies the threat model. SPOOK images need not be universal semantic images to matter: many retrieval, filtering, indexing, and nearest-neighbor systems deploy a fixed encoder. For such systems, a model-specific trigger is sufficient to induce targeted retrieval failures.
A.3.3 Robustness to Simple Image Transformations
Sparse SPOOK images are highly effective in the exact evaluation setting, but they need not be invariant to standard image transformations. To check this, we run a minimal robustness test on the three main-table conditions. For each condition, we evaluate a fixed random subset of 64 targets, while preserving the original 1000-target retrieval bank for rank and ASR computation. We apply JPEG compression, center cropping, Gaussian blur, and down-up resizing to the final SPOOK image before re-encoding it.
Table 9 shows that SPOOK images are substantially brittle to these transformations. Even mild JPEG compression or small center crops sharply reduce ASR@1 and ASR@5 across CLIP and DINOv3. This supports treating transformation robustness as a separate property from targeted retrieval success in the untransformed setting.
A.3.4 Runtime analysis
SPOOK is query-based, but the implementation is efficient because targets are optimized in parallel batches. Table 4 reports wall-clock runtime for the three main settings on a single NVIDIA H200 GPU. Each run optimizes 1000 targets with 50,000 candidate pixel-channel queries per target, and completes in roughly 2–3 GPU-hours.
Despite the large nominal query budget, SPOOK remains practical at this scale: the main 1000-target experiments complete within a few GPU-hours using a batched implementation.
A.4 Discussion
The main results show that sparse, visually non-semantic SPOOK images can retrieve chosen targets in both OpenCLIP and DINOv3 embedding spaces. Here we clarify how to interpret this phenomenon, what it does and does not imply, and why it matters for systems that use learned embeddings as semantic scores.
A.4.1 Embedding similarity is an operational score, not a guarantee of visual semantics
SPOOK exposes a gap between two notions that are often treated interchangeably in downstream systems: semantic content visible to humans and target alignment measured by an encoder. On natural images, cosine similarity in CLIP or DINOv3 space is often a useful semantic proxy. Off the natural image manifold, however, this implication can fail. A SPOOK image need not contain recognizable evidence of the target; it only needs to move the encoder's representation toward the target direction strongly enough to win retrieval against competing targets.
This distinction is important for interpretation. We do not claim that the model “sees” the sparse image as a natural instance of the target. Rather, the model maps the input close to the target under the same embedding metric used by retrieval, filtering, indexing, and nearest-neighbor systems. The failure mode is therefore not conventional misrecognition of a natural image, but a failure of treating raw embedding similarity as an unqualified semantic score.
A.4.2 Why low-entropy canvases matter
The initialization ablation suggests that sparse spooking depends on signal-to-background structure. White and black canvases provide low-entropy carriers: accepted edits define most of the nontrivial image content, so a few target-aligned pixel-channel changes can influence the global representation. Dense random initialization behaves differently. The same sparse edit process must compete against a high-entropy background, and the effect largely disappears.
This supports a more specific mechanism than “random noise can mean anything.” SPOOK does not assign semantics to arbitrary dense noise. It constructs a targeted sparse signal on a simple carrier through cumulative accept/reject optimization.
A.4.3 Model-specific triggers and the threat model
The weak transfer results indicate that SPOOK images are not model-independent semantic depictions of their targets. They are better understood as model-specific embedding triggers: sparse off-manifold inputs that exploit the geometry of a particular encoder. This is a limitation of the attack, but also clarifies the threat model.
Many practical systems deploy a fixed embedding model for image search, prompt-based filtering, dataset curation, deduplication, indexing, or nearest-neighbor classification. In such settings, an input does not need to fool every encoder; it only needs to control the deployed one. Thus, model specificity does not make the phenomenon irrelevant. It means the risk is most direct for exact-input digital pipelines that rely heavily on one embedding model as a semantic oracle.
A.4.4 Relation to interpolation
The interpolation results help separate SPOOK images from low-quality clean images. If sparse SPOOK images were merely degraded versions of clean images, one might expect a smooth image-space path between them to preserve target similarity. Instead, target similarity drops sharply when the SPOOK image is mixed with the clean image and only recovers near the clean endpoint. This suggests that clean images and SPOOK images reach target alignment through distinct pixel-space routes: one through natural visual structure, the other through sparse off-manifold features.
This observation is useful because it makes the main claim more precise. SPOOK does not show that sparse dots contain hidden human semantics. It shows that the encoder’s representation admits off-manifold routes to target alignment that are geometrically different from the natural-image route.
A.4.5 Limitations
Several limitations are important. First, SPOOK is strongest in the same-model setting: the encoder used for optimization is also the encoder used for evaluation. Cross-model transfer is weak, including across CLIP and DINOv3. Second, SPOOK images are brittle to common transformations such as compression, cropping, blur, and resizing, so exact-input targeted retrieval success should not be interpreted as transformation robustness. Third, the optimization uses a nontrivial query budget, even though the final images contain very few accepted edits. Fourth, the generated images are visually non-natural and easy for humans to flag as artificial.
These limitations constrain the immediate threat model, but they do not remove the central finding. The purpose of this work is not to produce realistic adversarial photographs or robust physical-world

Figure 4: Image-space interpolation from blank canvas to SPOOK image to clean image. Each curve follows a path from the blank canvas to the optimized SPOOK image and then to the corresponding clean image. The red dashed line marks the SPOOK image and the thin blue lines represent each one of the 1000 targets. Target similarity rises as sparse edits are added to the blank canvas, but drops sharply when the SPOOK image is mixed with the clean image, before recovering near the clean endpoint. This non-monotonic behavior indicates that sparse SPOOK images and clean images reach target alignment through distinct pixel-space routes.
Table 5: Random sparse images do not explain SPOOK retrieval. For each target, the random sparse control matches SPOOK's edit count but chooses pixel-channel locations and values randomly. All results use 1000 targets and ViT-B/16 encoders.
| Dataset | Model | Method | SPOOK cosine ↑ | ASR@1 ↑ | ASR@5 ↑ | Rank ↓ |
|---|---|---|---|---|---|---|
| ImageNet | CLIP | SPOOK greedy | 0.3314 / 0.3349 | 94.1% | 98.5% | 2.1 / 1.0 |
| ImageNet | CLIP | Random sparse | 0.1384 / 0.1385 | 0.1% | 0.5% | 499.0 / 504.0 |
| Flickr30k | CLIP | SPOOK greedy | 0.3510 / 0.3549 | 87.6% | 95.8% | 2.3 / 1.0 |
| Flickr30k | CLIP | Random sparse | 0.1008 / 0.0999 | 0.1% | 0.5% | 502.5 / 496.0 |
| ImageNet | DINOv3 | SPOOK greedy | 0.5365 / 0.6370 | 85.8% | 94.9% | 8.5 / 1.0 |
| ImageNet | DINOv3 | Random sparse | -0.0196 / -0.0177 | 0.1% | 0.4% | 513.9 / 509.0 |
Cosine and rank entries are reported as mean / median. ASR values are percentages. Ranks are computed among 1000 targets. For each target, the random sparse control uses the same number of edited pixel-channels as the corresponding SPOOK image, but with random locations and random values.
attacks. It is to probe whether modern vision embedding spaces assign strong target similarity to sparse off-manifold inputs. The results show that they can.
A.4.6 Future directions
Several directions follow naturally. One is to study whether stronger priors can produce inputs that are both more natural-looking and still embedding-spooking. Another is to examine transfer more systematically within and across model families, training datasets, preprocessing pipelines, and embedding normalizations. A third direction is defense: detecting sparse non-semantic triggers, checking agreement across multiple encoders, using captioner or generative-model consistency as a semantic sanity check, and avoiding raw embedding similarity as the sole decision rule in high-stakes filtering or indexing systems.
Interpolation Grid: CLIP B/16 on Flickr30k
target 0221: A young girl with glasses is kneeling on a stone ledge in front of a mud-filled bucket.
Panels sample 0, 20, 40, 60, 80, and 100% interpolation states across each segment; score is target cosine similarity.

STEP 000/200
SCORE 0.1750

STEP 040/200
SCORE 0.1843
STEP 120/200
SCORE 0.3207
STEP 160/200
SCORE 0.3424
STEP 000/200
SCORE 0.3493
STEP 040/200
SCORE 0.2587
STEP 120/200
SCORE 0.3294
STEP 160/200
SCORE 0.3280

STEP 080/200
SCORE 0.2696
STEP 200/200
SCORE 0.3493
STEP 080/200
SCORE 0.3214
STEP 200/200
SCORE 0.3153
SPOOK is the optimized image from the main CLIP B/16 / Flickr30k run. Real-image endpoint: representative Flickr30k target image.
Figure 5: Representative interpolation grid for CLIP/Flickr30k. The target is a Flickr30k caption, and scores are CLIP image-text cosine similarities. The first two rows interpolate from the white canvas to the optimized SPOOK image; the last two rows interpolate from the SPOOK image to the real target image. The SPOOK endpoint obtains a high target score while remaining visually sparse, but mixing it with the real image produces a lower-scoring intermediate state before the natural image route recovers target similarity.
Interpolation Grid: CLIP B/16 on ImageNet
target 0221: a photo of a Irish water spaniel
Panels sample 0, 20, 40, 60, 80, and 100% interpolation states across each segment; score is target cosine similarity.

STEP 000/200
SCORE 0.1783

STEP 040/200
SCORE 0.1677
STEP 120/200
SCORE 0.3166
STEP 160/200
SCORE 0.3768
STEP 000/200
SCORE 0.3891
STEP 040/200
SCORE 0.2564
STEP 120/200
SCORE 0.2928
STEP 160/200
SCORE 0.2947

STEP 080/200
SCORE 0.2303
STEP 200/200
SCORE 0.3891
STEP 080/200
SCORE 0.2736
STEP 200/200
SCORE 0.2988
SPOOK is the optimized image from the main CLIP B/16 / ImageNet run. Real-image endpoint: representative ImageNet target image.
Figure 6: Representative interpolation grid for CLIP/ImageNet. The target is the prompt “a photo of a Irish water spaniel,” and scores are CLIP image–text cosine similarities. Sparse edits from the white canvas produce a high-scoring SPOOK image without recognizable target content. When the SPOOK image is interpolated toward the natural ImageNet image, the target score drops sharply before recovering near the real-image endpoint, illustrating a distinct sparse route to target alignment.
Interpolation Grid: DINov3 B/16 on ImageNet
target 0221: Irish water spaniel
Panels sample 0, 20, 40, 60, 80, and 100% interpolation states across each segment; score is target cosine similarity.

STEP 000/200
SCORE -0.0469

STEP 040/200
SCORE 0.1665
STEP 120/200
SCORE 0.6158
STEP 160/200
SCORE 0.6773
STEP 000/200
SCORE 0.6927
STEP 040/200
SCORE 0.6227
STEP 120/200
SCORE 0.5977
STEP 160/200
SCORE 0.6369

STEP 080/200
SCORE 0.3948
STEP 200/200
SCORE 0.6927
STEP 080/200
SCORE 0.6487
STEP 200/200
SCORE 0.6373
SPOOK is the optimized image from the main DINov3 B/16 / ImageNet run. Real-image endpoint: representative ImageNet target image.
Figure 7: Representative interpolation grid for DINov3/ImageNet. The target is the ImageNet class “Irish water spaniel,” and scores are DINov3 image–prototype cosine similarities. As in the CLIP setting, sparse edits on the white canvas produce a high-scoring SPOOK image despite the absence of recognizable target content. Interpolating from SPOOK to the natural image produces a non-monotonic score path, indicating that the sparse and natural inputs reach the class prototype through different pixel-space routes.
CLIP B/16 ImageNet Examples
Real Image

Score: 0.263
White Canvas

Score: 0.168
SPOOK Image

Score: 0.408
Caption: a photo of a accordion

Score: 0.269

Score: 0.168

Score: 0.385
Caption: a photo of a golfcart

Score: 0.236

Score: 0.167

Score: 0.363
Caption: a photo of a lens cap

Score: 0.248

Score: 0.165

Score: 0.364
Caption: a photo of a comic book
Scores are logged CLIP target-cosine values for the row caption.
Figure 8: Qualitative CLIP/ImageNet examples. Each row shows a natural ImageNet image, the white canvas initialization, and the optimized SPOOK image for the same target caption. Scores are CLIP image–text cosine similarities to the row caption.
CLIP B/16 Flickr30k Examples
Real Image

Score: 0.219
White Canvas

Score: 0.167
SPOOK Image

Score: 0.367
Caption: A red-haired little girl is blowing bubbles in the water of a pool.

Score: 0.268

Score: 0.163

Score: 0.372
Caption: A man in a red and white checked shirt plays in a park.

Score: 0.295

Score: 0.161

Score: 0.402
Caption: Four on-duty firemen talk in front of a firetruck.

Score: 0.276

Score: 0.141

Score: 0.371
Caption: A woman prepares a plate of meat coming directly off of a grill while people talk in the background.
Scores are logged CLIP target-cosine values for the row caption prototype.
Figure 9: Qualitative CLIP/Flickr30k examples. Each row shows the real Flickr30k image, the white canvas initialization, and the optimized SPOOK image for the corresponding caption target. Scores are CLIP image–text cosine similarities to the row caption.
DINOv3 B/16 ImageNet Examples
Real Image

Score: 0.426
White Canvas

Score: -0.008
SPOOK Image

Score: 0.770
ImageNet class: chain

Score: 0.437

Score: -0.030

Score: 0.823
ImageNet class: coil

Score: 0.411

Score: -0.076

Score: 0.769
ImageNet class: dome

Score: 0.430

Score: -0.065

Score: 0.782
ImageNet class: dough
Scores are logged DINOv3 image-prototype cosine similarities to the row ImageNet class.
Figure 10: Qualitative DINOv3/ImageNet examples. Each row shows a natural ImageNet image, the white canvas initialization, and the optimized SPOOK image for the same ImageNet class target. Scores are DINOv3 image–prototype cosine similarities to the row ImageNet class.

Figure 11: Supplementary per-target diagnostics for SPOOK optimization. Columns correspond to the three main evaluation settings: CLIP/ImageNet, CLIP/Flickr30k, and DINOv3/ImageNet. Rows show, from top to bottom, target cosine over optimization, target retrieval rank over optimization, cumulative pixel-edit percentage over optimization, and the final distribution of edit counts across targets. These diagnostics complement Table 1 and Figure 2 by showing that SPOOK's success is broad across the target bank: target scores increase consistently, ranks rapidly collapse toward the top of the retrieval bank, and the final images remain highly sparse.
Table 6: Initialization strongly controls sparse spooking. All results use ViT-B/16 encoders, a retrieval bank of 1000 targets, and the same target/objective settings as Table 1. Only the initial canvas is changed.
| Init | Metric | CLIP ImageNet | CLIP Flickr30k | DINOv3 ImageNet | |||
|---|---|---|---|---|---|---|---|
| Mean | Median | Mean | Median | Mean | Median | ||
| White | Blank cosine ↑ | 0.1763 | 0.1762 | 0.1771 | 0.1766 | -0.0355 | -0.0338 |
| SPOOK cosine ↑ | 0.3314 | 0.3349 | 0.3510 | 0.3549 | 0.5365 | 0.6370 | |
| SPOOK rank ↓ | 2.1 | 1.0 | 2.3 | 1.0 | 8.5 | 1.0 | |
| Pixel edits ↓ | 0.29% | 0.29% | 0.28% | 0.28% | 0.61% | 0.63% | |
| ASR@1 / ASR@5 ↑ | 94.1% / 98.5% | 87.6% / 95.8% | 85.8% / 94.9% | ||||
| Black | Blank cosine ↑ | 0.1890 | 0.1895 | 0.1822 | 0.1825 | -0.0147 | -0.0153 |
| SPOOK cosine ↑ | 0.2595 | 0.2413 | 0.2549 | 0.2433 | 0.4585 | 0.5441 | |
| SPOOK rank ↓ | 66.5 | 6.0 | 125.5 | 28.0 | 14.1 | 1.0 | |
| Pixel edits ↓ | 0.11% | 0.07% | 0.08% | 0.05% | 0.48% | 0.50% | |
| ASR@1 / ASR@5 ↑ | 35.3% / 49.9% | 19.6% / 32.4% | 69.4% / 86.0% | ||||
| Random | Blank cosine ↑ | 0.1559 | 0.1551 | 0.0986 | 0.0976 | -0.0023 | -0.0026 |
| SPOOK cosine ↑ | 0.1654 | 0.1644 | 0.1190 | 0.1182 | 0.0029 | 0.0030 | |
| SPOOK rank ↓ | 455.3 | 441.0 | 459.4 | 451.0 | 463.1 | 443.0 | |
| Pixel edits ↓ | 0.03% | 0.03% | 0.04% | 0.04% | 0.04% | 0.02% | |
| ASR@1 / ASR@5 ↑ | 0.1% / 0.7% | 0.2% / 0.7% | 0.1% / 1.3% | ||||
Table 7: Objective-mode ablation for CLIP. All rows use CLIP ViT-B/16, white-canvas initialization, a retrieval bank of 1000 targets, and the same query budget as Table 1. Only the optimized objective is changed.
| Objective | Metric | ImageNet | Flickr30k | ||
|---|---|---|---|---|---|
| Mean | Median | Mean | Median | ||
| Caption | Blank cosine ↑ | 0.1763 | 0.1762 | 0.1771 | 0.1766 |
| SPOOK cosine ↑ | 0.3314 | 0.3349 | 0.3510 | 0.3549 | |
| SPOOK rank ↓ | 2.1 | 1.0 | 2.3 | 1.0 | |
| Pixel edits ↓ | 0.29% | 0.29% | 0.28% | 0.28% | |
| ASR@1 / ASR@5 ↑ | 94.1% / 98.5% | 87.6% / 95.8% | |||
| Image | Blank cosine ↑ | 0.3121 | 0.3060 | 0.2296 | 0.2313 |
| SPOOK cosine ↑ | 0.6234 | 0.5923 | 0.5292 | 0.5118 | |
| SPOOK rank ↓ | 117.4 | 18.0 | 28.6 | 2.0 | |
| Pixel edits ↓ | 0.34% | 0.28% | 0.36% | 0.34% | |
| ASR@1 / ASR@5 ↑ | 27.8% / 41.9% | 41.2% / 58.9% | |||
| Joint | Blank cosine ↑ | 0.2442 | 0.2408 | 0.2034 | 0.2030 |
| SPOOK cosine ↑ | 0.5074 | 0.5275 | 0.4809 | 0.4930 | |
| SPOOK rank ↓ | 19.2 | 1.0 | 3.2 | 1.0 | |
| Pixel edits ↓ | 0.45% | 0.46% | 0.48% | 0.49% | |
| ASR@1 / ASR@5 ↑ | 74.0% / 83.6% | 86.2% / 94.5% | |||
Cosine, rank, and pixel-edit rows are reported as mean / median. ASR values are reported once per setting. Ranks are computed among 1000 targets. Pixel edits are percentages of edited pixel-channels out of . For caption mode, the target is a text embedding; for image mode, the target is an image embedding or prototype; for joint mode, the optimized objective combines caption and image similarity.
Table 8: Sparse SPOOKs show little cross-model transfer. Rows indicate the source model used to optimize the SPOOK image; columns indicate the evaluation model. All results use ImageNet targets, white initialization, and 1000-target retrieval.
| Source model | Evaluation model | ASR@1 ↑ | ASR@5 ↑ | Median rank ↓ |
|---|---|---|---|---|
| CLIP ViT-B/16 | CLIP ViT-B/16 | 93.9% | 98.4% | 1.0 |
| CLIP ViT-B/16 | DINOv3 ViT-B/16 | 0.6% | 2.1% | 386.0 |
| DINOv3 ViT-B/16 | DINOv3 ViT-B/16 | 85.5% | 94.5% | 1.0 |
| DINOv3 ViT-B/16 | CLIP ViT-B/16 | 0.2% | 0.8% | 449.0 |
| CLIP ViT-B/16 | CLIP ViT-B/32 | 1.1% | 3.9% | 176.0 |
| CLIP ViT-B/32 | CLIP ViT-B/16 | 0.4% | 2.0% | 321.0 |
Transfer is measured by optimizing SPOOK images on the source encoder and evaluating retrieval against the target bank of the evaluation encoder. Median ranks are computed among 1000 targets.
Table 9: Robustness smoke test for main-table SPOOK images under simple image transformations. Scores are target cosine similarities after transformation. ASR and rank are computed against the same 1000-target bank as the corresponding main-table setting. Each row uses a fixed random subset of 64 targets.
| Condition | Transform | Score | Score | ASR@1 | ASR@1 | ASR@5 | ASR@5 | Med. Rank |
|---|---|---|---|---|---|---|---|---|
| CLIP / ImageNet | None | 0.3355 | 0.0000 | 93.8 | 0.0 | 98.4 | 0.0 | 1 |
| CLIP / ImageNet | JPEG quality 75 | 0.2296 | 0.1059 | 14.1 | 79.7 | 31.2 | 67.2 | 23 |
| CLIP / ImageNet | Center crop 90% | 0.2024 | 0.1331 | 4.7 | 89.1 | 14.1 | 84.3 | 119 |
| CLIP / ImageNet | Center crop 80% | 0.1922 | 0.1433 | 4.7 | 89.1 | 12.5 | 85.9 | 162 |
| CLIP / ImageNet | Gaussian blur | 0.2189 | 0.1166 | 18.8 | 75.0 | 34.4 | 64.0 | 21 |
| CLIP / ImageNet | Resize 112 then restore | 0.2149 | 0.1206 | 14.1 | 79.7 | 23.4 | 75.0 | 21 |
| CLIP / Flickr30k | None | 0.3518 | 0.0000 | 82.8 | 0.0 | 95.3 | 0.0 | 1 |
| CLIP / Flickr30k | JPEG quality 75 | 0.2303 | 0.1215 | 3.1 | 79.7 | 15.6 | 79.7 | 121 |
| CLIP / Flickr30k | Center crop 90% | 0.1952 | 0.1566 | 0.0 | 82.8 | 7.8 | 87.5 | 129 |
| CLIP / Flickr30k | Center crop 80% | 0.1897 | 0.1621 | 0.0 | 82.8 | 4.7 | 90.6 | 225 |
| CLIP / Flickr30k | Gaussian blur | 0.2234 | 0.1284 | 3.1 | 79.7 | 6.2 | 89.1 | 92 |
| CLIP / Flickr30k | Resize 112 then restore | 0.2157 | 0.1360 | 1.6 | 81.2 | 7.8 | 87.5 | 92 |
| DINov3 / ImageNet | None | 0.5266 | 0.0000 | 82.8 | 0.0 | 93.8 | 0.0 | 1 |
| DINov3 / ImageNet | JPEG quality 75 | -0.0319 | 0.5586 | 0.0 | 82.8 | 1.6 | 92.2 | 238 |
| DINov3 / ImageNet | Center crop 90% | 0.0141 | 0.5126 | 4.7 | 78.1 | 7.8 | 86.0 | 159 |
| DINov3 / ImageNet | Center crop 80% | 0.0026 | 0.5240 | 1.6 | 81.2 | 3.1 | 90.7 | 216 |
| DINov3 / ImageNet | Gaussian blur | 0.0708 | 0.4558 | 15.6 | 67.2 | 29.7 | 64.1 | 67 |
| DINov3 / ImageNet | Resize 112 then restore | 0.0531 | 0.4735 | 9.4 | 73.4 | 26.6 | 67.2 | 79 |