← All entries
Model2026#1297

River Recipes: Achieving Frontier Text-to-SQL with the River API

Summary

River AI's 'River Recipes' is an open-source initiative that turns promising research papers into vetted, reproducible training recipes. The first recipe tackles text-to-SQL: it rebuilds the ReViSQL recipe (RL with a LoRA adapter, arXiv 2603.20004v4) from scratch on the River API, fixing several bugs in the released code (outdated VeriEQL with an ORDER BY-in-subqueries bug, a 1% tolerance grader that rewarded wrong row counts, and treating token-limit-interrupted attempts as answers) and hardening it for longer runs (async RL overlapping sampling and training, warmup+cosine LR, tightened grader, -1 reward for unfinished attempts, tool-use demonstration prefix). Across six models from five families it improved accuracy by 9-36 points on Arcwise-Plat; four models reached human-level performance (92.96%) and five finished between 92.0% and 93.4%. Five outperformed GPT-6 Astra Pro (max effort), averaging 4.0 points higher at less than 2% of the per-question cost (OpenRouter list prices, Sep 29 2026); GLM-5.3 Flash led at +4.6 points at just 0.5% of the cost. Key recipe extensions: BIRD-Platinum cleaned training data (+9.4 points avg vs original annotations), training hints for questions no attempt ever solves (~6% of questions after epoch 1), learnability weighting from epoch 2, the VeriEQL penalty and evidence process reward for shaping, and BIRD-Diamond/BIRD-Platinum-Hard curated subsets on Hugging Face. Gains transfer to Spider2-Lite (every model improved, best models just shy of the proprietary frontier).

Venue
River AI release blog, October 2026 (river.ai/achieving-frontier-text-to-sql)
Source
x
Access
free
Language
en
Added
Oct 7, 2026
Verified
Oct 7, 2026
Found via
#random-papers

Tags

river-recipestext-to-sqlrevisqlarcwise-platcispolorabird-platinum

Topics

text-to-SQL, RL post-training, LoRA, recipe reproducibility, VeriEQL, async RL, reward shaping

Research notes

  • Discovery: @river_ai_inc X post 2026-10-07 ~4:24 PM ET (~9.3K views, 74 likes, 41 bookmarks, 12 retweets): 'Introducing River Recipes: our open-source initiative for turning promising research into vetted, reproducible training recipes. Our first recipe tackles text-to-SQL, where our trained open models beat GPT-6 Astra Pro and Claude Opus 5.5 on Arcwise-Plat for less than 1% of the cost.' Recipe card (Kimi K2.6, nvidia/Kimi-K2.6-NVFP4, preset 'kimi-k2.6'): RL objective CISPO; LoRA rank 32; LR 5e-5 with 10-step warmup and cosine decay to 10%; batch 64 questions x 16 attempts; up to 5 SQL tool calls per attempt; BIRD-Platinum 2,064 train / 398 validation; VeriEQL penalty 0.2; evidence steps -0.1 each; learnability weighting from epoch 2; training hints on; 5 epochs / 165 steps. Model-specific presets adjust reasoning effort and tokens per turn. Recipe book is open source and linked from the page ('View this recipe on GitHub'). HF datasets: BIRD-Platinum, BIRD-Diamond (further-cleaned; ~1% lower eval on average than Platinum in their runs — cleaning trivialized ~4% of problems and taught over-trust in evidence), BIRD-Platinum-Hard (689 hardest questions), pre-generated training hints. Relevance to user's post-training work: a complete, debugged, reproducible RL recipe (CISPO + LoRA + async RL + warmup/cosine schedule) that lifts open models to human-level text-to-SQL at a fraction of frontier inference cost; directly applicable to the user's agent app for database-knowledge work. Note the reward-design details (VeriEQL as style reward, evidence process reward, -1 for unfinished attempts). Caveats: no trained model weights found at catalog time (only the recipe code/config is open); license for the recipe book not stated on the page; reported numbers use the ReViSQL authors' grader (1% tolerance on single-number answers) while the team's own stricter grader averages ~0.5pt lower; evaluation uses best Arcwise-Plat checkpoint (evaluated every 5 steps) since validation accuracy saturates ~step 25; no code for the VeriEQL/SpotIt+/ParSEval/Polygon comparison beyond what the recipe book contains.

Similar entries