Model Spider:学习高效地对预训练模型进行排序
Model Spider: Learning to Rank Pre-Trained Models Efficiently
AI总结:
针对模型库中预训练模型选择成本高的问题,提出 Model Spider,通过模型与任务标记及两阶段排序实现高效、可泛化的 PTM 选择。
摘要:
弄清楚模型库中的哪一个预训练模型(Pre-Trained Model,PTM)适合目标任务,对于利用丰富的模型资源至关重要。随着来自不同领域的大量异构 PTM 的出现,由于对所有 PTM 执行前向或反向传播需要耗费大量时间成本,高效选择最合适的 PTM 颇具挑战。本文提出 Model Spider,它通过将 PTM 和任务的特征概括为向量来对二者进行标记化,从而实现高效的 PTM 选择。通过利用 PTM 在一组独立训练任务上的近似性能,Model Spider 学习构建标记,并通过模型与任务的标记来衡量模型-任务对之间的适应度分数。将相关 PTM 排在其他模型之前的能力可泛化到新任务。借助排名靠前的 PTM 候选,我们进一步学习用其 PTM 专属语义来丰富任务标记,以重新排序 PTM,从而实现更好的选择。Model Spider 平衡了效率与选择能力,使 PTM 选择就像蜘蛛在网上捕食一样。Model Spider 在模型库的多种配置中展现出良好的性能。
英文摘要:
Figuring out which Pre-Trained Model (PTM) from a model zoo fits the target task is essential to take advantage of plentiful model resources. With the availability of numerous heterogeneous PTMs from diverse fields, efficiently selecting the most suitable PTM is challenging due to the time-consuming costs of carrying out forward or backward passes over all PTMs. In this paper, we propose Model Spider, which tokenizes both PTMs and tasks by summarizing their characteristics into vectors to enable efficient PTM selection. By leveraging the approximated performance of PTMs on a separate set of training tasks, Model Spider learns to construct tokens and measure the fitness score between a model-task pair via their tokens. The ability to rank relevant PTMs higher than others generalizes to new tasks. With the top-ranked PTM candidates, we further learn to enrich task tokens with their PTM-specific semantics to re-rank the PTMs for better selection. Model Spider balances efficiency and selection ability, making PTM selection like a spider preying on a web. Model Spider demonstrates promising performance in various configurations of model zoos.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。