arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.04550cs.CVcs.CLcs.LG
收藏

面向多模态基础模型的模块级自适应蒸馏

Module-wise Adaptive Distillation for Multimodality Foundation Models

Georgia Tech(佐治亚理工学院);Google Research(谷歌研究院);UC Merced(加州大学默塞德分校);NVIDIA Research(英伟达研究院);University of Maryland, College Park(马里兰大学帕克分校)

Chen Liang, Jiahui Yu, Ming-Hsuan Yang, Matthew Brown, Yin Cui, Tuo Zhao, Boqing Gong, Tianyi Zhou

AI总结:

针对多模态基础模型体量大难部署的问题,提出模块级自适应蒸馏方法,将模块蒸馏频次选择建模为非平稳多臂老虎机问题,用改进的汤普森采样算法OPTIMA动态选择高贡献模块蒸馏,提升了蒸馏效率与学生模型性能。

摘要:

预训练多模态基础模型展现出卓越的泛化能力,但因体量庞大给部署带来挑战。逐层蒸馏是缩小其模型尺寸的有效方法,即训练小型学生模型,使其在每一层都匹配大型教师模型的隐层表示。我们观察到,被称为模块的特定架构组件对学生模型性能的贡献显著高于其他组件,受此启发,我们提出通过记录每个模块蒸馏后的损失衰减来追踪各模块的贡献,并选择贡献更大的模块进行更频繁的蒸馏。该方法可自然地建模为多臂老虎机(MAB)问题,其中模块对应臂,损失衰减对应奖励。随后我们开发了一种改进的汤普森采样算法OPTIMA,用于解决模型更新过程中模块贡献非平稳的问题。具体而言,我们利用近期历史中观测到的贡献来估计每个模块的动态贡献,并基于这些估计选择模块以最大化累积贡献。我们以CoCa-Large模型(Yu等人,2022)作为教师模型,在多种多模态理解任务和图像描述任务上开展蒸馏实验,验证了OPTIMA的有效性。

英文摘要:

Pre-trained multimodal foundation models have demonstrated remarkable generalizability but pose challenges for deployment due to their large sizes. One effective approach to reducing their sizes is layerwise distillation, wherein small student models are trained to match the hidden representations of large teacher models at each layer. Motivated by our observation that certain architecture components, referred to as modules, contribute more significantly to the student's performance than others, we propose to track the contributions of individual modules by recording the loss decrement after distillation each module and choose the module with a greater contribution to distill more frequently. Such an approach can be naturally formulated as a multi-armed bandit (MAB) problem, where modules and loss decrements are considered as arms and rewards, respectively. We then develop a modified-Thompson sampling algorithm named OPTIMA to address the nonstationarity of module contributions resulting from model updating. Specifically, we leverage the observed contributions in recent history to estimate the changing contribution of each module and select modules based on these estimations to maximize the cumulative contribution. We evaluate the effectiveness of OPTIMA through distillation experiments on various multimodal understanding and image captioning tasks, using the CoCa-Large model (Yu et al., 2022) as the teacher model.

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

↑