arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.20680cs.CVcs.CL
收藏

视觉即LoRA

Vision as LoRA

ByteDance Inc.(字节跳动公司);University of Birmingham(伯明翰大学)

Han Wang, Yongjie Ye, Bingru Li, Yuxiang Nie, Jinghui Lu, Jingqun Tang, Yanjie Wang, Can Huang

AI总结:

VoRA通过将视觉LoRA层集成进LLM,内化视觉能力,实现任意分辨率输入,并利用块级蒸馏和双向注意力掩码增强性能,达到与编码器型MLLM相当的效果。

摘要:

我们提出了视觉即LoRA(VoRA),这是一种将大语言模型(LLM)转变为多模态大语言模型(MLLM)的新范式。与依赖外部视觉模块进行视觉编码的主流MLLM架构不同,VoRA通过将视觉特定的LoRA层直接集成到LLM中,将视觉能力内化。这种设计使得增加的参数在推理过程中可以无缝合并到LLM中,消除了结构复杂性并最小化计算开销。此外,继承LLM处理灵活上下文的能力,VoRA可以处理任意分辨率的输入。为了进一步增强VoRA的视觉能力,我们引入了一种块级蒸馏方法,将预训练的ViT中的视觉先验转移到LoRA层,通过注入视觉知识有效加速训练。此外,我们应用双向注意力掩码以更好地捕捉图像的上下文信息。我们成功证明,通过额外的预训练数据,VoRA可以与传统的基于编码器的MLLM表现相当。所有训练数据、代码和模型权重将在https://github.com/Hon-Wong/VoRA上发布。

英文摘要:

We introduce Vision as LoRA (VoRA), a novel paradigm for transforming an LLM into an MLLM. Unlike prevalent MLLM architectures that rely on external vision modules for vision encoding, VoRA internalizes visual capabilities by integrating vision-specific LoRA layers directly into the LLM. This design allows the added parameters to be seamlessly merged into the LLM during inference, eliminating structural complexity and minimizing computational overhead. Moreover, inheriting the LLM's ability of handling flexible context, VoRA can process inputs at arbitrary resolutions. To further strengthen VoRA's visual capabilities, we introduce a block-wise distillation method that transfers visual priors from a pre-trained ViT into the LoRA layers, effectively accelerating training by injecting visual knowledge. Additionally, we apply bi-directional attention masks to better capture the context information of an image. We successfully demonstrate that with additional pre-training data, VoRA can perform comparably with conventional encode-based MLLMs. All training data, codes, and model weights will be released at https://github.com/Hon-Wong/VoRA.

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

↑