HarnessSQL Training Lifts Qwen3 on Spider 2.0-SQLite
The core insight is that evaluation harnesses create a train-deploy mismatch: models trained to emit one static query underperform when deployed agents must probe schemas and revise queries interactively. Teams building agentic SQL or tool-use systems should consider matching training and inference environments rather than adding capabilities at fine-tuning time. The method uses open Qwen models, so results are reproducible without proprietary systems.
A new paper (arXiv:2610.12274) introduces HarnessSQL, a training method for text-to-SQL database agents that trains models inside the same execution harness used at deployment.
Qwen3-14B improves from 22.2% to 54.
8% on Spider 2.0-SQLite, while Qwen3-8B rises from 15.
5% to 45.2%.
The approach builds isolated executable databases with hidden answer checks, keeps only verified teacher trajectories for SFT, and then applies execution-reward RL.
Both models also transfer to BIRD-Interact and LiveSQLBench.
Pay close attention to custom harnesses. This is a super interesting paper showing the impact of training inside the harness. Qwen3-14B goes from 22.2% to 54.8% on Spider 2.0-SQLite when it is trained in the same execution harness it uses at deployment. Text-to-SQL models are usually trained to write one static query. Deployed database agents inspect schemas, run probe queries and revise, and the harness for that only appears at inference time. HarnessSQL builds isolated executable databases with hidden answer checks. Teachers run inside the target harness; we keep only verified trajectories for SFT, then apply execution-reward RL. In addition, Qwen3-8B rises from 15.5% to 45.2%, and both models transfer to BIRD-Interact and LiveSQLBench. Paper: arxiv.org/abs/2610.12274 Chat with Paper: academy.dair.ai/papers/harness…📊 7 ⚡
This report is categorized under AITOP's "Papers" desk, focusing on China's AI industry and domestic foundation model ecosystem. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include HarnessSQL, Qwen3, Text-to-SQL, Spider 2.0.
Source attribution: curated from elvis (@omarsar0).