arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2403.12468cs.CL
收藏

CrossTune:基于标签增强的黑盒少样本分类

CrossTune: Black-Box Few-Shot Classification with Label Enhancement

National University of Singapore(新加坡国立大学);The Chinese University of Hong Kong (Shenzhen)(香港中文大学(深圳))

Danqing Luo, Chen Zhang, Yan Zhang, Haizhou Li

AI总结:

提出CrossTune,一种无需提示搜索的黑盒少样本分类方法,通过标签增强交叉注意力网络建模文本与标签描述语义相关性,利用ChatGPT生成数据并切换机制过滤,在七个基准上平均提升5.7%。

摘要:

训练或微调大规模语言模型(LLMs)需要大量的计算资源,这促使近期研究探索对下游任务的参数高效适配方法。一种方法是将这些模型视为黑盒,并通过前向传播(推理API)与之交互。当前研究侧重于使用基于梯度的无提示优化来适配这些黑盒模型到下游任务,但这通常涉及搜索任务特定提示的昂贵过程。因此,我们致力于研究无需提示搜索的黑盒语言模型适配。具体而言,我们引入了一个名为CrossTune的标签增强交叉注意力网络,该网络对输入文本序列与任务特定标签描述之间的语义相关性进行建模。其有效性在少样本文本分类的背景下得到检验。为了提高CrossTune的泛化能力,我们利用ChatGPT通过上下文学习生成额外的训练数据。实现了一种切换机制以排除低质量的ChatGPT生成数据。通过在七个基准文本分类数据集上的大量实验,我们证明所提出的方法平均比先前最先进的无梯度黑盒调优方法高出5.7%。即使不使用ChatGPT增强数据,CrossTune的性能也优于或等同于先前的黑盒调优方法,这表明了我们方法的有效性。

英文摘要:

Training or finetuning large-scale language models (LLMs) requires substantial computation resources, motivating recent efforts to explore parameter-efficient adaptation to downstream tasks. One approach is to treat these models as black boxes and use forward passes (Inference APIs) to interact with them. Current research focuses on adapting these black-box models to downstream tasks using gradient-free prompt optimization, but this often involves an expensive process of searching task-specific prompts. Therefore, we are motivated to study black-box language model adaptation without prompt search. Specifically, we introduce a label-enhanced cross-attention network called CrossTune, which models the semantic relatedness between the input text sequence and task-specific label descriptions. Its effectiveness is examined in the context of few-shot text classification. To improve the generalization of CrossTune, we utilize ChatGPT to generate additional training data through in-context learning. A switch mechanism is implemented to exclude low-quality ChatGPT-generated data. Through extensive experiments on seven benchmark text classification datasets, we demonstrate that our proposed approach outperforms the previous state-of-the-art gradient-free black-box tuning method by 5.7% on average. Even without using ChatGPT-augmented data, CrossTune performs better or comparably than previous black-box tuning methods, suggesting the effectiveness of our approach.

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

↑