1 Introduction
When does a machine learning model perform well? To answer this question, one would perform a series of tests and look at the evaluation metrics to make a decision. However, depending on the nature of the series of tests, such a statistically well-performing model does not necessarily perform well in other domains, especially in humanities research. Digital Art History for instance is a domain with rich in-depth case studies and highly specific tasks, which are often not covered by traditional benchmarking, leading to biases and shortcomings unique to this field. And suddenly, well performing becomes not only a statistical, but a humanities problem as well. With our paper, we contribute to this discussion in two ways:
A systematic benchmarking pipeline with tasks specifically designed for art historical research, including results with exemplary datasets.
A discussion on how different dataset characteristics affect the evaluation for domain specific questions.
For this, we focus on various pre-trained state-of-the-art transformer models. Especially multimodal vision-language models, such as CLIP, have previously shown good performance across natural-image domain tasks (Hansen et al., 2025b). This motivates the need for a more nuanced and systematic evaluation. Furthermore, we use different datasets ranging from more general art historical datasets to specialistic sub-sets. This includes a case study from our own research on European 19th century landscape painting and represents the kind of narrow research questions often presented in art history.
Overall, we address the fundamental issues of how far the datasets and pretraining affect the model’s adaptability and feature representation. This work aims not at identifying the best performing model, but the model that is most adaptable to art historical tasks and data. Addressing the gap between machine learning and art history, we propose domain specific challenges on dataset representation and composition, image quality, technical variation and conclude on how the results relate to art historical research specifically.
2 Benchmarking in Visual Arts
Art is a well established playground for machine learning tasks (Wasielewski, 2023) with different benchmarks presenting baseline metrics for artist type, and period classification (for example Zhao et al. (2021); Choudhury (2021); Li et al. (2026)). In recent years, benchmarking has shifted to large language models and zero-shot approaches, such as (Spinaci et al., 2025), with a common task being automated caption generation (Cetinic, 2021). Our approach differs from these recent developments, as we use out-of-the-box embeddings for a traditional classification task. With this, we extend our previous work by implementing a systematic approach with nuanced and domain-specific sub-tasks (Hansen et al., 2025b).
Many of these benchmarks are based on WikiArt1 and the Web Gallery of Art2 because they are freely available and tagged with additional metadata. However, especially WikiArt has been criticized lately (Wasielewski, 2023). Class imbalance issues and biases aside, one of the core problems is its labeling. WikiArt enforces a structure that already contains strong art historical opinions, which renders some studies tautological in nature. This urged some scholars to create their own datasets, which are either based on those two datasets (for example Garcia and Vogiatzis (2018); Khan et al. (2014)), or hand-picked from museum websites (for example, OmniArt, which was taken down as of 2025, Strezoski and Worring (2017)). The dataset ArtBench, for example, was created to benchmark image generation and tackles some of the challenges, such as class imbalance (Liao et al., 2022). However, it also contains sculptures and murals, skewing the task in a different direction. They also merge subclasses, such as different surrealist schools, which is suitable for general style transfer and image generation but does not allow for more nuanced classification tasks. Beyond mere style classification, IconClass3 has been used for questions of content and motif, offering a fine-grained taxonomy of topics from different mythologies and religions. Springstein et al. (2024) for example, leverage CLIP for zeroshot classification and propose a multi-class classification model pretrained with ICONCLASS descriptions.
To address the problems and more general questions of benchmarking, we also use WikiArt as a starting point. As a prominent dataset it is likely included in the pre-training of the models. We then extend our data to hand-selected artists from Wikidata, which recently emerged as a rich, but also biased source for digital art history (Sant & Tabone, 2024; Schneider et al., 2026; de Beyssat, 2025).
3 Dataset and Tasks
3.1 Overview
In total, we created five datasets for different tasks (Table 1). The first dataset (D1) is a cleaned version of a WikiArt distribution available on huggingface.4 We filter the data by excluding artists with less than 100 paintings, paintings with missing values for the labels painter, genre or style and we removed obvious stylistic (Action painting) and regional (Ukiyo-e) outliers to create an overall more balanced dataset. Furthermore, we excluded paintings with unusual ratios, because those are often separate paintings stitched into one image file, compromising single-instance comparability and class balance, as well as images with very large sizes.5
Table 1
Overview of the (sub)-datasets used in this study.
| NAME | DATASET | TASK | METADATA FIELDS |
|---|---|---|---|
| D1 | Cleaned WikiArt | WikiArt label classifications | image, artist, genre, style, index old, genre str, style str, artist str, idx after filter |
| D2 | 5 artists in 11 variants | WikiArt sub tasks | qid, title, image url raw, image filename, inception, collection, collection qid, location, location qid, material, genre, height cm, width cm, depicts, inventory number, Wikidata url, artist, image, license short name, license url, artist credit, usage terms |
| D3 | 2x 5 artists in 11 variants | WikiArt/Data comparison | filename, image, eva02 backbone embedding, qid, title, image url, image filename, date, collection, location, inventory number, wikidata url, artist, artist-nationality, image rights, dinov2-giant projection-head-embedding, dinov2-giant backbone embedding, eva02 projection-head-embedding, siglip so400m projection-head-embedding, siglip so400m backbone embedding, class |
| D4 | 22 artists à 35x16–20 segments | Projection head finetuning | filename, image bytes, qid, title, image url raw, inception, collection, collection qid, location, location qid, material, genre, height cm, width cm, depicts, inventory number, wikidata url, artist, license short name, license url, usage terms, copyright status, credit |
| D5 | 200 images, 1035 tree segments | Object detection | image, artist, main class, id, filename, + ablation scores from a classification task |
D2 and D3 are both subsets with five hand-picked painters. D2 is subsampled from D1, and D3 is collected from Wikidata. A comparison of class size can be found in Figure 1. The criteria for choosing these painters include their positive performance in the initial task, their distinct brushstroke, and their presence from roughly the same art period, resulting in an appropriately sized, controlled classification task that is neither too difficult, nor too easy. D2 is first used to test the models’ generalizability to different image quality variations and is then compared to D3 to test for different dataset compositions. Thus, the painters were also chosen for comparability-reasons between the datasets.

