高效可拼接任务适配
Efficient Stitchable Task Adaptation
AI总结:
针对SN-Net适配新域时内存存储需求大、多阶段适配过程次优的问题,提出ESTA框架,通过共享低秩更新的参数高效微调与单阶段梯度采样部署,高效生成多资源约束的微调模型,在视觉任务和LLaMA拼接上均表现优异。
摘要:
预训练-微调范式为深度学习模型的部署奠定了基础。然而,大多数微调方法都是为满足特定资源预算而设计的。近年来,考虑到具有不同资源预算的多样化部署场景,研究者提出了SN-Net(可拼接网络),通过模型拼接从一个模型族中的预训练模型(锚点模型)快速得到大量新网络(拼接模型)。尽管前景可观,但SN-Net在适配新的目标域时面临新挑战,包括巨大的内存与存储需求,以及漫长且次优的多阶段适配过程。\n在本研究中,我们提出了一种名为高效可拼接任务适配(Efficient Stitchable Task Adaptation, ESTA)的新型框架,可高效生成一系列满足不同资源约束的微调模型。具体而言,我们首先对参数高效微调进行定制,在各拼接模型间共享低秩更新,同时保留独立的偏置项。通过这种方式,我们大幅降低了微调的内存负担,并缓解了任务适配过程中各拼接模型之间的干扰。此外,我们简化出一种简单却有效的单阶段部署流水线,该流水线利用训练时的梯度统计量来估算需要部署的重要拼接模型。通过为重要拼接模型分配更高的采样概率,我们还得到了性能更优的帕累托前沿。\n我们在25个下游视觉识别任务上开展了大量实验,结果表明,ESTA能够生成在精度与效率间实现平滑权衡的拼接模型,且训练时间更短、可训练参数更少,性能远超直接进行SN-Net适配的方法。此外,我们通过拼接LLaMA家族的大语言模型,得到了不同规模的聊天机器人拼接模型,证明了ESTA框架的灵活性与可扩展性。源代码可在https://github.com/ziplab/Stitched_LLaMA 获取。
英文摘要:
The paradigm of pre-training and fine-tuning has laid the foundation for deploying deep learning models. However, most fine-tuning methods are designed to meet a specific resource budget. Recently, considering diverse deployment scenarios with various resource budgets, SN-Net is introduced to quickly obtain numerous new networks (stitches) from the pre-trained models (anchors) in a model family via model stitching. Although promising, SN-Net confronts new challenges when adapting it to new target domains, including huge memory and storage requirements and a long and sub-optimal multistage adaptation process. In this work, we present a novel framework, Efficient Stitchable Task Adaptation (ESTA), to efficiently produce a palette of fine-tuned models that adhere to diverse resource constraints. Specifically, we first tailor parameter-efficient fine-tuning to share low-rank updates among the stitches while maintaining independent bias terms. In this way, we largely reduce fine-tuning memory burdens and mitigate the interference among stitches that arises in task adaptation. Furthermore, we streamline a simple yet effective one-stage deployment pipeline, which estimates the important stitches to deploy with training-time gradient statistics. By assigning higher sampling probabilities to important stitches, we also get a boosted Pareto frontier. Extensive experiments on 25 downstream visual recognition tasks demonstrate that our ESTA is capable of generating stitches with smooth accuracy-efficiency trade-offs and surpasses the direct SN-Net adaptation by remarkable margins with significantly lower training time and fewer trainable parameters. Furthermore, we demonstrate the flexibility and scalability of our ESTA framework by stitching LLMs from LLaMA family, obtaining chatbot stitches of assorted sizes. Source code is available at https://github.com/ziplab/Stitched_LLaMA
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。