Vision Enhancing LLMs: Empowering Multimodal Knowledge Storage and Sharing in LLMs
Yunxin Li, Zhenyu Liu, Baotian Hu, Wei Wang, Yuxin Ding, Xiaochun Cao, Min Zhang
TL;DR
This work introduces MKS2, a vision-enhanced framework that augments LLMs with open-world visual knowledge by integrating Modular Visual Memory (MVM) into each transformer block and a soft Mixture of Multimodal Experts (MoMEs) to fuse visual and textual knowledge during generation. The approach comprises two stages: Visual Information Storage, where MVM is trained on image-caption and text-to-image retrieval objectives while the LLM remains frozen, and Multimodal Knowledge Collaboration, where MoMEs combine a Visual Expert (MVM) and a Textual Expert (MLP) via LoRA-based adapters at the token level. Empirically, MKS2-Llama-2-13b achieves state-of-the-art zero-shot performance on several NLP benchmarks and competitive results on image-text understanding, with ablations showing that the visual memory and mixture-of-experts contribute meaningfully to both language and multimodal tasks. The results suggest that storing and leveraging visual knowledge inside LLMs can enhance reasoning and knowledge-based questions without sacrificing textual capabilities, highlighting the practical potential of Vision-Enhanced LLMs for open-world reasoning and multimodal QA.
Abstract
Recent advancements in multimodal large language models (MLLMs) have achieved significant multimodal generation capabilities, akin to GPT-4. These models predominantly map visual information into language representation space, leveraging the vast knowledge and powerful text generation abilities of LLMs to produce multimodal instruction-following responses. We could term this method as LLMs for Vision because of its employing LLMs for visual understanding and reasoning, yet observe that these MLLMs neglect the potential of harnessing visual knowledge to enhance the overall capabilities of LLMs, which could be regarded as Vision Enhancing LLMs. In this paper, we propose an approach called MKS2, aimed at enhancing LLMs through empowering Multimodal Knowledge Storage and Sharing in LLMs. Specifically, we introduce Modular Visual Memory (MVM), a component integrated into the internal blocks of LLMs, designed to store open-world visual information efficiently. Additionally, we present a soft Mixture of Multimodal Experts (MoMEs) architecture in LLMs to invoke multimodal knowledge collaboration during text generation. Our comprehensive experiments demonstrate that MKS2 substantially augments the reasoning capabilities of LLMs in contexts necessitating physical or commonsense knowledge. It also delivers competitive results on image-text understanding multimodal benchmarks. The codes will be available at: https://github.com/HITsz-TMG/MKS2-Multimodal-Knowledge-Storage-and-Sharing
