Skip to content
Preprint

SAGE: A Unified Algebra and Self-Adaptive Execution for AI Functions in SQL

Aug 2026 · 0 citations · 39 references
Computer Science

TL;DR

SAGE achieves the strongest overall SemBench performance and, on a representative factorable join, reduces pairwise model calls by more than two orders of magnitude, yielding a 358-fold measured cost reduction.

Abstract

SQL systems increasingly expose AI functions for tasks such as classification, extraction, filtering, ranking, retrieval, joining, and summarization. Despite their diverse APIs, these functions play only three relational roles: transforming individual rows, aggregating groups, or generating relationships between row pairs. We present SAGE (Self-Adaptive Generative Execution), a unified logical and physical framework that captures these roles with three typed primitives, AI_SCALAR, AI_AGG, and AI_JOIN, and composes them naturally with standard relational operators. All primitives share a confidence-gated execution interface while supporting physical strategies tailored to their relational shape. The main challenge is AI_JOIN, where SAGE analyzes the predicate, decomposes compound conditions when possible, and uses a recipe card together with a small label-free probe to select among complete execution strategies. Across a broad audit of public AI operators and evaluations spanning scalar, aggregate, and join workloads, this formulation covers common AI functionality while consistently improving execution quality and efficiency. SAGE achieves the strongest overall SemBench performance and, on a representative factorable join, reduces pairwise model calls by more than two orders of magnitude, yielding a 358-fold measured cost reduction.

View source

Similar papers

#artificial intelligence Preprint Sep 2026

The Stochastic Shift: A New Evaluation Paradigm for Text-to-SQL with AI Operators

A Multilayered Evaluation Framework is introduced that decouples deterministic database logic from flexible AI semantics and achieves state-of-the-art overall accuracy across both platforms, proposing a reliable standard for benchmarking AI-powered SQL generators.

Tarfah Alrashed, Fatma Ozcan, Per Jacobsson et al. · 1 citation
Open access Oct 2026

Systematically Cover SQL Syntactic Structures via 𝑘-Sequence

Testing Relational Database Management Systems (RDBMSs) is inherently challenging because SQL, the primary language for interacting with RDBMSs, exhibits a vast and highly complex grammar with hundreds of interdependent production rules in the Extended Backus--Naur Form. While existing grammar-based testing techniques...

Hong-Tao Zhou, Ying-Ying Zheng, Yu Gao et al. · 0 citations
Conference Sep 2026

A Unified Model Context Protocol SQL Tool Interface for Agentic AI Systems: Architecture and a Reproducible SQL Execution Baseline

Large language model (LLM) agents increasingly need reliable access to structured databases, yet that access is often fragmented across custom drivers, framework-specific tools, and non-standard execution interfaces. This paper presents a unified SQL tool interface based on the Model Context Protocol (MCP): database op...

Eric Julianto, Dian Alhusari, S. A. Ardiyansa et al. · 0 citations
#artificial intelligence Open access Sep 2026

A LAYERED REFERENCE FRAMEWORK FOR SCALABLE DATA ENGINEERING AND AI APPLICATIONS

The resulting framework provides a vendor-neutral architectural blueprint that systematically connects scalability requirements, platform responsibilities, operational controls, and AI lifecycle needs, enabling engineering teams to evaluate and evolve data and AI platforms incrementally.

Santoshi Maddali · 0 citations
#artificial intelligence Preprint Sep 2026

Git4Data: Database-Native Version Control for AI Agents

Git4Data is presented, a database-native version-control layer for agentic workflows that sheds light on how relational databases can better support AI agents through efficient versioning.

Hongshen Gou, Zu-Yu Zhang, Yu-Ze Sun et al. · 0 citations
#artificial intelligence Preprint Sep 2026

Efficiently Linking Unstructured Data for Multi-step Reasoning

Modern LLMs and AI agents increasingly support data engineering workflows that integrate evidence from unstructured sources. Such pipelines typically do data retrieval, integration, and ranking before proceeding to more complex agentic reasoning or actions, e.g., for scientific discovery. The core retrieval problem in...

Jia-Ming Liang, H. Jones, Jacob R. Gardner et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.