ACTS-SQL: Agentic and Critic-Oriented Tree-Structured SQL Correctness with Large Language Models

Xinmei Huang, Jie Song, Peng Li, Fuxin Jiang, Jing Zhang +8 more
8/15/2026
cs.AI

No confident code implementation found for this paper.

Abstract

Large Language Models (LLMs) have been increasingly adopted in Text-to-SQL systems, yet SQL errors remain a major obstacle in real-world Text-to-SQL inference pipelines. Existing SQL correction approaches either rely on large-scale, high-quality training data with substantial overhead, or adopt single-path agentic workflows that are brittle to early mistakes and prone to error propagation.

Show full abstract

To develop a practical SQL correctness system for industrial scenarios, we present a training-free framework that formulates SQL correction as a plan-guided, tree-structured debugging process. By maintaining multiple correction strategies and enabling backtracking, the framework mitigates error accumulation during iterative refinement. We further integrate execution-based verification and clause-level diagnostic tools to support strategy pruning and precise error localization. We evaluate the system on the BIRD-Critic benchmark and observe consistent accuracy gains over strong LLM backbones and representative agent-based baselines, achieving a 9.42% improvement over the previous state-of-the-art method. The framework is also deployed in the Torch Log Service (TLS) of Volcano Engine to support an online Text-to-TLS API. In production, it improves execution accuracy from 36.77% to 53.61% on real user queries with a representative strong LLM backbone (GPT-5). These results demonstrate the effectiveness and stability of our approach in real-world deployments.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{huang2026actssql,
  title  = {ACTS-SQL: Agentic and Critic-Oriented Tree-Structured SQL Correctness with Large Language Models},
  author = {Xinmei Huang and Jie Song and Peng Li and Fuxin Jiang and Jing Zhang and Tieying Zhang and Jianjun Chen and Chenming Liu and Tao Yang and Maoyin Liu and Wenda Li and Hong Chen and Cuiping Li},
  year   = {2026},
  eprint = {2608.15145},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.15145v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2608.15145.svg)](https://codeofpaper.com/paper/2608.15145)

Discussion