BIRD-RL: Scaling Agentic Reinforcement Learning over Stateful Data-Centric Environments
Organizations: The University of Hong Kong · National University of Singapore · The Chinese University of Hong Kong, Shenzhen
Abstract
While agentic reinforcement learning (RL) has emerged as a promising paradigm for training small language models (SLMs), existing frameworks are predominantly tool-centric and struggle with data-centric environments. Specifically, applying tool-centric frameworks to stateful tasks like SQL debugging introduces severe spatial inefficiencies since proper environment isolation typically requires a separate database container per rollout. Naively reusing databases without tracking evolving states across multi-turn interactions causes trajectory contamination and cross-trajectory interference, which severely destabilizes policy updates. To overcome these bottlenecks, we introduce BIRD-RL, a novel four-stage agentic RL curriculum that alternately enhances foundational agent reasoning and trajectory-adaptive on-policy exploration to circumvent the instability inherently associated with direct end-to-end learning. Crucially, to support this curriculum, BIRD-RL is driven by a Trajectory-scoped Persistent Execution Infrastructure, which enables safe database replica reuse while preserving trajectory isolation. This design improves spatial RL efficiency by 12.8x, successfully enabling scalable agentic RL for complex data-centric tasks without needs of Kubernettes. Empirical evaluations on the BIRD-CRITIC-SQLite benchmark demonstrate that our 7B and 14B models achieve Success Rates of 44.40% and 48.00%, respectively, showing competitive performance against strong proprietary model-based agents such as Claude-Opus-4.6 Agent (48.20%). Furthermore, BIRD-RL successfully trains unified SLMs capable of both advanced SQL debugging and generation, highlighting its broader potential for multi-objective optimization across heterogeneous, real-world data-centric tasks.
Figures & tables
| Type | Model | Quer. | Mana. | Pers. | Overall |
| General-Purpose Models | GPT-5.4-Pro | 44.01 | 38.67 | 39.72 | 42.00 |
| Claude-Opus-4.6 | 50.35 | 44.00 | 39.01 | 46.20 | |
| Claude-Sonnet-4.5 | 46.83 | 36.00 | 34.75 | 41.80 | |
| Gemini-3.1-Pro | 53.52 | 44.00 | 41.84 | 48.80 | |
| GLM-4.7 | 48.24 | 40.00 | 33.33 | 42.80 | |
| Kimi-K2.5 | 46.48 | 37.33 | 35.46 | 42.00 |
| Model | Base | SQL-Act | Bird-Fixer | Bird-Talon | (%) |
| Qwen-2.5-Coder-7B | 26.20 | 29.80 | 33.60 | 44.40 | +18.20 |
| Qwen-2.5-Coder-14B | 33.80 | 36.40 | 40.00 | 48.00 | +14.20 |
| Strategy | Training-time I/O | Emp. I/O ( ) | Cost Ratio |
| Per-rollout Container | 2.94 TiB | ||
| Dynamic Reusable Pool | 236 GiB |
| Model | Gen. | Debug. |
| Think2SQL-7B | 56.1 | 24.0 |
| SQL-R1-7B | 58.9 | 26.6 |
| ReEX-SQL-7B | 63.4 | - |
| Reasoning-SQL-7B | 64.0 | - |
| Arctic-T2S-R1-7B | 68.9 | 29.8 |
| SQL-Trail-7B | 60.1 | - |
| Setting | Reasoning Trace | Action Trace |
| w/o Stage 3 | “… the problematic query joins budget and expense … To get the correct total budget per event, I need to aggregate budget amounts at the event level using MAX or MIN, since each event has one budget …” | SELECT ... SUM(expense.cost), MAX(budget.amount) AS total_budget ... GROUP BY budget.link_to ... |
| w/ Stage 3 (Ours) | “… there are multiple budget lines …, and each budget line has multiple expense records … The solution is to pre-aggregate expenses per budget line first , then join with budget …” | SELECT SUM(sub_exp.total_cost), SUM(budget.amount) ... FROM ( SELECT link_to_budget, SUM(cost) ... GROUP BY link_to_budget ) sub_exp ... |
| Type | Method | Quer. | Mana. | Pers. | Overall |
| BIRD-Talon-7B | 46.13 | 45.33 | 40.43 | 44.40 | |
| Training Strategy | (a) Up to Reasoning RL (Stages 1-3) | 45.77 | 36.00 | 33.33 | 40.60 ( 3.80) |
| (b) Up to Tool-Use Imitation (Stages 1-2) | 45.07 | 33.33 | 30.50 | 39.20 ( 5.20) | |
| (c) Reasoning Imitation Only (Stage 1) | 41.55 | 28.00 | 26.24 | 35.20 ( 9.20) | |
| Reward Design | (d) w/ Partial Correctness | 45.77 | 41.33 | 37.59 | 42.80 ( 1.60) |
| (e) w/ LLM-as-a-Judge | 45.77 | 38.67 | 34.04 | 41.40 ( 3.00) |
Appendix figures & tables19 assets
Supplementary material from the paper’s appendix.
Appendix
| Statistic | SIX-GYM-SQLite |
| Total Issues | 5,000 |
| # of query-like issues | 3,094 |
| # of management issues | 1,087 |
| # of personalization issues | 819 |
| user query length (mean/max) | 162.55/917 |
| issue SQL length (mean/max) | 85.50/898 |
| Category | Count | User Query | Issue SQL | Solution SQL | Test Cases |
| Query | 3,094 | 183.93/917 | 86.76/751 | 96.22/1,976 | 143.74/1,601 |
| Management | 1,087 | 120.20/535 | 73.51/802 | 83.84/802 | 446.16/1,085 |
| Personalization | 819 | 138.01/421 | 96.63/898 | 121.40/1,041 | 216.33/1,418 |
| Overall | 5,000 | 162.55/917 | 85.50/898 | 97.66/1,976 | 221.38/1,601 |
| Model | GPU Hours |
| BIRD-Talon-7B | 93.38 |
| BIRD-Zeno-7B | 80.36 |
| BIRD-Talon-14B | 152.75 |
| Model | pass@1 | pass@4 | pass@8 | pass@16 |
| BIRD-Talon-14B | 46.40 | 57.40 | 60.60 | 65.00 |
Agentic RL
Agentic reinforcement learning trains AI agents to plan, use tools, and adapt through feedback from multi-step interactions.
See all 226 papers