Papers for

database engineers

Papers whose findings have a practical use for this group, as judged from the abstract. Open a paper to read what it means in practice.

Agentic retrying drives query improvement more than feedback style

What Drives Recovery in Agentic Text-to-Cypher? LAST-CQ: An LLM Agent Self-Refinement Framework

Abstract: Agentic pipelines for structured-query generation are rapidly expanding, but it is unclear which part of the loop produces the gain. We use LAST-CQ -- a five-agent, training-free, execution-grounded Text-to-Cypher framework -- as an instrumented testbed, running three counterfactuals over 2,471 live-database queries and six backbones spanning three vendor scale tiers. Removing correction is worth between 3.1% aggregate execution-BLEU against the single-pass system and 12.3% against a no-refinement counterfactual (up to 80.7% for the weakest backbone). Replacing schema-grounded, LLM-synthesised feedback with raw database error strings costs almost nothing (20.9% vs. 19.9% naive exact match; <0.2% end-to-end; equivalent within $\pm 0.075$ set-F1 by two one-sided tests). Spending the same call budget on parallel sampling degrades quality by 10-11%. What works is detecting failure and routing it to a retry, not the feedback sophistication or number of samples. LAST-CQ itself recovers 91.7% of queries that fail under single-pass generation, while a query that succeeds first time still costs exactly one LLM call. We also show that n-gram overlap on serialised results is not a bound in either direction: it over-scores against set equivalence on 65.9% of results while under-scoring against judged semantics. Finally, we calibrate our LLM judge against blind human labels and find it optimistic by 9 points.

Fri 11 SeptArtificial IntelligenceComputation and LanguageMachine Learning
The gist
Generating database queries from text can be hard because the system might make mistakes. The authors study a multi-agent system that tries queries, notices failures, and retries to fix problems. They find that simply detecting failures and retrying is what leads to better results, not complex feedback or more guesses. Their method recovers most queries that initially fail, making the system much more reliable. They also show that some common ways to measure success can be misleading.
Open 2609.12746v1

Modeling connections in linked database tables improves performance

InRTL: Effective Intra-Inter Interaction Learning for Relational Tables

Abstract: Relational table learning has recently emerged as an important research direction for modeling multiple tables connected through primary key-foreign key (PK-FK) relationships. Despite recent advances, a principled modeling framework tailored to this task remains underexplored. In this paper, we propose Intra-Inter Relational Table Learning (InRTL), a unified framework that explicitly models dependencies both within and across relational tables. Specifically, InRTL formalizes two complementary interaction patterns: intra-table interactions, describing associations among rows within the same table, and inter-table interactions, describing dependencies between rows across PK-FK-linked tables. To model these dependencies, we develop a column-aware table encoder to generate initial row representations, followed by Transformer-based self-attention and cross-attention modules for intra-table and inter-table learning, respectively. To further improve scalability, InRTL incorporates linearized attention and heterogeneous graph neural networks to simplify the self-attention and cross-attention operations. Extensive experiments on ten datasets covering 24 real-world tasks demonstrate the effectiveness of our approach. Code is available at https://github.com/W1nterFloW/InRTL.

Fri 11 SeptMachine LearningArtificial Intelligence
The gist
Data in many real-world applications is stored in multiple tables linked by keys. The authors propose a new way to teach computers to understand both relationships inside one table and connections across different tables. They developed a system called InRTL that uses advanced techniques to capture these two kinds of patterns effectively. Experiments show this method helps computers learn from complex linked tables better than before.
Open 2609.12712v1

Subgroup packing reduces server cost in batched PASTA transciphering

Subgroup Packing for Batched PASTA Transciphering

Abstract: With transciphering, a server converts symmetrically encrypted records into homomorphic ciphertexts without learning the records or the symmetric key. For the PASTA cipher, this conversion involves dense linear maps whose implementation depends on how record words are arranged in the ciphertext. We ask whether rearranging a fixed batch can reduce its conversion cost. Instead of storing each record's words in a contiguous block, our layout interleaves records so that cyclic word shifts preserve each record's positions, which form a coset of a cyclic subgroup. For direct evaluation as a sum of masked translations, we characterize the required displacements and relate their counts, 255 for the contiguous layout and 128 for the subgroup layout, to a prior transversal-difference invariant. We implement three equally batched schedules for complete PASTA-3 conversion and subsequent public subset-sum queries in HElib. Across twelve paired corpora under six homomorphic keys, all 24 direct and subgroup conversions and all 48 subsequent queries return the expected values and required zeroes. The median paired ratio of direct to subgroup server cost is 1.60, including fresh public generation, conversion and two queries. The reduction comes with less remaining noise capacity. These results establish a packing-dependent cost--noise tradeoff.

Fri 11 SeptCryptography and Security
The gist
Converting encrypted data from one form to another often costs a lot in computing power. This paper looks at a special way of arranging data, called subgroup packing, that can cut the cost of one such conversion process by about 40%. The authors tested their method on real tasks using existing software and found it works well but with some tradeoffs in how much noise remains in the data. This offers a new way to balance cost and accuracy when handling encrypted information.
Open 2609.12624v1

Deep learning model improves database query size estimates

QEmbed: A Deep Learning Based Cardinality Estimator for Efficient Query Processing

