SemJoin: Semantic Join Optimization
Not on the map. Why?
Abstract (arXiv)
Integrating unstructured data into relational database systems is increasingly important as demand grows for natural language querying and analysis. A semantic join, joining two tables under a natural-language predicate, can be evaluated with a large language model (LLM), but comparing every pair of tuples requires O(M x N) LLM invocations and is cost-prohibitive at scale. Existing systems reduce this cost but typically commit to a single fixed strategy (e.g., embedding similarity or one batched scheme) regardless of the data or the join predicate. We propose an LLM-agent-based decision pipeline that optimizes semantic joins by matching the execution strategy to the characteristics of the underlying tables. An LLM advisor routes each join to one of two strategies: a Cluster Join, which prunes candidates via unsupervised embedding clustering and sample-based filtering, or a Classifier strategy for predicates that reduce to a shared discrete label set. Across three diverse datasets (IMDb reviews, email contradictions, and Stack Overflow tags), the advisor consistently identifies the optimal execution strategy for each workload. This dynamic routing proves decisive: it outperforms adaptive block join (ABJ) by 20-33 F1 points across all datasets while consuming fewer tokens on two of the three, and achieves higher F1 scores than featurized-decomposition join (FDJ) at one to two orders of magnitude lower token cost.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 9 of its 21 references that are in the map. First posted on arXiv 28 Jun 2026.
Builds on
9 of 21 references.
References · 9
- 2024A Declarative System for Optimizing AI Workloadscited by 35
- 2024Semantic Operators: A Declarative Model for Rich, AI-based Data Processingcited by 29
- 2025LLM/Agent-as-Data-Analyst: A Surveycited by 15
- 2025Cortex AISQL: A Production SQL Engine for Unstructured Datacited by 11
- 2026Can LLMs Clean Up Your Mess? A Survey of Application-Ready Data Preparation with LLMscited by 9
- 2025PalimpChat: Declarative and Interactive AI analyticscited by 4
- 2025Featurized-Decomposition Join: Low-Cost Semantic Joins with Guaranteescited by 4
- 2024Variable Extraction for Model Recovery in Scientific Literaturecited by 3
- 2026Accelerating Approximate Analytical Join Queries over Unstructured Data with Statistical Guaranteescited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025SemBench: A Benchmark for Semantic Query Processing Engines
- 2025Weaver: Interweaving SQL and LLM for Table Reasoning
- 2026BatchDAG: LLM-Planned Execution Graphs for Scalable Ad-Hoc Analysis Over Enterprise Data
- 2026Can LLMs Normalize Databases? A Benchmark and Multi-Agent Framework for Schema Normalization
- 2025Improving Table Understanding with LLMs and Entity-Oriented Search
- 2024Lucy: Think and Reason to Solve Text-to-SQL
- 2025DynaQuery: A Self-Adapting Framework for Querying Structured and Multimodal Data
- 2024KcMF: A Knowledge-compliant Framework for Schema and Entity Matching with Fine-tuning-free LLMs