arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.14518cs.CL
收藏

基于业务逻辑的文本到SQL数据合成用于商务智能

Business Logic-Driven Text-to-SQL Data Synthesis for Business Intelligence

Department of Computer Science, Columbia University(哥伦比亚大学计算机科学系)

Jinhui Liu, Ximeng Zhang, Yanbo Ai, Zhou Yu

AI总结:

本文提出基于业务逻辑的数据合成方法,生成高现实性的SQL数据,显著提升文本到SQL模型的性能

摘要:

在私有商务智能(BI)环境中评估文本到SQL代理具有挑战性,因为现实的、领域特定的数据稀缺。虽然合成评估数据提供了可扩展的解决方案,但现有生成方法无法捕捉业务现实——问题是否反映现实的业务逻辑和流程。我们提出了一种基于业务逻辑的数据合成框架,该框架生成的数据基于业务人物、工作场景和流程。此外,我们通过施加业务推理复杂度控制策略来提高数据质量,该策略多样化了回答问题所需的分析推理步骤。在生产规模的Salesforce数据库上的实验表明,我们合成的数据实现了高业务现实性(98.44%),明显优于OmniSQL(+19.5%)和SQL-Factory(+54.7%),同时保持了强大的问题-SQL对齐性(98.59%)。我们的合成数据还揭示了最先进的文本到SQL模型仍然存在显著性能差距,仅在最复杂的业务查询上达到42.86%的执行准确率。

英文摘要:

Evaluating Text-to-SQL agents in private business intelligence (BI) settings is challenging due to the scarcity of realistic, domain-specific data. While synthetic evaluation data offers a scalable solution, existing generation methods fail to capture business realism--whether questions reflect realistic business logic and workflows. We propose a Business Logic-Driven Data Synthesis framework that generates data grounded in business personas, work scenarios, and workflows. In addition, we improve the data quality by imposing a business reasoning complexity control strategy that diversifies the analytical reasoning steps required to answer the questions. Experiments on a production-scale Salesforce database show that our synthesized data achieves high business realism (98.44%), substantially outperforming OmniSQL (+19.5%) and SQL-Factory (+54.7%), while maintaining strong question-SQL alignment (98.59%). Our synthetic data also reveals that state-of-the-art Text-to-SQL models still have significant performance gaps, achieving only 42.86% execution accuracy on the most complex business queries.

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

↑