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

你需要多次退出:用于加速统一视觉语言模型的动态提前退出

You Need Multiple Exiting: Dynamic Early Exiting for Accelerating Unified Vision Language Model

North Carolina State University(北卡罗来纳州立大学);Google Research(谷歌研究院);Northeastern University(东北大学);University of Michigan(密歇根大学);The University of North Carolina at Chapel Hill(北卡罗来纳大学教堂山分校);University of Connecticut(康涅狄格大学)

Shengkun Tang, Yaqing Wang, Zhenglun Kong, Tianchi Zhang, Yao Li, Caiwen Ding, Yanzhi Wang, Yi Liang, Dongkuan Xu

AI总结:

针对统一视觉语言模型编码器难以提前退出的问题,提出动态多次提前退出策略MuE,根据层级相似度同时跳过编码器和解码器层,在保持96%以上性能的同时减少高达50%推理时间。

摘要:

大规模Transformer模型为各种下游视觉语言任务带来了显著改进,且采用了统一的架构。性能的提升伴随着模型规模的增加,导致推理速度变慢并增加了服务成本。虽然某些预测得益于大规模模型的全部复杂度,但并非所有输入都需要相同数量的计算,这可能导致计算资源浪费。为应对这一挑战,提前退出被提出,以根据输入复杂度自适应分配计算能力,从而提高推理效率。现有的提前退出策略通常采用基于中间层的输出置信度作为输入复杂度的代理,以决定跳过后续层。然而,这种策略无法应用于广泛使用的、同时包含编码器和解码器的统一架构中的编码器,因为编码器中难以估计输出置信度。忽略编码器组件中的提前退出在节省计算量方面是次优的。为了解决这一问题,我们提出了一种针对统一视觉语言模型的新颖提前退出策略,该策略允许根据输入的层级相似度同时动态跳过编码器和解码器中的层,并进行多次提前退出,即MuE。通过在编码器中分解图像和文本模态,MuE具有灵活性,可以根据模态跳过不同的层,在最小化性能下降的同时提升推理效率。在SNLI-VE和MS COCO数据集上的实验表明,所提出的方法MuE能将预期推理时间分别减少高达50%和40%,同时保持99%和96%的性能。

英文摘要:

Large-scale Transformer models bring significant improvements for various downstream vision language tasks with a unified architecture. The performance improvements come with increasing model size, resulting in slow inference speed and increased cost for severing. While some certain predictions benefit from the full complexity of the large-scale model, not all of inputs need the same amount of computation to conduct, potentially leading to computation resource waste. To handle this challenge, early exiting is proposed to adaptively allocate computational power in term of input complexity to improve inference efficiency. The existing early exiting strategies usually adopt output confidence based on intermediate layers as a proxy of input complexity to incur the decision of skipping following layers. However, such strategies cannot apply to encoder in the widely-used unified architecture with both encoder and decoder due to difficulty of output confidence estimation in the encoder. It is suboptimal in term of saving computation power to ignore the early exiting in encoder component. To handle this challenge, we propose a novel early exiting strategy for unified visual language models, which allows dynamically skip the layers in encoder and decoder simultaneously in term of input layer-wise similarities with multiple times of early exiting, namely \textbf{MuE}. By decomposing the image and text modalities in the encoder, MuE is flexible and can skip different layers in term of modalities, advancing the inference efficiency while minimizing performance drop. Experiments on the SNLI-VE and MS COCO datasets show that the proposed approach MuE can reduce expected inference time by up to 50\% and 40\% while maintaining 99\% and 96\% performance respectively.

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

↑