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

AdaSent:面向少样本分类的高效领域自适应句嵌入

AdaSent: Efficient Domain-Adapted Sentence Embeddings for Few-Shot Classification

Technical University of Darmstadt(达姆施塔特工业大学);Huawei Research Centre, Dublin(华为都柏林研究中心);University of Würzburg(维尔茨堡大学)

Yongxin Huang, Kexin Wang, Sourav Dutta, Raj Nath Patel, Goran Glavaš, Iryna Gurevych

AI总结:

AdaSent通过训练SEPT适配器将句嵌入预训练与领域自适应预训练解耦,在17个少样本句分类数据集上以更低训练成本达到或超越完整SEPT性能。

摘要:

近期研究发现,基于预训练句编码器(SE)的少样本句分类具有高效、鲁棒和有效的特点。本文研究了在基于SE的少样本句分类场景下进行领域专门化的策略。我们首先确认,对基础预训练语言模型(PLM)(即不是SE)进行无监督领域自适应预训练(DAPT)可显著提升少样本句分类准确率,最高提升8.4个百分点。然而,将DAPT应用于SE一方面会破坏其(通用领域)句嵌入预训练(SEPT)的效果;另一方面,在领域自适应基础PLM之上(即DAPT之后)再应用通用领域SEPT虽然有效但效率低下,因为计算开销较大的SEPT需要在每个领域的DAPT处理后的PLM之上执行。作为解决方案,我们提出AdaSent,通过在基础PLM上训练一个SEPT适配器,将SEPT与DAPT解耦。该适配器可以插入任意领域经过DAPT处理的PLM中。我们在17个不同的少样本句分类数据集上进行了大量实验,证明了AdaSent的有效性。AdaSent在DAPT处理后的PLM上达到或超过完整SEPT的性能,同时大幅降低了训练成本。AdaSent的代码已公开。

英文摘要:

Recent work has found that few-shot sentence classification based on pre-trained Sentence Encoders (SEs) is efficient, robust, and effective. In this work, we investigate strategies for domain-specialization in the context of few-shot sentence classification with SEs. We first establish that unsupervised Domain-Adaptive Pre-Training (DAPT) of a base Pre-trained Language Model (PLM) (i.e., not an SE) substantially improves the accuracy of few-shot sentence classification by up to 8.4 points. However, applying DAPT on SEs, on the one hand, disrupts the effects of their (general-domain) Sentence Embedding Pre-Training (SEPT). On the other hand, applying general-domain SEPT on top of a domain-adapted base PLM (i.e., after DAPT) is effective but inefficient, since the computationally expensive SEPT needs to be executed on top of a DAPT-ed PLM of each domain. As a solution, we propose AdaSent, which decouples SEPT from DAPT by training a SEPT adapter on the base PLM. The adapter can be inserted into DAPT-ed PLMs from any domain. We demonstrate AdaSent's effectiveness in extensive experiments on 17 different few-shot sentence classification datasets. AdaSent matches or surpasses the performance of full SEPT on DAPT-ed PLM, while substantially reducing the training costs. The code for AdaSent is available.

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

↑