Аугментация данных для задачи Text-to-SQL

Сенчилов Владислав Владимирович, Arthur Andreevich Filatenkov · Sovremennye informacionnye tehnologii i IT-obrazovanie. · 2026

The Text-to-SQL task aims to automatically generate an executable SQL query from a natural language question. The main challenges include producing structurally complex multi-table queries with joins, aggregation, and nested subqueries, and ensuring that the model generalizes to database schemas not seen at training time. The work presents a reproducible data augmentation pipeline for a compact T5-base model, combining reverse (SQL→NL) generation of question–query pairs, controlled paraphrasing of user questions, and automatic filtering of low-quality variants. The pipeline also includes automatic execution-based validation: generated SQL is executed against a test database to verify that the result set matches the intended semantics. The goal is not to surpass current state-of-the-art benchmark results, which typically rely on very large language models, but to test the hypothesis that targeted data augmentation can substantially improve a model with only a few hundred million parameters, instead of requiring models with billions to tens of billions of parameters. Quality is evaluated using Exact Match (structural match to reference SQL) and Execution Accuracy (match of query results). The study shows that this approach improves robustness on complex questions and moves compact models closer to practical deployment.

Cited by 0 works.

Authors