---
title: "Describing Differences in Image Sets with Natural Language (2024)"
description: "VisDiff describes how two image collections differ in words, then checks which descriptions best distinguish the collections across all their images."
canonical: "https://research.elamur.ai/free/en/papers/dunlap-2024-describing-differences-image-sets-natural/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Shryfti](https://md.shryfti.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/dunlap-2024-describing-differences-image-sets-natural/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2024](https://md.research.elamur.ai/free/en/papers/2024/) / Describing Differences in Image Sets with Natural Language

# Describing Differences in Image Sets with Natural Language

Paper · 2024 · Lisa Dunlap, Yuhui Zhang, Xiaohan Wang et al.

**Authors:** [Lisa Dunlap](https://md.research.elamur.ai/free/en/authors/lisa-dunlap/), [Yuhui Zhang](https://md.research.elamur.ai/free/en/authors/yuhui-zhang/), [Xiaohan Wang](https://md.research.elamur.ai/free/en/authors/xiaohan-wang/), [Ruiqi Zhong](https://md.research.elamur.ai/free/en/authors/ruiqi-zhong/), [Trevor Jackson Darrell](https://md.research.elamur.ai/free/en/authors/trevor-jackson-darrell/), [Jacob Steinhardt](https://md.research.elamur.ai/free/en/authors/jacob-steinhardt/), [Joseph E. Gonzalez](https://md.research.elamur.ai/free/en/authors/joseph-e-gonzalez/) and Serena Y. Yeung · **Year:** 2024 · **Venue:** IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings · **Licence:** [CC BY 4.0 (arXiv)](https://creativecommons.org/licenses/by/4.0/)

[**19** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W4402704550) · [Cited by **9** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/dunlap-2024-describing-differences-image-sets-natural/cited-by/) · [IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings](https://openalex.org/S4210176548) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [PDF](https://arxiv.org/pdf/2312.02974)
- [DOI 10.1109/cvpr52733.2024.02284](https://doi.org/10.1109/cvpr52733.2024.02284)
- [arXiv 2312.02974](https://arxiv.org/abs/2312.02974)
- [OpenAlex](https://openalex.org/W4402704550)

Citations: OpenAlex, 2026-10-14.

## Summary

Two collections can depict the same thing and still differ in ways that matter. Photographs labeled as dining tables might show furniture on its own in one collection and people gathered for a picture in the other. A class label leaves that difference invisible, and finding it by hand can mean reviewing thousands of images. The authors call their task Set Difference Captioning. Given two image collections, the task is to write a description that applies more frequently to the first collection than to the second. The description might concern the objects, what people are doing, the setting, or the way the images were made.

The paper’s method, VisDiff, separates coming up with descriptions from checking them. It draws small samples from both groups, uses BLIP-2 to caption the images, and asks GPT-4 to infer recurring contrasts from the captions. It repeats the sampling to give different images a chance to inform the proposals. CLIP then compares each proposed description with every image in both collections. A description rises in the ranking when that comparison tends to give images from the first collection higher scores. The approach lets the proposer work with a manageable input while giving the ranker access to the full sets.

The authors evaluate VisDiff on VisDiffBench, a benchmark of 187 paired image collections with known differences. On its hardest split, the method scores 61% for Acc@1, which evaluates the first description, and 80% for Acc@5, which gives credit for the best match among the first five. Those scores measure agreement in meaning with the benchmark’s reference differences and allow partial credit. Removing the ranker lowers both scores on that split. In a separate experiment that mixes images between groups, VisDiff still recovers some of the intended differences as the groups become less distinct.

The applications show how a short description can give a researcher something concrete to inspect. A comparison of ImageNet and ImageNetV2 surfaced class-level differences that included photographs from a later sporting event. Comparisons involving CLIP and ResNet drew attention to signs, labels, and people interacting with objects. A comparison of Stable Diffusion versions identified differences in color and framing that the authors checked on images made from other prompts. Descriptions of memorable images emphasized people and close views. The method is most informative when the distinction it proposes can be checked against the images or measured independently. Its output can guide that investigation, and its ranking reflects what the underlying systems can recognize.

## Deep dive: Describing Differences in Image Sets with Natural Language

VisDiff describes how two image collections differ in words, then checks which descriptions best distinguish the collections across all their images. · about 36 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### A caption for the difference between groups

A conventional caption describes what is visible in an image. Set Difference Captioning asks what changes when the reader goes from one collection to another. If both groups contain horses and the first largely depicts racing, a caption that says there are horses is accurate about individual images but says little about the contrast. A description that mentions racing gives the reader information about how the collections were formed. The substantive question is which feature of the images is distributed differently across the groups.

The direction matters. The first collection is the one the description should characterize more strongly. A description of the opposite tendency answers the comparison with the collections reversed. This allows for overlap. A racing photograph can appear in the comparison group and the description can still work. What matters is the pattern across the collections. This is especially important when the groups come from human judgments or from the successes and failures of an image classifier, because the grouping rule need not sort images neatly by any single visible property.

The paper distinguishes this task from finding any technically valid difference. In the dining-table example, a description about a birthday celebration may apply more strongly to one collection. A broader description about people posing can distinguish the groups more effectively. This means a system has to make two judgments. It needs to decide whether a characteristic actually differs between the collections and whether the characteristic is informative enough to bring to the reader’s attention. The answer can depend on the comparison. A detail that is helpful when both groups depict the same object might have little value when their subject matter already differs plainly.

The authors motivate the task through questions about classifier errors, changes in what datasets depict, and differences between images that people remember or forget. In each case, the investigator can specify how to divide the images before knowing what visible characteristic is worth measuring. For a classifier audit, the division might separate mistakes from correct answers. For memorability, the division can come from scores assigned in a human experiment. The resulting comparison can suggest an attribute that the original grouping rule never explicitly recorded. The paper treats this as a [vision and language](https://md.research.elamur.ai/free/en/topics/multimodal/) problem.

Scale presents a separate difficulty. Looking at a pair of pictures can reveal differences in composition or subject matter, but a reviewer who sees a small sample can easily mistake a striking example for a recurring pattern. Looking through every image becomes burdensome when collections are large or when the comparison must be repeated for many classes. The authors also contend that existing systems for processing text and images cannot reliably examine thousands of images as a group and give a thoughtful account of the collection as a whole. A practical method has to make the large comparison possible while preserving enough detail to produce a specific description.

#### What earlier methods compared

The closest work on difference captioning and change captioning, in the authors’ account, generally starts with an image pair. A system can explain what changes between those particular images. A collection comparison leaves open which examples should be compared, and the difference may be visible only as a tendency. Even a very good account of a selected pair can reflect an incidental choice of images. The paper also points to visual assistants that can compare small groups and asks how that capacity can be extended to much larger collections. Among the earlier works it cites for this setting are [Otter](https://md.research.elamur.ai/free/en/papers/li-2023-otter-multi-modal-model-context/) and [Flamingo](https://md.research.elamur.ai/free/en/papers/alayrac-2022-flamingo-visual-language-model-few/).

Other earlier approaches already operate at the scale of collections. The authors discuss work that identifies representative visual examples, computes an average from a collection, analyzes pixel colors, or uses detectors and classifiers to assemble dataset statistics. Each offers a different way to reduce a large body of images to something a researcher can inspect. A summary statistic can describe an attribute once the attribute has been chosen. A prototype or composite can show a recurring appearance. The task in this paper asks the system to name that appearance or propose the attribute in free text, so an investigator can begin with a pair of collections rather than a preselected list of properties.

The design also follows work on describing differences between text distributions. The D3 and D5 frameworks use language to express recurring contrasts between groups of documents. The transferable structure is to generate possible explanations and then assess how well they separate the underlying groups. Image collections add an intermediate problem because their evidence has to reach the proposing system in a usable form. The paper studies whether to show the images, translate them into captions, or work with their numerical representations. D5 is described in [Goal Driven Discovery of Distributional Differences via Language Descriptions](https://md.research.elamur.ai/free/en/papers/zhong-2023-goal-driven-discovery-distributional-differences/).

GS-CLIP is the earlier image-domain approach the authors identify as especially close to their task. It uses CLIP representations to retrieve possible differences from a pre-defined bank of text. Retrieval can surface a concise comparison if the bank already contains an apt description. Generating new descriptions lets the system combine an object with a setting, action, or presentation detail that the text bank may lack. The authors also describe the earlier evaluation as limited and report finding considerable noise in the MetaShift data used there. Those concerns motivate their decision to create paired sets with differences specified through the collection process.

#### What the comparison can explain

The paper places its approach within a broader change in computer vision [interpretability](https://md.research.elamur.ai/free/en/topics/interpretability/). Some earlier methods ask which inputs, internal features, or neurons matter to an individual prediction. The work reviewed by the authors also includes methods for finding influential training examples and identifying interpretable subsets of data on which a system behaves differently. Set Difference Captioning starts with image groups and asks for a description of their contents. For an error analysis, the group definition already reflects the system’s behavior. The description makes that group easier to inspect without tracing the computations that produced the errors. The paper cites [LIME](https://md.research.elamur.ai/free/en/papers/ribeiro-2016-why-should-i-trust-explaining/) and [SHAP](https://md.research.elamur.ai/free/en/papers/lundberg-2017-unified-approach-interpreting-model-predictions/) in its discussion of earlier explanatory methods.

That perspective gives a researcher control over the question through the choice of collections. A group containing errors by one classifier and a group containing its correct answers support an investigation of that classifier’s failures. A group containing successes unique to one classifier, compared with the remaining images, addresses a different question even if it uses the same original dataset. A phrase about people using objects would have to be interpreted with those group definitions in mind. The method supplies the phrase. The experimental design determines what comparison the phrase can illuminate.

### The method, step by step

#### Sample images to find plausible descriptions

VisDiff works as a proposer followed by a ranker. The proposer needs to see enough visual evidence to express a reasonable hypothesis. The ranker needs to see enough of the collections to tell whether the hypothesis distinguishes them. The stages handle these needs separately. The final configuration uses captions to help the proposer compare several examples at once and uses the original images again when ranking the proposals.

How VisDiff proposes and ranks image-set differences The steps in order.

The paper denotes the complete collections by 𝒟_A and 𝒟_B. The subscripts A and B label the target and comparison collections, respectively. A possible output is y, a text description meant to apply more strongly to 𝒟_A. For a benchmark example with a known answer, y* is the reference description. The asterisk denotes the reference and does not imply that this is the only valid way to describe the images. For an open-ended analysis there may be no reference description in advance.

In each proposal round, the system draws a random subset from each collection. The relationship between the subsets and the full collections is as follows.

```
𝒮_A ⊆ 𝒟_A, 𝒮_B ⊆ 𝒟_B
```

𝒮_A and 𝒮_B are the samples available to the proposer in a round. The symbol ⊆ means that all images in the sample come from the corresponding full collection. The comma separates the statements for the target and comparison sets. The paper uses equal sample sizes for all proposer variants.

```
|𝒮_A| = |𝒮_B| = 20
```

The vertical bars give the number of images in a sample. The equality signs give the common size, and 20 is the number drawn per collection in a round. This sampling choice concerns proposal generation. The ranker evaluates the candidates on the full collections.

In the main VisDiff configuration, BLIP-2 produces a caption for each sampled image. The prompt requests a detailed description. Before passing the captions on, the system removes special tokens and filters out captions that simply repeat words. GPT-4 receives the remaining captions, grouped according to the collection they describe, and is prompted to infer possible differences. Its job is to move from captions of individual examples to a phrase that can describe a tendency. For instance, different captions might mention people seated around a table, facing a camera, or gathered in a room. A proposal can express what those scenes have in common without turning the differences among those individual captions into a list.

This phase uses BLIP-2 for the passage from image to text and GPT-4 for the comparison of the resulting descriptions. The proposer returns a list of hypotheses, denoted by 𝒴. Each y in that list is a potential answer about the target collection. In the experiments, a proposer runs for 3 rounds and generates 10 hypotheses each round. The samples can change between rounds. The ranker receives the union of the proposals, so recurring wording and repeated draws need not dictate the final priority. The component papers are [BLIP-2](https://md.research.elamur.ai/free/en/papers/li-2023-blip-2-bootstrapping-language-image/) and the [GPT-4 Technical Report](https://md.research.elamur.ai/free/en/papers/openai-2023-gpt-4-technical-report/).

Drawing new samples gives a characteristic another chance to be noticed. A round might happen to contain several examples of an unusual object in the target group, or it might miss the examples that would make a more common difference apparent. Pooling proposals preserves both possibilities for checking. It also makes an important division of labor explicit. The proposition that a feature deserves investigation can come from a small, imperfect sample. The evidence used to rank it comes from the images beyond that sample as well.

#### Compare alternative ways to propose a difference

The image-based proposer keeps the sampled images in visual form. It combines the 20+20 images into a 4-row, 10-column grid and supplies the grid as a single image. The top and bottom halves correspond to the collections. The proposer responds to a prompt asking how those halves differ. The paper tests GPT-4V and LLaVA-1.5 in this role. The grid retains visual information that might disappear from a caption, although details have to remain legible when all the images are presented in one composite. LLaVA-1.5 is associated with [Visual Instruction Tuning](https://md.research.elamur.ai/free/en/papers/liu-2023-visual-instruction-tuning/).

The feature-based proposer uses an embedding, a numerical representation of an image. It calculates the mean embedding of each sample and subtracts the mean for the comparison collection from that for the target collection. The resulting vector is passed into the language component of BLIP-2 to elicit a description. To produce 10 hypotheses, the authors sample its output 10 times with top-p sampling, which draws from a probability-ranked set of possible next tokens. This version gives the proposer a compressed representation of the overall shift. Its success depends on whether the direction between two averages corresponds to a concept that can be expressed in text.

The three designs therefore differ in what evidence the proposer receives. The grid presents the visual examples together. The feature version combines the examples before any wording is generated. The caption version keeps the examples distinct but makes language the medium of comparison. The paper builds these alternatives from pretrained components and runs them through sampling and prompting. It specifies no new training stage for learning a direct mapping from whole image collections to their difference captions.

#### Score each description on the full collections

The ranker takes each candidate and asks how strongly individual images support it. With a binary verification system, that support is a yes-or-no judgment. With CLIP, it is a continuous image-to-text similarity. The authors introduce the ranker with a general difference between average scores.

```
s_y = 𝔼_{x ∈ 𝒟_A}[v(x, y)] − 𝔼_{x ∈ 𝒟_B}[v(x, y)]
```

Here s_y is the difference score for candidate y. The symbol x represents an individual image, and v(x, y) measures how well that image fits the description. The symbol ∈ means the image comes from the collection that follows it. The two 𝔼 expressions denote averages over the respective collections, with the brackets enclosing the quantity being averaged. The minus sign subtracts the average for 𝒟_B from that for 𝒟_A. When the image score is binary, the calculation measures the difference between the shares of images marked as supporting y.

The image-based ranker obtains the binary score by asking LLaVA-1.5 a visual question about each image. The question is whether the image contains the concept in the hypothesis. The paper writes the score this way.

```
v(x, y) = VQA(x, y)
```

VQA denotes the visual question-answering procedure and its binary output. Its inputs, x and y, are the image and the candidate description. The equality sets the verification score v to that answer. The method gives the verifier the actual image, so it can in principle check a feature that an ordinary descriptive caption would omit.

The caption-based ranker first uses BLIP-2 to generate a caption for each image. Vicuna-1.5 then decides whether the caption supports the description. The corresponding score is as follows.

```
v(x, y) = QA(c, y)
```

The symbol c is the caption generated from image x. QA is the text question-answering procedure, which returns a binary answer given c and the hypothesis y. The score v for the image is set equal to that answer. This variation moves the verification task into language as well as the proposal task. Any feature left out of the caption is unavailable to the verifier, even though it may be clear to someone looking at the image.

#### Use CLIP to measure separation

The ranker used in VisDiff embeds each image and each proposed description with CLIP. The main text identifies the encoder as CLIP ViT-G/14, and the implementation details specify the OpenCLIP ViT-bigG-14 checkpoint trained on laion2b_s39b_b160k. The image and text embeddings are compared by cosine similarity, which measures how closely their directions align. A higher score means a closer match according to the encoder. The underlying work is [CLIP](https://md.research.elamur.ai/free/en/papers/radford-2021-learning-transferable-visual-models-natural/).

```
v(x, y) = (e_x · e_y) / (‖e_x‖ ‖e_y‖)
```

As before, x is an image, y is a candidate description, and v is their verification score. The symbol e_x is the embedding of the image, and e_y is the embedding of the text. The centered dot denotes their dot product. The double bars give each vector’s length. The denominator multiplies those lengths, and the slash divides the dot product by that product. This leaves a measure of how the vectors are oriented relative to one another.

For CLIP, the authors use these continuous scores to compute an area under the receiver operating characteristic curve, or AUROC, in place of the mean difference for the final ordering. The target collection supplies the positive examples and the comparison collection the negative examples. Consider drawing an image from each collection and ordering the pair by similarity to the text. A description has high AUROC when the target image typically comes above the comparison image. This interpretation explains why the ranker can use a phrase even when there is no reliable cutoff at which to declare that the phrase is true of a single image. The question it asks is how well the scores order images from the two groups.

The authors also use a t-test on the image scores in the two collections and discard hypotheses that fail the significance threshold of 0.05. Filtering and ranking serve different purposes. The test screens candidates according to the evidence of a difference in their score distributions. AUROC orders candidates by how well their scores distinguish the collections. A phrase can survive the filter yet rank below one that separates the groups more clearly. Both operations depend on CLIP’s response to the text and images, so passing the filter establishes a property of those responses under the test rather than directly confirming a count of the depicted concept.

The authors emphasize the efficiency of reusing representations. A visual question-answering ranker has to answer a fresh question for an image and each hypothesis. With CLIP, the image representation can be calculated once and compared with many text representations. The paper expresses the encoding advantage using the following complexity notation.

```
O(M + N) ≈ O(N)
```

M is the number of candidate hypotheses and N is the number of images. O denotes the order of growth in the amount of work considered. The plus sign combines the text and image encoding counts. The approximation applies in the regime the authors discuss, where N is much larger than M. The cosine comparisons across candidate and image pairs still have to be calculated. The reusable part is the more expensive encoding of images and descriptions.

```
O(MN)
```

Here MN is the product of the number of hypotheses and the number of images. The O notation has the same meaning as before. This is the scale of the question-answering work described for the image-based and caption-based alternatives, since each hypothesis has to be checked against each image or its caption. Reuse matters in practice because repeated proposal rounds expose the ranker to more hypotheses for the same underlying collections.

### Experiments and results

#### Building a benchmark with known contrasts

VisDiffBench evaluates whether a description recovers a known difference between two groups. It contains 187 pairs. The authors constructed 150 around pairs of image searches and added 37 from existing benchmarks that alter the appearance or context of ImageNet examples. These sources give the benchmark a range of contrasts. The search-based collections include different objects, actions, and fine-grained categories. The ImageNet-derived collections include renditions and synthetic transformations with known category labels. This [benchmark](https://md.research.elamur.ai/free/en/topics/evaluation-benchmarks/) design supplies a reference through the construction of each pair.

For the search-based portion, the authors asked GPT-4 to propose 150 pairs of sentences describing scenes. The target was to vary how subtle the contrast would be. Cats and dogs playing in a park illustrate an easy difference. Sedans and SUVs traveling on roads illustrate a medium difference. A mountain setting in which people are either doing yoga or meditating illustrates a hard one. The surrounding scene can remain similar while the activity, category, or visible detail changes. After generation, the authors manually adjusted the difficulty assignments. They retrieved the top 100 Bing images for each sentence, yielding 50 easy, 50 medium, and 50 hard pairs, with 100 images on each side.

This procedure provides a plausible answer before any method analyzes the images. It also makes a distinction between the intended concept and what a search delivers. A query may identify a precise object or action while some resulting images are approximate matches. The benchmark’s human checks therefore serve an important purpose. A difference supplied by construction should also make sense to a person who has seen the collections. Those checks include both independent descriptions and judgments of the authored reference.

ImageNet-R contributes renditions of 200 ImageNet classes across 14 rendition categories. For each category, the authors use 500 rendition images for the target group and 500 original ImageNet images from the same pool of classes for comparison. The rendition category provides the reference description. The idea is to preserve overlap in the objects while changing how those objects are depicted, as when a rendition is a sketch or sculpture. The source of these categories is [The Many Faces of Robustness](https://md.research.elamur.ai/free/en/papers/hendrycks-2021-many-faces-robustness-critical-analysis/).

ImageNet* contributes 23 categories of synthetic variations derived from original ImageNet images using textual inversion. A category can add a background, time of day, weather condition, color, or style. An image made with a dusk condition, for example, is meant to preserve content from the starting image while changing the presentation. Each pair uses 500 images from the transformed category and 500 original ImageNet images. The paper reports the two ImageNet-derived subsets together in its comparisons because each contributes relatively few pairs.

#### How outputs are judged

A correct description can express the intended difference in different words. The paper uses GPT-4 to judge a candidate against the reference by meaning. The evaluator assigns 0 for no match, 0.5 for a partial match, and 1 for a complete match. A partially correct description can therefore contribute to the score even when it misses part of the relevant distinction. For each pair, Acc@k takes the highest such score among the top k candidates. That value is then averaged across the pairs under evaluation. Here k is the depth in the ranked list, so Acc@1 evaluates the first candidate and Acc@5 can credit a stronger answer appearing farther down.

The benchmark score and the ranker’s AUROC address distinct questions. AUROC checks whether a candidate orders images in the intended direction according to CLIP similarity. The benchmark evaluator checks whether the candidate says what the reference says. A phrase can rank well by separating the collections and still receive little credit if it concerns a secondary contrast. Conversely, an appropriate phrase can be generated and receive a strong semantic score if examined, yet appear too far down the returned list to count at the chosen cutoff. Acc@1 and Acc@5 capture the consequences of the ordering for a reader who inspects only the corresponding number of results.

To assess the semantic judge, the authors sampled 200 proposed differences and compared GPT-4’s scores with the average from four independent annotators. The Pearson correlation was 0.80. Pearson correlation measures the extent to which the scores vary together. The paper also compares the judge with automated caption metrics and other language-based judges. It finds stronger agreement for the GPT-4 evaluation and records the exact version, gpt-4-0613. The supplementary discussion connects this choice to earlier work on [language-based judging](https://md.research.elamur.ai/free/en/papers/zheng-2023-judging-llm-judge-mt-bench/).

A separate annotation exercise assessed the benchmark labels. Annotators first inspected the image collections and proposed their own contrasts. They were then shown the reference and asked about its correctness, whether it was the best difference, and whether it matched something they had written. Averaging 3 annotations per pair across the 187 pairs, the authors report that 96% of the references were judged correct, 93% were judged the best description, and 76% matched a difference independently written by the annotator. Inter-annotator agreement on those respective questions was 93%, 87%, and 75%.

The gap between recognizing a good reference and writing it unaided is part of what makes the task interesting. Looking at a reference gives the annotator a property to check. Writing a description starts with an open search through what can vary in a collection. The paper gives the example of telling Gothic and Modernist architecture apart. A person may see a systematic difference between the images and still lack the vocabulary to identify it at the level the benchmark expects. The authors report some cases in which the system recovers such a difference more readily than the annotators.

#### How well VisDiff recovers the intended difference

The principal results compare candidate generators and rankers across the benchmark. The proposer baselines are direct visual comparison through a grid and description generation from the difference between averaged image features. The ranker baselines ask binary questions of either the original images or their captions. The strongest configurations use CLIP for ranking, with the main method pairing it with the BLIP-2 and GPT-4 caption-based proposer. The paper selects that configuration for its performance on the hardest paired-image split and its lower cost relative to the GPT-4V grid proposer.

On PairedImageData-Easy, VisDiff scores 88% on Acc@1 and 99% on Acc@5. On PairedImageData-Medium, it scores 75% on Acc@1 and 86% on Acc@5. On PairedImageData-Hard, it scores 61% on Acc@1 and 80% on Acc@5. Both measures decline as the intended distinctions become subtler. On each split, the result at the longer cutoff shows that useful descriptions are sometimes available below the first position. Because the metric gives partial credit, a percentage describes an average semantic match score at that cutoff.

The Hard split includes units of description that are easy to miss in a generic caption. Similar-looking pieces of sushi may differ by their topping. Wristwatch images can differ by brand even when the pose and surrounding scene offer little help. The selected VisDiff configuration sometimes identifies the relevant fish or watchmaker. In the yoga and meditation comparison, the paper reports that all of the caption-based proposer’s top 5 descriptions identified the reference difference, as did the image-based proposer’s top 2. The feature-based proposer missed it. That example uses the same CLIP ranker for the competing proposal sets, making it easier to see how the initial representation changes which hypotheses are available.

#### What happens when the collections overlap

The search-based benchmark is organized around a target contrast, but groups encountered in applications frequently share many of their images’ characteristics. To simulate a more difficult comparison, the authors exchange randomly selected images between the two collections. They call the control variable purity. At 100% purity, no images are exchanged. At 0% purity, 50% of images have been exchanged, and the groups have the same mixture under this setup. Purity therefore refers to the experimental exchange, rather than to a guarantee that every retrieved image depicts exactly what the original search requested.

The test uses 50 PairedImageData-Hard pairs and reports Acc@1 and Acc@5 across the mixing conditions. The paper gives 95% confidence intervals over three runs. In this experiment, unmodified collections score 63% on Acc@1, and collections at 40% purity score 49%. The 63% value is from the noise experiment’s unmodified condition. The headline 61% is the separately reported Hard result from the main comparison.

VisDiff Acc@1 under image mixing on PairedImageData-Hard The first returned description recovers less of the intended contrast as the collections are mixed.

**The numbers**

| System or setting | Acc@1 % |
| --- | --- |
| VisDiff at 40% purity | 49 |
| VisDiff at 100% purity (this paper) | 63 |

Performance falls to near 0% when purity reaches 0%. That is consistent with the disappearance of the original contrast under the exchange procedure and with the significance filter screening out unsupported hypotheses. Performance at 40% purity illustrates a different point. A contrast that remains present as a tendency can still be recovered even when membership in the groups is a less reliable guide to the images’ contents. The experiment isolates one particular kind of noise by mixing images from the two original collections. The mixed collections still inherit their contents from those same sources.

#### Comparing the original ImageNet with ImageNetV2

The application studies use VisDiff where a reference difference is generally unknown. In the ImageNet comparison, the authors place ImageNetV2 on the target side and the original ImageNet on the comparison side. ImageNetV2 was collected to reproduce important aspects of the original process, including a similar window for image uploads. The paper reports that classifiers trained on ImageNet nevertheless suffered an 11-14% accuracy drop on ImageNetV2. A description of what differs would make that shift more concrete and could suggest where to investigate it.

For the comparison across the whole datasets, the top description referred to photographs with an Instagram association. The authors interpret this as a possible clue about contemporary photographic styles and social activity in the later collection. They also report inspecting date information from Flickr. Their analysis of ImageNetV2 metadata showed that 72% of the images had been uploaded between 2012 and 2013, with the remaining 28% uploaded between 2013 and 2014. The supplementary account places collection of the original ImageNet images on or before 2010. The dates independently support a temporal separation. A resemblance to a social-media style and an image’s actual source are different claims.

The authors repeated the comparison for each of the 1,000 ImageNet classes. Within Dining Table, the V2 collection contained more scenes in which people posed for a photograph. Within Horizontal Bar, VisDiff highlighted men’s gymnastics. Manual inspection then identified photographs of the men’s high-bar event from the 2012 Olympics, which occurred after collection of the original ImageNet. The second example establishes a concrete difference in pictured events. The first illustrates how a class meant to identify an object can also capture changes in who appears around it and what they are doing.

The whole-dataset comparison and class-level comparisons offer different views. A broad description can group changes in photographic style across many classes. A class-level description can point to an identifiable event or shift in composition while holding the class label fixed. The authors suggest the temporal and stylistic changes as possible contributors to the loss of classification accuracy. The application measures image differences and documents examples of them. The contribution of each difference to the loss remains an open causal question.

#### Finding where classifiers behave differently

The next comparison treats prediction outcomes as the rule for constructing the collections. ResNet-50 scores 75% accuracy on ImageNet, and zero-shot CLIP ViT-H scores 72%. Zero-shot here means the comparison uses CLIP for recognition without training it specifically as a supervised ImageNet classifier. Similar overall accuracy leaves room for different image-level successes. The paper uses those disagreements to form collections that a reader can examine by their visual contents. The cited system families are [ResNet](https://md.research.elamur.ai/free/en/papers/he-2015-deep-residual-learning-image-recognition/) and [CLIP](https://md.research.elamur.ai/free/en/papers/radford-2021-learning-transferable-visual-models-natural/).

On ImageNet, the authors focus on the top 100 classes in which CLIP surpasses ResNet. The target group includes images CLIP identifies correctly and ResNet misses. The comparison group consists of the other images in the selected classes. VisDiff proposes contrasts involving close views of ordinary objects, visible product names and labels, and people using objects. The authors relate the first patterns to earlier observations about CLIP and its sensitivity to written material within an image. Looking at common successes would ask a different question from the one posed by these collections, which emphasize images of relative advantage.

The authors also examine the top 5 classes individually. Tobacco-shop photographs bring out signs, and digital-watch photographs bring out displays of several watches. For missiles and toy shops, the descriptions draw attention to people sharing the scene with the class-defining object or place. These cases give a reader something specific to examine. A sign on a building and an arrangement of several objects are more readily checked against the source images than a broad characterization of one classifier as more capable.

On ImageNetV2, the procedure again uses the top 100 classes in which CLIP outperforms ResNet, with CLIP-only successes in the target group and the remaining images on the other side. Leading descriptions concern people using objects, outdoor scenes in daylight, and social gatherings. The authors connect the human presence to the earlier comparison of ImageNetV2 and ImageNet. The comparisons are complementary. One organizes images by dataset membership, and the other by differences in prediction outcomes. A similar theme can appear in both while referring to a different contrast in each.

#### Checking a ResNet failure hypothesis

The ResNet error study changes the grouping rule. The target set consists of ImageNet images missed by both ResNet-50 and ResNet-101, while the comparison set consists of correctly classified images. Prominent descriptions refer to objects portrayed in a human-like way and to people interacting with objects. The latter is a property the authors can investigate with an external check on the images.

They use a DETR object detector to identify people and restrict the check to classes with roughly balanced numbers of images with and without a detected human. The reported accuracy decline for the ResNets on images with people is 3-4%. This result lends support to the description as a characterization of an association within the evaluated subset. The accuracy outcome concerns the image classifiers. The grouping variable for this check comes from DETR, rather than from the CLIP similarity scores that originally elevated the description.

The check also narrows the claim. Detecting a person does not distinguish an incidental figure in the background from someone actively using the object. Likewise, a description about human-like objects is more specific than the test’s human-presence grouping can assess. The follow-up measures an accessible implication of the proposed differences. It gives the authors evidence for that implication and leaves the more detailed descriptions available for further inspection.

#### Comparing images generated from the same prompts

The Stable Diffusion study gives the comparison a useful structure. Images from the two versions can be matched through the text prompt that produced them. The authors modify sampling to keep these matched prompts together and show the prompts to the proposer along with the image captions. They also use LLaVA-1.5 for captioning in this application because they want more detailed descriptions. The comparison uses the CompVis/stable-diffusion-v1-4 and stabilityai/stable-diffusion-2-1 checkpoints with a guidance setting of 7.5 and a shared set of negative prompts. The cited background is [High-Resolution Image Synthesis with Latent Diffusion Models](https://md.research.elamur.ai/free/en/papers/rombach-2021-high-resolution-image-synthesis-latent/).

The proposal stage uses images from PartiPrompts. To check whether the descriptions carry over, the authors examine images generated using DiffusionDB prompts unseen during proposal. The main descriptions emphasize stronger colors and more frequent frames, borders, or display stands in the SDv2 images. Keeping the generation prompt aligned in the comparison helps a reader interpret the descriptions as tendencies of the rendered images under the tested settings. The held-out prompts address whether the tendencies are limited to the prompts that first brought them to the proposer’s attention.

The authors check the color finding by calculating average saturation. On the PartiPrompts images, the average is 112.61 for SDv2 and 110.45 for SDv1. On the DiffusionDB images, the averages are 97.96 for SDv2 and 93.49 for SDv1. Saturation is the measured property here. It supports the direction of the description about more vivid color. A phrase about contrast can cover additional properties, including differences between adjacent areas of an image, which the saturation calculation does not measure.

To check the framing observation, the authors look for thick, straight white lines resembling borders. They use a Canny edge detector and look for lines with thickness from 5 to 20 pixels and length exceeding 300 pixels in images of size 512x512. On the DiffusionDB images, 13.6% of SDv2 outputs meet that criterion, compared with 5.4% of SDv1 outputs. This gives a quantitative result tied to a visible feature. It captures some frames or borders and can also respond to lines that play a different role in a composition. The authors supplement it with 50 randomly sampled examples from the two versions for visual examination.

#### Describing images that people remember

In the LaMem application, the group labels come from a human memory task. Participants see an image sequence and identify repeats, and each image receives a memorability score. The authors compare images in the most memorable 25th percentile with those in the least memorable 25th percentile. VisDiff finds that the memorable group more often depicts people, close views, and humorous situations. The forgettable group is more associated with landscapes and urban scenery. The authors report that these descriptions agree with previous observations about image memorability.

The supplementary check asks whether the generated descriptions carry enough information to classify images at the two ends of the memorability comparison. The authors take 25 descriptions associated with memorable images and 25 associated with forgettable images. CLIP compares a test image with those descriptions, and the image inherits the class of the phrase with the highest similarity. The reported accuracy is 89.8% on the LaMem test set. This checks how informative the descriptions are together. It leaves open how much an individual characteristic such as a close view contributes, and whether manipulating that characteristic would make a photograph easier to remember.

The paper makes the VisDiff implementation and VisDiffBench data available. It also releases human annotations and experimental outputs, which let readers inspect the reference labels and judgments underlying the reported comparisons.

### What the ablations show

#### Proposal quality depends on how examples are presented

The proposer comparison favors captions overall, especially on the Hard split, while the direct GPT-4V grid proposer performs better on the Easy split. The LLaVA-1.5 grid proposer also does comparatively well on easy contrasts and falls behind on subtler ones. The exception on Easy helps explain the role of the representation. A composite can still show a clear distinction between familiar object categories. A more delicate difference can depend on a small detail within an individual grid cell. The authors suggest that visual detail lost in the composite helps account for the difference between splits. The experiment compares complete proposer configurations, so it does not isolate grid resolution from the behavior of the systems interpreting it.

The feature-based proposer performs better than the LLaVA image grid on the merged ImageNet-derived sets, while performing poorly on the paired searches by comparison with the leading configurations. The authors suggest that a shift in appearance can be easier to express by subtracting average representations. If a target collection depicts objects as clip art while the comparison collection depicts similar objects in photographs, the difference between means may emphasize the rendition. When the collections contain different semantic categories, as with cats and dogs, their difference vector need not point to a clear description of the target alone. The result links the suitability of the feature proposer to the kind of contrast the benchmark asks it to recover.

There is also a comparison within caption-based proposal. LLaVA-1.5 captions average around 391 characters, and BLIP-2 captions average 41 characters. In spite of that difference in length, the resulting benchmark performance is similar, with BLIP-2 marginally ahead in the paper’s account. The benchmark therefore supplies little evidence that length alone improves this stage. Longer captions can include helpful details and also provide more words about properties unrelated to the comparison. The paper suggests that concise descriptions may help the proposer focus. The Stable Diffusion application’s use of longer captions reflects its particular interest in the presentation of individual images, so the benchmark comparison leaves room for that choice.

The authors also compare GPT-4 with GPT-3.5 in the caption-based proposer. Both perform well by the paper’s benchmark, and GPT-4 leads in most cases. This finding concerns the language comparison after the images have been captioned. Differences between collections often have to be inferred from descriptions that emphasize different aspects of individual scenes. The proposer must decide that several separately described actions or settings express a recurring contrast. The comparison indicates that the choice of system at that stage matters even when captions already provide a textual account of the images.

#### Coverage improves through new samples up to a point

The authors vary the number of rounds on the Hard subset. Additional rounds generally improve the results, with diminishing returns beyond 3. This is consistent with the purpose of repeated sampling. A first draw can omit the examples that make the reference difference apparent, while a later draw can give the proposer better evidence. Because the ranker evaluates the pooled descriptions on the full collection, expanding the pool can help without requiring the proposer to consider all those images at once.

They also vary the number of examples in a round on the 50 Hard pairs. Performance improves up to 20 examples from each collection and then degrades. Enlarging one prompt and drawing a fresh set of images in a separate round are distinct ways of giving the proposer more evidence. A longer input requires the proposer to attend to more individual captions in a single comparison. A new round can recover a different hypothesis using a prompt of the same size as before. The authors relate the degradation to research on how systems use [long contexts](https://md.research.elamur.ai/free/en/papers/liu-2023-lost-middle-language-models-use/) and respond to [irrelevant context](https://md.research.elamur.ai/free/en/papers/shi-2023-large-language-models-easily-distracted/).

The decision to use 3 rounds and 20 examples per collection reflects the observed tradeoff between performance and efficiency on this test. The sample-size result is about the value of more examples within a proposal prompt. It does not imply that the ranking stage should ignore images beyond the proposal sample. That stage answers a different question with independent image-to-description comparisons and still benefits from seeing the full collection.

#### Full-collection ranking improves which answers readers see

Removing the ranker tests whether the proposal order already places the right differences near the top. On the Hard subset, the paper reports 0.54 Acc@1 and 0.68 Acc@5 without ranking, compared with 0.61 Acc@1 and 0.80 Acc@5 with ranking. These are the scores in the decimal form used in the ablation.

Effect of ranking on Acc@5 on PairedImageData-Hard Ranking candidates with evidence from the full collections improves the best reference match in the returned shortlist.

**The numbers**

| System or setting | Acc@5 |
| --- | --- |
| Caption-based proposer without ranker | 0.68 |
| VisDiff with CLIP ranker (this paper) | 0.80 |

The change at Acc@1 means the first description is better on average after the system checks the collections. The change at Acc@5 means the gain also extends to the shortlist. Ranking cannot supply a missing concept because it only has the descriptions the proposer generated. It can recover a good candidate from farther down the pooled proposals when that candidate is better supported by the full image sets. This comparison directly tests the division between sampling for discovery and evaluating over the full collections.

Among rankers, the feature-based method is strongest, particularly on Hard. The paper reports that the binary verifier operating on images does better than the binary verifier operating on captions. That ordering is consistent with the loss of evidence through captioning. A verifier can look directly for a specific feature in an image, whereas a prewritten caption may have had no reason to mention it. The feature ranker also retains graded information instead of collapsing an uncertain match to a binary decision. The authors propose finer scoring as an explanation for its advantage. The ranker comparison changes the representations and the decision systems together, so it supports the complete CLIP design more directly than it isolates the effect of using continuous scores.

The supplementary comparison holds the caption-based proposer and CLIP scores in place and considers different ways to rank with those scores. AUROC performs most consistently, while alternatives based on the p-value and difference in average scores also give promising results. This comparison narrows the question to how the image-level evidence is aggregated. A difference in means emphasizes average separation, a p-value is tied to the strength of the statistical evidence under a test, and AUROC emphasizes whether a candidate consistently orders target images ahead of comparison images. The result supports the authors’ choice of AUROC for this benchmark while showing that the CLIP scores contain useful information under other aggregations too.

### Limitations

#### Limits identified by the authors

The authors present VisDiff as assistance for human investigation. It can miss meaningful differences, and the person interpreting the output remains responsible for establishing what the description means in the domain. The proposal and ranking stages inherit errors and biases from their pretrained components. The paper also identifies an applicability question for domains that may be poorly covered by pretraining, such as biomedical imaging. Its discussion of possible scientific uses is a motivation for applying the framework, while the experiments establish performance in the visual settings actually studied.

Some failures begin with the captions. The authors describe a comparison between cupcakes topped with buttercream and those topped with fondant. The captions were too generic to preserve the distinction. Once the proposer receives only a broad description of decorated cupcakes, it has little basis for naming the icing type. The paper also reports proposals about wording artifacts, such as the repeated appearance of the term bonsai in the captions. A repeated word may reflect a real recurring subject. A description of the repetition itself, however, concerns the caption text and can miss the intended visual concept. The authors suggest that prompts tailored to a domain could help preserve more of the details it cares about.

Other failures occur after a suitable proposal is available. The paper reports that CLIP can give low scores to precise spatial relationships, such as a plant’s location to the left of a couch. It can also respond differently to small changes in phrasing. In the comparison of birds and airplanes in flight, a description specifically about flying seagulls outranked a more general description about birds in flight. The authors discuss this as a case where patterns in the similarity scores promote an overly specific candidate. An image collection can support a species-specific contrast while a broader description gives a reader a better account of the organizing difference.

The benchmark has limits of coverage. Its examples emphasize differences in objects, styles, and activities. The authors identify position, size, and image quality as missing categories of difference. Search makes some of those categories difficult to construct reliably. A search for an image with a dog to a cat’s right can instead yield one with the dog on the cat’s left, even if both animals are clearly shown. The resulting retrieval noise can affect the relationship between the reference and the images. A good score on VisDiffBench thus applies most directly to the types of distinction represented by the collections it contains.

The semantic judge can also misread an otherwise suitable description. In one example, the benchmark contrasts green and red apples in baskets. A proposal identifying green apples receives 0.5, where the authors expect 1.0, because the distinguishing attribute is the color and the basket occurs on both sides. The overall correlation with human judgment leaves room for these individual disagreements. The authors also note that the judging system is closed and changes over time. They identify the version they used and release the outputs to make the evaluation more reproducible.

#### Limits of what the experiments establish

VisDiffBench centers on a designated reference even when more than one contrast might help describe a pair. This makes quantitative comparison practical, since every system can be judged against the same target. It can also leave a legitimate secondary difference with little credit. The human annotations show that references can be recognized as correct more often than they are independently proposed. In open-ended analysis, a reader may prefer a description from another level of detail or a contrast that the benchmark setup would never have selected as its reference.

The reported Acc@k values also combine partial matches and complete matches. They support claims about average agreement with the reference at a particular cutoff. They leave the breakdown between fully and partly correct answers unspecified. Likewise, the CLIP ranking scores measure separation in a representation, rather than observed prevalence established by independently labeling the depicted attribute. A stronger phrase-to-image match in one collection is evidence for investigation, with the force of the claim depending on how well the representation captures the relevant property. When both the proposal and its follow-up rely on CLIP, as in the LaMem classification check, that shared dependency matters to the interpretation.

The significance filter operates after the proposer has seen samples from the collections that will be ranked. It is a screening device applied to a set of generated hypotheses. The stated threshold is for the test on the score distributions. The experiments do not establish a collection-wide guarantee on how many returned descriptions are erroneous. The noise study likewise establishes behavior under a specified random exchange of images. More structured differences in how the groups were gathered, labeled, or filtered can change which descriptions are proposed and which ones appear to separate the collections.

The application checks are strongest where another form of evidence measures a property suggested by the description. Upload dates support temporal separation in ImageNetV2. Saturation and long white lines provide concrete measures for parts of the Stable Diffusion findings. The detector-based ResNet analysis supports an association between human presence and accuracy within its selected classes. These checks do not isolate the causes of the outcomes. For instance, images with people may also differ in composition, object size, or the actions shown. A claim that human presence causes the errors would require a comparison that isolates it. In this paper, the descriptions identify what to examine, and the checks establish how far the available evidence takes each interpretation.

### What came after

No later study is identified as extending or applying VisDiff.

## Cite

Cite as Lisa Dunlap, Yuhui Zhang, Xiaohan Wang, Ruiqi Zhong, Trevor Jackson Darrell, Jacob Steinhardt, Joseph E. Gonzalez and Serena Y. Yeung. 2024. Describing Differences in Image Sets with Natural Language. IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.1109/cvpr52733.2024.02284](https://doi.org/10.1109/cvpr52733.2024.02284) · [arXiv 2312.02974](https://arxiv.org/abs/2312.02974)

```bibtex
@inproceedings{dunlap2024describing,
  title = {{Describing Differences in Image Sets with Natural Language}},
  author = {Lisa Dunlap, Yuhui Zhang, Xiaohan Wang, Ruiqi Zhong, Trevor Jackson Darrell, Jacob Steinhardt, Joseph E. Gonzalez and Serena Y. Yeung},
  booktitle = {IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings},
  year = {2024},
  doi = {10.1109/cvpr52733.2024.02284},
  eprint = {2312.02974},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1109/cvpr52733.2024.02284}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
