基于大型语言模型的在线聚合用于无结构文本分析
LLM-Driven Online Aggregation for Unstructured Text Analytics
AI总结:
OLLA是一种基于LLM的在线聚合框架,通过语义分层采样提升无结构文本分析的实时响应与效率。
摘要:
大型语言模型(LLMs)在文本处理方面表现出强大的能力,最近的研究已通过LLM驱动的语义运算符增强了SQL和数据框的数据分析能力。然而,LLM驱动的数据处理受到比关系查询慢的token生成速度的阻碍。为了提高实时响应能力,我们提出OLLA,一种基于LLM的在线聚合框架,该框架加速了关系查询中的语义处理。与仅在处理完整数据集后才能获得结果的批处理系统不同,我们的方法逐步将文本转换为结构化数据流,并应用在线聚合以提供逐步输出。为了增强我们的在线聚合过程,我们引入了一种语义分层采样方法,以提高数据选择并加快收敛到真实值的速度。评估显示,OLLA在使用不到完整数据集时间的4%时,能够达到与标注真实值相比1%的准确率误差范围。它在不同领域中实现了从1.6倍到38倍的速度提升,通过将达到5%误差范围的时间与完整数据集时间进行比较来衡量。我们发布了代码:https://github.com/olla-project/llm-online-agg.git。
英文摘要:
Large Language Models (LLMs) exhibit strong capabilities in text processing, and recent research has augmented SQL and DataFrame with LLM-powered semantic operators for data analysis. However, LLM-based data processing is hindered by slower token generation speeds compared to relational queries. To enhance real-time responsiveness, we propose OLLA, an LLM-driven online aggregation framework that accelerates semantic processing within relational queries. In contrast to batch-processing systems that yield results only after the entire dataset is processed, our approach incrementally transforms text into a structured data stream and applies online aggregation to provide progressive output. To enhance our online aggregation process, we introduce a semantic stratified sampling approach that improves data selection and expedites convergence to the ground truth. Evaluations show that OLLA reaches 1% accuracy error bound compared with labeled ground truth using less than 4% of the full-data time. It achieves speedups ranging from 1.6$\times$ to 38$\times$ across diverse domains, measured by comparing the time to reach a 5% error bound with that of full-data time. We release our code at https://github.com/olla-project/llm-online-agg.git.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。