A Simple and Fast Way to Handle Semantic Errors in Transactions
Jinghan Zeng, Eugene Wu, Sanjay Krishnan

TL;DR
This paper introduces a middleware framework that manages semantic errors in LLM-generated database transactions, ensuring consistency and enabling human review and removal of incorrect transactions.
Contribution
It proposes a novel middleware based on Invariant Satisfaction (I-Confluence) to handle long-lived, potentially erroneous transactions while maintaining database consistency.
Findings
TPC-C benchmark evaluation demonstrates system performance impacts.
Transaction frequency and human review influence system throughput.
Invariant completeness affects the effectiveness of error handling.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsArtificial Intelligence in Law · Business Process Modeling and Analysis · Outsourcing and Supply Chain Management
