arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2205.11200cs.CLcs.AI
收藏

BBTv2:用大语言模型走向无约束的未来

BBTv2: Towards a Gradient-Free Future with Large Language Models

Fudan University(复旦大学);East China Normal University(华东师范大学)

Tianxiang Sun, Zhengfu He, Hong Qian, Yunhua Zhou, Xuanjing Huang, Xipeng Qiu

摘要:

大多数下游自适应方法通过梯度下降来调整预训练模型(PTM)的全部或部分参数,其中调整成本随着模型大小的增长而线性增加。相比之下,无梯度方法只需要PTM的前向计算来调整提示,保留了高效调整和部署的好处。然而,过去的无梯度调优工作通常引入梯度下降来寻求提示的良好初始化,并且缺乏跨任务和PTM的通用性。在本文中,我们提出了BBTv2,黑盒调整的改进版本,以驱动PTM进行少样本学习。我们在PTM的每一层都添加了连续的提示,并提出了一种分而治之的无梯度算法来交替优化不同层的提示。跨各种任务和PTM的广泛实验表明,BBTv2可以实现与完整模型调整和最先进的参数高效方法(例如,适配器、LoRA、BitFit等)在Few-Shot设置下,同时保持更少的可调参数。

英文摘要:

Most downstream adaptation methods tune all or part of the parameters of pre-trained models (PTMs) through gradient descent, where the tuning cost increases linearly with the growth of the model size. By contrast, gradient-free methods only require the forward computation of the PTM to tune the prompt, retaining the benefits of efficient tuning and deployment. Though, past work on gradient-free tuning often introduces gradient descent to seek a good initialization of prompt and lacks versatility across tasks and PTMs. In this paper, we present BBTv2, an improved version of Black-Box Tuning, to drive PTMs for few-shot learning. We prepend continuous prompts to every layer of the PTM and propose a divide-and-conquer gradient-free algorithm to optimize the prompts at different layers alternately. Extensive experiments across various tasks and PTMs show that BBTv2 can achieve comparable performance to full model tuning and state-of-the-art parameter-efficient methods (e.g., Adapter, LoRA, BitFit, etc.) under few-shot settings while maintaining much fewer tunable parameters.

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

↑