Beyond Static Pipelines: Learning Dynamic Workflows for Text-to-SQL
Yihan Wang, Peiyu Liu, Runyu Chen, Wei Xu · 2026
Read Beyond Static Pipelines: Learning Dynamic Workflows for Text-to-SQL by Yihan Wang, Peiyu Liu, Runyu Chen, Wei Xu (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2602-15564.txt.
Description
Wang and colleagues argue that text-to-SQL systems are held back by fixed pipelines. One static workflow cannot stretch across varied databases, odd distributions, and long-tail questions, yet users are left to pick methods by trial and error. The authors show, in theory and in tests, that an optimal dynamic policy beats the best static workflow, with gains driven by how much candidate workflows differ from each other.
Their SquRL frame uses reinforcement learning to let a language model build its workflow on the fly at inference time. A rule-based reward guides training, dynamic actor masking widens exploration, and pseudo rewards speed learning. Benchmark tests show dynamic construction beating the best static methods, with the largest gains on complex and out-of-distribution queries. Code is public.
Catalog record
| CREATOR | Yihan Wang, Peiyu Liu, Runyu Chen, Wei Xu |
|---|---|
| YEAR | 2026 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 64 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2602-15564