TL;DR
Building and maintaining large-scale Knowledge Graphs (KGs) for AI is currently a difficult and often unreproducible process. This paper introduces OPTIMUS, a new platform designed to streamline KG construction with a focus on scalability, reproducibility, and machine learning readiness. OPTIMUS significantly speeds up KG building and improves efficiency, paving the way for more robust graph AI applications.
What Problem Does This Paper Address?
Modern AI, especially in areas like retrieval-augmented generation and large language models, increasingly relies on Knowledge Graphs (KGs) to provide structured, factual information. However, the process of creating and managing these KGs is plagued by several issues:
- Reproducibility Crisis: Existing pipelines are often custom-built, making it hard for others to replicate results or for the original creators to maintain them over time. Studies show a startlingly low percentage of KG construction pipelines are publicly available and executable.
- Scalability Challenges: Integrating data from numerous, heterogeneous sources (different formats, semantics, licenses) into a single, coherent KG is a massive undertaking that struggles to scale.
- Maintenance Headaches: KGs need to evolve as identifiers, ontologies, and data sources change, but current methods make updates difficult and error-prone.
- Lack of Standardized Tools: The ecosystem for KG development lacks the robust tooling found in traditional software engineering (e.g., version control, standardized formats, collaboration platforms).
This paper aims to fill this gap by providing a principled, software-engineering-driven solution for building large-scale KGs.
Methods
OPTIMUS tackles these challenges by adopting a structured, opinionated approach:
- Data Lake Medallion Architecture: Inspired by data lake design, OPTIMUS uses a multi-layered approach (LANDING, BRONZE, SILVER, GOLD) to progressively refine data.
- LANDING: Raw data is initially stored.
- BRONZE: Data is ingested in its original format, with minimal cleaning.
- SILVER: Data is validated, normalized, and transformed into a consistent intermediate representation, including identifier harmonization and schema alignment.
- GOLD: The final, integrated KG is materialized, ready for analysis.
- Kedro Workflow Engine: This engine orchestrates the entire KG construction process, enabling parallel processing of data sources and caching of intermediate results for efficiency.
- Schema Contracts and Identifier Harmonization: OPTIMUS enforces strict schema definitions and ensures that different identifiers referring to the same entity are unified, crucial for data consistency.
- Modular Design with Providers and Hooks: The platform is designed to be extensible, allowing new data sources and processing modules to be easily incorporated without extensive code changes.
- Reproducibility and Provenance Tracking: Every step in the KG construction is deterministic and versioned, with detailed provenance tracking to ensure auditability and replication.
- Machine Learning Readiness: The output KGs are designed to be directly usable by popular graph AI libraries.
Datasets
The paper demonstrates OPTIMUS by constructing a biomedical KG called OPTIMUSKG. This KG was built from 47 heterogeneous biomedical datasets. The paper provides a detailed list of these sources, which include a wide range of resources such as:
- Anatomical Therapeutic Chemical Classification System (ATC)
- Gene Ontology (GO)
- Human Phenotype Ontology (HPO)
- Kyoto Encyclopedia of Genes and Genomes (KEGG)
- Medical Subject Headings (MeSH)
- DrugBank
- PubMed Central (PMC)
- Wikipedia
The paper does not introduce new datasets but rather showcases the platform's ability to integrate existing ones.
Key Insights and Ideas
- The "Data Lake" for KGs: Applying a medallion architecture, common in data lakes, to KG construction provides a robust framework for managing data quality and evolution.
- Orchestration is Key: Simply having extraction tools isn't enough; a well-orchestrated pipeline that handles data integration, harmonization, and quality control is essential for scalable KG building.
- Reproducibility as a First-Class Citizen: By design, OPTIMUS prioritizes deterministic steps, versioning, and provenance, directly addressing the reproducibility crisis in KG construction.
- Parallelism Delivers Significant Speedups: Leveraging multi-core processors through parallelization dramatically reduces the time required to build large KGs.
- Scalability Pays Off: As the KG grows, the efficiency per edge tends to increase, indicating that the platform scales well with larger datasets.
Key Results
- Biomedical KG Construction: OPTIMUS successfully constructed OPTIMUSKG, a biomedical KG with 192,307 nodes, 21.5 million edges, and 88.6 million properties.
- Execution Time Reduction: Parallelized execution reduced the wall clock build time by 56.5% compared to sequential execution (from 143.6 seconds to 62.4 seconds).
- Improved Throughput: Throughput per edge improved as the graph scaled, demonstrating the platform's scalability.
- Extensibility: The modular design allows for easy integration of new data sources and processing steps.
Limitations and Future Work
- Data Quality Dependency: The quality of the generated KG is inherently dependent on the quality of the upstream data sources. Errors, incompleteness, or licensing issues in source data will propagate.
- Versioning of Upstream Sources: OPTIMUS's versioning capabilities are limited by whether the upstream sources themselves provide versioned releases.
- Future Work: The authors envision OPTIMUS as a foundational tool for the next generation of graph AI systems, including retrieval-augmented generation, graph LLMs, and autonomous agents. Further work could focus on improving data quality and knowledge extraction algorithms.
Summary updated