Figure 1
Comparison of class sizes between D2 (WikiArt) and D3 (Wikidata).
The dataset (D4) was also sampled from Wikidata. It is used to train projection heads based on different transformer models, testing them on their ability to adapt to a scarce, naturally occurring data composition. This dataset includes landscape paintings from 22 19th century painters, excluding Danish and Norwegian who are reserved for later research. Additionally, we created a probe to evaluate the model’s ability to generalize. It includes seven more paintings by 6 of the already included artists and 4 artists with 15 paintings that are unknown to the model (Table 10). D5 consists of 200 randomly sampled paintings from a dataset of Northern European landscape painting, which was compiled to study Northern Romanticism in the 19th century (Kipke et al., 2026). Each of them contains manual annotations on the occurrence of trees to use in an object detection task.
Overall, the datasets represent western art history with a focus on the 19th–20th centuries. The selection and threshold is marked by availability of high quality images and their alignment with our own domain expertise. They serve as examples of specialized tasks and the pipeline can be adapted to other setups as well, with our own subsets serving as a departure point for domain shift experiments and further studies on the subfield of landscape painting. Furthermore, our decision is also motivated by the fact that those domains encompass naturalistic depictions rather than abstract art. This is a reasonable first step, since it closely resembles the models’ real-world training data. Future research exploring both abstract and non-western art movements would add tremendously to the goals of this research.
Repository location
DOI (10.5281/zenodo.21622453)
Repository name
Zenodo
Object name and formats
Python code for the experiments; datasets on huggingface:
D5: Full-dataset, including a csv-file with a random selection of 200 paintings. Segments created with the code.
Creation dates
01.10.2025–27.07.2026
Dataset creators
Louise Brix Pilegaard Hansen, Rie Schmidt Eriksen, Marta Kipke
License
CC-BY-4.0 (Zenodo), mixed (see huggingface for respective image rights)
Publication date
27.07.2026
Language
Mostly English and Danish, with some metadata including German, Swedish and Finnish
3.2 Models
In this study, we benchmark 19 embedding models available on the Massive Image Embedding Benchmark6 (Xiao et al., 2025). This selection involves four model families in total and includes variants of model size, patch size, pretraining data (f. e. LAION (Schuhmann et al., 2021), DataComp (Gadre et al., 2023) for CLIP), image resolution.
First, it includes different CLIP models, which are based on OpenCLIP, an open-source implementation of the CLIP models created by OpenAI (Radford et al., 2021). They are trained on text-image pairs via contrastive learning. Two other models are variants of CLIP and thus also multi-modal. SigLIP implements a sigmoid function instead of softmax normalization, making it less dependent on global view and batch size, which in theory leads to better generalization for dense tasks (Zhai et al., 2023).The alternative to the traditional CLIP architecture is EVA-CLIP. Its training includes major optimization of parameters, including, for example, initialization and learning rates (Fang et al., 2024). It also emerged as strong and stable in previous benchmarking tasks (Hansen et al., 2025b). The final architecture (DINO) differs from the CLIP approaches as it is a purely visual transformer model, offering a comparison point to different pre-training modalities (Oquab et al., 2023). For some of the tasks, we focus on a sub-selection of 9 models, which represent all families in their variations (Table 9).
4 Experiments and Results
4.1 WikiArt Label Image Classification
As a first baseline experiment, we perform an image classification on the labels as they are provided by WikiArt (Style, Genre, Artist). We extract image embeddings and use them in three separate classification tasks, one per label, for each model. The dataset was randomly partitioned into training, validation and test sets using an 80/10/10 split. All models for this task were fit with the same train, validation, and test splits (see Table 3 for an overview of hyperparameter settings).
The results can be found in Table 2. Overall, the biggest CLIP model with LAION pre-training emerged as the best performing, with the similarly big SigLIP-SO400m being a close contender. Judging by the range of F1 scores,7 the artist task is the most difficult, followed by style and then genre.
Table 2
WikiArt classificatoin: Macro-averaged precision (P), recall (R), and F1 (F1) for genre, style, and artist classification across evaluated models. Based on WikiArt and its labeling.
| GENRE | STYLE | ARTIST | |||||||
|---|---|---|---|---|---|---|---|---|---|
| MODEL | P | R | F1 | P | R | F1 | P | R | F1 |
| CLIP-ViT-B-16-DataComp.XL-s13B-b90K | 0.75 | 0.84 | 0.78 | 0.59 | 0.73 | 0.63 | 0.57 | 0.60 | 0.56 |
| CLIP-ViT-H-14-laion2B-s32B-b79K | 0.78 | 0.86 | 0.81 | 0.70 | 0.80 | 0.74 | 0.73 | 0.75 | 0.72 |
| CLIP-ViT-L-14-DataComp.XL-s13B-b90K | 0.77 | 0.86 | 0.81 | 0.66 | 0.76 | 0.70 | 0.67 | 0.70 | 0.67 |
| CLIP-ViT-L-14-laion2B-s32B-b82K | 0.78 | 0.86 | 0.81 | 0.69 | 0.79 | 0.72 | 0.69 | 0.72 | 0.69 |
| CLIP-ViT-bigG-14-laion2B-39B-b160k | 0.81 | 0.88 | 0.84 | 0.75 | 0.80 | 0.77 | 0.81 | 0.84 | 0.82 |
| CLIP-ViT-g-14-laion2B-s34B-b88K | 0.79 | 0.87 | 0.82 | 0.71 | 0.79 | 0.74 | 0.76 | 0.79 | 0.77 |
| clip-vit-large-patch14 | 0.78 | 0.86 | 0.81 | 0.68 | 0.78 | 0.71 | 0.68 | 0.71 | 0.68 |
| dinov2-base | 0.73 | 0.81 | 0.76 | 0.60 | 0.69 | 0.63 | 0.59 | 0.62 | 0.59 |
| dinov2-large | 0.76 | 0.83 | 0.79 | 0.62 | 0.69 | 0.65 | 0.59 | 0.62 | 0.59 |
| dinov2-giant | 0.77 | 0.83 | 0.79 | 0.65 | 0.73 | 0.68 | 0.63 | 0.66 | 0.63 |
| eva02_clip_336 | 0.80 | 0.87 | 0.83 | 0.72 | 0.79 | 0.73 | 0.72 | 0.75 | 0.73 |
| siglip-base-patch16-224 | 0.74 | 0.83 | 0.78 | 0.58 | 0.71 | 0.62 | 0.54 | 0.57 | 0.53 |
| siglip-base-patch16-256 | 0.76 | 0.84 | 0.79 | 0.62 | 0.72 | 0.65 | 0.56 | 0.58 | 0.55 |
| siglip-base-patch16-256-multilingual | 0.76 | 0.84 | 0.79 | 0.61 | 0.72 | 0.64 | 0.54 | 0.58 | 0.54 |
| siglip-base-patch16-384 | 0.77 | 0.85 | 0.80 | 0.60 | 0.72 | 0.64 | 0.58 | 0.61 | 0.57 |
| siglip-base-patch16-512 | 0.77 | 0.85 | 0.80 | 0.63 | 0.74 | 0.66 | 0.61 | 0.62 | 0.59 |
| siglip-large-patch16-256 | 0.78 | 0.85 | 0.81 | 0.67 | 0.76 | 0.70 | 0.65 | 0.68 | 0.65 |
| siglip-large-patch16-384 | 0.79 | 0.87 | 0.82 | 0.69 | 0.77 | 0.72 | 0.70 | 0.72 | 0.69 |
| siglip-so400m-patch14-384 | 0.81 | 0.88 | 0.84 | 0.73 | 0.82 | 0.75 | 0.77 | 0.79 | 0.77 |
Table 3
WikiArt Classification: Hyperparameter settings.
| HYPERPARAMETER | GENRE | STYLE | ARTIST |
|---|---|---|---|
| Hidden layer size | 500 | 1200 | 2000 |
| Activation | ReLU | ReLU | ReLU |
| Dropout | 0.40 | 0.30 | 0.30 |
| Optimizer | Adam | Adam | Adam |
| Learning rate | 1 × 10–4 | 3 × 10–4 | 1 × 10–3 |
| Weight decay | 0.01 | 0.01 | 0.01 |
| LR scheduler | ExponentialLR | ExponentialLR | ExponentialLR |
| Scheduler decay (γ) | 0.9 | 0.9 | 0.9 |
| Loss | Weighted Cross-Entropy | Weighted Cross-Entropy | Weighted Cross-Entropy |
| Early stopping patience | 5 | 5 | 5 |
However, what do these numbers represent in the context of historical research? With this initial setup it becomes evident that the WikiArt labels might include art historical categories, but does not treat them appropriately. For example, the subclass labels of genre classification operate on different levels (Figure 2). This creates confusion between the technique and the content of the images: Landscape and religion (topics) are mixed with sketch and study and illustration (technique). Even though art historically questionable, this might be embedded as a potential bias in the models.

