Provenance of AI-Generated Images: A Vector Similarity and Blockchain-based Approach

Jitendra Sharma 1 , Arthur Carvalho 2 , Suman Bhunia 1 · 2025

Read Provenance of AI-Generated Images: A Vector Similarity and Blockchain-based Approach by Jitendra Sharma 1 , Arthur Carvalho 2 , Suman Bhunia 1 (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2510-17854.txt.

Introduction

Jitendra Sharma, Arthur Carvalho, and Suman Bhunia ask how to tell whether an image was made by a person or by an AI system. Their approach turns images into numeric codes and compares how close the codes sit to each other. The hunch is that AI images cluster near other AI images, and human work clusters apart.

The team tests the idea with five coding models on a mixed set of images, paired with a blockchain record of origin. Readers get a working plan for checking image sources at a time when fake pictures are easy to make and hard to spot.

Catalog record

CREATORJitendra Sharma 1 , Arthur Carvalho 2 , Suman Bhunia 1
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE36 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2510-17854

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

Provenance of AI-Generated Images: A Vector Similarity and Blockchain-based Approach Jitendra Sharma 1 , Arthur Carvalho 2 , Suman Bhunia 1 Abstract Rapid advancement in generative AI and large language models (LLMs) has enabled the generation of highly realistic and contextually relevant digital content. LLMs such as ChatGPT with DALL-E integration and Stable Diffusion techniques can produce images that are often indistinguishable from those created by humans, which poses challenges for digital content authentication. Verifying the integrity and origin of digital data to ensure it remains unaltered and genuine is crucial to maintaining trust and legality in digital media. In this paper, we propose an embedding-based AI image detection framework that utilizes image embeddings and a vector similarity to distinguish AI-generated images from real (human-created) ones. Our methodology is built on the hypothesis that AI-generated images demonstrate closer embedding proximity to other AI-generated content, while human-created images cluster similarly within their domain. To validate this hypothesis, we developed a system that processes a diverse dataset of AI and human-generated images through five benchmark embedding models. Extensive experimentation demonstrates the robustness of our approach, and our results confirm that moderate to high perturbations minimally impact the embedding signatures, with perturbed images maintaining close similarity matches to their original versions. Our solution provides a generalizable framework for AI-generated image detection that balances accuracy with computational efficiency. I Introduction Generative AI and large language models (LLMs), such as ChatGPT [ 1 ] , have rapidly advanced, enabling the creation of human-like text and highly realistic images from simple prompts. Diffusion models like DALL-E, Imagen, Stable Diffusion, and Midjourney have transformed image generation, producing diverse outputs in seconds [ 2 , 3 ] . As these models grow more sophisticated, their outputs become increasingly difficult to distinguish from human-made content, creating new challenges for detecting AI-generated material. The proliferation of AI-generated content poses serious concerns across creative and informational domains, as these models can mimic human artistic styles [ 4 , 5 ] and potentially undermine the value of original works [ 6 ] . High-profile incidents have already sparked debate about AI’s role in art [ 7 ] and its potential to spread disinformation through convincingly fake imagery [ 8 ] . Although progress has been made in AI-generated image detection, most existing methods are tailored to specific models (e.g., GANs or diffusion models) and often fail to generalize across newer versions [ 9 , 10 ] . Recent studies also highlight the limitations of watermarking techniques, which remain vulnerable to evasion [ 11 ] , underscoring the need for more adaptable and robust detection approaches. Several recent studies have attempted to improve detection methods by exploring forensic traces, embedding-based classification, and hybrid strategies. Corvi et al. [ 12 ] analyzed synthetic image artifacts left by diffusion models and observed that detector performance varied widely across different generators, especially after common post-processing operations like compression and resizing. Ojha et al. [ 13 ] proposed using the CLIP-ViT embedding space for nearest-neighbor and linear classification, demonstrating improved accuracy on unseen diffusion models, although their method was less robust to heavy manipulations. Baraheem et al. [ 14 ] achieved 100% accuracy on a custom dataset using EfficientNetB4 and Class Activation Maps, but the method’s dependency on curated training data limits its generalizability. Martin et al. [ 15 ] combined forensic methods like PRNU and Error Level Analysis with CNNs, achieving strong precision but with limitations in image format support and adversarial robustness. These studies highlight the need for more generalizable and manipulation-resilient detection systems. Motivated by these limitations, our work introduces a detection system that avoids heavy model training and instead leverages robust image embeddings and vector similarity to identify synthetic content. To address these challenges, we present the EmbedAIDetect system—a lightweight, training-free detection mechanism that determines whether an image is AI-generated using embedding similarity. Our approach leverages a Vision Transformer-based embedding model in combination with a vector database to compare incoming images against a reference set. To enhance transparency and tamper-resistance, the system also integrates blockchain-based verification. The solution is deployed as a web application with a user-friendly interface. The main contributions of this research are: • Provides a resource-efficient, training-less AI image detection system that utilizes a similarity score to determine the authenticity of images. • Identifies and implements a suitable embedding technique that is generalizable and resistant to intentional manipulations and post-adversarial tampering attacks. • Integrate vector databases with embedding model and blockchain to maintain a tamper proof record of embeddings enhancing integrity of the detection system for real-time purposes. II System Design The paper presents the framework designed to integrate vector databases with the embedding model and a user-friendly interface. The framework implements a step-by-step pipeline for analyzing whether an unseen (uploaded) image might be AI-generated. Figure 1 illustrates the architecture design for the system. It provides a user interface to upload a photo and check the results. The results are based on the embedding vectors that are stored in the vector database. A detailed walk-through of each component and its interaction is described in the following. Fig. 1 : System architecture for EmbedAIDetect II-A System Components II-A 1 Embedding Model The system uses a Vision Transformer (ViT) model from the DINOv2 framework [ 16 ] , implemented using Hugging Face’s transformers library. A custom embedding function is built using AutoModel and AutoProcessor , which preprocesses input images into tensors for the model to interpret. The model runs on a GPU and outputs patch-level hidden states, which are averaged to produce a single high-dimensional vector embedding. This embedding is moved to CPU memory, converted into a NumPy array, and flattened into a Python list to ensure compatibility with the vector databases for similarity search and storage. II-A 2 Vector Database We use ChromaDB [ 17 ] , an open-source vector database optimized for similarity search in high-dimensional spaces. The system initializes it using PersistentClient , with collections configured for AI-generated and human-generated image embeddings. Each collection is linked to a custom embedding function based on the DINOv2 model and uses cosine distance as the similarity metric. When a user uploads an image, its embedding is computed and used to query the database for the top- k closest matches. ChromaDB handles both embedding storage and retrieval, while a backend script processes the results and displays them to the user via the Streamlit interface. II-A 3 Blockchain Setup Blockchain provides a decentralized and tamper-resistant way to store data, particularly useful for verifiable systems [ 18 ] . In this project, the Ethereum network was selected for its mature ecosystem and support for smart contracts. Two Solidity-based contracts— HashStorageAI and HashStorageHuman —were developed with identical logic, each exposing functions to store and verify 256-bit hashes of image embeddings. These contracts were tested using Hardhat and deployed to the Sepolia testnet, selected for its Proof-of-Stake consensus and compatibility with Ethereum’s mainnet. Backend integration is managed through a custom Python wrapper using the Web3.py library, which enables interaction with the contracts and provides application-level methods like store_hash() and check_hash_exists() . MetaMask handles secure transaction signing and private key management during blockchain operations. II-A 4 Web Application The web application serves as the user-facing layer that integrates

Read the complete text