arXiv:2611.05565cs.CVNov 2026

Manuscript Offprint

arXiv:2611.05565

Discarded or Unreachable? Diagnosing and Repairing Spatial Relation Failure in Vision--Language Similarity

Mahdi Mostajabdaveh, Zirui Zhou

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Contrastive vision-language models score left/right relations near chance, but the symptom has two causes that call for opposite repairs: the relation may survive in the pooled embedding yet be unreachable by native image-text similarity, or pooling may discard it while the dense features retain it. On clean two-object photographs, across ten encoders, the lateral polarity is linearly decodable from the flip-odd component of the pooled vector at 0.77–0.99, yet a search over a million captions leaves nine of the ten at chance under native scoring: an access failure. On controlled C4C_4 orbits, where the relation is the only thing that varies, pooling keeps the arrangement axis at 0.998–1.000 and loses its polarity, which the patch grid retains: a pooling failure. Both sit downstream of the dense features, so one readout covers both. Our zero-parameter, query-conditioned spatial moment recomputes the geometry from the patch grid and stores it as a vector beside the native embedding. On a 118,287-image index it raises left/right pairwise accuracy against reversed-geometry negatives from 0.51–0.53 to 0.81–0.96 and conditional R@1R@1 among 21 category-matched candidates from 0.05 to 0.37–0.75, at under a millisecond per batched query, while reproducing the native ranking exactly for queries that name no relation.¹

1. Introduction

Ask an image search engine for a dog to the left of a sofa and it returns dogs and sofas in either arrangement: the relation contributes nothing to the ranking. Contrastive dual encoders such as CLIP [27] and SigLIP 2 [28], which embed image and caption separately, score them by an inner product and underlie vector-index retrieval, identify what is in an image well and where things sit relative to each other poorly, left/right worst [10, 17, 38]; more data, larger models and patch-text pretraining do not close the gap. They are this paper's subject.

Chance accuracy is ambiguous. It is consistent with an encoder that never represented the relation and with one that represents it somewhere the similarity function cannot reach, and the two call for opposite repairs: the first needs new information, the second a different reader. We separate them (Fig. 1) for the polarity of a lateral relation: which of two objects is on the left. An encoder computes a grid of patch features and pools them, through a class token, an attention head or an average, into the one vector that retrieval indexes and compares. In an access failure the polarity survives pooling, sits in a component we can name exactly, and is unreadable by the inner product the system runs. In a pooling failure the pooled vector does not retain the polarity, but the patch features it was pooled from still do.

Mirroring an image exchanges left and right, so we split each pooled embedding into the part the mirror leaves unchanged and the part it negates, its flip-odd component (Sec. 3). Every linear reader that tells an image from its own mirror reads only the flip-odd component (Lemma 1), and so does flip test-time augmentation (Prop. 1). “Is the polarity in the pooled vector?” then splits into two questions with separate answers: is it in the flip-odd component, and can a caption reach it?

On clean photographs the answers are yes and no. A linear probe reads the lateral relation from the flip-odd component at 0.771–0.990, while native scoring is at chance on all ten encoders under ranking protocols where a fixed caption preference cannot help. A bad prompt is the obvious explanation, so we search for a good one. The best bias-free direction in the caption subspace reaches 0.69–0.97 and real relational phrasings 0.48–0.56, near-orthogonal to the image-side direction on every encoder; a search two orders of magnitude larger leaves nine encoders at chance and finds a caption on the tenth (Sec. 5).

On controlled stimuli the polarity does not survive pooling. A C4C_4 orbit pastes two objects on a plain background and rotates the displacement between them by 90° per step, so its lateral pair holds the same two positions and differs only in which object sits where. The pooled vector identifies the arrangement axis at 0.998–1.000 and reads the polarity along it near chance on nine of the ten encoders, under every

¹Code, stimulus generators and all result files: https://github.com/mahdims/vl-spatial-moment.

Figure

Figure 1. One near-chance symptom, two failures, one repair. (a) On What's Up the pooled vector carries the polarity, in its flip-odd component z−z^- (Sec. 3), but native scoring cannot reach it; on the C4C_4 orbits only the patch grid carries it. Chance is 0.5 (0.25 for the 4-way row); the ring marks the object that moves. (b) What's Up left/right under one protocol. Flip test-time augmentation compares a photograph with its mirror; pretraining is 24 ViT-B/32 CLIPs trained from scratch with up to all captions relational; fine-tuning is three fine-tunes on 256k pairs. Ranges are over the ten encoders of Tab. 1, or over runs.

linear and nonlinear reader we trained, while the patch grid of the same images reads the full 4-way relation at 0.811–0.986 (Sec. 6).

References (39)