Bluesky Facebook Reddit Email

A cost-effective text-to-SQL approach based on adaptive refinement

04.02.26 | Higher Education Press

SAMSUNG T9 Portable SSD 2TB

SAMSUNG T9 Portable SSD 2TB transfers large imagery and model outputs quickly between field laptops, lab workstations, and secure archives.


The purpose of the Text-to-SQL task is to bridge the gap between natural language and SQL queries. Current approaches mainly rely on large language models (LLMs), but employing them for Text-to-SQL has three major limitations:

To address these issues, a research team led by Yingxia Shao published a new study on 15 March 2026 in Frontiers of Computer Science co-published by Higher Education Press and Springer Nature.

The team proposed an innovative framework called Semantic-Enhanced Text-to-SQL with Adaptive Refinement (SEA-SQL), which uses zero-shot prompts and GPT-3.5 to perform the Text-to-SQL task more effectively and economically. This method has been tested on multiple datasets, showing reduced costs and improved performance compared to previous GPT-3.5 based and GPT-4 based approaches.

In this research, they enhance the schema with semantic information to enrich database content and improve SQL queries through adaptive bias elimination and dynamic execution adjustment.

Specifically, the semantic-enhanced schema includes column values related to the question, which facilitates the LLM's identification and utilization of the appropriate tables and columns during SQL query generation. Subsequently, an adaptive bias eliminator, which is a fine-tuned small LLM (e.g., Mistral-7B), is used to eliminate the inherent biases of the LLM within the SQL queries, thereby enhancing the quality of the generated SQL queries. Finally, with dynamic execution adjustment, an iterative process of SQL execution and LLM reflection-correction is employed until the SQL query is executed successfully.

The results demonstrate that SEA-SQL achieves state-of-the-art performance in the GPT3.5 scenario with 9%-58% of the generation cost. Furthermore, SEA-SQL is comparable to GPT-4 with only 0.9%-5.3% of the generation cost.

Frontiers of Computer Science

10.1007/s11704-025-41136-3

Experimental study

Not applicable

SEA-SQL: semantic-enhanced text-to-SQL with adaptive refinement

15-Mar-2026

Keywords

Article Information

Contact Information

Rong Xie
Higher Education Press
xierong@hep.com.cn

Source

How to Cite This Article

APA:
Higher Education Press. (2026, April 2). A cost-effective text-to-SQL approach based on adaptive refinement. Brightsurf News. https://www.brightsurf.com/news/LVDEN65L/a-cost-effective-text-to-sql-approach-based-on-adaptive-refinement.html
MLA:
"A cost-effective text-to-SQL approach based on adaptive refinement." Brightsurf News, Apr. 2 2026, https://www.brightsurf.com/news/LVDEN65L/a-cost-effective-text-to-sql-approach-based-on-adaptive-refinement.html.