Research map / Large language models / Agents, code and math
Beyond Static Rules: Automated Discovery of Latent Vulnerabilities in Text-to-SQL
Hanqing Wang, Yongdong Chi, Jian Yang, Lei Yang, Jiehui Zhao, Yun Chen, Guanhua Chen
Shanghai University of Finance and Economics · Beihang University · Deepexi Technology Co. Ltd · Southern University of Science and Technology
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| Use SAGE's evolving Vulnerability Codex instead of static expert rules | vulnerability discovery · BIRD | VER (avg over 3 models): 50.66 -> 76.98 | Improved |
| Use SAGE's evolving Vulnerability Codex instead of static expert rules | vulnerability discovery · Spider | VER (avg over 3 models): 39.79 -> 58.45 | Improved |
| Use SAGE instead of expert rules | vulnerability discovery · BIRD | ApD (avg): 8.21 -> 5.94 | Improved |
| Use SAGE instead of expert rules | vulnerability discovery · Spider | ApD (avg): 13.84 -> 9.64 | Improved |
| Perturb all scopes (query, relevant and irrelevant schema) rather than query only (ablation) | SAGE · BIRD, Gemma-3 | VER: 73.75 -> 84.45 | Improved |
| Perturb all scopes rather than irrelevant schema only (ablation) | SAGE · BIRD, Gemma-3 | ApD: 10.84 -> 5.08 | Improved |
| Use codex built from another model (e.g. OmniSQL) to attack Gemma-3 | SAGE · cross-model transfer | VER gain over Expert: +13.74% | Improved |
| Fine-tune Qwen2.5-Coder-7B on 1,580 SAGE adversarial samples | Qwen2.5-Coder-7B-Instruct · SAGE adversarial EX | EX: 4.37 -> 9.58 | Improved |
| Fine-tune Qwen2.5-Coder-7B on 1,580 SAGE adversarial samples | Qwen2.5-Coder-7B-Instruct · BIRD dev | EX: 42.63 -> 52.87 | Improved |
| Apply SAGE (single iteration, transferred codex) to GPT-4o | GPT-4o · BIRD | EX: 65.38 -> 22.36 | Hurt |
Open problems in code generation benchmarks
Do code benchmarks and methods hold beyond Python, small test sets and leaked data?
- Tested on Python or a few languages, so other languages are untested. · 25 papers state it
- Benchmarks are small, with a few dozen to a few hundred problems. · 14 papers state it
- Iterative or multi-step methods cost more tokens, latency and compute. · 12 papers state it
Closest papers by meaning
- LatentRefusal: Latent-Signal Refusal for Unanswerable Text-to-SQL Queries (ACL 2026 · similarity 0.89)
- SPENCE: A Syntactic Probe for Detecting Contamination in NL2SQL Benchmarks (ACL 2026 · similarity 0.89)
- Rethinking Text-to-SQL: Dynamic Multi-turn SQL Interaction for Real-world Database Exploration (ACL 2026 · similarity 0.88)
- SecureSQL: Evaluating Data Leakage of Large Language Models as Natural Language Interfaces to Databases (EMNLP 2024 · similarity 0.88)
- SWE-SQL: Illuminating LLM Pathways to Solve User SQL Issues in Real-World Applications (NeurIPS 2025 · similarity 0.88)
- SQLens: An End-to-End Framework for Error Detection and Correction in Text-to-SQL (NeurIPS 2025 · similarity 0.87)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.