arXiv:2608.28671cs.CVAug 2026

Manuscript Offprint

arXiv:2608.28671

Measuring Similarity between Artistic and AI Generated Images using Siamese Neural Networks

Diego Castro Elvira, Navil Pineda Rugerio, Jesús García-Ramírez, Cecilia Reyes-Peña, Ricardo Ramos-Aguilar

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

AI-generated art has sparked debates around potential plagiarism, as these images may closely resemble existing artworks. This research quantifies the similarity between original pieces and AI-generated counterparts, particularly those produced by the Stable Diffusion XL Refiner 1.0. We use Siamese Networks with frozen CLIP encoders and cosine similarity optimized through triplet loss. A dataset of paired original and generated images was built using image-to-image generation and custom prompts, enriched with semantic descriptors and BLIP-2 captions. Prior studies report up to 81% style replication and 90% visual similarity. Our results show high discriminative performance: training accuracy reached 99.9%, and the best model configuration achieved 99.4% test accuracy with strong inter-class separation (δμ=0.677\delta\mu = 0.677), demonstrating the effectiveness of our semantic-visual embeddings.

1 Introduction

The use of Artificial Intelligence (AI) in artistic creation has grown significantly, raising concerns about the originality of AI-generated works and their potential resemblance to human-made art—particularly in digital media, where models such as Stable Diffusion Rombach et al. [2022] can produce highly realistic and stylized images. This study arises in the interest of improve the authentication processes of digital artworks, facilitating the detection of similarities between original images and those generated by AI. For this purpose, we have chosen an approach based on Siamese Convolutional Neural Networks, capable of comparing images based on semantic descriptors and measuring their similarity.

Recent advances in generative artificial intelligence, particularly in models such as Stable Diffusion, have raised concerns about copyright infringement due to their ability to replicate distinctive artistic styles. Studies show that these models can mimic the work of professional artists with up to 81% accuracy in style imitation and 90% visual similarity to original pieces Casper et al. [2023]. To address these challenges, tools such as ArtSavant Moayeri et al. [2024] and StyleAuditor Du et al. [2024] have been developed, integrating approaches based on CLIP, DeepMatch, and pretrained convolutional networks to detect stylistic imitation with accuracies above 89%. Other works highlight the legal risks of unintended copyright violations, reporting that nearly 70% of AI-generated content from generic prompts shows significant similarity with copyrighted materials Zhang et al. [2024].

Beyond these studies, research on Siamese Neural Networks (SNNs) demonstrates their effectiveness in visual comparison tasks relevant to copyright detection. SNN-based models have achieved up to 94% mean Average Precision in applications such as image retrieval, pattern recognition, and person re-identification across cameras Melekhov et al. [2017], Wiggers et al. [2019], Shen et al. [2017]. Their ability to generalize to unseen datasets and maintain robustness under noisy label-

Proceedings of the Latinx in AI Workshop @ NeurIPS-25.

ing makes them a strong candidate for evaluating stylistic similarity and potential infringements in AI-generated artworks.

In this context, to apply our proposed method we build different datasets using artistic images from WikiArt WikiArt and their AI-generated counterparts produced with Stable Diffusion XL Refiner 1.0. ¹. The first dataset that we create its named as Wikiart_with_StableDiffusion, includes 81,444 AI-generated images derived from original paintings using prompts created with BLIP2 Li et al. [2023] and LLaMA 3 8B Grattafori et al. [2024], and transformed using Stable Diffusion XL Refiner 1.0 Esser et al. [2024].

The second dataset, WikiArt-81K-BLIP_2-captions, consists of the original 81,444 WikiArt images enriched with genre labels, cleaned metadata, and image descriptions generated with BLIP2. The third dataset, WikiArt-81K-BLIP_2-1024x1024, contains the same set of images resized uniformly to 1024×1024 pixels using LANCZOS resampling. The fourth dataset, WikiArt-81K-BLIP_2-768x768, includes the same images resized to 768×768 pixels with padding to preserve aspect ratio. These datasets were developed to support research in AI-generated art analysis, image similarity, and style transfer.

A Siamese Neural Network with frozen CLIP encoders and triplet-based contrastive learning was proposed to analyze the semantic and visual similarity between original and generated artworks. The best model configuration achieved a triplet accuracy of 99.4%, with a marked separation between the similarity scores of matched and mismatched image pairs. Through this work, we seek to provide a tool for the assessment of originality in AI-generated art, supporting artists and the research community in the identification of possible similarities.

Given the scarcity of specialized models for generating and evaluating similarity across paintings of different artistic genres, this work introduces a new approach that combines image-to-image generation with similarity assessment using Siamese Convolutional Neural Networks.

To support this study, we compiled a dataset containing both original artworks and their AI-generated counterparts across multiple styles. Unlike previous studies Elgammal et al. [2017], this research covers a broader and more diverse range of artistic genres. The associated code is publicly available in a GitHub repository ².