An Agentic System for Schema Aware NL2SQL Generation
arXiv cs.CL / 3/20/2026
💬 OpinionDeveloper Stack & InfrastructureIdeas & Deep AnalysisModels & Research
Key Points
- The authors propose a schema-based agentic NL2SQL system that uses small language models as the primary agents and only invokes a large language model when errors are detected, reducing computational overhead.
- The system achieves substantial cost savings, resolving about 67% of queries with local SLMs and lowering the average cost per query from 0.094 to 0.0085.
- On the BIRD benchmark, it attains an execution accuracy of 47.78% and a validation efficiency score of 51.05%, demonstrating practical effectiveness with lower resource use.
- The design targets resource-constrained deployments and aims for near-zero operational costs for locally executed queries, addressing privacy and deployability concerns of LLM-centric approaches.
- A GitHub repository is provided for implementation and reproducibility.
Related Articles

Check out this article on AI-Driven Reporting 2.0: From Manual Bottlenecks to Real-Time Decision Intelligence (2026 Edition)
Dev.to

SYNCAI
Dev.to
How AI-Powered Decision Making is Reshaping Enterprise Strategy in 2024
Dev.to
When AI Grows Up: Identity, Memory, and What Persists Across Versions
Dev.to
AI-Driven Reporting 2.0: From Manual Bottlenecks to Real-Time Decision Intelligence (2026 Edition)
Dev.to