ArtRAG: Retrieval-Augmented Generation with Structured Context for Visual Art Understanding

Shuai Wang, Ivona Najdenkoska, Hongyi Zhu, Stevan Rudinac, Monika Kackovic, Nachoem Wijnberg, Marcel Worring

Multimodal Large Language Models (MLLMs) have demonstrated impressive capabilities in general image description. However, when applied to the domain of visual art, these models often struggle to move beyond literal object recognition toward deeper, "human-like" interpretation. At ACM Multimedia (MM ’25), researchers introduced ArtRAG, a training-free framework designed to bridge this gap by integrating structured historical and cultural context into the generation process.

The Challenge: From Pixels to Contextual Inference

While state-of-the-art MLLMs like GPT-4o can identify a "man in a red shirt" or a "distorted skull" in a painting, they frequently fail to explain the underlying significance of these elements. Visual art understanding requires "contextual inference" rooted in history, culture, and artistic movements. For instance, interpreting Hans Holbein’s The Ambassadors necessitates knowledge of the Protestant Reformation and the "Memento Mori" theme—information not directly present in the raw pixels.

Figure 3: Comparison between non-contextual image captioning and multi-perspective artwork explanations grounded in a knowledge graph.

Existing solutions typically rely on expensive fine-tuning on domain-specific datasets or "flat" Retrieval-Augmented Generation (RAG). Fine-tuning is computationally intensive and data-hungry, while flat RAG often retrieves unstructured text chunks that can be noisy or irrelevant to the specific visual nuances of a painting.

Methodology: The ArtRAG Framework

ArtRAG addresses these limitations through a three-stage, training-free pipeline that leverages a structured Art Context Knowledge Graph (ACKG).

1. ACKG Construction

The researchers automatically constructed the ACKG by mining Wikipedia for art-related entities—including artists, movements, themes, and historical events—and their interrelationships (e.g., "influenced by," "emerged during"). The resulting graph serves as a comprehensive external knowledge base containing approximately 56,000 nodes and 62,000 edges.

2. Multi-granularity Structured Retriever

The core innovation of ArtRAG is its retrieval mechanism, which navigates the ACKG to find the most relevant context for a given artwork. This process involves two steps:

  • Coarse-grained Search: A Vision-Language Model (VLM) generates "semantic cues"—textual concepts like "Agricultural life" or "Peasant workers"—from the image. These cues, combined with basic metadata (title, artist), are used to retrieve an initial set of relevant nodes from the ACKG via embedding similarity.
  • Fine-grained Multimodal Pruning: An MLLM ranks these nodes based on their specific relevance to the painting. This relevance score is combined with a "topology score" (graph centrality) to select a highly relevant, structured subgraph.
Figure 5: The ArtRAG pipeline, showing the multi-granularity structured context retriever and the augmented generation process.

3. Augmented Generation

The retrieved structured subgraph is converted into a textual prompt. The final MLLM (e.g., Qwen2-VL or GPT-4o-mini) uses this "structured context" to generate a nuanced, multi-perspective explanation that grounds visual elements in historical and cultural facts.

Evaluation and Key Results

The framework was evaluated on two major benchmarks: SemArt (European fine art with multi-perspective annotations) and Artpedia (paintings with visual and contextual descriptions).

ArtRAG achieved state-of-the-art performance without any task-specific training. On the Artpedia dataset, ArtRAG (using Qwen2-VL) achieved a BLEU-1 score of 40.2, significantly outperforming the previous best-trained model, KALE (32.6). It also showed marked improvements in METEOR and SPICE metrics.

Human evaluation further validated these results. In a blind test with art experts, ArtRAG’s explanations were ranked as the "best" in 51.9% of cases, compared to 28.3% for vanilla GPT-4o and 19.8% for the fine-tuned KALE model. Ablation studies confirmed that both the structured nature of the knowledge graph and the multi-granularity retrieval process are critical to this performance.

Conclusion and Future Directions

ArtRAG demonstrates that a structured knowledge graph is superior to flat text databases for RAG in specialized domains like art history. By using a VLM to bridge the "pixel-to-concept" gap and incorporating graph topology, the system provides grounded, expert-level interpretations.

While ArtRAG marks a significant step forward, the authors note that art interpretation remains inherently subjective. Future work may involve integrating more specialized, expert-curated databases beyond Wikipedia and incorporating human expert perspectives directly into the evaluation loop to better capture the "soul" of artistic interpretation.

Summary updated

BibTeX
@inproceedings{wang2025artrag,
  author = {Shuai Wang and Ivona Najdenkoska and Hongyi Zhu and Stevan Rudinac and Monika Kackovic and Nachoem Wijnberg and Marcel Worring},
  title = {{ArtRAG: Retrieval-Augmented Generation with Structured Context for Visual Art Understanding}},
  booktitle = {ACM Multimedia},
  year = {2025},
  doi = {10.1145/3746027.3755673},
}
Figure