arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2410.17661cs.AIcs.LG
收藏

PETAH:资源受限场景下混合Transformer的参数高效任务适配

PETAH: Parameter Efficient Task Adaptation for Hybrid Transformers in a resource-limited Context

Tübingen AI Center University of Tübingen(图宾根人工智能中心 图宾根大学);Meta Inc.(Meta公司);New York University(纽约大学)

Maximilian Augustin, Syed Shakib Sarwar, Mostafa Elhoushi, Sai Qian Zhang, Yuecheng Li, Barbara De Salvo

AI总结:

针对混合Transformer缺乏高效任务适配技术的问题,提出PETAH参数高效适配方法并结合剪枝,在多视觉任务上以更少参数实现了优于现有ViT适配技术的性能,更适配资源受限的移动场景。

摘要:

继Transformer在自然语言处理(NLP)领域取得成功后,计算机视觉领域也开始向Transformer模型转型。尽管Transformer性能优异且具备可观的多任务处理潜力,但由于其计算需求极高,许多资源受限的应用仍依赖卷积模型或结合了卷积层与注意力层优势的混合模型,这类模型在参数量低于1亿的区间内表现最优。与此同时,可利用单个共享Transformer主干网络处理多个下游任务、在性能损失可忽略的前提下大幅节省存储空间的任务适配技术,尚未应用于混合Transformer。本研究探讨了如何实现最优的任务适配性能,并提出了PETAH:面向混合Transformer的参数高效任务适配方法。我们进一步将PETAH适配与剪枝技术相结合,打造出性能优异且存储空间友好的多任务模型。在针对分类及其他视觉任务的大量评估中,我们证明经PETAH适配的混合模型性能优于现有的ViT任务适配技术,同时所需参数更少,在移动硬件上的运行效率也更高。

英文摘要:

Following their success in natural language processing (NLP), there has been a shift towards transformer models in computer vision. While transformers perform well and offer promising multi-tasking performance, due to their high compute requirements, many resource-constrained applications still rely on convolutional or hybrid models that combine the benefits of convolution and attention layers and achieve the best results in the sub 100M parameter range. Simultaneously, task adaptation techniques that allow for the use of one shared transformer backbone for multiple downstream tasks, resulting in great storage savings at negligible cost in performance, have not yet been adopted for hybrid transformers. In this work, we investigate how to achieve the best task-adaptation performance and introduce PETAH: Parameter Efficient Task Adaptation for Hybrid Transformers. We further combine PETAH adaptation with pruning to achieve highly performant and storage friendly models for multi-tasking. In our extensive evaluation on classification and other vision tasks, we demonstrate that our PETAH-adapted hybrid models outperform established task-adaptation techniques for ViTs while requiring fewer parameters and being more efficient on mobile hardware.

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

↑