arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.02880cs.LGcs.AIcs.CV
收藏

基于带学习型各向异性缩放的任务向量的知识组合

Knowledge Composition using Task Vectors with Learned Anisotropic Scaling

Australian Institute for Machine Learning(澳大利亚机器学习研究所);The University of Adelaide(阿德莱德大学)

Frederic Z. Zhang, Paul Albert, Cristian Rodriguez-Opazo, Anton van den Hengel, Ehsan Abbasnejad

AI总结:

该研究提出aTLAS算法,通过对任务向量的参数块进行带可学习系数的线性组合实现各向异性缩放,在少样本、测试时自适应等场景下提升知识组合与迁移效果,且具备参数高效、可扩展的优势。

摘要:

预训练模型能生成强大的通用表征,可通过微调进行适配。相对于预训练模型的学习权重差被称为任务向量(task vector),它表征了微调的方向和步长。任务向量的重要性体现在:对其进行简单的算术运算即可组合来自不同领域的多样表征。本文基于任务向量的这些特性,旨在回答两个问题:(1)任务向量的组成部分,尤其是参数块,是否表现出相似的特性;(2)如何利用这类参数块增强知识组合与迁移。为此,我们提出了aTLAS算法,该算法使用不同的可学习系数对参数块进行线性组合,从而在任务向量层面实现各向异性缩放。我们证明,这类线性组合明确利用了预训练模型的低内在维度,仅需少量系数作为可学习参数。此外,参数块组合利用了已学习的表征,从而降低了对大量数据的依赖。我们在任务算术、少样本识别和测试时自适应场景下,分别采用有监督和无监督目标验证了所提方法的有效性。具体而言,我们发现:(1)学习型各向异性缩放使任务向量更具解耦性,减少了组合过程中的干扰;(2)任务向量组合在标注数据稀缺或无标注数据的情况下表现优异,且更不易受域偏移影响,因此具备更好的泛化能力;(3)在训练前混合不同任务向量中信息量最大的参数块,可减少内存占用并提升知识迁移的灵活性。此外,我们还展示了aTLAS作为一种参数高效微调(PEFT)方法的潜力,尤其是在数据量较少的场景下,并验证了其可扩展性。

英文摘要:

Pre-trained models produce strong generic representations that can be adapted via fine-tuning. The learned weight difference relative to the pre-trained model, known as a task vector, characterises the direction and stride of fine-tuning. The significance of task vectors is such that simple arithmetic operations on them can be used to combine diverse representations from different domains. This paper builds on these properties of task vectors and aims to answer (1) whether components of task vectors, particularly parameter blocks, exhibit similar characteristics, and (2) how such blocks can be used to enhance knowledge composition and transfer. To this end, we introduce aTLAS, an algorithm that linearly combines parameter blocks with different learned coefficients, resulting in anisotropic scaling at the task vector level. We show that such linear combinations explicitly exploit the low intrinsic dimensionality of pre-trained models, with only a few coefficients being the learnable parameters. Furthermore, composition of parameter blocks leverages the already learned representations, thereby reducing the dependency on large amounts of data. We demonstrate the effectiveness of our method in task arithmetic, few-shot recognition and test-time adaptation, with supervised or unsupervised objectives. In particular, we show that (1) learned anisotropic scaling allows task vectors to be more disentangled, causing less interference in composition; (2) task vector composition excels with scarce or no labeled data and is less prone to domain shift, thus leading to better generalisability; (3) mixing the most informative parameter blocks across different task vectors prior to training can reduce the memory footprint and improve the flexibility of knowledge transfer. Moreover, we show the potential of aTLAS as a PEFT method, particularly with less data, and demonstrate its scalibility.

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

↑