# Think2SQL: Blueprinting Reward Density and Advantage Scaling for Effective Text-to-SQL Reasoning

*Simone Papicchio, Simone Rossi, Luca Cagliero, Papotti Paolo*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/156768) · [Open on the map](../papers.html#p156768)

Category: [LLM Post-Training: RL & Distillation](../pcat/18.md) › [Reward Shaping for LLM Reasoning](../pgroup/240.md) · Type: empirical study · Keywords: reinforcement learning with verifiable rewards, reward density, advantage scaling, query answering, model capacity, parameter-efficient reasoning

Areas: [LLM Reasoning](../areas/reasoning.md) › Reasoning Optimization › Process Reward Modeling; [RL for LLMs & Agents](../areas/llm-rl.md) › LLM Reasoning Reinforcement Learning › Reinforcement Learning for Reasoning

## Summary
Think2SQL introduces a systematic empirical study on injecting reasoning capabilities into query answering using Reinforcement Learning with Verifiable Rewards (RLVR), uncovering how reward density and advantage scaling affect model performance and delivering a 4B-parameter model whose reasoning matches state-of-the-art systems like o3.

## Explained to a 5-year-old
Think2SQL helps a computer learn how to answer questions about tables. It gives the computer small, helpful hints instead of just yes or no, so it can think step by step. The computer learns faster when it gets lots of hints if it is small, but big computers can learn with fewer hints. This makes the computer good at solving puzzles like the ones in games.

## Explained to a 5-year-old, longer
Imagine you have a big book of puzzles where each puzzle asks you to find the right answer from many tables of information. The computer normally just gets a simple yes or no when it guesses, which is not enough to understand the puzzle. Think2SQL changes this by giving the computer many small hints that tell it exactly what part of the answer is right, like a teacher pointing out each piece. The researchers tried giving these hints to both small and big computers. They found that small computers need lots of hints and gentle encouragement to improve, while big computers can learn well with just a few hints and a bit more push. They also looked at how starting from scratch works and how copying knowledge from other computers can sometimes help or even hurt. Finally, they made a small computer (4 billion parts) that can solve these puzzles almost as well as the biggest, most powerful computers out there. All of this work is shared online so other people can use it to make their own helpful computers.

## For a technical reader
The paper presents an empirical investigation of reward design for reasoning in query-answering tasks using RLVR. It introduces an execution-guided dense reward that provides fine-grained feedback, and it analyzes how advantage scaling interacts with model size, recommending dense rewards and conservative scaling for smaller models and sparse signals with aggressive scaling for larger models. The study also examines cold-start effects and the impact of distillation, ultimately delivering a 4B-parameter model that matches state-of-the-art performance and open-sourcing the full toolkit.

## Problem
Enabling language models to reason effectively over complex, multi-table database queries while remaining parameter-efficient is challenging, as current methods often rely on sparse or binary feedback that limits performance.

## Method
The approach conducts an empirical study on injecting reasoning into query answering using Reinforcement Learning with Verifiable Rewards (RLVR). It investigates reward density, advantage scaling, and model capacity, proposing an execution-guided dense reward and analyzing scaling strategies for different model sizes.

## Results
The approach shows that dense rewards and conservative advantage scaling improve performance on smaller models, while larger models benefit from sparse signals and aggressive scaling, achieving a 4B-parameter model whose reasoning matches that of state-of-the-art models like o3.

## Contributions
The paper provides a systematic analysis of reward density and advantage scaling for reasoning in query answering, proposes an execution-guided dense reward, and maps performance trade-offs across model sizes, releasing models and code as a blueprint for RLVR optimization.

## Practical relevance
By releasing models, datasets, and code, the work offers a practical blueprint for optimizing RLVR in query answering, enabling researchers and practitioners to replicate and extend the findings.

## Research questions this paper is counted under

- [How can language models capture structural properties of tabular data for accurate reasoning?](../q/685.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/156768)
