arXiv:2410.16236cs.CV2024-10ICCV被引 51

用知识蒸馏让小模型逼近大模型的多模态理解能力

LLaVA-KD: A Framework of Distilling Multimodal Large Language Models

  • 通过跨模态和关系蒸馏,将大模型的视觉语言表征迁移到小模型
  • 在不改架构前提下,小模型在多个数据集上性能显著提升
  • 适合资源受限场景下的多模态模型部署,如移动端或边缘设备

大型语言模型的成功推动了多模态大语言模型(MLLMs)的发展,实现视觉与语言的统一理解。然而,大规模MLLMs(l-MLLMs)的模型规模和计算复杂度限制了其在资源受限场景中的应用。尽管小型MLLMs(s-MLLMs)旨在降低计算成本,但通常存在性能下降问题。为此,我们提出一种新的LLaVA-KD框架,将l-MLLMs的知识迁移至s-MLLMs。具体地,引入多模态蒸馏(MDist)以传递教师模型在视觉与语言模态上的鲁棒表征,并提出关系蒸馏(RDist)以转移教师模型对视觉标记间关系的建模能力。此外,设计三阶段训练方案:1)蒸馏预训练,强化s-MLLM中视觉-语言表征对齐;2)监督微调,赋予s-MLLM多模态理解能力;3)蒸馏微调,进一步优化知识。该方法在不改变模型结构的情况下显著提升s-MLLM性能。大量实验与消融研究验证了各组件的有效性。代码将在https://github.com/Fantasyele/LLaVA-KD发布。

原文摘要 · Abstract (English)

The success of Large Language Models (LLMs) has inspired the development of Multimodal Large Language Models (MLLMs) for unified understanding of vision and language. However, the increasing model size and computational complexity of large-scale MLLMs (l-MLLMs) limit their use in resource-constrained scenarios. Although small-scale MLLMs (s-MLLMs) are designed to reduce computational costs, they typically suffer from performance degradation. To mitigate this limitation, we propose a novel LLaVA-KD framework to transfer knowledge from l-MLLMs to s-MLLMs. Specifically, we introduce Multimodal Distillation (MDist) to transfer teacher model's robust representations across both visual and linguistic modalities, and Relation Distillation (RDist) to transfer teacher model's ability to capture visual token relationships. Additionally, we propose a three-stage training scheme to fully exploit the potential of the proposed distillation strategy: 1) Distilled Pre-Training to strengthen the alignment between visual-linguistic representations in s-MLLMs, 2) Supervised Fine-Tuning to equip the s-MLLMs with multimodal understanding capacity, and 3) Distilled Fine-Tuning to refine s-MLLM's knowledge. Our approach significantly improves s-MLLMs performance without altering the model architecture. Extensive experiments and ablation studies validate the effectiveness of each proposed component. Code will be available at https://github.com/Fantasyele/LLaVA-KD.

多模态知识蒸馏轻量化大模型

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。