Figure 2
Confusion matrix of the genre classification by WikiArt labels.
To investigate this further, we created classification tasks with different subgroups, such as religious painting against genre painting Table 4. The top misclassifications (Figure 3) reveal how the model struggles especially with more abstract depictions of religious topics. This could be explained by the data structure: First, traditional religious paintings from earlier periods are better represented in the dataset. Second, abstract painting is in the same category and performs exceptionally well, making style more important than the actual content matter. Obviously, WikiArt is not suitable for iconographic analysis, and these biases might be mitigated through additional finetuning using datasets such as IconClass. However, the biases of the pre-training still remain.
Table 4
WikiArt classification: Religious vs. genre paintings performance.
| MODEL | PRECISION | RECALL | F1 |
|---|---|---|---|
| CLIP-ViT-B-16-DataComp.XL-s13B-b90K | 0.913 (0.005) | 0.928 (0.003) | 0.919 (0.004) |
| CLIP-ViT-L-14-DataComp.XL-s13B-b90K | 0.926 (0.013) | 0.942 (0.007) | 0.932 (0.011) |
| CLIP-ViT-bigG-14-laion2B-39B-b160k | 0.950 (0.016) | 0.957 (0.007) | 0.953 (0.013) |
| dinov2-base | 0.892 (0.009) | 0.910 (0.005) | 0.898 (0.007) |
| dinov2-giant | 0.904 (0.009) | 0.923 (0.007) | 0.911 (0.009) |
| eva02_clip_336 | 0.948 (0.006) | 0.956 (0.004) | 0.952 (0.005) |
| siglip-base-patch16-224 | 0.908 (0.008) | 0.924 (0.003) | 0.914 (0.005) |
| siglip-large-patch16-384 | 0.936 (0.003) | 0.948 (0.003) | 0.941 (0.002) |
| siglip-so400m-patch14-384 | 0.952 (0.011) | 0.962 (0.004) | 0.956 (0.008) |

Figure 3
Top misclassifications in a task of genre against religious painting classification.
4.2 Classification on Image-Quality Subset
Next, we address image quality. This topic has previously been discussed with respect to CNNs and their tendency towards texture-heavy learning, leaving image quality with strong textural qualities as a challenge for image classification (Hermann et al., 2020; Dodge & Karam, 2016). Yet, no comprehensive study has been conducted on how different image qualities might affect the classification of paintings for transformer models, especially regarding qualities that are specific to the art historical domain. In this domain, the texture can vary depending on different digitization or publication methods or on different techniques such as the brushstrokes of painting contrary to the lines of sketches.
To investigate the technical variations we first trained a classifier to distinguish paintings by Rembrandt and Rubens and then tested it on their sketches and illustrations. However, because they are already well-known and digitized, this task did not pose a challenge for the models at all. So instead, we created our own pipeline for creating artificial re-renderings of artists paintings (Figure 4). One version was created using a canny algorithm Canny (2009), which results in a linear sketch, and the other version uses an edge detection algorithm which aims at specifically re-rendering a given image into a more textural drawing.8

Figure 4
Different image modifications to account for varying types of image quality in art historical data.
Other modifications pertain to different types of quality. All of them were created using the Python libraries Pillow, Torchvision and OpenCV and include standard computer vision techniques.9 No generative algorithms have been used to keep the process re-producible, transparent and as to avoid artifacts and hallucinations beyond the intended effect.
For one, the following textural qualities were adjusted:
JPEG fragmentation: Many images are published in a low quality JPEG format, which, especially when the images are scaled down, leads to JPEG compression artifacts, a specific pattern of pixel mutation distorting the details of an image Hudson et al. (2018). This is the case in online databases, where images are compressed to save space or to protect the full-size version from being distributed. We created this effect by converting the images to JPEG and significantly down-scaling them in quality.
Blurring: Images can be blurry due to small resolution and up-scaling or due to shaky, amateur digitization. We created this effect by adding Gaussian blur in kernels relative to the image sizes.
Graining: Especially with older digitizations, graininess can vary significantly. In the most extreme cases, re-scanning printed images can create a strong pattern of halftone dots. But even in less extreme cases, such as a comparison between WikiArt and museum databases, different grain patterns and intensities are apparent (Figure 5). We added grain to the images using Gaussian noise.

Figure 5
The same painting (Gateway in the Via Sepulcralis in Pompeii by Christen Købke, 1846) from two different datasets, left from WikiArt, right from the museum website. This image demonstrates the difference in color grading and graininess between different image sources.
Another group of modifications concerns changes in color and light:
Contrast: To mimic older digitizations we significantly increase the contrast of the image, creating not only a stronger curve between black and white, but also a stronger saturation of the colors. As demonstrated in Figure 5, even more recent digitizations are also not always true to color.
Vignette and Light Artifacts: These effects are common in amateur photography, which is often included in Wikidata. It usually occurs when a picture is taken in a museum, where it is placed behind a panel of protective glass and/or in darker lighting conditions. We created this effect by randomly adding white areas within the image for light artifacts and a dark and blurry border for vignettes.
Grayscaling: Some museum datasets include grayscaled digitizations from older digitization periods.10
Finally, we also created one modification that adds artificial frames to the images. Some digitizations include the historical frames in which the paintings are presented. Often, they take up a lot of space and feature distinct repetitive patterns details, which carry a lot of visual information, distracting from the actual paintings (Figure 6). Furthermore, they might reveal digitization biases. Some museums might include them, whereas others do not. The artificial frames are three simple borders in different yellow-brown tones.

