Abstract
As the volume of scientific literature grows exponentially, the ability to discover and reuse research datasets depends heavily on high-quality metadata. Traditional rule-based extraction methods are often brittle and limited in scope. This paper introduces MOLE (Metadata Extraction and Validation), a schema-driven framework that leverages Large Language Models (LLMs) to automatically extract and validate over 30 distinct metadata attributes. By integrating web browsing and a multi-stage validation pipeline, MOLE significantly outperforms legacy systems and establishes a new multilingual benchmark for scientific metadata cataloging.
Introduction
We are currently witnessing a "scientific data revolution," characterized by the annual publication of hundreds of thousands of papers and their accompanying datasets. However, the utility of this data is often hamstrung by a lack of structured metadata—the "data about data" that enables discovery, reuse, and verification. Historically, extracting nuanced metadata, such as specific software licenses, dataset volumes, or intended NLP tasks, has been a manual and labor-intensive process.
Existing automated tools typically rely on hard-coded rules that struggle with the diverse formatting of scientific journals and are generally limited to extracting only 5–10 basic attributes. MOLE aims to bridge this gap by utilizing the reasoning capabilities of LLMs to handle the heterogeneity of scientific papers across multiple languages, providing a comprehensive metadata profile for every document.
The MOLE Framework
MOLE moves away from rigid, rule-based extraction toward a flexible, schema-driven pipeline. The framework is designed to handle the complexities of scientific publishing through four primary stages:
- Input Processing: The system supports both LaTeX source code and PDFs. For PDFs, the framework can utilize standard text extraction tools or leverage the vision capabilities of multimodal LLMs to parse document structure accurately.
- Schema-Driven Extraction: At the core of MOLE is a rigorous JSON schema. For each of the 30+ attributes, the schema defines a specific question, a list of valid categorical options, detailed descriptions, and expected data types. This forces the LLM to act as a structured data extractor rather than a free-form summarizer.
- Browsing Integration: Critical metadata, such as specific repository licenses or accessibility links, is often hosted on external platforms like GitHub or Hugging Face rather than within the paper's text. MOLE can trigger a web browser to fetch and verify this information from external sources.
- Validation Layer: To ensure machine-readability, MOLE employs a multi-stage validation process. This includes type validation (e.g., ensuring numerical fields contain numbers), option validation (mapping variations like "creative commons" to standardized tags like "CC-BY-4.0"), and automated JSON repair to fix common formatting errors.
The MOLE Benchmark
To evaluate the framework, the researchers introduced the MOLE Benchmark, a high-quality, manually annotated dataset consisting of 126 scientific papers. Unlike previous benchmarks that were largely restricted to English, MOLE covers a diverse linguistic range, including Arabic, English, French, Japanese, Russian, and multilingual datasets. The benchmark includes 7,518 individual annotations across 358 unique fields, offering a rigorous testbed for metadata extraction models.
Key Insights and Analysis
The development and testing of MOLE revealed several critical insights into the nature of scientific documents and LLM performance:
- The "Upper Paper" Advantage: LLMs can achieve highly competitive results by processing only the first quarter of a paper. Most essential metadata is concentrated in the abstract, introduction, and early methodology sections, allowing for significant token savings.
- The Necessity of Web Browsing: For "Accessibility" metadata, precision improved significantly when models were permitted to browse the web. This confirms that the complete context of a dataset often resides in external repositories rather than the PDF itself.
- LaTeX Efficiency: Processing LaTeX source code proved to be nearly 1,000 times faster and substantially cheaper than processing PDFs via structured parsing tools, while also maintaining higher extraction accuracy.
- Schema as Constraint: Utilizing a strict JSON schema with "validation groups" successfully constrained LLM outputs to specific formats, mitigating a common pain point in automated data extraction.
Results and Performance
The framework was evaluated using seven state-of-the-art models, including Gemini 1.5 Pro, GPT-4o, and Claude 3.5 Sonnet. Gemini 1.5 Pro emerged as the top performer, achieving an average F1 score of 75.23, likely due to its strength in handling long-context documents. Notably, MOLE successfully extracted 32 distinct attributes, a significant advancement over the 5–10 attributes typically handled by previous state-of-the-art systems like CERMINE or ParsCit. Furthermore, 3-shot learning (providing three synthetic examples) yielded the highest performance gains, helping models internalize the required structure without exceeding context limits.
Limitations and Future Directions
While MOLE represents a significant step forward, several challenges remain. The cost of processing thousands of tokens per paper using proprietary models is a barrier to scaling to millions of documents. The authors suggest "early skimming" with lighter, open-source models as a potential mitigation strategy. Additionally, extracting clean text from PDFs remains a "noisy" process, and LLMs still struggle with strict word-count constraints for descriptive fields. Future work will focus on improving PDF cleaning and optimizing the pipeline for large-scale, cost-effective deployment.
Summary updated