[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-327792-105":59,"doc-detail-327792-en":131},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":124,"head_meta":126,"extra_data":128,"updated_unix":130},105,"en","beyond-static-rules-automated-discovery-of-latent-vulnerabilities-in-text-to-sql","Beyond Static Rules - Automated Discovery of Latent Vulnerabilities in Text-to-SQL","","Large Language Models (LLMs) have shown strong performance on Text-to-SQL, but real-world deployment is constrained by latent reliability weaknesses that existing diagnostics cannot systematically uncover. The approach addresses this gap by replacing static, expert-defined rules with an autonomous guided exploration loop. It generates vulnerability hypotheses, uses an evolving Vulnerability Codex to craft targeted perturbations, and iteratively documents defects. Experiments on open-source models reveal many failure cases, strong cross-model transferability, and preliminary remediation via lightweight fine-tuning.",{"@graph":69,"@context":123},[70,84,106],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/beyond-static-rules-automated-discovery-of-latent-vulnerabilities-in-text-to-sql/327792/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/beyond-static-rules-automated-discovery-of-latent-vulnerabilities-in-text-to-sql/327792.png","ImageObject",300,407,{"name":92,"@type":93},"Asher","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-10-31","2026-09-21",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",11,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119],{"name":110,"@type":111,"acceptedAnswer":112},"What problem does the paper address in LLM-based Text-to-SQL systems?","Question",{"text":113,"@type":114},"It targets latent reliability issues that are not fully revealed by static benchmarks or manual error analysis, leaving potential failure modes insufficiently examined.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"How does SAGE discover latent vulnerabilities?",{"text":118,"@type":114},"SAGE formulates vulnerability hypotheses for given samples and consults a continuously evolving Vulnerability Codex to generate targeted perturbations, then iteratively verifies and refines failure-boundary understanding.",{"name":120,"@type":111,"acceptedAnswer":121},"What evidence is provided to show SAGE’s effectiveness and generality?",{"text":122,"@type":114},"Experiments on state-of-the-art open-source LLMs show SAGE uncovers substantial failure cases, with analysis indicating strong cross-model transferability of the discovered vulnerability patterns.","https://schema.org",{"og:url":83,"og:type":125,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":127,"canonical":83},"index,follow",{"doc_id":129,"site_id":62},327792,1790417762,{"code":4,"msg":5,"data":132},{"doc_id":129,"user_id":133,"nickname":92,"user_avatar":134,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":105,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":140,"language":141,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":142,"faqs":143,"seo_title":144,"seo_description":67,"update_tm":145,"read_time":146,"preview_page_count":4},687197207639,"https://ap-avatar.wpscdn.com/davatar_a8503ba1806abce46bf441b54a3ca4cd","Beyond Static Rules: Automated Discovery of Latent Vulnerabilities in Text-to-SQL  \nHanqing Wang 1∗, Yongdong Chi 1 * , Jian Yang2 ,  \nLei Yang3 , Jiehui Zhao3 , Yun Chen 1 , Guanhua Chen4†  \n1 Shanghai University of Finance and Economics, 2Beihang University,  \n3Deepexi Technology Co. Ltd., 4 Southern University of Science and Technology  \narXiv :2607 .03833v 1 [ cs .CL] 4 Jul 2026  \nAbstract  \nWhile Large Language Models (LLMs) have achieved remarkable success in Text-to-SQL tasks, their deployment in real-world environments is hindered by latent reliability issues.  \nIdentifying these latent weaknesses is critical for building trustworthy database interfaces, yet current diagnostic approaches rely heavily on static, expert-defined rules, which lack the capability for systematic and automated exploration. To bridge this gap, we propose SAGE (Systematic Automated Guided Exploration), a novel framework designed to autonomously uncover latent failure patterns in LLM-based Text-to-SQL generation. Specifically, SAGE generates vulnerability hypotheses for given samples and references a continuously evolving Vulnerability Codex to design targeted perturbations, thereby iteratively verifying and documenting potential defects. Extensive experiments on state-of-the-art open-source LLMs demonstrate that SAGE uncovers a substantial number of failure cases, highlighting the significant fragility of current models. Furthermore, our analysis reveals that the Vulnerability Codex exhibits strong cross-model transferability, indicating that the discovered patterns represent generalized structural weaknesses. Finally, we explore SAGE’s potential for remediation.  \nAlthough preliminary, lightweight fine-tuning on the generated samples yields promising improvements, suggesting a scalable pathway for closing the reliability loop in future work.  \n1 Introduction  \nText-to-SQL systems (Androutsopoulos et al., 1995 ; Li and Jagadish, 2014 ; Li et al., 2024b ; Yu et al., 2018) serve as a vital bridge between natural language and structured data, democratizing data access by enabling non-technical users to query complex databases intuitively. With the recent integration of Large Language Models (LLMs) (Pour-  \n* Equal Contribution.† Corresponding Author.  \nreza and Rafiei, 2023 ; Xie et al., 2025 ; Li et al., 2023a), this field has witnessed a paradigm shift in semantic understanding and execution accuracy.  \nSystematically identifying latent failure modes is the prerequisite for enhancing this reliability. However, current evaluation paradigms predominantly rely on static benchmarks (e.g., Spider (Yu et al., 2018), BIRD (Li et al., 2023b)) or manual error analysis (Chang et al., 2023a ; Gan et al., 2021b,a; Patil et al., 2023 ; Pi et al., 2022) .  \nThese approaches are inherently constrained by their reliance on human priors: they primarily verify model robustness against predefined challenges (Zhang et al., 2024 ; Deng et al., 2021 ; Bhaskar et al., 2023), but cannot provide a systematic exploration of potential or previously unidentified vulnerabilities 1. As a result, certain failure modes (Saparina and Lapata, 2024 ; Sahitaj et al., 2025 ; Chang et al., 2023b) may remain insufficiently examined and can have a substantial impact on the reliability of Text-to-SQL generation beyond what is captured by fixed heuristics. Consequently, there is a pressing need for an automated framework capable of proactively exploring the model’s failure boundaries.  \nTo bridge this gap, we propose SAGE (Systematic Automated Guided Exploration), a framework designed to proactively expose latent vulnerabilities in LLM-based Text-to-SQL generation. Unlike passive verification methods (Changet al., 2023a ; Gan et al., 2021b,a; Patil et al., 2023 ; Pi et al., 2022), SAGE orchestrates an active discovery process. Specifically, it first formulates specific vulnerability hypotheses for a target sample, and then references a continuously evolving Vulnerability Codex, a dynami","cbCais2e0S2U2ea4","https://ap.wps.com/l/cbCais2e0S2U2ea4","pdf",851860,17,"English","# Abstract\n# 1 Introduction\n# 2 Related Work\n## 2.1 LLM-based Text-to-SQL Generation","[{\"question\":\"What problem does the paper address in LLM-based Text-to-SQL systems?\",\"answer\":\"It targets latent reliability issues that are not fully revealed by static benchmarks or manual error analysis, leaving potential failure modes insufficiently examined.\"},{\"question\":\"How does SAGE discover latent vulnerabilities?\",\"answer\":\"SAGE formulates vulnerability hypotheses for given samples and consults a continuously evolving Vulnerability Codex to generate targeted perturbations, then iteratively verifies and refines failure-boundary understanding.\"},{\"question\":\"What evidence is provided to show SAGE’s effectiveness and generality?\",\"answer\":\"Experiments on state-of-the-art open-source LLMs show SAGE uncovers substantial failure cases, with analysis indicating strong cross-model transferability of the discovered vulnerability patterns.\"}]","Beyond Static Rules - Automated Discovery of Latent Vulnerabilities in Text-to-SQL | PDF",1789978051,43]