Abstract
Finding related tables in massive enterprise data lakes is a significant challenge when tables are purely numeric and lack reliable headers. Traditional methods often fail due to brittle heuristics and a lack of semantic context. This paper introduces NumSearchLLM, a novel pipeline that integrates the structured knowledge of Enterprise Knowledge Graphs (EKGs) with the reasoning capabilities of Large Language Models (LLMs). NumSearchLLM accurately labels numeric columns and discovers hidden relationships by using LLMs to verify numeric types and ensure schema coherence. Experimental results on a new DBpedia-based benchmark show that NumSearchLLM achieves a 40% recall for joinable tables, doubling the performance of EKG-only baselines.
Introduction
In large-scale enterprise environments, data lakes frequently transform into "data swamps" where a vast amount of information is stored in purely numeric tables. These tables often lack descriptive headers or contain misleading labels (e.g., "Tr0", "Col_1"). Existing data discovery tools primarily rely on textual values and struggle with numeric data, falling back on rigid semantic labeling techniques.
Tools like TTLA use statistical heuristics to guess column meanings, but these methods are often brittle. For example, a column representing hospital bed counts might be misclassified as a sequence of IDs simply because the values appear sequential according to a fixed formula, leading to poor performance in joinable table search.
Methodology
NumSearchLLM addresses these limitations through a three-stage pipeline that leverages LLMs as reasoning engines to validate and refine data discovery.
1. Numeric Typing
Instead of relying solely on arbitrary statistical rules (e.g., comparing unique values to the square root of total cardinality), NumSearchLLM uses an LLM to verify the numeric type. The system provides the LLM with a sample of the data and asks it to confirm if the distribution aligns with a specific type, such as categorical or sequential, providing a critical "sanity check" against traditional heuristics.
2. Semantic Labeling with Schema Coherence
The system utilizes an EKG to identify candidate labels based on statistical distributions. However, statistical similarity alone can lead to errors. NumSearchLLM prompts the LLM to evaluate the entire proposed schema of a table. By considering the context of all columns, the LLM can identify outliers—such as a "Politician's Votes" label appearing in a table otherwise related to transportation—and suggest more logical alternatives from the EKG.
3. Relatedness Search
Once columns are accurately labeled, the LLM determines if two tables are related. Beyond providing a similarity score, the LLM can articulate the specific relationship (e.g., linking movie sales to cast finances via a shared Movie entity), facilitating more effective joinable table discovery.
Evaluation and Results
To evaluate the system, the authors developed a benchmark consisting of 100 tables derived from DBpedia, including 50 joinable pairs and 20 non-joinable but semantically related pairs.
NumSearchLLM demonstrated significant improvements over the NumJoin baseline:
- Recall: Achieved 40% recall for joinable tables, a 100% improvement over the 20% recall of the EKG-only baseline.
- Numeric Typing Accuracy: Improved from 145/358 columns using heuristics to 195/358 with LLM enhancement.
- Semantic Labeling Accuracy: Increased from 126/358 (TTLA) to 181/358.
Comparative analysis showed that GPT-3.5-turbo significantly outperformed Llama 2, which struggled with hallucinations and required more extensive prompting for tabular reasoning tasks.
Conclusion and Future Work
NumSearchLLM bridges the gap between raw numeric data and semantic meaning by using LLMs as semantic refiners. While the system shows promise, challenges remain regarding LLM hallucinations and performance on niche semantic labels. Future work will focus on prompt tuning, scaling the system for larger data lakes, and exploring more complex relationships within Knowledge Graphs to further improve discovery accuracy.
Summary updated