arXiv:2610.34860cs.CLOct 2026

Manuscript Offprint

arXiv:2610.34860

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

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

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

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 (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: Tagging returns one string per input item ( N→NN \rightarrow N), while Categorization returns M category objects over N input items ( N→MN \rightarrow M). 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. The atoms add no expressive power over semantic-operator systems that offer a semantic map; Tagging is functionally such a map. Their purpose is to make reusable semantic state the uniform, default output of every semantic call. 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. Large-scale fixed-taxonomy runs and public legal and biomedical benchmarks show that the same Tagging API can be used beyond one context window and across domains, with task-specific queries and downstream normalization.

1. Introduction

Text has long been part of analytical data, yet it has seldom been handled as a core analytical substrate in its own right. The relational model gives analysts a clean algebra over structured columns (Codd, 1970), while classical text analysis provides a separate toolbox for turning documents into linguistic features, labels, or summaries (Manning & Schütze, 1999). Modern analytical tables, however, increasingly combine text and structured columns. For example, a customer-support table may contain a text column of billing complaints alongside structured columns such as resolution time and region. We refer to such tables as text-bearing tables. An analyst may infer each complaint's frustration and main theme from the text, then use these derived variables in a regression to explain variation in resolution time. We use TADA (Text Analysis in Data Analytics) for such workloads, in which semantic processing over text columns produces intermediate artifacts for subsequent data analysis. Throughout the paper, TADA names this workload, TADA-Agent names our system, and Tagging and Categorization name the interface that the system exposes to an agent.

The execution of TADA requests is changing in the agentic era. Semantic-query interfaces now support both human-authored programs and agentic execution. In an LLM-based analytical agent, the user expresses analytical intent through a natural-language query, and the agent may plan a multi-step execution to answer it (Yao et al., 2023; Tang et al., 2025). LLM calls perform the neural computation required

Correspondence to: Jinxiang Xie

xiejinxiang@smail.nju.edu.cn, Rui Ding

juding@microsoft.com.

Preprint. October 27, 2026.

for semantic processing over text, while SQL, dataframe, and statistical runtimes provide symbolic computation for exact filtering, sorting, aggregation, and model fitting. Within such an execution, a semantic result may become an intermediate variable reused by later semantic or symbolic steps. In short, TADA in the agentic setting has two salient characteristics: semantic needs are specified dynamically by the query rather than fixed by a predefined task, and answering the query may require neural and symbolic steps to be interleaved. Consider the query, “Sort the billing complaints by customer frustration, identify the main theme of each complaint, and regress resolution time on frustration and complaint theme.” It dynamically specifies frustration and theme as semantic variables, which must be derived through neural processing and then used by symbolic sorting and regression, raising two challenges.

The first challenge is interface design. The system must decide which work is done by an LLM and which by exact code, and which LLM outputs are kept as semantic state: values, such as a frustration score per row, that later steps can read without calling the model again. TADA requires both neural and symbolic computation: LLM calls are needed to perform query-specified semantic processing over text, whereas operations such as applying a filter, sorting values, computing aggregates, and fitting models have exact symbolic implementations. A poorly placed boundary can reduce semantic coverage or execution reliability. Symbolic surrogates are often inadequate for context-dependent meanings, while delegating operations with established deterministic implementations directly to generation introduces avoidable variability. In the running example, sorting by frustration should use neural computation to infer a row-level frustration value and symbolic code to perform the actual sorting.

Existing systems often expose task-level semantic operators, each of which packages semantic processing with a particular analytical action, such as filtering, sorting, or aggregation (Snowflake, 2026b; Databricks, 2026; Apache Doris, 2026; Patel et al., 2025; Liu et al., 2024; Dai et al., 2024; Lee et al., 2025; Qi et al., 2026). A composite contract determines which state the orchestrator can reuse. The orchestrator can use only the state exposed by an operator's output contract. In the billing-complaint example, a semantic sort returns ordered complaints but not the row-level frustration variable required by the later regression. A plan that relies on this sort must invoke an additional semantic computation to derive that variable, repeating the semantic processing for the same notion of frustration and potentially producing values inconsistent with the earlier ordering, as illustrated in Figure 1(a). The repetition stems from this plan choice. Most semantic-operator systems also provide a semantic map, and a plan that maps frustration first and then sorts and regresses symbolically avoids the repetition. Whether the agent finds that plan depends on which operators it is offered and which outputs those operators return by default. The system must therefore place two boundaries well. The execution boundary decides which work is neural and which is symbolic; the interface boundary decides what semantic state each call exposes to subsequent analytical steps.

The second challenge is scale: a large table may not fit reliably in one call. Consider identifying the main topics in thousands of complaints. A natural divide-and-conquer strategy follows a MapReduce structure: partition the rows, process each chunk, and consolidate the local results. Yet each stage raises questions specific to semantic computation. During partitioning, large chunks approach the model's input and output limits, whereas small chunks provide less evidence and may produce unstable local topics. During local processing, the system must preserve information that is infrequent within one chunk but potentially important globally. Splitting and reassembling rows is not enough: the system must select suitable chunks, preserve globally important semantics through local LLM calls, and consolidate the local results reliably.

To address the interface-design challenge, TADA places the neural–symbolic execution boundary at the semantic output and exposes that output through two complementary, query-driven atoms. Tagging maps N input text items, typically drawn from a text column, to N output strings (N→N)(N \rightarrow N), while Categorization maps the same N text items to a list of M category objects (N→M)(N \rightarrow M). Both atoms also take a query q that specifies the semantic processing to perform. This atom-level query need not be identical to the user's analytical query: the agent may derive it as one step in the workflow. The semantic task is therefore query-defined, while the two output contracts remain fixed. LLM calls perform the semantic processing needed to produce the atom outputs; filtering, sorting, and model fitting remain in the symbolic runtime. Tagging values are materialized as a row-aligned column keyed by row identifiers (rid), whereas Categorization objects are materialized as a separate category table keyed by fresh category identifiers (cid). The boundary therefore both confines neural computation to semantic processing and exposes its result as state that subsequent analytical steps can reuse. The TADA plan in Figure 1(b) Tags frustration once: symbolic code sorts by the materialized column, and the regression reuses that same column. Categorization discovers a shared theme vocabulary, and a subsequent Tagging call maps each complaint to the most relevant discovered theme. This Categorization–then–Tagging composition provides the discovery-and-assignment functionality of a task-level semantic grouping operation while preserving both the category vocabulary and its row-level assignments: LLM calls produce semantic state, exact operations consume it, and that state remains available across subsequent steps. The

(a) Composite semantic operators

ordered = semantic_sort(text, "frustration") theme = semantic_theme(text)