跳到正文
elvis· @omarsar0 · X·· 3 小时前AI 评分51
AI 导读

HarnessSQL 论文提出 harness 原生训练框架,在目标执行 harness 内训练 SQL Agent。Qwen3-14B 在 Spider 2.0-SQLite 上从 22.2% 提升到 54.8%,Qwen3-8B 从 15.5% 提升到 45.2%,且两个模型都能迁移到 BIRD-Interact 和 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: https://arxiv.org/abs/2610.12274

Chat with Paper: https://academy.dair.ai/papers/harnesssql-harness-native-training-for-sql-agents-in-realistic-database-environm-2610.12274

来源:elvis · x.com