arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2604.21414cs.AI
收藏

SemanticAgent: 一种基于语义的文本到SQL数据合成框架

SemanticAgent: A Semantics-Aware Framework for Text-to-SQL Data Synthesis

Center of Information Research, Academy of Military Science, Beijing 100142, China(信息研究所,军事科学研究院,北京100142,中国);School of Mathematics and Physics, University of Science and Technology Beijing, Beijing 100083, China(数学与物理学院,北京科技大学,北京100083,中国)

Qiang Gao, Zhenping Li, Anqi Zhuo, Yingxiao Zhao, Weibo Geng, Xiaosong Li

AI总结:

本文提出SemanticAgent框架,通过语义分析、逐步合成和诊断细化三阶段流程,提升文本到SQL数据合成的语义质量,优于现有方法并在语义密集基准上表现更佳。

摘要:

现有文本到SQL合成流程仍混淆可执行性与语义有效性:语法检查和基于执行的验证可能保留执行成功但违反数据库语义的查询。为解决这些限制,我们提出SemanticAgent,一种语义感知的合成框架。SemanticAgent围绕三个专用模块:分析器、合成器和验证器展开合成。通过语义分析、逐步合成和诊断细化三阶段协议,SemanticAgent将基于执行的验证转变为可追溯的推理过程。我们的框架生成的合成数据在语义质量评估中一致优于先前的合成方法,导致更强的下游微调性能,尤其是在语义需求高的基准上。

英文摘要:

Existing text-to-SQL synthesis pipelines still conflate executability with semantic validity: syntactic checks and execution-based validation can retain queries that execute successfully while violating database semantics. To address these limitations, we propose SemanticAgent, a semantic-aware synthesis framework. SemanticAgent organizes synthesis around three specialized modules: an analyzer, a synthesizer, and a verifier. Through a three-stage protocol of semantic analysis, stepwise synthesis, and diagnostic refinement, SemanticAgent transforms execution-based validation alone into a traceable reasoning process. Our framework generates synthetic data that consistently outperforms prior synthesis methods under semantic-quality evaluation, leading to stronger downstream fine-tuning performance, especially on semantically demanding benchmarks.

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

↑