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.
Introduction
Large Language Models (LLMs) like GPT-4 have demonstrated remarkable proficiency in following text and image instructions. However, scaling these capabilities to other modalities—such as audio, video, and 3D point clouds—remains a significant challenge. The primary hurdle is the scarcity of high-quality instruction-following data for these "fringe" modalities. Furthermore, adding new modalities often necessitates complex architectural changes or computationally expensive retraining.
ImageBind-LLM addresses these issues by "binding" a language model to a pre-aligned multi-modal embedding space. By leveraging ImageBind, the model inherits capabilities for modalities it never explicitly encountered during its instruction-tuning phase. This allows a standard LLM to follow instructions across a wide array of inputs using only image-text alignment training.
Methodology
The ImageBind-LLM architecture consists of three primary components designed for efficiency and cross-modal flexibility:
The Bind Network
Because ImageBind and LLaMA operate in different embedding spaces, the authors introduce a learnable "bind network." This component utilizes linear layers and residual blocks to map ImageBind’s global image features into LLaMA’s word embedding space, ensuring compatibility between the visual and linguistic representations.
Attention-free Zero-initialized Gating
To avoid the computational overhead of complex cross-attention layers, ImageBind-LLM injects transformed multi-modal features directly into every transformer layer of LLaMA. A learnable gating factor, initialized at zero, allows the model to progressively learn how to incorporate visual information without disrupting the LLM's original linguistic knowledge during the early stages of training.
Cross-modality Cache Retrieval
A key innovation for inference is the training-free visual cache. Since the model is trained exclusively on image-text pairs, a "modality discrepancy" can occur when it encounters audio or 3D inputs. To bridge this gap, the system retrieves the most similar image features from a cache of 3 million pre-extracted features. This retrieval process enhances the non-visual embeddings, making them appear more like the image data the model was trained on.
Key Results
ImageBind-LLM was evaluated on the comprehensive MME benchmark and various vision-language tasks:
- MME Benchmark: The model achieved a perception score of 775.77, outperforming other multi-modal models like PandaGPT and LLaVA in sub-tasks such as "Existence" and "Color" recognition.
- Zero-shot Performance: It demonstrated competitive performance with BLIP-2 and LLaVA on traditional tasks like Image Captioning and VQA, despite its simpler injection mechanism.
- Qualitative Versatility: The model successfully performed complex reasoning, such as generating poetry based on audio clips (e.g., waves crashing) and performing "embedding arithmetic" to combine disparate cues (e.g., an image of a girl combined with a sad melody) to correctly infer her mood.
Conclusion
ImageBind-LLM proves that broad multi-modality can be achieved efficiently by aligning LLMs with joint embedding spaces. While the model currently faces limitations regarding hallucinations—likely due to the use of a single global visual token—future work will focus on increasing the number of multi-modal tokens and developing higher-quality, human-verified multi-modal datasets to further enhance accuracy and detail.
Summary updated