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

从不完美数据中学习:面向文本到SQL的自回归语言模型高效知识蒸馏

Learning from Imperfect Data: Towards Efficient Knowledge Distillation of Autoregressive Language Models for Text-to-SQL

Nanyang Technological University(南洋理工大学);Wuhan University(武汉大学);The University of Sydney(悉尼大学)

Qihuang Zhong, Kunfeng Chen, Liang Ding, Juhua Liu, Bo Du, Dacheng Tao

AI总结:

针对文本到SQL任务中LLM知识蒸馏难以平衡性能与效率的问题,提出KID方法,通过在不完美数据中模拟推理级联效应缓解训练-推理不匹配,在不增加过多预算下实现显著性能提升与训练效率改善。

摘要:

大型语言模型(LLMs)在文本到SQL(即将自然语言问题翻译为SQL查询)任务中展现出令人期待的性能。然而,当前的文本到SQL LLMs计算成本高昂,且在实际应用中部署困难,凸显了对其进行压缩的重要性。为实现这一目标,知识蒸馏(KD)是一种常见方法,旨在将较大的教师模型蒸馏为较小的学生模型。尽管近期涌现出许多针对自回归LLMs的KD方法,但它们在复杂的文本到SQL场景中是否依然有效仍探讨不足。为此,我们进行了一系列分析,发现这些KD方法通常难以平衡性能与效率。针对此问题,我们提出利用不完美数据改进KD,即KID,该方法在不引入过多训练预算的情况下有效提升了性能。KID的核心是通过在不完美训练数据中模拟推理的级联效应,高效缓解训练与推理的不匹配问题。在5个文本到SQL基准上的大量实验表明,KID不仅能在所有模型类型和规模上实现一致且显著的性能提升(平均得分最高提升+5.83%),还能有效提高训练效率。

英文摘要:

Large Language Models (LLMs) have shown promising performance in text-to-SQL, which involves translating natural language questions into SQL queries. However, current text-to-SQL LLMs are computationally expensive and challenging to deploy in real-world applications, highlighting the importance of compressing them. To achieve this goal, knowledge distillation (KD) is a common approach, which aims to distill the larger teacher model into a smaller student model. While numerous KD methods for autoregressive LLMs have emerged recently, it is still under-explored whether they work well in complex text-to-SQL scenarios. To this end, we conduct a series of analyses and reveal that these KD methods generally fall short in balancing performance and efficiency. In response to this problem, we propose to improve the KD with Imperfect Data, namely KID, which effectively boosts the performance without introducing much training budget. The core of KID is to efficiently mitigate the training-inference mismatch by simulating the cascading effect of inference in the imperfect training data. Extensive experiments on 5 text-to-SQL benchmarks show that, KID can not only achieve consistent and significant performance gains (up to +5.83% average score) across all model types and sizes, but also effectively improve the training efficiency.

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

↑