TL;DR
While current vision models excel at identifying images with similar colors, shapes, or categories, they completely miss abstract, logical connections between scenes. This paper introduces relsim, a novel metric and model that learns to capture "relational visual similarity"—such as recognizing that a burning match and a ripening banana share the same underlying logic of temporal transformation.
What Problem Does This Paper Address?
When we look at a peach and an apple, we see similarity because both are round, reddish fruits. This is attribute similarity. But humans also perceive relational similarity: we can see that the Earth is like a peach because its crust, mantle, and core correspond structurally to the peach's skin, flesh, and pit.
Unfortunately, today's state-of-the-art visual similarity metrics (like LPIPS, CLIP, and DINO) focus almost exclusively on surface-level attributes. If you show them a sequence of a burning match, they will tell you it looks like other matches, completely failing to see the structural analogy to a ripening banana or an aging leaf.
The authors address this critical gap by formalizing relational visual similarity as a measurable computer vision problem, aiming to align machine representations with human-like abstract reasoning.
Methods
To teach a model to understand abstract relationships, the authors developed a three-stage pipeline:
- Image Filtering: Not all images contain deep relational structures (e.g., a simple photo of a sofa lacks abstract logic). The authors fine-tuned a Vision-Language Model (VLM), Qwen2.5-VL-7B-Instruct, on human-labeled data to filter out ordinary images and keep "relationally interesting" ones.
- Anonymous Captioning: To capture abstract logic without tying it to specific objects, the authors introduced anonymous captions. Instead of describing "a butterfly flying," an anonymous caption uses placeholders: "A visual representation of {Subject} performing {Type of Motion} in progressive stages." To train a model to generate these, they fed groups of relationally similar images into a VLM so the shared abstract pattern became obvious.
- Relational Similarity Training (relsim): Using the generated dataset of
{image, anonymous caption}pairs, they trained a visual feature extractor using a contrastive InfoNCE loss. This forces the image embeddings to align closely with text embeddings of their abstract, anonymized descriptions.
Datasets
The paper introduces a newly curated dataset derived from LAION-2B:
- Training/Evaluation Dataset: A filtered subset of 114,881 relationally interesting images, each paired with an automatically generated anonymous relational caption. For evaluation, this was split into 100k images for training and 14k for testing.
- Core Seed Data: 532 manually curated image groups (ranging from 2 to 10 images per group) used to bootstrap and train the anonymous captioning model.
- Analogical Generation Benchmark: A manually collected set of 200 image pairs sharing underlying logic, complete with human-written text instructions to evaluate downstream generation tasks.
Key Insights and Ideas
- The Power of the Group: Writing an abstract caption from a single image is incredibly difficult because it's unclear which details are irrelevant noise. However, when a model views a group of images sharing the same logic, the common relational structure immediately stands out.
- VLMs are Essential for Abstraction: Pure vision encoders (like standard CLIP or DINO) struggle with relational similarity even when fine-tuned on relational data. Relational reasoning requires higher-level semantic and world knowledge, which is why leveraging the language backbone of a VLM as the visual extractor is crucial.
- Complementary Roles: Relational similarity doesn't replace attribute similarity; it complements it. Combining both dimensions allows for a much richer mapping of visual similarity space, separating images that share both logic and appearance from those that share only abstract logic.
Key Results
The authors evaluated their model on an image retrieval task, using GPT-4o as an automated judge to score the relational similarity of retrieved pairs on a scale from 0 to 10:
- Relsim achieved the highest score of 6.77, significantly outperforming standard baselines like CLIP-I (5.91), DINO (5.14), and LPIPS (4.56).
- Even when pure vision models like CLIP and DINO were fine-tuned on the new relational dataset ("Tuned CLIP" and "Tuned DINO"), they maxed out at 6.02 and 5.62 respectively, confirming that VLM knowledge is necessary.
- In a human user study, participants consistently preferred relsim's retrieval results over all baselines, with preference rates ranging from 42.5% to 60.7%.
The model also proved highly effective for downstream tasks like analogical image generation (e.g., taking a visual pun like "ice-scream" and generating a brand new animal-based pun using the same conceptual logic).
Limitations and Future Work
Despite its success, the authors note several limitations:
- Scalability: The anonymous captioning model relies on a base of 532 manually curated image groups. Developing a fully automated pipeline to discover and expand these relational groups is a key next step.
- VLM Vulnerabilities: As with all large models, the captioner can occasionally suffer from hallucinations or biases, leading to incorrect relational mappings.
- Ambiguity of Logic: A single image can embody multiple valid abstract relationships. Currently, relsim maps an image to a single representation; figuring out how to use text prompts to dynamically steer the model toward a specific intended relationship remains an open challenge.
Summary updated