TLDR: This research investigates the effectiveness of Large Language Models (LLMs) in automating the generation of DCAT-compatible metadata for data catalogs. The study evaluated various LLMs, including Llama, Gemini, and GPT-4o, using different prompting strategies and fine-tuning. Key findings indicate that LLMs can produce metadata comparable to human-created content, particularly for tasks requiring advanced semantic understanding. Larger models generally outperformed smaller ones, and fine-tuning significantly improved classification accuracy. The paper proposes a tiered approach for LLM deployment in data catalogs, balancing performance and cost, while emphasizing the continued need for human oversight and validation.
In today’s data-driven world, efficient data exploration is paramount for accelerating processes, improving forecasts, and developing new business models. However, the exponential growth, heterogeneity, and widespread distribution of data often lead to a significant challenge: data consumers can spend anywhere from 25% to 98% of their time simply searching for suitable data. This inefficiency can be costly, with estimates suggesting that data not complying with FAIR principles costs the European economy billions of Euros annually.
Data catalogs offer a powerful solution to this problem by facilitating the findability, accessibility, and organization of data through the use of metadata. Metadata, essentially ‘data about data,’ provides structured information that describes, explains, locates, or otherwise makes it easier to retrieve and manage information resources. High-quality metadata enhances productivity and compliance within organizations.
Despite the clear benefits, the creation and maintenance of metadata, especially in large quantities for data catalogs, is typically a manual, time-consuming process that demands specialized expertise. This dependency can lead to issues where data catalogs become ineffective ‘data swamps’ due to poor metadata quality. This challenge has driven a long-standing research interest in automating metadata generation.
Recent advancements in Large Language Models (LLMs), particularly those based on Transformer neural networks, have shown exceptional proficiency in natural language processing tasks. Building on these developments, a recent study investigated the effectiveness of autoregressive LLMs in generating descriptive, DCAT-compatible metadata from text-based documents with human-level quality. DCAT (Data Catalog Vocabulary) is the de facto standard schema for metadata management in data catalogs, encompassing properties such as title, description, creator, language, spatial, issued date, keywords, and themes.
The research tested several prominent decoder-only LLMs, including Llama 3.1 (8B & 70B), Llama 3.2 (3B), Google Gemini 1.5 (Flash & Pro), and OpenAI’s GPT-4o (Mini & regular). The methodology involved evaluating these models using both zero-shot (no examples provided) and few-shot (a few examples provided) prompting strategies across various DCAT properties. For classification tasks, specifically for the ‘dcat:theme’ property, a Gemini 1.5 Flash model was also fine-tuned to assess the impact of domain-specific training.
The findings revealed several key insights into LLM capabilities for metadata generation:
Performance Across Metadata Properties
For text generation tasks like creating titles and descriptions, Gemini models slightly outperformed Llama and GPT models. While all tested LLMs achieved strong lexical matching (ROUGE-1 scores), they faced challenges with structural coherence and nuanced phrasing typical of human-generated text. However, they demonstrated a strong ability to capture the conceptual essence of the content, as indicated by high cosine similarity scores. Few-shot prompting offered only marginal improvements for these tasks, with larger models showing slight benefits and smaller models sometimes degrading in performance.
In tasks involving information extraction, such as identifying creators, most models performed well, with larger models like GPT-4o achieving higher precision for exact matches. For language and spatial recognition, most models achieved near-perfect scores, suggesting these are less computationally demanding tasks. The smaller Llama 3.2 3B model, however, showed weaker performance in date detection (dcat:issued) in zero-shot mode, though it improved significantly with few-shot prompting.
When generating keywords, the smallest model, Llama 3.2 3B, surprisingly performed exceptionally well on initial F1@5 scores for some datasets, even outperforming larger models. However, its accuracy declined significantly as task complexity increased, highlighting a limitation in sustaining performance. Larger models consistently outperformed smaller ones as tasks demanded more labels, maintaining better accuracy and benefiting more from few-shot prompting.
For classification tasks, specifically assigning themes, fine-tuned models proved superior in matching document content with appropriate labels. This is because fine-tuning adapts model parameters to specific domains, enabling them to recognize crucial textual patterns and contextual hints. If fine-tuning is not feasible, larger foundational models still assigned labels more accurately than smaller ones. Few-shot prompting significantly benefited smaller models when labels were few and distinct, and both smaller and larger models when labels were numerous and semantically similar.
Also Read:
- Automating Data and AI Workflows with the Data Agent Architecture
- AI Models Streamline Clinical Data Standardization with HL7 FHIR
Implications and Future Directions
The study suggests a tiered approach for utilizing LLMs in data catalogs. For basic information extraction, smaller, more cost-effective models can be sufficient. However, complex tasks requiring deep contextual understanding or specialized language benefit significantly from larger models. A proposed strategy involves leveraging each model family’s strengths: Gemini for coherent titles and abstracts, GPT for language identification, complex keyword generation, and classification, and smaller Llama models for straightforward information and feature extraction. This approach aims to optimize both performance and cost-effectiveness.
Despite the strong capabilities demonstrated by LLMs, human oversight remains crucial, particularly in sensitive or regulated domains. Organizations should implement hybrid workflows that combine AI efficiency with expert validation to ensure accuracy and compliance. While the risk of ‘hallucination’ is mitigated in structured metadata extraction tasks due to input constraints, prudent validation is still advisable.
The emergence of mobile-optimized models like Llama 3.2 3B also expands accessibility, enabling real-time metadata generation in resource-limited settings and supporting the development of local, private AI-driven data catalogs. The core recommendation is to maintain flexibility in implementation, regularly evaluating systems and staying informed about emerging models to optimize metadata management processes.
This research provides a foundational understanding for the data catalog community, offering practical strategies for effective LLM use in metadata generation. For more details, you can refer to the full research paper: Exploring LLM Capabilities in Extracting DCAT-Compatible Metadata for Data Cataloging.


