Skip to main content
QUICK REVIEW

[论文解读] ImageBind-LLM: Multi-modality Instruction Tuning

Jiaming Han, Renrui Zhang|arXiv (Cornell University)|Sep 7, 2023
Multimodal Machine Learning ApplicationsComputer Science被引用 24
一句话总结

ImageBind-LLM 对 LLaMA 进行微调,使其能够遵循多模态指令,通过将 ImageBind 的嵌入与可学习的 bind 网络对齐,在不使用注意力的情况下注入视觉线索,并使用一个训练无关的视觉缓存来提升对图像、音频、视频与3D输入的推理。

ABSTRACT

We present ImageBind-LLM, a multi-modality instruction tuning method of large language models (LLMs) via ImageBind. Existing works mainly focus on language and image instruction tuning, different from which, our ImageBind-LLM can respond to multi-modality conditions, including audio, 3D point clouds, video, and their embedding-space arithmetic by only image-text alignment training. During training, we adopt a learnable bind network to align the embedding space between LLaMA and ImageBind's image encoder. Then, the image features transformed by the bind network are added to word tokens of all layers in LLaMA, which progressively injects visual instructions via an attention-free and zero-initialized gating mechanism. Aided by the joint embedding of ImageBind, the simple image-text training enables our model to exhibit superior multi-modality instruction-following capabilities. During inference, the multi-modality inputs are fed into the corresponding ImageBind encoders, and processed by a proposed visual cache model for further cross-modal embedding enhancement. The training-free cache model retrieves from three million image features extracted by ImageBind, which effectively mitigates the training-inference modality discrepancy. Notably, with our approach, ImageBind-LLM can respond to instructions of diverse modalities and demonstrate significant language generation quality. Code is released at https://github.com/OpenGVLab/LLaMA-Adapter.

研究动机与目标

  • 激发并使大语言模型能够遵循基于多模态(除图像外的其他模态,例如音频、视频、3D 点云)条件的指令。
  • 通过将 ImageBind 嵌入与 LLaMA 对齐并以无注意力机制的方式注入视觉线索,开发一种高效的训练方法。
  • 利用简单的图像-文本训练设置,在不进行全多模态 LLM 重新训练的情况下实现跨模态指令遵循。
  • 在推理期间通过一个训练无关的视觉缓存模型缓解训练-推理模态差异。

提出的方法

  • 冻结 ImageBind 的图像编码器,训练一个可学习的 bind 网络,将其全局图像特征转换到 LLaMA 的嵌入空间。
  • 通过一个无注意力、零初始化的门控机制,将变换后的图像特征注入到所有 Transformer 层中的每一个 LLaMA 单词标记。
  • 使用图像-标题数据进行视觉-语言预训练;随后在保持编码器冻结的同时,使用语言与视觉指令数据进行跨模态指令微调。
  • 使用参数高效的微调方法(LoRA 和 bias-norm 调优)对 LLaMA 进行微调,并进行一个二阶段的高质量指令微调(MiniGPT-4 数据)。
  • 引入一个训练无关的视觉缓存检索,在推理期间通过检索相似的 ImageBind 特征并与残差连接聚合,提升多模态嵌入。

实验结果

研究问题

  • RQ1在对语言模型进行微调后,能否利用单一的联合嵌入空间(ImageBind)来支持跨图像、音频、视频和 3D 模态的指令遵循?
  • RQ2无注意力、零初始化的视觉注入方案是否能够在不干扰现有语言知识的情况下有效将视觉指令注入到 LLaMA?
  • RQ3推理过程中的基于缓存的增强如何缓解训练(仅图像)与推理(多模态输入)之间的模态差异?
  • RQ4参数高效的微调是否足以实现强大的多模态指令遵循能力?

主要发现

  • ImageBind-LLM 在 OCR、KIE、图像标题生成、VQA 和 KGID 基准测试中展示出较强的零样本性能,与其他视觉-语言模型和 PandaGPT 相比。
  • 相比 PandaGPT,ImageBind-LLM 得益于 bind 网络带来更好的对齐,以及使用 LLaMA 代替 Vicuna,有助于语言生成质量和对齐。
  • OCR 性能落后于某些基线,可能是因为使用了单一模态特征令牌,与使用多个令牌来表示视觉信息的其他模型不同。
  • 训练无关的视觉缓存通过用检索到的相似视觉特征丰富多模态嵌入,减少模态差距,从而进一步提升推理效果。
  • 扩展包括双语指令微调和任意到任意生成,在与合适的生成后端集成时能够输出超出文本的内容。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。