Diffusion Based Augmentation for Captioning and Retrieval in Cultural Heritage

Dario Cioni, Lorenzo Berlincioni, Federico Becattini, Alberto Del Bimbo

Abstract

Deep learning models for cultural heritage face significant challenges due to data scarcity and the domain shift between natural images and fine art. This paper explores a novel semantic-level data augmentation strategy using Latent Diffusion Models (LDM) to generate style-consistent variations of artworks. By training captioning and retrieval models on a mix of original and synthetic images, the authors demonstrate significant performance gains on the Artpedia and ArtCap benchmarks. The approach effectively bridges the gap between general-purpose vision models and the specialized requirements of art historical analysis.

Introduction

The application of computer vision to cultural heritage is hindered by a persistent "small data" problem. Unlike general datasets such as COCO, fine art collections are limited in size, and the associated metadata often consists of complex, jargon-heavy descriptions provided by experts. Standard pre-trained models, optimized for natural photography, frequently struggle with the stylized, abstract, or symbolic nature of paintings.

Furthermore, traditional data augmentation techniques—such as rotation, cropping, or color jittering—often fail in this domain. In art history, specific visual choices (e.g., the specific placement of a figure or the exact hue of a garment) carry essential semantic meaning. Randomizing these features via standard augmentation can introduce noise that confuses the model rather than helping it generalize.

Methodology: Semantic-Level Augmentation

To address these limitations, the authors propose a pipeline utilizing Latent Diffusion Models (specifically Stable Diffusion v1.4 and v1.5) to create "semantic variations." Unlike pixel-level perturbations, this method uses an Image & Text → Image configuration. By providing the original artwork along with its expert textual description as input, the diffusion model generates new visual interpretations that maintain the original style and core content while introducing beneficial visual variety.

During the training of downstream models (such as GIT and BLIP), the researchers implemented a balanced sampling strategy. For every training step, there is a 50% probability that the model sees the original "real" image and a 50% probability it sees one of the synthetic variations. This ensures the model learns from the diversity of the synthetic data without losing touch with the ground-truth historical artifacts.

Datasets and Experimental Setup

The methodology was evaluated on two primary benchmarks in the cultural heritage domain:

  • Artpedia: Consists of 2,930 paintings. It is notable for distinguishing between "visual" sentences (describing physical elements) and "contextual" sentences (providing historical facts).
  • ArtCap: A dataset of 3,606 paintings, each paired with five shorter, more direct captions.

Key Insights

  • Semantic Preservation: Diffusion-based augmentation is "smart." It understands that if a caption mentions a "muslin dress," the generated variations should retain that specific garment type, even if the folds of the fabric are rendered differently.
  • Grounding Technical Jargon: By exposing the AI to multiple visual interpretations of the same complex description, the model learns to better "ground" technical terms (e.g., "chiaroscuro") to visual features.
  • Failure of Standard Augmentations: The researchers found that traditional techniques like AutoAugment or RandAugment actually decreased performance in some art tasks, suggesting that for fine art, semantic-level variety is more valuable than pixel-level noise.
  • Style Consistency: CLIP-based analysis confirmed that the synthetic images maintained high cosine similarity to the original images and captions, ensuring the diffusion model did not "hallucinate" irrelevant content.

Results

The authors observed consistent improvements across image captioning and cross-modal retrieval tasks:

Image Captioning

Using the GIT model, the CIDEr score (a measure of caption quality) on Artpedia improved from 0.0505 (no augmentation) to 0.0673 with diffusion augmentation. On the ArtCap dataset, performance rose from 0.6263 to 0.6445.

Cross-Modal Retrieval

In image-to-text retrieval tasks on Artpedia, the Recall@1 improved from 0.1048 to 0.1108, outperforming previous state-of-the-art methods.

Qualitative Improvements

Models trained with this method produced richer, more specific descriptions. For example, instead of generating generic labels like "a painting of a scene," the augmented models were able to identify specific iconographic figures, such as "the Virgin Mary and Saint Mary in the foreground."

Conclusion and Future Work

While diffusion-based augmentation significantly improves model performance, the Artpedia dataset remains a challenge due to its long, academic descriptions. Future work may involve fine-tuning diffusion models specifically on art history datasets to ensure higher fidelity to specific historical periods. Additionally, the authors suggest exploring this pipeline for other tasks, such as Visual Question Answering (VQA) in the cultural heritage sector.

Summary updated

BibTeX
@inproceedings{cioni2023diffusion,
  author = {Dario Cioni and Lorenzo Berlincioni and Federico Becattini and Alberto Del Bimbo},
  title = {{Diffusion Based Augmentation for Captioning and Retrieval in Cultural Heritage}},
  booktitle = {Workshops @ ICCV},
  year = {2023},
  doi = {10.1109/iccvw60793.2023.00186},
}
Figure