Think2SQL: Reinforce LLM Reasoning Capabilities for Text2SQL

Simone Papicchio, Simone Rossi, Luca Cagliero, Paolo Papotti · 2025

Read Think2SQL: Reinforce LLM Reasoning Capabilities for Text2SQL by Simone Papicchio, Simone Rossi, Luca Cagliero, Paolo Papotti (2025) 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-2504-15077.txt.

Description

Simone Papicchio, Simone Rossi, Luca Cagliero, and Paolo Papotti studied how to strengthen language models at writing SQL in twenty twenty-five. Translating questions into database queries is easy for big models but hard for small ones, especially across many tables in zero-shot settings. Fine-tuning helps only so far.

The team compared reasoning strategies head to head: general reasoning, training on reasoning traces, and reinforcement learning with verifiable rewards. Their key finding is that partial scoring — rewarding a query by how its executed result partly matches — guides learning even when the output is not fully right. Small models gained most from reasoning-aware training. One fourteen-billion-parameter model beat models over four hundred billion on the hardest benchmark. The work shows reward design matters as much as model size.

Catalog record

CREATORSimone Papicchio, Simone Rossi, Luca Cagliero, Paolo Papotti
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE55 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2504-15077

Browse the full library · About the Tower of Babel