arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.06382cs.CVcs.AIcs.LG
收藏

面向下游微调的预训练模型推荐

Pre-Trained Model Recommendation for Downstream Fine-tuning

Zhejiang University(浙江大学)

Jiameng Bai, Sai Wu, Jie Song, Junbo Zhao, Gang Chen

AI总结:

本文提出 Fennec 框架,通过迁移子空间向量距离、代理视觉模型和 archi2vec 架构编码,以 O(1) 复杂度为下游微调推荐预训练模型,并发布基准验证其有效性。

摘要:

作为迁移学习中的一个基础问题,模型选择旨在对现成的预训练模型进行排序,并为新的目标任务选择最合适的模型。现有的模型选择技术往往在适用范围上受到限制,并且容易忽略模型与任务之间细微的关系。本文提出了一个实用框架 Fennec,该框架深入研究多样化、大规模的模型库,同时细致考虑任务与模型之间错综复杂的联系。其关键洞见是将所有模型和历史任务映射到一个与迁移相关的子空间中,在该子空间内,模型向量与任务向量之间的距离表示可迁移性的大小。一个大型视觉模型作为代理,推断新任务在迁移空间中的表示,从而避免大量前向传播带来的计算负担。我们还研究了模型固有的归纳偏置对迁移结果的影响,并提出了一种名为 archi2vec 的新方法,用于编码模型的复杂结构。迁移分数通过简单直接的向量运算计算,时间复杂度为 O(1)。最后,我们通过发布一个全面的基准,对该领域作出实质性贡献。我们在两个基准上进行严格测试,验证了框架的有效性。该基准和代码将在近期公开发布。

英文摘要:

As a fundamental problem in transfer learning, model selection aims to rank off-the-shelf pre-trained models and select the most suitable one for the new target task. Existing model selection techniques are often constrained in their scope and tend to overlook the nuanced relationships between models and tasks. In this paper, we present a pragmatic framework \textbf{Fennec}, delving into a diverse, large-scale model repository while meticulously considering the intricate connections between tasks and models. The key insight is to map all models and historical tasks into a transfer-related subspace, where the distance between model vectors and task vectors represents the magnitude of transferability. A large vision model, as a proxy, infers a new task's representation in the transfer space, thereby circumventing the computational burden of extensive forward passes. We also investigate the impact of the inherent inductive bias of models on transfer results and propose a novel method called \textbf{archi2vec} to encode the intricate structures of models. The transfer score is computed through straightforward vector arithmetic with a time complexity of $\mathcal{O}(1)$. Finally, we make a substantial contribution to the field by releasing a comprehensive benchmark. We validate the effectiveness of our framework through rigorous testing on two benchmarks. The benchmark and the code will be publicly available in the near future.

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

↑