arXiv:2610.38547cs.CVOct 2026

Manuscript Offprint

arXiv:2610.38547

Detecting Fine-Grained Differences between Image Datasets

Leander Girrbach, Alexander von Recum, Kirill Bykov, Zeynep Akata

ABSTRACT

Detecting whether and in particular how two data distributions differ is a fundamental statistical problem. For example, we might be interested in which concepts (expressed in natural language) differ between two classes, the outputs of different generative models, or the same model with different prompt specifications. When working with large and complex image datasets, we intuitively think that first selecting concepts from a broad list using fine-grained patch embeddings, and then optimizing the concepts to better fit the data is an effective workflow. However, prior work instead uses MLLMs to propose concepts and image-level embeddings to select them. Therefore, we systematically compare these techniques and find that selecting concepts from broad lists can replace MLLM-proposals at obviously lower cost. MLLM inference can then be spent on optimizing selected concepts instead to achieve substantial improvements. Additionally, by designing a new benchmark that focuses on low-prevalence and multi-concept distinctions, we find that selecting nonredundant concepts instead of only the most distinguishing concepts matters, and we introduce techniques for how to effectively do this. Finally, we show how our methods address important problems like detecting spurious correlations and biases. Overall, our work presents a fundamental perspective shift on how we analyze interpretable distributional differences between datasets.

1 INTRODUCTION

Many methods can tell us that two datasets differ, but comparatively few can explain what makes them different in human-interpretable terms. For example, classification separates class-conditional distributions, and distribution-shift detection compares training and deployment distributions. However, most methods tell us only whether or how much two distributions differ. To make this understandable to humans and amenable to analyses, we also need to find out what makes them different. Dataset diffing addresses this by searching for concepts (expressed in natural language) whose prevalence differs between two datasets. For images, which are the focus of this paper, this requires jointly solving three challenges: perceiving evidence in images, aggregating it across the entire data, and expressing the resulting distinction in language.

Beyond being an interesting problem, dataset diffing has many important and practical applications. For example, dataset diffing methods are used for dataset organization (Liu et al., 2026), temporal trend analysis in city scenes (Deng et al., 2025) and art (Olshausen & DeWeese, 2010; Ginosar et al., 2015), understanding differences between generative models (Jiang et al., 2025; Dunlap et al., 2025), and understanding classifier failure modes (Eyuboglu et al., 2022; Dunlap et al., 2024). Furthermore, dataset diffing can be extended to detecting spurious correlations (Kim et al., 2024; Choi et al., 2025) and biases (D’Incà et al., 2024), which are the focus of our applications.

Our approach to dataset diffing is as follows: We start with a broad and general wordlist that captures the fundamental concepts that exist in language. We then use this list to efficiently select the rough concepts whose prevalence differs between the compared datasets. To detect their prevalence, we use patch embeddings, which function as a zero-shot fine-grained concept detector. Image-level embeddings cannot achieve this, because they often submerge details. Finally, we optionally optimize the concepts using an MLLM that receives sampled images and selected concepts and outputs improved concept candidates. In comparison to existing literature, this is a fundamental shift: We don’t derive concepts directly from the data, e.g., by repeatedly proposing them with an MLLM, but triangulate the data with a general list that can test a large number of concepts efficiently, and then optimize them. Prior work proposes a number of concepts and then ranks them, and we first select concepts and then optimize them. In addition, we focus on complex datasets that are distinguished by multiple concepts with individually low prevalence, which requires nonredundant concept selection, because many semantically related concepts tend to score similarly while not adding information and instead suppressing other differences. This focus is also novel in comparison to existing benchmarks that focus on individual distinguishing concepts that are represented in all images.

In summary, our contributions are as follows: (1) We fill an important gap in the literature by systematically demonstrating the advantages and opportunities of fine-grained, patch-level image representations for dataset diffing; (2) We show that (expensive) MLMM proposals can be replaced by taking concepts from a broad, static wordlist, and we propose to spend the MLMM budget on post-selection concept optimization instead. (3) We show that standard benchmarks (VisDiffBench and Metashift) are saturated and propose a more challenging setting where ground truth concepts are sparser and noisier. We show that in this setting, redundancy-aware concept selection and coverage-seeking MLMM optimization are necessary for strong performance, but no method saturates the benchmark; (4) We demonstrate through two relevant applications (finding spurious correlations and demographic biases in text-to-image models) that patch-level embeddings and dataset diffing together enable insights at scale that are hard to achieve with image-level embeddings alone. Hence, this paper is a relevant contribution to the community with high practical value.

References (41)