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

BLADE:用小型领域特定模型增强黑盒大型语言模型

BLADE: Enhancing Black-box Large Language Models with Small Domain-Specific Models

Tsinghua University(清华大学);Quan Cheng Laboratory(泉城实验室);Beijing Institute of Technology(北京理工大学);Zhongguancun Laboratory(中关村实验室);Huawei Cloud BU(华为云业务部)

Haitao Li, Qingyao Ai, Jia Chen, Qian Dong, Zhijing Wu, Yiqun Liu, Chong Chen, Qi Tian

AI总结:

提出BLADE框架,通过结合黑盒通用LLM与小型领域特定LM,并采用预训练、知识指令微调及联合贝叶斯优化,以低成本方式有效增强垂直领域的专业知识与推理能力。

摘要:

像ChatGPT和GPT-4这样的大型语言模型(LLMs)功能多样,能够处理各种任务。然而,基于开放领域数据开发的通用LLMs可能缺乏垂直领域(如法律、医疗等)任务所需的领域特定知识。为解决此问题,以往的方法要么使用领域特定数据进行持续预训练,要么采用检索增强来支持通用LLMs。不幸的是,这些策略在实际应用中要么成本高昂,要么不可靠。为此,我们提出了一种名为BLADE的新型框架,通过小型领域特定模型增强黑盒大型语言模型。BLADE由一个黑盒LLM和一个小型领域特定LM组成。小型LM保留领域特定知识并提供专业见解,而通用LLM提供强大的语言理解和推理能力。具体而言,我们的方法包括三个步骤:1)用领域特定数据预训练小型LM,2)使用知识指令数据微调该模型,3)对通用LLM和小型LM进行联合贝叶斯优化。在公开的法律和医疗基准上进行的大量实验表明,BLADE显著优于现有方法。这表明BLADE作为一种有效且具有成本效益的解决方案,在将通用LLMs适配到垂直领域方面具有潜力。

英文摘要:

Large Language Models (LLMs) like ChatGPT and GPT-4 are versatile and capable of addressing a diverse range of tasks. However, general LLMs, which are developed on open-domain data, may lack the domain-specific knowledge essential for tasks in vertical domains, such as legal, medical, etc. To address this issue, previous approaches either conduct continuous pre-training with domain-specific data or employ retrieval augmentation to support general LLMs. Unfortunately, these strategies are either cost-intensive or unreliable in practical applications. To this end, we present a novel framework named BLADE, which enhances Black-box LArge language models with small Domain-spEcific models. BLADE consists of a black-box LLM and a small domain-specific LM. The small LM preserves domain-specific knowledge and offers specialized insights, while the general LLM contributes robust language comprehension and reasoning capabilities. Specifically, our method involves three steps: 1) pre-training the small LM with domain-specific data, 2) fine-tuning this model using knowledge instruction data, and 3) joint Bayesian optimization of the general LLM and the small LM. Extensive experiments conducted on public legal and medical benchmarks reveal that BLADE significantly outperforms existing approaches. This shows the potential of BLADE as an effective and cost-efficient solution in adapting general LLMs for vertical domains.

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

↑