ReViSQL-K2.6 Tops Text-to-SQL Benchmarks with Expert-Cleaned RLVR
Summary:UIUC Kang Lab researchers used Tinker from Thinking Machines Lab to fine-tune Kimi-K2.6 with reinforcement learning from verifiable rewards, producing ReViSQL-K2.6. The team also released BIRD-Platinum, the Arcwise-Plat-SQL benchmark, code, and training recipes. An audit of 2,500 BIRD Train samples found at least one annotation problem in 61.1% of instances, while 52.1% contained incorrect gold SQL. The official report claims 88.55% single-sample accuracy, with 16-sample self-consistency exceed
Core Result
UIUC Kang Lab researchers used Tinker from Thinking Machines Lab to train ReViSQL-K2.6 from Kimi-K2.6 with reinforcement learning from verifiable rewards, or RLVR. The project released its code, BIRD-Platinum, Arcwise-Plat-SQL, and training recipes. Instead of relying on separate scaffolding stages for schema linking, SQL generation, correction, and selection, the approach trains database-schema understanding and SQL generation into one model.
On Arcwise-Plat-SQL, the official report gives ReViSQL-K2.6 a single-sample accuracy of 88.55%, compared with 86.75% for GPT-5.6 Sol Ultra and 84.94% for Claude Fable 5. With 16-sample self-consistency, accuracy exceeds a 92.96% human proxy at an official cost of $0.56 per task, or roughly 12%–15% of the cost of the two frontier-model comparisons. These are project-reported figures and should not yet be treated as independently reproduced SOTA evidence.
Why Data Quality Matters More Than More Scaffolding
1. Removing reward noise before policy optimization
The team audited 2,500 BIRD Train instances and found defects in the questions, external knowledge, and reference SQL:
| Annotation issue | Share of audited instances | |---|---:| | Incorrect gold SQL | 52.1% | | Flawed natural-language question | 26.2% | | Incorrect external-knowledge entry | 18.2% | | Unanswerable given the schema, discarded | 1.5% | | At least one issue | 61.1% |
The categories overlap and must not be summed. The 52.1% figure is an annotation-error rate, not a model failure rate during RL. Incorrect references are particularly harmful in RLVR: a verifier can mark a correct query wrong, or accept an incorrect query that coincidentally produces the target result, reversing the effective learning signal.
The correction workflow combined an OpenAI o3 pre-audit with human expert review, independent verification by another expert, and iterative conflict resolution. The o3 auditor achieved 90.6% precision for detected annotation mistakes but covered only 24.5% of the errors flagged by humans. That pattern supports using an LLM for high-precision triage while retaining human adjudication for ambiguous cases.
2. Why RLVR amplifies label errors
In a standard RLVR setup, a policy generates SQL and a verifier returns a scalar reward. The objective can be represented as J(θ)=E[r(x,y)], with a policy-gradient approximation of E[(∇θ log πθ(y|x))·r(x,y)]. The reward becomes the main learning signal, so a corrupted reference does not behave like harmless augmentation noise; it can directly optimize the model toward the wrong behavior.
Text-to-SQL appears naturally verifiable because candidate queries can be executed against a database. Execution equivalence, however, is not always business-semantic equivalence. Coincidental matches, NULL semantics, floating-point differences, ordering rules, transaction state, and permissions can all create false positives or false negatives. A production verifier must specify whether it compares result sets, query plans, or business-level semantics rather than treating successful execution as sufficient.
3. Reward shaping and the remaining reproducibility gap
The team says it reshaped the reward to target two common failure modes in text-to-SQL RLVR. In practice, reward shaping can turn sparse execution outcomes into denser intermediate signals covering schema selection, query structure, execution success, and semantic correctness, reducing gradient variance and accidental rewards.
The supplied article text does not preserve the exact definitions of those two modes, their weights, or their calibration procedure. Those details should be recovered from the technical report before treating a generic shaped-reward formulation as the authors' implementation. In particular, implementations should test whether the reward favors semantically shallow but executable SQL, and should guard against new forms of reward hacking.
4. SC-16 is neither a single call nor conventional agent voting
ReViSQL-K2.6 generates 16 SQL candidates from the same prompt, groups them by execution result, and randomly selects one query from the largest matching group. Voting adds no further model call, but the 16 generation calls still exist.
This design removes state handoffs and separate prompts for schema linking, refinement, and merging, while shifting more computation to inference time. In production, 16 candidates also create 16 database executions, increasing query load, lock contention, and tail latency. Multiple queries in the same result group can still have different semantics, so random selection does not necessarily identify the query that best matches the business intent.
Engineering Trade-offs
| Dimension | Benefit | Cost or risk | |---|---|---| | One model instead of a multi-stage scaffold | Fewer orchestration states, call boundaries, and prompt surfaces | Internal schema linking becomes harder to inspect, debug, and roll back | | SC-16 self-consistency | Official accuracy exceeds the human proxy at $0.56 per task | Requires 16-way sampling, additional database execution, and higher tail latency | | Execution-based reward | Cheap, automatable, and naturally compatible with RLVR | Can reward accidental matches or queries valid only under one snapshot | | Expert-cleaned data | Materially reduces reward contamination under the same RL framework | Human review is expensive, and reviewer disagreement affects reproducibility | | Enterprise-schema target | Can replace scaffolded schema-linking stages | The article does not disclose schema encoding, context pruning, or million-column scaling strategies |
How to Interpret the Benchmark
Arcwise-Plat-SQL was created through a second cleanup pass over BIRD Mini-Dev. Arcwise initially corrected 32.3% of instances; the research team then confirmed most of those flags and found additional defects, bringing the total detected error rate to 52.8%. Cleaning the evaluation set reduces false failures caused by corrupt gold queries, but the project team also helped construct the benchmark. External replication is still needed to rule out leakage or selective reporting.
The 92.96% human proxy is also not a formal human-versus-model study under identical database snapshots, permissions, time budgets, and prompts. The compared systems may use different sampling budgets, prompts, schema-linking mechanisms, and reasoning settings. Confidence intervals, run-to-run variance, and a strictly harmonized end-to-end cost protocol were not disclosed. The 88.55% single-sample advantage is therefore more defensible than the broader human-superiority framing, but both remain official results until independently reproduced.
Deployment Guidance
- Pin the full training recipe: Fix the code revision, BIRD-Platinum snapshot, base-model version, prompt template, and random seeds. Report single-sample and SC-16 results separately so test-time scaling is not confused with the underlying model gain.
- Isolate SQL execution: Use read-only credentials, statement timeouts, row limits, and DDL/DML blocking. Run candidates against fixed snapshots or cloned databases so one query cannot alter later evaluations.
- Strengthen semantic checks: Normalize NULLs, ordering, precision, duplicates, and transaction snapshots. For high-risk queries, add multiple test cases, metamorphic rewrites, or business assertions to reduce accidental execution matches.
- Use confidence-based routing: Run one generation for straightforward questions and escalate execution failures, conflicting results, or low-confidence cases to SC-16. Applying 16 samples to every request wastes inference budget.
- Budget database concurrency: Isolate candidate executions, cap concurrency, and include database latency in the end-to-end SLA rather than reporting model-token cost alone.
- Check release boundaries: The article confirms public code, data, and recipes, but it does not specify whether ReViSQL weights are separately available. Training compute, peak memory, model licensing, and Kimi-K2.6 redistribution terms also need verification before production use.
The central lesson is that expert-cleaned supervision and reliable executable rewards can be more valuable than adding another orchestration layer to a text-to-SQL pipeline. Public assets and the reported cost advantage make the work immediately useful, while the custom benchmark, SC-16 inference expansion, and partially undisclosed reward design leave room for independent validation.
— END —Source: Thinking Machines Lab News (2026-11-29)
Tags: #Text-to-SQL #RLVR #Kimi-K2.6 #ReViSQL #Data Curation
Editorial & Fact-Checking Note: This article is compiled from primary research, official release documentation, and source papers by the ZICQ Newsroom pipeline with automated entity verification and human editorial review. If you notice any technical inaccuracy, please submit a correction via our corrections policy or email our editorial desk directly.
Community Comments