Figure 6
Paintings with frames from the Statens Museum for Kunst, Kopenhagen. These examples demonstrate how elaborate frames can take up a lot of space and information in comparison to the painting itself. If a museum had specific framing policies, these might reflect as unwanted biases in the data. Inventory numbers from left to right: KMS8840, KMS3991, KMS870, KMSst194.
To evaluate how these different image qualities affect model performance, we perform a classification task on the data subset D5. We split the data into training and testing sets, training on the non-modified image embedding and testing them on embeddings of the augmented images.
The results can be found in Tables 5, 6, 7, 8. Overall, the technique modifications affect all models the most, whereas changes in lighting, grayscaling and JPEG compression pose almost no difference in performance. A notable observation is that the DINO models are the least affected, even for the technique modifications. This speaks for those models’ ability to generalize despite large amounts of quality-noise in the data.
Table 5
Image quality task: F1 scores (mean with standard deviation).
| MODEL | strong_blur | grayscale | contrast | frame | jpeg_compr | no_aug |
|---|---|---|---|---|---|---|
| CLIP-ViT-B-16-DataComp.XL-s13B-b90K | 0.786 (0.020) | 0.835 (0.015) | 0.624 (0.019) | 0.845 (0.017) | 0.800 (0.021) | 0.892 (0.019) |
| CLIP-ViT-L-14-DataComp.XL-s13B-b90K | 0.780 (0.020) | 0.860 (0.026) | 0.671 (0.049) | 0.876 (0.014) | 0.843 (0.018) | 0.906 (0.017) |
| CLIP-ViT-bigG-14-laion2B-39B-b160k | 0.902 (0.030) | 0.904 (0.016) | 0.818 (0.020) | 0.946 (0.010) | 0.929 (0.015) | 0.955 (0.005) |
| dinov2-base | 0.833 (0.006) | 0.835 (0.013) | 0.816 (0.016) | 0.842 (0.012) | 0.825 (0.013) | 0.847 (0.016) |
| dinov2-giant | 0.865 (0.013) | 0.869 (0.010) | 0.842 (0.010) | 0.867 (0.011) | 0.862 (0.013) | 0.878 (0.013) |
| eva02_clip_336 | 0.858 (0.028) | 0.868 (0.028) | 0.781 (0.019) | 0.910 (0.016) | 0.879 (0.022) | 0.924 (0.007) |
| siglip-base-patch16-224 | 0.729 (0.041) | 0.841 (0.008) | 0.567 (0.057) | 0.775 (0.040) | 0.697 (0.057) | 0.887 (0.006) |
| siglip-large-patch16-384 | 0.847 (0.024) | 0.904 (0.011) | 0.643 (0.045) | 0.830 (0.055) | 0.825 (0.030) | 0.938 (0.012) |
| siglip-so400m-patch14-384 | 0.846 (0.024) | 0.917 (0.013) | 0.755 (0.032) | 0.915 (0.017) | 0.880 (0.012) | 0.958 (0.013) |
Table 6
Image quality task : F1 scores (mean with standard deviation).
| MODEL | vignette | weak_grain | light_artifact | canny_sketch | pencil_sketch | no_aug |
|---|---|---|---|---|---|---|
| CLIP-ViT-B-16-DataComp.XL-s13B-b90K | 0.872 (0.019) | 0.832 (0.022) | 0.885 (0.009) | 0.321 (0.061) | 0.267 (0.022) | 0.892 (0.019) |
| CLIP-ViT-L-14-DataComp.XL-s13B-b90K | 0.892 (0.013) | 0.851 (0.016) | 0.900 (0.012) | 0.364 (0.056) | 0.406 (0.051) | 0.906 (0.017) |
| CLIP-ViT-bigG-14-laion2B-39B-b160k | 0.944 (0.017) | 0.909 (0.016) | 0.938 (0.015) | 0.321 (0.013) | 0.507 (0.063) | 0.955 (0.005) |
| dinov2-base | 0.834 (0.014) | 0.833 (0.018) | 0.848 (0.014) | 0.497 (0.025) | 0.498 (0.034) | 0.847 (0.016) |
| dinov2-giant | 0.871 (0.010) | 0.867 (0.013) | 0.877 (0.014) | 0.520 (0.023) | 0.563 (0.036) | 0.878 (0.013) |
| eva02_clip_336 | 0.910 (0.018) | 0.857 (0.028) | 0.916 (0.015) | 0.396 (0.044) | 0.479 (0.040) | 0.924 (0.007) |
| siglip-base-patch16-224 | 0.840 (0.017) | 0.829 (0.024) | 0.866 (0.009) | 0.363 (0.024) | 0.347 (0.018) | 0.887 (0.006) |
| siglip-large-patch16-384 | 0.880 (0.026) | 0.897 (0.018) | 0.926 (0.020) | 0.310 (0.030) | 0.413 (0.052) | 0.938 (0.012) |
| siglip-so400m-patch14-384 | 0.928 (0.012) | 0.896 (0.013) | 0.940 (0.019) | 0.346 (0.078) | 0.465 (0.102) | 0.958 (0.013) |
Table 7
Image quality task: Difference in F1 score relative to no_aug (augmentation minus no_aug). Largest absolute drop per augmentation is underlined (ties included).
| MODEL | vignette | weak_grain | light_artifact | canny_sketch | pencil_sketch |
|---|---|---|---|---|---|
| CLIP-ViT-B-16-DataComp.XL-s13B-b90K | –0.02 (0.02) | –0.06 (0.02) | –0.01 (0.01) | –0.57 (0.06) | –0.63 (0.02) |
| CLIP-ViT-L-14-DataComp.XL-s13B-b90K | –0.01 (0.01) | –0.06 (0.02) | –0.01 (0.01) | –0.54 (0.06) | –0.50 (0.05) |
| CLIP-ViT-bigG-14-laion2B-39B-b160k | –0.01 (0.02) | –0.05 (0.02) | –0.02 (0.02) | –0.63 (0.01) | –0.45 (0.06) |
| dinov2-base | –0.01 (0.01) | –0.01 (0.02) | 0.00 (0.01) | –0.35 (0.03) | –0.35 (0.03) |
| dinov2-giant | –0.01 (0.01) | –0.01 (0.01) | –0.00 (0.01) | –0.36 (0.02) | –0.32 (0.04) |
| eva02_clip_336 | –0.01 (0.02) | –0.07 (0.03) | –0.01 (0.02) | –0.53 (0.04) | –0.45 (0.04) |
| siglip-base-patch16-224 | –0.05 (0.02) | –0.06 (0.02) | –0.02 (0.01) | –0.52 (0.02) | –0.54 (0.02) |
| siglip-large-patch16-384 | –0.06 (0.03) | –0.04 (0.02) | –0.01 (0.02) | –0.63 (0.03) | –0.53 (0.05) |
| siglip-so400m-patch14-384 | –0.03 (0.01) | –0.06 (0.01) | –0.02 (0.02) | –0.61 (0.08) | –0.49 (0.10) |
Table 8
Image quality task: Difference in F1 score relative to no_aug (augmentation minus no_aug).
| MODEL | strong_blur | grayscale | contrast | frame | jpeg_compr |
|---|---|---|---|---|---|
| CLIP-ViT-B-16-DataComp.XL-s13B-b90K | –0.11 (0.02) | –0.06 (0.02) | –0.27 (0.02) | –0.05 (0.02) | –0.09 (0.02) |
| CLIP-ViT-L-14-DataComp.XL-s13B-b90K | –0.13 (0.02) | –0.05 (0.03) | –0.24 (0.05) | –0.03 (0.01) | –0.06 (0.02) |
| CLIP-ViT-bigG-14-laion2B-39B-b160k | –0.05 (0.03) | –0.05 (0.02) | –0.14 (0.02) | –0.01 (0.01) | –0.03 (0.02) |
| dinov2-base | –0.01 (0.01) | –0.01 (0.01) | –0.03 (0.02) | –0.01 (0.01) | –0.02 (0.01) |
| dinov2-giant | –0.01 (0.01) | –0.01 (0.01) | –0.04 (0.01) | –0.01 (0.01) | –0.02 (0.01) |
| eva02_clip_336 | –0.07 (0.03) | –0.06 (0.03) | –0.14 (0.02) | –0.01 (0.02) | –0.05 (0.02) |
| siglip-base-patch16-224 | –0.16 (0.04) | –0.05 (0.01) | –0.32 (0.06) | –0.11 (0.04) | –0.19 (0.06) |
| siglip-large-patch16-384 | –0.09 (0.02) | –0.03 (0.01) | –0.30 (0.05) | –0.11 (0.06) | –0.11 (0.03) |
| siglip-so400m-patch14-384 | –0.11 (0.02) | –0.04 (0.01) | –0.20 (0.03) | –0.04 (0.02) | –0.08 (0.01) |
4.3 Class Composition: WikiArt vs. Wikidata
The specific composition of classes, meaning the representation of certain artists over others, poses another fundamental problem. WikiArt has a strong representation of French artists of the 19th century, whereas, e.g., Danish painters of the same time period are severely underrepresented. The Father of Danish Painting, C. W. Eckersberg for instance, only features 47 paintings on WikiArt, whereas Wikidata includes 233 works. Even if both WikiArt and Wikidata feature the same classes in similar sizes, they might still include different paintings by the same artists. To investigate how this affects model performance, we repeated a classification of French painters with images scraped from Wikidata as a point of comparison. The difference between those two sources concerns both dataset composition and image quality (see above). Whereas WikiArt includes mostly images around 2500 px size on the longest side, we scraped Wikidata specifically for images around 4000-6000 px size. However, realistically, many images are only available at around 600 px. Thus, Wikidata is more heterogeneous in both higher and lower resolution images.
The performance can be inferred from Table 9. In this case, it is negligible (0.000-0.032). DINO-base showcases the highest difference, performing slightly better on Wikidata. This emphasizes again its adaptability to heterogeneous data. However, this experiment is just an example of comparable classes between both datasets. For research questions concerning classes that might vary more severely between these two sources, it is crucial to perform a preliminary analysis of class composition and representativeness.
Table 9
WikiArt and Wikidata classification: Comparison F1 scores and standard deviation.
| MODEL | WIKIDATA | WIKIART | DIFFERENCE |
|---|---|---|---|
| CLIP-ViT-B-16-DataComp.XL-s13B-b90K | 0.892 (0.017) | 0.892 (0.019) | 0.000 |
| CLIP-ViT-L-14-DataComp.XL-s13B-b90K | 0.918 (0.017) | 0.906 (0.017) | 0.012 |
| CLIP-ViT-bigG-14-laion2B-39B-b160k | 0.955 (0.006) | 0.955 (0.005) | 0.000 |
| dinov2-base | 0.878 (0.008) | 0.847 (0.016) | 0.031 |
| dinov2-giant | 0.888 (0.015) | 0.878 (0.013) | 0.010 |
| eva02_clip_336 | 0.927 (0.008) | 0.924 (0.007) | 0.003 |
| siglip-base-patch16-224 | 0.903 (0.014) | 0.887 (0.006) | 0.016 |
| siglip-large-patch16-384 | 0.942 (0.015) | 0.938 (0.012) | 0.004 |
| siglip-so400m-patch14-384 | 0.959 (0.017) | 0.958 (0.013) | 0.001 |
4.4 Finetuning a Projection Head
4.4.1 Task
Class composition and specialistic art-historical research questions often call for specialized models. To create a baseline on the models adaptability to new data, we finetune a projection head based on the model backbones aimed at such a specialistic research question.
In this example we study how landscape painting is used to express narratives of identity and nationalism in 19th century Northern Europe. This task comes with obvious overlaps between identities. Norway, for instance, was still part of the Danish crown in the beginning of the 19th century and some Danish artists repeatedly traveled there. Thus, this study shows how feature space exploration and visual similarity networks can be used to study the ambiguities and narratives of such phenomena. However, in our initial approach, we only considered the whole paintings as input, whereas a more fine-grained approach could reveal more about individual styles and details, such as tree leaves or the texture of water (Kipke et al., 2026). A specialized projected head could aid researchers in studying these nuances.
With this case study in mind, we trained a model to classify different landscape paintings by artist with image segments as basis. This task shows how models perform in a specialistic task taken directly from art historical research instead of the broad categories offered by WikiArt and, in the case of our specific example, indicates how models adapt to motifs vs. stylistic features.
4.4.2 Training and Evaluation Set-Up
The dataset includes 22 landscape painters from the 19th century (Table 10). Every painter is represented by 35 paintings, which are segmented into a grid of 4 x 4–6 segments. Depending on image ratio there is some loss at the image borders, which is negligible due to the information density of the remaining segments. The paintings were chosen to represent a painter’s style in its heterogeneity, not their most common motifs. As far as possible, every artist class included different motifs (forest, fields) and both horizontal and vertical resolutions. This task is not trivial due to considerable similarity between the classes. However, the chosen painters are stylistically diverse enough for the model to learn meaningful features.
Table 10
Finetuning a projection head: Painter selection. Training classes include 35 paintings, probe 1 consists of 7 paintings and probe 2 of 15.
| PAINTER | TRAINING | PROBE 1 | PROBE 2 |
|---|---|---|---|
| Andreas Achenbach | x | ||
| Ivan Aivazovsky | x | ||
| Knud Baade | x | ||
| Albert Bierstadt | x | ||
| Eugene Louis Boudin | x | ||
| August Cappelen | x | ||
| Carl Gustav Carus | x | ||
| F. E. Church | x | x | |
| Thomas Cole | x | ||
| John Constable | x | ||
| J.-B. Camille Corot | x | x | |
| C.-F. Daubigny | x | x | |
| Joseph Wright of Derby | x | ||
| Narcisse Virgilio Díaz | x | x | |
| R. S. Duncanson | x | ||
| Caspar David Friedrich | x | x | |
| Carlos de Haes | x | ||
| B. C. Koekkoek | x | ||
| Isaac Levitan | x | ||
| Johan Lundbye | x | ||
| Anton Mauve | x | x | |
| Thomas Moran | x | ||
| Théodore Rousseau | x | ||
| Ivan Shishkin | x | x | |
| P. C. Skovgaard | x | ||
| J. M. W. Turner | x |
For the training, the features of the segments are extracted and aggregate into one descriptor, resulting in a dense representation of the single image. Then each model is frozen and an MLP projection head is trained with a triplet-contrastive-learning task. In this setup, an anchor image from one painter is given, as well as two more images – one of the same artist (positive) and one by another (negative). The model is trained to keep the positive images close to the anchor image, while pushing away the negatives, thereby capturing painter-specific features. To not make this task too easy a semi-hard mining technique was implemented Schroff et al. (2015). This means that moderately difficult triplets are sampled from the triple database to create an overall stable, but meaningful feature representation.
The model is tested with two probes: First, held-back paintings from the training classes (7 images); second, previously unknown artists in a zero-shot set-up (15 images). This indicates two different abilities; one being the generalization inherent to the training classes and the other asking for a broader arrangement of 19th century landscape painting in feature space. The metrics include R@1, R@5, and R@10, which indicate the percentage of cases where the correct class appears within the top 1, 5 and 10 predictions. Additionally, we report triplet accuracy, defined as the percentage of triplets for which the positive image is correctly ranked closer to the anchor than the negative image.
We document the best epochs for all three maximized R@1 scores (training and both probes), as the test data is often easier than the actual training data due to the hard selection of difficult images for training, leaving repetitive motifs for the probing. This reflects in some models (DINO base), which perform better on the probe than the actual training data. The second probe also represents an overall easier task, often achieving higher r@1 scores. It also often hits best performance in early epochs without significant training, showcasing strong backbone performance rather than actual training behavior. Crucially, the known-artist probe still requires real training to peak, while the unknown-artist-probe is model-dependent, improving for some backbones, staying flat or declining for others.11
The results of the training can be found in Tables 12, 13, 14 and the parameters are documented in Table 11. They were chosen based on model size and architecture, as well as experimentally going from lower learning rates to higher ones until the performance ceiling was hit. For some models, hyperparameter variants are included because they showcase behaviors such as the slight overfitting tendencies in SigLIP/EVA-02, which can be alleviated with lower learning rates. Additionally, we report the standard deviation over five additional training runs to account for variance due to the non-deterministic nature of this approach (Table 15).
Table 11
Finetuning a projection head: Training parameters per model. Additionally, the SigLIP-SO400M model was trained with one warm-up epoch for both runs.
| MODEL | DURATION | EPOCHS | LR | PAIRS | BATCH |
|---|---|---|---|---|---|
| DINOv2-giant | 55.6 | 20 | 3e-5 | 2000 | 32 |
| SigLIP-SO400M-patch14-384 I | 37.5 | 20 | 5e-5 | 1500 | 32 |
| SigLIP-SO400M-patch14-384 II | – | 20 | 2e-5 | 1500 | 32 |
| DINOv2-base I | 4.7 | 10 | 2e-5 | 1200 | 32 |
| DINOv2-base II | 3.4 | 20 | 2e-5 | 1500 | 32 |
| EVA02-CLIP-L-14-336 I | 22.7 | 20 | 5e-5 | 1500 | 32 |
| SigLIP-B-patch16-224 II | 4.2 | 20 | 7e-5 | 1500 | 32 |
| EVA02-CLIP-L-14-336 II | 44.3 | 20 | 2e-5 | 1500 | 32 |
| SigLIP-L-patch16-384 | 39.1 | 20 | 5e-5 | 1500 | 32 |
| SigLIP-B-patch16-224 I | 2.5 | 10 | 5e-5 | 1200 | 32 |
| CLIP-ViT-bigG-14-laion2B | 71.1 | 30 | 1e-4 | 1500 | 32 |
| CLIP-ViT-B-16-DataComp.XL | 4.3 | 30 | 1e-4 | 1500 | 32 |
| CLIP-ViT-L-14-DataComp | 9.8 | 30 | 5e-5 | 1500 | 32 |
Table 12
Finetuning a projection head: best checkpoint selected by training R@1.
| TRAINING | TEST PERFORMANCE | |||||||
|---|---|---|---|---|---|---|---|---|
| MODEL | ACC | R@1 | R@5 | R@10 | PROBE 1 | DIFF. | PROBE 2 | DIFF. |
| SigLIP-SO400M-patch14-384 I | 0.96 | 0.90 | 0.97 | 0.98 | 0.72 | 0.18 | 0.63 | 0.27 |
| EVA02-CLIP-L-14-336 I | 0.94 | 0.81 | 0.94 | 0.96 | 0.86 | –0.05 | 0.71 | 0.09 |
| SigLIP-B-patch16-224 II | 0.94 | 0.80 | 0.93 | 0.96 | 0.64 | 0.16 | 0.67 | 0.13 |
| SigLIP-L-patch16-384 | 0.91 | 0.80 | 0.93 | 0.96 | 0.62 | 0.18 | 0.72 | 0.08 |
| SigLIP-SO400M-patch14-384 II | 0.91 | 0.78 | 0.93 | 0.96 | 0.71 | 0.07 | 0.83 | –0.05 |
| DINOv2-giant | 0.90 | 0.78 | 0.92 | 0.95 | 0.74 | 0.03 | 0.77 | 0.01 |
| DINOv2-base II | 0.89 | 0.72 | 0.90 | 0.94 | 0.68 | 0.04 | 0.86 | –0.14 |
| EVA02-CLIP-L-14-336 | 0.89 | 0.69 | 0.88 | 0.93 | 0.62 | 0.07 | 0.67 | 0.02 |
| CLIP-ViT-bigG-14-laion2B | 0.86 | 0.64 | 0.89 | 0.94 | 0.40 | 0.23 | 0.75 | –0.12 |
| DINOv2-base I | 0.85 | 0.61 | 0.82 | 0.91 | 0.70 | –0.09 | 0.84 | –0.23 |
| SigLIP-B-patch16-224 I | 0.85 | 0.50 | 0.80 | 0.88 | 0.45 | 0.05 | 0.67 | –0.17 |
| CLIP-ViT-B-16-DataComp.XL | 0.72 | 0.29 | 0.64 | 0.77 | 0.34 | –0.05 | 0.72 | –0.43 |
| CLIP-ViT-L-14-DataComp | 0.60 | 0.14 | 0.40 | 0.59 | 0.13 | 0.01 | 0.54 | –0.41 |
Table 13
Finetuning a projection head: best checkpoint selected by probe 1 (known probe).
| TRAINING | TEST PERFORMANCE | |||||||
|---|---|---|---|---|---|---|---|---|
| MODEL | ACC | R@1 | R@5 | R@10 | PROBE 1 | DIFF. | PROBE 2 | DIFF. |
| EVA02-CLIP-L-14-336 I | 0.94 | 0.81 | 0.94 | 0.96 | 0.86 | –0.05 | 0.71 | 0.09 |
| DINOv2-giant | 0.90 | 0.77 | 0.90 | 0.93 | 0.79 | –0.02 | 0.63 | 0.13 |
| SigLIP-SO400M-patch14-384 II | 0.89 | 0.76 | 0.90 | 0.93 | 0.78 | –0.01 | 0.81 | –0.05 |
| DINOv2-base I | 0.84 | 0.60 | 0.82 | 0.90 | 0.74 | –0.14 | 0.86 | –0.26 |
| DINOv2-base II | 0.85 | 0.64 | 0.82 | 0.89 | 0.72 | –0.09 | 0.82 | –0.19 |
| SigLIP-SO400M-patch14-384 I | 0.96 | 0.90 | 0.97 | 0.98 | 0.72 | 0.18 | 0.63 | 0.27 |
| EVA02-CLIP-L-14-336 | 0.88 | 0.66 | 0.87 | 0.91 | 0.70 | –0.04 | 0.74 | –0.07 |
| SigLIP-B-patch16-224 II | 0.89 | 0.68 | 0.89 | 0.93 | 0.66 | 0.02 | 0.70 | –0.02 |
| SigLIP-L-patch16-384 | 0.92 | 0.78 | 0.92 | 0.96 | 0.64 | 0.14 | 0.75 | 0.03 |
| SigLIP-B-patch16-224 I | 0.82 | 0.47 | 0.76 | 0.85 | 0.60 | –0.12 | 0.61 | –0.14 |
| CLIP-ViT-bigG-14-laion2B | 0.86 | 0.64 | 0.89 | 0.94 | 0.40 | 0.23 | 0.75 | –0.12 |
| CLIP-ViT-B-16-DataComp.XL | 0.72 | 0.29 | 0.64 | 0.77 | 0.34 | –0.05 | 0.72 | –0.43 |
| CLIP-ViT-L-14-DataComp | 0.61 | 0.14 | 0.41 | 0.59 | 0.13 | 0.01 | 0.54 | –0.41 |
Table 14
Finetuning a projection head: best checkpoint selected by probe 2.
| TRAINING | TEST PERFORMANCE | |||||||
|---|---|---|---|---|---|---|---|---|
| MODEL | ACC | R@1 | R@5 | R@10 | PROBE 1 | DIFF. | PROBE 2 | DIFF. |
| DINOv2-base II | 0.89 | 0.72 | 0.90 | 0.94 | 0.68 | 0.04 | 0.86 | –0.14 |
| DINOv2-base I | 0.84 | 0.60 | 0.82 | 0.90 | 0.74 | –0.14 | 0.86 | –0.26 |
| SigLIP-SO400M-patch14-384 II | 0.91 | 0.78 | 0.93 | 0.96 | 0.71 | 0.07 | 0.83 | –0.05 |
| DINOv2-giant | 0.79 | 0.46 | 0.76 | 0.86 | 0.55 | –0.10 | 0.82 | –0.37 |
| SigLIP-L-patch16-384 | 0.76 | 0.42 | 0.72 | 0.82 | 0.32 | 0.11 | 0.81 | –0.38 |
| EVA02-CLIP-L-14-336 I | 0.92 | 0.77 | 0.92 | 0.95 | 0.82 | –0.05 | 0.80 | –0.03 |
| EVA02-CLIP-L-14-336 | 0.87 | 0.60 | 0.83 | 0.90 | 0.68 | –0.08 | 0.79 | –0.19 |
| CLIP-ViT-bigG-14-laion2B | 0.72 | 0.30 | 0.63 | 0.78 | 0.26 | 0.04 | 0.77 | –0.47 |
| SigLIP-B-patch16-224 I | 0.80 | 0.47 | 0.76 | 0.86 | 0.49 | –0.02 | 0.75 | –0.28 |
| CLIP-ViT-B-16-DataComp.XL | 0.69 | 0.26 | 0.60 | 0.74 | 0.32 | –0.06 | 0.74 | –0.48 |
| SigLIP-SO400M-patch14-384 I | 0.92 | 0.75 | 0.92 | 0.95 | 0.51 | 0.24 | 0.74 | 0.02 |
| SigLIP-B-patch16-224 II | 0.92 | 0.79 | 0.92 | 0.95 | 0.64 | 0.15 | 0.70 | 0.09 |
| CLIP-ViT-L-14-DataComp | 0.61 | 0.14 | 0.41 | 0.59 | 0.13 | 0.01 | 0.54 | –0.41 |
Table 15
Finetuning a projection head: Standard deviation across repeats for each model (hyperparameter-variants not included).
| MODEL | ACC | R@1 | R@5 | R@10 | PROBE 1 | PROBE 2 |
|---|---|---|---|---|---|---|
| SigLIP-SO400M-patch14-384 | 0.0062 | 0.0108 | 0.0025 | 0.0035 | 0.0269 | 0.0279 |
| DINOv2-giant | 0.0111 | 0.0131 | 0.0102 | 0.0094 | 0.0223 | 0.0518 |
| SigLIP-L-patch16-384 I | 0.0136 | 0.0120 | 0.0119 | 0.0079 | 0.0343 | 0.0258 |
| EVA02-CLIP-L-14-336 I | 0.0085 | 0.0070 | 0.0051 | 0.0057 | 0.0520 | 0.0390 |
| DINOv2-base II | 0.0104 | 0.0069 | 0.0014 | 0.0041 | 0.0233 | 0.0217 |
| SigLIP-B-patch16-224 | 0.0221 | 0.0105 | 0.0140 | 0.0115 | 0.0744 | 0.0194 |
| CLIP-ViT-bigG-14-laion2B | 0.0212 | 0.0302 | 0.0143 | 0.0183 | 0.0771 | 0.0992 |
| CLIP-ViT-B-16-DataComp.XL | 0.0267 | 0.0608 | 0.0563 | 0.0304 | 0.0736 | 0.0416 |
| CLIP-ViT-L-14-DataComp.XL | 0.0200 | 0.0095 | 0.0173 | 0.0129 | 0.0655 | 0.0491 |
Even though the CLIP models performed best in the previous tasks, they under perform in this setup. Due to their rigid pre-training, they do not adapt well to this smaller task. No meaningful learning behavior was exhibited for the DataComp-pretrained models and the evaluation metrics attest the raw backbone performance only. However, with LAION pre-training we exhibit slightly better results. This may be because DataComp enforces stricter text-image pairing, while LAION is more heterogeneous in content and quality. SigLIP and EVA, on the other hand, perform significantly better, though at higher learning rates both were prone to training instability (embedding collapse, where separation between artists degraded toward zero on both training and probe data), which we mitigated by lowering the learning rate. An interesting outcome can also be observed with the DINO-family: DINOv2-giant combines near-top test performance (R@1 = 0.76–0.78) with a small generalization gap to both probes (average of 0.02). We hypothesize that its self-supervised, monomodal pretraining makes it robust to visual phenomena beyond the training distribution. DINOv2-base offers a strong balance between computational cost, model size, and performance.
4.5 Object Detection and Image Segmentation
As a final case, we present an evaluation of an object detection task on the detection of trees in landscape painting. This includes two experiments: (1.) the generalization limits of large foundation models in comparison to expert performance and (2.) the relationship between image quality and segmentation performance. For this purpose, we use SAM 3, a recent state-of-the-art foundation model capable of Promptable Concept Segmentation (PCS), allowing for the usage of free search terms and phrases (Carion et al., 2026).12
To evaluate SAM 3, we constructed an expert-annotated corpus by manually annotating 200 landscape paintings. For each image, the annotator captured the count of individual trees and drew bounding boxes around each instance using the tool Label Studio on a local host. A key challenge in this specific annotation process is the practical limitation of the manual instance-level labeling at scale. In images containing densely packed trees, exhaustive annotation becomes infeasible quickly, especially as the boundaries of the single trees are not always clear in dense forested scenes. This could lead to tendencies of collapsing a group into a “forest” label or quitting annotation before all instances are captured. With this limitation in mind, the results contain 1035 annotator assigned boxes across 140 images, with the remaining annotated as containing no trees.
Then, we compared the object detections by SAM 3 against the expert annotations (Table 16). Three different evaluation metrics represent different levels of precision:
Detection Level: Number of paintings with detected trees
Count Based: Number of trees counted
IoU-Based: Exact tree annotations, counted by the overlap between domain expert and model bounding boxes. For this, we counted all trees with an overlap of ≥ 0.5 IoU as true positives.
Table 16
Evaluating object detection: Evaluation metrics and comparison between SAM 3 and expert annotation.
| GENERAL | |||||
|---|---|---|---|---|---|
| Images in subset | 200 | ||||
| Both agree: 0 trees | 54 | ||||
| Expert annotated trees | 1035 boxes/140 images | ||||
| SAM 03 predicted trees | 1236 boxes/134 images | ||||
| IOU-BASED | COUNT-BASED | DETECTION-LEVEL | |||
| METRIC | VALUE | METRIC | VALUE | METRIC | VALUE |
| TP @ IoU ≥ 0.5 | 688 | Precision | 0.697 | TP | 128 |
| Precision | 0.557 | Recall | 0.832 | FP | 6 |
| Recall | 0.665 | F1 score | 0.758 | FN | 12 |
| F1 score | 0.606 | Precision | 0.955 | ||
| Mean IoU (matched pairs) | 0.664 | Recall | 0.914 | ||
| Median IoU | 0.699 | F1 score | 0.934 | ||
The last metric is the most precise and difficult, resulting in a mean F1 score of 0.606 with a noticeably higher median of 0.69. When examining the distribution of per-image IoU scores, the majority of images score above 0.6, and the lower end of the distribution is driven by a small number of outliers that pull the mean down. The median therefore provides a more accurate reflection of typical model performance across the dataset.
While there is still room for a lift, we could identify systematic reasons for performance gaps (Figure 7). These include perspectives from within the forest and fallen tree trunks, which are not counted by the model. However, in some instances, the model annotated single trees in denser forests with more precision than the domain expert, revealing the gap to be two-sided. With this in mind, SAM 3 can still be used for tree detection in paintings, but the boundaries must be clearly stated as to what the researcher wants to obtain from the detection model.

