TL;DR
GenTUS reformulates Table Union Search (TUS) from a traditional multi-stage "encode-search-refine" pipeline into a single generative task. By assigning tables unique, unionability-aware discrete identifiers and using a prefix-tree-constrained T5 generator, it directly generates the IDs of compatible tables. This approach achieves state-of-the-art retrieval quality while delivering over 12x faster online latency and a 13x reduction in index storage.
What Problem Does This Paper Address?
Data lakes contain massive collections of heterogeneous tables from various sources. To perform comprehensive downstream analytics, users often need to find tables that can be unioned with a query table to expand row coverage. This task is known as Table Union Search (TUS).
Unlike simple keyword search, TUS requires deep semantic understanding because unionable tables might use completely different column names or metadata (e.g., "Metro area" vs "Municipality"). Existing methods rely on an "encode-search-refine" pipeline: they embed tables/columns, perform an Approximate Nearest Neighbor (ANN) search to get a candidate pool, and then run a heavy reranking model. This pipeline suffers from three major flaws: it is bottlenecked by first-stage recall, scales poorly with data lake size, and requires massive storage for dense vector indexes.
Methods
GenTUS completely bypasses the vector index and candidate pool by treating retrieval as a sequence generation problem. The framework consists of three main phases:
- Table Serialization: Tables are flattened into text sentences capturing sampled cell values and column structures without relying on column names.
- Unionability-Aware Semantic IDs: Instead of arbitrary string IDs, GenTUS uses an MLP encoder and a residual quantizer trained with a contrastive loss ($L_{union}$). This ensures that semantically unionable tables share similar coarse prefixes in their discrete identifier sequences.
- Constrained Generative Training & Inference: A T5 encoder-decoder model is trained to map a query table sentence directly to the target table's semantic ID using token-level cross-entropy and a pairwise ranking loss with mined hard negatives. At query time, GenTUS uses a prefix tree (Trie) of all valid table IDs in the data lake to constrain the T5 decoder's beam search, guaranteeing that every generated sequence maps to a real table.
Datasets
The authors evaluated GenTUS on seven public TUS benchmarks covering various domains, sizes, and row counts:
TUS_smallandTUS_largeSANTOS_smallandSANTOS_largewiki_union- Two variants derived from
LakeBench(LakeBench_1kandLakeBench_30k), capped at 1,000 and 30,000 rows respectively to test scalability.
Key Insights and Ideas
- Retrieval as Generation for Tables: Generative retrieval (popularized in document search) can be successfully adapted to complex tabular data structures by framing tables as structured text sequences.
- Injecting Structure into Discrete Spaces: Standard quantization minimizes reconstruction error but ignores relational properties. By adding a pairwise contrastive loss before quantization, the discrete ID space itself becomes organized by "unionability," making it highly generation-friendly.
- Low-Cost Incremental Updates: Adding a new table to the data lake does not require rebuilding an ANN index or retraining the generator. You simply pass the new table through the frozen encoder/quantizer and insert its new ID into the prefix tree—a local, low-cost operation.
Key Results
- Retrieval Quality: GenTUS achieved an average rank of 1.05 across all datasets and metrics, significantly outperforming the strongest baseline, TACTUS (average rank 2.57). On challenging datasets like
wiki_union, GenTUS boosted Precision@k by nearly 15 percentage points. - Efficiency & Storage: GenTUS achieved a 12.6x speedup in online retrieval latency and required 13x less index storage compared to traditional methods because it completely eliminates dense vector databases and post-hoc reranking.
- Incremental Indexing: Under an incremental setup, GenTUS maintained top-tier MAP scores while executing updates orders of magnitude faster than baselines (e.g., 49 seconds vs. 191 seconds for TACTUS on LakeBench_30k).
Limitations and Future Work
- Distribution Shift: The current framework assumes the generator does not need frequent retraining, but substantial distribution shifts in the data lake might require refreshing the identifier space and the generator.
- Scope Expansion: GenTUS focuses strictly on table union search. The authors note that extending this generative paradigm to joint unionable-table and joinable-table discovery is an important next step.
- Scale: While tested up to ~40k tables, scaling to truly massive, billion-table data lakes remains an open engineering challenge.
Summary updated