Abstract
Finding unionable tables in large-scale data lakes is a critical task for data integration. However, existing benchmarks often lack the semantic complexity required to challenge modern search algorithms, particularly failing to include "hard negatives"—tables that share a topic but are semantically incompatible. We present ALT-Gen, a framework that leverages Large Language Models (LLMs) to automatically generate high-quality, semantic benchmarks. Using this framework, we created UGEN-V1, a new benchmark that reveals a significant performance gap in state-of-the-art methods, which see precision drops of approximately 30% when faced with semantically nuanced data.
Introduction: The Challenge of Semantic Unionability
In the context of data lakes, "table union search" involves identifying tables that can be combined vertically. This task goes beyond simple schema matching; it requires deep semantic understanding. For instance, while tables for "US Cities by Population" and "European Cities by Elevation" both describe cities, unioning them results in a semantically incoherent dataset.
Traditionally, researchers evaluated search algorithms using hand-curated benchmarks. These are labor-intensive to build and often "too easy." Because they are usually created by "slicing and dicing" a few large seed tables, the non-unionable examples are often from completely different topics (e.g., a table about "Fish" vs. a table about "Stocks"), making them trivial for algorithms to distinguish. There is a critical need for benchmarks containing "hard negatives": tables that appear similar on the surface but are fundamentally incompatible for unioning.
Methods: The ALT-Gen Framework
To address the scalability and quality issues of manual curation, we developed ALT-Gen (Automated LLM Table Generator). This framework uses LLMs (specifically GPT-3) to synthesize tables based on user-defined parameters.
The ALT-Gen process follows four primary stages:
- Property Definition: Users specify metadata such as the topic (e.g., Astronautics), table shape (rows and columns), and textuality (degree of natural language).
- Prompt Generation: The system constructs a prompt instructing the LLM to generate a pair of tables. These tables are explicitly requested to be either unionable or non-unionable while remaining within the same topic.
- LLM Generation and Parsing: The LLM generates the table-pair text, which is then parsed into structured CSV files.
- Benchmark Storage and Sparsity Control: The generated tables are stored in a query folder and a data lake folder. A post-processing script can introduce null values to simulate real-world data sparsity.
Additionally, we propose Starmie-LLM, a hybrid search method. It uses a traditional search algorithm to retrieve candidate tables and then employs an LLM (such as Vicuna or GPT-3) as a high-precision classifier to perform the final re-ranking.
The UGEN-V1 Benchmark
Using ALT-Gen, we produced UGEN-V1, a benchmark consisting of 1,050 tables across 50 diverse topics, ranging from World Geography to Veterinary Medicine. The dataset includes 1,000 labeled pairs, balanced between 500 unionable and 500 non-unionable pairs. Crucially, the non-unionable pairs are designed as "hard negatives"—they share the same topic as the query table but possess different attributes or entities, providing a rigorous test for semantic understanding.
Key Insights: Topic vs. Semantics
Our evaluation revealed that current state-of-the-art (SOTA) methods often conflate "same topic" with "unionable." When tested on UGEN-V1, the performance of top-tier models plummeted. This suggests that existing models rely heavily on keyword overlap or broad domain similarity rather than true semantic compatibility.
Generative AI serves as a powerful tool for creating these "hard" teaching materials. By systematically varying table properties, researchers can perform "semantic ablation studies" to pinpoint exactly where current algorithms fail. We also observed that while LLMs are excellent at in-context learning, their performance can be sensitive; "one-shot" learning often provides a significant boost, whereas "three-shot" learning can lead to overfitting.
Results and Performance Analysis
The performance gap between traditional benchmarks and UGEN-V1 is stark. The current leading method, Starmie, achieves a Mean Average Precision (MAP) of approximately 95% on traditional benchmarks. However, on UGEN-V1, its MAP falls to roughly 61%.
As shown in the precision and recall curves, while Starmie remains a strong performer, the introduction of hard negatives significantly challenges its precision as $k$ increases. The hybrid "Search + LLM Re-ranker" approach (e.g., Starmie-Vicuna) demonstrates a viable path forward, offering higher precision than pure search methods, although it faces trade-offs in terms of computational cost and latency.
Furthermore, our tests on data sparsity showed that context-aware methods like Starmie are more resilient to missing values than column-based methods like D3L, which experienced a 15% performance drop as sparsity increased.
Conclusion and Future Work
ALT-Gen demonstrates that LLMs can effectively automate the creation of complex, high-quality benchmarks for data management. By exposing the weaknesses of current SOTA methods through UGEN-V1, we highlight the need for deeper semantic integration in table search. Future work will focus on extending ALT-Gen to other tasks such as entity matching and joinability search, with the ultimate goal of developing end-to-end, LLM-powered data discovery engines.
Summary updated