Introduction
Data scientists frequently encounter "data lakes"—vast repositories containing thousands of tables from disparate sources. These datasets often lack curation, exhibiting significant representational heterogeneity (e.g., inconsistent column naming like "Studio" vs. "Production Company") and sparse metadata. Existing tools excel at finding specific datasets but struggle to provide a holistic "conceptual schema" that defines the entities, attributes, and relationships within the entire repository.
The SI-LLM Framework
To address these challenges, the authors introduce SI-LLM (Schema Inference using Large Language Models), a three-step framework designed to automatically organize minimally curated data repositories into a coherent conceptual map.
The framework operates through three primary stages:
- Type Hierarchy Inference (S1): Instead of isolated table classification, SI-LLM prompts an LLM to generate a full hierarchical path from a generic root (e.g., Thing) to a specific leaf type (e.g., Movie). These paths are merged into a global tree, with an "LLM-as-a-judge" component pruning incorrect taxonomic relationships.
- Attribute Inference (S2): The system identifies canonical attributes by grouping associated columns across different tables. For instance, "Studio" and "Production Co" are resolved to a single "Production Company" attribute. Attributes common to most sub-types are "promoted" to parent types in the hierarchy.
- Relationship Discovery (S3): SI-LLM discovers links between types by analyzing column values. If values in a "Director" column for a Movie table correspond to instances in a Person table, the system infers a "directedBy" relationship.
Datasets and Evaluation
SI-LLM was evaluated on two challenging benchmarks annotated with Schema.org ground truth:
- Web Data Commons (WDC): 602 tables extracted from the web.
- Google Dataset Search (GDS): 660 tables from open government and research data. These datasets reflect real-world "messy" data characterized by inconsistent naming and a long tail of rare attributes.
Key Insights: The Power of Prompting
A core finding of the research is that the structure of LLM prompts significantly impacts schema consistency. The authors utilized specific constraints to guide the model toward more accurate and unified outputs.
Key takeaways include:
- Global Reasoning: Generating entire hierarchical paths in one pass leverages the LLM's internal conceptual knowledge more effectively than step-by-step local reasoning.
- Constraint Engineering: Adding simple rules—such as avoiding overly abstract types or ensuring convergence on second-level categories—dramatically improved consistency.
- Value-Based Discovery: Unlike traditional embedding-based methods, SI-LLM's focus on actual data samples allows it to recognize that a column contains entity references rather than just generic strings.
Results
SI-LLM demonstrated substantial improvements over state-of-the-art baselines like GeTT and EmTT:
- High Purity: Achieved approximately 97% purity in type inference.
- Clustering Accuracy: Showed a 7–10% improvement in the Rand Index for hierarchical accuracy.
- Relationship Discovery: Outperformed heuristic baselines by 30–40% in F1-score, marking a significant breakthrough in discovering inter-type relationships.
Limitations and Future Work
While highly effective, SI-LLM faces challenges with aggressive over-generalization of attributes and occasional struggles with semantic granularity (e.g., classifying a Band as a Person vs. Organization). Future research will focus on refining type naming conventions and improving scalability for extremely large, diverse attribute sets.
Summary updated