本文提出 EA-ViT 两阶段高效适配框架,通过嵌套弹性架构、课程训练及 NSGA-II 初始化的轻量路由器,使单个预训练 ViT 可按资源与任务需求生成多种尺寸子模型。
摘要:
Vision Transformers(ViT)已成为计算机视觉中的基础模型,在泛化以及对下游任务的适配方面表现出色。然而,部署 ViT 以支持多样化的资源约束,通常需要重新训练多个特定尺寸的 ViT,这既耗时又耗能。为解决这一问题,我们提出一种高效的 ViT 适配框架,使单次适配过程能够生成多个不同尺寸的模型,以便部署在具有各种资源约束的平台上。我们的方法包括两个阶段。第一阶段,我们通过嵌套弹性架构增强预训练 ViT,使其能够在 MLP 扩展率、注意力头数、嵌入维度和网络深度方面实现结构灵活性。为保留预训练知识并确保稳定适配,我们采用基于课程的训练策略,逐步增加弹性。第二阶段,我们设计轻量级路由器,根据计算预算和下游任务需求选择子模型。该路由器使用通过定制 NSGA-II 算法得到的 Pareto 最优配置进行初始化,随后与骨干网络联合优化。在多个基准上的大量实验证明了 EA-ViT 的有效性和通用性。代码可在 https://github.com/zcxcf/EA-ViT 获取。
英文摘要:
Vision Transformers (ViTs) have emerged as a foundational model in computer vision, excelling in generalization and adaptation to downstream tasks. However, deploying ViTs to support diverse resource constraints typically requires retraining multiple, size-specific ViTs, which is both time-consuming and energy-intensive. To address this issue, we propose an efficient ViT adaptation framework that enables a single adaptation process to generate multiple models of varying sizes for deployment on platforms with various resource constraints. Our approach comprises two stages. In the first stage, we enhance a pre-trained ViT with a nested elastic architecture that enables structural flexibility across MLP expansion ratio, number of attention heads, embedding dimension, and network depth. To preserve pre-trained knowledge and ensure stable adaptation, we adopt a curriculum-based training strategy that progressively increases elasticity. In the second stage, we design a lightweight router to select submodels according to computational budgets and downstream task demands. Initialized with Pareto-optimal configurations derived via a customized NSGA-II algorithm, the router is then jointly optimized with the backbone. Extensive experiments on multiple benchmarks demonstrate the effectiveness and versatility of EA-ViT. The code is available at https://github.com/zcxcf/EA-ViT.
Learning CNN on ViT: A Hybrid Model to Explicitly Class-specific Boundaries for Domain Adaptation
Graduate School of Data Science, Chonnam National University(全南国立大学数据科学研究生院);Department of Computer Science, National Yang Ming Chiao Tung University(国立阳明交通大学计算机科学系);Digital Transformation Center, FPT Telecom(FPT电信数字化转型中心);AI Graduate School, GIST(光州科学技术院人工智能研究生院)
ViT-FREE: Efficient Face Recognition via Early Exiting and Synthetic Adaptation
Fraunhofer Institute for Computer Graphics Research IGD, Germany(德国弗劳恩霍夫计算机图形学研究所IGD);Department of Computer Science, TU Darmstadt, Germany(德国达姆施塔特工业大学计算机科学系)
MeLo: Low-rank Adaptation is Better than Fine-tuning for Medical Image Diagnosis
ShanghaiTech University(上海科技大学);Shanghai Jiao Tong University(上海交通大学);Shanghai United Imaging Intelligence Co., Ltd.(上海联影智能医疗科技有限公司);Shanghai Clinical Research and Trial Center(上海临床研究与试验中心)
Adapting Vision Foundation Models with Cascaded Semantics
University of Alabama at Birmingham(阿拉巴马大学伯明翰分校);Carnegie Mellon University(卡内基梅隆大学);University of Missouri–Kansas City(密苏里大学堪萨斯城分校);Northeastern University(东北大学);Tulane University(杜兰大学);University of Bristol(布里斯托大学);Oak Ridge National Laboratory(橡树岭国家实验室)
STRADAViT: Self-Supervised Domain Adaptation of Vision Transformer Backbones for Radio Astronomy
organization= Institute of Space Sciences;Astronomy , addressline= University of Malta , city= Msida , postcode= MSD2080 , country= Malta;organization= School of Physics;Astronomy, Royal Observatory , addressline= University of Edinburgh , city= Edinburgh , country= United Kingdom
Open-Set Deepfake Detection: A Parameter-Efficient Adaptation Method with Forgery Style Mixture
Rapid-Rich Object Search (ROSE) Lab, School of Electrical and Electronic Engineering, Nanyang Technology University(快速丰富对象搜索实验室(ROSE实验室),电子与电气工程学院,南洋理工大学);School of Computing and Artificial Intelligence, Jiangxi University of Finance and Economics(计算机与人工智能学院,江西财经大学);Department of Computer Science, Hong Kong Baptist University(计算机科学系,香港 Baptist大学);Department of Electrical Engineering, City University of Hong Kong(电气工程系,香港城市大学);Department of Computer Science and Computing, Zhejiang University City College(计算机科学与计算系,浙江大学城市学院);Artificial Intelligence Lab. ( Recod.ai ) at the University of Campinas(Campinas大学的人工智能实验室(Recod.ai))
OU-CoViT: Copula-Enhanced Bi-Channel Multi-Task Vision Transformers with Dual Adaptation for OU-UWF Images
Fudan University(复旦大学);The Hong Kong Polytechnic University(香港理工大学);Eye & ENT Hospital, Fudan University(复旦大学附属眼耳鼻喉科医院);Australian National University(澳大利亚国立大学);Eunice Kennedy Shriver National Institute of Child Health and Human Development(尤尼斯·肯尼迪·施莱佛国家儿童健康与人类发育研究所)
LAMP: Layerwise Adaptive Mixing of Predictors for Training-Free Few-Shot Vision-Language Adaptation
Taizhou Institute of Science and Technology, Nanjing University of Science and Technology(南京理工大学泰州科技学院);Xi’an Jiaotong-Liverpool University(西交利物浦大学);University of Arizona(亚利桑那大学)