Aube.Tuesday, 24 November 2026Support us

Aube.

News of progress
LabSingle source

In research, an 8B model beats 32B rivals on database queries

Languages for this article
Original · ENDEESFRITPT

Originally written in English. 6 languages available; yours is one click away.

Illustrative photo: BalticServers data center
Illustrative photo: BalticServers.com · CC BY-SA 3.0 · Wikimedia Commons

Text-to-SQL means turning a plain-language question into the query a database can run. A team from the Hong Kong University of Science and Technology (HKUST) has just shown that a 8B-parameter model, trained the right way, can answer such questions better than models four times its size. On Spider 2.0-SQLite, a benchmark of enterprise-style database tasks, the 8B model rose from 15.5% to 45.2%, and a 14B version reached 54.8%.

The system, HarnessSQL, is built on DeepSeek's open-source Harness agent framework, the software layer that gives a model tools and lets it work through several steps in a row. The core component, DSH-SQL, gives the model four tools: listing tables, reading schemas, executing queries and submitting a final answer. The team built 79 sandboxed databases from Spider 2.0-Lite and Spider 2.0-DBT, converting DuckDB projects to SQLite, and ran them read-only with a 60-second timeout. Training starts with supervised fine-tuning on full agent trajectories, averaging 11,800 tokens, 16 turns and 14 query executions. The tool outputs are masked out of the loss, so the model learns from its own steps rather than from the database's replies. Reinforcement learning with DAPO, one of several methods the team compared, comes next.

The gap with larger models is the headline. The three 32B baselines, OmniSQL-32B, Arctic-Text2SQL-32B and Qwen2.5-Coder-32B, scored between 14.8% and 16.3% on Spider 2.0-SQLite. On LiveSQLBench, a second benchmark, the 8B and 14B models reached 24.8% and 28.5%, against 7.0% to 8.9% for the 32B baselines.

The ablations show where the gains come from. Reinforcement learning applied directly reached only 20.0%, and supervised training alone gave 30.4% for the 8B model and 37.8% for the 14B. Trajectories collected without the harness yielded just 9.6%. Context length mattered too: the 8B model scored 27.4% with an 8K window and 45.2% at 32K. Among reinforcement learning algorithms, GRPO reached 40.7%, GSPO 43.7% and DAPO 45.2%.

These are the team's own numbers, reported in an arXiv paper posted in October, and the coverage contains no independent evaluation. The tests run on the team's sandboxed copies of databases, so they describe performance on these benchmarks, not on production systems. For companies that want staff to query their own databases in plain language, the finding is that a smaller model, trained this way, can outperform much larger ones on these tests. The paper gives no timeline for use beyond research and no pricing, but the code is public on GitHub, and it joins a growing set of projects built on DeepSeek Harness since its open-source release. The authors' conclusion is that a well-designed harness, rather than model scale alone, is what unlocks multi-step reasoning over real databases.

45.2%Score of the 8B model on Spider 2.0-SQLite, up from 15.5% before training (lab results)

Sources — read the originals(Paris time)

PandailyEN
0000

Read next

Comments

Loading the thread…

Sign in to leave a comment. Sign in