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

$\ extit{SKIntern}$:内化符号知识以将更优的思维链能力蒸馏到小语言模型中

$\textit{SKIntern}$: Internalizing Symbolic Knowledge for Distilling Better CoT Capabilities into Small Language Models

Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);National Science Library, Chinese Academy of Sciences(中国科学院国家科学图书馆)

Huanxuan Liao, Shizhu He, Yupu Hao, Xiang Li, Yuanzhe Zhang, Jun Zhao, Kang Liu

AI总结:

提出SKIntern方法,通过渐进式微调和课程学习使小语言模型内化符号知识,减少推理开销并提升思维链推理能力,在ID和OOD任务上超越基线5%以上,推理成本降低4倍。

摘要:

小语言模型(SLMs)因大型语言模型(LLMs)的高计算需求和隐私问题而受到关注。一些研究使用从LLMs蒸馏得到的思维链(CoT)数据对SLMs进行微调,旨在增强其推理能力。此外,一些CoT蒸馏方法在生成过程中引入外部符号知识,以改善SLMs有限的知识记忆、推理能力和域外(OOD)泛化能力。然而,符号知识的引入增加了计算开销并引入了潜在噪声。在本文中,我们提出$\ extit{SKIntern}$,一种创新方法,通过渐进式微调过程,在课程学习下由预定义的线性衰减调度引导,使SLMs逐步内化符号知识和少样本示例。通过高效内化知识,$\ extit{SKIntern}$降低了计算开销,并在推理时仅关注问题从而加速推理过程。它在广泛的SLMs上,在域内(ID)和域外(OOD)任务中,均优于最先进的基线超过5%,同时将推理成本(以FLOPs衡量)降低高达4倍。我们的代码将在\url{https://github.com/Xnhyacinth/SKIntern}上提供。

英文摘要:

Small Language Models (SLMs) are attracting attention due to the high computational demands and privacy concerns of Large Language Models (LLMs). Some studies fine-tune SLMs using Chains of Thought (CoT) data distilled from LLMs, aiming to enhance their reasoning ability. Furthermore, Some CoT distillation methods introduce external symbolic knowledge into the generation process to improve the limited knowledge memory, reasoning ability and out-of-domain (OOD) generalization of SLMs. However, the introduction of symbolic knowledge increases computational overhead and introduces potential noise. In this paper, we introduce $\textit{SKIntern}$, an innovative approach that empowers SLMs to internalize symbolic knowledge and few-shot examples gradually through a progressive fine-tuning process, guided by a predefined linear decay schedule under curriculum learning. By efficiently internalizing knowledge, $\textit{SKIntern}$ reduces computational overhead and speeds up the reasoning process by focusing solely on the question during inference. It outperforms state-of-the-art baselines by over 5\%, while reducing inference costs (measured in FLOPs) by up to $4\times$ across a wide range of SLMs in both in-domain (ID) and out-of-domain (OOD) tasks. Our code will be available at \url{https://github.com/Xnhyacinth/SKIntern}.

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

↑