BenchPress:一种用于快速文本到SQL基准定制的人机协作标注系统
BenchPress: A Human-in-the-Loop Annotation System for Rapid Text-to-SQL Benchmark Curation
AI总结:
BenchPress通过人机协作系统加速特定领域文本到SQL基准的创建,结合LLM生成与人类验证提升标注准确性与基准可靠性。
摘要:
大型语言模型(LLMs)已成功应用于许多任务,包括文本到SQL生成。然而,大部分工作都集中在公开可用的数据集上,如Fiben、Spider和Bird。我们之前的工作表明,LLMs在查询大型私人企业数据仓库时效果大打折扣,并发布了Beaver,第一个私人企业文本到SQL基准。为了创建Beaver,我们利用了SQL日志,这些日志通常容易获取。然而,手动标注这些日志以确定它们回答哪些自然语言问题是一项艰巨的任务。让受过高度训练的数据库管理员承担额外工作来构建和验证相应的自然语言表达是不仅具有挑战性,而且相当昂贵。为了解决这一挑战,我们引入了BenchPress,一种人机协作系统,旨在加速特定领域文本到SQL基准的创建。给定一个SQL查询,BenchPress使用检索增强生成(RAG)和LLMs提出多个自然语言描述。人类专家然后选择、排序或编辑这些草稿以确保准确性和领域对齐。我们评估了BenchPress在标注的企业SQL日志上,证明LLM辅助标注大大减少了创建高质量基准所需的时间和努力。我们的结果表明,结合人类验证与LLM生成的建议提高了标注准确性、基准可靠性以及模型评估的鲁棒性。通过简化定制基准的创建,BenchPress为研究人员和实践者提供了一种在特定领域工作负载上评估文本到SQL模型的机制。BenchPress通过我们的公共GitHub仓库免费提供,网址为https://github.com/fabian-wenz/enterprise-txt2sql,并可通过我们的网站访问http://dsg-mcgraw.csail.mit.edu:5000。
英文摘要:
Large language models (LLMs) have been successfully applied to many tasks, including text-to-SQL generation. However, much of this work has focused on publicly available datasets, such as Fiben, Spider, and Bird. Our earlier work showed that LLMs are much less effective in querying large private enterprise data warehouses and released Beaver, the first private enterprise text-to-SQL benchmark. To create Beaver, we leveraged SQL logs, which are often readily available. However, manually annotating these logs to identify which natural language questions they answer is a daunting task. Asking database administrators, who are highly trained experts, to take on additional work to construct and validate corresponding natural language utterances is not only challenging but also quite costly. To address this challenge, we introduce BenchPress, a human-in-the-loop system designed to accelerate the creation of domain-specific text-to-SQL benchmarks. Given a SQL query, BenchPress uses retrieval-augmented generation (RAG) and LLMs to propose multiple natural language descriptions. Human experts then select, rank, or edit these drafts to ensure accuracy and domain alignment. We evaluated BenchPress on annotated enterprise SQL logs, demonstrating that LLM-assisted annotation drastically reduces the time and effort required to create high-quality benchmarks. Our results show that combining human verification with LLM-generated suggestions enhances annotation accuracy, benchmark reliability, and model evaluation robustness. By streamlining the creation of custom benchmarks, BenchPress offers researchers and practitioners a mechanism for assessing text-to-SQL models on a given domain-specific workload. BenchPress is freely available via our public GitHub repository at https://github.com/fabian-wenz/enterprise-txt2sql and is also accessible on our website at http://dsg-mcgraw.csail.mit.edu:5000.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。