Explore the research collection
1 entry · Follow this search
- Model
River Recipes: Achieving Frontier Text-to-SQL with the River API
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).