Abstract: Cardinality estimation is at the core of any commercial database system for efficient query processing. Over the decades, non-learning-based estimation techniques (e.g., histogram-based, sampling-based) have been widely used in both commercial and open-source database platforms. However, these techniques are only effective when the number of columns in a table is small, as they cannot properly capture dependencies between multiple attributes. Recently, learning-based approaches have been shown to perform significantly better than the heuristic methods that have been used for the past three decades. Despite this success, existing learned models often struggle to balance memory efficiency and accuracy when dealing with datasets that mix high and low cardinality attributes. In this paper, we propose a deep learning model formally called QEmbed. Our model is built upon the Masked Autoencoder for Distribution Estimation (MADE) auto-regressive framework to learn joint data distributions for selectivity estimation. To improve data representation and overcome the limitations of using a single encoding method, we design a hybrid encoding scheme that combines one-hot and embedding encodings. This hybrid design enables QEmbed to retain fine-grained attribute information for smaller domains while capturing compact semantic patterns for large, sparse domains. We capture attribute correlations by factoring the joint data distribution into a series of conditional probabilities. This approach naturally accommodates both point and range queries. Through extensive experiments, we show that while QEmbed faces a latency trade-off on extremely wide schemas, it provides highly reliable cardinality estimates overall. A key advantage of our model is that it reduces extreme tail errors (maximum Q-errors), avoiding catastrophic estimation failures on complex, highly correlated workloads.

Fri 11 SeptDatabases
The gist
Estimating the size of data returned by a database query is important for making queries run efficiently. Traditional methods have trouble when tables have many columns or when the data has complicated relationships. The authors present QEmbed, a deep learning approach that combines different ways of representing data to better understand these relationships. This helps provide more accurate estimates, especially on complex data, reducing large errors that can cause slow or failed queries. Although it may run slower on very wide tables, it generally gives more trustworthy results.
Open 2609.12535v1

Large language models struggle to normalize databases accurately

Can LLMs Normalize Databases? A Benchmark and Multi-Agent Framework for Schema Normalization

Abstract: Large Language Models (LLMs) are increasingly used to generate structured outputs, but their reliability remains unclear when those outputs must satisfy database-level constraints. We study this issue through database normalization, involving reasoning about functional dependencies, lossless join decompositions, and inter-table constraints. We introduce a Database Normalization Benchmark (DNBENCH), comprising 3,275 samples for evaluating LLM-driven database normalization from 1NF to BCNF. DNBENCH uses a three-axis protocol to measure semantic equivalence, structural accuracy, and logical validity. Across Single, Complex, and Real World levels, DNBENCH uncovers recurring failures in dependency inference, schema decomposition, and inter-table constraint reconstruction. We further propose Multi-Agent Reasoning for Schemas (MARS), which separates evidence extraction, violation diagnosis, and decomposition planning from schema generation and verification. MARS improves the DNB-SCORE by 82.0% over the single-prompt baseline. All artifacts will be released upon acceptance.

Thu 10 SeptComputation and Language
The gist
Making sure databases are organized properly is hard because it needs checking complex rules and relationships between data. The authors created a big test set to see how well large language models do this kind of organization, called normalization. They found these models often make mistakes understanding the necessary rules and breaking the databases into correct parts. To fix this, the authors designed a new system where multiple special agents work together to better understand and organize the database schemas, improving accuracy a lot.
Open 2609.11141v1

Selective revalidation reduces conflicts for long-running AI decisions

From Version Conflicts to Decision Conflicts: Selective Revalidation for Long-Running AI Agents

Abstract: Long-running AI agents may read state, reason, wait for tools or human approval, and perform an external action much later. The state that justified the action can change in the meantime. For example, after an agent proposes an 80 GBP refund under a limit of 100, a customer-name change affects only presentation metadata, a new limit of 90 still permits the refund, a limit of 50 invalidates it, and a refund issued by another worker must prevent a duplicate. Standard optimistic concurrency control and version checks can detect that previously read state has changed, but by themselves do not determine whether that change invalidates the pending action's justification. We call any detected version change a version conflict; when that change invalidates the action's justification, it is also a decision conflict. ATR records the explicit, executable conditions that justify a pending action and rechecks only the conditions affected by a change before releasing the external operation. It can retain the action, refresh non-decisive metadata, require replanning, or block execution; a target-side transaction or compare-and-set binds checked state to commit. Across 210,000 controlled executions over 15 mutation cases, ATR matched every developer-specified outcome with no false allows or blocks. In ten durable SQLite checkpoint/resume cells, it evaluated 0.6 conditions per change versus 6.0 for FullScan. At 4,093 recorded reads, ATR took 9.3 microseconds versus 2595.9 microseconds for FullScan. These deterministic results establish controlled feasibility, not production generality or automatic extraction of the required conditions.

Mon 7 SeptArtificial IntelligenceDatabases
The gist
Sometimes AI systems plan actions based on information that changes by the time they act. The researchers show a way to check only the parts of the information that matter when changes happen, rather than rechecking everything. This approach helps avoid mistakes like acting on outdated data or unnecessarily blocking valid actions. Their tests showed the method worked accurately and much faster than checking all conditions every time.
Open 2609.08015v1