TL;DR
Existing perceptual similarity metrics collapse the nuances of visual comparison into a single scalar value, failing to account for the fact that human similarity judgments are highly context-dependent. To address this, the authors introduce a large-scale dataset of over 1 million human similarity judgments conditioned on specific text prompts and present TPIPS (Text-Prompted Image Perceptual Similarity), a fine-tuned vision-language model that successfully captures multi-faceted visual similarity. TPIPS significantly outperforms frontier VLMs, aligns closely with human perception, and unlocks new capabilities in aspect-conditioned and compositional image retrieval.
What Problem Does This Paper Address?
When we say two images are "similar," what do we actually mean? They might share the same color palette, depict a similar pose, or have an identical background texture. Human visual similarity judgments are inherently multi-faceted and context-dependent.
However, classic perceptual metrics like SSIM, LPIPS, and DreamSim treat similarity as a single, unconditional scalar value. As illustrated in Figure 1, if you compare a reference image of a blue cow statue to various candidates, an unconditional metric provides an ambiguous and inconsistent answer because it tries to average out all visual aspects.
While frontier Vision-Language Models (VLMs) possess zero-shot capabilities that seem ready-made for this task, the authors show that off-the-shelf models exhibit a massive performance gap compared to human consensus. Furthermore, no large-scale, human-annotated dataset existed to validate or train aspect-conditioned similarity metrics.
Methods
The authors fine-tune a base VLM (Qwen3-VL-Embedding-8B) to predict a symmetric, scalar similarity score given two images and a specific text prompt (e.g., "Measure the similarity between the two images based on subject color").
To determine the best way to extract this pairwise similarity, they explore three network fusion strategies:
- Late Fusion: Independently encodes the images and text prompt, computing cosine similarity over their final embeddings. This strategy is highly efficient and allows for cacheable embeddings in large-scale retrieval applications.
- Mid Fusion: Adapts the LPIPS strategy to VLMs by comparing internal feature activations across multiple decoder layers using a text-conditioned MLP to weight the channels.
- Early Fusion: Packs both images and the text prompt into a single sequence, enabling direct patch-level correspondence via full joint attention.
Crucially, for the Early Fusion model, the authors design a custom attention mask and positional encoding scheme (overriding the default M-RoPE temporal indices) that guarantees two fundamental mathematical properties by construction: symmetry ($f(x_1, x_2 | c) = f(x_2, x_1 | c)$) and identity ($f(x, x | c) = 1$).
Datasets
The paper introduces two distinct datasets to train and rigorously evaluate aspect-conditioned similarity:
- Synthetic Odd-One-Out (OOO) Dataset: The primary training set, consisting of 24,342 triplets and 257,391 triplet-aspect combinations, aggregating over 1 million human votes. Triplets were generated using variations of text-to-image models (FLUX.1-dev) to ensure controlled yet challenging visual differences across multiple independent axes (e.g., lighting, composition, texture).
- External-Algorithm 2AFC Dataset ($D_{ext}$): A dedicated out-of-distribution evaluation set containing 1,127 triplets (16,249 human votes) generated by 17 unseen external algorithms across four tasks: image editing, image compositing, novel view synthesis (NVS), and image-to-3D.
Key Insights and Ideas
- Frontier VLMs Struggle Zero-Shot: Even powerful proprietary models like GPT-4V and Gemini-3.1-Pro struggle to align with human judgments on fine-grained visual aspects, often failing to isolate the requested attribute from the overall image context.
- The Fusion Trade-off: Early fusion yields the highest overall accuracy due to its patch-level joint attention mechanism. However, late fusion performs remarkably close behind while offering massive computational advantages, making it the practical choice for real-world image retrieval engines.
- Synthetic-to-Real Generalization: Training exclusively on synthetic images generated by text-to-image models provides a robust perceptual signal that generalizes surprisingly well to real-world images and outputs from completely different vision and graphics pipelines.
Key Results
TPIPS consistently outperforms all baseline models, significantly narrowing the gap to human consensus across both in-distribution and out-of-distribution tasks.
- In-Distribution (OOO): The Early Fusion TPIPS model achieves a 64.7% model-human agreement rate, coming incredibly close to the human consensus ceiling of 67.5%, whereas the best commercial baseline (Gemini-3.1-Pro) only reaches 58.4%.
- Out-of-Distribution (2AFC): On the external-algorithm dataset, Early Fusion TPIPS achieves 79.3% agreement (against an 89.3% human consensus ceiling), outperforming all off-the-shelf VLMs and embedding models.
- Downstream Applications: The authors demonstrate that TPIPS excels at aspect-conditioned retrieval (retrieving different neighbors for the same query image depending on the prompt) and compositional retrieval (combining multiple queries, such as matching the subject matter of one image and the brushwork style of another).
Limitations and Future Work
- Concept Entanglement: TPIPS cannot always perfectly isolate a specific attribute from object identity. For example, when prompted to evaluate the "number of objects," the model's similarity scores are still heavily influenced by whether the objects themselves match (e.g., preferring pairs of ducks over a pair of ducks and a pair of pumpkins).
- Computational Overhead: Being VLM-based, TPIPS is significantly more expensive to compute than classic metrics like LPIPS or DreamSim.
- Data and Annotator Bias: The dataset prompts are sourced from FLUX-Reason-6M, which skews toward aesthetically curated images, and the annotator pool may not represent all cultural variations in visual perception. Future work will focus on incorporating more diverse image sources and human-annotated aspects.
Summary updated