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

CombLM:通过小型微调模型适配黑盒语言模型

CombLM: Adapting Black-Box Language Models through Small Fine-Tuned Models

HiTZ Center, University of the Basque Country (UPV/EHU)(HiTZ中心,巴斯克大学(UPV/EHU));Reka AI(Reka人工智能公司)

Aitor Ormazabal, Mikel Artetxe, Eneko Agirre

AI总结:

本文提出 CombLM 方法,通过微调小型白盒语言模型并在概率层面与大型黑盒语言模型结合,以极低计算成本实现领域适配,在多个任务上最高提升 9%。

摘要:

将语言模型(LM)适配到新任务和新领域的方法传统上假设可以对模型进行白盒访问,并通过修改其参数来实现。然而,这与该领域近年来的趋势不相容,因为质量最高的模型只能通过推理 API 以黑盒形式获得。即使模型权重可用,对大多数实践者而言,微调大型语言模型的计算成本也可能高得令人望而却步。在这项工作中,我们提出了一种轻量级方法,用于在无法访问模型权重或中间激活的情况下,将大型语言模型适配到新领域和新任务。我们的方法微调一个小型白盒语言模型,并通过一个在小型验证集上学习得到的小型网络,在概率层面将其与大型黑盒语言模型相结合。我们通过将大型语言模型(OPT-30B)适配到多个领域和一个下游任务(机器翻译)来验证所提方法,在所有情况下均观察到性能提升,最高可达 9%,同时所使用的领域专家模型小 23 倍。

英文摘要:

Methods for adapting language models (LMs) to new tasks and domains have traditionally assumed white-box access to the model, and work by modifying its parameters. However, this is incompatible with a recent trend in the field, where the highest quality models are only available as black-boxes through inference APIs. Even when the model weights are available, the computational cost of fine-tuning large LMs can be prohibitive for most practitioners. In this work, we present a lightweight method for adapting large LMs to new domains and tasks, assuming no access to their weights or intermediate activations. Our approach fine-tunes a small white-box LM and combines it with the large black-box LM at the probability level through a small network, learned on a small validation set. We validate our approach by adapting a large LM (OPT-30B) to several domains and a downstream task (machine translation), observing improved performance in all cases, of up to 9%, while using a domain expert 23x smaller.

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

↑