arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.10697cs.DBcs.AIcs.CLcs.LG
收藏

EvoSchema: 向文本到SQL系统抗御模式演变

EvoSchema: Towards Text-to-SQL Robustness Against Schema Evolution

The Ohio State University(俄亥俄州立大学);Adobe Inc.(Adobe公司);Purdue University(普渡大学)

Tianshu Zhang, Kun Qian, Siddhartha Sahai, Yuan Tian, Shaddy Garg, Huan Sun, Yunyao Li

AI总结:

EvoSchema通过模拟数据库模式演变,评估并提升文本到SQL系统在动态环境下的鲁棒性。

摘要:

神经文本到SQL模型将自然语言问题(NLQs)转换为SQL查询,给定数据库模式,已取得显著成效。然而,数据库模式经常演变以满足新需求。此类模式演变往往导致训练于静态模式的模型性能下降。现有工作要么主要关注简单地改写一些语法或语义映射,要么缺乏全面且可控的方式来研究模型在模式演变下的鲁棒性问题,这在现实中的日益复杂和丰富的数据库模式变化中是不够的,尤其是在LLM时代。为了解决模式演变带来的挑战,我们提出了EvoSchema,一个全面的基准,用于评估和增强文本到SQL系统在真实世界模式变化下的鲁棒性。EvoSchema引入了一种新的模式演变分类法,涵盖十种扰动类型,跨列级和表级修改,系统模拟数据库模式的动态性质。通过EvoSchema,我们进行了深入的评估,涵盖不同的开源和闭源LLMs,揭示表级扰动对模型性能的影响显著大于列级变化。此外,EvoSchema激励了更健壮的文本到SQL系统的开发,从模型训练和数据库设计方面。在EvoSchema的多样化模式设计上训练的模型可以迫使模型区分相同问题的模式差异,以避免学习虚假模式,这些模型在平均上显示出比那些在未扰动数据上训练的模型更显著的鲁棒性。该基准提供了对模型行为的有价值的见解,并为设计能够适应动态、真实世界环境的系统指明了方向。

英文摘要:

Neural text-to-SQL models, which translate natural language questions (NLQs) into SQL queries given a database schema, have achieved remarkable performance. However, database schemas frequently evolve to meet new requirements. Such schema evolution often leads to performance degradation for models trained on static schemas. Existing work either mainly focuses on simply paraphrasing some syntactic or semantic mappings among NLQ, DB and SQL, or lacks a comprehensive and controllable way to investigate the model robustness issue under the schema evolution, which is insufficient when facing the increasingly complex and rich database schema changes in reality, especially in the LLM era. To address the challenges posed by schema evolution, we present EvoSchema, a comprehensive benchmark designed to assess and enhance the robustness of text-to-SQL systems under real-world schema changes. EvoSchema introduces a novel schema evolution taxonomy, encompassing ten perturbation types across columnlevel and table-level modifications, systematically simulating the dynamic nature of database schemas. Through EvoSchema, we conduct an in-depth evaluation spanning different open source and closed-source LLMs, revealing that table-level perturbations have a significantly greater impact on model performance compared to column-level changes. Furthermore, EvoSchema inspires the development of more resilient text-to-SQL systems, in terms of both model training and database design. The models trained on EvoSchema's diverse schema designs can force the model to distinguish the schema difference for the same questions to avoid learning spurious patterns, which demonstrate remarkable robustness compared to those trained on unperturbed data on average. This benchmark offers valuable insights into model behavior and a path forward for designing systems capable of thriving in dynamic, real-world environments.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