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

即插即用的Transformer模块用于测试时自适应

Plug-and-Play Transformer Modules for Test-Time Adaptation

University of California, Riverside(加州大学河滨分校);DEVCOM Army Research Laboratory(DEVCOM陆军研究实验室);University of Michigan(密歇根大学)

Xiangyu Chang, Sk Miraj Ahmed, Srikanth V. Krishnamurthy, Basak Guler, Ananthram Swami, Samet Oymak, Amit K. Roy-Chowdhury

AI总结:

针对测试时大量无标签新领域的自适应难题,提出PLUTO即插即用模块策略,预训练模块库并稀疏选择加权组合,无需调权即可高效适应,优于现有TTA方法。

摘要:

参数高效微调(PET)方法,如LoRA、Adapter和视觉提示微调(VPT),通过调整Transformer模型内的小模块,在适应新领域方面取得了成功。然而,测试时遇到的领域数量可能非常庞大,且数据通常是无标签的。因此,适应新领域具有挑战性;为每个这样的领域生成定制化的微调模块也是不切实际的。为了解决这些挑战,本工作引入了PLUTO:一种即插即用的模块化测试时领域自适应策略。我们预训练了大量模块,每个模块专门针对不同的源领域,有效创建了一个“模块库”。给定一个具有少样本无标签数据的目标领域,我们提出了一种无监督的测试时自适应(TTA)方法,以(1)从该库中选择一个稀疏的相关模块子集,并(2)在不调整其权重的情况下,创建所选模块的加权组合。这种即插即用的特性使我们能够在单次推理调用中利用多个最相关的源领域。综合评估表明,PLUTO在所有方面均优于其他TTA方法,且选择≤5个模块足以提取大部分收益。从高层次来看,我们的方法使预训练的Transformer具备动态适应新领域的能力,为高效且可扩展的领域自适应提供了新的范式。

英文摘要:

Parameter-efficient tuning (PET) methods such as LoRA, Adapter, and Visual Prompt Tuning (VPT) have found success in enabling adaptation to new domains by tuning small modules within a transformer model. However, the number of domains encountered during test time can be very large, and the data is usually unlabeled. Thus, adaptation to new domains is challenging; it is also impractical to generate customized tuned modules for each such domain. Toward addressing these challenges, this work introduces PLUTO: a Plug-and-pLay modUlar Test-time domain adaptatiOn strategy. We pre-train a large set of modules, each specialized for different source domains, effectively creating a ``module store''. Given a target domain with few-shot unlabeled data, we introduce an unsupervised test-time adaptation (TTA) method to (1) select a sparse subset of relevant modules from this store and (2) create a weighted combination of selected modules without tuning their weights. This plug-and-play nature enables us to harness multiple most-relevant source domains in a single inference call. Comprehensive evaluations demonstrate that PLUTO uniformly outperforms alternative TTA methods and that selecting $\leq$5 modules suffice to extract most of the benefit. At a high level, our method equips pre-trained transformers with the capability to dynamically adapt to new domains, motivating a new paradigm for efficient and scalable domain adaptation.

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

↑