Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

SABER: A SQL-Compatible Semantic Document Processing System Based on Extended Relational Algebra

SABER adds a SQL-compatible semantic algebra to existing document processing systems

  • Problem Existing semantic data processing systems lack a shared algebra, so multi-step queries over documents are hard to compose, reason about, and optimize. Their operators are described in system-specific terms rather than unified rules.
  • Method SABER extends relational algebra with LLM-backed semantic operators and runs them from SQL. It swaps each data transformation or comparison for an LLM-based one, and it dispatches semantic calls to runtime handlers instead of changing the SQL parser.
  • Results The authors find that none of LOTUS, DocETL or Palimpzest supports semantic difference or intersection directly. SABER implements both with embedding-based similarity.

Why existing semantic systems are hard to compose

Semantic data processing systems let language models run filtering, extraction, joining and clustering over documents. LOTUS, DocETL and Palimpzest are the three systems this section compares, and each exposes natural-language APIs for unstructured documents. Their operator semantics are described in system-specific terms rather than in unified algebraic rules.

Pipelines that mix joins, filters, grouping and set or bag difference become hard to compose, reason about and optimize. SQL systems avoid this problem because standard relational algebra gives a foundation for correct composition and optimization. The existing SDPSs share no formal semantics, so there is no common basis for testing whether two pipelines are equivalent.

Core primitives such as difference, intersection and deduplication are often missing or only partially implemented.

Table 2 shows that all three systems support semantic selection and projection, reflecting their core role in filtering and transformation. Semantic join is supported in LOTUS and DocETL but not in Palimpzest, which shows divergence in pipeline composability. None of the three systems supports semantic difference or intersection directly.

The authors can build intersection only by projecting all attributes into one attribute and then applying a semantic join. They state that semantic difference cannot be expressed in these systems at all.

Production systems often mix structured, semi-structured and unstructured data, which document-focused tools don't handle well. Apache Wayang mixes physical operators from different data systems, but it doesn't add LLM-backed semantic operators. That gap motivates SABER, which extends relational algebra with semantic operators so they can compose like SQL.

Semantic operators built on extended relational algebra

SABER keeps the structure of relational algebra and swaps each data transformation or comparison for an LLM-based one. The authors call the result SABER, for Semantic Algebra Based on Extended Relational algebra. Because the semantic operators keep the relational meaning, rewrite rules such as selection push-down still apply. The rule e1 ≡ e2 that holds in the conventional setting gives a matching semantic rule under the appropriate semantic equivalence.

The authors aim this at declarative query evaluation and logic plan optimization in semantic data processing systems.

The base is extended relational algebra, which represents relations as ordered lists so that duplicates and order are kept. SABER has 12 conventional relational algebra operators and 10 semantic relational operators. Product, bag-union and top-k get no semantic version, because their definitions use only standard auxiliary functions and the Loop function.

Those three operators don't need LLM-based semantic involvement, since they never compare or transform data values with a model. Semantic operators are marked with a superscript sem, which separates them from their classical counterparts.

A semantic selection, written σ^sem_P(r), keeps each row of r for which the boolean semantic predicate P holds. An LLM evaluates P from the user's natural-language predicate, plus extra metadata and prompt wording. Deduplication compares rows by similarity rather than by exact data-type equality. Semantic difference depends on a membership test, isIn^sem, that checks semantic equivalence instead of plain equality.

Semantic sorting orders rows by an attribute specification that reflects semantic comparability, not syntactic order.

Semantic projection and semantic aggregation are defined over function sets whose members carry semantic interpretation. The semantic operators behave like their relational counterparts, and only the predicate or transformation changes. The data transformation is treated as a type-checked black box to relational algebra, so the algebra itself stays unchanged.

The authors reuse this grounding to bridge structured and unstructured data processing.

Which relational operators the three backends cover

The authors check each SABER operator against the documented APIs of LOTUS, DocETL and Palimpzest, and against each system's observed behaviour. Selection and projection form the common core, because all three systems support both operators. Semantic join works in LOTUS and DocETL, but Palimpzest doesn't offer it. Grouping, aggregation, deduplication and sorting vary from one system to another.

Palimpzest gives only partial aggregation, while LOTUS and DocETL offer richer operator sets.

The sharpest gap is that none of the three systems supports semantic difference or intersection directly. Difference and intersection matter because they capture exclusion and overlap in comparative and conditional analyses. The authors suggest that intersection can be composed from projection and join, instead of being built directly. All attributes are first projected into one attribute, and the join then yields a result equivalent to intersection.

SABER treats these gaps as a blueprint for system evolution, not only as a list of missing features. Because the three systems lack difference and intersection, the authors implement both with embedding-based similarity. When a backend lacks an operator, SABER uses its own implementation instead. Semantic join is limited to equi-joins in this work, and general theta-joins are left for future work.

