Integrating tabular data from disparate sources is often a manual nightmare due to inconsistent formatting and missing schema information. This research introduces a suite of tools—BareTQL for exploratory table search and CST/DTT for automated data transformation—that leverage both algebraic operators and Large Language Models (LLMs) to bridge the gap between messy datasets.
The Challenge of Unstructured Tables
Data scientists and analysts often face significant hurdles when trying to merge datasets, such as city property tax records and private corporate stock valuations. These roadblocks generally fall into three categories:
- Discovery: Finding the correct table among tens of thousands without knowing the schema or table names.
- Syntactic Mismatches: Inconsistent formatting (e.g., different address formats) that causes standard "equi-joins" to fail.
- Semantic Gaps: Different identifiers for the same entity (e.g., "Apple Inc." vs. "AAPL") which traditional string matching cannot resolve.
The proposed methods tackle these challenges by enabling discovery and transformation without requiring a predefined master schema.
Methods for Discovery and Transformation
BareTQL: Exploratory Search
BareTQL (Bare Table Query Language) is an interactive framework that treats collections of tables as searchable objects. It employs a set of algebraic operators—including keyword search, table expansion, and "fill" operations—allowing users to explore data iteratively even with minimal knowledge of the underlying structure.
CST: Syntactic Alignment
For syntactic issues, the Common String-based Transformer (CST) searches for sequences of string operations (e.g., split, substring) to align formats. CST optimizes this search by focusing exclusively on text sequences observed in the source and target tables, achieving significant speedups over traditional brute-force methods.
DTT: Semantic Bridging
To handle semantic gaps, the Deep Tabular Transformer (DTT) utilizes a latent space approach. By employing an LLM-based framework, DTT learns complex, non-linear mappings (such as company names to stock symbols). It includes "decomposer" and "aggregator" modules to manage large tables that exceed standard LLM context windows.
Key Insights and Results
The research highlights several critical advancements in data integration:
- Exploratory Search over Schema-First: BareTQL allows users to "build up" a view through iterative operations rather than requiring a master schema upfront.
- Constrained Search Spaces: CST's efficiency stems from pruning the search space to common substrings, improving running time by several orders of magnitude compared to competitors like Auto-join.
- LLMs as Semantic Bridges: DTT demonstrates that LLMs can effectively learn semantic mappings when trained on large-scale synthetic datasets.
- Scalability and Accuracy: BareTQL successfully navigates collections of tens of thousands of tables, while DTT delivers outstanding performance on both real-world and synthetic datasets.
Conclusion and Future Work
While these tools provide powerful solutions, a fundamental tension remains between interpretability and power. String-based transformations (CST) are transparent but limited, while LLM-based transformations (DTT) are highly capable but operate as "black boxes." Future work aims to make LLM-based mapping functions more human-readable and to address the ongoing challenge of maintaining data accuracy as source tables evolve.
Summary updated