arXiv:2503.20680cs.CVcs.CL2025-03被引 37

用LoRA让大模型直接看图,省去额外视觉模块

Vision as LoRA

  • 将视觉LoRA层直接嵌入大模型,无需外部视觉编码器
  • 支持任意分辨率输入,训练时通过块级蒸馏加速
  • 适合需要轻量多模态能力的场景,如移动端部署

我们提出视觉即LoRA(VoRA),一种将大语言模型(LLM)转化为多模态大模型(MLLM)的新范式。不同于依赖外部视觉模块的主流架构,VoRA通过在LLM中集成特定于视觉的LoRA层,将视觉能力内化。该设计使新增参数可在推理时无缝合并,避免结构复杂性并最小化计算开销。同时,继承原LLM对灵活上下文的处理能力,VoRA可处理任意分辨率输入。为增强视觉能力,我们引入块级蒸馏方法,将预训练ViT中的视觉先验知识注入LoRA层,有效加速训练。此外,采用双向注意力掩码以更好捕捉图像上下文信息。实验表明,在附加预训练数据下,VoRA性能可媲美传统编码器-解码器型MLLM。所有训练数据、代码和模型权重将开源至https://github.com/Hon-Wong/VoRA。

原文摘要 · Abstract (English)

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.

多模态LoRA视觉理解轻量化

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