arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2408.15915cs.CVcs.AIcs.CL
收藏

利用开放知识提升大型语言模型的任务专业能力

Leveraging Open Knowledge for Advancing Task Expertise in Large Language Models

Institute of Image Processing and Pattern Recognition(图像处理与模式识别研究所);Institute of Medical Robotics(医学机器人研究所);Shanghai Jiao Tong University(上海交通大学);Tencent YouTu Lab(腾讯优图实验室)

Yuncheng Yang, Yulei Qin, Tong Wu, Zihan Xu, Gang Li, Pengcheng Guo, Hang Shao, Yuchen Shi, Ke Li, Xing Sun, Jie Yang, Yun Gu

AI总结:

本文提出利用少量 K-shot 标注样本,从开放 LoRA 模型和指令数据中选择互补专家与相关数据,构建多样化 MoE 系统以提升 LLM 的领域任务专业能力。

摘要:

培养大型语言模型(LLM)解决特定领域任务的专业能力,通常需要进行专用调优,使其在预期稳定输出上具备经过校准的行为。为避免人工准备指令数据集以及长达数百小时训练资源所带来的巨大成本,利用包含大量低秩适配(LoRA)模型和指令数据集在内的开放知识,是一个良好起点。然而,现有模型与数据选择方法关注通用能力表现,却忽视了领域特定部署中暴露出的知识差距。本研究提出通过引入少量人工标注样本(即 K-shot)来弥合这一差距,借助开放知识提升 LLM 的任务专业能力。具体而言,我们开发了一条高效且可扩展的流程,以高成本效益方式生成任务专家,其中 K-shot 数据参与选择最有潜力的专家候选对象和与任务相关的指令。我们构建了一个混合专家(MoE)系统,以充分利用多个专家之间各自独立却互补的知识。我们揭示了 MoE 系统成功的两个关键:1)遵循 K-shot;2)坚持多样性。对于前者,我们确保选择真正在 K-shot 上具备问题解决能力的模型,而非盲目猜测者;此外,在数据选择期间,优先考虑与 K-shot 共享任务相关上下文的指令。对于后者,我们在整个模型和数据选择过程中强调构成专家的多样性以及微调指令的多样性。大量实验结果证实,在各类任务的开放知识利用方面,我们的方法优于现有方法。代码将发布于 https://github.com/Yaphabates/Rocket。

英文摘要:

The cultivation of expertise for large language models (LLMs) to solve tasks of specific areas often requires special-purpose tuning with calibrated behaviors on the expected stable outputs. To avoid huge cost brought by manual preparation of instruction datasets and training resources up to hundreds of hours, the exploitation of open knowledge including a wealth of low rank adaptation (LoRA) models and instruction datasets serves as a good starting point. However, existing methods on model and data selection focus on the performance of general-purpose capabilities while neglecting the knowledge gap exposed in domain-specific deployment. In the present study, we propose to bridge such gap by introducing few human-annotated samples (i.e., K-shot) for advancing task expertise of LLMs with open knowledge. Specifically, we develop an efficient and scalable pipeline to cost-efficiently produce task experts where K-shot data intervene in selecting the most promising expert candidates and the task-relevant instructions. A mixture-of-expert (MoE) system is built to make the best use of individual-yet-complementary knowledge between multiple experts. We unveil the two keys to the success of a MoE system, 1) the abidance by K-shot, and 2) the insistence on diversity. For the former, we ensure that models that truly possess problem-solving abilities on K-shot are selected rather than those blind guessers. Besides, during data selection, instructions that share task-relevant contexts with K-shot are prioritized. For the latter, we highlight the diversity of constituting experts and that of the fine-tuning instructions throughout the model and data selection process. Extensive experimental results confirm the superiority of our approach over existing methods on utilization of open knowledge across various tasks. Our codes will be available at https://github.com/Yaphabates/Rocket.

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

↑