arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.23089cs.CV
收藏

PIP-MM:通过现有MLLM结构将提示信息预整合进视觉编码

PIP-MM: Pre-Integrating Prompt Information into Visual Encoding via Existing MLLM Structures

Soochow University(苏州大学)

Tianxiang Wu, Minxin Nie, Ziqiang Cao

AI总结:

针对现有MLLM图像编码与提示词无关导致的信息缺失、冗余问题,提出PIP-MM框架,利用冻结LLM向量化提示词并经MLP对齐后替换图像编码器的class embedding,仅新增可训练MLP即可适配任意MLLM,在多基准上表现优异,减半视觉token仍能保持良好生成效果。

摘要:

多模态大语言模型(Multimodal Large Language Models,MLLMs)通过整合视觉信息激活了大语言模型(Large Language Models,LLMs)解决视觉-语言任务的能力。现有MLLMs的主流方法是使用图像编码器提取视觉特征,通过适配器将这些特征转换为视觉标记(token),再将其与提示词一同输入LLM。然而,由于图像编码过程与提示词无关,提取到的视觉特征仅能对图像做粗略描述,无法聚焦于提示词的需求。一方面,图像特征容易缺失提示词指定对象的相关信息,导致生成的回复不尽如人意;另一方面,视觉特征包含大量无关信息,不仅增加了内存负担,还会降低生成效果。为解决上述问题,我们提出了PIP-MM——一种利用MLLMs现有模块将提示词信息预整合到视觉编码过程中的框架。具体而言,我们利用MLLM中被冻结的LLM将输入提示词向量化,以此归纳提示词的需求;随后将提示词向量输入我们训练的多层感知机(Multi-Layer Perceptron,MLP),使其与视觉输入需求对齐,再替换图像编码器中的类别嵌入(class embedding)。由于我们的模型仅需添加一个可训练的MLP,因此可应用于任意MLLM。为验证PIP-MM的有效性,我们在多个基准上开展了实验。自动化评估指标与人工评估均证明了PIP-MM的优异性能,尤其值得注意的是,即便将视觉标记数量减少一半,我们的模型仍能保持出色的生成结果。

英文摘要:

The Multimodal Large Language Models (MLLMs) have activated the capabilitiesof Large Language Models (LLMs) in solving visual-language tasks by integratingvisual information. The prevailing approach in existing MLLMs involvesemploying an image encoder to extract visual features, converting thesefeatures into visual tokens via an adapter, and then integrating them with theprompt into the LLM. However, because the process of image encoding isprompt-agnostic, the extracted visual features only provide a coarsedescription of the image, impossible to focus on the requirements of theprompt. On one hand, it is easy for image features to lack information aboutthe prompt-specified objects, resulting in unsatisfactory responses. On theother hand, the visual features contain a large amount of irrelevantinformation, which not only increases the burden on memory but also worsens thegeneration effectiveness. To address the aforementioned issues, we propose\textbf{PIP-MM}, a framework that \textbf{P}re-\textbf{I}ntegrates\textbf{P}rompt information into the visual encoding process using existingmodules of MLLMs. Specifically, We utilize the frozen LLM in the MLLM tovectorize the input prompt, which summarizes the requirements of the prompt.Then, we input the prompt vector into our trained Multi-Layer Perceptron (MLP)to align with the visual input requirements, and subsequently replace the classembedding in the image encoder. Since our model only requires adding atrainable MLP, it can be applied to any MLLM. To validate the effectiveness ofPIP-MM, we conducted experiments on multiple benchmarks. Automated evaluationmetrics and manual assessments demonstrate the strong performance of PIP-MM.Particularly noteworthy is that our model maintains excellent generationresults even when half of the visual tokens are reduced.

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

↑