PromptBoosting:十次前向传播的黑盒文本分类
PromptBoosting: Black-Box Text Classification with Ten Forward Passes
AI总结:
提出PromptBoosting,一种无需访问参数、梯度的黑盒文本分类方法,通过无梯度方法获取提示池并构建弱学习器池,使用AdaBoost集成,仅需少量前向传播,在少样本和标准学习中表现优于全量微调且训练快10倍。
摘要:
我们描述了PromptBoosting,这是一种查询高效的程序,用于在无法访问神经语言模型(LM)的参数、梯度或隐藏表示的情况下,基于该模型构建文本分类器。随着大规模LM的训练和推理成本不断增长,这种“黑盒”分类器训练形式变得越来越重要。但现有的黑盒LM分类器学习方法本身在计算上效率低下,通常通过使用零阶优化方法在巨大的(离散或连续)提示空间中进行搜索,使LM专门适应目标任务。PromptBoosting不直接在提示空间中进行优化,而是通过无梯度方法获取一个小型提示池,然后通过将这些提示与LM输出分布的不同元素配对,构建一个大型弱学习器池。随后使用AdaBoost算法对这些弱学习器进行集成。整个学习过程仅需少量前向传播,且无需反向传播。实验表明,PromptBoosting在多个黑盒少样本分类任务中实现了最先进的性能,并且在少样本和标准学习范式中均匹配或超越了全量微调,同时训练速度比现有黑盒方法快10倍。
英文摘要:
We describe PromptBoosting, a query-efficient procedure for building a text classifier from a neural language model (LM) without access to the LM's parameters, gradients, or hidden representations. This form of "black-box" classifier training has become increasingly important as the cost of training and inference in large-scale LMs grows. But existing black-box LM classifier learning approaches are themselves computationally inefficient, typically specializing LMs to the target task by searching in a large space of (discrete or continuous) prompts using zeroth-order optimization methods. Instead of directly optimizing in prompt space, PromptBoosting obtains a small pool of prompts via a gradient-free approach and then constructs a large pool of weak learners by pairing these prompts with different elements of the LM's output distribution. These weak learners are then ensembled using the AdaBoost algorithm. The entire learning process requires only a small number of forward passes and no backward pass. Experiments show that PromptBoosting achieves state-of-the-art performance in multiple black-box few-shot classification tasks, and matches or outperforms full fine-tuning in both few-shot and standard learning paradigms, while training 10x faster than existing black-box methods.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。