特征分解连接:具有保证的低成本语义连接
Featurized-Decomposition Join: Low-Cost Semantic Joins with Guarantees
AI总结:
Featurized-Decomposition Join通过自动提取特征并结合逻辑表达式,实现低成本高质量的语义连接。
摘要:
大型语言模型(LLMs)正在越来越多地被用于数据系统中,以处理具有文本字段的大型数据集。一大类此类任务涉及语义连接——根据每对元组的自然语言谓词将两个表连接起来,通过LLM进行评估。语义连接涵盖了实体匹配和记录分类等任务,以及更复杂的文本理解任务。一种直接的实现方式成本很高,因为它需要为交叉乘积中的每对行调用LLM。现有的方法通过首先应用基于嵌入的语义相似性来过滤候选对,只有在相似度分数被认为不确定时才依赖LLM。然而,这些方法在实践中效果有限,因为语义相似性可能无法可靠地预测连接结果。我们提出特征分解连接(FDJ,简称),一种新的执行语义连接的方法,显著降低了成本同时保持质量。FDJ自动提取特征并将它们组合成一个称为特征分解的逻辑表达式,以有效地排除不匹配的对。特征分解从文本记录中提取关键信息,并在提取的特征上进行低成本的比较。我们展示了如何利用LLM自动提取可靠的特征并将它们组合成逻辑表达式,同时提供对输出结果的统计保证——这是一个由于特征之间的依赖关系而具有挑战性的问题。在真实世界数据集上的实验显示,与最先进的方法相比,成本减少了多达10倍,同时提供相同质量的保证。
英文摘要:
Large Language Models (LLMs) are being increasingly used within data systems to process large datasets with text fields. A broad class of such tasks involves a semantic join-joining two tables based on a natural language predicate per pair of tuples, evaluated using an LLM. Semantic joins generalize tasks such as entity matching and record categorization, as well as more complex text understanding tasks. A naive implementation is expensive as it requires invoking an LLM for every pair of rows in the cross product. Existing approaches mitigate this cost by first applying embedding-based semantic similarity to filter candidate pairs, deferring to an LLM only when similarity scores are deemed inconclusive. However, these methods yield limited gains in practice, since semantic similarity may not reliably predict the join outcome. We propose Featurized-Decomposition Join (FDJ for short), a novel approach for performing semantic joins that significantly reduces cost while preserving quality. FDJ automatically extracts features and combines them into a logical expression in conjunctive normal form that we call a featurized decomposition to effectively prune out non-matching pairs. A featurized decomposition extracts key information from text records and performs inexpensive comparisons on the extracted features. We show how to use LLMs to automatically extract reliable features and compose them into logical expressions while providing statistical guarantees on the output result-an inherently challenging problem due to dependencies among features. Experiments on real-world datasets show up to 10 times reduction in cost compared with the state-of-the-art while providing the same quality guarantees.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。