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

大语言模型是否与我的任务对齐?通过数据集对齐评估文本到SQL

Do LLMs Align with My Task? Evaluating Text-to-SQL via Dataset Alignment

University of Alberta(阿尔伯塔大学);Huawei Tech. Canada(华为技术加拿大)

Davood Rafiei, Morgan Lindsay Heisler, Weiwei Zhang, Mohammadreza Pourreza, Yong Zhang

AI总结:

本文研究NL2SQL任务中SFT训练数据与目标查询的结构对齐,提出通过比较结构SQL特征分布来估计对齐程度,实验证明高对齐带来显著性能提升,强调对齐感知的数据选择的重要性。

摘要:

监督微调(SFT)是将大语言模型(LLMs)适配到下游任务的有效方法。然而,训练数据的变异性可能阻碍模型跨领域泛化的能力。本文研究了自然语言到SQL(NL2SQL或文本到SQL)任务中的数据集对齐问题,考察SFT训练数据与目标查询的结构特征匹配程度,以及这种对齐如何影响模型性能。我们假设,通过比较训练集、目标数据以及模型在SFT之前的预测中结构SQL特征的分布,可以准确估计对齐程度。通过在三个大型跨领域NL2SQL基准测试和多个模型家族上的全面实验,我们表明结构对齐是微调成功的有力预测指标。当对齐程度高时,SFT在准确性和SQL生成质量上带来显著提升;当对齐程度低时,改进甚微或不存在。这些发现强调了在对齐感知的数据选择对于NL2SQL任务中有效微调和泛化的重要性。

英文摘要:

Supervised Fine-Tuning (SFT) is an effective method for adapting Large Language Models (LLMs) on downstream tasks. However, variability in training data can hinder a model's ability to generalize across domains. This paper studies the problem of dataset alignment for Natural Language to SQL (NL2SQL or text to SQL), examining how well SFT training data matches the structural characteristics of target queries and how this alignment impacts model performance. We hypothesize that alignment can be accurately estimated by comparing the distributions of structural SQL features across the training set, target data, and the model's predictions prior to SFT. Through comprehensive experiments on three large cross-domain NL2SQL benchmarks and multiple model families, we show that structural alignment is a strong predictor of fine-tuning success. When alignment is high, SFT yields substantial gains in accuracy and SQL generation quality; when alignment is low, improvements are marginal or absent. These findings highlight the importance of alignment-aware data selection for effective fine-tuning and generalization in NL2SQL tasks.

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

↑