arXiv:2610.32835cs.CVOct 2026

Manuscript Offprint

arXiv:2610.32835

SPOOK: Sparse Pixel Optimization for Off-Manifold Knowledge in Vision Encoders

Ankit Gupta, Akshat Pandya, Christoph Adami, Emily Dolson

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.

Figure

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.