arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.11418cs.DBcs.AIcs.CL
收藏

语义算子:一种用于丰富的、基于AI的数据处理的声明式模型

Semantic Operators: A Declarative Model for Rich, AI-based Data Processing

Stanford University(斯坦福大学);UC Berkeley(加州大学伯克利分校)

Liana Patel, Siddharth Jha, Melissa Pan, Harshit Gupta, Parth Asawa, Carlos Guestrin, Matei Zaharia

AI总结:

针对现有LLM数据处理系统缺乏性能保证与表达力的问题,提出声明式语义算子模型,通过黄金算法保证准确性并优化成本,在LOTUS系统中实现,加速多种操作并提升AI流水线质量。

摘要:

大型语言模型(LLMs)的语义能力有望在庞大的知识语料库上实现丰富的分析和推理。遗憾的是,现有系统要么在没有性能保证的情况下经验性地优化昂贵的LLM驱动操作,要么仅服务于有限的逐行LLM操作,提供的鲁棒性、表达能力和可用性十分有限。我们引入了语义算子,这是首个基于自然语言规范(例如,使用自然语言标准对记录进行过滤、排序、连接或聚合)的声明式且通用的基于AI的转换的形式化方法。每个算子都开启了丰富的执行计划空间,类似于关系算子。我们的模型使用高质量的黄金算法指定了每个算子的预期行为,并且我们开发了一个优化框架来降低成本,同时提供相对于黄金算法的准确性保证。使用这种方法,我们提出了几种新颖的优化方案,将语义过滤、连接、分组和top-k操作加速了高达$1,000\ imes$。我们在LOTUS系统中实现了语义算子,并展示了LOTUS在真实的批量语义处理应用中的有效性,包括事实核查、生物医学多标签分类、搜索和主题分析。我们表明,语义算子模型具有高度表达能力,仅需少数几次算子调用即可捕获最先进的AI流水线,并且使得表达匹配或超越近期基于LLM的分析系统质量(高达$170\%$)的新流水线变得容易,同时提供准确性保证。总体而言,LOTUS程序匹配或超越了每个任务最先进的AI流水线的准确性,同时运行速度比最高质量的基线快高达$3.6\ imes$。LOTUS已在 https://github.com/lotus-data/lotus 公开提供。

英文摘要:

The semantic capabilities of large language models (LLMs) have the potential to enable rich analytics and reasoning over vast knowledge corpora. Unfortunately, existing systems either empirically optimize expensive LLM-powered operations with no performance guarantees, or serve a limited set of row-wise LLM operations, providing limited robustness, expressiveness and usability. We introduce semantic operators, the first formalism for declarative and general-purpose AI-based transformations based on natural language specifications (e.g., filtering, sorting, joining or aggregating records using natural language criteria). Each operator opens a rich space for execution plans, similar to relational operators. Our model specifies the expected behavior of each operator with a high-quality gold algorithm, and we develop an optimization framework that reduces cost, while providing accuracy guarantees with respect to a gold algorithm. Using this approach, we propose several novel optimizations to accelerate semantic filtering, joining, group-by and top-k operations by up to $1,000\times$. We implement semantic operators in the LOTUS system and demonstrate LOTUS' effectiveness on real, bulk-semantic processing applications, including fact-checking, biomedical multi-label classification, search, and topic analysis. We show that the semantic operator model is expressive, capturing state-of-the-art AI pipelines in a few operator calls, and making it easy to express new pipelines that match or exceed quality of recent LLM-based analytic systems by up to $170\%$, while offering accuracy guarantees. Overall, LOTUS programs match or exceed the accuracy of state-of-the-art AI pipelines for each task while running up to $3.6\times$ faster than the highest-quality baselines. LOTUS is publicly available at https://github.com/lotus-data/lotus.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