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

面向基于大语言模型智能体时代数据分析中可扩展文本分析的语义原子

Semantic Atoms for Scalable Text Analysis in Data Analytics in the Era of LLM-Based Agents

Nanjing University(南京大学);Tsinghua University(清华大学);Microsoft Research(微软研究院)

Jinxiang Xie, Zihao Li, Rui Ding, Bartuer Zhou, Shi Han, Dongmei Zhang

AI总结:

该研究针对基于LLM智能体的数据分析场景,提出两种语义原子构建TADA-Agent,在TABench上验证其可减少语义模型请求量并保持良好语义质量。

摘要:

数据分析所需的大量信息隐藏在文本列中:分析师可从投诉文本中推断客户不满,并将其用于解释解决时间。我们将处理文本列对后续数据分析至关重要的工作负载称为TADA(数据分析中的文本分析,Text Analysis in Data Analytics)。在智能体语境中,用户的查询动态指定该处理过程,回答查询时会将基于大语言模型(LLM)的语义步骤与精确的SQL或Python操作交织执行。这种混合执行引发两个设计问题:哪些工作应采用神经方法,哪些应采用符号方法,以及后续步骤可复用哪些语义输出。我们针对智能体规划的TADA工作流,提出两种互补的、由查询驱动的语义原子以解决上述问题。每个原子接收文本项序列和指定语义任务的自然语言查询:标记(Tagging)为每个输入项返回一个字符串,分类(Categorization)则为N个输入项返回M个类别对象。标记结果被实现为行对齐的列,分类结果被实现为类别表;随后SQL或Python会对该暴露状态执行精确计算。我们在TADA-Agent中实现了该接口,其原子运行在生成的Python程序内部,且能在内部处理超出可靠上下文窗口的输入。我们在TABench上评估了TADA-Agent,该基准包含40个针对电子表格的完整分析请求,涵盖工作流组合、输入-输出结构以及基于文献的分析场景。与语义操作基线相比,相对于保留的TADA参考运行,TADA-Agent具备相当的行级语义质量,拥有更高的完整工件保留估计值,且在评估的原生执行路径下使用的语义模型请求数量减少了一个数量级以上。

英文摘要:

Much of the information needed for data analysis is buried in text columns: an analyst may infer customer frustration from complaint text and use it to explain resolution time. We call workloads in which processing text columns is central to subsequent data analysis TADA (\emph{Text Analysis in Data Analytics}). In an agentic setting, the user's query dynamically specifies this processing, and answering it interleaves LLM-based semantic steps with exact SQL or Python operations. This mixed execution raises two design questions: which work should be neural and which symbolic, and which semantic outputs later steps can reuse. We address them for agent-planned TADA workflows with two complementary, query-driven semantic atoms. Each atom takes a sequence of text items and a natural-language query specifying the semantic task: \textbf{Tagging} returns one string per input item, while \textbf{Categorization} returns $M$ category objects over $N$ input items. Tagging results are materialized as a row-aligned column and Categorization results as a category table; SQL or Python then performs exact computation over this exposed state. We realize this interface in TADA-Agent, whose atoms run inside generated Python programs and internally handle inputs beyond a reliable context window. We evaluate TADA-Agent on TABench, a benchmark of 40 complete analysis requests over spreadsheet tables spanning workflow composition, input--output structure, and literature-grounded analytical scenarios. Against a semantic-operator baseline and relative to a held-out TADA reference run, TADA-Agent delivers comparable row-level semantic quality, has higher complete-artifact preservation estimates, and uses over an order of magnitude fewer semantic-model requests under the evaluated native execution paths.

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

↑