How SQL text turns into semantic calls

SABER doesn't change the SQL parser or the query optimizer to run semantic calls. Instead, it scans the SQL text with regular expressions to find semantic UDF invocations and their arguments. Each matched call, such as SEM_JOIN(...), is dispatched to a dedicated runtime handler that implements the matching SABER semantics. This pragmatic approach avoids invasive parser changes, which is why the authors call it enabling rapid deployment in existing systems.

The pipeline has three stages, and the first one loads the data a semantic operator references from tables or subqueries. That data then passes through an LLM-backed transformation, such as a prompt-based projection. The output is materialized as an intermediate table or dataframe, so later steps can read it. In the last stage, the SQL is rewritten so semantic calls point at the materialized outputs, and a standard relational engine keeps processing the query.

Each semantic UDF is a standalone Python function, and its output is a relational table that downstream SQL operators can consume.

SABER runs on top of LOTUS, DocETL and Palimpzest rather than on a new engine. Those three systems don't support semantic difference or semantic intersection, so SABER implements both with embedding-based similarity. This design lets SABER reuse existing query optimization in the backends while keeping its own semantics for these two operators.

The paper reports no evaluation of these two operators.

Consider a query that asks for the most expensive apple-related product. A SEM_WHERE clause with the lotus backend filters product names by their relation to apple. ORDER BY price DESC with LIMIT 1 then picks the single answer from the filtered rows. Because the output stays relational, the query keeps the algebraic closure that the authors rely on for downstream operators.

One movie query across three backends

The authors ran one mixed structured and unstructured query on LOTUS, DocETL, and Palimpzest to test the design end to end. They built a normalized semantic database from the official IMDb non-commercial dataset and the Cinemagoer library. Each movie was linked to its primary director, so every film row pairs with one director. The authors pulled the top 250 movies through the IMDbPY API, keeping title, year, rating, and plot.

That process produced two tables: movies for film-level metadata and directors for biographical context.

The backend-free query in Figure 1 asks for the top 5 rated movies about personal resilience. Two SEM_WHERE conditions filter rows, one on the director's overcoming of challenges and one on the plot. SEM_SELECT writes a one-sentence summary of each director's biography. The rows are then ordered by rating in descending order and capped with LIMIT 5.

Because SEM_SELECT and SEM_WHERE are semantic, the query combines projection and selection in one plan.

Each backend gets its own rewritten SQL, so each version carries that backend's own LLM prompt. Figure 2 lists the three rewritten queries, and the prompt wording differs across them. The authors read the three outputs as showing that SABER keeps the semantic interpretation consistent. Table 3 shows the ranked movies each backend returned, along with director summaries.

The authors didn't score these outputs against labelled answers, so the consistency claim rests on the result tables.

Limits of the prototype and the evidence

The prototype dispatches semantic operators by matching regular expressions against SQL strings. It doesn't go through the SQL parser or the logical plan, so the optimizer can't yet reason about semantic operators. The authors keep parser and optimizer changes out of scope, leaving deeper integration as future work.

The authors state that the LLM responses behind the operators, such as prompt interpretation and similarity scoring, lack formal guarantees. LOTUS, DocETL, and Palimpzest lack semantic difference and intersection, so SABER builds both on embedding-based similarity. The text doesn't report any evaluation of that choice against alternatives.

Join covers only equi-joins for now, and general theta joins are left for future work.

The validation is a single movie query run on three backends: LOTUS, DocETL, and Palimpzest. That query draws on the top 250 movies retrieved through the IMDbPY API. The authors' claims of portability, compositionality, and expressive power therefore rest on this one case.

Cost-based planning across semantic and classical operators appears only as a future extension, and they didn't test it. Extending SQL parsers and query planners would enable deeper optimization and execution efficiency, the authors argue.

Paper info

Authors
Changjae Lee, Zhuoyue Zhao, Jinjun Xiong
Venue
arXiv · Preprint
First published
2025-8-29
Added
2026-10-20
Updated
2025-8-29
Version
v1
arXiv
2509.00277
Category
cs.DB · cs.AI
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Changjae Lee, Zhuoyue Zhao, Jinjun Xiong (2025). SABER: A SQL-Compatible Semantic Document Processing System Based on Extended Relational Algebra. arXiv:2509.00277v1. https://arxiv.org/abs/2509.00277v1

BibTeX
@misc{lee2025saber,
  title = {{SABER: A SQL-Compatible Semantic Document Processing System Based on Extended Relational Algebra}},
  author = {Changjae Lee and Zhuoyue Zhao and Jinjun Xiong},
  year = {2025},
  eprint = {2509.00277},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.00277v1}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up