Figure 7
Comparison of expert vs. SAM 3 bounding boxes on the worst performing paintings.
Next, we address image quality. Like in the classification task, reproductions in low/high contrast, sketches, heavy textures, etc., might affect the models performance. To investigate this, we applied the same set of image augmentations as described in section 4.2 and evaluated SAM 3’s tree detection output under each condition. The results (Tables 17, 18, 19) show some clear indications: augmentations that preserve the overall image structure, that is, light artifact, vignette, and grayscale, have minimal impact on detection performance, with IoU scores remaining above 0.88 relative to the original model. In contrast, strong grain, pencil sketch, and canny sketch, cause substantial drops in both detection count and IoU, with F1 scores falling as low as 0.094 for canny sketch. These findings underscore that style and image quality have direct consequences for computational analysis and that performance should ideally be evaluated across a range of visual conditions when working with cultural heritage image collections.
Table 17
Evaluating object detection: Distribution of detected trees across image augmentations.
| SOURCE | MEAN | MEDIAN | STD | MAX |
|---|---|---|---|---|
| Expert | 5.18 | 3.0 | 6.00 | 32 |
| Unaltered | 6.18 | 3.0 | 7.64 | 50 |
| Contrast | 3.56 | 2.0 | 4.95 | 40 |
| Grayscale | 5.64 | 3.0 | 7.11 | 47 |
| Strong blur | 2.52 | 1.0 | 3.70 | 22 |
| Strong grain | 1.60 | 0.0 | 2.42 | 19 |
| Weak grain | 2.85 | 1.0 | 3.76 | 21 |
| JPEG compression | 4.47 | 2.0 | 5.89 | 33 |
| Vignette | 5.90 | 3.0 | 7.21 | 50 |
| Frame | 5.35 | 2.0 | 6.82 | 43 |
| Light artifact | 6.06 | 3.0 | 7.47 | 47 |
| Pencil sketch | 1.44 | 0.0 | 2.65 | 17 |
| Canny sketch | 0.42 | 0.0 | 1.01 | 6 |
Table 18
Evaluating object detection: IoU performance under augmentations relative to the original model.
| AUGMENTATION | VS. ORIGINAL DETECTION | |||
|---|---|---|---|---|
| PREC. | REC. | F1 | IOU | |
| Unaltered | 1.000 | 1.000 | 1.000 | 1.000 |
| Contrast | 0.722 | 0.416 | 0.528 | 0.731 |
| Grayscale | 0.875 | 0.798 | 0.835 | 0.889 |
| Strong blur | 0.822 | 0.336 | 0.477 | 0.768 |
| Strong grain | 0.608 | 0.157 | 0.250 | 0.634 |
| Weak grain | 0.726 | 0.335 | 0.458 | 0.715 |
| JPEG compression | 0.676 | 0.489 | 0.567 | 0.692 |
| Vignette | 0.911 | 0.871 | 0.890 | 0.950 |
| Frame | 0.898 | 0.778 | 0.833 | 0.865 |
| Light artifact | 0.957 | 0.939 | 0.948 | 0.958 |
| Pencil sketch | 0.622 | 0.145 | 0.235 | 0.614 |
| Canny sketch | 0.747 | 0.050 | 0.094 | 0.722 |
Table 19
Evaluating object detection: Effect of augmentations on mean tree detections relative to original model.
| AUGMENTATION | MEAN (AUG) | MEAN (ORIG) | RATIO | DELTA | DEVIATION |
|---|---|---|---|---|---|
| Unaltered | 6.180 | 6.18 | 1.000 | 0.000 | 0.000 |
| Light artifact | 6.065 | 6.18 | 0.981 | –0.115 | 0.019 |
| Vignette | 5.905 | 6.18 | 0.956 | –0.275 | 0.044 |
| Grayscale | 5.635 | 6.18 | 0.912 | –0.545 | 0.088 |
| Frame | 5.350 | 6.18 | 0.866 | –0.830 | 0.134 |
| JPEG compression | 4.470 | 6.18 | 0.723 | –1.710 | 0.277 |
| Contrast | 3.560 | 6.18 | 0.576 | –2.620 | 0.424 |
| Weak grain | 2.850 | 6.18 | 0.461 | –3.330 | 0.539 |
| Strong blur | 2.525 | 6.18 | 0.409 | –3.655 | 0.591 |
| Strong grain | 1.595 | 6.18 | 0.258 | –4.585 | 0.742 |
| Pencil sketch | 1.440 | 6.18 | 0.233 | –4.740 | 0.767 |
| Canny sketch | 0.415 | 6.18 | 0.067 | –5.765 | 0.933 |
5 Discussion
In our introduction we posed the question “when does a machine learning model perform well?”. As our experiments show, there is no single answer to this question. Still, the datasets pose a challenge for benchmarking on different levels: WikiArt includes outdated categorizing systems and simplified labels for ambiguous phenomena and Wikidata is highly heterogeneous in the quality of the images. However, especially WikiArts labeling might underlie the models in their training data, which already implants a bias in the pre-training of the models. However outdated it is, it must be taken seriously, because it may be deeply ingrained.
Behind these efforts lies a more general problem, relating to the gap between computational and art historical definitions of “well performing”. Our tasks offer a wide variety of art historical challenges in the application of machine learning; however, they also showcase a strong formalistic tendency. Art historical research questions range from questions of style and form to iconographic questions of who and what is depicted, to conceptual questions, for example on gender representation. However, they also pertain to theoretical frameworks and to the context of a painting, which are rarely captured with out-of-the-box machine learning methods. Depending on the research question, art historians might be interested in different aspects of a single painting. Benjamin Zweig captures the problem in one sentence: “If art historians cannot agree on relevant features, how then would a computer?” (Zweig, 2024, 152). Whereas formalistic and motif-related features are easier to capture through image embeddings, concept, theory, and context remain in need of art historical re-contextualization and correlation with the features extracted by a machine learning model. Overcoming these formalistic tendencies remains a challenge for Digital Art History.
Our experiments showed the advantages and disadvantages of different models. The DINO models are well suited for representation probing – at least when it comes to naturalistic 19th century landscape painting – and Laion-CLIP performs exceptionally well on WikiArt. The image quality task allows for a guideline on dataset compilation, and evaluating the object detection model forces to reflect on the terms used to describe paintings and the limitations of certain motifs. While these experiments are contained to specific datasets – some representative for a large part of Western art history, others highly specialized – this indicates how small, specialized models might be just as useful as the all-rounders, both with their strengths and weaknesses. Thus, there is no final conclusion to this paper, and benchmarking remains a challenge depending on specific research questions and tasks. Our study serves as a framework, an example and a starting point to conduct more benchmarking beyond our examples. Benchmarking and specific research questions go hand in hand, sharing our experiences and results. This emphasizes the importance of sharing benchmarking even in highly specialized domains to get an evermore complete picture on the models abilities and limits – not from a statistical point of view, but for actual art historical research.
Notes
[5] Images a larger height or width than 2500 were filtered out, as the vast majority of the dataset had sizes below this threshold.
[10] For example, a third of Danish Golden Age paintings in the SMK (Hansen et al., 2025a).
Acknowledgements
Part of the computation for this project was performed on the UCloud interactive HPC system, which is managed by the eScience Center at the University of Southern Denmark.
Author Contributions
LBPH created the benchmarking pipeline for both original and augmented WikiArt/Wikidata benchmarking, MK designed and embedded the tasks in art historical research and conducted the projection head finetuning, RSE conducted the segmentation benchmarking; MK, RSE and LBPH wrote the manuscript, KB and KN reviewed the manuscript and acquired the funding.
