LLM NL2SQL Robustness: Surface Noise vs. Linguistic Variation in Traditional and Agentic Settings
Organizations: Oracle AI
Abstract
Robustness evaluation for Natural Language to SQL (NL2SQL) systems is essential because real-world database environments are dynamic, noisy, and continuously evolving, whereas conventional benchmark evaluations typically assume static schemas and well-formed user inputs. In this work, we introduce a robustness evaluation benchmark containing approximately ten types of perturbations and conduct evaluations under both traditional and agentic settings. We assess multiple state-of-the-art large language models (LLMs), including Grok-4.1, Gemini-3-Pro, Claude-Opus-4.6, and GPT-5.2. Our results show that these models generally maintain strong performance under several perturbations; however, notable performance degradation is observed for surface-level noise (e.g., character-level corruption) and linguistic variation that preserves semantics while altering lexical or syntactic forms. Furthermore, we observe that surface-level noise causes larger performance drops in traditional pipelines, whereas linguistic variation presents greater challenges in agentic settings. These findings highlight the remaining challenges in achieving robust NL2SQL systems, particularly in handling linguistic variability.
Figures & tables
| Perturbations | Query |
|---|---|
| origin | In which year were the two most common causes of traffic accidents different from those in other years? |
| BackTranslation (bt) | In which year were the two most common causes of traffic accidents different from other years? |
| Chinese (zh) | 在哪一年,交通事故最常见的两个原因与其他年份不同? |
| Past | In which year was the two most common causes of traffic accidents different from those in other years? |
| Future | In which year will be the two most common causes of traffic accidents different from those in other years? |
| InflectionalVariation | In which year been the two most commoner causes of traffic accident different from those in other year? |
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| db | 5 database names that are most similar |
|---|---|
| bank_sales_trading | electronic_sales, E_commerce, Brazilian_E_Commerce, northwind, AdventureWorks |
| Pagila | sqlite-sakila, chinook, Db-IMDB, imdb_movies, northwind |
| electronic_sales | E_commerce, Brazilian_E_Commerce, bank_sales_trading, northwind, AdventureWorks |
| E_commerce | Brazilian_E_Commerce, electronic_sales, bank_sales_trading, northwind, AdventureWorks |
| Brazilian_E_Commerce | E_commerce, electronic_sales, bank_sales_trading, northwind, AdventureWorks |
| complex_oracle | oracle_sql, modern_data, log, AdventureWorks, northwind |
Text-to-SQL
Text-to-SQL translates natural-language questions into executable database queries, linking user intent to schemas, values, and SQL logic.
See all 173 papers