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,中国)
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.
Text2GraphQuery-Bench: A Text to Graph Query Benchmark
Ant Group(蚂蚁集团);The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳));The Hong Kong University of Science and Technology (Guangzhou)(香港科学与技术大学(广州));Xi'an Polytechnic University(西安理工大学)