Databases
See recent articles
Showing new listings for Friday, 4 December 2026
- [1] arXiv:2612.04539 [pdf, html, other]
-
Title: ReGenSQL: A Hybrid Query Rewrite Framework with Genetic Improvement and Large Language ModelsSubjects: Databases (cs.DB); Software Engineering (cs.SE)
Optimising SQL query execution remains a core challenge in relational database systems, as semantically equivalent queries can differ in runtime by several orders of magnitude. Traditional optimisers often misestimate costs and fail to explore the full transformation space, while recent Large Language Model (LLM)-based approaches generate promising rewrites but typically settle on a single candidate without systematic search. This work presents ReGenSQL, a hybrid framework that integrates Genetic Improvement (GI) with retrieval-augmented LLM guidance to explore query rewrites more effectively. ReGenSQL leverages Apache Calcite's verified transformation rules to ensure semantic correctness, uses R-Bot to seed diverse LLM-informed candidates, and applies evolutionary search to refine rewrites under fitness functions based on either estimated or actual execution cost. Evaluation on the TPC-H benchmark demonstrates that ReGenSQL achieves a clear trade-off between efficiency and effectiveness. In effectiveness-focused settings, the LLM+GI variant with execution latency fitness reduces execution time by 50.5% on average, with 39.7% median and 91.0% 75th-percentile latency, surpassing state-of-the-art systems in both query coverage and number of improvements. In efficiency-focused settings, the GI-only configuration attains a mean rewrite latency of just 5s, nearly 36x faster than the baseline, while still delivering competitive performance gains without the computational and monetary overhead of LLMs. Evaluations on DSB and JOB further demonstrate transfer beyond TPC-H, with ReGenSQL improving up to 50.0% and 23.0% of queries, respectively, versus 13.16% and 3.54% for the baseline. Overall, our findings demonstrate that GI alone is a strong optimisation strategy and that LLM guidance provides situational benefits, making ReGenSQL a robust and adaptable approach to SQL query rewriting.
- [2] arXiv:2612.04573 [pdf, html, other]
-
Title: MARS: Multi-Vector Retrieval with Fine-Grained Filtering on CPUs and SSDsSubjects: Databases (cs.DB)
Multi-vector retrieval, which represents queries and documents as sets of vectors, has become an important primitive for text and multimodal retrieval, with emerging applications in biological sequence analysis. However, its high computational cost and large index make it expensive to serve. Existing CPU engines mitigate these costs by filtering candidates before reranking and compressing embeddings, but their computation still limits their throughput and the in-DRAM index becomes costly as corpora grow. We present MARS, a CPU engine that can serve its whole index from much cheaper SSD with efficient computation and storage access. MARS speeds up merging partial scores and scoring candidates with partitioned document-score reduction and MaxSim scoring on matrix units, and reduces wasted SSD bandwidth with similarity-based placement and uncertainty-guided reranking. We evaluate MARS against five state-of-the-art in-memory engines on three ColBERTv2 corpora and against PLAID on two larger ones. With its whole index on SSD, MARS achieves up to 7.9x (4.4x on geometric mean) the throughput of the fastest state-of-the-art engine at Recall@100 >= 0.95 while using 77-174x less DRAM than that engine. With its whole index in DRAM, it achieves up to 30x (20x), and with only its one-bit codes in DRAM, it retains 81% of that throughput on geometric mean with 29% of the memory on average. On the larger corpora, with up to 7.9 billion token vectors, all-SSD MARS achieves 12-19x the throughput of PLAID while using at most 13.9 GiB of DRAM.
- [3] arXiv:2612.04651 [pdf, html, other]
-
Title: Isolation-Aware Migration from Legacy Relational Databases to Distributed SQL: Measuring and Containing Transaction Retry Risk in AI-Assisted ModernizationComments: Accepted for publication in the 2026 Germany India Conference on Innovation, Technology and Engineering (GICITE). 9 pages, 3 figures, 9 tablesSubjects: Databases (cs.DB); Distributed, Parallel, and Cluster Computing (cs.DC); Software Engineering (cs.SE)
Large language models (LLMs) are increasingly used to translate schemas and procedural code when enterprises migrate from single-node relational databases to distributed SQL systems. Translation, however, addresses only syntax. When the target uses optimistic, serializable concurrency control, applications written for lock-based read-committed isolation encounter serialization aborts that the original code never handled, and these failures surface under production contention rather than in functional testing. We treat this behavioral gap as a first-class migration concern. We propose eight architecture patterns that wrap probabilistic LLM translation in deterministic verification, and we integrate them into a reference architecture whose cutover is governed by service level objectives. We then evaluate the behavioral core empirically. On a single-hot-row read-modify-write microbenchmark at 32 concurrent clients, two serializable configurations abort 79-86% of transaction attempts. A read-committed configuration aborts none, but for this code it permits lost updates. Welch tests show that the gap between serializable and read-committed isolation is significant from four clients upward. The two serializable engines differ by a smaller, though significant, 6-9 percentage points. Aborts vanish when clients stop sharing rows. A bounded retry envelope converts almost all aborts into commits, at a 5.5-fold throughput cost relative to read committed. On a mixed workload, unmodified code exposes application-visible failures in 11-28% of transactions. Wrapping scanner-flagged transactions in the envelope removes 99.3% of these failures, with a throughput cost that is significant only at 32 clients. A heuristic isolation risk scanner classifies all 21 objects of a small author-built corpus correctly; the 95% confidence interval for its recall is 0.74-1.00.
- [4] arXiv:2612.04670 [pdf, html, other]
-
Title: VeriMig: A Verification-Gated LLM Framework for Sybase ASE to SQL Server MigrationComments: Accepted for publication in the 2026 International Conference on Artificial Intelligence Centric Systems, Services, and Applications (AISSA). 8 pages, 4 figures, 6 tablesSubjects: Databases (cs.DB); Artificial Intelligence (cs.AI); Software Engineering (cs.SE)
Large language models (LLMs) can translate SAP Adaptive Server Enterprise (ASE) Transact-SQL to Microsoft SQL Server, but a translation that compiles may still behave differently. We present VeriMig, a framework that checks each translation with four gates: deployment, a lint for remaining ASE constructs, differential execution against a reviewed reference translation, and data reconciliation. Only the first two gates give feedback to the model's repair loop, so the references never shape the translations they score. We contribute a taxonomy of 15 categories of dialect differences, a corpus of 46 development cases and 6 held-out procedures, and an evaluation of 5 locally hosted code models. Without an ASE server, expected behaviour comes from reference translations; 14 rely on documented, not executed, ASE semantics. For the strongest local model, agreement with the references rises from 53.0% with a plain prompt to 81.1% with a checklist of known dialect differences and 87.9% with the repair loop. The checklist improves all five local models; the further gain from repair is not significant. Of the plain-prompt translations, 40.2% compile and pass the lint yet disagree with the reference, and on the held-out procedures agreement is 33.3% with the plain prompt and 66.7% with the repair loop. A hosted reference model reaches 97.0% with the plain prompt and 100.0% with the checklist, so these failures are mainly a property of smaller local models. A fault-injection study shows that only a per-row hash over an unambiguous row encoding detects every tested data fault. All artifacts are released.
- [5] arXiv:2612.04701 [pdf, html, other]
-
Title: dfArena: An Empirical Study of Coding Agent Behavior in DataFrame ProgrammingComments: 24 pages, including references and appendices. Code and evaluation artifacts: this https URLSubjects: Databases (cs.DB); Software Engineering (cs.SE)
As enterprises increasingly adopt AI agents for data analytics, coding agents are emerging as a natural-language interface for building DataFrame-based analysis and preparation workflows. In practice, users may start with unclear requests, refine them through multiple rounds of interaction, and target backends beyond widely used pandas, such as PySpark. In this setting, it remains unclear how reliably agents interpret users' requirements and generate correct DataFrame programs across backends. We present dfArena, an evaluation framework for agentic DataFrame programming. It comprises 472 curated workloads from DataAgentBench, PrepBench, and PandasBench, covering natural-language-driven DataFrame generation and pandas workflow migration. We evaluate configurations based on five models and three agent harnesses on pandas, Polars, Ibis, and PySpark, examining correctness, human-agent interaction behavior, failure mechanisms, and API cost. Our findings reveal three patterns. First, as model capability improves, the main bottleneck shifts from code implementation toward requirement interpretation; with users' clarified requirements, DataFrame backends' differences pose little obstacle to the strongest model. Second, user clarification can help agents resolve unclear requirements, but imprecise replies can be harmful, particularly for strong models. A reusable clarification skill improves the weaker evaluated model's accuracy but provides no gain for the strongest model, suggesting that it may already possess some of the clarification capabilities described by the skill. Third, when the budget allows, stronger models can offer better value on harder workloads. These findings inform when to rely on coding agents, how to communicate analytical requirements, and how to select models and harnesses.
- [6] arXiv:2612.04857 [pdf, html, other]
-
Title: Discovering Functional Clusters in Relational Databases with Probabilistic CompatibilityComments: 13 pages. Code, data, and the online full version with appendices: this https URLSubjects: Databases (cs.DB)
Modern relational databases often comprise hundreds or thousands of interrelated tables, making their overall organization difficult to understand. Functional cluster discovery aims to partition these tables into coherent clusters characterized by shared semantics and strong internal relationships. Existing methods typically cluster tables by similarity and output a single partition, overlooking the functional compatibility among tables within a cluster and among clusters across granularities. This is because tables serving the same function often play different roles and are not necessarily similar. To address these limitations, we propose MODA, a framework for functional cluster discovery with two phases: Probabilistic Table-to-Cluster Formation and Cluster-to-Tree Organization. In the Table-to-Cluster Formation phase, we introduce a probabilistic compatibility model to assess whether tables with different roles serve a common function. Within each candidate cluster, the model infers latent contextual roles and evaluates compatibility by how well these roles jointly explain the tables' semantic and relational patterns. In the Cluster-to-Tree Organization phase, we use the same compatibility model to organize the discovered clusters into a tree supporting multi-granularity views. To form each broader view, we adaptively generate compatible pairwise and multiway candidates and select disjoint ones using a greedy weighted set packing algorithm with a per-round approximation guarantee. Experiments on six relational schemas show that MODA improves macro-averaged ARI and AMI by 45% and 31% over the best baseline.
- [7] arXiv:2612.04893 [pdf, html, other]
-
Title: GLI: Graph Learned Index for Dynamic Graph SearchComments: 26 pages, 16 figures. Includes Appendices A-DSubjects: Databases (cs.DB)
Dynamic graph search combines property selection with traversal and ranking while vertices, edges, and properties change. Adjacency-oriented storage supports efficient neighbor lookup, but selective queries need additional access paths whose construction and maintenance can be costly. We present Graph Learned Index (GLI), which builds learned indexes for graph-wide selection and vertex-local edge filtering. Piecewise-linear models predict property-entry positions within each index to narrow lookup. Buffered changes remain searchable to keep results current as graph connections and values change. To support traversal and exact graph-distance k-nearest-neighbor (kNN) search, GLI uses element identifiers to connect property entries to current graph data in hybrid edge/vertex storage. Experiments on basic graphs, an LDBC property graph, and road networks show gains in selective search and index construction. GLI returns complete adjacency lists 1.45 to 3.24 times faster than AsterDB. It reduces LDBC edge-range and two-hop query latency by up to 118.6 times and 15.5 times relative to Neo4j. On the large USA road network, its graph-distance kNN index builds 27.4 times faster with 6.06 times lower peak memory use than KNN-Index.
- [8] arXiv:2612.05153 [pdf, html, other]
-
Title: Extending GPU Databases with Semantic Queries over Multimodal DataSubjects: Databases (cs.DB); Artificial Intelligence (cs.AI)
Data analysts increasingly want to run SQL over unstructured, multimodal data (text, images, audio) with AI operators that filter, classify, extract, score, and join rows using large language models. GPU databases accelerate relational queries by running scans, joins, and aggregations on the GPU. Although there is a natural synergy between the two, surprisingly, these capabilities remain separate: semantic query engines run the relational layer on CPUs, while GPU databases lack first-class support for semantic operators.
We present GSQ, the first engine to address this gap. GSQ runs the relational operators of a semantic query on the GPU together with its AI operators in-process on the same GPU with cheaper, task-specialized, non-generative proxy models wherever possible. Across text, image, and audio workloads, GSQ runs semantic queries up to two orders of magnitude faster than served multimodal LLMs (MLLMs). GSQ broadens the applicability of GPU databases to GPU-native execution of semantic queries. - [9] arXiv:2612.05157 [pdf, other]
-
Title: How soon AI crawlers fetch new pages: a paired comparison with GooglebotComments: 12 pages, 2-columnSubjects: Databases (cs.DB); Information Retrieval (cs.IR); Networking and Internet Architecture (cs.NI)
A new page on a website, such as a product or an article, can enter an AI system's own index or training corpus only after the system's crawler has fetched it. How AI crawlers find and choose pages is undocumented, and the only published measurement of how soon they fetch new pages covers a single website. In this work, we measure whether and when eight AI crawlers and two search crawlers fetch a site's new pages, using a Kaplan-Meier analysis of the time to first fetch, paired with smartphone Googlebot on the same pages, on 2,677 Prerender customer accounts from February 2025 to September 2026. Within 30 days, the AI search crawlers reach 28 to 47% of the new pages on the median site and the training crawlers 31 to 65%, against 80 to 97% for Googlebot on the same pages, and the user-triggered fetcher ChatGPT-User reaches 22%. Most of what a crawler reaches, it reaches on the first day; by day 180 it adds 12 to 17 points, but the gap to Googlebot remains. The gap is not specific to new pages: each crawler reaches a site's established pages about as often as its new ones, it favors the pages Googlebot fetches most, and its reach does not grow on the same sites over 20 months. A bootstrap and a sign test over accounts find every gap significant. We conclude that AI crawlers fetch a smaller share of each site, chosen by importance, rather than reaching new pages late. Therefore, a page that is not among a site's most-fetched pages may stay out of an AI system's own index for months, while Google has it within days.
- [10] arXiv:2612.05260 [pdf, html, other]
-
Title: SemMV: Materialized Views for Semantic Query Processing over Evolving DataWanting Li (1), Hengze Lu (1), Zixin Wei (1), Shanghao Liu (1), Yongjun He (2), Wenqi Jiang (1) ((1) National University of Singapore, (2) ETH Zurich)Comments: 15 pages, 7 figuresSubjects: Databases (cs.DB)
Semantic query processing extends databases with semantic predicates evaluated by large language models (LLMs). Since LLM inference dominates the cost of semantic queries, existing systems employ various query optimization strategies to reduce this cost. Optimizing queries in isolation, however, overlooks redundant LLM calls across related queries that repeatedly access incrementally changing data. Exploiting this redundancy poses three challenges: determining which prior results can be reused, efficiently evaluating the rows those results leave undecided, and deciding when to refresh stored results as data change. In this paper, we present SemMV, a system that reduces semantic query processing cost by reusing prior results through materialized views. Specifically, SemMV comprises four components to address the aforementioned challenges. First, the validator conservatively judges relations between predicates to reduce the risk of incorrect reuse. Second, the query rewriter translates these relations into execution plans that reuse stored decisions to eliminate redundant LLM calls. Third, the two-sided scan algorithm reduces LLM calls on undecided rows, stopping when estimated precision and recall reach the specified target. Fourth, the maintenance manager proactively refreshes a view only when the expected savings from its reuse outweigh the refresh cost. Experiments on various real-world datasets and query workloads show that SemMV achieves a 57% reduction in total LLM calls and a 40% reduction in average query latency compared with re-executing every query, while keeping recall and precision against reference labels within 1% of the re-execution baseline.
- [11] arXiv:2612.06143 [pdf, html, other]
-
Title: Resource Utilisation and Optimization for Sustainable ComputingSubjects: Databases (cs.DB)
Scientific, smart city, and modern IoT applications continuously generate enormous amounts of heterogeneous data at high velocity. For most scientific experiments, the dataset schema is not known in advance. Traditional database management systems cannot handle real-time data loading to keep up with data generation speeds unless provided with more resources. Therefore, the data is initially stored in raw formats to reduce the storage time. The in-situ engines process queries directly on the raw data, eliminating the need to load data. However, in-situ engines suffer from high query execution time (QET) due to the necessity of parsing raw data each time increasing CPU resource utilization & energy requirements. A comprehensive study of the problems faced during raw data query processing like reparsing, heterogeneous data, high QET for online analytical processing (OLAP) queries are presented here. It discusses raw data processing flow & architecture, which explains the operations that must be performed on raw data to increase data maturity, reduce QET, and redundant resource utilization. The techniques and tools developed by researchers to resolve classified raw data processing challenges are presented in this work. After analyzing each problem category, the open issues related to raw data query processing have been identified and discussed. The efficient utilization of available resources is the core idea of most techniques. Cloud based data processing also requires optimal allocation of resources to reduce application running costs. Therefore, identifying resources needed by a query for Cloud based systems is crucial. A focused literature survey on resource utilization techniques has been done to understand how to monitor resource utilization by employing available tools to optimize required resources or maximize the utilization of existing resources for raw data query processing.
- [12] arXiv:2612.06162 [pdf, html, other]
-
Title: E8Q: Near-Optimal Low-Bit Vector Quantization Leveraging E8 Lattice Geometry for Fast Vector SearchComments: 14 pages, 13 figuresSubjects: Databases (cs.DB)
Vector quantization is widely used in vector search systems to reduce storage and computation costs by encoding high-dimensional vectors into compact representations. However, existing quantizers fail to simultaneously provide (1) training-free joint multi-dimensional codebooks, (2) high quantization similarity with strong optimality guarantees, (3) unbiased and FastScan-friendly distance estimation with tight error bounds, and (4) native sub-bit compression. In particular, they are mainly designed for high-accuracy vector quantization using multiple bits per dimension (bpd) and generally cannot operate below 1 bpd.
To address these limitations, we propose E8Q, a low-bit directional quantizer based on the roots of the E8 lattice that addresses all four aspects. For codebook design, it uses a geometrically well-distributed E8 root codebook to quantize each 8D subvector, enabling high-quality 1-bit quantization without training. For theoretical guarantees, we prove that its expected quantization similarity reaches 0.825, the highest known for 1-bit quantizers and at least 95.26% of the global optimum. For search performance, E8Q provides unbiased distance estimates with a provably tight error bound. We further develop E8Q-FS, a FastScan-friendly variant enabling parallel lookups on SIMD-register-resident tables. For compression, E8Q uses block-wise codeword selection to natively support bit rates as low as 0.5 bpd while limiting quantization-quality loss. Experiments show that E8Q can improve query throughput by up to 77.8% over the strongest baselines at 99.07% recall. At 0.5 bpd, E8Q improves the achievable recall by up to 10.83%.
New submissions (showing 12 of 12 entries)
- [13] arXiv:2612.04567 (cross-list from cs.CR) [pdf, html, other]
-
Title: SPRINT: Scalable Private Retrieval with Indexed Neighbor TreesComments: 24 pagesSubjects: Cryptography and Security (cs.CR); Databases (cs.DB)
Vector search is a core operation in systems for recommendation and retrieval-augmented generation, but query embeddings can reveal sensitive information. Private vector search must hide not only the query itself but also the data-dependent search path, while keeping retrieval accurate and affordable at scale. Existing private vector search methods either incur high server-side computation, require many rounds of client-server interaction, or suffer from poor retrieval quality. We present SPRINT, a private-search framework that treats search as a sequence of fixed-size retrieval steps: the server privately returns candidates, while the client scores them and chooses what to explore next. This separation lets the client make query-dependent search decisions without exposing them to the server. SPRINT realizes this design with a balanced hierarchy whose levels can be retrieved independently using private information retrieval (PIR), with sibling vectors packed to reduce PIR work. The hierarchy supports progressive results and a tunable logarithmic number of rounds, while total server-side computation is sublinear in the database size, without an additional multiplicative dependence on the number of rounds. SPRINT also shares retrieved candidates across a batch of queries, reducing amortized server computation. Experiments on real-world datasets show significantly improved accuracy-efficiency trade-offs over existing methods and substantial benefits from batched query processing.
- [14] arXiv:2612.05420 (cross-list from cs.DC) [pdf, html, other]
-
Title: Toward an Adaptive Optimizer for Generative Inference with Large Language ModelsSubjects: Distributed, Parallel, and Cluster Computing (cs.DC); Databases (cs.DB)
LLM inference systems expose a growing set of optimizations for memory, compute, scheduling, and execution, making it increasingly difficult to hand-tune the systems for evolving generative workloads. We argue for introducing a logical--physical separation for generative execution. Our vision is to represent inference through logical state, operators, and constraints, and to map admissible logical plans to cost-optimized physical realizations. Because inference state and resource conditions evolve during generation, planning must be state-dependent and adaptive, with support for both physical and logical replanning. This abstraction aims to provide a common foundation for composing existing LLM serving optimizations and for building more autonomous and cost-aware inference systems.
- [15] arXiv:2612.05609 (cross-list from cs.CR) [pdf, html, other]
-
Title: SPHENE: Rethinking Oblivious ANN Indexes with Differential PrivacySubjects: Cryptography and Security (cs.CR); Databases (cs.DB)
Outsourcing large, sensitive vector datasets to the cloud is a common deployment model for approximate nearest-neighbor (ANN) search. Encryption protects data contents, yet access patterns exposed during index operations can still leak information about the underlying records. To mitigate this leakage, oblivious ANN indexes have been developed. While full obliviousness (FO) enforces input-independent access traces, such protection often comes with substantial overhead. This motivates a relaxation that selectively releases index metadata to guide search toward promising candidates, which improves index efficiency under formal privacy guarantees.
We present SPHENE, an ANN index for server-side trusted execution environments (TEEs) that combines differentially private (DP) metadata releases with oblivious record processing, provably achieving differential obliviousness (DO) over TEE-internal and external access patterns. The static inverted-file index uses DPLloyd-based hierarchical partitioning, with DP centroids guiding search over padded posting lists and DP capacities setting scan lengths. Under a fixed lifetime privacy budget, dynamic SPHENE controls noise inflation and expected padding by buffering incoming vectors, reusing geometry between sparse reconstructions, and continually releasing capacities via an adapted Binary Mechanism. On Intel SGX, SPHENE achieves average search speedups of 94.9$\times$ (static) and 89.9$\times$ (dynamic) over the FO baseline, with amortized write costs reduced by at least three orders of magnitude.
Cross submissions (showing 3 of 3 entries)
- [16] arXiv:2401.04606 (replaced) [pdf, html, other]
-
Title: The Importance of Parameters in Database QueriesSubjects: Databases (cs.DB); Logic in Computer Science (cs.LO)
We propose and study a framework for quantifying the importance of the choices of parameter values to the result of a query over a database. These parameters occur as constants in logical queries, such as conjunctive queries. In our framework, the importance of a parameter is its SHAP score - a popular instantiation of the game-theoretic Shapley value to measure the importance of feature values in machine learning models. We make the case for the rationale of using this score by explaining the intuition behind SHAP, and by showing that we arrive at this score in two different, apparently opposing, approaches to quantifying the contribution of a parameter. The application of SHAP requires two components in addition to the query and the database: (a) a probability distribution over the combinations of parameter values, and (b) a utility function that measures the similarity between the result for the original parameters and the result for hypothetical parameters. The main question addressed in the paper is the complexity of calculating the SHAP score for different distributions and similarity measures. In particular, we devise polynomial-time algorithms for the case of full acyclic conjunctive queries for certain (natural) similarity functions. We extend our results to conjunctive queries with parameterized filters (e.g., inequalities between variables and parameters). We also illustrate the application of our results to "why-not" explanations (aiming to explain the absence of a query answer), where we consider the task of quantifying the contribution of query components to the elimination of a non-answer in consideration. Finally, we discuss a simple approximation technique for the case of correlated parameters.
- [17] arXiv:2607.23340 (replaced) [pdf, html, other]
-
Title: ABISS: Evaluating Text-to-SQL Systems Through Agent InteractionComments: Accepted to Findings of EACL 2027Subjects: Databases (cs.DB)
Real-world users frequently pose ambiguous or unanswerable questions that current Large Language Model (LLM)-based Text-to-SQL systems handle poorly. Three interconnected gaps hinder progress: incomplete taxonomies, the lack of scalable generation of realistic benchmark data, and evaluation limited to fixed, idealized conversations. We address these gaps through three contributions: (1) a unified taxonomy of 8 categories covering ambiguous and unanswerable questions; (2) a multi-agent generation pipeline that generates Natural Language Questions (NLQs), grounds them in SQL, and applies a ten-stage validation pipeline with council-based checks; and (3) ABISS (Ambiguity Benchmark using Interaction-Simulated Sessions), a dynamic simulation environment where Text-to-SQL agents interact with style-aware simulated users across multi-turn dialogues. Experiments with ten models, nine of them open-source, on BIRD- and Spider-based datasets reveal two bottlenecks. First, models often fail to recognize that a question is ambiguous, although they usually name its subcategory correctly once they do, and the correct label helps mostly on the questions whose type they miss. Second, models lose most when they answer without asking: once the simulated user supplies the missing information, their SQL is nearly as accurate as when it is given in advance. We release our code and a link to the datasets on GitHub (this https URL).
- [18] arXiv:2607.26356 (replaced) [pdf, html, other]
-
Title: Revisiting the Algebraic Foundation of Relational DataSubjects: Databases (cs.DB)
We revisit Tarski's Algebra of Relations (TAR), an old formalism of relations predating Codd's relational algebra by over 100 years, as a new foundation for relational databases. We argue TAR provides a better abstraction at both the semantic level and the physical level, in the context of modern application code and system architecture. To demonstrate the strengths of TAR, we design and implement Prela, a compositional and controllable query language, and show that queries written in Prela are concise, clear, and efficient.
- [19] arXiv:2611.38297 (replaced) [pdf, html, other]
-
Title: Where Should the Vectors Live? Locality-Aware Retrieval for RAG on Geo-Distributed SQLComments: Accepted for publication in the 2026 International Conference on Artificial Intelligence Centric Systems, Services, and Applications (AISSA). 9 pages, 4 figures, 5 tables. v2: copyright text removed from comments; the IEEE notice is on the first pageSubjects: Databases (cs.DB); Distributed, Parallel, and Cluster Computing (cs.DC); Information Retrieval (cs.IR)
Enterprise retrieval-augmented generation (RAG) increasingly runs vector search inside geo-distributed SQL databases, where the corpus is fresh, transactional, and subject to data-residency rules. Where the vectors live relative to their users then decides retrieval latency, freshness, and compliance. We compare five placement strategies on a three-region deployment of a commercially available geo-distributed SQL database with emulated wide-area latency and its native vector index: a centralized table, follower reads, a global table, and home-region partitioning searched globally or locally. The workload is 20,963 SQuAD passages with real questions. Approximate nearest neighbor search amplifies network distance: a remote top-10 query costs 4.2 round trips beyond its local cost, so medians span 6.4 ms to over 700 ms (112x) across strategies that differ only in placement. Local strategies pay elsewhere, in staleness, write latency, or missed answers. We propose LARR, a locality-aware retrieval router that searches the home partition first and escalates to a cross-region fan-out only when the best local distance exceeds a calibrated threshold. With 90% of questions issued from the answer's home region, LARR matches the fan-out's hit@10 (70.7% vs. 70.5%; 95% CI of the difference [-1.4, +1.9] points) at 5.9x lower mean latency. The result holds live on held-out questions, with production-style three-node-per-region replication, and on three real cloud regions (6.1x). With a second, transformer-based embedding model, LARR matches the fan-out at 3.5x lower latency, and its throughput advantage persists under concurrent load. A replicated centroid sketch (LARR-S) sharpens escalation when locality is weaker. We also report a pitfall with partitioned vector indexes.
- [20] arXiv:2612.02670 (replaced) [pdf, other]
-
Title: Refetch times of AI crawlers: a paired comparison with GooglebotComments: 14 pages, 2-columnSubjects: Databases (cs.DB); Information Retrieval (cs.IR); Networking and Internet Architecture (cs.NI)
AI answer engines learn about the web through three types of crawlers: training crawlers collect pages for future models, search crawlers keep the engine's index up-to-date, and user fetchers retrieve a page when a user's prompt triggers it. When a publisher changes a page, an answer engine can show the change only after one of these crawlers fetches the page again. Previous works have analyzed request counts and distinct pages, but none have measured how long a crawler takes to refetch a page. In this work, we measure the refetch time of ten crawlers (including eight AI crawlers) on Prerender customer sites using a Kaplan-Meier survival analysis, and compare it with Googlebot on the same domains in the same months. Googlebot fetched half of its pages again within 13 days on a typical customer's site. AI search crawlers are slower: OpenAI's took 28 days and Perplexity's more than 90. Training crawlers differ by operator, from 6 days for Meta's to 46 for Anthropic's and 66 for OpenAI's. User fetchers come back as often as users ask: OpenAI's took 10 days. A bootstrap and a sign test over customer accounts find these gaps significant, and they survive our robustness checks. We conclude that a change to a page can take weeks longer to reach AI search indexes than to reach Google's, and one and a half to two months to reach OpenAI's and Anthropic's training crawlers, which matters to every publisher whose prices, stock or facts change.
- [21] arXiv:2612.03007 (replaced) [pdf, html, other]
-
Title: Ultra-fast GPU Graph ANNS via Accuracy-Efficiency Co-designSubjects: Databases (cs.DB)
GPUs have been used to accelerate approximate nearest neighbor search (ANNS). While recent quantized graph ANNS has made significant progress on CPU, we find that directly porting CPU-side methods to GPU is ineffective. This is because using quantized distances to rank the beam perturbs traversal paths, increases search hops, and can offset the savings from cheaper distance computation. We present fastGANN, an accuracy- and hardware-aware GPU graph-ANNS method, to adaptively find the best accuracy-work balance and enhance GPU hardware utilization. fastGANN adopts a hybrid-precision search strategy. It preserves exact distances for precision-critical decisions, including beam ranking and expander selection, while using quantized estimates only for error-tolerant neighbor pruning. This reduces exact vector accesses without degrading convergence speed. However, pruning alone does not fully unlock the GPU; it leaves bandwidth underutilized. We thus introduce hardware-aware speculative expansion to explore multiple beam nodes per iteration, so that the work/bandwidth saved by pruning is converted into more parallelism. We also introduce a bounded phase-adaptive controller that adjusts pruning online from search progress and derives the speculation degree analytically from GPU bandwidth and occupancy, avoiding manual tuning. On an L40S GPU, across six datasets, fastGANN improves QPS at 95% recall@100 on average (geomean) by 6.5x over CAGRA, 5.2x over PathWeaver, and 4.6x over Jasper. We consistently observe significant speedups across various GPU models, graph types/degrees, recall targets, and quantizers. fastGANN scales to multi-GPU and outperforms cuVS by 3.4x on four H200 GPUs at billion scale.
- [22] arXiv:2612.03125 (replaced) [pdf, html, other]
-
Title: Supporting Time Series and Tabular Foundation Models in BigQueryHaoming Chen, Qiang Hao, Xi Cheng, Haiyang Qi, Jenny Ortiz, Jiashang Liu, Chaoyi Shen, Zehao Xu, Omid Fatemieh, Jing Jing Long, Yichen Zhou, Rajat Sen, Weihao Kong, Ayush Jain, Erez Louidor Ilan, Petros Mol, Abhimanyu Das, Steve Thomas, Weijie ShenSubjects: Databases (cs.DB)
Traditional database machine learning (DBMS-ML) systems rely on task-specific model training, which introduces operational complexity, resource-intensive training phases, and artifact-management overhead. Foundation Models (FMs) for time series (e.g., TimesFM) and tabular data (e.g., TabFM) enable training-free SQL inference -- via zero-shot forecasting and in-context learning -- directly on database tables. However, integrating multi-hundred-million-parameter models into a distributed query engine like BigQuery presents severe challenges in worker memory consumption, quadratic O(n^2 + nm^2) attention complexity, and distributed execution alignment.
In this paper, we present the design and production deployment of native TimesFM (AI$.$FORECAST) and TabFM (AI$.$PREDICT) in BigQuery. To address their distinct computational bottlenecks, we develop tailored execution architectures and systems optimizations: for TabFM, a decoupled two-stage prefill-decode architecture with 1 MB chunked Key-Value cache broadcast, stage-scoped shared-memory reuse, and deterministic class-balanced subsampling eliminates redundant in-context learning across workers and bounds per-worker decode memory; for TimesFM, a one-stage hash-partitioned C++ TFLite runtime delivers a 2.29x speedup over Python PyTorch, while 8-bit integer quantization provides an additional 2.53x resident memory reduction (4.15x combined) and 3.58x faster cold initialization with a -0.29% mean MASE shift. We evaluate our system across 56 GIFT-Eval time series benchmarks, enterprise forecasting workloads scaling to 10 million time series, and 51 TabArena tabular tasks. Our results prove the effectiveness of the integration, demonstrating that zero-shot foundation models scale to billions of rows and match or outperform fully trained models like XGBoost without manual training pipelines. - [23] arXiv:2611.27910 (replaced) [pdf, html, other]
-
Title: Decision Columns as an Index: Interpretable Embeddings for Explainable Entity Matching and SearchComments: 25 pages, 7 figures, including appendices. Evaluations on WDC Products and STaRK-AmazonSubjects: Information Retrieval (cs.IR); Artificial Intelligence (cs.AI); Databases (cs.DB)
Business data systems must determine whether records refer to the same entity and retrieve records satisfying requests whose decisive properties are implicit. As agents act on these records, both tasks require auditable reasons. Dense embeddings perform well but offer opaque coordinates, cannot be filtered by meaning, and require corpus re-encoding to add new properties. We propose interpretable embeddings built from decision columns: each column stores a decision model's calibrated answer to a natural-language question, with outcomes yes, no, or not stated. A record's embedding is its answers across an ordered set of questions. Similarity decomposes exactly into per-question contributions, and new questions add coordinates without altering existing ones.
On public product benchmarks, question-space retrieval matches dense candidate generation statistically in a retrieve-then-verify entity matcher, while providing exact explanations for accepted matches. Questions derived from retrieval failures triple mean reciprocal rank without re-encoding prior answers. For search, inferring the attributes of a suitable result outperforms encoding only the literal request, and combining question-space and dense scores improves retrieval, though not at our prespecified confidence threshold. A single small neural network predicts the full interpretable vector from an existing dense embedding, enabling corpus backfilling from a few thousand labeled rows at roughly 1/200 the cost. We position interpretable embeddings as a complementary, readable retrieval channel for explaining matches, filtering on attributes, and extending indexes as failures expose missing facts.