mlsanityData to 14 Oct 2026

A Simple and Fast Way to Handle Semantic Errors in Transactions

arXiv 2412.12493 ↗First posted 17 Dec 2024cs.DB cs.AIcited by 1

On the map: LLM agents and tool use → Web, search, and research agents

Abstract (arXiv)

Many computer systems are now being redesigned to incorporate LLM-powered agents, enabling natural language input and more flexible operations. This paper focuses on handling database transactions created by large language models (LLMs). Transactions generated by LLMs may include semantic errors, requiring systems to treat them as long-lived. This allows for human review and, if the transaction is incorrect, removal from the database history. Any removal action must ensure the database's consistency (the "C" in ACID principles) is maintained throughout the process. We propose a novel middleware framework based on Invariant Satisfaction (I-Confluence), which ensures consistency by identifying and coordinating dependencies between long-lived transactions and new transactions. This middleware buffers suspicious or compensating transactions to manage coordination states. Using the TPC-C benchmark, we evaluate how transaction generation frequency, user reviews, and invariant completeness impact system performance. For system researchers, this study establishes an interactive paradigm between LLMs and database systems, providing an "undoing" mechanism for handling incorrect operations while guaranteeing database consistency. For system engineers, this paper offers a middleware design that integrates removable LLM-generated transactions into existing systems with minimal modifications.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Web, search, and research agents, one of 16 directions in LLM agents and tool use. First posted on arXiv 17 Dec 2024.

Builds on

0 of 0 references.

No references here yet.

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2024Tool-Assisted Agent on SQL Inspection and Refinement in Real-World Scenarios
  2. 2026When JSON Is Not Enough: Semantic Reliability of Schema-Constrained LLM Ordering Agents
  3. 2026ACTS-SQL: Agentic and Critic-Oriented Tree-Structured SQL Correctness with Large Language Models
  4. 2026DBA-Bench: A Production-Fidelity Benchmark for LLM-Based Database Operations Agents
  5. 2026Trace Integrity for LLM Data Agents: A Vision for Auditable Structured Reasoning in Real-World Systems
  6. 2024Can LLMs substitute SQL? Comparing Resource Utilization of Querying LLMs versus Traditional Relational Databases
  7. 2026Can LLMs Normalize Databases? A Benchmark and Multi-Agent Framework for Schema Normalization
  8. 2025Semantic Integrity Constraints: Declarative Guardrails for AI-Augmented Data Processing Systems