Benchmarking Text-to-SQL under Role-Based Access Control
Not on the map. Why?
Abstract (arXiv)
Given a database S and a natural language question Q, text-to-SQL systems aim to generate an SQL query that correctly answers Q when executed against S. Currently, popular text-to-SQL benchmarks mostly assume unrestricted access to S; in practice, however, user access is often restricted, e.g., through role-based access control (RBAC) policies. This leads to a potential disconnect between benchmarking results and real-world performance: an LLM with high benchmark scores might perform poorly in an access-controlled environment, by frequently violating RBAC, or rejecting a query q that could be answered with only permitted data in S. Motivated by this, we present a comprehensive text-to-SQL benchmarking framework with realistic RBAC constraints, which features an LLM-assisted workflow that augments existing text-to-SQL benchmarks with plausible user roles and access policies. To do so, we formulate the problem of role synthesis as a structured reasoning process over the database schema, in which the LLM first infers the application context from the schema, and then derives role responsibilities and access scopes consistent with this context. This process is audited by human-in-the-loop quality control, in which domain experts perform metric-guided screening on the generated roles. Besides the augmented dataset, the proposed framework also contains evaluation metrics that identify RBAC-specific failure modes, and disentangle SQL utility from access-control compliance. We apply the proposed framework to several widely-used benchmarks, and conduct a systematic empirical study of state-of-the-art text-to-SQL systems. The results show that many solutions (especially open-weight LLMs) with high benchmarking scores under an unrestricted setting suffer sharp performance degradation once access constraints are in place, due to frequent RBAC violations.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 30 of its 53 references that are in the map. First posted on arXiv 24 Jul 2026.
Builds on
30 of 53 references.
References · 30
- 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,655
- 2025Gemma 3 Technical Reportcited by 1,686
- 2024Qwen2.5-Coder Technical Reportcited by 1,151
- 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
- 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 667
- 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 465
- 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluationcited by 378
- 2023LoraHub: Efficient Cross-Task Generalization via Dynamic LoRA Compositioncited by 359
- 2024Spider 2.0: Evaluating Language Models on Real-World Enterprise Text-to-SQL Workflowscited by 223
- 2024CodeS: Towards Building Open-source Language Models for Text-to-SQLcited by 183
- 2024Next-Generation Database Interfaces: A Survey of LLM-based Text-to-SQLcited by 118
- 2024The Dawn of Natural Language to SQL: Are We Fully Ready?cited by 78
18 more
- 2025OpenSearch-SQL: Enhancing Text-to-SQL with Dynamic Few-shot and Consistency Alignmentcited by 51
- 2025Arctic-Text2SQL-R1: Simple Rewards, Strong Reasoning in Text-to-SQLcited by 38
- 2024FinSQL: Model-Agnostic LLMs-based Text-to-SQL Framework for Financial Analysiscited by 35
- 2024PURPLE: Making a Large Language Model a Better SQL Writercited by 34
- 2025Is Long Context All You Need? Leveraging LLM's Extended Context for NL2SQLcited by 30
- 2023Selective Demonstrations for Cross-domain Text-to-SQLcited by 21
- 2023CAESURA: Language Models as Multi-Modal Query Plannerscited by 19
- 2025Reliable Text-to-SQL with Adaptive Abstentioncited by 19
- 2024Metasql: A Generate-then-Rank Framework for Natural Language to SQL Translationcited by 17
- 2024AdapterSwap: Continuous Training of LLMs with Data Removal and Access-Control Guaranteescited by 14
- 2025Prompt Inference Attack on Distributed Large Language Model Inference Frameworkscited by 13
- 2025Refusal Falls off a Cliff: How Safety Alignment Fails in Reasoning?cited by 11
- 2025OrgAccess: A Benchmark for Role Based Access Control in Organization Scale LLMscited by 8
- 2024DePLOI: Applying NL2SQL to Synthesize and Audit Database Access Controlcited by 6
- 2026EvoSchema: Towards Text-to-SQL Robustness Against Schema Evolutioncited by 5
- 2025sudoLLM: On Multi-role Alignment of Language Modelscited by 4
- 2025Role-Conditioned Refusals: Evaluating Access Control Reasoning in Large Language Modelscited by 4
- 2025BridgeScope: A Universal Toolkit for Bridging Large Language Models and Databasescited by 2
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2024From Natural Language to SQL: Review of LLM-based Text-to-SQL Systems
- 2025Rethinking Text-to-SQL: Dynamic Multi-turn SQL Interaction for Real-world Database Exploration
- 2026Both Ends Count! Just How Good are LLM Agents at "Text-to-Big SQL"?
- 2025BAPPA: Benchmarking Agents, Plans, and Pipelines for Automated Text-to-SQL Generation
- 2025DB-Explore: Automated Database Exploration and Instruction Synthesis for Text-to-SQL
- 2025JudgeSQL: Reasoning over SQL Candidates with Weighted Consensus Tournament
- 2024Lucy: Think and Reason to Solve Text-to-SQL
- 2026LIMIT: Less Is More for Instruction Tuning in Text-to-SQL