Metraipolis › archive › dc_f8e48e8718e4
HarnessSQL: Harness-Native Training for SQL Agents in Realistic Database Environments — arXiv:2610.12274
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2610.12274
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-09T06:13:30.209Z
- SHA-256 of the archived text
11aa0ac1e5f0ec8da62fc5a42d8b11d7b2e5b0c54c01957ac4d5e24ede925131- Stable URL of this page
https://metraipolis.com/documento/dc_f8e48e8718e4
How to cite
HarnessSQL: Harness-Native Training for SQL Agents in Realistic Database Environments — arXiv:2610.12274 — arXiv (en), https://arxiv.org/abs/2610.12274 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_f8e48e8718e4 (Metraipolis archive dc_f8e48e8718e4, sha256 11aa0ac1e5f0ec8da62fc5a42d8b11d7b2e5b0c54c01957ac4d5e24ede925131)
BibTeX
@misc{dcf8e48e8718e4,
title = {HarnessSQL: Harness-Native Training for SQL Agents in Realistic Database Environments — arXiv:2610.12274},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2610.12274},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_f8e48e8718e4; sha256 11aa0ac1e5f0ec8da62fc5a42d8b11d7b2e5b0c54c01957ac4d5e24ede925131},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.12274. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Text-to-SQL models are commonly trained to map questions directly to static queries, whereas real-world database agents operate through stateful, multi-turn interaction with live databases -- inspecting schemas, executing probe queries, diagnosing errors, and revising hypotheses. This creates a critical train-deploy mismatch, as the execution harness that mediates this interaction is introduced only at inference time. To bridge this gap, we propose HarnessSQL, a harness-native post-training framework that preserves the full interaction structure throughout both supervised fine-tuning and reinforcement learning. HarnessSQL builds isolated, executable database environments paired with hidden execution oracles, rolls out teachers directly inside the target SQL harness, and retains only verified trajectories for full-sequence SFT, followed by execution-reward RL. Across Spider 2.0-SQLite, HarnessSQL dramatically boosts the execution accuracy of compact models, raising Qwen3-8B from 15.5% to 45.2% and Qwen3-14B from 22.2% to 54.8%, while transferring effectively to out-of-distribution interactive benchmarks such as BIRD-Interact and LiveSQLBench. Our findings demonstrate that training database agents directly within their execution harness is essential for mastering complex, long-horizon database workflows. Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.CL, nuovi lavori del giorno). Categorie arXiv: Computation and Language (cs.CL). Pagina del lavoro: https://arxiv.org/abs/2610.12274 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-09T05:47:15.401Z dalla pagina https://arxiv.org/list/cs.CL/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).